74fc7bf8429de4efa4922049cc978784b58148c5
[gnulib.git] / ChangeLog
1 2011-10-06  Bruno Haible  <bruno@clisp.org>
2
3         New module 'frexpf'.
4         * lib/math.in.h (frexpf): New declaration.
5         * lib/frexpf.c: New file.
6         * m4/frexpf.m4: New file.
7         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10         * modules/frexpf: New file.
11         * tests/test-math-c++.cc: Check the declaration of frexpf.
12         * doc/posix-functions/frexpf.texi: Mention the new module.
13
14 2011-10-06  Bruno Haible  <bruno@clisp.org>
15
16         math: Sort function declarations of math.in.h.
17         * lib/math.in.h (frexp, logb): Move declarations.
18
19 2011-10-05  Bruno Haible  <bruno@clisp.org>
20
21         Tests for module 'modff'.
22         * modules/modff-tests: New file.
23         * tests/test-modff.c: New file.
24
25         New module 'modff'.
26         * lib/math.in.h (modff): New declaration.
27         * lib/modff.c: New file.
28         * m4/modff.m4: New file.
29         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
30         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
31         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
32         * modules/modff: New file.
33         * tests/test-math-c++.cc: Check the declaration of modff.
34         * doc/posix-functions/modff.texi: Mention the new module.
35
36         modf tests: Make test sharper.
37         * tests/test-modf.c (main): Strengthen upper bound.
38
39         modf: Use a .m4 file.
40         * m4/modf.m4: New file.
41         * modules/modf (Files): Add it.
42         (configure.ac): Just invoke gl_FUNC_MODF.
43
44 2011-10-05  Bruno Haible  <bruno@clisp.org>
45
46         Tests for module 'fmodf'.
47         * modules/fmodf-tests: New file.
48         * tests/test-fmodf.c: New file.
49
50         New module 'fmodf'.
51         * lib/math.in.h (fmodf): New declaration.
52         * lib/fmodf.c: New file.
53         * m4/fmodf.m4: New file.
54         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
55         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
56         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
57         * modules/fmodf: New file.
58         * tests/test-math-c++.cc: Check the declaration of fmodf.
59         * doc/posix-functions/fmodf.texi: Mention the new module.
60
61         fmod: Use a .m4 file.
62         * m4/fmod.m4: New file.
63         * modules/fmod (Files): Add it.
64         (configure.ac): Just invoke gl_FUNC_FMOD.
65
66 2011-10-05  Bruno Haible  <bruno@clisp.org>
67
68         Tests for module 'fabsf'.
69         * modules/fabsf-tests: New file.
70         * tests/test-fabsf.c: New file.
71
72         New module 'fabsf'.
73         * lib/math.in.h (fabsf): New declaration.
74         * lib/fabsf.c: New file.
75         * m4/fabsf.m4: New file.
76         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
77         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
78         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
79         * modules/fabsf: New file.
80         * tests/test-math-c++.cc: Check the declaration of fabsf.
81         * doc/posix-functions/fabsf.texi: Mention the new module.
82
83         fabs: Use a .m4 file.
84         * m4/fabs.m4: New file.
85         * modules/fabs (Files): Add it.
86         (configure.ac): Just invoke gl_FUNC_FABS.
87
88 2011-10-05  Jim Meyering  <meyering@redhat.com>
89
90         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
91         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
92         ls -lL regression introduced in coreutils-8.12, it does so at the
93         cost of an additional stat call in the common case.  Besides, now
94         that the kernel change that prompted commit 95f7c57f has been reverted
95         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
96         we have no use for commit 95f7c57f, "file-has-acl: use
97         acl_extended_file_nofollow if available".
98
99 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
100
101         file-has-acl: revert unintended change in behavior of ls -L
102         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
103         derived from...
104         (file_has_acl): ...code here.  Call it.
105         This problem was introduced with 2011-07-22 commit 95f7c57f,
106         "file-has-acl: use acl_extended_file_nofollow if available".
107         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
108
109 2011-10-03  Bruno Haible  <bruno@clisp.org>
110
111         poll: Avoid link errors on MSVC.
112         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
113         * modules/poll (Depends-on): Add sockets.
114         (Link): New section.
115         * NEWS: Mention the change.
116         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
117         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
118         $(LIB_POLL) instead of $(LIBSOCKET).
119
120 2011-10-03  Bruno Haible  <bruno@clisp.org>
121
122         sys_select tests: Fix link error on MSVC 9.
123         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
124         with $(LIB_SELECT) instead of $(LIBSOCKET).
125
126 2011-10-03  Bruno Haible  <bruno@clisp.org>
127
128         sys_select: Fix compilation error on mingw.
129         * lib/sys_select.in.h: On native Windows, include <io.h>.
130
131 2011-10-03  Bruno Haible  <bruno@clisp.org>
132
133         wmemset: Support for MSVC.
134         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
135         whether wmemset() exists.
136
137 2011-10-03  Bruno Haible  <bruno@clisp.org>
138
139         wmemmove: Support for MSVC.
140         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
141         whether wmemmove() exists.
142
143 2011-10-03  Bruno Haible  <bruno@clisp.org>
144
145         wmemcpy: Support for MSVC.
146         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
147         whether wmemcpy() exists.
148
149 2011-10-03  Bruno Haible  <bruno@clisp.org>
150
151         wmemcmp: Support for MSVC.
152         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
153         whether wmemcmp() exists.
154
155 2011-10-03  Bruno Haible  <bruno@clisp.org>
156
157         wmemchr: Support for MSVC.
158         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
159         whether wmemchr() exists.
160
161 2011-10-03  Bruno Haible  <bruno@clisp.org>
162
163         glthread/*, strsignal: Support for MSVC.
164         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
165         including <winsock.h> on MSVC 9.
166         * lib/glthread/lock.h: Likewise.
167         * lib/glthread/thread.h: Likewise.
168         * lib/glthread/tls.h: Likewise.
169         * lib/glthread/yield.h: Likewise.
170         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
171         if HAVE_UNISTD_H is false.
172         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
173
174 2011-10-03  Bruno Haible  <bruno@clisp.org>
175
176         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
177         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
178         Set to 100000.
179
180 2011-10-03  Bruno Haible  <bruno@clisp.org>
181
182         acl: Fix specification.
183         * lib/file-has-acl.c (file_has_acl): Fix specification.
184
185 2011-10-03  Bruno Haible  <bruno@clisp.org>
186
187         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
188         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
189         (compute_curr_prefix, shared_library_fullname,
190         find_shared_library_fullname, get_shared_library_fullname, relocate):
191         Use it together with PIC && INSTALLDIR.
192         Reported by <jojelino@gmail.com>
193         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
194
195 2011-10-01  Jim Meyering  <meyering@redhat.com>
196
197         maint.mk: adjust a release-related rule not to require use of gzip
198         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
199         Instead, check each file in $(DIST_ARCHIVES).  This is better for
200         projects that build only .tar.xz files.  Also fix an erroneous test.
201
202         test-linkat: don't leave behind a temporary file
203         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
204         Otherwise, coreutils' "make distcheck" would fail with this:
205           Only in /c/cu/tests/torture/coreutils/test/\
206             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
207           make[2]: *** [my-distcheck] Error 1
208
209         float, math: add omitted file
210         * lib/itold.c: Add file, required for yesterday's float change.
211
212 2011-10-01  Bruno Haible  <bruno@clisp.org>
213
214         isinf: Fix for OpenBSD/x86.
215         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
216         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
217         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
218
219 2011-10-01  Bruno Haible  <bruno@clisp.org>
220
221         isfinite: Fix syntax error in configure test.
222         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
223
224         isfinite: Fix typo.
225         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
226         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
227
228 2011-10-01  Bruno Haible  <bruno@clisp.org>
229
230         nonblocking tests: Fix test failure on Linux/IA-64.
231         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
232         Set to 270000.
233
234 2011-10-01  Bruno Haible  <bruno@clisp.org>
235
236         mkfifoat tests: Fix a test failure on mingw.
237         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
238         with error ENOSYS.
239
240 2011-09-30  Bruno Haible  <bruno@clisp.org>
241
242         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
243         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
244         'long double'. Set REPLACE_ITOLD.
245         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
246         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
247         * lib/itold.c: New file.
248         * modules/float (Files): Add lib/itold.c.
249         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
250         (Makefile.am): Substitute REPLACE_ITOLD.
251         * modules/math (Depends-on): Add float.
252         (Makefile.am): Substitute REPLACE_ITOLD.
253         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
254         * doc/posix-headers/math.texi: Likewise.
255         * doc/posix-functions/logl.texi: Likewise.
256
257 2011-09-30  Bruno Haible  <bruno@clisp.org>
258
259         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
260         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
261         Set to 140000.
262
263 2011-09-30  Bruno Haible  <bruno@clisp.org>
264
265         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
266         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
267         invocation, say "right after AC_PROG_CC_STDC", not "right after
268         AC_PROG_CC".
269         Reported by Gary V. Vaughan <gary@gnu.org>.
270
271 2011-09-30  Bruno Haible  <bruno@clisp.org>
272
273         Centralize C99 requirement.
274         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
275         * modules/stdarg (configure.ac-early): Invoke it instead of
276         AC_PROG_CC_STDC.
277         Reported by Gary V. Vaughan and Paul Eggert.
278
279 2011-09-29  Bruno Haible  <bruno@clisp.org>
280
281         float: Fix LDBL_MAX value on Linux/PowerPC.
282         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
283         on Linux/PowerPC.
284         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
285         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
286         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
287         platform.
288         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
289
290 2011-09-29  Bruno Haible  <bruno@clisp.org>
291
292         doc: Improve doc about gl_EARLY.
293         * doc/gnulib-tool.texi (Initial import): Mention where to place an
294         AC_PROG_CC_STDC invocation.
295         Reported by Gary V. Vaughan <gary@gnu.org>.
296
297 2011-09-28  Bruno Haible  <bruno@clisp.org>
298
299         fgetc, fputc, fread, fwrite tests: Fix link error.
300         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
301         on non-MSVC platforms.
302         * tests/test-fputc.c (main): Likewise.
303         * tests/test-fread.c (main): Likewise.
304         * tests/test-fwrite.c (main): Likewise.
305         Reported by Jim Meyering.
306
307 2011-09-27  Bruno Haible  <bruno@clisp.org>
308
309         fputc, fwrite tests: Avoid test failure on MSVC.
310         * tests/test-fgetc.c: Include msvc-inval.h.
311         (main): Invoke gl_msvc_inval_ensure_handler.
312         * tests/test-fputc.c: Include msvc-inval.h.
313         (main): Invoke gl_msvc_inval_ensure_handler.
314         * tests/test-fread.c: Include msvc-inval.h.
315         (main): Invoke gl_msvc_inval_ensure_handler.
316         * tests/test-fwrite.c: Include msvc-inval.h.
317         (main): Invoke gl_msvc_inval_ensure_handler.
318         * modules/fgetc-tests (Depends-on): Add msvc-inval.
319         * modules/fputc-tests (Depends-on): Likewise.
320         * modules/fread-tests (Depends-on): Likewise.
321         * modules/fwrite-tests (Depends-on): Likewise.
322
323 2011-09-27  Bruno Haible  <bruno@clisp.org>
324
325         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
326         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
327         (raise): Remove older, duplicated declaration.
328         (_gl_raise_SIGPIPE): New declaration.
329         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
330         (rpl_raise): Remove function.
331         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
332         a gnulib-defined SIGPIPE here.
333         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
334         'sigprocmask' has detected missing signal-blocking and the module
335         'sigpipe' is enabled.
336         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
337
338 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
339
340         base64-tests: avoid memory leak
341         * tests/test-base64.c (main): Plug memory leak.
342
343         base32: new module
344         * modules/base32: New module.
345         * lib/base32.c: New file.
346         * lib/base32.h: Likewise.
347         * m4/base32.m4: Likewise.
348         * modules/base32-tests: New test.
349         * tests/test-base32.c: Likewise.
350         * MODULES.html.sh (Misc): Mention it.
351
352 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
353
354         gnulib: use more-standard license notice wording
355         * gnulib-tool (func_emit_copyright_notice): When emitting a
356         license notice into a file, use the standard wording as suggested
357         by the current information for GNU maintainers, except say "file"
358         rather than "program".  The new wording gives a license version
359         number, which addresses an issue raised by Glenn Morris in
360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
361         * m4/onceonly.m4: Use that same wording here, too.
362
363         dup2: minor simplification
364         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
365         as lib/dup2.c no longer uses 'inline'.
366
367 2011-09-25  Bruno Haible  <bruno@clisp.org>
368
369         strings: Fix compilation error on MSVC.
370         * lib/strings.in.h: Include <stddef.h> for size_t.
371
372 2011-09-25  Bruno Haible  <bruno@clisp.org>
373
374         fflush et al.: Document limitation on MSVC.
375         * doc/posix-functions/fflush.texi: Document possible crash in handling
376         mode other than DEFAULT_HANDLING.
377         * doc/posix-functions/fgetc.texi: Likewise.
378         * doc/posix-functions/fputc.texi: Likewise.
379         * doc/posix-functions/fread.texi: Likewise.
380         * doc/posix-functions/fwrite.texi: Likewise.
381
382 2011-09-25  Bruno Haible  <bruno@clisp.org>
383
384         msvc-inval: Allow three invalid parameter handling modes.
385         * lib/msvc-inval.h: Don't include <stdlib.h> here.
386         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
387         macros.
388         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
389         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
390         SANE_LIBRARY_HANDLING as a no-op.
391         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
392         <stdlib.h>.
393         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
394
395 2011-09-25  Bruno Haible  <bruno@clisp.org>
396
397         msvc-inval: Make handler multithread-safe.
398         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
399         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
400         declarations.
401         (gl_msvc_inval_current): New declaration.
402         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
403         Operate on the structure returned by gl_msvc_inval_current().
404         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
405         Remove varaiables.
406         (tls_index, tls_initialized): New variables.
407         (not_per_thread): New variable.
408         (gl_msvc_inval_current): New function.
409         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
410         returned by gl_msvc_inval_current().
411
412 2011-09-25  Bruno Haible  <bruno@clisp.org>
413
414         msvc-inval: Install handler globally.
415         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
416         !_MSC_VER.
417         (gl_msvc_invalid_parameter_handler): Remove declaration.
418         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
419         declarations.
420         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
421         Install the handler globally, don't uninstall it.
422         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
423         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
424         currently valid, call RaiseException instead.
425         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
426         for !_MSC_VER.
427
428 2011-09-25  Bruno Haible  <bruno@clisp.org>
429
430         strerror_r-posix: Fix for MSVC 9.
431         * lib/strerror_r.c (local_snprintf): New function.
432         (snprintf): Define to local_snprintf, not to _snprintf.
433
434 2011-09-25  Bruno Haible  <bruno@clisp.org>
435
436         ftruncate: Support for MSVC 9.
437         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
438         (chsize_nothrow): New function.
439         (chsize): Redefine as a macro.
440         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
441         * modules/ftruncate (Depends-on): Add msvc-inval.
442
443 2011-09-25  Bruno Haible  <bruno@clisp.org>
444
445         New module 'fstat'.
446         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
447         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
448         * lib/fchdir.c (rpl_fstat): Remove function.
449         * m4/fstat.m4: New file.
450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
451         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
452         declared.
453         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
454         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
455         * modules/fstat: New file.
456         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
457         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
458         is set.
459         * doc/posix-functions/fstat.texi: Mention the new module and the
460         problem on MSVC.
461         * NEWS: Mention the change.
462         * modules/acl (Depends-on): Add fstat.
463         * modules/chdir-safer (Depends-on): Likewise.
464         * modules/chown (Depends-on): Likewise.
465         * modules/copy-file (Depends-on): Likewise.
466         * modules/fchdir (Depends-on): Likewise.
467         * modules/fdopendir (Depends-on): Likewise.
468         * modules/fopen (Depends-on): Likewise.
469         * modules/fts (Depends-on): Likewise.
470         * modules/getcwd (Depends-on): Likewise.
471         * modules/isapipe (Depends-on): Likewise.
472         * modules/linkat (Depends-on): Likewise.
473         * modules/lseek (Depends-on): Likewise.
474         * modules/mkdir-p (Depends-on): Likewise.
475         * modules/open (Depends-on): Likewise.
476         * modules/openat (Depends-on): Likewise.
477         * modules/read-file (Depends-on): Likewise.
478         * modules/renameat (Depends-on): Likewise.
479         * modules/utimens (Depends-on): Likewise.
480
481 2011-09-25  Bruno Haible  <bruno@clisp.org>
482
483         linkat: Fix compilation on MSVC 9.
484         * lib/linkat.c: Don't include <stdint.h>.
485
486 2011-09-25  Bruno Haible  <bruno@clisp.org>
487
488         fclose: Support for MSVC 9.
489         * lib/fclose.c: Include msvc-inval.h.
490         (fclose_nothrow): New function.
491         (rpl_fclose): Use it.
492         * modules/fclose (Depends-on): Add msvc-inval.
493         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
494
495 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
496
497         dup2: minor simplifications
498         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
499         that it's a performance win.
500         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
501         ! defined __CYGWIN__)" to "ifdef F_GETFL".
502
503 2011-09-24  Jim Meyering  <meyering@redhat.com>
504
505         test-futimens: avoid a warning from gcc -Wshadow
506         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
507         to avoid a shadowing warning.
508
509 2011-09-24  Bruno Haible  <bruno@clisp.org>
510
511         fdopen: Support for MSVC 9.
512         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
513         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
514         * lib/fdopen.c: Include msvc-inval.h.
515         (fdopen_nothrow): New function.
516         (rpl_fdopen): Use it.
517         * modules/fdopen (Depends-on): Add msvc-inval.
518         * modules/fclose-tests (Depends-on): Add fdopen.
519         * modules/fflush-tests (Depends-on): Likewise.
520         * modules/fgetc-tests (Depends-on): Likewise.
521         * modules/fputc-tests (Depends-on): Likewise.
522         * modules/fread-tests (Depends-on): Likewise.
523         * modules/freopen-tests (Depends-on): Likewise.
524         * modules/fseeko-tests (Depends-on): Likewise.
525         * modules/ftello-tests (Depends-on): Likewise.
526         * modules/fwrite-tests  (Depends-on): Likewise.
527         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
528
529 2011-09-24  Bruno Haible  <bruno@clisp.org>
530
531         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
532         * modules/fgetc-tests (Depends-on): Add unistd.
533         * modules/fputc-tests (Depends-on): Likewise.
534         * modules/fread-tests (Depends-on): Likewise.
535         * modules/fwrite-tests (Depends-on): Likewise.
536
537 2011-09-24  Bruno Haible  <bruno@clisp.org>
538
539         dup: Simplify autoconf test.
540         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
541         on gl_MSVC_INVAL's result.
542
543 2011-09-24  Bruno Haible  <bruno@clisp.org>
544
545         Tests for function fwrite().
546         * modules/fwrite-tests: New file.
547         * tests/test-fwrite.c: New file.
548         * modules/stdio-tests (Depends-on): Add fwrite-tests.
549
550         Tests for function fread().
551         * modules/fread-tests: New file.
552         * tests/test-fread.c: New file.
553         * modules/stdio-tests (Depends-on): Add fread-tests.
554
555         Activate fputc tests.
556         * modules/stdio-tests (Depends-on): Add fputc-tests.
557
558         Enhance fgetc, fputc tests.
559         * tests/test-fgetc.c (main): Also test the stream's error indicator.
560         * tests/test-fputc.c (main): Likewise.
561
562 2011-09-24  Bruno Haible  <bruno@clisp.org>
563
564         write: Support for MSVC 9.
565         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
566         is not 1.
567         * lib/write.c (write_nothrow): New function.
568         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
569         not 1. Use write_nothrow.
570         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
571         invalid parameter handler.
572         (gl_PREREQ_WRITE): New macro.
573         * modules/write (Depends-on): Add msvc-inval.
574         (configure.ac): Invoke gl_PREREQ_WRITE.
575         * doc/posix-functions/write.texi: Mention the problem on MSVC.
576
577 2011-09-24  Bruno Haible  <bruno@clisp.org>
578
579         read: Fix last commit.
580         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
581
582 2011-09-24  Bruno Haible  <bruno@clisp.org>
583
584         dup2: Fix last commit.
585         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
586         (rpl_dup2): Disable fcntl workaround on native Windows.
587
588         sigprocmask: Make code safer.
589         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
590         section that changes macro definitions for this compilation unit.
591
592 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
593
594         dup2: clarify by coalescing Windows-specific material
595         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
596         "msvc-nothrow.h"' to the Windows-specific section, so that the
597         Emacs source need not contain these include files.
598         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
599         Windows-specific fixes into this function rather than just the
600         nothrow fix, as this shortens and clarifies the code.  Always
601         define as a function, as that's a bit cleaner than having it be
602         sometimes a function and sometimes a macro.
603         (rpl_dup2): Move the Windows-specific stuff out of here and into
604         ms_windows_dup2.  Don't protect the Haiku-related fix with
605         "#if !defined __linux__", as the same code also works around
606         a Linux kernel bug, and it doesn't add any system calls on any
607         platform.  Add comment about FreeBSD 6.1.
608
609         sigprocmask: move #include directive
610         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
611         Windows-specific section, so that the Emacs source need not
612         contain msvc-inval.h.
613
614 2011-09-23  Bruno Haible  <bruno@clisp.org>
615
616         read: Support for MSVC 9.
617         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
618         is not 1.
619         * lib/read.c (read_nothrow): New function.
620         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
621         read_nothrow.
622         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
623         invalid parameter handler.
624         (gl_PREREQ_READ): New macro.
625         * modules/read (Depends-on): Add msvc-inval.
626         (configure.ac): Invoke gl_PREREQ_READ.
627         * doc/posix-functions/read.texi: Mention the problem on MSVC.
628
629 2011-09-23  Bruno Haible  <bruno@clisp.org>
630
631         close: Support for MSVC 9.
632         * lib/close.c: Include <errno.h>, msvc-inval.h.
633         (close_nothrow): New function.
634         (rpl_close): Use it.
635         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
636         invalid parameter handler.
637         * modules/close (Depends-on): Add msvc-inval.
638         * modules/dup2-tests (Depends-on): Add close.
639         * modules/dup3-tests (Depends-on): Likewise.
640         * modules/fcntl-tests (Depends-on): Likewise.
641         * modules/spawn-pipe-tests (Depends-on): Likewise.
642         * modules/unistd-safer-tests (Depends-on): Likewise.
643         * doc/posix-functions/close.texi: Mention the problem on MSVC.
644
645 2011-09-23  Bruno Haible  <bruno@clisp.org>
646
647         New module 'dup'.
648         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
649         Allow replacement.
650         * lib/dup.c: New file.
651         * lib/fchdir.c (rpl_dup): Remove function.
652         * m4/dup.m4: New file.
653         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
654         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
655         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
656         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
657         * modules/dup: New file.
658         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
659         'dup' module is in use.
660         * modules/fdopendir (Depends-on): Add dup.
661         * modules/fdutimensat-tests (Depends-on): Likewise.
662         * modules/fts (Depends-on): Likewise.
663         * modules/futimens-tests (Depends-on): Likewise.
664         * modules/posix_spawnp-tests (Depends-on): Likewise.
665         * modules/unistd-safer-tests (Depends-on): Likewise.
666         * modules/utimens-tests (Depends-on): Likewise.
667         * doc/posix-functions/dup.texi: Mention the new module and the problem
668         on MSVC.
669
670 2011-09-23  Bruno Haible  <bruno@clisp.org>
671
672         getdtablesize: Support for MSVC 9.
673         * lib/getdtablesize.c: Include msvc-inval.h.
674         (_setmaxstdio_nothrow): New function.
675         (_setmaxstdio): Redefine it.
676         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
677         * modules/getdtablesize (Depends-on): Add msvc-inval.
678         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
679
680 2011-09-23  Bruno Haible  <bruno@clisp.org>
681
682         signal-h: Rename from signal.
683         * modules/signal-h: Renamed from modules/signal.
684         * modules/pthread_sigmask (Depends-on): Update.
685         * modules/raise (Depends-on): Likewise.
686         * modules/sigaction (Depends-on): Likewise.
687         * modules/sigpipe (Depends-on): Likewise.
688         * modules/sigprocmask (Depends-on): Likewise.
689         * modules/sys_select (Depends-on): Likewise.
690         * modules/signal-h-tests: Renamed from modules/signal-tests.
691         (Files, Depends-on, Makefile.am): Update.
692         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
693         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
694         (Files, Makefile.am): Update.
695         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
696         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
697         * modules/signal: New placeholder file.
698         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
699         * doc/posix-headers/signal.texi: Update.
700         * NEWS: Mention the change.
701
702 2011-09-23  Bruno Haible  <bruno@clisp.org>
703
704         sigprocmask: Avoid crashes through signal() on MSVC 9.
705         * lib/sigprocmask.c: Include msvc-inval.h.
706         (signal_nothrow): New function.
707         (signal): Redefine it.
708         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
709         * modules/sigprocmask (Depends-on): Add msvc-inval.
710         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
711
712 2011-09-23  Bruno Haible  <bruno@clisp.org>
713
714         Tests for module 'raise'.
715         * modules/raise-tests: New file.
716         * tests/test-raise.c: New file.
717
718         raise: Support for MSVC.
719         * lib/signal.in.h (raise): New declaration.
720         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
721         for native Windows platforms.
722         * m4/raise.m4: New file.
723         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
724         HAVE_RAISE, REPLACE_RAISE.
725         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
726         REPLACE_RAISE.
727         * modules/raise (Status, Notice): Remove fields.
728         (Files): Add m4/raise.m4.
729         (Depends-on): Add signal, msvc-inval.
730         (configure.ac): Use the common idioms.
731         (Maintainer): Add me.
732         * tests/test-signal-c++.cc: Check the signature of raise.
733         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
734
735 2011-09-23  Bruno Haible  <bruno@clisp.org>
736
737         pipe2: Fix compilation on pre-C99 compilers.
738         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
739
740 2011-09-23  Bruno Haible  <bruno@clisp.org>
741
742         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
743         * lib/msvc-nothrow.h: New file.
744         * lib/msvc-nothrow.c: New file.
745         * m4/msvc-nothrow.m4: New file.
746         * modules/msvc-nothrow: New file.
747         * lib/dup2.c: Include msvc-nothrow.h.
748         (rpl_dup2): No need to protect _get_osfhandle call here.
749         * lib/accept4.c: Include msvc-nothrow.h.
750         * lib/error.c: Likewise.
751         * lib/fcntl.c: Likewise.
752         * lib/lseek.c: Likewise.
753         * lib/nonblocking.c: Likewise.
754         * lib/poll.c: Likewise.
755         * lib/read.c: Likewise.
756         * lib/select.c: Likewise.
757         * lib/sockets.h: Likewise.
758         * lib/sockets.c: Likewise.
759         * lib/stdio-read.c: Likewise.
760         * lib/stdio-write.c: Likewise.
761         * lib/write.c: Likewise.
762         * lib/w32sock.h: Likewise.
763         * lib/w32spawn.h: Likewise.
764         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
765         * lib/fsync.c: Likewise.
766         * lib/isapipe.c: Likewise.
767         * modules/dup2 (Depends-on): Add msvc-nothrow.
768         * modules/accept4 (Depends-on): Likewise.
769         * modules/error (Depends-on): Likewise.
770         * modules/fcntl (Depends-on): Likewise.
771         * modules/lseek (Depends-on): Likewise.
772         * modules/nonblocking (Depends-on): Likewise.
773         * modules/poll (Depends-on): Likewise.
774         * modules/read (Depends-on): Likewise.
775         * modules/select (Depends-on): Likewise.
776         * modules/sockets (Depends-on): Likewise.
777         * modules/sigpipe (Depends-on): Likewise.
778         * modules/write (Depends-on): Likewise.
779         * modules/accept (Depends-on): Likewise.
780         * modules/bind (Depends-on): Likewise.
781         * modules/connect (Depends-on): Likewise.
782         * modules/gethostname (Depends-on): Likewise.
783         * modules/getpeername (Depends-on): Likewise.
784         * modules/getsockname (Depends-on): Likewise.
785         * modules/getsockopt (Depends-on): Likewise.
786         * modules/ioctl (Depends-on): Likewise.
787         * modules/listen (Depends-on): Likewise.
788         * modules/recv (Depends-on): Likewise.
789         * modules/recvfrom (Depends-on): Likewise.
790         * modules/send (Depends-on): Likewise.
791         * modules/sendto (Depends-on): Likewise.
792         * modules/setsockopt (Depends-on): Likewise.
793         * modules/shutdown (Depends-on): Likewise.
794         * modules/socket (Depends-on): Likewise.
795         * modules/execute (Depends-on): Likewise.
796         * modules/spawn-pipe (Depends-on): Likewise.
797         * modules/flock (Depends-on): Likewise.
798         * modules/fsync (Depends-on): Likewise.
799         * modules/isapipe (Depends-on): Likewise.
800         * tests/test-cloexec.c: Include msvc-nothrow.h.
801         * tests/test-dup-safer.c: Likewise.
802         * tests/test-dup2.c: Likewise.
803         * tests/test-dup3.c: Likewise.
804         * tests/test-fcntl.c: Likewise.
805         * tests/test-pipe.c: Likewise.
806         * tests/test-pipe2.c: Likewise.
807         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
808         * modules/unistd-safer-tests (Depends-on): Likewise.
809         * modules/dup2-tests (Depends-on): Likewise.
810         * modules/dup3-tests (Depends-on): Likewise.
811         * modules/fcntl-tests (Depends-on): Likewise.
812         * modules/pipe-posix-tests (Depends-on): Likewise.
813         * modules/pipe2-tests (Depends-on): Likewise.
814
815 2011-09-23  Bruno Haible  <bruno@clisp.org>
816
817         dup2: Make code more maintainable.
818         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
819         (rpl_dup2): Use it.
820         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
821         * modules/dup2 (configure.ac): Invoke it.
822         Reported by Paul Eggert.
823
824 2011-09-23  Bruno Haible  <bruno@clisp.org>
825
826         msvc-inval: Fix compilation error.
827         * lib/msvc-inval.h: Include <excpt.h>.
828
829 2011-09-23  Bruno Haible  <bruno@clisp.org>
830
831         mkdir: Tweak for MSVC 9.
832         * lib/sys_stat.in.h: Update comments.
833         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
834
835         Tests for module 'chdir'.
836         * modules/chdir-tests: New file.
837         * tests/test-chdir.c: New file.
838
839         New module 'chdir'.
840         * modules/chdir: New file.
841         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
842         (chdir): New declaration.
843         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
844         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
845         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
846         * tests/test-unistd-c++.cc: Check signature of chdir.
847         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
848         * modules/chdir-long (Depends-on): Add chdir.
849         * modules/fchdir (Depends-on): Likewise.
850         * modules/rename (Depends-on): Likewise.
851         * modules/savewd (Depends-on): Likewise.
852
853         rmdir: Support for mingw, MSVC 9.
854         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
855         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
856
857         getcwd: Tweak for MSVC 9.
858         * lib/unistd.in.h: Update comments.
859         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
860
861 2011-09-22  Bruno Haible  <bruno@clisp.org>
862
863         strerror_r-posix: Avoid a link error on MSVC.
864         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
865         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
866
867 2011-09-22  Bruno Haible  <bruno@clisp.org>
868
869         select: Avoid link errors on MSVC.
870         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
871         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
872         * modules/pselect (Link): Likewise.
873         * NEWS: Mention the change.
874         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
875         test-select-stdin against $(LIB_SELECT).
876         * modules/pselect-tests (Makefile.am): Link test-pselect against
877         $(LIB_SELECT).
878
879 2011-09-22  Bruno Haible  <bruno@clisp.org>
880
881         select: Avoid compilation error on MSVC.
882         * lib/select.c: Don't include <stdbool.h>.
883
884 2011-09-21  Bruno Haible  <bruno@clisp.org>
885
886         Consolidate all uses of PATH_MAX in *.m4 files.
887         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
888         macros.
889         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
890         and gl_PATHMAX_SNIPPET.
891         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
892         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
893         * modules/chdir-long (Files): Add m4/pathmax.m4.
894         * modules/getcwd (Files): Likewise.
895
896 2011-09-21  Bruno Haible  <bruno@clisp.org>
897
898         ftruncate: Un-deprecate, concentrate on Win32 support.
899         * modules/ftruncate (Status, Notice): Remove sections.
900         (Depends-on): Add largefile.
901         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
902         non-mingw platforms.
903         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
904         include <io.h>.
905         * modules/perror-tests (Depends-on): Add ftruncate.
906         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
907         'ftruncate' module.
908
909 2011-09-21  Bruno Haible  <bruno@clisp.org>
910
911         Add dependencies to new dirent related modules.
912         * modules/opendir (Depends-on): Add closedir.
913         * modules/getcwd (Depends-on): Add opendir, closedir.
914         * modules/dirent-safer-tests (Depends-on): Likewise.
915         * modules/fdopendir-tests (Depends-on): Likewise.
916         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
917         * modules/renameat-tests (Depends-on): Likewise.
918
919 2011-09-21  Bruno Haible  <bruno@clisp.org>
920
921         opendir: Avoid compilation error on mingw.
922         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
923         * modules/opendir (Depends-on): Add unistd.
924
925 2011-09-21  Bruno Haible  <bruno@clisp.org>
926
927         ftruncate tests: Avoid a test failure on mingw.
928         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
929
930 2011-09-21  Bruno Haible  <bruno@clisp.org>
931
932         select tests: Avoid test failures on OSF/1 5.1 and mingw.
933         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
934         native Windows.
935
936 2011-09-21  Bruno Haible  <bruno@clisp.org>
937
938         New module 'fdopen'.
939         * lib/stdio.in.h (fdopen): New declaration.
940         * lib/fdopen.c: New file.
941         * m4/fdopen.m4: New file.
942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
943         REPLACE_FDOPEN.
944         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
945         REPLACE_FDOPEN.
946         * modules/fdopen: New file.
947         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
948         * tests/test-stdio-c++.cc: Check signature of fdopen.
949         * doc/posix-functions/fdopen.texi: Mention the new module.
950
951 2011-09-21  Bruno Haible  <bruno@clisp.org>
952
953         unlockpt tests: Avoid test failure on NetBSD 5.1.
954         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
955         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
956
957 2011-09-21  Bruno Haible  <bruno@clisp.org>
958
959         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
960         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
961         * tests/test-getlogin_r.c (main): Likewise.
962
963 2011-09-20  Bruno Haible  <bruno@clisp.org>
964
965         time tests: Don't require pid_t.
966         * doc/posix-headers/time.texi: Revert last change.
967         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
968         * tests/test-time.c: Comment out the check for pid_t.
969
970 2011-09-20  Bruno Haible  <bruno@clisp.org>
971
972         fsync tests: Avoid a test failure on mingw.
973         * tests/test-fsync.c (main): Allow a failure with EIO.
974
975 2011-09-20  Bruno Haible  <bruno@clisp.org>
976
977         euidaccess: Update comments.
978         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
979
980 2011-09-20  Bruno Haible  <bruno@clisp.org>
981
982         Ensure EBADF returns for socket functions on mingw.
983         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
984         descriptor is invalid.
985         * lib/bind.c (rpl_bind): Likewise.
986         * lib/connect.c (rpl_connect): Likewise.
987         * lib/getpeername.c (rpl_getpeername): Likewise.
988         * lib/getsockname.c (rpl_getsockname): Likewise.
989         * lib/getsockopt.c (rpl_getsockopt): Likewise.
990         * lib/listen.c (rpl_listen): Likewise.
991         * lib/recv.c (rpl_recv): Likewise.
992         * lib/recvfrom.c (rpl_recvfrom): Likewise.
993         * lib/send.c (rpl_send): Likewise.
994         * lib/sendto.c (rpl_sendto): Likewise.
995         * lib/setsockopt.c (rpl_setsockopt): Likewise.
996         * lib/shutdown.c (rpl_shutdown): Likewise.
997
998 2011-09-20  Bruno Haible  <bruno@clisp.org>
999
1000         select tests: EBADF tests.
1001         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
1002         test_bad_fd): New functions.
1003         (test_function): Invoke also test_bad_fd.
1004
1005 2011-09-20  Bruno Haible  <bruno@clisp.org>
1006
1007         Tests for module 'posix_spawn_file_actions_addopen.
1008         * modules/posix_spawn_file_actions_addopen-tests: New file.
1009         * tests/test-posix_spawn_file_actions_addopen.c: New file.
1010
1011         Tests for module 'posix_spawn_file_actions_adddup2'.
1012         * modules/posix_spawn_file_actions_adddup2-tests: New file.
1013         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
1014
1015         Tests for module 'posix_spawn_file_actions_addclose'.
1016         * modules/posix_spawn_file_actions_addclose-tests: New file.
1017         * tests/test-posix_spawn_file_actions_addclose.c: New file.
1018
1019 2011-09-20  Bruno Haible  <bruno@clisp.org>
1020
1021         Tests for module 'unlockpt'.
1022         * modules/unlockpt-tests: New file.
1023         * tests/test-unlockpt.c: New file.
1024         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
1025
1026         Tests for module 'grantpt'.
1027         * modules/grantpt-tests: New file.
1028         * tests/test-grantpt.c: New file.
1029         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
1030
1031 2011-09-20  Bruno Haible  <bruno@clisp.org>
1032
1033         freopen tests: EBADF tests.
1034         * tests/test-freopen.c: Include errno.h, unistd.h.
1035         (main): Add tests for EBADF, commented out for the moment.
1036
1037         fclose tests: EBADF tests.
1038         * tests/test-fclose.c (main): Add tests for EBADF.
1039
1040         fflush tests: EBADF tests.
1041         * tests/test-fflush.c: Include errno.h, macros.h.
1042         (main): Add tests for EBADF.
1043
1044         ftello tests: EBADF tests.
1045         * tests/test-ftello4.sh: New file.
1046         * tests/test-ftello4.c: New file.
1047         * modules/ftello-tests (Files): Add them.
1048         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
1049
1050         fseeko tests: EBADF tests.
1051         * tests/test-fseeko4.sh: New file.
1052         * tests/test-fseeko4.c: New file.
1053         * modules/fseeko-tests (Files): Add them.
1054         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
1055
1056         Tests for function fputc().
1057         * modules/fputc-tests: New file.
1058         * tests/test-fputc.c: New file.
1059         * modules/stdio-tests (Depends-on): Add fputc-tests.
1060
1061         Tests for function fgetc().
1062         * modules/fgetc-tests: New file.
1063         * tests/test-fgetc.c: New file.
1064         * modules/stdio-tests (Depends-on): Add fgetc-tests.
1065
1066         Tests for function fdopen().
1067         * modules/fdopen-tests: New file.
1068         * tests/test-fdopen.c: New file.
1069         * modules/stdio-tests (Depends-on): Add fdopen-tests.
1070
1071         Tests for module 'vdprintf'.
1072         * modules/vdprintf-tests: New file.
1073         * tests/test-vdprintf.c: New file.
1074
1075         Tests for module 'dprintf'.
1076         * modules/dprintf-tests: New file.
1077         * tests/test-dprintf.c: New file.
1078
1079 2011-09-20  Bruno Haible  <bruno@clisp.org>
1080
1081         Tests for module 'ioctl'.
1082         * modules/ioctl-tests: New file.
1083         * tests/test-ioctl.c: New file.
1084
1085 2011-09-20  Bruno Haible  <bruno@clisp.org>
1086
1087         fcntl tests: EBADF tests.
1088         * tests/test-fcntl.c (main): Add more tests for EBADF.
1089
1090 2011-09-20  Bruno Haible  <bruno@clisp.org>
1091
1092         utimensat tests: EBADF tests.
1093         * tests/test-utimensat.c (main): Add tests for EBADF.
1094
1095         renameat tests: EBADF tests.
1096         * tests/test-renameat.c (main): Add tests for EBADF.
1097
1098         mkfifoat tests: EBADF tests.
1099         * tests/test-mkfifoat.c (main): Add tests for EBADF.
1100
1101         readlinkat tests: EBADF tests.
1102         * tests/test-readlinkat.c (main): Add tests for EBADF.
1103
1104         symlinkat tests: EBADF tests.
1105         * tests/test-symlinkat.c (main): Add tests for EBADF.
1106
1107         linkat tests: EBADF tests.
1108         * tests/test-linkat.c (main): Add tests for EBADF.
1109
1110         Tests for module 'faccessat'.
1111         * modules/faccessat-tests: New file.
1112         * tests/test-faccessat.c: New file.
1113
1114         fdopendir tests: EBADF tests.
1115         * tests/test-fdopendir.c (main): Add more tests for EBADF.
1116
1117         openat tests: EBADF tests.
1118         * tests/test-fchownat.c (main): Add tests for EBADF.
1119         * tests/test-fstatat.c (main): Likewise.
1120         * tests/test-mkdirat.c (main): Likewise.
1121         * tests/test-openat.c (main): Likewise.
1122         * tests/test-unlinkat.c (main): Likewise.
1123         * tests/test-fchmodat.c: New file.
1124         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
1125         (Makefile.am): Also run 'test-fchmodat'.
1126
1127 2011-09-20  Bruno Haible  <bruno@clisp.org>
1128
1129         utimens, futimens, fdutimensat tests: EBADF tests.
1130         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
1131
1132         Tests for function fstat().
1133         * modules/fstat-tests: New file.
1134         * tests/test-fstat.c: New file.
1135         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
1136
1137 2011-09-20  Bruno Haible  <bruno@clisp.org>
1138
1139         test-ttyname_r tests: EBADF tests.
1140         * tests/test-ttyname_r.c (main): Add tests for EBADF.
1141
1142         Tests for module 'isatty'.
1143         * modules/isatty-tests: New file.
1144         * tests/test-isatty.c: New file.
1145
1146         Tests for module 'write'.
1147         * modules/write-tests: New file.
1148         * tests/test-write.c: New file.
1149
1150         Tests for module 'read'.
1151         * modules/read-tests: New file.
1152         * tests/test-read.c: New file.
1153
1154         pwrite tests: EBADF tests.
1155         * tests/test-pwrite.c (main): Add tests for EBADF.
1156
1157         pread tests: EBADF tests.
1158         * tests/test-pread.c (main): Add tests for EBADF.
1159
1160         lseek tests: EBADF tests.
1161         * tests/test-lseek.c (main): Add more tests for EBADF.
1162
1163         Tests for module 'ftruncate'.
1164         * modules/ftruncate-tests: New file.
1165         * tests/test-ftruncate.sh: New file.
1166         * tests/test-ftruncate.c: New file.
1167
1168         fsync tests: EBADF tests.
1169         * tests/test-fsync.c (main): Add more tests for EBADF.
1170
1171         fdatasync tests: EBADF tests.
1172         * tests/test-fdatasync.c (main): Add more tests for EBADF.
1173
1174         Tests for module 'fchown'.
1175         * modules/fchown-tests: New file.
1176         * tests/test-fchown.c: New file.
1177
1178         Tests for module 'fchmod'.
1179         * modules/fchmod-tests: New file.
1180         * tests/test-fchmod.c: New file.
1181
1182         fchdir tests: EBADF tests.
1183         * tests/test-fchdir.c (main): Add more tests for EBADF.
1184
1185         dup2 tests: EBADF tests.
1186         * tests/test-dup2.c (main): Add more tests for EBADF.
1187
1188         Tests for module 'dup'.
1189         * modules/dup-tests: New file.
1190         * tests/test-dup.c: New file.
1191
1192         Tests for module 'close'.
1193         * modules/close-tests: New file.
1194         * tests/test-close.c: New file.
1195
1196 2011-09-20  Bruno Haible  <bruno@clisp.org>
1197
1198         Tests for module 'shutdown'.
1199         * modules/shutdown-tests: New file.
1200         * tests/test-shutdown.c: New file.
1201
1202         Tests for module 'setsockopt'.
1203         * modules/setsockopt-tests: New file.
1204         * tests/test-setsockopt.c: New file.
1205
1206         Tests for module 'sendto'.
1207         * modules/sendto-tests: New file.
1208         * tests/test-sendto.c: New file.
1209
1210         Tests for module 'send'.
1211         * modules/send-tests: New file.
1212         * tests/test-send.c: New file.
1213
1214         Tests for module 'recvfrom'.
1215         * modules/recvfrom-tests: New file.
1216         * tests/test-recvfrom.c: New file.
1217
1218         Tests for module 'recv'.
1219         * modules/recv-tests: New file.
1220         * tests/test-recv.c: New file.
1221
1222         Tests for module 'listen'.
1223         * modules/listen-tests: New file.
1224         * tests/test-listen.c: New file.
1225
1226         Tests for module 'getsockopt'.
1227         * modules/getsockopt-tests: New file.
1228         * tests/test-getsockopt.c: New file.
1229
1230         Tests for module 'getsockname'.
1231         * modules/getsockname-tests: New file.
1232         * tests/test-getsockname.c: New file.
1233
1234         Tests for module 'getpeername'.
1235         * modules/getpeername-tests: New file.
1236         * tests/test-getpeername.c: New file.
1237
1238         Tests for module 'connect'.
1239         * modules/connect-tests: New file.
1240         * tests/test-connect.c: New file.
1241
1242         Tests for module 'bind'.
1243         * modules/bind-tests: New file.
1244         * tests/test-bind.c: New file.
1245
1246         accept4 tests: Fix for native Windows.
1247         * tests/test-accept4.c: Include sockets.h.
1248         (main): Invoke gl_sockets_startup.
1249         * modules/accept4-tests (Depends-on): Add sockets.
1250
1251         accept tests: Fix for native Windows.
1252         * tests/test-accept.c: Include sockets.h.
1253         (main): Invoke gl_sockets_startup.
1254         * modules/accept-tests (Depends-on): Add sockets.
1255
1256 2011-09-19  Bruno Haible  <bruno@clisp.org>
1257
1258         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
1259         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
1260         do...while(0).
1261         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
1262         Suggested by Paul Eggert.
1263
1264 2011-09-19  Bruno Haible  <bruno@clisp.org>
1265
1266         sched: Ensure pid_t is defined.
1267         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
1268         not define pid_t.
1269         * lib/sched.in.h: Include <sys/types.h>.
1270         * doc/posix-headers/sched.texi: Mention the pid_t problem.
1271         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1272
1273 2011-09-19  Bruno Haible  <bruno@clisp.org>
1274
1275         msvc-inval: Ensure the entire expansion is a single statement.
1276         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
1277         of braces.
1278
1279 2011-09-19  Jim Meyering  <meyering@redhat.com>
1280
1281         tests: use printf, not echo in init.sh's warn_ function
1282         * tests/init.sh (warn_): Use printf, not echo.  The latter would
1283         misbehave when given strings containing a backslash or starting
1284         with e.g., -n.  James Youngman suggested setting IFS.
1285
1286 2011-09-19  Eric Blake  <eblake@redhat.com>
1287
1288         futimens: enhance test
1289         * tests/test-futimens.h (test_futimens): Also check for EBADF on
1290         closed non-negative fd.
1291
1292         date: accept 'hence' as opposite of 'ago'
1293         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
1294         * tests/test-parse-datetime.c (main): Enhance test.
1295         Suggested by Jesse Wilson.
1296
1297 2011-09-19  Jim Meyering  <meyering@redhat.com>
1298
1299         getcwd: don't fail in a deep directory on a system without openat
1300         Before this change, getcwd would fail when called from a directory
1301         of depth PATH_MAX / 3 or greater.  That was due to the fact that
1302         the non-openat implementation used "..", "../..", "../../..", etc.
1303         to access ancestor directories.  With too many, that string would
1304         be longer than PATH_MAX.
1305         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
1306         using gnulib's openat replacement.
1307         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
1308         we're using the replacement function.
1309
1310 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
1311
1312         maint.mk: avoid warnings from perl about missing files
1313         * top/maint.mk (def_sym_regex): Ignore files listed in
1314         $(gl_other_headers_) that do not exist, say because a project
1315         does not use a corresponding module.
1316
1317 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1318
1319         stat: use pathmax.h only if needed
1320         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
1321         This is better for Emacs, which does not have a mingw port and
1322         therefore can avoid the pathmax module.
1323
1324         utimens: remove dependency on dup2
1325         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
1326         to work around the Linux kernel bug.
1327         * modules/utimens (Depends-on): Remove dup2.
1328
1329 2011-09-18  Bruno Haible  <bruno@clisp.org>
1330
1331         inet_ntop, inet_pton: Look for it also in libresolv.
1332         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
1333         libnsl, search for it in libresolv.
1334         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1335         Needed on Solaris 7.
1336
1337 2011-09-18  Bruno Haible  <bruno@clisp.org>
1338
1339         accept, accept4 tests: Avoid link error on Solaris.
1340         * modules/accept-tests (Makefile.am): Link test-accept against
1341         $(LIBSOCKET).
1342         * modules/accept4-tests (Makefile.am): Link test-accept4 against
1343         $(LIBSOCKET).
1344
1345         accept4: Avoid link error on Solaris.
1346         * modules/accept4 (Link): New section.
1347
1348         socket functions: Avoid link errors on Solaris.
1349         * modules/accept (Depends-on): Add socketlib.
1350         (Link): New section.
1351         * modules/bind (Depends-on): Add socketlib.
1352         (Link): New section.
1353         * modules/connect (Depends-on): Add socketlib.
1354         (Link): New section.
1355         * modules/getpeername (Depends-on): Add socketlib.
1356         (Link): New section.
1357         * modules/getsockname (Depends-on): Add socketlib.
1358         (Link): New section.
1359         * modules/getsockopt (Depends-on): Add socketlib.
1360         (Link): New section.
1361         * modules/listen (Depends-on): Add socketlib.
1362         (Link): New section.
1363         * modules/recv (Depends-on): Add socketlib.
1364         (Link): New section.
1365         * modules/recvfrom (Depends-on): Add socketlib.
1366         (Link): New section.
1367         * modules/send (Depends-on): Add socketlib.
1368         (Link): New section.
1369         * modules/sendto (Depends-on): Add socketlib.
1370         (Link): New section.
1371         * modules/setsockopt (Depends-on): Add socketlib.
1372         (Link): New section.
1373         * modules/shutdown (Depends-on): Add socketlib.
1374         (Link): New section.
1375         * modules/socket (Depends-on): Add socketlib.
1376         (Link): New section.
1377
1378 2011-09-18  Bruno Haible  <bruno@clisp.org>
1379
1380         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
1381         * tests/test-ptsname.c (main): Terminate the test if it takes longer
1382         than 5 seconds.
1383         * modules/ptsname-tests (configure.ac): Test for alarm.
1384
1385 2011-09-18  Bruno Haible  <bruno@clisp.org>
1386
1387         posix_spawn_file_actions_add*: Fix module dependencies.
1388         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
1389         posix_spawn_file_actions_init.
1390         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
1391         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
1392
1393 2011-09-18  Bruno Haible  <bruno@clisp.org>
1394
1395         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
1396         * tests/test-rename.h (test_rename): Allow error code EEXIST.
1397         * tests/test-renameat.c (main): Likewise.
1398
1399 2011-09-18  Bruno Haible  <bruno@clisp.org>
1400
1401         Tests for module 'accept4'.
1402         * modules/accept4-tests: New file.
1403         * tests/test-accept4.c: New file.
1404
1405 2011-09-18  Bruno Haible  <bruno@clisp.org>
1406
1407         Tests for module 'accept'.
1408         * modules/accept-tests: New file.
1409         * tests/test-accept.c: New file.
1410
1411 2011-09-18  Bruno Haible  <bruno@clisp.org>
1412
1413         dup2: Support for MSVC.
1414         * lib/dup2.c: Include msvc-inval.h.
1415         (rpl_dup2): Handle invalid parameter notifications during dup2 and
1416         _get_osfhandle calls.
1417         * modules/dup2 (Depends-on): Add msvc-inval.
1418         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
1419
1420         New module 'msvc-inval'.
1421         * lib/msvc-inval.h: New file.
1422         * lib/msvc-inval.c: New file.
1423         * m4/msvc-inval.m4: New file.
1424         * modules/msvc-inval: New file.
1425
1426 2011-09-17  Bruno Haible  <bruno@clisp.org>
1427
1428         Tests for module 'pclose'.
1429         * modules/pclose-tests: New file.
1430
1431         New module 'pclose'.
1432         * lib/stdio.in.h (pclose): New declaration.
1433         * lib/pclose.c: New file.
1434         * m4/pclose.m4: New file.
1435         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
1436         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
1437         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
1438         * modules/pclose: New file.
1439         * modules/popen-tests (Depends-on): Add pclose.
1440         * modules/popen-safer-tests (Depends-on): Likewise.
1441         * doc/posix-functions/pclose.texi: Mention the new module.
1442
1443 2011-09-17  Bruno Haible  <bruno@clisp.org>
1444
1445         popen: Support for MSVC.
1446         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
1447         * lib/popen.c (popen): Provide alternate definition for native Windows.
1448         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
1449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
1450         * modules/popen (Depends-on, configure.ac): Update condition.
1451         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
1452         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
1453         fixed.
1454
1455 2011-09-17  Bruno Haible  <bruno@clisp.org>
1456
1457         isnanl, isnand, isnanf: Work around MSVC bug.
1458         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
1459
1460 2011-09-17  Bruno Haible  <bruno@clisp.org>
1461
1462         sys_socket tests: Fix recent mistake.
1463         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
1464
1465 2011-09-17  Bruno Haible  <bruno@clisp.org>
1466
1467         putenv: Support for MSVC.
1468         * modules/putenv (Depends-on): Add environ.
1469         * lib/putenv.c (environ): Disable declaration.
1470         * lib/unistd.in.h: Update comment.
1471
1472 2011-09-17  Bruno Haible  <bruno@clisp.org>
1473
1474         math: Avoid macro redefinition warnings on MSVC.
1475         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
1476         Undefine before redefining.
1477
1478 2011-09-17  Bruno Haible  <bruno@clisp.org>
1479
1480         doc: Mention functions which are declared as macros.
1481         * doc/posix-functions/*[fl].texi: Mention that some functions are
1482         defined as macros with arguments only.
1483
1484 2011-09-17  Bruno Haible  <bruno@clisp.org>
1485
1486         Add dependencies to new dirent related modules.
1487         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
1488         * modules/fts (Depends-on): Likewise.
1489         * modules/glob (Depends-on): Likewise.
1490         * modules/savedir (Depends-on): Likewise.
1491         * modules/scandir (Depends-on): Likewise.
1492         * modules/dirent-safer (Depends-on): Add opendir, closedir.
1493         * modules/fdopendir (Depends-on): Add opendir.
1494
1495 2011-09-17  Bruno Haible  <bruno@clisp.org>
1496
1497         inet_pton: Support for MSVC on Windows Vista or newer.
1498         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
1499         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
1500         HAVE_DECL_INET_PTON is defined.
1501         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1502         On platforms with <winsock2.h>, test whether inet_pton is declared in
1503         <ws2tcpip.h>. If so, arrange to replace it.
1504         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1505         REPLACE_INET_PTON.
1506         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
1507         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
1508         (Depends-on, configure.ac): Update condition.
1509         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
1510
1511 2011-09-17  Bruno Haible  <bruno@clisp.org>
1512
1513         inet_ntop: Support for MSVC on Windows Vista or newer.
1514         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
1515         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
1516         HAVE_DECL_INET_NTOP is defined.
1517         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1518         On platforms with <winsock2.h>, test whether inet_ntop is declared in
1519         <ws2tcpip.h>. If so, arrange to replace it.
1520         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1521         REPLACE_INET_NTOP.
1522         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
1523         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
1524         (Depends-on, configure.ac): Update condition.
1525         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
1526
1527 2011-09-16  Eric Blake  <eblake@redhat.com>
1528
1529         test-fsync: yet another enhancement
1530         * tests/test-fsync.c (main): Also test behavior on read-only text
1531         file.
1532
1533 2011-09-16  Bruno Haible  <bruno@clisp.org>
1534
1535         Enhance fsync, fdatasync tests.
1536         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
1537         * tests/test-fdatasync.c (main): Likewise.
1538
1539 2011-09-16  Bruno Haible  <bruno@clisp.org>
1540
1541         Support for MSVC compiler: Ensure mode_t gets defined.
1542         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
1543         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1544         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1545         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
1546         * tests/test-fcntl-h.c: Check that mode_t is defined.
1547         * tests/test-sys_stat.c: Likewise.
1548         * tests/test-sys_types.c: Likewise.
1549         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
1550         * doc/posix-headers/sys_stat.texi: Likewise.
1551         * doc/posix-headers/sys_types.texi: Likewise.
1552
1553 2011-09-16  Bruno Haible  <bruno@clisp.org>
1554
1555         sys_stat: Support for MSVC.
1556         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
1557         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
1558         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
1559         MSVC.
1560
1561 2011-09-16  Bruno Haible  <bruno@clisp.org>
1562
1563         Support for MSVC compiler: Ensure off_t gets defined.
1564         * lib/unistd.in.h: Include <sys/types.h>.
1565         * tests/test-fcntl-h.c: Check that off_t is defined.
1566         * tests/test-sys_stat.c: Likewise.
1567         * tests/test-sys_types.c: Likewise.
1568
1569 2011-09-16  Eric Blake  <eblake@redhat.com>
1570
1571         fdatasync: port to Solaris
1572         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
1573         * modules/fdatasync (Link): Document it.
1574         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
1575
1576         fdatasync: port to MacOS X 10.7
1577         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
1578         declared.
1579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
1580         * modules/unistd (Makefile.am): Substitute it.
1581         * lib/unistd.in.h (fdatasync): Declare on MacOS.
1582         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
1583
1584         fdatasync: minor improvements
1585         * modules/fdatasync (Depends-on): Add condition for fsync.
1586         * lib/fdatasync.c (fdatasync): Add comment.
1587         * tests/test-unistd-c++.cc: Test fdatasync.
1588
1589         unistd: update refs to newer POSIX
1590         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
1591         Suggested by Bruno Haible.
1592
1593         fdatasync: new module
1594         * modules/fsync (Description): Document difference to fdatasync.
1595         * modules/fdatasync: New module.
1596         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
1597         * lib/fdatasync.c (fdatasync): Likewise.
1598         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
1599         defaults.
1600         * modules/unistd (Makefile.am): Set witnesses.
1601         * lib/unistd.in.h (fdatasync): Declare.
1602         * MODULES.html.sh: Document it.
1603         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
1604         * modules/fdatasync-tests: New test.
1605         * tests/test-fdatasync.c: Likewise.
1606
1607 2011-09-16  Eric Blake  <eblake@redhat.com>
1608
1609         test-fsync: enhance tests
1610         * modules/fsync-tests (Depends-on): Add errno, for mingw.
1611         * tests/test-fsync.c (main): Enhance test.
1612
1613 2011-09-15  Bruno Haible  <bruno@clisp.org>
1614
1615         Support for MSVC compiler: Ensure ssize_t gets defined.
1616         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
1617         * doc/posix-headers/stdio.texi: Likewise.
1618         * modules/stdio (Depends-on): Add ssize_t.
1619         * modules/sys_socket (Depends-on): Likewise.
1620         * modules/sys_types (Depends-on): Likewise.
1621         * modules/sys_uio (Depends-on): Likewise.
1622         * modules/unistd (Depends-on): Likewise.
1623         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
1624         * tests/test-sys_types.c: Check that ssize_t is defined.
1625
1626 2011-09-14  Bruno Haible  <bruno@clisp.org>
1627
1628         Avoid using #, the m4 comment starter character, near brackets.
1629         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
1630         delimiter character in sed expressions.
1631         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1632         Suggested by Eric Blake.
1633
1634         Properly quote AC_CHECK_DECLS' 4th argument.
1635         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
1636         argument.
1637         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1638         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1639         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1640         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
1641         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
1642         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
1643         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
1644         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
1645         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
1646         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
1647         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
1648         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1649         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1650         * m4/isinf.m4 (gl_ISINF): Likewise.
1651         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1652         * m4/readutmp.m4 (gl_READUTMP): Likewise.
1653         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1654         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1655         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1656         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1657         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1658         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1659         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
1660         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1661         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1662         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
1664         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1666         Reported by Eric Blake.
1667
1668         Properly quote AC_CHECK_DECL's 4th argument.
1669         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
1670         argument.
1671         * m4/argp.m4 (gl_ARGP): Likewise.
1672         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1673         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1674         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1675         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1676         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
1677         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
1678         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1679         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1680         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1681         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1682         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1683         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1684         Reported by Eric Blake.
1685
1686 2011-09-14  Eric Blake  <eblake@redhat.com>
1687
1688         opendir: avoid compile warning
1689         * lib/opendir.c (includes): Always include errno.h.
1690         Reported by Tatsuro MATSUOKA.
1691
1692 2011-09-14  Jim Meyering  <meyering@redhat.com>
1693
1694         maint.mk: sc_tight_scope: propagate failure from sub-make
1695         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
1696         Reported by Martin von Gagern.
1697
1698 2011-09-13  Bruno Haible  <bruno@clisp.org>
1699
1700         tempname: Support for MSVC.
1701         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
1702         MSVC.
1703         * modules/tempname (Depends-on): Add fcntl-h.
1704
1705 2011-09-13  Bruno Haible  <bruno@clisp.org>
1706
1707         sys_time: Support for MSVC.
1708         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
1709         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
1710         include <winsock2.h>.
1711         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
1712         function declarations that collide with POSIX.
1713         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
1714         (Makefile.am): Substitute HAVE_WINSOCK2_H.
1715
1716 2011-09-13  Bruno Haible  <bruno@clisp.org>
1717
1718         stat: Support for MSVC.
1719         * lib/stat.c: Include pathmax.h.
1720         * modules/stat (Depends-on): Add pathmax.
1721
1722         pathmax: Support for native Windows.
1723         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
1724
1725 2011-09-12  Bruno Haible  <bruno@clisp.org>
1726
1727         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
1728         * lib/dirent.in.h (struct dirent): New type.
1729         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
1730         DT_WHT): New macros.
1731         (DIR): New type.
1732         (opendir, closedir): Declare only if the module 'opendir' is enabled.
1733         (readdir, rewinddir): New declarations.
1734         * lib/dirent-private.h: New file.
1735         * lib/opendir.c: New file.
1736         * lib/readdir.c: New file.
1737         * lib/rewinddir.c: New file.
1738         * lib/closedir.c: New file.
1739         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
1740         * m4/opendir.m4: New file.
1741         * m4/readdir.m4: New file.
1742         * m4/rewinddir.m4: New file.
1743         * m4/closedir.m4: New file.
1744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
1745         REPLACE_CLOSEDIR here.
1746         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
1747         readdir, rewinddir are declared.
1748         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
1749         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
1750         HAVE_REWINDDIR, HAVE_CLOSEDIR.
1751         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
1752         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
1753         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
1754         * modules/opendir: New file.
1755         * modules/readdir: New file.
1756         * modules/rewinddir: New file.
1757         * modules/closedir: New file.
1758         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
1759         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
1760         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
1761         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
1762         * NEWS: Mention the 'fchdir' change.
1763
1764 2011-09-11  Bruno Haible  <bruno@clisp.org>
1765
1766         asm-underscore.m4: Support for MSVC.
1767         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
1768         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
1769
1770 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
1771
1772         Doc about crypt functions.
1773         * doc/posix-functions/crypt.texi: Expand range of glibc versions
1774         needing for _GNU_SOURCE to get crypt.
1775         * doc/posix-functions/encrypt.texi: Likewise.
1776         * doc/posix-functions/setkey.texi: Likewise.
1777
1778 2011-09-11  Bruno Haible  <bruno@clisp.org>
1779
1780         doc: Update regarding MSVC 9.
1781         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
1782         tested".
1783         * doc/posix-functions/*.texi: Update with info about MSVC 9.
1784         * doc/posix-headers/*.texi: Likewise.
1785         * doc/pastposix-functions/*.texi: Likewise.
1786         * doc/glibc-functions/*.texi: Likewise.
1787         * doc/glibc-headers/*.texi: Likewise.
1788
1789 2011-09-11  Bruno Haible  <bruno@clisp.org>
1790
1791         unistd et al.: Don't assume <unistd.h> exists.
1792         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
1793         does not exist.
1794         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
1795         exist. But include <stdlib.h>.
1796         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
1797         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
1798         symlink() does not exist.
1799         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
1800         include <io.h> instead.
1801         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
1802         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
1803         include <direct.h> instead.
1804         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1805         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1806         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
1807         <io.h> instead.
1808         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
1809         correctly if the system does not have hard links.
1810         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
1811         <direct.h> instead.
1812         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
1813         it when looking for function declarations.
1814         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
1815         <direct.h> and <io.h> instead.
1816         * doc/posix-headers/unistd.texi: More details about MSVC problem.
1817
1818 2011-09-11  Bruno Haible  <bruno@clisp.org>
1819
1820         strcase: Support for MSVC.
1821         * modules/strcase (Status, Notice): Remove obsoletion mark.
1822         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
1823         * doc/posix-functions/strncasecmp.texi: Likewise.
1824
1825         strings: Don't assume <strings.h> exists.
1826         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
1827         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
1828         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
1829         * doc/posix-headers/strings.texi: Mention the MSVC problem.
1830
1831 2011-09-11  Bruno Haible  <bruno@clisp.org>
1832
1833         dirent: Don't assume <dirent.h> exists.
1834         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
1835         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
1836         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
1837         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
1838
1839 2011-09-11  Bruno Haible  <bruno@clisp.org>
1840
1841         Fix wint_t on MSVC.
1842         * lib/wchar.in.h (wint_t): On MSVC, override it.
1843         * lib/wctype.in.h (wint_t): Likewise.
1844         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
1845         MSVC.
1846         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
1847         * doc/posix-headers/wctype.texi: Likewise.
1848
1849 2011-09-11  Bruno Haible  <bruno@clisp.org>
1850
1851         sys_types: Fix typo.
1852         * lib/sys_types.in.h: Fix typo in comment.
1853         Reported by Paul Eggert.
1854
1855         Support for MSVC compiler: Ensure size_t gets defined.
1856         * modules/strings (Depends-on): Add 'sys_types'.
1857         * modules/sys_uio (Depends-on): Likewise.
1858         * lib/sys_uio.in.h: Update comment.
1859
1860         C++ tests for module 'sys_types'.
1861         * modules/sys_types-c++-tests: New file.
1862         * tests/test-sys_types-c++.cc: New file.
1863
1864         Tests for module 'sys_types'.
1865         * modules/sys_types-tests: New file.
1866         * tests/test-sys_types.c: New file.
1867
1868         New module 'sys_types'.
1869         * lib/sys_types.in.h: New file.
1870         * m4/sys_types_h.m4: New file.
1871         * modules/sys_types: New file.
1872         * doc/posix-headers/sys_types.texi: Mention the new module and the
1873         size_t problem on MSVC 9.
1874
1875 2011-09-11  Bruno Haible  <bruno@clisp.org>
1876
1877         Support for MSVC compiler: Avoid division by a literal 0.
1878         * lib/math.in.h (NAN): Define through a function call also on MSVC.
1879         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
1880         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
1881         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
1882         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
1883         * tests/infinity.h: New file.
1884         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
1885         on MSVC.
1886         * tests/test-ceilf1.c: Include infinity.h.
1887         (main): Use Infinityf.
1888         * tests/test-ceil1.c: Include infinity.h.
1889         (main): Use Infinityd.
1890         * tests/test-ceill.c: Include infinity.h.
1891         (main): Use Infinityl.
1892         * tests/test-dprintf-posix.c: Include infinity.h.
1893         (test_function): Use Infinityd.
1894         * tests/test-floorf1.c: Include infinity.h.
1895         (main): Use Infinityf.
1896         * tests/test-floor1.c: Include infinity.h.
1897         (main): Use Infinityd.
1898         * tests/test-floorl.c: Include infinity.h.
1899         (main): Use Infinityl.
1900         * tests/test-fprintf-posix.c: Include infinity.h.
1901         (test_function): Use Infinityd.
1902         * tests/test-frexp.c: Include infinity.h.
1903         (main): Use Infinityd.
1904         * tests/test-frexpl.c: Include infinity.h.
1905         (main): Use Infinityl.
1906         * tests/test-isfinite.c: Include infinity.h.
1907         (test_isfinitef): Use Infinityf.
1908         (test_isfinited): Use Infinityd.
1909         (test_isfinitel): Use Infinityl.
1910         * tests/test-isinf.c: Include infinity.h.
1911         (test_isinff): Use Infinityf.
1912         (test_isinfd): Use Infinityd.
1913         (test_isinfl): Use Infinityl.
1914         * tests/test-isnan.c: Include infinity.h.
1915         (test_float): Use Infinityf.
1916         (test_double): Use Infinityd.
1917         (test_long_double): Use Infinityl.
1918         * tests/test-isnanf.h: Include infinity.h.
1919         (main): Use Infinityf.
1920         * tests/test-isnand.h: Include infinity.h.
1921         (main): Use Infinityd.
1922         * tests/test-isnanl.h: Include infinity.h.
1923         (main): Use Infinityl.
1924         * tests/test-ldexpl.c: Include infinity.h.
1925         (main): Use Infinityl.
1926         * tests/test-printf-posix.h: Include infinity.h.
1927         (test_function): Use Infinityd.
1928         * tests/test-roundf1.c: Include infinity.h.
1929         (main): Use Infinityf.
1930         * tests/test-round1.c: Include infinity.h.
1931         (main): Use Infinityd.
1932         * tests/test-roundl.c: Include infinity.h.
1933         (main): Use Infinityl.
1934         * tests/test-signbit.c: Include infinity.h.
1935         (test_signbitf): Use Infinityf.
1936         (test_signbitd): Use Infinityd.
1937         (test_signbitl): Use Infinityl.
1938         * tests/test-snprintf-posix.h: Include infinity.h.
1939         (test_function): Use Infinityd, Infinityl.
1940         * tests/test-sprintf-posix.h: Include infinity.h.
1941         (test_function): Use Infinityd, Infinityl.
1942         * tests/test-truncf1.c: Include infinity.h.
1943         (main): Use Infinityf.
1944         * tests/test-trunc1.c: Include infinity.h.
1945         (main): Use Infinityd.
1946         * tests/test-truncl.c: Include infinity.h.
1947         (main): Use Infinityl.
1948         * tests/test-vasnprintf-posix.c: Include infinity.h.
1949         (test_function): Use Infinityd, Infinityl.
1950         * tests/test-vasprintf-posix.c: Include infinity.h.
1951         (test_function): Use Infinityd, Infinityl.
1952         * modules/ceilf-tests (Files): Add tests/infinity.h.
1953         * modules/ceil-tests (Files): Likewise.
1954         * modules/ceill-tests (Files): Likewise.
1955         * modules/dprintf-posix-tests (Files): Likewise.
1956         * modules/floorf-tests (Files): Likewise.
1957         * modules/floor-tests (Files): Likewise.
1958         * modules/floorl-tests (Files): Likewise.
1959         * modules/fprintf-posix-tests (Files): Likewise.
1960         * modules/frexp-tests (Files): Likewise.
1961         * modules/frexp-nolibm-tests (Files): Likewise.
1962         * modules/frexpl-tests (Files): Likewise.
1963         * modules/frexpl-nolibm-tests (Files): Likewise.
1964         * modules/isfinite-tests (Files): Likewise.
1965         * modules/isinf-tests (Files): Likewise.
1966         * modules/isnan-tests (Files): Likewise.
1967         * modules/isnanf-tests (Files): Likewise.
1968         * modules/isnanf-nolibm-tests (Files): Likewise.
1969         * modules/isnand-tests (Files): Likewise.
1970         * modules/isnand-nolibm-tests (Files): Likewise.
1971         * modules/isnanl-tests (Files): Likewise.
1972         * modules/isnanl-nolibm-tests (Files): Likewise.
1973         * modules/ldexpl-tests (Files): Likewise.
1974         * modules/printf-posix-tests (Files): Likewise.
1975         * modules/roundf-tests (Files): Likewise.
1976         * modules/round-tests (Files): Likewise.
1977         * modules/roundl-tests (Files): Likewise.
1978         * modules/signbit-tests (Files): Likewise.
1979         * modules/snprintf-posix-tests (Files): Likewise.
1980         * modules/sprintf-posix-tests (Files): Likewise.
1981         * modules/truncf-tests (Files): Likewise.
1982         * modules/trunc-tests (Files): Likewise.
1983         * modules/truncl-tests (Files): Likewise.
1984         * modules/vasnprintf-posix-tests (Files): Likewise.
1985         * modules/vasprintf-posix-tests (Files): Likewise.
1986         * modules/vdprintf-posix-tests (Files): Likewise.
1987         * modules/vfprintf-posix-tests (Files): Likewise.
1988         * modules/vprintf-posix-tests (Files): Likewise.
1989         * modules/vsnprintf-posix-tests (Files): Likewise.
1990         * modules/vsprintf-posix-tests (Files): Likewise.
1991         * modules/xprintf-posix-tests (Files): Likewise.
1992
1993 2011-09-11  Bruno Haible  <bruno@clisp.org>
1994
1995         Ensure pid_t gets defined.
1996         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1997         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1998         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1999         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2000         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
2001         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2002         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
2003         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2004         * tests/test-fcntl-h.c: Check that pid_t is defined.
2005         * tests/test-sched.c: Likewise.
2006         * tests/test-termios.c: Likewise.
2007         * tests/test-time.c: Likewise.
2008         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
2009         * doc/posix-headers/signal.texi: Likewise.
2010         * doc/posix-headers/sys_types.texi: Likewise.
2011         * doc/posix-headers/time.texi: Likewise.
2012
2013 2011-09-11  Bruno Haible  <bruno@clisp.org>
2014
2015         acl: Fix compilation on Solaris 10 (older version).
2016         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
2017         of ACE_EVERYONE.
2018         * lib/set-mode-acl.c (qset_acl): Likewise.
2019         Reported by Christian Jullien <eligis@orange.fr>.
2020
2021 2011-09-10  Bruno Haible  <bruno@clisp.org>
2022
2023         iconv, unsetenv: Add support for MSVC compiler.
2024         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
2025         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
2026
2027 2011-09-10  Bruno Haible  <bruno@clisp.org>
2028
2029         *printf: Add support for MSVC compiler.
2030         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
2031         handles the exception caused by the %n directive. When cross-compiling,
2032         guess no on native Windows.
2033         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2034         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
2035         emulate it through vsnprintf.
2036         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
2037         * doc/posix-functions/dprintf.texi: Update documentation regarding
2038         MSVC 9.
2039         * doc/posix-functions/fprintf.texi: Likewise.
2040         * doc/posix-functions/printf.texi: Likewise.
2041         * doc/posix-functions/snprintf.texi: Likewise.
2042         * doc/posix-functions/sprintf.texi: Likewise.
2043         * doc/posix-functions/swprintf.texi: Likewise.
2044         * doc/posix-functions/vdprintf.texi: Likewise.
2045         * doc/posix-functions/vfprintf.texi: Likewise.
2046         * doc/posix-functions/vprintf.texi: Likewise.
2047         * doc/posix-functions/vsnprintf.texi: Likewise.
2048         * doc/posix-functions/vsprintf.texi: Likewise.
2049         * doc/glibc-functions/asprintf.texi: Likewise.
2050         * doc/glibc-functions/obstack_printf.texi: Likewise.
2051         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2052         * doc/glibc-functions/vasprintf.texi: Likewise.
2053
2054 2011-09-10  Bruno Haible  <bruno@clisp.org>
2055
2056         nocrash: Add support for native Windows.
2057         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
2058
2059 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
2060             Bruno Haible  <bruno@clisp.org>
2061
2062         absolute-header, include-next: Add support for MSVC compiler.
2063         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
2064         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
2065         directory separator in #line directives.
2066         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
2067         recognize also backslash as directory separator in #line directives.
2068
2069 2011-09-08  Jim Meyering  <meyering@redhat.com>
2070
2071         maint.mk: mark the post-release commit log with "maint: " prefix
2072         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
2073         one-line commit-log summary.
2074
2075 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
2076             Bruno Haible  <bruno@clisp.org>
2077
2078         Doc about crypt functions.
2079         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
2080         systems.
2081         * doc/posix-functions/encrypt.texi: Likewise.
2082         * doc/posix-functions/setkey.texi: Likewise.
2083
2084 2011-09-08  Simon Josefsson  <simon@josefsson.org>
2085
2086         * lib/gc.h: Fix copyright header.
2087
2088 2011-09-07  Bruno Haible  <bruno@clisp.org>
2089
2090         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
2091         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
2092         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
2093
2094 2011-09-07  Bruno Haible  <bruno@clisp.org>
2095
2096         openat: Work around compilation error with OSF/1 5.1 DTK cc.
2097         * lib/fopen.c: Use different syntax for include of <stdio.h>.
2098         * lib/freopen.c: Likewise.
2099         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
2100         * lib/lstat.c: Likewise.
2101         * lib/stat.c: Likewise.
2102         * lib/open.c: Use different syntax for include of <fcntl.h>.
2103         * lib/openat.c: Include fcntl.h again, explicitly.
2104
2105 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
2106
2107         parse-datetime: document the newly accepted format
2108         * doc/parse-datetime.texi (Combined date and time of day items):
2109         New section.
2110
2111 2011-09-06  Bruno Haible  <bruno@clisp.org>
2112
2113         acl: Fix a test failure on newer Solaris 10 with ZFS.
2114         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
2115         ENOSYS as no ACL.
2116         Reported by Jim Meyering.
2117
2118 2011-09-06  Bruno Haible  <bruno@clisp.org>
2119
2120         acl: Update for AIX >= 5.3 with NFS.
2121         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
2122         ENOSYS as no ACL.
2123
2124         acl: Fix a test failure on AIX >= 5.3 with NFS.
2125         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
2126         as no ACL.
2127
2128 2011-09-06  Bruno Haible  <bruno@clisp.org>
2129
2130         acl: Fix a test failure on IRIX 6.5 with NFS.
2131         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
2132         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
2133         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
2134         * lib/copy-acl.c (qcopy_acl): Likewise.
2135
2136 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2137
2138         openat: port to AIX 7.1 with large files
2139         AIX 7.1 does a "#define openat open64at" if large files are in use,
2140         so we can't simply #undef openat.  Use the orig_openat trick (similar
2141         to orig_open in lib/open.c) to work around the problem.  Problem
2142         reported by Kevin Brott for GNU tar, in the thread containing
2143         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
2144         * lib/openat.c (__need_system_fcntl_h): Define first.
2145         Include <fcntl.h> and <sys/types.h> before undefining.
2146         (orig_openat) [HAVE_OPENAT]: New inline function.
2147         (openat) [HAVE_OPENAT]: Do not undef.
2148         (rpl_openat): Use orig_openat, not openat.
2149
2150 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2151             Bruno Haible  <bruno@clisp.org>
2152
2153         acl: Avoid errors on NonStop Kernel.
2154         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
2155         ENOTSUP errors.
2156
2157 2011-09-05  Bruno Haible  <bruno@clisp.org>
2158
2159         acl: Clean up Solaris code.
2160         * lib/acl-internal.h: Remove no-op #if.
2161         * lib/file-has-acl.c: Likewise.
2162         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
2163         * lib/copy-acl.c (qcopy_acl): Likewise.
2164
2165 2011-09-05  Bruno Haible  <bruno@clisp.org>
2166
2167         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
2168         binaries built on the original Solaris 10.
2169         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
2170         trivial.
2171
2172 2011-09-05  Bruno Haible  <bruno@clisp.org>
2173
2174         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
2175         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
2176         10.
2177         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
2178         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
2179         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
2180         instead of acl_get, facl_get, acl_set, facl_set.
2181
2182 2011-09-05  Bruno Haible  <bruno@clisp.org>
2183
2184         copy-file: Try unit tests on more file systems.
2185         * tests/test-copy-file-1.sh: New file.
2186         * tests/test-copy-file-2.sh: New file.
2187         * modules/copy-file-tests (Files): Add them.
2188         (Makefile.am): Add them to TESTS.
2189
2190         acl: Try unit tests on more file systems.
2191         * tests/test-file-has-acl-1.sh: New file.
2192         * tests/test-file-has-acl-2.sh: New file.
2193         * tests/test-set-mode-acl-1.sh: New file.
2194         * tests/test-set-mode-acl-2.sh: New file.
2195         * tests/test-copy-acl-1.sh: New file.
2196         * tests/test-copy-acl-2.sh: New file.
2197         * modules/acl-tests (Files): Add them.
2198         (Makefile.am): Add them to TESTS.
2199
2200 2011-09-04  Bruno Haible  <bruno@clisp.org>
2201
2202         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
2203         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
2204         10.
2205         (OLD_ALLOW, OLD_DENY): New macros.
2206         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
2207         ACE_ACCESS_ALLOWED_ACE_TYPE.
2208         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
2209         ACE_ACCESS_DENIED_ACE_TYPE.
2210         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
2211         (NEW_ACE_EXECUTE): Fix value.
2212         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
2213         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
2214         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
2215         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
2216         NEW_ACE_SYNCHRONIZE): New macros.
2217         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
2218         instead of acl_fromtext, acl_set, facl_set.
2219         Fixes a coreutils/tests/cp/perm failure.
2220
2221 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
2222
2223         openat: test for fstatat (..., 0) bug
2224         Further testing with tar suggests that fstatat (..., 0)
2225         does not work in general, on AIX 7.1; see
2226         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
2227         So, give up entirely on AIX 7.1's fstatat, and fall back on our
2228         replacement fstatat (which is what older AIX releases were using
2229         anyway).
2230         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
2231         use is now changed to orig_fstatat.  This was probably the right
2232         thing to do anyway.
2233         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
2234         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
2235         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
2236         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
2237         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
2238         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
2239         if the bug is found.
2240
2241         openat: test for fstatat (AT_FDCWD, ..., 0) bug
2242         This tests for another fstatat bug on AIX 7.1:
2243         fstatat (AT_FDCWD, ..., 0) does not work.  See
2244         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
2245         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
2246         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
2247         (rpl_fstatat): Adjust so that it works around either (or both)
2248         bugs if present.
2249         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
2250
2251 2011-09-03  Karl Berry  <karl@gnu.org>
2252
2253         * doc/regex.texi (Character Class Operators): Avoid literal ":"
2254         in index entries.
2255
2256 2011-09-02  Bruno Haible  <bruno@clisp.org>
2257
2258         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
2259         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
2260         values of AR, ARFLAGS, RANLIB.
2261         Reported by John W. Eaton <jwe@gnu.org> for Octave.
2262
2263 2011-09-02  Bruno Haible  <bruno@clisp.org>
2264
2265         Find 'ar' program that fits with --host argument.
2266         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
2267
2268 2011-09-02  Bruno Haible  <bruno@clisp.org>
2269
2270         tests: init.sh: Support any non-GNU diff.
2271         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
2272         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
2273         Solaris 8.
2274
2275 2011-09-02  Bruno Haible  <bruno@clisp.org>
2276
2277         tests: init.sh: work also with any non-GNU diff that supports -u
2278         * tests/init.sh: Relax check for diff -u support.
2279         Rather than checking for GNU diff via --version, simply check
2280         for support for -u itself.  Useful at least on OpenBSD 4.9,
2281         AIX 7.1, IRIX 6.5, and Solaris 10.
2282
2283 2011-09-01  Bruno Haible  <bruno@clisp.org>
2284
2285         strtoimax, strtoumax: Document problem on HP-UX 11.
2286         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
2287         * doc/posix-functions/strtoumax.texi: Likewise.
2288
2289 2011-09-01  Bruno Haible  <bruno@clisp.org>
2290
2291         strtoumax: Avoid link error on OSF/1 with DTK cc.
2292         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
2293         defined as a function.
2294         * modules/strtoumax (Depends-on, configure.ac): Test only whether
2295         strtoumax is defined, not whether it is declared.
2296
2297 2011-09-01  Bruno Haible  <bruno@clisp.org>
2298
2299         strtoimax: Avoid link error on OSF/1 with DTK cc.
2300         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
2301         defined as a function.
2302         * modules/strtoimax (Depends-on, configure.ac): Test only whether
2303         strtoimax is defined, not whether it is declared.
2304
2305 2011-09-01  Bruno Haible  <bruno@clisp.org>
2306
2307         imaxdiv: Avoid link error on OSF/1 with DTK cc.
2308         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
2309         as a function.
2310         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
2311         whether it is declared.
2312
2313 2011-09-01  Bruno Haible  <bruno@clisp.org>
2314
2315         imaxabs: Avoid link error on OSF/1 with DTK cc.
2316         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
2317         as a function.
2318         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
2319         whether it is declared.
2320
2321 2011-09-01  Bruno Haible  <bruno@clisp.org>
2322
2323         Tests for module 'strtoumax'.
2324         * modules/strtoumax-tests: New file.
2325         * tests/test-strtoumax.c: New file.
2326
2327         Tests for module 'strtoimax'.
2328         * modules/strtoimax-tests: New file.
2329         * tests/test-strtoimax.c: New file.
2330
2331         Tests for module 'imaxdiv'.
2332         * modules/imaxdiv-tests: New file.
2333         * tests/test-imaxdiv.c: New file.
2334
2335         Tests for module 'imaxabs'.
2336         * modules/imaxabs-tests: New file.
2337         * tests/test-imaxabs.c: New file.
2338
2339 2011-09-01  Bruno Haible  <bruno@clisp.org>
2340
2341         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
2342         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
2343         pthread_create.
2344
2345 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2346
2347         openat: work around AIX 7.1 fstatat issue
2348         This should fix the problem that was not properly fixed
2349         in the previous change, dated 2011-08-30.
2350         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
2351         __need_system_stat_h defined.
2352         (orig_fstatat) [HAVE_FSTATAT]: New function.
2353         (rpl_fstatat): Go back to the old way of doing things,
2354         except call orig_fstatat instead of fstatat.
2355         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
2356         Remove unnecessary check whether fstatat fills in st_size etc.
2357
2358 2011-09-01  Bruno Haible  <bruno@clisp.org>
2359
2360         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
2361         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
2362         just include the system's header.
2363
2364 2011-08-31  Jim Meyering  <meyering@redhat.com>
2365
2366         tests: avoid spurious assertion failure in test-float.c on ppc64
2367         * tests/test-float.c (test_long_double): Comment out an assertion,
2368         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
2369         with gcc-4.4.4.
2370
2371         maint: indent with spaces, not TABs
2372         I need to get in the habit of running gnulib's "make check".
2373         Both of these would have been caught.
2374         * m4/largefile.m4: Indent with spaces, not TABs.
2375         * lib/parse-datetime.y (iso_8601_time): Likewise.
2376         Spotted by Pádraig Brady.
2377
2378         test-parse-datetime.c: accommodate a relatively strict gcc warning
2379         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
2380         to avoid a warning from gcc's -Werror=missing-declarations.
2381         Insert a few spaces-before-funcall-parenthesis.
2382
2383 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
2384
2385         parse-datetime: accept ISO 8601 date and time rep with "T" separator
2386         The parser now accepts ISO 8601 date-time strings with "T" as the
2387         separator.  It has long parsed dates like "2004-02-29 16:21:42"
2388         with a space between the date and time strings.  Now it also parses
2389         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
2390         variants like "2004-02-29T16:21:42.333-07:00"
2391         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
2392         of day representation using the 'T' separator character.
2393         * doc/parse-datetime.texi (General date syntax): replace use of
2394         deprecated --iso-8601 option with --rfc-3339 in example of date
2395         command output formats that can be parsed.
2396         * tests/test-parse-datetime.c (tm_diff): New function, taken from
2397         lib/parse-datetime.y.
2398         (gmt_offset): New function.
2399         (main): Add additional test cases to validate ISO8601 extended
2400         date and time of day parsing.
2401
2402 2011-08-31  Bruno Haible  <bruno@clisp.org>
2403
2404         freopen: Documentation.
2405         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
2406         name.
2407         Reported by Claudio Bley <claudio.bley@gmail.com>.
2408
2409 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
2410
2411         freopen: Don't crash if the filename argument is NULL.
2412         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
2413         NULL.
2414
2415 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2416
2417         openat: work around AIX 7.1 fstatat bug
2418         Problem reported by Kevin Brott for GNU tar, in the thread containing
2419         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
2420         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
2421         FSTATAT_ST_SIZE_ETC_BROKEN.
2422         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
2423         rpl_fstatat.
2424         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
2425         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
2426         AC_CHECK_FUNCS_ONCE for fstatat.
2427         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
2428         fchmodat, mkdirat, openat and unlinkat.
2429
2430 2011-08-30  Bruno Haible  <bruno@clisp.org>
2431
2432         Avoid endless recursions if config.h includes some header files.
2433         * lib/fopen.c (__need_FILE): Define already before including config.h.
2434         * lib/freopen.c (__need_FILE): Likewise.
2435         * lib/open.c (__need_system_fcntl_h): Likewise.
2436         * lib/stat.c (__need_system_sys_stat_h): Likewise.
2437         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
2438         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2439
2440 2011-08-25  Karl Berry  <karl@gnu.org>
2441
2442         * config/srclist.txt (ylwrap): new try.
2443         * build-aux/ylwrap: new file.
2444
2445 2011-08-23  Bruno Haible  <bruno@clisp.org>
2446
2447         tmpdir: Use a good default directory on native Windows.
2448         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
2449         (P_tmpdir): Default to _P_tmpdir on native Windows.
2450         (path_search): On native Windows, try the value returned by GetTempPath
2451         before trying P_tmpdir.
2452         * modules/tmpdir (Depends-on): Add pathmax.
2453         Suggested by John Darrington <john@darrington.wattle.id.au>.
2454
2455 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
2456
2457         doc: fix typo in README-release
2458         * top/README-release: Capitalize first word of a sentence.
2459
2460 2011-08-19  Jim Meyering  <meyering@redhat.com>
2461
2462         fts: do not exhaust memory when processing million-entry directories
2463         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
2464         directory would require about 256*N bytes of memory.  Thus, it was
2465         easy to construct a directory too large to be processed by any of
2466         those tools.  With this change, fts' maximum memory utilization is
2467         now limited to around 30MB.
2468         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
2469         (fts_read): When we've processed the final entry (i.e., when
2470         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
2471         using the parent entry to read any remaining entries.  Dispatch
2472         depending on what fts_build returns:
2473         - NULL+stop, aka failure: stop
2474         - NULL otherwise: move up in the dir hierarchy
2475         - non-NULL: handle this new entry
2476         (fts_build): Declare and use new local, continue_readdir.
2477         Prepare to be called from fts_read, when the entries
2478         from a partially-read directory have just been exhausted.
2479         In that case, we'll skip the opendir and instead use the parent's
2480         fts_dirp and derive dir_fd from that.
2481         Finally, in the readdir loop, if we read max_entries entries,
2482         exit the loop ensuring *not* to call closedir.  This is required
2483         so that fts_dirp can be reused on a subsequent call.
2484         Prompted by Ben England's report of memory exhaustion in find
2485         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
2486
2487         maint: fts: move decl of `dp' down into while loop; split a long line
2488         * lib/fts.c (fts_build): No semantic change.
2489
2490         fts: add/use new struct member, fts_dirp
2491         We are about to use this to manage any directory with
2492         too many entries to read all of them into memory at once.
2493         To do that, we'll need to save the DIR* pointer in each
2494         affected FTSENT struct.
2495         * lib/fts_.h: Include <dirent.h>.
2496         (struct FTSENT) [fts_dirp]: New member.
2497         * lib/fts.c (closedir_and_clear): Define.
2498         Use it in place of closedir so that we are sure to
2499         clear the new fts_dirp member when done with it.
2500         (fts_alloc): Initialize the new member.
2501         (fts_lfree): Free, if needed.
2502
2503         maint: fts: give __opendir2 a new parameter and rename
2504         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
2505         than surreptitiously using sole caller's "dir_fd".
2506         (fts_opendir): Rename from __opendir2.
2507
2508         maint: fts.c: remove __opendir2's now-unused parameter, oflag
2509         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
2510
2511         maint: fts.c: correct off-by-one indentation
2512         * lib/fts.c (fts_build): Correct indentation, change style
2513         of a couple of block comments, and bracing style.
2514
2515         maint: fts.c: move __opendir2 #define "up" out of function body
2516         * lib/fts.c (__opendir2): Move "up".  No semantic change.
2517
2518         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
2519         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
2520         out for a long time and besides was useful only on BSD systems.
2521
2522 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2523
2524         regex: port to Stratus OpenVOS
2525         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
2526         define to empty, rather than attempting nonportable optimizations.
2527         Problem reported by Paul Green in:
2528         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
2529         and fix suggested by Eric Blake in:
2530         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
2531
2532 2011-08-17  Eric Blake  <eblake@redhat.com>
2533
2534         getcwd: fix test failures on mingw
2535         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
2536         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
2537         test if long directory cannot be created, and allow mingw errno.
2538
2539         getcwd-lgpl: fix m4 to match relaxed test for BSD
2540         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
2541         (gl_FUNC_GETCWD_SIGNATURE): New macro.
2542         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
2543         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
2544         signature problem.
2545
2546         getcwd: fix compilation on mingw64
2547         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
2548         getcwd.
2549         Reported by Marc-André Lureau.
2550
2551         pipe2: silence compiler warning
2552         * lib/pipe2.c (pipe2): Hide label if it is not used.
2553
2554 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
2555
2556         relocatable-prog: fix link error
2557         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
2558         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
2559         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
2560         into modules/relocatable-lib without noticing that
2561         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
2562         also needs to build relocatable.c.
2563
2564 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2565
2566         getaddrinfo: fix sh typo in gai_strerrorA decl checking
2567         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
2568         shell code: it contained a 'break' that was not in a loop.
2569         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
2570         via a shell-language loop; this may have been true in old Autoconf
2571         versions, but it's not true in Autoconf 2.68.  I found this bug
2572         when testing coreutils git on Solaris 8, whose shell complains
2573         about the syntax error.
2574
2575 2011-08-12  Simon Josefsson  <simon@josefsson.org>
2576
2577         * lib/base64.c: Fix comment to reference RFC 4648.
2578         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
2579         <gvtulder@gmail.com>.
2580
2581 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2582
2583         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
2584
2585         po/Makefile.in.in: fix make -q problem
2586         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
2587         rule, since there's no file named 'check-macro-version' and its
2588         use as a file breaks make -q.
2589         (all): Don't depend on check-macro-version.
2590         (CHECK_MACRO_VERSION): New macro.
2591         (stamp-po): Use it.
2592
2593         configmake: fix make -q problem
2594         * modules/configmake (configmake.h): Update configmake.h's time stamp
2595         even if the file does not change.  Otherwise, 'make -q' fails.
2596         Problem reported by Simon Josefsson in
2597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
2598
2599 2011-08-11  Jim Meyering  <meyering@redhat.com>
2600
2601         git-version-gen: correct the advice in a comment
2602         * build-aux/git-version-gen: Correct comment.
2603         Don't recommend to list .tarball-version in .gitignore.
2604
2605 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2606
2607         base64: fix off-by-one buffer size bug
2608         Problem and (trivial) fix reported by Gijs van Tulder in
2609         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
2610         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
2611         * tests/test-base64.c (main): Catch the bug.
2612
2613 2011-08-10  Eric Blake  <eblake@redhat.com>
2614
2615         closein: correct comments
2616         * lib/closein.c (close_stdin): Improve comments.
2617
2618 2011-08-09  Bruno Haible  <bruno@clisp.org>
2619
2620         More tests for 'fseeko'.
2621         * tests/test-fseeko3.c: New file, from Eric Blake.
2622         * tests/test-fseeko3.sh: New file.
2623         * modules/fseeko-tests (Files): Add them.
2624         (TESTS): Add test-fseeko3.sh.
2625         (check_PROGRAMS): Add test-fseeko3.
2626
2627 2011-08-09  Eric Blake  <eblake@redhat.com>
2628
2629         fseeko: remove unneeded hack
2630         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
2631
2632         fseeko: fix bug on glibc
2633         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
2634         Reported by John W. Eaton.
2635
2636 2011-08-08  Bruno Haible  <bruno@clisp.org>
2637
2638         unictype/base: Fix interoperability with preinstalled libunistring.
2639         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
2640         Reported by Simon Josefsson.
2641
2642 2011-08-08  Bruno Haible  <bruno@clisp.org>
2643
2644         iswblank: Detect declaration correctly.
2645         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
2646         AC_CHECK_DECLS invocation.
2647
2648 2011-08-08  Bruno Haible  <bruno@clisp.org>
2649
2650         tcgetsid: Detect declaration correctly.
2651         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
2652         AC_CHECK_DECLS invocation.
2653         Reported by Simon Josefsson.
2654
2655 2011-08-08  Eric Blake  <eblake@redhat.com>
2656
2657         largefile: fix typo that regressed large file support
2658         * modules/largefile (configure.ac-early): Fix section name.
2659
2660 2011-08-06  Karl Berry  <karl@gnu.org>
2661
2662         * MODULES.html.sh (func_all_files): _Noreturn is no longer
2663         a separate module.
2664
2665 2011-08-05  Simon Josefsson  <simon@josefsson.org>
2666
2667         openat: Fix warnings and commens when building unlinkat.c on Hurd.
2668         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
2669         get prototype for free.
2670
2671 2011-08-04  Bruno Haible  <bruno@clisp.org>
2672
2673         Tests for module 'pathmax'.
2674         * modules/pathmax-tests: New file.
2675         * tests/test-pathmax.c: New file.
2676
2677         canonicalize-lgpl: Support larger filenames on the Hurd.
2678         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
2679         Reported by Paul Eggert.
2680
2681         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
2682         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
2683         * lib/chdir-long.h: Include pathmax.h.
2684         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
2685         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
2686         (PATH_MAX): Remove code that is done by pathmax.h.
2687         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
2688         * lib/tmpfile.c: Add a comment.
2689         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
2690         * modules/chdir-long (Depends-on): Add pathmax.
2691         * modules/getcwd (Depends-on): Add pathmax.
2692         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
2693         is not defined.
2694         * doc/posix-headers/limits.texi: Mention the pathmax module.
2695         * NEWS: Mention the change.
2696
2697 2011-08-02  Bruno Haible  <bruno@clisp.org>
2698
2699         pthread_sigmask: Actually use results of gl_THREADLIB.
2700         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
2701         gl_THREADLIB, not gl_[]THREADLIB.
2702         Reported by Eric Blake.
2703
2704 2011-08-02  Jim Meyering  <meyering@redhat.com>
2705
2706         maint.mk: relax the default _gl_TS_function_match regexp
2707         * top/maint.mk (_gl_TS_function_match): Don't require at least one
2708         space between function name and "(" in an "extern" declaration.
2709         That would fail to match a decl with no space there: extern void foo();
2710
2711 2011-07-31  Iain Nicol  <iain@thenicols.net>
2712
2713         git-version-gen: document that EXTRA_DIST must include .version
2714         * build-aux/git-version-gen: In the how-to-use comment, document
2715         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
2716         will fail when run from an unpacked distribution tarball.
2717
2718 2011-08-01  Bruno Haible  <bruno@clisp.org>
2719
2720         wctype-h: Fix last change.
2721         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
2722         REPLACE_TOWLOWER to 0.
2723         Reported by Sam Steingold <sds@gnu.org>.
2724
2725 2011-07-31  Bruno Haible  <bruno@clisp.org>
2726
2727         frexpl: Update autoconf test.
2728         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
2729         according to changes of 2011-06-20.
2730
2731 2011-07-31  Bruno Haible  <bruno@clisp.org>
2732
2733         sys_utsname: Add support for Minix.
2734         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
2735         <sys/utsname.h>.
2736         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2737         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
2738
2739 2011-07-31  Bruno Haible  <bruno@clisp.org>
2740
2741         strings: Add support for Minix.
2742         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
2743         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2744         * doc/posix-headers/strings.texi: Document the Minix problem.
2745
2746 2011-07-31  Bruno Haible  <bruno@clisp.org>
2747
2748         wctype-h: Add support for Minix.
2749         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
2750         REPLACE_TOWLOWER.
2751         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
2752         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
2753         REPLACE_ISWCNTRL.
2754
2755 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
2756
2757         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
2758         This is a performance improvement for 64-bit hosts: it causes the
2759         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
2760
2761 2011-07-31  Bruno Haible  <bruno@clisp.org>
2762
2763         stdioext: Add support for Minix.
2764         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
2765         * lib/fpurge.c (fpurge): Likewise.
2766         * lib/freadahead.c (freadahead): Likewise.
2767         * lib/freadable.c (freadable): Likewise.
2768         * lib/freading.c (freading): Likewise.
2769         * lib/freadptr.c (freadptr): Likewise.
2770         * lib/freadseek.c (freadptrinc): Likewise.
2771         * lib/fseeko.c (rpl_fseeko): Likewise.
2772         * lib/fseterr.c (fseterr): Likewise.
2773         * lib/fwritable.c (fwritable): Likewise.
2774         * lib/fwriting.c (fwriting): Likewise.
2775         * lib/fflush.c (clear_ungetc_buffer): Update comment.
2776         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
2777
2778 2011-07-31  Bruno Haible  <bruno@clisp.org>
2779
2780         errno: Port to Minix.
2781         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
2782         ECONNABORTED are defined.
2783         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
2784         GNULIB_defined_ECONNABORTED): New macros.
2785         * lib/strerror-override.h (strerror_override): Test also
2786         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
2787         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
2788         ECONNABORTED.
2789         * doc/posix-headers/errno.texi: Mention the Minix problem.
2790
2791 2011-07-31  Bruno Haible  <bruno@clisp.org>
2792
2793         Work around declaration collisions on Minix.
2794         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
2795         defined, set REPLACE_MBSINIT.
2796         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
2797         defined, set REPLACE_MBRTOWC.
2798         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
2799         set REPLACE_MBRLEN.
2800         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
2801         defined, set REPLACE_MBSRTOWCS.
2802         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
2803         defined, set REPLACE_WCRTOMB.
2804         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
2805         defined, set REPLACE_WCSRTOMBS.
2806
2807 2011-07-31  Bruno Haible  <bruno@clisp.org>
2808
2809         Add support for Minix with ACK compiler.
2810         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
2811         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
2812         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
2813
2814 2011-07-31  Bruno Haible  <bruno@clisp.org>
2815
2816         Documentation about Minix.
2817         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
2818         * doc/glibc-headers/*.texi: Likewise.
2819         * doc/posix-functions/*.texi: Likewise.
2820         * doc/glibc-functions/*.texi: Likewise.
2821
2822 2011-07-31  Bruno Haible  <bruno@clisp.org>
2823
2824         snippet/warn-on-use: Fix indentation.
2825         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
2826
2827 2011-07-25  Jim Meyering  <meyering@redhat.com>
2828
2829         tests: test-update-copyright.sh: remove unnecessary "rm" commands
2830         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
2831         commands.
2832
2833 2011-07-27  Jim Meyering  <meyering@redhat.com>
2834
2835         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
2836         * top/maint.mk (gl_extract_significant_defines_): Now that
2837         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
2838         gnulib/lib/signal.in.h, and now that we recommend to
2839         define-if-undefined those two symbols in application code,
2840         we must filter them out of the "significant" list.
2841         This avoids a "make syntax-check" failure in coreutils.
2842
2843 2011-07-26  Eric Blake  <eblake@redhat.com>
2844
2845         warnings: add comments about previous patch
2846         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
2847         * m4/include_next.m4: Likewise.
2848         * m4/warn-on-use.m4: Likewise.
2849         * m4/warnings.m4: Likewise, and simplify use.
2850         Suggested by Stefano Lattarini.
2851
2852         include-next, warnings: support older autoconf
2853         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
2854         AS_VAR_PUSHDEF in a way that works with older autoconf.
2855         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
2856         Reported by Daniel P. Berrange.
2857
2858 2011-07-25  Bruno Haible  <bruno@clisp.org>
2859
2860         fseek, ftell: Fix doc.
2861         * doc/posix-functions/fseek.texi: Reword statement about
2862         AC_SYS_LARGEFILE.
2863         * doc/posix-functions/ftell.texi: Likewise.
2864
2865 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2866             Bruno Haible  <bruno@clisp.org>
2867
2868         Add dependencies to the 'largefile' module.
2869         * modules/fopen (Depends-on): Add 'largefile'.
2870         * modules/freopen (Depends-on): Likewise.
2871         * modules/fseeko (Depends-on): Likewise.
2872         * modules/ftello (Depends-on): Likewise.
2873         * modules/glob (Depends-on): Likewise.
2874         * modules/lseek (Depends-on): Likewise.
2875         * modules/lstat (Depends-on): Likewise.
2876         * modules/mkostemp (Depends-on): Likewise.
2877         * modules/mkostemps (Depends-on): Likewise.
2878         * modules/mkstemp (Depends-on): Likewise.
2879         * modules/mkstemps (Depends-on): Likewise.
2880         * modules/open (Depends-on): Likewise.
2881         * modules/openat (Depends-on): Likewise.
2882         * modules/pread (Depends-on): Likewise.
2883         * modules/pwrite (Depends-on): Likewise.
2884         * modules/scandir (Depends-on): Likewise.
2885         * modules/stat (Depends-on): Likewise.
2886         * modules/tmpfile (Depends-on): Likewise.
2887         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
2888         since the containing module now depends on the largefile module.
2889         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
2890         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
2891         off_t is fixed by gnulib.
2892         * doc/posix-functions/freopen.texi: Likewise.
2893         * doc/posix-functions/fseeko.texi: Likewise.
2894         * doc/posix-functions/fstatat.texi: Likewise.
2895         * doc/posix-functions/ftello.texi: Likewise.
2896         * doc/posix-functions/glob.texi: Likewise.
2897         * doc/posix-functions/lseek.texi: Likewise.
2898         * doc/posix-functions/lstat.texi: Likewise.
2899         * doc/posix-functions/mkstemp.texi: Likewise.
2900         * doc/posix-functions/open.texi: Likewise.
2901         * doc/posix-functions/openat.texi: Likewise.
2902         * doc/posix-functions/pread.texi: Likewise.
2903         * doc/posix-functions/pwrite.texi: Likewise.
2904         * doc/posix-functions/scandir.texi: Likewise.
2905         * doc/posix-functions/stat.texi: Likewise.
2906         * doc/posix-functions/tmpfile.texi: Likewise.
2907         * doc/glibc-functions/mkostemp.texi: Likewise.
2908         * doc/glibc-functions/mkostemps.texi: Likewise.
2909         * doc/glibc-functions/mkstemps.texi: Likewise.
2910
2911 2011-07-25  Bruno Haible  <bruno@clisp.org>
2912
2913         fcntl: Move AC_LIBOBJ invocation to module description.
2914         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
2915         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
2916
2917         fcntl: Remove call-in from fchdir.m4.
2918         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
2919         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
2920
2921         dup3: Remove potential call-in from fchdir.m4.
2922         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
2923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
2924
2925         dup2: Move AC_LIBOBJ invocation to module description.
2926         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
2927         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
2928         Don't invoke AC_LIBOBJ.
2929         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
2930
2931         dup2: Remove call-in from fchdir.m4.
2932         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
2933         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
2934
2935         fclose: Move AC_LIBOBJ invocation to module description.
2936         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
2937         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
2938         to 1.
2939         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
2940
2941         fclose: Remove call-in from close.m4.
2942         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
2943         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
2944
2945         close: Move AC_LIBOBJ invocation to module description.
2946         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
2947         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
2948         1.
2949         * modules/close (configure.ac): Invoke AC_LIBOBJ.
2950
2951         close: Remove call-in from fchdir.m4.
2952         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
2953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
2954
2955         open: Move AC_LIBOBJ invocation to module description.
2956         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
2957         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
2958         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
2959
2960         open: Remove call-in from fchdir.m4.
2961         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
2962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
2963
2964         fchdir: Start to remove gl_REPLACE_* idiom.
2965         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
2966         (gl_FUNC_FCHDIR): Invoke it.
2967
2968 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2969
2970         * lib/ftell.c (ftell): Comment out cast.
2971
2972         close: use gl_REPLACE_FCLOSE only if defined
2973         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2974         is defined.  The close module doesn't depend on the fclose module
2975         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2977         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2978
2979 2011-07-24  Jim Meyering  <meyering@redhat.com>
2980
2981         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2982         * tests/test-select.h (test_function): Declare as "static".
2983
2984 2011-07-24  Bruno Haible  <bruno@clisp.org>
2985
2986         doc: Mention the effects of AC_SYS_LARGEFILE.
2987         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2988         on this function.
2989         * doc/posix-functions/aio_error.texi: Likewise.
2990         * doc/posix-functions/aio_fsync.texi: Likewise.
2991         * doc/posix-functions/aio_read.texi: Likewise.
2992         * doc/posix-functions/aio_return.texi: Likewise.
2993         * doc/posix-functions/aio_suspend.texi: Likewise.
2994         * doc/posix-functions/aio_write.texi: Likewise.
2995         * doc/posix-functions/fgetpos.texi: Likewise.
2996         * doc/posix-functions/fopen.texi: Likewise.
2997         * doc/posix-functions/freopen.texi: Likewise.
2998         * doc/posix-functions/fsetpos.texi: Likewise.
2999         * doc/posix-functions/fstatvfs.texi: Likewise.
3000         * doc/posix-functions/ftruncate.texi: Likewise.
3001         * doc/posix-functions/ftw.texi: Likewise.
3002         * doc/posix-functions/getrlimit.texi: Likewise.
3003         * doc/posix-functions/glob.texi: Likewise.
3004         * doc/posix-functions/lio_listio.texi: Likewise.
3005         * doc/posix-functions/lockf.texi: Likewise.
3006         * doc/posix-functions/mkstemp.texi: Likewise.
3007         * doc/posix-functions/mmap.texi: Likewise.
3008         * doc/posix-functions/nftw.texi: Likewise.
3009         * doc/posix-functions/openat.texi: Likewise.
3010         * doc/posix-functions/opendir.texi: Likewise.
3011         * doc/posix-functions/posix_fadvise.texi: Likewise.
3012         * doc/posix-functions/posix_fallocate.texi: Likewise.
3013         * doc/posix-functions/pread.texi: Likewise.
3014         * doc/posix-functions/pwrite.texi: Likewise.
3015         * doc/posix-functions/readdir.texi: Likewise.
3016         * doc/posix-functions/readdir_r.texi: Likewise.
3017         * doc/posix-functions/rewinddir.texi: Likewise.
3018         * doc/posix-functions/scandir.texi: Likewise.
3019         * doc/posix-functions/seekdir.texi: Likewise.
3020         * doc/posix-functions/setrlimit.texi: Likewise.
3021         * doc/posix-functions/statvfs.texi: Likewise.
3022         * doc/posix-functions/telldir.texi: Likewise.
3023         * doc/posix-functions/tmpfile.texi: Likewise.
3024         * doc/posix-functions/truncate.texi: Likewise.
3025         * doc/glibc-functions/fallocate.texi: Likewise.
3026         * doc/glibc-functions/fstatfs.texi: Likewise.
3027         * doc/glibc-functions/fts_children.texi: Likewise.
3028         * doc/glibc-functions/fts_read.texi: Likewise.
3029         * doc/glibc-functions/getdirentries.texi: Likewise.
3030         * doc/glibc-functions/mkostemp.texi: Likewise.
3031         * doc/glibc-functions/mkostemps.texi: Likewise.
3032         * doc/glibc-functions/mkstemps.texi: Likewise.
3033         * doc/glibc-functions/preadv.texi: Likewise.
3034         * doc/glibc-functions/pwritev.texi: Likewise.
3035         * doc/glibc-functions/sendfile.texi: Likewise.
3036         * doc/glibc-functions/statfs.texi: Likewise.
3037
3038 2011-07-24  Bruno Haible  <bruno@clisp.org>
3039
3040         doc: Fix typo.
3041         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
3042
3043 2011-07-24  Bruno Haible  <bruno@clisp.org>
3044
3045         doc: Mention fsusage.
3046         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
3047
3048 2011-07-24  Bruno Haible  <bruno@clisp.org>
3049
3050         doc: Mention new glibc headers and functions.
3051         * doc/glibc-headers/gshadow.texi: New file.
3052         * doc/glibc-functions/endsgent.texi: New file.
3053         * doc/glibc-functions/fgetsgent.texi: New file.
3054         * doc/glibc-functions/fgetsgent_r.texi: New file.
3055         * doc/glibc-functions/getsgent.texi: New file.
3056         * doc/glibc-functions/getsgent_r.texi: New file.
3057         * doc/glibc-functions/getsgnam.texi: New file.
3058         * doc/glibc-functions/getsgnam_r.texi: New file.
3059         * doc/glibc-functions/putsgent.texi: New file.
3060         * doc/glibc-functions/setsgent.texi: New file.
3061         * doc/glibc-functions/sgetsgent.texi: New file.
3062         * doc/glibc-functions/sgetsgent_r.texi: New file.
3063         * doc/glibc-functions/malloc_info.texi: New file.
3064         * doc/glibc-functions/preadv.texi: New file.
3065         * doc/glibc-functions/pwritev.texi: New file.
3066         * doc/glibc-functions/register_printf_modifier.texi: New file.
3067         * doc/glibc-functions/register_printf_specifier.texi: New file.
3068         * doc/glibc-functions/register_printf_type.texi: New file.
3069         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
3070         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
3071         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
3072         * doc/glibc-functions/pthread_getname_np.texi: New file.
3073         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
3074         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
3075         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
3076         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
3077         * doc/glibc-functions/pthread_setname_np.texi: New file.
3078         * doc/glibc-functions/pthread_sigqueue.texi: New file.
3079         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
3080         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
3081         * doc/glibc-functions/qsort_r.texi: New file.
3082         * doc/glibc-functions/quick_exit.texi: New file.
3083         * doc/glibc-functions/syncfs.texi: New file.
3084         * doc/gnulib.texi: Include them.
3085         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
3086         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
3087         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
3088         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
3089         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
3090         * doc/glibc-functions/execvpe.texi: Likewise.
3091
3092 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3093
3094         ftell: don't include <unistd.h>
3095         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
3096         guaranteed to define off_t, and the ftell module depends on the
3097         stdio module.
3098
3099         ftell: do not assume wraparound signed arithmetic
3100         * lib/ftell.c: Include <limits.h>.
3101         (ftell): Don't assume wraparound signed arithmetic.
3102
3103 2011-07-24  Bruno Haible  <bruno@clisp.org>
3104
3105         close: No longer depend on module 'fclose'.
3106         * modules/close (Depends-on): Remove fclose.
3107         * NEWS: Mention the change.
3108         Suggested by Sam Steingold <sds@gnu.org>.
3109
3110 2011-07-24  Bruno Haible  <bruno@clisp.org>
3111
3112         fsusage: Enable large volume support on AIX >= 5.2.
3113         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
3114         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
3115         instead of STAT_STATVFS.
3116         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
3117
3118         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
3119         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
3120         f_blocks field only on MacOS X.
3121
3122         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
3123         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
3124         * modules/fsusage (Depends-on): Add largefile.
3125
3126 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3127
3128         * README: Modernize discussion of signed integers.
3129         Assuming overflow wraparound is no longer safe.
3130         Mention ones' complement and signed magnitude.
3131
3132 2011-07-22  Bruno Haible  <bruno@clisp.org>
3133
3134         select tests, pselect tests: Refactor.
3135         * tests/test-select.h: New file, extracted from tests/test-select.c.
3136         (select_fn): New type.
3137         (test, do_select, do_select_nowait, do_select_wait, test_tty,
3138         test_connect_first, test_accept_first, test_pair, test_socket_pair,
3139         test_pipe): Add my_select argument.
3140         (test_function): Renamed from main. Add my_select argument.
3141         * tests/test-select.c: Move most code to tests/test-select.h. Include
3142         test-select.h.
3143         * modules/select-tests (Files): Add tests/test-select.h.
3144         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
3145         (my_select, main): New functions.
3146         * modules/pselect-tests (Files): Add tests/test-select.h,
3147         tests/macros.h, tests/signature.h.
3148         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
3149         (configure.ac): Check for <sys/wait.h>.
3150
3151 2011-07-22  Bruno Haible  <bruno@clisp.org>
3152
3153         sys_select tests: Check the signature of FD_*.
3154         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
3155         signature tests from here...
3156         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
3157         here.
3158         * modules/sys_select-tests (Files): Add tests/signature.h.
3159
3160 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
3161
3162         largefile: new module, replacing large-inode
3163         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
3164         * MODULES.html.sh: Add largefile, remove large-inode.
3165         * modules/largefile, m4/largefile.m4: New files.
3166         * modules/large-inode, m4/large-inode.m4: Remove.
3167
3168         fsusage: port to MacOS X 10.7 with 4 TiB file systems
3169         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
3170         implementations that use only 32 bits to count blocks.
3171         On typical hosts with 1024-byte blocks, this fails with file
3172         systems as small as 4 TiB.  Problem reported by Herb Wartens
3173         <http://debbugs.gnu.org/9140> and this should also fix a similar
3174         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
3175
3176         large-inode: New module
3177         * MODULES.html.sh: Add it.
3178         * modules/large-inode, m4/large-inode.m4: New files.
3179
3180         extensions: Enable extensions on MacOS X 10.5 and later.
3181         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
3182
3183 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
3184
3185         file-has-acl: use acl_extended_file_nofollow if available
3186         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
3187         (acl_extended_file): New macro.
3188         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
3189         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
3190
3191 2011-07-21  Bruno Haible  <bruno@clisp.org>
3192
3193         Declare system functions in a way that works with C++.
3194         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
3195         declare fdopendir as extern "C".
3196         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
3197         declare frexpl as extern "C".
3198         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
3199         declare gai_strerror as extern "C".
3200         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
3201         programs, declare gai_strerror as extern "C".
3202         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
3203         declare getlogin_r as extern "C".
3204         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
3205         as extern "C".
3206         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
3207         declare ldexpl as extern "C".
3208         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
3209         as extern "C".
3210         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
3211         program, declare getmntinfo as extern "C".
3212         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
3213         stpncpy as extern "C".
3214         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
3215         program, declare __xpg_strerror_r as extern "C".
3216         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
3217         strndup as extern "C".
3218         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
3219         declare memset and bzero as extern "C".
3220         Reported by Sam Steingold <sds@gnu.org>.
3221
3222 2011-07-12  Jim Meyering  <meyering@redhat.com>
3223
3224         maint.mk: prohibit inclusion of "verify.h" without use
3225         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
3226
3227 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3228
3229         timer-time: A new module to check for timer_settime()
3230         * m4/timer_time.m4: Check for the posix function.
3231         * modules/timer-time: Add the new module.
3232         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
3233         Mention it.
3234
3235 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
3236             Bruno Haible  <bruno@clisp.org>
3237
3238         pthread_sigmask: assume POSIX threads if --avoid=threadlib
3239         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
3240         not defined, assume POSIX threads and look for pthread_sigmask in
3241         $LIBS, without changing $CPPFLAGS.
3242
3243 2011-07-19  Bruno Haible  <bruno@clisp.org>
3244
3245         strstr: Update cross-compilation guess.
3246         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
3247         CPUs, guess no, in view of glibc
3248         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
3249         Suggested by Eric Blake. Reported by Reuben Thomas.
3250
3251 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3252
3253         getopt-gnu: suppress core dumps from detection code
3254         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
3255         to suppress core dumps that may well occur on glibc systems.
3256         * modules/getopt-gnu: Depend on nocrash.
3257
3258 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
3259
3260         pthread_sigmask: ensure usleep is declared
3261         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
3262         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
3263
3264 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3265
3266         doc: Document NonStop portability issues.
3267         * doc/posix-functions/sigaction.texi (sigaction):
3268         * doc/posix-headers/signal.texi (signal.h):
3269         Document NonStop.  See Joachim Schmitz in
3270         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
3271
3272 2011-07-15  Bruno Haible  <bruno@clisp.org>
3273
3274         ffsl, ffsll: Avoid unportable behaviour.
3275         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
3276
3277 2011-07-15  Bruno Haible  <bruno@clisp.org>
3278
3279         ffs: More tests.
3280         * tests/test-ffs.c (NBITS): New macro.
3281         (main): Add more tests.
3282         * tests/test-ffsl.c (NBITS): New macro.
3283         (main): Add more tests.
3284         * tests/test-ffsll.c (NBITS): New macro.
3285         (main): Add more tests.
3286
3287 2011-07-15  Eric Blake  <eblake@redhat.com>
3288
3289         ffsl, ffsll: new modules
3290         * modules/ffsl: New file.
3291         * modules/ffsll: Likewise.
3292         * m4/ffsl.m4: Likewise.
3293         * m4/ffsll.m4: Likewise.
3294         * lib/ffsl.c: Likewise.
3295         * lib/ffsl.h: Likewise.
3296         * lib/ffsll.c: Likewise.
3297         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
3298         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
3299         * modules/string (Makefile.am): Substitute witnesses.
3300         * lib/strings.in.h (ffsl, ffsll): Declare.
3301         * modules/ffsl-tests: New test file.
3302         * modules/ffsll-tests: Likewise.
3303         * tests/test-ffsl.c: Likewise.
3304         * tests/test-ffsll.c: Likewise.
3305         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3306         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
3307         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
3308
3309         ffs: fix m4 prerequisite
3310         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
3311
3312         ffs: avoid undefined behavior
3313         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
3314         * tests/test-ffs.c (naive, main): Avoid signed shifts.
3315         Reported by Bruno Haible.
3316
3317 2011-07-12  Bruno Haible  <bruno@clisp.org>
3318
3319         pthread_sigmask: Rely on module 'threadlib'.
3320         * modules/pthread_sigmask (Depends-on): Add threadlib.
3321         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
3322         is defined.
3323
3324 2011-07-12  Bruno Haible  <bruno@clisp.org>
3325
3326         regex: Depend on module 'strcase'.
3327         * modules/regex (Depends-on): Add strcase, for strcasecmp().
3328
3329 2011-07-12  Jim Meyering  <meyering@redhat.com>
3330
3331         warn-on-use: fix typo in file name
3332         * modules/snippet/warn-on-use (Files): Correct file name:
3333         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
3334
3335 2011-07-12  Bruno Haible  <bruno@clisp.org>
3336
3337         strings: Document module.
3338         * doc/posix-headers/strings.texi: Mention module 'strings'.
3339
3340 2011-07-12  Bruno Haible  <bruno@clisp.org>
3341
3342         Rename module '_Noreturn' to 'snippet/_Noreturn'.
3343         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
3344         (Files, Makefile.am): Update.
3345         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
3346         * modules/stdlib (Depends-on): Update.
3347
3348 2011-07-12  Bruno Haible  <bruno@clisp.org>
3349
3350         * NEWS: Mention the changes.
3351
3352         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
3353         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
3354         (Files, Makefile.am): Update.
3355         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
3356         * modules/arpa_inet (Depends-on): Update.
3357         * modules/ctype (Depends-on): Update.
3358         * modules/dirent (Depends-on): Update.
3359         * modules/fcntl-h (Depends-on): Update.
3360         * modules/glob (Depends-on): Update.
3361         * modules/iconv-h (Depends-on): Update.
3362         * modules/inttypes-incomplete (Depends-on): Update.
3363         * modules/langinfo (Depends-on): Update.
3364         * modules/locale (Depends-on): Update.
3365         * modules/math (Depends-on): Update.
3366         * modules/netdb (Depends-on): Update.
3367         * modules/poll-h (Depends-on): Update.
3368         * modules/pty (Depends-on): Update.
3369         * modules/search (Depends-on): Update.
3370         * modules/signal (Depends-on): Update.
3371         * modules/spawn (Depends-on): Update.
3372         * modules/stdio (Depends-on): Update.
3373         * modules/stdlib (Depends-on): Update.
3374         * modules/string (Depends-on): Update.
3375         * modules/strings (Depends-on): Update.
3376         * modules/sys_file (Depends-on): Update.
3377         * modules/sys_ioctl (Depends-on): Update.
3378         * modules/sys_select (Depends-on): Update.
3379         * modules/sys_socket (Depends-on): Update.
3380         * modules/sys_stat (Depends-on): Update.
3381         * modules/sys_time (Depends-on): Update.
3382         * modules/sys_times (Depends-on): Update.
3383         * modules/sys_utsname (Depends-on): Update.
3384         * modules/sys_wait (Depends-on): Update.
3385         * modules/termios (Depends-on): Update.
3386         * modules/time (Depends-on): Update.
3387         * modules/unistd (Depends-on): Update.
3388         * modules/wchar (Depends-on): Update.
3389         * modules/wctype-h (Depends-on): Update.
3390         * MODULES.html.sh (Support for building libraries and executables):
3391         Update.
3392
3393         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
3394         * modules/snippet/unused-parameter: Renamed from
3395         modules/unused-parameter.
3396         (Files, Makefile.am): Update.
3397         * build-aux/snippet/unused-parameter.h: Renamed from
3398         build-aux/unused-parameter.h.
3399         * modules/selinux-h (Depends-on): Update.
3400         * modules/unistr/base (Depends-on): Update.
3401         * MODULES.html.sh (Core language properties): Update.
3402
3403         Rename module 'link-warning' to 'snippet/link-warning'.
3404         * modules/snippet/link-warning: Renamed from modules/link-warning.
3405         (Files, Makefile.am): Update.
3406         * build-aux/snippet/link-warning.h: Renamed from
3407         build-aux/link-warning.h.
3408         * MODULES.html.sh (Support for building libraries and executables):
3409         Update.
3410
3411         Rename module 'c++defs' to 'snippet/c++defs'.
3412         * modules/snippet/c++defs: Renamed from modules/c++defs.
3413         (Files, Makefile.am): Update.
3414         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
3415         * modules/arpa_inet (Depends-on): Update.
3416         * modules/ctype (Depends-on): Update.
3417         * modules/dirent (Depends-on): Update.
3418         * modules/fcntl-h (Depends-on): Update.
3419         * modules/glob (Depends-on): Update.
3420         * modules/iconv-h (Depends-on): Update.
3421         * modules/langinfo (Depends-on): Update.
3422         * modules/locale (Depends-on): Update.
3423         * modules/math (Depends-on): Update.
3424         * modules/netdb (Depends-on): Update.
3425         * modules/poll-h (Depends-on): Update.
3426         * modules/pty (Depends-on): Update.
3427         * modules/search (Depends-on): Update.
3428         * modules/signal (Depends-on): Update.
3429         * modules/spawn (Depends-on): Update.
3430         * modules/stdio (Depends-on): Update.
3431         * modules/stdlib (Depends-on): Update.
3432         * modules/string (Depends-on): Update.
3433         * modules/strings (Depends-on): Update.
3434         * modules/sys_ioctl (Depends-on): Update.
3435         * modules/sys_select (Depends-on): Update.
3436         * modules/sys_socket (Depends-on): Update.
3437         * modules/sys_stat (Depends-on): Update.
3438         * modules/sys_time (Depends-on): Update.
3439         * modules/sys_wait (Depends-on): Update.
3440         * modules/termios (Depends-on): Update.
3441         * modules/time (Depends-on): Update.
3442         * modules/unistd (Depends-on): Update.
3443         * modules/wchar (Depends-on): Update.
3444         * modules/wctype-h (Depends-on): Update.
3445
3446         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
3447         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
3448         (Files, Makefile.am): Update.
3449         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
3450         * modules/argv-iter (Depends-on): Update.
3451         * modules/arpa_inet (Depends-on): Update.
3452         * modules/dirent (Depends-on): Update.
3453         * modules/fcntl-h (Depends-on): Update.
3454         * modules/fnmatch (Depends-on): Update.
3455         * modules/getopt-posix (Depends-on): Update.
3456         * modules/glob (Depends-on): Update.
3457         * modules/iconv-h (Depends-on): Update.
3458         * modules/inttypes-incomplete (Depends-on): Update.
3459         * modules/locale (Depends-on): Update.
3460         * modules/math (Depends-on): Update.
3461         * modules/netdb (Depends-on): Update.
3462         * modules/search (Depends-on): Update.
3463         * modules/signal (Depends-on): Update.
3464         * modules/spawn (Depends-on): Update.
3465         * modules/stdio (Depends-on): Update.
3466         * modules/stdlib (Depends-on): Update.
3467         * modules/string (Depends-on): Update.
3468         * modules/strings (Depends-on): Update.
3469         * modules/sys_socket (Depends-on): Update.
3470         * modules/sys_stat (Depends-on): Update.
3471         * modules/sys_time (Depends-on): Update.
3472         * modules/sys_times (Depends-on): Update.
3473         * modules/sys_utsname (Depends-on): Update.
3474         * modules/time (Depends-on): Update.
3475         * modules/unistd (Depends-on): Update.
3476         * modules/wchar (Depends-on): Update.
3477         * MODULES.html.sh (Support for building libraries and executables):
3478         Update.
3479
3480 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3481
3482         Improvements on _Noreturn and related modules.
3483
3484         modules/_Exit-tests: test _Noreturn too
3485         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
3486         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
3487         (main): Use them.
3488
3489         stdnoreturn, stdnoreturn-tests: remove modules
3490         They're not needed here and a bit premature for use elsewhere.  See
3491         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
3492         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3493         * tests/test-stdnoreturn.c: Remove files.
3494         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
3495         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
3496         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
3497         and using noreturn.
3498         * modules/openat, modules/sigpipe-die, modules/xalloc:
3499         * modules/xmemdup0, modules/xstrtol:
3500         Remove dependency on stdnoreturn.
3501
3502         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
3503         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
3504         Reparenthesize to avoid GCC warning.
3505         Support Microsoft's syntax.
3506         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
3507
3508         _Noreturn-tests: remove module
3509         * modules/_Noreturn-tests: Remove.
3510         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
3511         * tests/test-_Noreturn.c: Remove.
3512         * tests/test-stdnoreturn.c: Merge from the old
3513         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
3514
3515 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3516
3517         _Noreturn, stdnoreturn, and related modules.
3518
3519         * top/maint.mk: Adjust to new noreturn support.
3520         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
3521         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
3522
3523         xalloc: use stdnoreturn.h
3524         * lib/xalloc.h: Include <stdnoreturn.h>.
3525         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3526         * modules/xalloc (Depends-on): Add stdnoreturn.
3527
3528         xstrtol: use stdnoreturn.h
3529         * lib/xstrtol.h: Include <stdnoreturn.h>.
3530         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3531         * modules/xstrtol (Depends-on): Add stdnoreturn.
3532
3533         xmemdup0: use stdnoreturn.h
3534         * lib/xmemdup0.h: Include <stdnoreturn.h>.
3535         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3536         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
3537
3538         sigpipe-die: use stdnoreturn.h
3539         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
3540         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3541         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
3542
3543         openat: use stdnoreturn.h
3544         * lib/openat.h: Include <stdnoreturn.h>.
3545         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3546         * modules/openat (Depends-on): Add stdnoreturn.
3547
3548         * lib/openat-die.c (openat_save_fail): Modernize comment.
3549
3550         * lib/xalloc-die.c (xalloc_die): Modernize comment.
3551
3552         * lib/glthread/thread.h: Modernize comment.
3553
3554         obstack: use _Noreturn
3555         * lib/obstack.c (__attribute__): Remove macro.
3556         (print_and_abort): Use _Noreturn.
3557
3558         c-stack: use _Noreturn
3559         * lib/c-stack.c (die, overflow_handler, segv_handler):
3560         Use _Noreturn rather than __attribute__((noreturn)).
3561
3562         argmatch-tests, exclude_tests: use _Noreturn
3563         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
3564         Remove.
3565         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
3566
3567         stdlib: use _Noreturn
3568         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
3569         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
3570         * modules/stdlib (Depends-on): Add _Noreturn.
3571         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
3572
3573         stdnoreturn-tests: new module
3574         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
3575
3576         stdnoreturn: new module
3577         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
3578         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
3579
3580         _Noreturn-tests: new module
3581         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
3582
3583         _Noreturn: new module
3584         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
3585         New section, mentioning it.
3586         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
3587
3588         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
3589
3590 2011-07-11  Eric Blake  <eblake@redhat.com>
3591
3592         ffs: new module
3593         * modules/ffs: New file.
3594         * m4/ffs.m4: Likewise.
3595         * lib/ffs.c: Likewise.
3596         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
3597         * modules/strings (Makefile.am): Substitute witness.
3598         (Depends-on): Add c++defs.
3599         * lib/strings.in.h (ffs): Declare.
3600         * modules/ffs-tests: New test file.
3601         * tests/test-ffs.c: Test new module.
3602         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3603         * doc/posix-functions/ffs.texi (ffs): Likewise.
3604
3605         regex: avoid compiler warning
3606         * lib/regex.c (includes): Include <strings.h>, for use of
3607         strcasecmp in regcomp.c.
3608         Reported by Joachim Schmitz.
3609
3610 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3611
3612         stdint: respect system's intmax_t if INTMAX_MAX
3613         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
3614         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
3615         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
3616         long but int64_t is long long, and where we will clash with the
3617         system intmax_t if we override it.  See
3618         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
3619         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
3620         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
3621         similarly for UINTMAX_C.
3622
3623 2011-07-08  Bruno Haible  <bruno@clisp.org>
3624
3625         pthread_sigmask tests: Avoid a compiler warning.
3626         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
3627         non-zero.
3628
3629         sigprocmask tests: A better way to avoid a compiler warning.
3630         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
3631         (main): Complain if system() returns non-zero.
3632         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
3633
3634 2011-07-08  Bruno Haible  <bruno@clisp.org>
3635
3636         pthread_sigmask: Work around IRIX bug.
3637         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
3638         bug.
3639         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
3640         there may be unblocked pending signals.
3641         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
3642
3643 2011-07-08  Bruno Haible  <bruno@clisp.org>
3644
3645         pthread_sigmask: Work around Cygwin bug.
3646         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
3647         bug.
3648         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
3649         the system's pthread_sigmask function.
3650         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
3651
3652 2011-07-08  Bruno Haible  <bruno@clisp.org>
3653
3654         pthread_sigmask: Work around bug in single-threaded implementation.
3655         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
3656         FreeBSD, HP-UX, Solaris bug.
3657         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
3658         * lib/pthread_sigmask.c: Include <stddef.h>.
3659         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
3660         the system's pthread_sigmask function.
3661         * modules/pthread_sigmask (configure.ac): Invoke
3662         gl_PREREQ_PTHREAD_SIGMASK.
3663         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
3664         HP-UX, Solaris.
3665
3666 2011-07-08  Eric Blake  <eblake@redhat.com>
3667
3668         test-sigprocmask: avoid compiler warning
3669         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
3670         * tests/test-sigprocmask.c (main): Use it to silence warning.
3671         Reported by Jim Meyering.
3672
3673         test-snprintf: avoid compiler warning
3674         * tests/test-snprintf.c (main): Avoid shadowed declaration.
3675         * tests/test-vsnprintf.c (main): Likewise.
3676         Reported by Jim Meyering.
3677
3678 2011-07-08  Bruno Haible  <bruno@clisp.org>
3679
3680         Tests for module 'pthread_sigmask'.
3681         * modules/pthread_sigmask-tests: New file.
3682         * tests/test-pthread_sigmask1.c: New file, based on
3683         tests/test-sigprocmask.c.
3684         * tests/test-pthread_sigmask2.c: New file.
3685
3686 2011-07-08  Jim Meyering  <meyering@redhat.com>
3687
3688         test-getopt.h: avoid warning about an unused variable
3689         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
3690
3691 2011-07-07  Jim Meyering  <meyering@redhat.com>
3692
3693         maint: reduce list of files exempt from sc_prohibit_leading_TABs
3694         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
3695         now that it no longer contains leading TABs.
3696         Remove unused "url=FIXME" statement.
3697
3698 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3699
3700         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
3701         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3702         When gl_THREADLIB is not in use, assume that the POSIX sematics
3703         are desired.  This is better for Emacs, which uses POSIX semantics
3704         on GNUish and/or POSIXish platforms, and does not use threads at
3705         all otherwise.
3706
3707         pthread_sigmask: fix typo when testing for libraries
3708         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3709         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
3710
3711 2011-07-08  Eric Blake  <eblake@redhat.com>
3712
3713         fts: introduce FTS_NOATIME
3714         * lib/fts_.h (FTS_NOATIME): New bit flag.
3715         (FTS_OPTIONMASK): Adjust.
3716         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
3717         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
3718
3719 2011-07-08  Bruno Haible  <bruno@clisp.org>
3720
3721         Tests for module 'thread'.
3722         * modules/thread-tests: New file.
3723         * tests/test-thread_self.c: New file.
3724         * tests/test-thread_create.cc: New file.
3725
3726 2011-07-08  Bruno Haible  <bruno@clisp.org>
3727
3728         thread: Avoid gcc warnings when using gl_thread_self().
3729         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
3730         'void *'.
3731         (gl_thread_self_pointer): Update.
3732
3733 2011-07-07  Bruno Haible  <bruno@clisp.org>
3734
3735         signal-c++-tests: Check declaration of pthread_sigmask.
3736         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
3737         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
3738         $(LIB_PTHREAD_SIGMASK).
3739
3740 2011-07-07  Bruno Haible  <bruno@clisp.org>
3741
3742         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
3743         * lib/signal.in.h (pthread_sigmask): Override if
3744         REPLACE_PTHREAD_SIGMASK is 1.
3745         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3746         REPLACE_PTHREAD_SIGMASK.
3747         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
3748         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
3749         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
3750         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3751         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
3752
3753 2011-07-07  Bruno Haible  <bruno@clisp.org>
3754
3755         pthread_sigmask: Ensure declaration in <signal.h>.
3756         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
3757         include <pthread.h>.
3758         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
3759         problem.
3760
3761 2011-07-07  Bruno Haible  <bruno@clisp.org>
3762
3763         pthread_sigmask: Document the module.
3764         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
3765
3766 2011-07-07  Bruno Haible  <bruno@clisp.org>
3767
3768         pthread_sigmask: Follow gnulib conventions.
3769         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
3770         gl_PTHREAD_SIGMASK.
3771         * modules/pthread_sigmask (configure.ac): Update.
3772
3773 2011-07-07  Bruno Haible  <bruno@clisp.org>
3774
3775         pthread_sigmask: Make declaration C++ safe.
3776         * lib/signal.in.h: In two special conditions, just do an #include_next.
3777         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3778         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
3779         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3780         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3781         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
3782         not REPLACE_PTHREAD_MASK.
3783         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
3784         not REPLACE_PTHREAD_MASK.
3785         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3786
3787 2011-07-07  Bruno Haible  <bruno@clisp.org>
3788
3789         pthread_sigmask: Fix return value.
3790         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
3791         * lib/pthread_sigmask.c: New file.
3792         * modules/pthread_sigmask (Files): Add it.
3793         (configure.ac): Invoke AC_LIBOBJ.
3794
3795 2011-07-07  Eric Blake  <eblake@redhat.com>
3796
3797         getopt: more portable argv creation
3798         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
3799         const, use char arrays rather than strings.
3800         Suggested by Paul Eggert.
3801
3802 2011-07-07  Bruno Haible  <bruno@clisp.org>
3803
3804         Tests for module 'sigprocmask'.
3805         * modules/sigprocmask-tests: New file.
3806         * tests/test-sigprocmask.c: New file.
3807
3808 2011-07-07  Bruno Haible  <bruno@clisp.org>
3809
3810         float tests: Tweak.
3811         * tests/test-float.c (main): Tweak skip message.
3812
3813 2011-07-07  Eric Blake  <eblake@redhat.com>
3814
3815         getopt: avoid compiler warning during configure
3816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
3817         assigning string literals to non-const pointer.
3818
3819         getopt-gnu: avoid crash in glibc getopt
3820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
3821         * tests/test-getopt.h (test_getopt): Enhance test.
3822         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3823         * doc/posix-functions/getopt.texi (getopt): Document it.
3824         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3825         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3826         Likewise.
3827
3828 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
3829
3830         getopt: handle W; without long options in getopt [BZ #12922]
3831         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
3832         but no long options are defined, just return 'W'.
3833
3834 2011-07-07  Bruno Haible  <bruno@clisp.org>
3835
3836         Avoid literal tabs.
3837         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
3838         variable containing a tab instead of a literal tab.
3839         Reported by Jim Meyering.
3840
3841 2011-07-07  Bruno Haible  <bruno@clisp.org>
3842
3843         Comments.
3844         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
3845
3846 2011-07-06  Bruno Haible  <bruno@clisp.org>
3847
3848         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
3849         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
3850         <winsock2.h>.
3851         (rpl_fd_isset, FD_ISSET): New definitions, copied from
3852         lib/sys_socket.in.h.
3853         (close, gethostname): Hide declarations from <winsock2.h>.
3854         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
3855         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
3856         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
3857         (select): Don't override if gnulib's <sys/select.h> was already
3858         included.
3859         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3860         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3861         setsockopt, shutdown, select): Tweak indentation.
3862
3863 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3864
3865         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
3866         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
3867         in an application that does not use the sys_select module.
3868
3869 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
3870
3871         poll: do not return 0 on timeout=-1
3872         * lib/poll.c: Loop with yield if no events occured
3873
3874 2011-07-06  Eric Blake  <eblake@redhat.com>
3875
3876         pthread_sigmask: always replace when not using pthread
3877         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
3878         replacement when using some threading other than pthread.  Fix
3879         logic bug.
3880
3881 2011-07-06  Bruno Haible  <bruno@clisp.org>
3882
3883         Comments.
3884         * m4/printf.m4: Update comments about mingw.
3885
3886 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3887
3888         sys_select: define sigset_t more portably
3889         * lib/sys_select.in.h: Always include <sys/types.h>, since
3890         we now need sigset_t and mingw defines it there.
3891         Include <signal.h> before split inclusion guard, to avoid
3892         mishaps on Solaris, whose <signal.h> eventually includes us.
3893         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
3894         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
3895         which come from ...
3896         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
3897         gl_CHECK_TYPE_SIGSET_T.
3898         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
3899         does the real work.
3900         * modules/sys_select (Depends-on): Add 'signal'.
3901
3902         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
3903         Suggested by Bruno Haible.
3904
3905         pselect: Use pthread_sigmask, not sigprocmask.
3906         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
3907         multithreaded apps better than sigprocmask does.
3908         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
3909         sigprocmask directly.
3910
3911 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3912
3913         * lib/pselect.c (pselect): Use plain name, without "rpl_".
3914         Don't #undef,  since we don't need any underlying pselect.
3915         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
3916         (Depends-on): Add select.
3917         (Link): Add $(LIBSOCKET).
3918         These changes suggested by Bruno Haible.
3919
3920         pselect: document better
3921         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3922         * doc/posix-functions/pselect.texi (pselect): Document new module.
3923
3924         pthread_sigmask: new module
3925         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3926         * doc/posix-functions/pthread_sigmask.texi: Document new module.
3927         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
3928         This is done only as a macro; I don't know how well that'll
3929         work for C++.  Move <sys/types.h> include before the include_next,
3930         to avoid mishap on Solaris.
3931         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
3932         * modules/signal (Makefile.am): Substitute the check's results.
3933         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
3934
3935         test-pselect: new module
3936         * modules/pselect-tests, tests/test-pselect.c: New files.
3937         * tests/test-select.c, tests/test-sys_select-c++.cc:
3938         If TEST_PSELECT is defined, test pselect instead of testing select.
3939
3940         * tests/test-sys_select.c (sigset_t): Test for it, too.
3941         Suggested by Bruno Haible.
3942
3943 2011-07-05  Eric Blake  <eblake@redhat.com>
3944
3945         snprintf: guarantee %1$d, for libintl
3946         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
3947         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3948         * doc/posix-functions/snprintf.texi (snprintf): Update.
3949         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3950         * tests/test-snprintf.c (main): Enhance test.
3951         * tests/test-vsnprintf.c (main): Likewise.
3952
3953 2011-07-05  Jim Meyering  <meyering@redhat.com>
3954
3955         maint: exempt stdio-read.c and stdio-write.c from the cppi check
3956         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
3957         per Bruno's request, to accommodate this idiom (no space after "#")
3958         even when the function is inside an #if block:
3959         char *
3960         gets (char *s)
3961         #undef gets
3962         {
3963           ...
3964         }
3965
3966 2011-07-04  Jim Meyering  <meyering@redhat.com>
3967
3968         maint: indent with spaces, not TABs, and add a rule to check this
3969         * tests/test-userspec.c: Indent with spaces, not TABs.
3970         * tests/test-argp.c: Likewise.
3971         * tests/test-c-stack2.sh: Likewise.
3972         * tests/test-parse-duration.sh: Likewise
3973         * m4/strtod.m4: Likewise.
3974         * m4/alloca.m4: Likewise.
3975         * m4/pselect.m4: Likewise.
3976         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3977
3978 2011-07-03  Jim Meyering  <meyering@redhat.com>
3979
3980         maint.mk: correct omissions in prohibit_argmatch_without_use check
3981         This rule would mistakenly report that argmatch.h is included without
3982         use even when both the argmatch and invalid_arg macro were used.
3983         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3984         of argmatch and invalid_arg.
3985
3986 2011-07-03  Bruno Haible  <bruno@clisp.org>
3987
3988         Comments about EINTR.
3989         * lib/safe-read.h: Explain the purpose of this module.
3990         * lib/safe-write.h: Likewise.
3991         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3992         module.
3993         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3994         module.
3995         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3996
3997 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3998
3999         xnanosleep: Rewrite to use new dtotimespec module.
4000         It has the conversion code that used to be in xnanosleep.
4001         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
4002         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
4003         (TIME_T_MAX): Remove.
4004         (xnanosleep): Rewrite in terms of dtotimespec.
4005         * modules/xnanosleep (Depends-on): Add dtotimespec.
4006         Remove intprops, stdbool.
4007
4008         timespec-add, timespec-sub: new modules
4009         * lib/timespec.h (timespec_add, timespec_sub): New decls.
4010         * lib/timespec-add.c, lib/timespec-sub.c:
4011         * modules/timespec-add, modules/timespec-sub: New files.
4012
4013         dtotimespec: new module
4014         * lib/timespec.h (dtotimespec): New decl.
4015         * lib/dtotimespec.c, modules/dtotimespec: New files.
4016
4017         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
4018
4019         pselect: new module
4020         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
4021         (pselect): New decls.
4022         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
4023         since the standard pselect decl uses 'restrict'.
4024         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
4025         HAVE_PSELECT, REPLACE_PSELECT.
4026         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
4027         HAVE_PSELECT, REPLACE_PSELECT.
4028         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
4029
4030         sys_select: don't depend on sys_socket
4031         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
4032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
4033         This fix works on GNU and GNU-like platforms, but has not been tested
4034         on native Windows.
4035         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
4036         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
4037         gl_HEADER_SYS_SOCKET.
4038         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
4039         gl_PREREQ_SYS_H_WINSOCK2.
4040
4041 2011-06-29  Eric Blake  <eblake@redhat.com>
4042
4043         pipe2: fix C89 compile problem
4044         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
4045         Reported by Bruno Haible.
4046
4047         pipe, pipe2: don't corrupt fd on error
4048         * lib/pipe.c (pipe): Leave fd unchanged on error.
4049         * lib/pipe2.c (pipe2): Likewise.
4050         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
4051         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
4052
4053 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
4054
4055         mmap-anon: do not use regular expressions inadvertently
4056         * m4/mmap-anon.m4: Remove trailing period from strings sought
4057         in the output.
4058
4059 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4060
4061         nanosleep: fix integer overflow problem
4062         * lib/nanosleep.c (my_usleep): Don't assume signed integer
4063         arithmetic wraps around on overflow.
4064
4065         nanosleep: simplify carrying
4066         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
4067         first call to the underyling nanosleep, not for the last one.
4068         This doesn't fix any bugs, but it simplifies the computation of
4069         the remaining delay.  Found while auditing integer overflow issues.
4070
4071         dup2: remove test for existence of fcntl
4072         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
4073         "#if HAVE_FCNTL", in the configure-time test program.
4074         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
4075         and therefore speeds up "configure" a bit.  Found while
4076         adding the dup2 module to Emacs.
4077
4078 2011-06-24  Eric Blake  <eblake@redhat.com>
4079
4080         maint.mk: enhance useless header checks
4081         * top/maint.mk (_sc_header_without_use): Check both include
4082         styles.
4083         (sc_prohibit_assert_without_use)
4084         (sc_prohibit_close_stream_without_use)
4085         (sc_prohibit_getopt_without_use)
4086         (sc_prohibit_quotearg_without_use)
4087         (sc_prohibit_quote_without_use)
4088         (sc_prohibit_long_options_without_use)
4089         (sc_prohibit_inttostr_without_use)
4090         (sc_prohibit_ignore_value_without_use)
4091         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
4092         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
4093         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
4094         (sc_prohibit_hash_pjw_without_use)
4095         (sc_prohibit_safe_read_without_use)
4096         (sc_prohibit_argmatch_without_use)
4097         (sc_prohibit_canonicalize_without_use)
4098         (sc_prohibit_root_dev_ino_without_use)
4099         (sc_prohibit_openat_without_use)
4100         (sc_prohibit_c_ctype_without_use)
4101         (sc_prohibit_signal_without_use)
4102         (sc_prohibit_stdio--_without_use)
4103         (sc_prohibit_stdio-safer_without_use)
4104         (sc_prohibit_strings_without_use)
4105         (sc_prohibit_intprops_without_use)
4106         (sc_prohibit_stddef_without_use)
4107         (sc_prohibit_xfreopen_without_use): Update clients.
4108
4109 2011-06-24  Jim Meyering  <meyering@redhat.com>
4110
4111         syntax-check: keep one maint.mk rule in sync with its header
4112         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
4113         of the bug Eric has just fixed, with today's commit 25e4c2ec.
4114         I prefer to avoid temporary files here, so use <(...), but that
4115         is not supported by /bin/sh, so...
4116         (SHELL): Define to /bin/bash.
4117
4118 2011-06-24  Eric Blake  <eblake@redhat.com>
4119
4120         maint.mk: update sc_prohibit_intprops_without_use
4121         * top/maint.mk (_intprops_names): Match recent changes.
4122
4123 2011-06-24  Bruno Haible  <bruno@clisp.org>
4124
4125         strerror-override: No-op tweak.
4126         * lib/strerror-override.h (strerror_override): Reorder conditions,
4127         for consistency with lib/strerror-override.c.
4128
4129 2011-06-23  Eric Blake  <eblake@redhat.com>
4130
4131         maint.mk: test further PATH_MAX issues
4132         * top/maint.mk (sc_prohibit_path_max_array): Rename...
4133         (sc_prohibit_path_max_allocation): ...and also test alloca.
4134         Suggested by Jim Meyering.
4135
4136 2011-06-22  Eric Blake  <eblake@redhat.com>
4137
4138         maint.mk: add syntax-check to avoid char[PATH_MAX]
4139         * top/maint.mk (sc_prohibit_path_max_array): New rule.
4140
4141         stat: be robust to PATH_MAX definition
4142         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
4143         * modules/stat (Depends-on): Add verify.
4144
4145         link: work around IRIX bug
4146         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
4147         * lib/link.c (rpl_link): Work around it.
4148         * tests/test-link.h (test_link): Enhance test.
4149         * doc/posix-functions/link.texi (link): Document the bug.
4150
4151         getopt: silence clang warning
4152         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
4153         dereference.
4154         Reported by Gustavo Martin Domato.
4155
4156 2011-06-22  Jim Meyering  <meyering@redhat.com>
4157
4158         bootstrap: do not insert a blank line into each .gitignore file
4159         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
4160
4161 2011-06-21  Eric Blake  <eblake@redhat.com>
4162
4163         perror: test for output mismatch
4164         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
4165         perror on IRIX.
4166
4167         strerror_r: fix OpenBSD behavior on out-of-range
4168         * lib/strerror_r.c (strerror_r): Always use maximal string.
4169         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4170
4171         strerror_r: fix OpenBSD behavior on 0
4172         * lib/strerror-override.c (strerror_override): Also override 0
4173         when needed.
4174         * lib/strerror-override.h (strerror_override): Likewise.
4175         * lib/strerror.c (strerror): Simplify, now that 0 override is done
4176         earlier.
4177         * lib/strerror_r.c (strerror_r): Likewise.
4178         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
4179         behavior...
4180         (gl_FUNC_STRERROR_0): ...into new macro.
4181         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
4182         is overridden.
4183         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
4184         * modules/strerror-override (Files): Add strerror.m4.
4185         (configure.ac): Also provide override for 0 when needed.
4186         * doc/posix-functions/strerror.texi (strerror): Document this.
4187         * doc/posix-functions/perror.texi (perror): Likewise.
4188
4189         perror: adjust array size
4190         * modules/perror (Depends-on): Add strerror-override.
4191         * lib/perror.c (perror): Use it to avoid magic number.
4192
4193         strerror-override: reduce size
4194         * lib/strerror-override.c (strerror_override): Use fewer lines.
4195
4196 2011-06-20  Bruno Haible  <bruno@clisp.org>
4197
4198         pathmax: Ensure correct value for PATH_MAX on HP-UX.
4199         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
4200
4201 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4202
4203         alloca: port to compilers that can optimize like GCC 4.6.0
4204         * lib/alloca.c (find_stack_direction): New signature, taken from
4205         Autoconf git.  This works with GCC 4.6.0.  This code should never
4206         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
4207         be used with other compilers that optimize as well as GCC 4.6.0 does.
4208         (alloca): Adjust to new signature.
4209         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
4210         New macro, which patches Autoconf in a similar way.
4211
4212         c-stack: stop worrying about stack direction
4213         * lib/c-stack.c (find_stack_direction): Remove.
4214         (segv_handler): Don't worry about stack direction growth, as it's
4215         too much of a pain to configure this correctly, given how compilers
4216         are optimizing-away our stack-growth detection code.  Instead, assume
4217         that any access to just before or just after the stack is OK.
4218         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
4219         Don't require AC_FUNC_ALLOCA; no longer needed.
4220
4221 2011-06-20  Eric Blake  <eblake@redhat.com>
4222
4223         test-stat: don't allocate PATH_MAX bytes
4224         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
4225         PATH_MAX-sized buffer.
4226         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
4227         * modules/stat-tests (Depends-on): Likewise.
4228         * tests/test-fstatat.c (includes): Drop pathmax.h.
4229         * tests/test-stat.c (includes): Likewise.
4230         Reported by Bruno Haible.
4231
4232 2011-06-20  Bruno Haible  <bruno@clisp.org>
4233
4234         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
4235         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
4236         * lib/float.c: New file.
4237         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
4238         REPLACE_FLOAT_LDBL.
4239         * modules/float (Files): Add lib/float.c.
4240         (configure.ac): Invoke AC_LIBOBJ.
4241         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
4242
4243 2011-06-20  Bruno Haible  <bruno@clisp.org>
4244
4245         Tests for module 'float'.
4246         * modules/float-tests: New file.
4247         * tests/test-float.c: New file.
4248
4249 2011-06-19  Bruno Haible  <bruno@clisp.org>
4250
4251         isinf: Coding style.
4252         * lib/isinf.c: Use GNU coding style.
4253
4254 2011-06-19  Bruno Haible  <bruno@clisp.org>
4255
4256         linkat test: Avoid test failure on AIX 7.1.
4257         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
4258         * tests/test-link.h (test_link): Likewise.
4259
4260 2011-06-19  Bruno Haible  <bruno@clisp.org>
4261
4262         pread test: Avoid test failure on OpenBSD 4.9.
4263         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
4264
4265 2011-06-19  Bruno Haible  <bruno@clisp.org>
4266
4267         sprintf-posix: Fix test failure on AIX 7.1.
4268         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
4269         * doc/posix-functions/dprintf.texi: Mention limited precision problem
4270         on AIX.
4271         * doc/posix-functions/fprintf.texi: Likewise.
4272         * doc/posix-functions/printf.texi: Likewise.
4273         * doc/posix-functions/snprintf.texi: Likewise.
4274         * doc/posix-functions/sprintf.texi: Likewise.
4275         * doc/posix-functions/vdprintf.texi: Likewise.
4276         * doc/posix-functions/vfprintf.texi: Likewise.
4277         * doc/posix-functions/vprintf.texi: Likewise.
4278         * doc/posix-functions/vsnprintf.texi: Likewise.
4279         * doc/posix-functions/vsprintf.texi: Likewise.
4280
4281 2011-06-19  Bruno Haible  <bruno@clisp.org>
4282
4283         roundl-ieee: Fix test failure on AIX 7.1.
4284         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
4285         * doc/posix-functions/roundl.texi: Mention problem with negative
4286         arguments.
4287
4288 2011-06-19  Bruno Haible  <bruno@clisp.org>
4289
4290         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
4291         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
4292         * doc/posix-functions/round.texi: Mention problem with negative
4293         arguments.
4294         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
4295
4296 2011-06-19  Bruno Haible  <bruno@clisp.org>
4297
4298         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
4299         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
4300         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
4301         * doc/posix-functions/roundf.texi: Mention problem with negative
4302         arguments.
4303         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
4304
4305 2011-06-19  Bruno Haible  <bruno@clisp.org>
4306
4307         ceilf-ieee: Work around bug on MacOS X 10.5.
4308         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
4309
4310         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
4311         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
4312         IEEE compliant, avoid compiler optimizations.
4313         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
4314         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4315         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
4316         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4317         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4318         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4319         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4320         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4321         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4322         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4323
4324 2011-06-19  Bruno Haible  <bruno@clisp.org>
4325
4326         ceilf-ieee: Work around bug on AIX 7.1.
4327         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
4328         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
4329
4330 2011-06-19  Bruno Haible  <bruno@clisp.org>
4331
4332         ceil-ieee: Work around bug on AIX 7.1.
4333         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
4334         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
4335
4336 2011-06-18  Bruno Haible  <bruno@clisp.org>
4337
4338         fsync test: Avoid test failure on MacOS X and AIX.
4339         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
4340         EINVAL.
4341
4342 2011-06-18  Bruno Haible  <bruno@clisp.org>
4343
4344         openat, fdopendir tests: Fix link errors.
4345         * modules/openat-tests (Depends-on): Add progname.
4346         * modules/fdopendir-tests (Depends-on): Likewise.
4347         * tests/test-fchownat.c: Include progname.h.
4348         (main): Call set_program_name.
4349         * tests/test-fstatat.c: Include progname.h.
4350         (main): Call set_program_name.
4351         * tests/test-mkdirat.c: Include progname.h.
4352         (main): Call set_program_name.
4353         * tests/test-openat.c: Include progname.h.
4354         (main): Call set_program_name.
4355         * tests/test-unlinkat.c: Include progname.h.
4356         (main): Call set_program_name.
4357         * tests/test-fdopendir.c: Include progname.h.
4358         (main): Call set_program_name.
4359
4360 2011-06-18  Bruno Haible  <bruno@clisp.org>
4361
4362         Doc update.
4363         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
4364         HP-UX.
4365         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
4366
4367 2011-06-18  Bruno Haible  <bruno@clisp.org>
4368
4369         getcwd tests: Avoid compilation error on HP-UX 11.31.
4370         * modules/getcwd-tests (Depends-on): Add pathmax.
4371         * tests/test-getcwd.c: Include pathmax.h.
4372
4373 2011-06-18  Bruno Haible  <bruno@clisp.org>
4374
4375         isfinite, isinf: Fix link error on AIX 6 and 7.
4376         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
4377         needed, also test the macro with a 'float' argument.
4378         * m4/isinf.m4 (gl_ISINF): Likewise.
4379
4380 2011-06-18  Bruno Haible  <bruno@clisp.org>
4381
4382         getloadavg: Don't clobber LIBS. Regression from previous commit.
4383         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
4384         AC_CHECK_LIB from here...
4385         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
4386         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
4387         gl_func_getloadavg_done.
4388         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4389
4390 2011-06-18  Bruno Haible  <bruno@clisp.org>
4391
4392         clean-temp: Improve documentation.
4393         * lib/clean-temp.h: Explain better how to use this module.
4394         Reported by John Darrington <john@darrington.wattle.id.au>.
4395
4396 2011-06-17  Bruno Haible  <bruno@clisp.org>
4397
4398         pread, pwrite: Avoid cc warning on AIX.
4399         * lib/unistd.in.h (pread): Undefine before defining as a macro.
4400         (pwrite): Likewise.
4401
4402 2011-06-17  Bruno Haible  <bruno@clisp.org>
4403
4404         spawn-pipe tests: Fix link error.
4405         * tests/test-spawn-pipe-child.c: Undefine fprintf.
4406         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4407
4408 2011-06-17  Bruno Haible  <bruno@clisp.org>
4409
4410         Tests: Remove unnecessary dependency.
4411         * modules/canonicalize-tests (Depends-on): Remove progname.
4412         * modules/chown-tests (Depends-on): Likewise.
4413         * modules/dirname-tests (Depends-on): Likewise.
4414         * modules/fdopendir-tests (Depends-on): Likewise.
4415         * modules/fdutimensat-tests (Depends-on): Likewise.
4416         * modules/hash-tests (Depends-on): Likewise.
4417         * modules/lchown-tests (Depends-on): Likewise.
4418         * modules/linkat-tests (Depends-on): Likewise.
4419         * modules/renameat-tests (Depends-on): Likewise.
4420         * modules/spawn-pipe-tests (Depends-on): Likewise.
4421         * modules/utimensat-tests (Depends-on): Likewise.
4422
4423 2011-06-17  Bruno Haible  <bruno@clisp.org>
4424
4425         spawn-pipe tests: Fix link error.
4426         * tests/test-spawn-pipe-child.c: Undefine fflush.
4427
4428 2011-06-17  Bruno Haible  <bruno@clisp.org>
4429
4430         Fix tests link errors.
4431         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
4432         * modules/chown-tests (Makefile.am): Don't link test-chown with
4433         LIBINTL.
4434         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
4435         LIBINTL.
4436         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
4437         LIBINTL.
4438         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
4439         LIBINTL.
4440
4441 2011-06-16  Bruno Haible  <bruno@clisp.org>
4442
4443         crypto/gc-sha1: Fix recent regression.
4444         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
4445         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
4446
4447         crypto/gc-md5: Fix recent regression.
4448         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
4449
4450         crypto/gc-md4: Fix recent regression.
4451         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
4452         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
4453
4454         crypto/gc-arctwo: Fix recent regression.
4455         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
4456         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
4457
4458         crypto/gc-rijndael: Fix recent regression.
4459         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
4460         (configure.ac): Invoke AC_LIBOBJ here.
4461         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
4462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4463
4464         crypto/gc-hmac-sha1: Fix recent regression.
4465         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
4466         (configure.ac): Invoke AC_LIBOBJ here.
4467         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
4468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4469
4470         crypto/gc-hmac-md5: Fix recent regression.
4471         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
4472         (configure.ac): Invoke AC_LIBOBJ here.
4473         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
4474         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4475
4476         crypto/gc-des: Fix recent regression.
4477         * modules/crypto/gc-des (Files): Remove m4/des.m4.
4478         (configure.ac): Invoke AC_LIBOBJ here.
4479         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
4480         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4481
4482         crypto/gc-arcfour: Fix recent regression.
4483         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
4484         (configure.ac): Invoke AC_LIBOBJ here.
4485         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
4486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4487
4488 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
4489
4490         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
4491         After the 2011-05-21 change, this macro requires
4492         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
4493         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4494
4495 2011-06-16  Bruno Haible  <bruno@clisp.org>
4496
4497         fprintftime: Move AC_LIBOBJ invocations to module description.
4498         * m4/fprintftime.m4: Remove file.
4499         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
4500         (configure.ac): Remove gl_FPRINTFTIME call.
4501         (Makefile.am): Augment lib_SOURCES.
4502         Reported by Jim Meyering.
4503
4504 2011-06-16  Bruno Haible  <bruno@clisp.org>
4505
4506         tmpfile-safer: Finish 2011-05-23 commit.
4507         * m4/stdio-safer.m4: Really remove file.
4508         Reported by Jim Meyering.
4509
4510 2011-06-16  Bruno Haible  <bruno@clisp.org>
4511
4512         syntax-check: Fix typo.
4513         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
4514         printf-posix.m4.
4515         Reported by Jim Meyering.
4516
4517 2011-06-13  Jim Meyering  <meyering@redhat.com>
4518
4519         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
4520         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
4521
4522 2011-05-23  Bruno Haible  <bruno@clisp.org>
4523
4524         yesno: Move AC_LIBOBJ invocations to module description.
4525         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
4526         * modules/yesno (Makefile.am): Augment lib_SOURCES.
4527
4528 2011-05-23  Bruno Haible  <bruno@clisp.org>
4529
4530         xstrtol: Move AC_LIBOBJ invocations to module description.
4531         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
4532         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
4533
4534 2011-05-23  Bruno Haible  <bruno@clisp.org>
4535
4536         xstrtold: Move AC_LIBOBJ invocations to module description.
4537         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
4538         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
4539
4540 2011-05-23  Bruno Haible  <bruno@clisp.org>
4541
4542         xstrtod: Move AC_LIBOBJ invocations to module description.
4543         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
4544         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
4545
4546 2011-05-23  Bruno Haible  <bruno@clisp.org>
4547
4548         xnanosleep: Move AC_LIBOBJ invocations to module description.
4549         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
4550         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
4551
4552 2011-05-23  Bruno Haible  <bruno@clisp.org>
4553
4554         xgetcwd: Move AC_LIBOBJ invocations to module description.
4555         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
4556         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
4557
4558 2011-05-23  Bruno Haible  <bruno@clisp.org>
4559
4560         xalloc: Move AC_LIBOBJ invocations to module description.
4561         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
4562         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
4563
4564 2011-05-23  Bruno Haible  <bruno@clisp.org>
4565
4566         write-any-file: Move AC_LIBOBJ invocations to module description.
4567         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
4568         invocation.
4569         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
4570
4571 2011-05-23  Bruno Haible  <bruno@clisp.org>
4572
4573         utimens: Move AC_LIBOBJ invocations to module description.
4574         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
4575         * modules/utimens (Makefile.am): Augment lib_SOURCES.
4576
4577 2011-05-23  Bruno Haible  <bruno@clisp.org>
4578
4579         utimecmp: Move AC_LIBOBJ invocations to module description.
4580         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
4581         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
4582
4583 2011-05-23  Bruno Haible  <bruno@clisp.org>
4584
4585         userspec: Move AC_LIBOBJ invocations to module description.
4586         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
4587         * modules/userspec (Makefile.am): Augment lib_SOURCES.
4588
4589 2011-05-23  Bruno Haible  <bruno@clisp.org>
4590
4591         unlinkdir: Move AC_LIBOBJ invocations to module description.
4592         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
4593         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
4594
4595 2011-05-23  Bruno Haible  <bruno@clisp.org>
4596
4597         unistd-safer: Move AC_LIBOBJ invocations to module description.
4598         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
4599         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
4600
4601 2011-05-23  Bruno Haible  <bruno@clisp.org>
4602
4603         tempname: Move AC_LIBOBJ invocations to module description.
4604         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
4605         * modules/tempname (Makefile.am): Augment lib_SOURCES.
4606
4607 2011-05-23  Bruno Haible  <bruno@clisp.org>
4608
4609         strftime: Move AC_LIBOBJ invocations to module description.
4610         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
4611         * modules/strftime (Makefile.am): Augment lib_SOURCES.
4612
4613 2011-05-23  Bruno Haible  <bruno@clisp.org>
4614
4615         stdlib-safer: Move AC_LIBOBJ invocations to module description.
4616         * m4/stdlib-safer.m4: Remove file.
4617         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
4618         (configure.ac): Remove gl_STDLIB_SAFER call.
4619         (Makefile.am): Augment lib_SOURCES.
4620
4621 2011-05-23  Bruno Haible  <bruno@clisp.org>
4622
4623         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
4624         * m4/stdio-safer.m4: Remove file.
4625         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
4626         (configure.ac): Remove gl_TMPFILE_SAFER call.
4627         (Makefile.am): Augment lib_SOURCES.
4628
4629 2011-05-23  Bruno Haible  <bruno@clisp.org>
4630
4631         popen-safer: Move AC_LIBOBJ invocations to module description.
4632         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
4633         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
4634         (configure.ac): Remove gl_POPEN_SAFER call.
4635         (Makefile.am): Augment lib_SOURCES.
4636
4637 2011-05-23  Bruno Haible  <bruno@clisp.org>
4638
4639         freopen-safer: Move AC_LIBOBJ invocations to module description.
4640         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
4641         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
4642         (configure.ac): Remove gl_FREOPEN_SAFER call.
4643         (Makefile.am): Augment lib_SOURCES.
4644
4645 2011-05-23  Bruno Haible  <bruno@clisp.org>
4646
4647         fopen-safer: Move AC_LIBOBJ invocations to module description.
4648         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
4649         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
4650         (configure.ac): Remove gl_FOPEN_SAFER call.
4651         (Makefile.am): Augment lib_SOURCES.
4652
4653 2011-05-23  Bruno Haible  <bruno@clisp.org>
4654
4655         crypto/sha512: Move AC_LIBOBJ invocations to module description.
4656         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
4657         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
4658
4659 2011-05-23  Bruno Haible  <bruno@clisp.org>
4660
4661         crypto/sha256: Move AC_LIBOBJ invocations to module description.
4662         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
4663         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
4664
4665 2011-05-23  Bruno Haible  <bruno@clisp.org>
4666
4667         crypto/sha1: Move AC_LIBOBJ invocations to module description.
4668         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
4669         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
4670
4671 2011-05-23  Bruno Haible  <bruno@clisp.org>
4672
4673         settime: Move AC_LIBOBJ invocations to module description.
4674         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
4675         * modules/settime (Makefile.am): Augment lib_SOURCES.
4676
4677 2011-05-23  Bruno Haible  <bruno@clisp.org>
4678
4679         savedir: Move AC_LIBOBJ invocations to module description.
4680         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
4681         * modules/savedir (Makefile.am): Augment lib_SOURCES.
4682
4683 2011-05-23  Bruno Haible  <bruno@clisp.org>
4684
4685         save-cwd: Move AC_LIBOBJ invocations to module description.
4686         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
4687         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
4688
4689 2011-05-23  Bruno Haible  <bruno@clisp.org>
4690
4691         same: Move AC_LIBOBJ invocations to module description.
4692         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
4693         * modules/same (Makefile.am): Augment lib_SOURCES.
4694
4695 2011-05-23  Bruno Haible  <bruno@clisp.org>
4696
4697         safe-write: Move AC_LIBOBJ invocations to module description.
4698         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
4699         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
4700         instead of gl_SAFE_WRITE.
4701         (Makefile.am): Augment lib_SOURCES.
4702
4703 2011-05-23  Bruno Haible  <bruno@clisp.org>
4704
4705         safe-read: Move AC_LIBOBJ invocations to module description.
4706         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
4707         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
4708         of gl_SAFE_READ.
4709         (Makefile.am): Augment lib_SOURCES.
4710
4711 2011-05-23  Bruno Haible  <bruno@clisp.org>
4712
4713         safe-alloc: Move AC_LIBOBJ invocations to module description.
4714         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
4715         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
4716
4717 2011-05-23  Bruno Haible  <bruno@clisp.org>
4718
4719         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
4720         * m4/rijndael.m4: Remove file.
4721         * modules/crypto/rijndael (Files): Remove it.
4722         (configure.ac): Remove gl_RIJNDAEL call.
4723         (Makefile.am): Augment lib_SOURCES.
4724
4725 2011-05-23  Bruno Haible  <bruno@clisp.org>
4726
4727         readtokens: Move AC_LIBOBJ invocations to module description.
4728         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
4729         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
4730
4731 2011-05-23  Bruno Haible  <bruno@clisp.org>
4732
4733         read-file: Move AC_LIBOBJ invocations to module description.
4734         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
4735         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
4736         of gl_FUNC_READ_FILE.
4737         (Makefile.am): Augment lib_SOURCES.
4738
4739 2011-05-23  Bruno Haible  <bruno@clisp.org>
4740
4741         quotearg: Move AC_LIBOBJ invocations to module description.
4742         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
4743         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
4744
4745 2011-05-23  Bruno Haible  <bruno@clisp.org>
4746
4747         quote: Move AC_LIBOBJ invocations to module description.
4748         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
4749         * modules/quote (Makefile.am): Augment lib_SOURCES.
4750
4751 2011-05-23  Bruno Haible  <bruno@clisp.org>
4752
4753         posixver: Move AC_LIBOBJ invocations to module description.
4754         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
4755         * modules/posixver (Makefile.am): Augment lib_SOURCES.
4756
4757 2011-05-23  Bruno Haible  <bruno@clisp.org>
4758
4759         posixtm: Move AC_LIBOBJ invocations to module description.
4760         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
4761         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
4762
4763 2011-05-23  Bruno Haible  <bruno@clisp.org>
4764
4765         physmem: Move AC_LIBOBJ invocations to module description.
4766         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
4767         * modules/physmem (Makefile.am): Augment lib_SOURCES.
4768
4769 2011-05-23  Bruno Haible  <bruno@clisp.org>
4770
4771         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
4772         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
4773         invocation.
4774         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
4775
4776 2011-05-23  Bruno Haible  <bruno@clisp.org>
4777
4778         mpsort: Move AC_LIBOBJ invocations to module description.
4779         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
4780         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
4781
4782 2011-05-23  Bruno Haible  <bruno@clisp.org>
4783
4784         modechange: Move AC_LIBOBJ invocations to module description.
4785         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
4786         * modules/modechange (Makefile.am): Augment lib_SOURCES.
4787
4788 2011-05-23  Bruno Haible  <bruno@clisp.org>
4789
4790         mkdir-p: Move AC_LIBOBJ invocations to module description.
4791         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
4792         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
4793
4794 2011-05-23  Bruno Haible  <bruno@clisp.org>
4795
4796         mkancesdirs: Move AC_LIBOBJ invocations to module description.
4797         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
4798         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
4799
4800 2011-05-23  Bruno Haible  <bruno@clisp.org>
4801
4802         mgetgroups: Move AC_LIBOBJ invocations to module description.
4803         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
4804         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
4805
4806 2011-05-23  Bruno Haible  <bruno@clisp.org>
4807
4808         memxor: Move AC_LIBOBJ invocations to module description.
4809         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
4810         * modules/memxor (Makefile.am): Augment lib_SOURCES.
4811
4812 2011-05-23  Bruno Haible  <bruno@clisp.org>
4813
4814         memcoll: Move AC_LIBOBJ invocations to module description.
4815         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
4816         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
4817
4818 2011-05-23  Bruno Haible  <bruno@clisp.org>
4819
4820         memcasecmp: Move AC_LIBOBJ invocations to module description.
4821         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
4822         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
4823
4824 2011-05-23  Bruno Haible  <bruno@clisp.org>
4825
4826         crypto/md5: Move AC_LIBOBJ invocations to module description.
4827         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
4828         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
4829
4830 2011-05-23  Bruno Haible  <bruno@clisp.org>
4831
4832         crypto/md4: Move AC_LIBOBJ invocations to module description.
4833         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
4834         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
4835
4836 2011-05-23  Bruno Haible  <bruno@clisp.org>
4837
4838         crypto/md2: Move AC_LIBOBJ invocations to module description.
4839         * m4/md2.m4: Remove file.
4840         * modules/crypto/md2 (Files): Remove it.
4841         (configure.ac): Remove gl_MD2 call.
4842         (Makefile.am): Augment lib_SOURCES.
4843
4844 2011-05-23  Bruno Haible  <bruno@clisp.org>
4845
4846         long-options: Move AC_LIBOBJ invocations to module description.
4847         * m4/long-options.m4: Remove file.
4848         * modules/long-options (Files): Remove it.
4849         (configure.ac): Remove gl_LONG_OPTIONS call.
4850         (Makefile.am): Augment lib_SOURCES.
4851
4852 2011-05-23  Bruno Haible  <bruno@clisp.org>
4853
4854         i-ring: Move AC_LIBOBJ invocations to module description.
4855         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
4856         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
4857
4858 2011-05-23  Bruno Haible  <bruno@clisp.org>
4859
4860         idcache: Move AC_LIBOBJ invocations to module description.
4861         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
4862         * modules/idcache (Makefile.am): Augment lib_SOURCES.
4863
4864 2011-05-23  Bruno Haible  <bruno@clisp.org>
4865
4866         human: Move AC_LIBOBJ invocations to module description.
4867         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
4868         * modules/human (Makefile.am): Augment lib_SOURCES.
4869
4870 2011-05-23  Bruno Haible  <bruno@clisp.org>
4871
4872         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
4873         * m4/hmac-sha1.m4: Remove file.
4874         * modules/crypto/hmac-sha1 (Files): Remove it.
4875         (configure.ac): Remove gl_HMAC_SHA1 call.
4876         (Makefile.am): Augment lib_SOURCES.
4877
4878 2011-05-23  Bruno Haible  <bruno@clisp.org>
4879
4880         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
4881         * m4/hmac-md5.m4: Remove file.
4882         * modules/crypto/hmac-md5 (Files): Remove it.
4883         (configure.ac): Remove gl_HMAC_MD5 call.
4884         (Makefile.am): Augment lib_SOURCES.
4885
4886 2011-05-23  Bruno Haible  <bruno@clisp.org>
4887
4888         hash: Move AC_LIBOBJ invocations to module description.
4889         * m4/hash.m4: Remove file.
4890         * modules/hash (Files): Remove it.
4891         (configure.ac): Remove gl_HASH call.
4892         (Makefile.am): Augment lib_SOURCES.
4893
4894 2011-05-23  Bruno Haible  <bruno@clisp.org>
4895
4896         hard-locale: Move AC_LIBOBJ invocations to module description.
4897         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
4898         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
4899
4900 2011-05-23  Bruno Haible  <bruno@clisp.org>
4901
4902         getugroups: Move AC_LIBOBJ invocations to module description.
4903         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
4904         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
4905
4906 2011-05-23  Bruno Haible  <bruno@clisp.org>
4907
4908         gettime: Move AC_LIBOBJ invocations to module description.
4909         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
4910         * modules/gettime (Makefile.am): Augment lib_SOURCES.
4911
4912 2011-05-23  Bruno Haible  <bruno@clisp.org>
4913
4914         getndelim2: Move AC_LIBOBJ invocations to module description.
4915         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
4916         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
4917
4918 2011-05-23  Bruno Haible  <bruno@clisp.org>
4919
4920         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
4921         * m4/gc-pbkdf2-sha1.m4: Remove file.
4922         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
4923         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
4924         (Makefile.am): Augment lib_SOURCES.
4925
4926 2011-05-23  Bruno Haible  <bruno@clisp.org>
4927
4928         fts: Move AC_LIBOBJ invocations to module description.
4929         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
4930         * modules/fts (configure.ac): ... to here.
4931
4932 2011-05-23  Bruno Haible  <bruno@clisp.org>
4933
4934         file-type: Move AC_LIBOBJ invocations to module description.
4935         * m4/file-type.m4: Remove file.
4936         * modules/file-type (Files): Remove it.
4937         (configure.ac): Remove gl_FILE_TYPE call.
4938         (Makefile.am): Augment lib_SOURCES.
4939
4940 2011-05-23  Bruno Haible  <bruno@clisp.org>
4941
4942         filenamecat*: Respect rules for use of AC_LIBOBJ.
4943         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
4944         Remove AC_LIBOBJ invocation.
4945         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
4946         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
4947
4948 2011-05-23  Bruno Haible  <bruno@clisp.org>
4949
4950         filemode: Move AC_LIBOBJ invocations to module description.
4951         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
4952         * modules/filemode (Makefile.am): Augment lib_SOURCES.
4953
4954 2011-05-23  Bruno Haible  <bruno@clisp.org>
4955
4956         openat-safer: Move AC_LIBOBJ invocations to module description.
4957         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
4958         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
4959
4960 2011-05-23  Bruno Haible  <bruno@clisp.org>
4961
4962         fcntl-safer: Move AC_LIBOBJ invocations to module description.
4963         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
4964         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
4965
4966 2011-05-23  Bruno Haible  <bruno@clisp.org>
4967
4968         exclude: Move AC_LIBOBJ invocations to module description.
4969         * m4/exclude.m4: Remove file.
4970         * modules/exclude (Files): Remove it.
4971         (configure.ac): Remove gl_EXCLUDE call.
4972         (Makefile.am): Augment lib_SOURCES.
4973
4974 2011-05-23  Bruno Haible  <bruno@clisp.org>
4975
4976         dirname*: Respect rules for use of AC_LIBOBJ.
4977         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4978         invocations.
4979         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4980         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4981
4982 2011-05-23  Bruno Haible  <bruno@clisp.org>
4983
4984         dirent-safer: Move AC_LIBOBJ invocations to module description.
4985         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4986         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4987
4988 2011-05-23  Bruno Haible  <bruno@clisp.org>
4989
4990         crypto/des: Move AC_LIBOBJ invocations to module description.
4991         * m4/des.m4: Remove file.
4992         * modules/crypto/des (Files): Remove it.
4993         (configure.ac): Remove gl_DES call.
4994         (Makefile.am): Augment lib_SOURCES.
4995
4996 2011-05-23  Bruno Haible  <bruno@clisp.org>
4997
4998         cycle-check: Move AC_LIBOBJ invocations to module description.
4999         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
5000         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
5001
5002 2011-05-23  Bruno Haible  <bruno@clisp.org>
5003
5004         c-strtold: Move AC_LIBOBJ invocations to module description.
5005         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
5006         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
5007
5008 2011-05-23  Bruno Haible  <bruno@clisp.org>
5009
5010         c-strtod: Move AC_LIBOBJ invocations to module description.
5011         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
5012         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
5013
5014 2011-05-23  Bruno Haible  <bruno@clisp.org>
5015
5016         crc: Move AC_LIBOBJ invocations to module description.
5017         * m4/crc.m4: Remove file.
5018         * modules/crc (Files): Remove it.
5019         (configure.ac): Remove gl_CRC call.
5020         (Makefile.am): Augment lib_SOURCES.
5021
5022 2011-05-23  Bruno Haible  <bruno@clisp.org>
5023
5024         close-stream: Move AC_LIBOBJ invocations to module description.
5025         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
5026         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
5027
5028 2011-05-23  Bruno Haible  <bruno@clisp.org>
5029
5030         closeout: Move AC_LIBOBJ invocations to module description.
5031         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
5032         * modules/closeout (Makefile.am): Augment lib_SOURCES.
5033
5034 2011-05-23  Bruno Haible  <bruno@clisp.org>
5035
5036         closein: Move AC_LIBOBJ invocations to module description.
5037         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
5038         * modules/closein (Makefile.am): Augment lib_SOURCES.
5039
5040 2011-05-23  Bruno Haible  <bruno@clisp.org>
5041
5042         cloexec: Move AC_LIBOBJ invocations to module description.
5043         * m4/cloexec.m4: Remove file.
5044         * modules/cloexec (Files): Remove it.
5045         (configure.ac): Remove gl_CLOEXEC call.
5046         (Makefile.am): Augment lib_SOURCES.
5047
5048 2011-05-23  Bruno Haible  <bruno@clisp.org>
5049
5050         check-version: Move AC_LIBOBJ invocations to module description.
5051         * m4/check-version.m4: Remove file.
5052         * modules/check-version (Files): Remove it.
5053         (configure.ac): Remove gl_CHECK_VERSION call.
5054         (Makefile.am): Augment lib_SOURCES.
5055
5056 2011-05-23  Bruno Haible  <bruno@clisp.org>
5057
5058         chdir-safer: Move AC_LIBOBJ invocations to module description.
5059         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
5060         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
5061
5062 2011-05-23  Bruno Haible  <bruno@clisp.org>
5063
5064         canonicalize: Move AC_LIBOBJ invocations to module description.
5065         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
5066         AC_LIBOBJ invocation.
5067         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
5068
5069 2011-05-23  Bruno Haible  <bruno@clisp.org>
5070
5071         canon-host: Move AC_LIBOBJ invocations to module description.
5072         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
5073         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
5074         instead of gl_CANON_HOST.
5075         (Makefile.am): Augment lib_SOURCES.
5076
5077 2011-05-23  Bruno Haible  <bruno@clisp.org>
5078
5079         backupfile: Move AC_LIBOBJ invocations to module description.
5080         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
5081         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
5082
5083 2011-05-23  Bruno Haible  <bruno@clisp.org>
5084
5085         argmatch: Move AC_LIBOBJ invocations to module description.
5086         * m4/argmatch.m4: Remove file.
5087         * modules/argmatch (Files): Remove it.
5088         (configure.ac): Remove gl_ARGMATCH call.
5089         (Makefile.am): Augment lib_SOURCES.
5090
5091 2011-05-23  Bruno Haible  <bruno@clisp.org>
5092
5093         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
5094         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
5095         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
5096
5097 2011-05-23  Bruno Haible  <bruno@clisp.org>
5098
5099         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
5100         * m4/arcfour.m4: Remove file.
5101         * modules/crypto/arcfour (Files): Remove it.
5102         (configure.ac): Remove gl_ARCFOUR call.
5103         (Makefile.am): Augment lib_SOURCES.
5104
5105 2011-05-22  Bruno Haible  <bruno@clisp.org>
5106
5107         write: Move AC_LIBOBJ invocations to module description.
5108         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
5109         * modules/write (configure.ac): ... to here.
5110
5111 2011-05-22  Bruno Haible  <bruno@clisp.org>
5112
5113         wmemset: Move AC_LIBOBJ invocations to module description.
5114         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
5115         here...
5116         * modules/wmemset (configure.ac): ... to here.
5117
5118 2011-05-22  Bruno Haible  <bruno@clisp.org>
5119
5120         wmemmove: Move AC_LIBOBJ invocations to module description.
5121         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
5122         here...
5123         * modules/wmemmove (configure.ac): ... to here.
5124
5125 2011-05-22  Bruno Haible  <bruno@clisp.org>
5126
5127         wmemcpy: Move AC_LIBOBJ invocations to module description.
5128         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
5129         here...
5130         * modules/wmemcpy (configure.ac): ... to here.
5131
5132 2011-05-22  Bruno Haible  <bruno@clisp.org>
5133
5134         wmemcmp: Move AC_LIBOBJ invocations to module description.
5135         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
5136         here...
5137         * modules/wmemcmp (configure.ac): ... to here.
5138
5139 2011-05-22  Bruno Haible  <bruno@clisp.org>
5140
5141         wmemchr: Move AC_LIBOBJ invocations to module description.
5142         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
5143         here...
5144         * modules/wmemchr (configure.ac): ... to here.
5145
5146 2011-05-22  Bruno Haible  <bruno@clisp.org>
5147
5148         wcswidth: Move AC_LIBOBJ invocations to module description.
5149         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
5150         here...
5151         * modules/wcswidth (configure.ac): ... to here.
5152
5153 2011-05-22  Bruno Haible  <bruno@clisp.org>
5154
5155         wcwidth: Respect rules for use of AC_LIBOBJ.
5156         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
5157         invocation from here...
5158         * modules/wcwidth (configure.ac): ... to here.
5159         (Depends-on): Update conditions.
5160
5161 2011-05-22  Bruno Haible  <bruno@clisp.org>
5162
5163         wctype: Move AC_LIBOBJ invocations to module description.
5164         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
5165         invocation from here...
5166         * modules/wctype (configure.ac): ... to here.
5167         (Depends-on): Update conditions.
5168
5169 2011-05-22  Bruno Haible  <bruno@clisp.org>
5170
5171         wctrans: Move AC_LIBOBJ invocations to module description.
5172         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
5173         invocation from here...
5174         * modules/wctrans (configure.ac): ... to here.
5175
5176 2011-05-22  Bruno Haible  <bruno@clisp.org>
5177
5178         wctomb: Move AC_LIBOBJ invocations to module description.
5179         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
5180         invocations from here...
5181         * modules/wctomb (configure.ac): ... to here.
5182
5183 2011-05-22  Bruno Haible  <bruno@clisp.org>
5184
5185         wctob: Move AC_LIBOBJ invocations to module description.
5186         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
5187         gl_PREREQ_WCTOB invocations from here...
5188         * modules/wctob (configure.ac): ... to here.
5189         (Depends-on): Update conditions.
5190
5191 2011-05-22  Bruno Haible  <bruno@clisp.org>
5192
5193         wcsxfrm: Move AC_LIBOBJ invocations to module description.
5194         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
5195         here...
5196         * modules/wcsxfrm (configure.ac): ... to here.
5197
5198 2011-05-22  Bruno Haible  <bruno@clisp.org>
5199
5200         wcstok: Move AC_LIBOBJ invocations to module description.
5201         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
5202         * modules/wcstok (configure.ac): ... to here.
5203
5204 2011-05-22  Bruno Haible  <bruno@clisp.org>
5205
5206         wcsstr: Move AC_LIBOBJ invocations to module description.
5207         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
5208         * modules/wcsstr (configure.ac): ... to here.
5209
5210 2011-05-22  Bruno Haible  <bruno@clisp.org>
5211
5212         wcsspn: Move AC_LIBOBJ invocations to module description.
5213         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
5214         * modules/wcsspn (configure.ac): ... to here.
5215
5216 2011-05-22  Bruno Haible  <bruno@clisp.org>
5217
5218         wcsrtombs: Move AC_LIBOBJ invocations to module description.
5219         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
5220         gl_PREREQ_WCSRTOMBS invocations from here...
5221         * modules/wcsrtombs (configure.ac): ... to here.
5222
5223 2011-05-22  Bruno Haible  <bruno@clisp.org>
5224
5225         wcsrchr: Move AC_LIBOBJ invocations to module description.
5226         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
5227         here...
5228         * modules/wcsrchr (configure.ac): ... to here.
5229
5230 2011-05-22  Bruno Haible  <bruno@clisp.org>
5231
5232         wcspbrk: Move AC_LIBOBJ invocations to module description.
5233         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
5234         here...
5235         * modules/wcspbrk (configure.ac): ... to here.
5236
5237 2011-05-22  Bruno Haible  <bruno@clisp.org>
5238
5239         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
5240         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
5241         gl_PREREQ_WCSNRTOMBS invocations from here...
5242         * modules/wcsnrtombs (configure.ac): ... to here.
5243
5244 2011-05-22  Bruno Haible  <bruno@clisp.org>
5245
5246         wcsnlen: Move AC_LIBOBJ invocations to module description.
5247         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
5248         here...
5249         * modules/wcsnlen (configure.ac): ... to here.
5250
5251 2011-05-22  Bruno Haible  <bruno@clisp.org>
5252
5253         wcsncpy: Move AC_LIBOBJ invocations to module description.
5254         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
5255         here...
5256         * modules/wcsncpy (configure.ac): ... to here.
5257
5258 2011-05-22  Bruno Haible  <bruno@clisp.org>
5259
5260         wcsncmp: Move AC_LIBOBJ invocations to module description.
5261         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
5262         here...
5263         * modules/wcsncmp (configure.ac): ... to here.
5264
5265 2011-05-22  Bruno Haible  <bruno@clisp.org>
5266
5267         wcsncat: Move AC_LIBOBJ invocations to module description.
5268         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
5269         here...
5270         * modules/wcsncat (configure.ac): ... to here.
5271
5272 2011-05-22  Bruno Haible  <bruno@clisp.org>
5273
5274         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
5275         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
5276         from here...
5277         * modules/wcsncasecmp (configure.ac): ... to here.
5278
5279 2011-05-22  Bruno Haible  <bruno@clisp.org>
5280
5281         wcslen: Move AC_LIBOBJ invocations to module description.
5282         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
5283         * modules/wcslen (configure.ac): ... to here.
5284
5285 2011-05-22  Bruno Haible  <bruno@clisp.org>
5286
5287         wcsdup: Move AC_LIBOBJ invocations to module description.
5288         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
5289         * modules/wcsdup (configure.ac): ... to here.
5290
5291 2011-05-22  Bruno Haible  <bruno@clisp.org>
5292
5293         wcscspn: Move AC_LIBOBJ invocations to module description.
5294         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
5295         here...
5296         * modules/wcscspn (configure.ac): ... to here.
5297
5298 2011-05-22  Bruno Haible  <bruno@clisp.org>
5299
5300         wcscpy: Move AC_LIBOBJ invocations to module description.
5301         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
5302         * modules/wcscpy (configure.ac): ... to here.
5303
5304 2011-05-22  Bruno Haible  <bruno@clisp.org>
5305
5306         wcscoll: Move AC_LIBOBJ invocations to module description.
5307         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
5308         here...
5309         * modules/wcscoll (configure.ac): ... to here.
5310
5311 2011-05-22  Bruno Haible  <bruno@clisp.org>
5312
5313         wcscmp: Move AC_LIBOBJ invocations to module description.
5314         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
5315         * modules/wcscmp (configure.ac): ... to here.
5316
5317 2011-05-22  Bruno Haible  <bruno@clisp.org>
5318
5319         wcschr: Move AC_LIBOBJ invocations to module description.
5320         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
5321         * modules/wcschr (configure.ac): ... to here.
5322
5323 2011-05-22  Bruno Haible  <bruno@clisp.org>
5324
5325         wcscat: Move AC_LIBOBJ invocations to module description.
5326         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
5327         * modules/wcscat (configure.ac): ... to here.
5328
5329 2011-05-22  Bruno Haible  <bruno@clisp.org>
5330
5331         wcscasecmp: Move AC_LIBOBJ invocations to module description.
5332         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
5333         here...
5334         * modules/wcscasecmp (configure.ac): ... to here.
5335
5336 2011-05-22  Bruno Haible  <bruno@clisp.org>
5337
5338         wcrtomb: Move AC_LIBOBJ invocations to module description.
5339         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
5340         invocations from here...
5341         * modules/wcrtomb (configure.ac): ... to here.
5342
5343 2011-05-22  Bruno Haible  <bruno@clisp.org>
5344
5345         wcpncpy: Move AC_LIBOBJ invocations to module description.
5346         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
5347         here...
5348         * modules/wcpncpy (configure.ac): ... to here.
5349
5350 2011-05-22  Bruno Haible  <bruno@clisp.org>
5351
5352         wcpcpy: Move AC_LIBOBJ invocations to module description.
5353         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
5354         * modules/wcpcpy (configure.ac): ... to here.
5355
5356 2011-05-22  Bruno Haible  <bruno@clisp.org>
5357
5358         waitpid: Move AC_LIBOBJ invocations to module description.
5359         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
5360         invocation from here...
5361         * modules/waitpid (configure.ac): ... to here.
5362
5363 2011-05-22  Bruno Haible  <bruno@clisp.org>
5364
5365         utimensat: Move AC_LIBOBJ invocations to module description.
5366         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
5367         here...
5368         * modules/utimensat (configure.ac): ... to here.
5369
5370 2011-05-22  Bruno Haible  <bruno@clisp.org>
5371
5372         usleep: Move AC_LIBOBJ invocations to module description.
5373         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
5374         here...
5375         * modules/usleep (configure.ac): ... to here.
5376
5377 2011-05-22  Bruno Haible  <bruno@clisp.org>
5378
5379         unlockpt: Move AC_LIBOBJ invocations to module description.
5380         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
5381         gl_PREREQ_UNLOCKPT invocations from here...
5382         * modules/unlockpt (configure.ac): ... to here.
5383
5384 2011-05-22  Bruno Haible  <bruno@clisp.org>
5385
5386         unlink: Respect rules for use of AC_LIBOBJ.
5387         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
5388         * modules/unlink (configure.ac): ... to here.
5389
5390 2011-05-22  Bruno Haible  <bruno@clisp.org>
5391
5392         uname: Move AC_LIBOBJ invocations to module description.
5393         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
5394         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
5395         here...
5396         * modules/uname (configure.ac): ... to here.
5397
5398 2011-05-22  Bruno Haible  <bruno@clisp.org>
5399
5400         ttyname_r: Move AC_LIBOBJ invocations to module description.
5401         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
5402         gl_PREREQ_TTYNAME_R invocations from here...
5403         * modules/ttyname_r (configure.ac): ... to here.
5404
5405 2011-05-22  Bruno Haible  <bruno@clisp.org>
5406
5407         tsearch: Move AC_LIBOBJ invocations to module description.
5408         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
5409         invocations from here...
5410         * modules/tsearch (configure.ac): ... to here.
5411
5412 2011-05-22  Bruno Haible  <bruno@clisp.org>
5413
5414         towctrans: Move AC_LIBOBJ invocations to module description.
5415         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
5416         AC_LIBOBJ invocation from here...
5417         * modules/towctrans (configure.ac): ... to here.
5418
5419 2011-05-22  Bruno Haible  <bruno@clisp.org>
5420
5421         tmpfile: Move AC_LIBOBJ invocations to module description.
5422         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
5423         invocations from here...
5424         * modules/tmpfile (configure.ac): ... to here.
5425
5426 2011-05-22  Bruno Haible  <bruno@clisp.org>
5427
5428         times: Move AC_LIBOBJ invocations to module description.
5429         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
5430         * modules/times (configure.ac): ... to here.
5431
5432 2011-05-22  Bruno Haible  <bruno@clisp.org>
5433
5434         time_r: Move AC_LIBOBJ invocations to module description.
5435         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
5436         invocations from here...
5437         * modules/time_r (configure.ac): ... to here.
5438
5439 2011-05-22  Bruno Haible  <bruno@clisp.org>
5440
5441         timegm: Move AC_LIBOBJ invocations to module description.
5442         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
5443         invocations from here...
5444         * modules/timegm (configure.ac): ... to here.
5445
5446 2011-05-22  Bruno Haible  <bruno@clisp.org>
5447
5448         tcgetsid: Move AC_LIBOBJ invocations to module description.
5449         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
5450         and gl_PREREQ_TCGETSID invocations from here...
5451         * modules/tcgetsid (configure.ac): ... to here.
5452         (Depends-on): Update conditions.
5453
5454 2011-05-22  Bruno Haible  <bruno@clisp.org>
5455
5456         symlinkat: Move AC_LIBOBJ invocations to module description.
5457         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
5458         here...
5459         * modules/symlinkat (configure.ac): ... to here.
5460
5461 2011-05-22  Bruno Haible  <bruno@clisp.org>
5462
5463         symlink: Move AC_LIBOBJ invocations to module description.
5464         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
5465         here...
5466         * modules/symlink (configure.ac): ... to here.
5467
5468 2011-05-22  Bruno Haible  <bruno@clisp.org>
5469
5470         strverscmp: Move AC_LIBOBJ invocations to module description.
5471         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
5472         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
5473         from here...
5474         * modules/strverscmp (configure.ac): ... to here.
5475
5476 2011-05-22  Bruno Haible  <bruno@clisp.org>
5477
5478         strtok_r: Move AC_LIBOBJ invocations to module description.
5479         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
5480         and gl_PREREQ_STRTOK_R invocations from here...
5481         * modules/strtok_r (configure.ac): ... to here.
5482         (Depends-on): Update conditions.
5483
5484 2011-05-22  Bruno Haible  <bruno@clisp.org>
5485
5486         strtoumax: Move AC_LIBOBJ invocations to module description.
5487         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
5488         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
5489         from here...
5490         * modules/strtoumax (configure.ac): ... to here.
5491
5492 2011-05-22  Bruno Haible  <bruno@clisp.org>
5493
5494         strtoimax: Move AC_LIBOBJ invocations to module description.
5495         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
5496         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
5497         from here...
5498         * modules/strtoimax (configure.ac): ... to here.
5499
5500 2011-05-22  Bruno Haible  <bruno@clisp.org>
5501
5502         strtoull: Move AC_LIBOBJ invocations to module description.
5503         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
5504         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
5505         from here...
5506         * modules/strtoull (configure.ac): ... to here.
5507
5508 2011-05-22  Bruno Haible  <bruno@clisp.org>
5509
5510         strtoll: Move AC_LIBOBJ invocations to module description.
5511         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
5512         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
5513         here...
5514         * modules/strtoll (configure.ac): ... to here.
5515
5516 2011-05-22  Bruno Haible  <bruno@clisp.org>
5517
5518         strtoul: Move AC_LIBOBJ invocations to module description.
5519         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
5520         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5521         * modules/strtoul (configure.ac): ... to here.
5522
5523 2011-05-22  Bruno Haible  <bruno@clisp.org>
5524
5525         strtol: Move AC_LIBOBJ invocations to module description.
5526         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
5527         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5528         * modules/strtol (configure.ac): ... to here.
5529
5530 2011-05-22  Bruno Haible  <bruno@clisp.org>
5531
5532         strtod: Move AC_LIBOBJ invocations to module description.
5533         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
5534         invocations from here...
5535         * modules/strtod (configure.ac): ... to here.
5536
5537 2011-05-22  Bruno Haible  <bruno@clisp.org>
5538
5539         strstr*: Move AC_LIBOBJ invocations to module description.
5540         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
5541         invocations from here...
5542         * modules/strstr-simple (configure.ac): ... to here.
5543         * modules/strstr (configure.ac): ... and here.
5544
5545 2011-05-22  Bruno Haible  <bruno@clisp.org>
5546
5547         strsignal: Move AC_LIBOBJ invocations to module description.
5548         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
5549         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
5550         * modules/strsignal (configure.ac): ... to here.
5551         (Depends-on): Update conditions.
5552
5553 2011-05-22  Bruno Haible  <bruno@clisp.org>
5554
5555         strsep: Move AC_LIBOBJ invocations to module description.
5556         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
5557         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
5558         here...
5559         * modules/strsep (configure.ac): ... to here.
5560
5561 2011-05-22  Bruno Haible  <bruno@clisp.org>
5562
5563         strptime: Move AC_LIBOBJ invocations to module description.
5564         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
5565         gl_PREREQ_STRPTIME invocations from here...
5566         * modules/strptime (configure.ac): ... to here.
5567
5568 2011-05-22  Bruno Haible  <bruno@clisp.org>
5569
5570         strpbrk: Move AC_LIBOBJ invocations to module description.
5571         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
5572         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
5573         here...
5574         * modules/strpbrk (configure.ac): ... to here.
5575
5576 2011-05-22  Bruno Haible  <bruno@clisp.org>
5577
5578         strnlen: Move AC_LIBOBJ invocations to module description.
5579         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
5580         invocations from here...
5581         * modules/strnlen (configure.ac): ... to here.
5582
5583 2011-05-22  Bruno Haible  <bruno@clisp.org>
5584
5585         strndup: Move AC_LIBOBJ invocations to module description.
5586         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
5587         invocations from here...
5588         * modules/strndup (configure.ac): ... to here.
5589         (Depends-on): Update conditions.
5590
5591 2011-05-22  Bruno Haible  <bruno@clisp.org>
5592
5593         strncat: Move AC_LIBOBJ invocations to module description.
5594         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
5595         invocations from here...
5596         * modules/strncat (configure.ac): ... to here.
5597
5598 2011-05-22  Bruno Haible  <bruno@clisp.org>
5599
5600         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
5601         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
5602         invocations from here...
5603         * modules/strdup (configure.ac): ... to here.
5604         * modules/strdup-posix (configure.ac): ... and here.
5605
5606 2011-05-22  Bruno Haible  <bruno@clisp.org>
5607
5608         strcspn: Move AC_LIBOBJ invocations to module description.
5609         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
5610         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
5611         here...
5612         * modules/strcspn (configure.ac): ... to here.
5613
5614 2011-05-22  Bruno Haible  <bruno@clisp.org>
5615
5616         strchrnul: Move AC_LIBOBJ invocations to module description.
5617         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
5618         gl_PREREQ_STRCHRNUL invocations from here...
5619         * modules/strchrnul (configure.ac): ... to here.
5620
5621 2011-05-22  Bruno Haible  <bruno@clisp.org>
5622
5623         strcasestr*: Move AC_LIBOBJ invocations to module description.
5624         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5625         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
5626         * modules/strcasestr-simple (configure.ac): ... to here.
5627         * modules/strcasestr (configure.ac): ... and here.
5628
5629 2011-05-22  Bruno Haible  <bruno@clisp.org>
5630
5631         strcase: Move AC_LIBOBJ invocations to module description.
5632         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
5633         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
5634         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
5635         gl_PREREQ_STRNCASECMP invocations from here...
5636         * modules/strcase (configure.ac): ... to here.
5637
5638 2011-05-22  Bruno Haible  <bruno@clisp.org>
5639
5640         stpncpy: Move AC_LIBOBJ invocations to module description.
5641         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
5642         here...
5643         * modules/stpncpy (configure.ac): ... to here.
5644
5645 2011-05-22  Bruno Haible  <bruno@clisp.org>
5646
5647         stpcpy: Move AC_LIBOBJ invocations to module description.
5648         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
5649         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
5650         here...
5651         * modules/stpcpy (configure.ac): ... to here.
5652
5653 2011-05-21  Bruno Haible  <bruno@clisp.org>
5654
5655         stat: Move AC_LIBOBJ invocations to module description.
5656         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
5657         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
5658         here...
5659         * modules/stat (configure.ac): ... to here.
5660
5661 2011-05-21  Bruno Haible  <bruno@clisp.org>
5662
5663         sleep: Move AC_LIBOBJ invocations to module description.
5664         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
5665         * modules/sleep (configure.ac): ... to here.
5666
5667 2011-05-21  Bruno Haible  <bruno@clisp.org>
5668
5669         signbit: Move AC_LIBOBJ invocations to module description.
5670         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
5671         * modules/signbit (configure.ac): ... to here.
5672
5673 2011-05-21  Bruno Haible  <bruno@clisp.org>
5674
5675         sigprocmask: Move AC_LIBOBJ invocations to module description.
5676         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
5677         gl_PREREQ_SIGPROMASK invocations from here...
5678         * modules/sigprocmask (configure.ac): ... to here.
5679
5680 2011-05-21  Bruno Haible  <bruno@clisp.org>
5681
5682         sigaction: Move AC_LIBOBJ invocations to module description.
5683         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
5684         gl_PREREQ_SIGACTION invocations from here...
5685         * modules/sigaction (configure.ac): ... to here.
5686
5687 2011-05-21  Bruno Haible  <bruno@clisp.org>
5688
5689         sig2str: Move AC_LIBOBJ invocations to module description.
5690         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
5691         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
5692         here...
5693         * modules/sig2str (configure.ac): ... to here.
5694
5695 2011-05-21  Bruno Haible  <bruno@clisp.org>
5696
5697         setlocale: Move AC_LIBOBJ invocations to module description.
5698         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
5699         gl_PREREQ_SETLOCALE invocations from here...
5700         * modules/setlocale (configure.ac): ... to here.
5701
5702 2011-05-21  Bruno Haible  <bruno@clisp.org>
5703
5704         unsetenv: Move AC_LIBOBJ invocations to module description.
5705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
5706         and gl_PREREQ_UNSETENV invocations from here...
5707         * modules/unsetenv (configure.ac): ... to here.
5708         (Depends-on): Update.
5709
5710 2011-05-21  Bruno Haible  <bruno@clisp.org>
5711
5712         setenv: Move AC_LIBOBJ invocations to module description.
5713         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
5714         here...
5715         * modules/setenv (configure.ac): ... to here.
5716
5717 2011-05-21  Bruno Haible  <bruno@clisp.org>
5718
5719         selinux-h: Move AC_LIBOBJ invocations to module description.
5720         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
5721         AC_LIBOBJ invocation from here...
5722         * modules/selinux-h (configure.ac): ... to here.
5723
5724 2011-05-21  Bruno Haible  <bruno@clisp.org>
5725
5726         select: Respect rules for use of AC_LIBOBJ.
5727         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
5728         here...
5729         * modules/select (configure.ac): ... to here.
5730
5731 2011-05-21  Bruno Haible  <bruno@clisp.org>
5732
5733         scandir: Move AC_LIBOBJ invocations to module description.
5734         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
5735         invocations from here...
5736         * modules/scandir (configure.ac): ... to here.
5737
5738 2011-05-21  Bruno Haible  <bruno@clisp.org>
5739
5740         rpmatch: Move AC_LIBOBJ invocations to module description.
5741         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
5742         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
5743         here...
5744         * modules/rpmatch (configure.ac): ... to here.
5745
5746 2011-05-21  Bruno Haible  <bruno@clisp.org>
5747
5748         rmdir: Respect rules for use of AC_LIBOBJ.
5749         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
5750         * modules/rmdir (configure.ac): ... to here.
5751
5752 2011-05-21  Bruno Haible  <bruno@clisp.org>
5753
5754         renameat: Move AC_LIBOBJ invocations to module description.
5755         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
5756         here...
5757         * modules/renameat (configure.ac): ... to here.
5758
5759 2011-05-21  Bruno Haible  <bruno@clisp.org>
5760
5761         rename: Respect rules for use of AC_LIBOBJ.
5762         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
5763         here...
5764         * modules/rename (configure.ac): ... to here.
5765
5766 2011-05-21  Bruno Haible  <bruno@clisp.org>
5767
5768         remove: Move AC_LIBOBJ invocations to module description.
5769         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
5770         here...
5771         * modules/remove (configure.ac): ... to here.
5772
5773 2011-05-21  Bruno Haible  <bruno@clisp.org>
5774
5775         relocatable-lib: Move AC_LIBOBJ invocations to module description.
5776         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
5777         macro.
5778         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
5779         * modules/relocatable-lib (configure.ac): ... to here.
5780         * modules/relocatable-prog-wrapper (configure.ac): Invoke
5781         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
5782
5783 2011-05-21  Bruno Haible  <bruno@clisp.org>
5784
5785         relocatable-prog: Move AC_LIBOBJ invocations to module description.
5786         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
5787         here...
5788         * modules/relocatable-prog (configure.ac): ... to here.
5789
5790 2011-05-21  Bruno Haible  <bruno@clisp.org>
5791
5792         regex: Move AC_LIBOBJ invocations to module description.
5793         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
5794         invocations from here...
5795         * modules/regex (configure.ac): ... to here.
5796
5797 2011-05-21  Bruno Haible  <bruno@clisp.org>
5798
5799         realloc-*: Move AC_LIBOBJ invocations to module description.
5800         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
5801         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
5802         AC_LIBOBJ invocations from here...
5803         * modules/realloc-gnu (configure.ac): ... to here.
5804         * modules/realloc-posix (configure.ac): ... and here.
5805
5806 2011-05-21  Bruno Haible  <bruno@clisp.org>
5807
5808         readutmp: Move AC_LIBOBJ invocations to module description.
5809         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
5810         * modules/readutmp (configure.ac): ... to here.
5811
5812 2011-05-21  Bruno Haible  <bruno@clisp.org>
5813
5814         readlinkat: Move AC_LIBOBJ invocations to module description.
5815         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
5816         here...
5817         * modules/readlinkat (configure.ac): ... to here.
5818
5819 2011-05-21  Bruno Haible  <bruno@clisp.org>
5820
5821         readlink: Move AC_LIBOBJ invocations to module description.
5822         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
5823         gl_PREREQ_READLINK invocations from here...
5824         * modules/readlink (configure.ac): ... to here.
5825
5826 2011-05-21  Bruno Haible  <bruno@clisp.org>
5827
5828         readline: Move AC_LIBOBJ invocations to module description.
5829         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
5830         gl_PREREQ_READLINE invocations from here...
5831         * modules/readline (configure.ac): ... to here.
5832
5833 2011-05-21  Bruno Haible  <bruno@clisp.org>
5834
5835         read: Move AC_LIBOBJ invocations to module description.
5836         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
5837         * modules/read (configure.ac): ... to here.
5838
5839 2011-05-21  Bruno Haible  <bruno@clisp.org>
5840
5841         rawmemchr: Move AC_LIBOBJ invocations to module description.
5842         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
5843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
5844         from here...
5845         * modules/rawmemchr (configure.ac): ... to here.
5846
5847 2011-05-21  Bruno Haible  <bruno@clisp.org>
5848
5849         random_r: Move AC_LIBOBJ invocations to module description.
5850         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
5851         gl_PREREQ_RANDOM_R invocations from here...
5852         * modules/random_r (configure.ac): ... to here.
5853
5854 2011-05-21  Bruno Haible  <bruno@clisp.org>
5855
5856         pwrite: Move AC_LIBOBJ invocations to module description.
5857         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
5858         * modules/pwrite (configure.ac): ... to here.
5859
5860 2011-05-21  Bruno Haible  <bruno@clisp.org>
5861
5862         putenv: Move AC_LIBOBJ invocations to module description.
5863         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
5864         * modules/putenv (configure.ac): ... to here.
5865
5866 2011-05-21  Bruno Haible  <bruno@clisp.org>
5867
5868         login_tty: Move AC_LIBOBJ invocations to module description.
5869         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
5870         * modules/login_tty (configure.ac): ... to here.
5871
5872 2011-05-21  Bruno Haible  <bruno@clisp.org>
5873
5874         openpty: Move AC_LIBOBJ invocations to module description.
5875         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
5876         * modules/openpty (configure.ac): ... to here.
5877
5878 2011-05-21  Bruno Haible  <bruno@clisp.org>
5879
5880         forkpty: Move AC_LIBOBJ invocations to module description.
5881         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
5882         * modules/forkpty (configure.ac): ... to here.
5883
5884 2011-05-21  Bruno Haible  <bruno@clisp.org>
5885
5886         ptsname: Move AC_LIBOBJ invocations to module description.
5887         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
5888         invocations from here...
5889         * modules/ptsname (configure.ac): ... to here.
5890
5891 2011-05-21  Bruno Haible  <bruno@clisp.org>
5892
5893         pread: Move AC_LIBOBJ invocations to module description.
5894         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
5895         * modules/pread (configure.ac): ... to here.
5896
5897 2011-05-21  Bruno Haible  <bruno@clisp.org>
5898
5899         posix_spawn*: Move AC_LIBOBJ invocations to module description.
5900         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
5901         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
5902         * modules/posix_spawn (configure.ac): ... to here.
5903         * modules/posix_spawnp (configure.ac): ... and here.
5904
5905 2011-05-21  Bruno Haible  <bruno@clisp.org>
5906
5907         popen: Move AC_LIBOBJ invocations to module description.
5908         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
5909         invocations from here...
5910         * modules/popen (configure.ac): ... to here.
5911
5912 2011-05-21  Bruno Haible  <bruno@clisp.org>
5913
5914         poll: Move AC_LIBOBJ invocations to module description.
5915         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
5916         invocations from here...
5917         * modules/poll (configure.ac): ... to here.
5918
5919 2011-05-21  Bruno Haible  <bruno@clisp.org>
5920
5921         pipe-posix: Move AC_LIBOBJ invocations to module description.
5922         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
5923         * modules/pipe-posix (configure.ac): ... to here.
5924
5925 2011-05-21  Bruno Haible  <bruno@clisp.org>
5926
5927         openat: Respect rules for use of AC_LIBOBJ.
5928         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
5929         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5930         * modules/openat (configure.ac): ... to here.
5931
5932 2011-05-21  Bruno Haible  <bruno@clisp.org>
5933
5934         obstack-printf*: Move AC_LIBOBJ invocations to module description.
5935         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
5936         invocation from here...
5937         * modules/obstack-printf (configure.ac): ... to here.
5938         * modules/obstack-printf-posix (configure.ac): ... and here.
5939
5940 2011-05-21  Bruno Haible  <bruno@clisp.org>
5941
5942         nl_langinfo: Move AC_LIBOBJ invocations to module description.
5943         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
5944         from here...
5945         * modules/nl_langinfo (configure.ac): ... to here.
5946
5947 2011-05-21  Bruno Haible  <bruno@clisp.org>
5948
5949         nanosleep: Move AC_LIBOBJ invocations to module description.
5950         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
5951         gl_PREREQ_NANOSLEEP invocations from here...
5952         * modules/nanosleep (configure.ac): ... to here.
5953
5954 2011-05-21  Bruno Haible  <bruno@clisp.org>
5955
5956         mountlist: Move AC_LIBOBJ invocations to module description.
5957         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
5958         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
5959         * modules/mountlist (configure.ac): ... to here.
5960
5961 2011-05-21  Bruno Haible  <bruno@clisp.org>
5962
5963         mktime: Respect rules for use of AC_LIBOBJ.
5964         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
5965         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
5966         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
5967         (gl_FUNC_MKTIME_INTERNAL): ... and here...
5968         * modules/mktime (configure.ac): ... to here.
5969         * modules/mktime-internal (configure.ac): ... and here.
5970         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
5971
5972 2011-05-21  Bruno Haible  <bruno@clisp.org>
5973
5974         mkstemps: Move AC_LIBOBJ invocations to module description.
5975         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5976         here...
5977         * modules/mkstemps (configure.ac): ... to here.
5978
5979 2011-05-21  Bruno Haible  <bruno@clisp.org>
5980
5981         mkstemp: Move AC_LIBOBJ invocations to module description.
5982         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5983         gl_PREREQ_MKSTEMP invocations from here...
5984         * modules/mkstemp (configure.ac): ... to here.
5985
5986 2011-05-21  Bruno Haible  <bruno@clisp.org>
5987
5988         mkostemps: Move AC_LIBOBJ invocations to module description.
5989         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5990         here...
5991         * modules/mkostemps (configure.ac): ... to here.
5992
5993 2011-05-21  Bruno Haible  <bruno@clisp.org>
5994
5995         mkostemp: Move AC_LIBOBJ invocations to module description.
5996         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5997         gl_PREREQ_MKOSTEMP invocations from here...
5998         * modules/mkostemp (configure.ac): ... to here.
5999
6000 2011-05-21  Bruno Haible  <bruno@clisp.org>
6001
6002         mknod: Move AC_LIBOBJ invocations to module description.
6003         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
6004         * modules/mknod (configure.ac): ... to here.
6005
6006 2011-05-21  Bruno Haible  <bruno@clisp.org>
6007
6008         mkfifoat: Move AC_LIBOBJ invocations to module description.
6009         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
6010         here...
6011         * modules/mkfifoat (configure.ac): ... to here.
6012
6013 2011-05-21  Bruno Haible  <bruno@clisp.org>
6014
6015         mkfifo: Respect rules for use of AC_LIBOBJ.
6016         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
6017         here...
6018         * modules/mkfifo (configure.ac): ... to here.
6019
6020 2011-05-21  Bruno Haible  <bruno@clisp.org>
6021
6022         mkdtemp: Move AC_LIBOBJ invocations to module description.
6023         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
6024         invocations from here...
6025         * modules/mkdtemp (configure.ac): ... to here.
6026
6027 2011-05-21  Bruno Haible  <bruno@clisp.org>
6028
6029         mkdir: Move AC_LIBOBJ invocations to module description.
6030         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
6031         * modules/mkdir (configure.ac): ... to here.
6032
6033 2011-05-21  Bruno Haible  <bruno@clisp.org>
6034
6035         memset: Move AC_LIBOBJ invocations to module description.
6036         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
6037         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
6038         here...
6039         * modules/memset (configure.ac): ... to here.
6040
6041 2011-05-21  Bruno Haible  <bruno@clisp.org>
6042
6043         memrchr: Move AC_LIBOBJ invocations to module description.
6044         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
6045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
6046         here...
6047         * modules/memrchr (configure.ac): ... to here.
6048
6049 2011-05-21  Bruno Haible  <bruno@clisp.org>
6050
6051         mempcpy: Move AC_LIBOBJ invocations to module description.
6052         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
6053         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
6054         here...
6055         * modules/mempcpy (configure.ac): ... to here.
6056
6057 2011-05-21  Bruno Haible  <bruno@clisp.org>
6058
6059         memmove: Move AC_LIBOBJ invocations to module description.
6060         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
6061         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
6062         here...
6063         * modules/memmove (configure.ac): ... to here.
6064
6065 2011-05-21  Bruno Haible  <bruno@clisp.org>
6066
6067         memmem*: Move AC_LIBOBJ invocations to module description.
6068         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
6069         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
6070         here...
6071         (gl_FUNC_MEMMEM): ... and here...
6072         * modules/memmem-simple (configure.ac): ... to here.
6073         * modules/memmem (configure.ac): ... and here.
6074
6075 2011-05-21  Bruno Haible  <bruno@clisp.org>
6076
6077         memcpy: Move AC_LIBOBJ invocations to module description.
6078         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
6079         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
6080         here...
6081         * modules/memcpy (configure.ac): ... to here.
6082
6083 2011-05-21  Bruno Haible  <bruno@clisp.org>
6084
6085         memcmp: Simplify autoconf macro.
6086         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
6087         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
6088         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
6089
6090 2011-05-21  Bruno Haible  <bruno@clisp.org>
6091
6092         memcmp: Move AC_LIBOBJ invocations to module description.
6093         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
6094         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
6095         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
6096         * modules/memcmp (configure.ac): ... to here.
6097         (Depends-on): Update conditions.
6098
6099 2011-05-21  Bruno Haible  <bruno@clisp.org>
6100
6101         memchr: Respect rules for use of AC_LIBOBJ.
6102         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
6103         invocations from here...
6104         * modules/memchr (configure.ac): ... to here.
6105
6106 2011-05-21  Bruno Haible  <bruno@clisp.org>
6107
6108         mbtowc: Move AC_LIBOBJ invocations to module description.
6109         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
6110         invocations from here...
6111         * modules/mbtowc (configure.ac): ... to here.
6112
6113 2011-05-21  Bruno Haible  <bruno@clisp.org>
6114
6115         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
6116         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
6117         gl_PREREQ_MBSRTOWCS invocations from here...
6118         * modules/mbsrtowcs (configure.ac): ... to here.
6119
6120 2011-05-21  Bruno Haible  <bruno@clisp.org>
6121
6122         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
6123         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
6124         gl_PREREQ_MBSNRTOWCS invocations from here...
6125         * modules/mbsnrtowcs (configure.ac): ... to here.
6126
6127 2011-05-21  Bruno Haible  <bruno@clisp.org>
6128
6129         mbsinit: Move AC_LIBOBJ invocations to module description.
6130         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
6131         invocations from here...
6132         * modules/mbsinit (configure.ac): ... to here.
6133
6134 2011-05-21  Bruno Haible  <bruno@clisp.org>
6135
6136         mbrlen: Move AC_LIBOBJ invocations to module description.
6137         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
6138         invocations from here...
6139         * modules/mbrlen (configure.ac): ... to here.
6140
6141 2011-05-21  Bruno Haible  <bruno@clisp.org>
6142
6143         mbrtowc: Respect rules for use of AC_LIBOBJ.
6144         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
6145         invocations from here...
6146         * modules/mbrtowc (configure.ac): ... to here.
6147
6148 2011-05-21  Bruno Haible  <bruno@clisp.org>
6149
6150         malloc-*: Move AC_LIBOBJ invocations to module description.
6151         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
6152         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
6153         AC_LIBOBJ invocations from here...
6154         * modules/malloc-gnu (configure.ac): ... to here.
6155         * modules/malloc-posix (configure.ac): ... and here.
6156
6157 2011-05-21  Bruno Haible  <bruno@clisp.org>
6158
6159         lstat, openat: Respect rules for use of AC_LIBOBJ.
6160         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
6161         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
6162         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
6163         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
6164         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
6165         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
6166         here.
6167         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
6168
6169 2011-05-21  Bruno Haible  <bruno@clisp.org>
6170
6171         lseek: Move AC_LIBOBJ invocations to module description.
6172         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
6173         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6174         * modules/lseek (configure.ac): ... to here.
6175
6176 2011-05-21  Bruno Haible  <bruno@clisp.org>
6177
6178         linkat: Move AC_LIBOBJ invocations to module description.
6179         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
6180         here...
6181         * modules/linkat (configure.ac): ... to here.
6182
6183 2011-05-21  Bruno Haible  <bruno@clisp.org>
6184
6185         link: Respect rules for use of AC_LIBOBJ.
6186         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
6187         * modules/link (configure.ac): ... to here.
6188
6189 2011-05-21  Bruno Haible  <bruno@clisp.org>
6190
6191         lchown: Move AC_LIBOBJ invocations to module description.
6192         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6193         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6194         * modules/lchown (configure.ac): ... to here.
6195
6196 2011-05-21  Bruno Haible  <bruno@clisp.org>
6197
6198         iswctype: Move AC_LIBOBJ invocations to module description.
6199         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
6200         here...
6201         * modules/iswctype (configure.ac): ... to here.
6202
6203 2011-05-21  Bruno Haible  <bruno@clisp.org>
6204
6205         iswblank: Move AC_LIBOBJ invocations to module description.
6206         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
6207         here...
6208         * modules/iswblank (configure.ac): ... to here.
6209
6210 2011-05-21  Bruno Haible  <bruno@clisp.org>
6211
6212         atanl: Move AC_LIBOBJ invocations to module description.
6213         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
6214         * modules/atanl (configure.ac): ... to here.
6215
6216 2011-05-21  Bruno Haible  <bruno@clisp.org>
6217
6218         acosl: Move AC_LIBOBJ invocations to module description.
6219         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
6220         * modules/acosl (configure.ac): ... to here.
6221
6222 2011-05-21  Bruno Haible  <bruno@clisp.org>
6223
6224         asinl: Respect rules for use of AC_LIBOBJ.
6225         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
6226         * modules/asinl (configure.ac): ... to here.
6227
6228 2011-05-21  Bruno Haible  <bruno@clisp.org>
6229
6230         tanl: Move AC_LIBOBJ invocations to module description.
6231         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
6232         * modules/tanl (configure.ac): ... to here.
6233
6234 2011-05-21  Bruno Haible  <bruno@clisp.org>
6235
6236         cosl: Move AC_LIBOBJ invocations to module description.
6237         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
6238         * modules/cosl (configure.ac): ... to here.
6239
6240 2011-05-21  Bruno Haible  <bruno@clisp.org>
6241
6242         sinl: Move AC_LIBOBJ invocations to module description.
6243         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
6244         * modules/sinl (configure.ac): ... to here.
6245
6246 2011-05-21  Bruno Haible  <bruno@clisp.org>
6247
6248         logl: Move AC_LIBOBJ invocations to module description.
6249         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
6250         * modules/logl (configure.ac): ... to here.
6251
6252 2011-05-21  Bruno Haible  <bruno@clisp.org>
6253
6254         expl: Move AC_LIBOBJ invocations to module description.
6255         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
6256         * modules/expl (configure.ac): ... to here.
6257
6258 2011-05-21  Bruno Haible  <bruno@clisp.org>
6259
6260         roundl: Move AC_LIBOBJ invocations to module description.
6261         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
6262         * modules/roundl (configure.ac): ... to here.
6263
6264 2011-05-21  Bruno Haible  <bruno@clisp.org>
6265
6266         round: Move AC_LIBOBJ invocations to module description.
6267         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
6268         * modules/round (configure.ac): ... to here.
6269
6270 2011-05-21  Bruno Haible  <bruno@clisp.org>
6271
6272         roundf: Move AC_LIBOBJ invocations to module description.
6273         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
6274         * modules/roundf (configure.ac): ... to here.
6275
6276 2011-05-21  Bruno Haible  <bruno@clisp.org>
6277
6278         truncl: Move AC_LIBOBJ invocations to module description.
6279         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
6280         * modules/truncl (configure.ac): ... to here.
6281
6282 2011-05-21  Bruno Haible  <bruno@clisp.org>
6283
6284         trunc: Move AC_LIBOBJ invocations to module description.
6285         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
6286         * modules/trunc (configure.ac): ... to here.
6287
6288 2011-05-21  Bruno Haible  <bruno@clisp.org>
6289
6290         truncf: Move AC_LIBOBJ invocations to module description.
6291         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
6292         * modules/truncf (configure.ac): ... to here.
6293
6294 2011-05-21  Bruno Haible  <bruno@clisp.org>
6295
6296         ceill: Move AC_LIBOBJ invocations to module description.
6297         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
6298         * modules/ceill (configure.ac): ... to here.
6299
6300 2011-05-21  Bruno Haible  <bruno@clisp.org>
6301
6302         ceil: Move AC_LIBOBJ invocations to module description.
6303         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
6304         * modules/ceil (configure.ac): ... to here.
6305
6306 2011-05-21  Bruno Haible  <bruno@clisp.org>
6307
6308         ceilf: Move AC_LIBOBJ invocations to module description.
6309         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
6310         * modules/ceilf (configure.ac): ... to here.
6311
6312 2011-05-21  Bruno Haible  <bruno@clisp.org>
6313
6314         floorl: Respect rules for use of AC_LIBOBJ.
6315         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
6316         * modules/floorl (configure.ac): ... to here.
6317
6318 2011-05-21  Bruno Haible  <bruno@clisp.org>
6319
6320         floor: Respect rules for use of AC_LIBOBJ.
6321         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
6322         * modules/floor (configure.ac): ... to here.
6323
6324 2011-05-21  Bruno Haible  <bruno@clisp.org>
6325
6326         floorf: Move AC_LIBOBJ invocations to module description.
6327         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
6328         * modules/floorf (configure.ac): ... to here.
6329
6330 2011-05-20  Bruno Haible  <bruno@clisp.org>
6331
6332         sqrtl: Respect rules for use of AC_LIBOBJ.
6333         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
6334         * modules/sqrtl (configure.ac): ... to here.
6335
6336 2011-05-20  Bruno Haible  <bruno@clisp.org>
6337
6338         ldexpl: Respect rules for use of AC_LIBOBJ.
6339         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
6340         * modules/ldexpl (configure.ac): ... to here.
6341
6342 2011-05-20  Bruno Haible  <bruno@clisp.org>
6343
6344         frexpl*: Respect rules for use of AC_LIBOBJ.
6345         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
6346         invocation from here...
6347         * modules/frexpl (configure.ac): ... to here.
6348         * modules/frexpl-nolibm (configure.ac): ... and here.
6349
6350 2011-05-20  Bruno Haible  <bruno@clisp.org>
6351
6352         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
6353         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
6354         invocation from here...
6355         * modules/frexp (configure.ac): ... to here.
6356         * modules/frexp-nolibm (configure.ac): ... and here.
6357
6358 2011-05-20  Bruno Haible  <bruno@clisp.org>
6359
6360         isnan: Respect rules for use of AC_LIBOBJ.
6361         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
6362         invocations here.
6363         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
6364         REPLACE_ISNAN.
6365         * modules/isnand (configure.ac): Likewise.
6366         * modules/isnanl (configure.ac): Likewise.
6367
6368 2011-05-20  Bruno Haible  <bruno@clisp.org>
6369
6370         isnanl*: Respect rules for use of AC_LIBOBJ.
6371         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
6372         invocation from here...
6373         * modules/isnanl (configure.ac): ... to here.
6374         * modules/isnanl-nolibm (configure.ac): ... and here.
6375
6376 2011-05-20  Bruno Haible  <bruno@clisp.org>
6377
6378         isnand*: Move AC_LIBOBJ invocations to module description.
6379         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
6380         invocation from here...
6381         * modules/isnand (configure.ac): ... to here.
6382         * modules/isnand-nolibm (configure.ac): ... and here.
6383
6384 2011-05-20  Bruno Haible  <bruno@clisp.org>
6385
6386         isnanf*: Move AC_LIBOBJ invocations to module description.
6387         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
6388         invocation from here...
6389         * modules/isnanf (configure.ac): ... to here.
6390         * modules/isnanf-nolibm (configure.ac): ... and here.
6391
6392 2011-05-20  Bruno Haible  <bruno@clisp.org>
6393
6394         isnan*: Separate the AC_LIBOBJ invocations.
6395         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
6396         AC_LIBOBJ invocation.
6397         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
6398         here.
6399         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
6400         AC_LIBOBJ invocation.
6401         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
6402         here.
6403         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
6404         AC_LIBOBJ invocation.
6405         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
6406         here.
6407         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
6408
6409 2011-05-08  Bruno Haible  <bruno@clisp.org>
6410
6411         isinf: Move AC_LIBOBJ invocations to module description.
6412         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
6413         * modules/isinf (configure.ac): ... to here.
6414
6415 2011-05-08  Bruno Haible  <bruno@clisp.org>
6416
6417         isfinite: Move AC_LIBOBJ invocations to module description.
6418         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
6419         * modules/isfinite (configure.ac): ... to here.
6420
6421 2011-05-08  Bruno Haible  <bruno@clisp.org>
6422
6423         isblank: Move AC_LIBOBJ invocations to module description.
6424         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
6425         here...
6426         * modules/isblank (configure.ac): ... to here.
6427
6428 2011-05-08  Bruno Haible  <bruno@clisp.org>
6429
6430         isapipe: Move AC_LIBOBJ invocations to module description.
6431         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
6432         gl_PREREQ_ISAPIPE invocations from here...
6433         * modules/isapipe (configure.ac): ... to here.
6434         (Depends-on): Update condition.
6435
6436 2011-05-08  Bruno Haible  <bruno@clisp.org>
6437
6438         ioctl: Move AC_LIBOBJ invocations to module description.
6439         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
6440         invocations from here...
6441         * modules/ioctl (configure.ac): ... to here.
6442         (Depends-on): Update condition.
6443
6444 2011-05-08  Bruno Haible  <bruno@clisp.org>
6445
6446         imaxdiv: Move AC_LIBOBJ invocations to module description.
6447         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
6448         invocations from here...
6449         * modules/imaxdiv (configure.ac): ... to here.
6450
6451 2011-05-08  Bruno Haible  <bruno@clisp.org>
6452
6453         imaxabs: Move AC_LIBOBJ invocations to module description.
6454         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
6455         invocations from here...
6456         * modules/imaxabs (configure.ac): ... to here.
6457
6458 2011-05-08  Bruno Haible  <bruno@clisp.org>
6459
6460         getaddrinfo: Move AC_LIBOBJ invocations to module description.
6461         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
6462         AC_LIBOBJ invocations from here...
6463         * modules/getaddrinfo (configure.ac): ... to here.
6464         (Depends-on): Add conditions.
6465
6466 2011-05-08  Bruno Haible  <bruno@clisp.org>
6467
6468         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6469         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
6470         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6471         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
6472         (gl_PREREQ_INET_PTON): ... from here.
6473         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
6474         gl_PREREQ_INET_PTON here.
6475         (Depends-on): Update condition.
6476
6477 2011-05-08  Bruno Haible  <bruno@clisp.org>
6478
6479         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6480         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
6481         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6482         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
6483         (gl_PREREQ_INET_NTOP): ... from here.
6484         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
6485         gl_PREREQ_INET_NTOP here.
6486         (Depends-on): Update condition.
6487
6488 2011-05-08  Bruno Haible  <bruno@clisp.org>
6489
6490         iconv_open: Move AC_LIBOBJ invocations to module description.
6491         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
6492         AC_LIBOBJ invocations from here...
6493         * modules/iconv_open (configure.ac): ... to here.
6494
6495 2011-05-08  Bruno Haible  <bruno@clisp.org>
6496
6497         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
6498         If module 'iconv_open' is among the main modules and module
6499         'iconv_open-utf' is among the tests dependencies, then
6500         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
6501         return the special iconv_t values. Therefore iconv() and iconv_close()
6502         must support these special iconv_t values, already in lib, not only in
6503         tests.
6504         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
6505         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
6506         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
6507         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
6508         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
6509         (Depends-on): Add the dependencies of iconv_open-utf.
6510         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
6511         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
6512         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
6513
6514 2011-05-08  Bruno Haible  <bruno@clisp.org>
6515
6516         group-member: Move AC_LIBOBJ invocations to module description.
6517         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
6518         gl_PREREQ_GROUP_MEMBER invocations from here...
6519         * modules/group-member (configure.ac): ... to here.
6520
6521 2011-05-08  Bruno Haible  <bruno@clisp.org>
6522
6523         grantpt: Move AC_LIBOBJ invocations to module description.
6524         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
6525         invocations from here...
6526         * modules/grantpt (configure.ac): ... to here.
6527
6528 2011-05-08  Bruno Haible  <bruno@clisp.org>
6529
6530         glob: Move AC_LIBOBJ invocations to module description.
6531         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
6532         from here...
6533         * modules/glob (configure.ac): ... to here.
6534
6535 2011-05-08  Bruno Haible  <bruno@clisp.org>
6536
6537         getusershell: Move AC_LIBOBJ invocations to module description.
6538         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
6539         Move AC_LIBOBJ invocation from here...
6540         * modules/getusershell (configure.ac): ... to here.
6541         (Depends-on): Update condition.
6542
6543 2011-05-08  Bruno Haible  <bruno@clisp.org>
6544
6545         gettimeofday: Move AC_LIBOBJ invocations to module description.
6546         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
6547         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
6548         gl_PREREQ_GETTIMEOFDAY invocations from here...
6549         * modules/gettimeofday (configure.ac): ... to here.
6550
6551 2011-05-08  Bruno Haible  <bruno@clisp.org>
6552
6553         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
6554         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
6555         just gl_FUNC_TZSET.
6556         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
6557         (gl_FUNC_TZSET_CLOBBER): Remove actions.
6558         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
6559         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
6560
6561 2011-05-08  Bruno Haible  <bruno@clisp.org>
6562
6563         getsubopt: Move AC_LIBOBJ invocations to module description.
6564         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
6565         gl_PREREQ_GETSUBOPT invocations from here...
6566         * modules/getsubopt (configure.ac): ... to here.
6567
6568 2011-05-08  Bruno Haible  <bruno@clisp.org>
6569
6570         getpass-gnu: Move AC_LIBOBJ invocations to module description.
6571         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
6572         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
6573         * modules/getpass-gnu (configure.ac): ... to here.
6574
6575 2011-05-08  Bruno Haible  <bruno@clisp.org>
6576
6577         getpass: Move AC_LIBOBJ invocations to module description.
6578         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
6579         gl_PREREQ_GETPASS invocations from here...
6580         * modules/getpass (configure.ac): ... to here.
6581
6582 2011-05-08  Bruno Haible  <bruno@clisp.org>
6583
6584         getpagesize: Move AC_LIBOBJ invocations to module description.
6585         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
6586         from here...
6587         * modules/getpagesize (configure.ac): ... to here.
6588
6589 2011-05-08  Bruno Haible  <bruno@clisp.org>
6590
6591         getopt: Move AC_LIBOBJ invocations to module description.
6592         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
6593         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
6594         invocations from here...
6595         * modules/getopt-gnu (configure.ac): ... to here.
6596         * modules/getopt-posix (configure.ac): ... and here.
6597         (Depends-on): Update condition.
6598
6599 2011-05-08  Bruno Haible  <bruno@clisp.org>
6600
6601         getopt, argp: Respect rules for use of AC_LIBOBJ.
6602         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
6603         (gl_REPLACE_GETOPT_ALWAYS): New macro.
6604         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
6605         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
6606
6607 2011-05-08  Bruno Haible  <bruno@clisp.org>
6608
6609         getlogin_r: Move AC_LIBOBJ invocations to module description.
6610         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
6611         gl_PREREQ_GETLOGIN_R invocations from here...
6612         * modules/getlogin_r (configure.ac): ... to here.
6613
6614 2011-05-08  Bruno Haible  <bruno@clisp.org>
6615
6616         getlogin: Move AC_LIBOBJ invocations to module description.
6617         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
6618         here...
6619         * modules/getlogin (configure.ac): ... to here.
6620
6621 2011-05-08  Bruno Haible  <bruno@clisp.org>
6622
6623         getloadavg: Move AC_LIBOBJ invocations to module description.
6624         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
6625         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
6626         * modules/getloadavg (configure.ac): ... to here.
6627
6628 2011-05-08  Bruno Haible  <bruno@clisp.org>
6629
6630         gethrxtime: Move AC_LIBOBJ invocations to module description.
6631         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
6632         LIB_GETHRXTIME from here...
6633         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
6634         invocations from here...
6635         * modules/gethrxtime (configure.ac): ... to here.
6636
6637 2011-05-08  Bruno Haible  <bruno@clisp.org>
6638
6639         gethostname: Move AC_LIBOBJ invocations to module description.
6640         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
6641         gl_PREREQ_GETHOSTNAME invocations from here...
6642         * modules/gethostname (configure.ac): ... to here.
6643
6644 2011-05-08  Bruno Haible  <bruno@clisp.org>
6645
6646         getgroups: Move AC_LIBOBJ invocations to module description.
6647         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
6648         here...
6649         * modules/getgroups (configure.ac): ... to here.
6650
6651 2011-05-08  Bruno Haible  <bruno@clisp.org>
6652
6653         getdtablesize: Move AC_LIBOBJ invocations to module description.
6654         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
6655         invocation from here...
6656         * modules/getdtablesize (configure.ac): ... to here.
6657
6658 2011-05-08  Bruno Haible  <bruno@clisp.org>
6659
6660         getdomainname: Move AC_LIBOBJ invocations to module description.
6661         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
6662         gl_PREREQ_GETDOMAINNAME invocations from here...
6663         * modules/getdomainname (configure.ac): ... to here.
6664
6665 2011-05-08  Bruno Haible  <bruno@clisp.org>
6666
6667         getline: Move AC_LIBOBJ invocations to module description.
6668         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
6669         invocations from here...
6670         * modules/getline (configure.ac): ... to here.
6671
6672 2011-05-08  Bruno Haible  <bruno@clisp.org>
6673
6674         getline: Simplify.
6675         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
6676         It's already handled through the module dependency.
6677
6678 2011-05-08  Bruno Haible  <bruno@clisp.org>
6679
6680         getdelim: Move AC_LIBOBJ invocations to module description.
6681         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
6682         and gl_PREREQ_GETDELIM invocations from here...
6683         * modules/getdelim (configure.ac): ... to here.
6684         (Depends-on): Fix condition.
6685
6686 2011-05-08  Bruno Haible  <bruno@clisp.org>
6687
6688         getcwd: Move AC_LIBOBJ invocations to module description.
6689         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
6690         invocations from here...
6691         * modules/getcwd (configure.ac): ... to here.
6692
6693 2011-05-08  Bruno Haible  <bruno@clisp.org>
6694
6695         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
6696         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
6697         here...
6698         * modules/getcwd-lgpl (configure.ac): ... to here.
6699
6700 2011-05-07  Bruno Haible  <bruno@clisp.org>
6701
6702         crypto/gc: Move AC_LIBOBJ invocations to module description.
6703         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
6704         * modules/crypto/gc (configure.ac): ... to here.
6705
6706 2011-05-07  Bruno Haible  <bruno@clisp.org>
6707
6708         fwriting: Move AC_LIBOBJ invocations to module description.
6709         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
6710         here...
6711         * modules/fwriting (configure.ac): ... to here.
6712
6713 2011-05-07  Bruno Haible  <bruno@clisp.org>
6714
6715         fwritable: Move AC_LIBOBJ invocations to module description.
6716         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
6717         here...
6718         * modules/fwritable (configure.ac): ... to here.
6719
6720 2011-05-07  Bruno Haible  <bruno@clisp.org>
6721
6722         futimens: Move AC_LIBOBJ invocations to module description.
6723         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
6724         here...
6725         * modules/futimens (configure.ac): ... to here.
6726
6727 2011-05-07  Bruno Haible  <bruno@clisp.org>
6728
6729         ftruncate: Move AC_LIBOBJ invocations to module description.
6730         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
6731         gl_PREREQ_FTRUNCATE invocations from here...
6732         * modules/ftruncate (configure.ac): ... to here.
6733
6734 2011-05-07  Bruno Haible  <bruno@clisp.org>
6735
6736         fsync: Move AC_LIBOBJ invocations to module description.
6737         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
6738         invocations from here...
6739         * modules/fsync (configure.ac): ... to here.
6740
6741 2011-05-07  Bruno Haible  <bruno@clisp.org>
6742
6743         fsusage: Move AC_LIBOBJ invocations to module description.
6744         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
6745         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
6746         * modules/fsusage (configure.ac): ... to here.
6747
6748 2011-05-07  Bruno Haible  <bruno@clisp.org>
6749
6750         freopen: Move AC_LIBOBJ invocations to module description.
6751         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
6752         invocations from here...
6753         * modules/freopen (configure.ac): ... to here.
6754
6755 2011-05-07  Bruno Haible  <bruno@clisp.org>
6756
6757         free: Move AC_LIBOBJ invocations to module description.
6758         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
6759         invocations from here...
6760         * modules/free (configure.ac): ... to here.
6761
6762 2011-05-07  Bruno Haible  <bruno@clisp.org>
6763
6764         freadable: Move AC_LIBOBJ invocations to module description.
6765         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
6766         here...
6767         * modules/freadable (configure.ac): ... to here.
6768
6769 2011-05-07  Bruno Haible  <bruno@clisp.org>
6770
6771         fpurge: Move AC_LIBOBJ invocations to module description.
6772         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
6773         invocations from here...
6774         * modules/fpurge (configure.ac): ... to here.
6775
6776 2011-05-07  Bruno Haible  <bruno@clisp.org>
6777
6778         fpending: Move AC_LIBOBJ invocations to module description.
6779         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
6780         gl_FUNC_FPENDING.
6781         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
6782         invocations from here...
6783         * modules/fpending (configure.ac): ... to here.
6784
6785 2011-05-07  Bruno Haible  <bruno@clisp.org>
6786
6787         fopen: Move AC_LIBOBJ invocations to module description.
6788         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
6789         invocations from here...
6790         * modules/fopen (configure.ac): ... to here.
6791
6792 2011-05-07  Bruno Haible  <bruno@clisp.org>
6793
6794         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
6795         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
6796         gl_FUNC_FNMATCH_POSIX.
6797         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
6798         invocations from here...
6799         * modules/fnmatch (configure.ac): ... to here.
6800         * modules/fnmatch-gnu (configure.ac): ... and here.
6801
6802 2011-05-07  Bruno Haible  <bruno@clisp.org>
6803
6804         flock: Move AC_LIBOBJ invocations to module description.
6805         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
6806         invocations from here...
6807         * modules/flock (configure.ac): ... to here.
6808
6809 2011-05-07  Bruno Haible  <bruno@clisp.org>
6810
6811         fileblocks: Move AC_LIBOBJ invocations to module description.
6812         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
6813         gl_PREREQ_FILEBLOCKS invocations from here...
6814         * modules/fileblocks (configure.ac): ... to here.
6815
6816 2011-05-06  Bruno Haible  <bruno@clisp.org>
6817
6818         fflush: Move AC_LIBOBJ invocations to module description.
6819         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
6820         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
6821         invocations from here...
6822         * modules/fflush (configure.ac): ... to here.
6823
6824 2011-05-06  Bruno Haible  <bruno@clisp.org>
6825
6826         fdopendir: Move AC_LIBOBJ invocations to module description.
6827         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
6828         here...
6829         * modules/fdopendir (configure.ac): ... to here.
6830         (Depends-on): Improve conditions.
6831
6832 2011-05-06  Bruno Haible  <bruno@clisp.org>
6833
6834         _Exit: Move AC_LIBOBJ invocations to module description.
6835         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
6836         invocations from here...
6837         * modules/_Exit (configure.ac): ... to here.
6838
6839 2011-05-21  Bruno Haible  <bruno@clisp.org>
6840
6841         euidaccess: Respect rules for use of AC_LIBOBJ.
6842         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
6844         from here...
6845         * modules/euidaccess (configure.ac): ... to here.
6846
6847 2011-05-06  Bruno Haible  <bruno@clisp.org>
6848
6849         error: Move AC_LIBOBJ invocations to module description.
6850         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
6851         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
6852         invocations from here...
6853         * modules/error (configure.ac): ... to here.
6854
6855 2011-05-06  Bruno Haible  <bruno@clisp.org>
6856
6857         duplocale: Move AC_LIBOBJ invocations to module description.
6858         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
6859         gl_PREREQ_DUPLOCALE invocations from here...
6860         * modules/duplocale (configure.ac): ... to here.
6861
6862 2011-05-05  Bruno Haible  <bruno@clisp.org>
6863
6864         dirfd: Move AC_LIBOBJ invocations to module description.
6865         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
6866         gl_FUNC_DIRFD.
6867         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
6868         here...
6869         * modules/dirfd (configure.ac): ... to here.
6870         (Depends-on): Fix condition.
6871
6872 2011-05-05  Bruno Haible  <bruno@clisp.org>
6873
6874         chown: Respect rules for use of AC_LIBOBJ.
6875         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
6876         * modules/chown (configure.ac): ... to here.
6877
6878 2011-05-05  Bruno Haible  <bruno@clisp.org>
6879
6880         chdir-long: Move AC_LIBOBJ invocations to module description.
6881         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
6882         gl_PREREQ_CHDIR_LONG invocations from here...
6883         * modules/chdir-long (configure.ac): ... to here.
6884
6885 2011-05-05  Bruno Haible  <bruno@clisp.org>
6886
6887         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
6888         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
6889         from here...
6890         * modules/canonicalize-lgpl (configure.ac): ... to here.
6891
6892 2011-05-05  Bruno Haible  <bruno@clisp.org>
6893
6894         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
6895         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
6896         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
6897         REPLACE_CALLOC.
6898         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
6899         * modules/calloc-gnu (configure.ac): Likewise.
6900
6901 2011-05-05  Bruno Haible  <bruno@clisp.org>
6902
6903         btowc: Move AC_LIBOBJ invocations to module description.
6904         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
6905         invocations from here...
6906         * modules/btowc (configure.ac): ... to here.
6907
6908 2011-05-21  Bruno Haible  <bruno@clisp.org>
6909
6910         atexit: Move AC_LIBOBJ invocations to module description.
6911         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
6912         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
6913         here...
6914         * modules/atexit (configure.ac): ... to here.
6915
6916 2011-05-05  Bruno Haible  <bruno@clisp.org>
6917
6918         atoll: Move AC_LIBOBJ invocations to module description.
6919         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
6920         invocations from here...
6921         * modules/atoll (configure.ac): ... to here.
6922
6923 2011-05-05  Bruno Haible  <bruno@clisp.org>
6924
6925         argz: Move AC_LIBOBJ invocations to module description.
6926         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
6927         * modules/argz (configure.ac): ... to here.
6928
6929 2011-05-05  Bruno Haible  <bruno@clisp.org>
6930
6931         alphasort: Move AC_LIBOBJ invocations to module description.
6932         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
6933         gl_PREREQ_ALPHASORT invocations from here...
6934         * modules/alphasort (configure.ac): ... to here.
6935
6936 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6937
6938         verify: new macro verify_expr; verify_true deprecated
6939         * NEWS: Mention this.
6940         * doc/verify.texi (Compile-time Assertions): Document this.
6941         * lib/verify.h (verify_true): Deprecate.
6942         (verify_expr): New macro.
6943         * tests/test-verify.c (function): Test verify_expr.
6944
6945 2011-06-14  Jim Meyering  <meyering@redhat.com>
6946
6947         init.sh: give more portable redirection-related advice in a comment
6948         * tests/init.sh (stderr_fileno_): Update the advice in comments.
6949         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
6950         for lots of discussion.  Stefano Lattarini suggested the solution
6951         of putting "9>&2" after the command.  Reported by Bruno Haible.
6952
6953 2011-06-13  Bruno Haible  <bruno@clisp.org>
6954
6955         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
6956         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
6957         'none'.
6958
6959 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6960
6961         ftoastr: use strtof only if HAVE_STRTOF
6962         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
6963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
6964         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
6965         * modules/ftoastr (configure.ac): Check for strtof.
6966
6967 2011-06-13  Bruno Haible  <bruno@clisp.org>
6968
6969         gnulib-tool: Addendum to 2011-06-08 commit.
6970         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
6971         and --witness-c-macro have been given, augment AM_CPPFLAGS.
6972
6973 2011-06-13  Bruno Haible  <bruno@clisp.org>
6974
6975         fseeko: Provide a non-inline replacement of fseek().
6976         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6977         * modules/fseeko (Depends-on): Add fseek.
6978         * modules/fseek (License): Change to LGPLv2+.
6979
6980 2011-06-13  Bruno Haible  <bruno@clisp.org>
6981
6982         ftello: Provide a non-inline replacement of ftell().
6983         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6984         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6985         not have ftello() (such as on mingw).
6986         * modules/ftello (Depends-on): Add ftell.
6987         * modules/ftell (License): Change to LGPLv2+.
6988
6989 2011-05-07  Bruno Haible  <bruno@clisp.org>
6990
6991         ftell: Move AC_LIBOBJ invocations to module description.
6992         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6993         * modules/ftell (configure.ac): ... to here.
6994
6995 2011-05-07  Bruno Haible  <bruno@clisp.org>
6996
6997         ftello: Respect rules for use of AC_LIBOBJ.
6998         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6999         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
7000         here...
7001         * modules/ftello (configure.ac): ... to here.
7002
7003 2011-05-07  Bruno Haible  <bruno@clisp.org>
7004
7005         fseeko: Simplify.
7006         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
7007         (gl_FUNC_FSEEKO): Inline it here.
7008
7009 2011-05-07  Bruno Haible  <bruno@clisp.org>
7010
7011         fseek: Move AC_LIBOBJ invocations to module description.
7012         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
7013         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7014         * modules/fseek (configure.ac): ... to here.
7015
7016 2011-05-07  Bruno Haible  <bruno@clisp.org>
7017
7018         fseek: Respect rules for use of AC_LIBOBJ.
7019         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
7020         here...
7021         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
7022
7023 2011-05-07  Bruno Haible  <bruno@clisp.org>
7024
7025         fseeko: Respect rules for use of AC_LIBOBJ.
7026         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
7027         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
7028         here...
7029         * modules/fseeko (configure.ac): ... to here.
7030
7031 2011-06-13  Bruno Haible  <bruno@clisp.org>
7032
7033         gnulib-tool: Allow comments in the 'Depends-on' section.
7034         * doc/gnulib.texi (Module description): Mention comment syntax in the
7035         Depends-on section.
7036         * gnulib-tool (func_get_dependencies): Filter out comment lines.
7037
7038 2011-06-13  Bruno Haible  <bruno@clisp.org>
7039
7040         file-set.h: guard __attibute__ use, now that it's not always defined
7041         * lib/file-set.h (record_file): Use __attribute__ only with compiler
7042         versions that support it.  This fixes a coreutils build failure with
7043         the vendor cc on HP-UX 11.31.
7044
7045 2011-06-12  Bruno Haible  <bruno@clisp.org>
7046
7047         acl: Add support for HP-UX >= 11.11 JFS ACLs.
7048         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
7049         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
7050         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
7051         (acl, aclsort): New declarations.
7052         (aclv_nontrivial): New declaration.
7053         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
7054         (file_has_acl): Read also the second kind of HP-UX ACLs.
7055         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
7056         kind of HP-UX ACLs if the first kind fails.
7057         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
7058         second kind of HP-UX ACLs.
7059         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
7060         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
7061         agree.
7062         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7063         hpuxjfs.
7064         Handle hpuxjfs.
7065         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7066         hpuxjfs.
7067         Handle hpuxjfs.
7068         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7069         (func_test_same_acls): Use both lsacl and getacl.
7070         Handle hpuxjfs.
7071         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7072         (func_test_same_acls): Use both lsacl and getacl.
7073         Handle hpuxjfs.
7074
7075 2011-06-12  Bruno Haible  <bruno@clisp.org>
7076
7077         acl: Complete the 2010-08-10 fix.
7078         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
7079         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
7080         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
7081         explicitly.
7082         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
7083         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
7084
7085 2011-06-12  Bruno Haible  <bruno@clisp.org>
7086
7087         spawn-pipe tests: Comments.
7088         * tests/test-spawn-pipe-child.c (main): Update comment.
7089         Reported by James Youngman <jay@gnu.org>.
7090
7091 2011-06-11  James Youngman  <jay@gnu.org>
7092
7093         New module 'stat-size'.
7094         * modules/stat-size: New module.  Provides macros for accessing
7095         file size information in instances of struct stat.  Depends on the
7096         fileblocks module because it calls st_blocks.
7097         * lib/stat-size.h: New file, adapted from coreutils' system.h.
7098         * doc/gnulib.texi: Include stat-size.texi.
7099         * doc/stat-size.texi: Documentation for this module.
7100         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
7101         * m4/fileblocks.m4: Mention that stat-size depends on the call to
7102         AC_STRUCT_ST_BLOCKS.
7103
7104 2011-06-09  Bruno Haible  <bruno@clisp.org>
7105
7106         thread: Support pthreads-win32.
7107         * lib/glthread/thread.h (gl_thread_self): Define differently on
7108         pthreads-win32.
7109         (gl_null_thread): New declaration.
7110         (gl_thread_self_pointer): New macro.
7111         * lib/glthread/thread.c (gl_null_thread): New constant.
7112         * tests/test-lock.c: Use gl_thread_self_pointer instead of
7113         gl_thread_self.
7114         * tests/test-tls.c: Likewise.
7115         Suggested by Paul Eggert. Reported by Eric Blake.
7116
7117 2011-06-09  Bruno Haible  <bruno@clisp.org>
7118
7119         thread: Fix confusion between NULL and 0.
7120         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
7121         Reported by Paul Eggert.
7122
7123 2011-06-09  Bruno Haible  <bruno@clisp.org>
7124
7125         spawn-pipe tests: Avoid test failure on HP-UX 11.
7126         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
7127         is closed.
7128
7129 2011-06-09  Bruno Haible  <bruno@clisp.org>
7130
7131         acl tests: Fix compilation error on HP-UX 11.
7132         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
7133
7134 2011-06-09  Bruno Haible  <bruno@clisp.org>
7135
7136         rmdir: Avoid test failure on HP-UX 10.20.
7137         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
7138         EEXIST.
7139
7140 2011-06-08  Eric Blake  <eblake@redhat.com>
7141
7142         perror: fix test on mingw
7143         * modules/perror-tests (Depends-on): Add dup2.
7144
7145         strerror_r-posix: fix on MacOS
7146         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
7147         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
7148         logic bug.
7149         * lib/strerror_r.c (strerror_r): Fix the bug.
7150         * lib/strerror.c (strerror): Likewise.
7151         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7152         problem.
7153         * doc/posix-functions/strerror.texi (strerror): Likewise.
7154         * doc/posix-functions/perror.texi (perror): Likewise.
7155         * tests/test-strerror.c (main): Enhance test.
7156         * tests/test-strerror_r.c (main): Likewise.
7157
7158 2011-06-08  Bruno Haible  <bruno@clisp.org>
7159
7160         gnulib-tool: Better isolation between different gnulib-tool invocations.
7161         * gnulib-tool: New option --witness-c-macro.
7162         (witness_c_macro): New variable.
7163         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
7164         AM_CPPFLAGS define it as a C macro.
7165         (func_emit_tests_Makefile_am): Likewise.
7166         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
7167         read it from there.
7168         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
7169         m4_define, not AC_DEFUN.
7170         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
7171         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
7172         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
7173         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
7174         s|...|...|, to substitute the values of the GNULIB_* module indicator
7175         variables.
7176         * modules/dirent (Makefile.am): Likewise.
7177         * modules/fcntl-h (Makefile.am): Likewise.
7178         * modules/iconv-h (Makefile.am): Likewise.
7179         * modules/langinfo (Makefile.am): Likewise.
7180         * modules/locale (Makefile.am): Likewise.
7181         * modules/math (Makefile.am): Likewise.
7182         * modules/netdb (Makefile.am): Likewise.
7183         * modules/poll-h (Makefile.am): Likewise.
7184         * modules/pty (Makefile.am): Likewise.
7185         * modules/search (Makefile.am): Likewise.
7186         * modules/signal (Makefile.am): Likewise.
7187         * modules/spawn (Makefile.am): Likewise.
7188         * modules/stdio (Makefile.am): Likewise.
7189         * modules/stdlib (Makefile.am): Likewise.
7190         * modules/string (Makefile.am): Likewise.
7191         * modules/sys_ioctl (Makefile.am): Likewise.
7192         * modules/sys_select (Makefile.am): Likewise.
7193         * modules/sys_socket (Makefile.am): Likewise.
7194         * modules/sys_stat (Makefile.am): Likewise.
7195         * modules/sys_times (Makefile.am): Likewise.
7196         * modules/sys_utsname (Makefile.am): Likewise.
7197         * modules/sys_wait (Makefile.am): Likewise.
7198         * modules/termios (Makefile.am): Likewise.
7199         * modules/time (Makefile.am): Likewise.
7200         * modules/unistd (Makefile.am): Likewise.
7201         * modules/wchar (Makefile.am): Likewise.
7202
7203 2011-06-08  Eric Blake  <eblake@redhat.com>
7204
7205         strerror: simplify replacement
7206         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
7207         * modules/strerror (configure.ac): No prereqs needed here...
7208         * modules/strerror-override (configure.ac): ...but this needs it.
7209         (Files): Add file for needed prereq macro.
7210
7211 2011-06-08  Bruno Haible  <bruno@clisp.org>
7212
7213         strerror_r-posix: Tweaks.
7214         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
7215         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
7216         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
7217         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
7218         (gl_FUNC_STRERROR_R): ... to here.
7219         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
7220
7221 2011-06-07  Eric Blake  <eblake@redhat.com>
7222
7223         perror: document fixed bugs
7224         * doc/posix-functions/perror.texi (perror): Document recent
7225         patches.
7226
7227 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
7228
7229         stat-time: get_stat_birthtime failure is better-defined
7230         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
7231         return a timestamp whose tv_sec and tv_nsec values are both -1.
7232         Previously, the spec said only that the tv_nsec value was negative.
7233         This upward-compatible change simplifies GNU tar a bit.
7234
7235 2011-06-07  Eric Blake  <eblake@redhat.com>
7236
7237         strerror_r-posix: work around cygwin 1.7.9
7238         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
7239         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
7240         bug without replacing strerror_r.
7241         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
7242         strerror_r is buggy, but without requiring strerror_r compilation.
7243         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
7244
7245         test-perror: relax test to ignore cygwin bug
7246         * tests/test-perror2.c (main): Relax test on requiring detection
7247         of stream errors, and use unbuffered stream.
7248         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
7249         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
7250         * doc/posix-functions/fputc.texi (fputc): Likewise.
7251         * doc/posix-functions/fputs.texi (fputs): Likewise.
7252         * doc/posix-functions/fputws.texi (fputws): Likewise.
7253         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
7254         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
7255         * doc/posix-functions/getopt.texi (getopt): Likewise.
7256         * doc/posix-functions/perror.texi (perror): Likewise.
7257         * doc/posix-functions/printf.texi (printf): Likewise.
7258         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
7259         * doc/posix-functions/psignal.texi (psignal): Likewise.
7260         * doc/posix-functions/putc.texi (putc): Likewise.
7261         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
7262         Likewise.
7263         * doc/posix-functions/putchar.texi (putchar): Likewise.
7264         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
7265         Likewise.
7266         * doc/posix-functions/puts.texi (puts): Likewise.
7267         * doc/posix-functions/putwc.texi (putwc): Likewise.
7268         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
7269         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
7270         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7271         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
7272         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7273         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
7274         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
7275         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
7276
7277 2011-05-22  Bruno Haible  <bruno@clisp.org>
7278
7279         strerror: Move AC_LIBOBJ invocations to module description.
7280         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
7281         gl_PREREQ_STRERROR invocations from here...
7282         * modules/strerror (configure.ac): ... to here.
7283
7284 2011-05-21  Bruno Haible  <bruno@clisp.org>
7285
7286         perror: Use common idiom.
7287         * modules/perror (configure.ac): Reorder statements.
7288
7289 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
7290
7291         tests: fix usage message in 'mktempd_'
7292         * tests/init.sh (mktempd_): In the usage message, use literal
7293         'mktempd_', not '$ME' (which is even undefined), as the name of
7294         the subroutine.
7295
7296 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
7297
7298         tests init: new function 'fatal_', for hard errors
7299         Before this patch, the only way offered by tests/init.sh to
7300         properly signal a hard error was the `framework_failure_'
7301         function.  But the error message issued by that function,
7302         as its name would suggest, refers to a set-up failure in the
7303         testsuite, while hard errors can obviously also be due to
7304         other reasons.  The best way to fix this inconsistency is to
7305         introduce a new function with a more general error message.
7306         * tests/init.sh (fatal_): New function.
7307
7308 2011-06-06  Eric Blake  <eblake@redhat.com>
7309
7310         canonicalize-lgpl: use common idiom
7311         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
7312         over newer POSIX -Rf.
7313         Reported by Bruno Haible.
7314
7315         canonicalize-lgpl: work around AIX realpath bug
7316         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
7317         * doc/posix-functions/realpath.texi (realpath): Document it.
7318         Reported by Bruno Haible.
7319
7320         strerror: work around FreeBSD bug
7321         * lib/strerror.c (strerror): Special case 0.
7322         Reported by Bruno Haible.
7323
7324         strerror-override: avoid bloating errno module
7325         * modules/errno (Files, configure.ac): Move replacement strings...
7326         * modules/strerror-override: ...to new module.
7327         * modules/strerror (Depends-on): Add strerror-override.
7328         * modules/strerror_r-posix (Depends-on): Likewise.
7329         * MODULES.html.sh: Document new module.
7330         Reported by Bruno Haible.
7331
7332 2011-06-06  Bruno Haible  <bruno@clisp.org>
7333
7334         spawn-pipe tests: Rename program.
7335         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
7336         * tests/test-spawn-pipe-child.c: Update comment.
7337         * tests/test-spawn-pipe.sh: Update.
7338         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
7339
7340         spawn-pipe tests: Link the child program only against libc.
7341         * tests/test-spawn-pipe-child.c: New file, extracted from
7342         tests/test-spawn-pipe.c.
7343         (main): Expect only one argument.
7344         (is_open): New function, copied from tests/test-pipe.c.
7345         * tests/test-spawn-pipe.c: Don't include <errno.h>.
7346         (child_main): Remove function.
7347         (test_pipe): Pass only one argument to the child program.
7348         (main): Remove child process code. Expect the child program's name as
7349         first argument.
7350         * tests/test-spawn-pipe.sh: Pass the child program's name as first
7351         argument.
7352         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
7353         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
7354         test-spawn-pipe-child against no libraries.
7355
7356 2011-06-06  Bruno Haible  <bruno@clisp.org>
7357
7358         careadlinkat: Avoid mismatch between ssize_t and int.
7359         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
7360         * lib/careadlinkat.c (careadlinkatcwd): Define always.
7361
7362 2011-06-06  Jim Meyering  <meyering@redhat.com>
7363
7364         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
7365         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
7366         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
7367
7368 2011-06-05  Bruno Haible  <bruno@clisp.org>
7369
7370         ansi-c++-opt: Interoperability with libtool.
7371         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
7372         set the variable to "no", not to ":".
7373         * NEWS: Mention the change.
7374
7375 2011-06-05  Bruno Haible  <bruno@clisp.org>
7376
7377         acl: Fix test failure on AIX 7.
7378         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
7379         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
7380
7381 2011-06-05  Bruno Haible  <bruno@clisp.org>
7382
7383         pipe-filter-ii: Fix test failure on AIX and IRIX.
7384         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
7385         with EAGAIN, retry with a smaller buffer size.
7386
7387 2011-06-05  Bruno Haible  <bruno@clisp.org>
7388
7389         localename: Fix link dependencies.
7390         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
7391         * modules/localename-tests (Makefile.am): Link test-localename with
7392         $(LIBTHREAD).
7393
7394 2011-06-05  Bruno Haible  <bruno@clisp.org>
7395
7396         error: Avoid gcc warning.
7397         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
7398
7399 2011-06-05  Bruno Haible  <bruno@clisp.org>
7400
7401         unsetenv: Avoid gcc warning.
7402         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
7403
7404 2011-06-05  Bruno Haible  <bruno@clisp.org>
7405
7406         setenv: Avoid gcc warning.
7407         * lib/setenv.c (setenv): Provide declaration if system lacks it.
7408
7409 2011-06-05  Bruno Haible  <bruno@clisp.org>
7410
7411         sys_select: Ensure memset is declared also on AIX 7.
7412         * lib/sys_select.in.h: Include <string.h> also on AIX.
7413         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
7414         self-contained also on AIX 7.1.
7415
7416 2011-06-04  Jim Meyering  <meyering@redhat.com>
7417
7418         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
7419         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
7420         function name, "error".
7421         (_gl_translatable_diag_func_re): New configurable variable.
7422
7423 2011-06-04  Bruno Haible  <bruno@clisp.org>
7424
7425         getopt: Avoid gcc warning.
7426         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
7427
7428 2011-06-04  Bruno Haible  <bruno@clisp.org>
7429
7430         strerror_r: Fix comments.
7431         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
7432         commit.
7433
7434 2011-06-04  Bruno Haible  <bruno@clisp.org>
7435
7436         perror: Fix compilation error.
7437         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
7438         Undefine fprintf, not sprintf.
7439         * modules/perror (Depends-on): Remove intprops, verify.
7440
7441 2011-06-04  Bruno Haible  <bruno@clisp.org>
7442
7443         setlocale: Enable replacement on Cygwin 1.5.
7444         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
7445         Cygwin 1.5.x.
7446         * doc/posix-functions/setlocale.texi: Mention that the problem with the
7447         LC_CTYPE category also exists on Cygwin 1.5.x.
7448
7449 2011-06-04  Bruno Haible  <bruno@clisp.org>
7450
7451         strerror-override: Don't disable symbol renamings.
7452         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
7453         * lib/strerror-override.c: Include config.h.
7454         (strerror_override): Don't undefine.
7455
7456 2011-06-03  Bruno Haible  <bruno@clisp.org>
7457
7458         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
7459         * lib/localename.h: Update copyright header.
7460         * lib/localename.c: Likewise.
7461         * lib/relocatable.h: Likewise.
7462         * lib/relocatable.c: Likewise.
7463
7464 2011-06-02  Bruno Haible  <bruno@clisp.org>
7465
7466         doc: Fix a module name.
7467         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
7468
7469 2011-06-02  Bruno Haible  <bruno@clisp.org>
7470
7471         pipe2: Remove dependency on 'nonblocking' module.
7472         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
7473         O_NONBLOCK is defined by gnulib.
7474         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
7475         is zero.
7476         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
7477         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
7478         defined by gnulib.
7479         (get_nonblocking_flag): New function.
7480         (main): Test O_NONBLOCK flag only if it is nonzero.
7481         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
7482
7483 2011-06-03  Jim Meyering  <meyering@redhat.com>
7484
7485         maint: three new prohibit-header-without-use rules
7486         Prohibit use of cloexec.h, posixver.h, same.h without use.
7487         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
7488         (sc_prohibit_posixver_without_use): Likewise.
7489         (sc_prohibit_same_without_use): Likewise.
7490
7491 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
7492
7493         allocator: 'die' routine is now given requested size
7494         * lib/allocator.h (struct allocator.die): New size arg.
7495         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
7496         If the actual problem is an ssize_t limitation, not a size_t or
7497         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
7498
7499 2011-06-01  Eric Blake  <eblake@redhat.com>
7500
7501         strerror: drop strerror_r dependency
7502         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
7503         * lib/strerror-override.c (strerror_override): ...to new file.
7504         * lib/strerror-override.h: Add prototype.
7505         * lib/strerror-impl.h: Delete.
7506         * lib/strerror.c (strerror): New implementation.
7507         * modules/errno (Files): Add new files.
7508         (configure.ac): Compile new file as appropriate.
7509         * modules/strerror (Files): Drop unused file.
7510         (Depends-on): Drop strerror_r-posix.
7511         * MODULES.html.sh: Document strerror_r-posix.
7512         Requested by Sam Steingold.
7513
7514         perror: call strerror_r directly
7515         * modules/perror (Files): Drop strerror-impl.h.
7516         * lib/perror.c (perror): Use our own stack buffer, rather than
7517         calling a wrapper that uses static storage.
7518         * doc/posix-functions/perror.texi (perror): Document a limitation
7519         of our replacement.
7520
7521         strerror_r: fix includes for FreeBSD
7522         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
7523         since we use abort on some platforms.
7524         Reported by Matthias Bolte.
7525
7526 2011-05-31  Bruno Haible  <bruno@clisp.org>
7527
7528         Fix link errors in tests: openat-die uses gettext-h.
7529         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
7530         against $(LIBINTL).
7531         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
7532         against $(LIBINTL).
7533         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
7534         $(LIBINTL).
7535         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
7536         against $(LIBINTL).
7537         * modules/linkat-tests (Makefile.am): Link test-linkat against
7538         $(LIBINTL).
7539         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
7540         $(LIBINTL).
7541         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
7542         against $(LIBINTL).
7543         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
7544         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
7545         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
7546         $(LIBINTL).
7547         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
7548         $(LIBINTL).
7549         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
7550         $(LIBINTL).
7551         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7552
7553 2011-05-31  Bruno Haible  <bruno@clisp.org>
7554
7555         Fix link errors in tests: wait-process uses gettext-h.
7556         * modules/nonblocking-pipe-tests (Makefile.am): Set
7557         test_nonblocking_pipe_main_LDADD.
7558         * modules/nonblocking-socket-tests (Makefile.am): Link
7559         test-nonblocking-socket-main against $(LIBINTL).
7560         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7561
7562 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
7563
7564         assert-h: work around 'verify' incompatibility
7565         * lib/verify.h: Use @...@ directives, not ifdef.
7566         * modules/assert-h (assert.h): Implement the directives.
7567         (assert.h): Substitute the symbol-prefix more consistently.
7568
7569 2011-05-29  Jim Meyering  <meyering@redhat.com>
7570
7571         trim: remove three superfluous assignments
7572         * lib/trim.c (trim2): Remove three superfluous assignments
7573         and correct brace positioning.
7574
7575 2011-05-29  Bruno Haible  <bruno@clisp.org>
7576
7577         wctype-h: Avoid namespace pollution on Solaris 2.6.
7578         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
7579         identifiers.
7580         * doc/posix-headers/wctype.texi: Mention the problem.
7581         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7582
7583 2011-05-28  Jim Meyering  <meyering@redhat.com>
7584
7585         parse-datetime.y: accommodate -Wstrict-overflow
7586         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
7587         placate -Wstrict-overflow.
7588
7589         trim: avoid a warning from -O2 -Wstrict-overflow
7590         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
7591
7592 2011-05-29  Bruno Haible  <bruno@clisp.org>
7593
7594         gnulib-tool: Fix bug in yesterday's commit.
7595         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
7596         twice.
7597
7598 2011-05-29  Bruno Haible  <bruno@clisp.org>
7599
7600         Allow multiple gnulib generated include files to be combined.
7601         * gnulib-tool (func_compute_include_guard_prefix): New function.
7602         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
7603         ${gl_include_guard_prefix} references.
7604         (func_import, func_create_testdir): Invoke
7605         func_compute_include_guard_prefix.
7606         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
7607         * lib/ctype.in.h: Likewise.
7608         * lib/dirent.in.h: Likewise.
7609         * lib/errno.in.h: Likewise.
7610         * lib/fcntl.in.h: Likewise.
7611         * lib/float.in.h: Likewise.
7612         * lib/getopt.in.h: Likewise.
7613         * lib/iconv.in.h: Likewise.
7614         * lib/langinfo.in.h: Likewise.
7615         * lib/locale.in.h: Likewise.
7616         * lib/math.in.h: Likewise.
7617         * lib/netdb.in.h: Likewise.
7618         * lib/netinet_in.in.h: Likewise.
7619         * lib/poll.in.h: Likewise.
7620         * lib/pthread.in.h: Likewise.
7621         * lib/pty.in.h: Likewise.
7622         * lib/sched.in.h: Likewise.
7623         * lib/se-selinux.in.h: Likewise.
7624         * lib/search.in.h: Likewise.
7625         * lib/signal.in.h: Likewise.
7626         * lib/spawn.in.h: Likewise.
7627         * lib/stdarg.in.h: Likewise.
7628         * lib/stddef.in.h: Likewise.
7629         * lib/stdint.in.h: Likewise.
7630         * lib/stdio.in.h: Likewise.
7631         * lib/stdlib.in.h: Likewise.
7632         * lib/string.in.h: Likewise.
7633         * lib/strings.in.h: Likewise.
7634         * lib/sys_file.in.h: Likewise.
7635         * lib/sys_ioctl.in.h: Likewise.
7636         * lib/sys_select.in.h: Likewise.
7637         * lib/sys_socket.in.h: Likewise.
7638         * lib/sys_stat.in.h: Likewise.
7639         * lib/sys_time.in.h: Likewise.
7640         * lib/sys_times.in.h: Likewise.
7641         * lib/sys_uio.in.h: Likewise.
7642         * lib/sys_utsname.in.h: Likewise.
7643         * lib/sys_wait.in.h: Likewise.
7644         * lib/sysexits.in.h: Likewise.
7645         * lib/termios.in.h: Likewise.
7646         * lib/time.in.h: Likewise.
7647         * lib/unistd.in.h: Likewise.
7648         * lib/wchar.in.h: Likewise.
7649         * lib/wctype.in.h: Likewise.
7650         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
7651         * modules/ctype (Makefile.am): Likewise.
7652         * modules/dirent (Makefile.am): Likewise.
7653         * modules/errno (Makefile.am): Likewise.
7654         * modules/fcntl-h (Makefile.am): Likewise.
7655         * modules/float (Makefile.am): Likewise.
7656         * modules/getopt-posix (Makefile.am): Likewise.
7657         * modules/iconv-h (Makefile.am): Likewise.
7658         * modules/langinfo (Makefile.am): Likewise.
7659         * modules/locale (Makefile.am): Likewise.
7660         * modules/math (Makefile.am): Likewise.
7661         * modules/netdb (Makefile.am): Likewise.
7662         * modules/netinet_in (Makefile.am): Likewise.
7663         * modules/poll-h (Makefile.am): Likewise.
7664         * modules/pthread (Makefile.am): Likewise.
7665         * modules/pty (Makefile.am): Likewise.
7666         * modules/sched (Makefile.am): Likewise.
7667         * modules/search (Makefile.am): Likewise.
7668         * modules/selinux-h (Makefile.am): Likewise.
7669         * modules/signal (Makefile.am): Likewise.
7670         * modules/spawn (Makefile.am): Likewise.
7671         * modules/stdarg (Makefile.am): Likewise.
7672         * modules/stddef (Makefile.am): Likewise.
7673         * modules/stdint (Makefile.am): Likewise.
7674         * modules/stdio (Makefile.am): Likewise.
7675         * modules/stdlib (Makefile.am): Likewise.
7676         * modules/string (Makefile.am): Likewise.
7677         * modules/strings (Makefile.am): Likewise.
7678         * modules/sys_file (Makefile.am): Likewise.
7679         * modules/sys_ioctl (Makefile.am): Likewise.
7680         * modules/sys_select (Makefile.am): Likewise.
7681         * modules/sys_socket (Makefile.am): Likewise.
7682         * modules/sys_stat (Makefile.am): Likewise.
7683         * modules/sys_time (Makefile.am): Likewise.
7684         * modules/sys_times (Makefile.am): Likewise.
7685         * modules/sys_uio (Makefile.am): Likewise.
7686         * modules/sys_utsname (Makefile.am): Likewise.
7687         * modules/sys_wait (Makefile.am): Likewise.
7688         * modules/sysexits (Makefile.am): Likewise.
7689         * modules/termios (Makefile.am): Likewise.
7690         * modules/time (Makefile.am): Likewise.
7691         * modules/unistd (Makefile.am): Likewise.
7692         * modules/wchar (Makefile.am): Likewise.
7693         * modules/wctype-h (Makefile.am): Likewise.
7694         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
7695
7696 2011-05-29  Bruno Haible  <bruno@clisp.org>
7697
7698         assert-h: Allow multiple gnulib generated replacements to coexist.
7699         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
7700
7701 2011-05-29  Bruno Haible  <bruno@clisp.org>
7702
7703         argp: Allow coexistence with strerror_r-posix module.
7704         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
7705         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
7706         by gnulib's <string.h> replacement), assume it has the POSIX signature,
7707         not the glibc signature.
7708
7709 2011-05-28  Bruno Haible  <bruno@clisp.org>
7710
7711         gnulib-tool: Alternative structure of testdirs, similar to --import.
7712         * gnulib-tool: New option --single-configure.
7713         (func_usage): Document it.
7714         (single_configure): New variable.
7715         (func_modules_transitive_closure_separately,
7716         func_modules_transitive_closure_separately,
7717         func_determine_use_libtests, func_modules_add_dummy_separately,
7718         func_modules_to_filelist_separately): New functions, extracted from
7719         func_import.
7720         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
7721         (func_import): Use the new functions.
7722         (func_create_testdir): Set final_modules. Handle $single_configure =
7723         true case.
7724
7725 2011-05-28  Bruno Haible  <bruno@clisp.org>
7726
7727         getloadavg: Remove an unreliable safety check.
7728         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
7729         getloadavg.c is in place.
7730         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
7731         Reported by Sam Steingold <sds@gnu.org>.
7732
7733 2011-05-28  Bruno Haible  <bruno@clisp.org>
7734
7735         doc: Cleanup yet another file produced by texinfo.tex.
7736         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
7737
7738 2011-05-28  Bruno Haible  <bruno@clisp.org>
7739
7740         Finish the conditional dependencies mechanism.
7741         * gnulib-tool: New option --no-conditional-dependencies.
7742         (func_usage): Document it. Don't mark --conditional-dependencies as
7743         experimental.
7744         (cond_dependencies): The possible values can now be true, false, empty.
7745         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
7746         (func_import): Store setting in gnulib-cache.m4 and read it from there.
7747         * doc/gnulib-tool.texi (Conditional dependencies): New section.
7748
7749 2011-05-28  Bruno Haible  <bruno@clisp.org>
7750
7751         doc: Use a recent texinfo.tex.
7752         * doc/Makefile (tex_opts): New variable.
7753         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
7754
7755 2011-05-28  Jim Meyering  <meyering@redhat.com>
7756
7757         intprops.h: adjust comment to match code change
7758         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
7759         only once, it *may* have side effects.  Also fix an unrelated typo.
7760         (_GL_INT_SIGNED): Likewise.
7761
7762 2011-05-26  Simon Josefsson  <simon@josefsson.org>
7763
7764         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
7765
7766 2011-05-26  Bruno Haible  <bruno@clisp.org>
7767
7768         mbsrchr: Avoid collision with system function on Interix.
7769         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
7770         Reported by Markus Duft <mduft@gentoo.org>.
7771
7772 2011-05-15  James Youngman  <jay@gnu.org>
7773
7774         getopt: for ambiguous options, enumerate the possibilities.
7775         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
7776         the ambiguous options when an ambiguous prefix is given. This was
7777         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
7778         glibc change was
7779         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
7780
7781 2011-05-25  Eric Blake  <eblake@redhat.com>
7782
7783         getcwd: work around mingw bug
7784         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
7785         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7786         Reported by Matthias Bolte.
7787
7788 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7789
7790         test-intprops: disable -Wtype-limits diagnostics
7791         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
7792         diagnostics.  Otherwise, the integer overflow macros generate many
7793         diagnostics.  Reported by Jim Meyering in
7794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7795
7796         intprops: shorten, to pacify gcc -Woverlength-strings
7797         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
7798         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
7799         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
7800         likely to run afoul of C compiler limits for string constant lengths.
7801         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7802
7803 2011-05-24  Eric Blake  <eblake@redhat.com>
7804
7805         docs: document recently fixed glibc printf bug
7806         * doc/posix-functions/fprintf.texi (fprintf): Document it.
7807         * doc/posix-functions/printf.texi (printf): Likewise.
7808         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7809         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7810
7811         closein-tests: convert to init.sh
7812         * modules/closein-tests (Files): Add init.sh
7813         * tests/test-closein.sh Use it.
7814
7815         yesno-tests: convert to init.sh
7816         * modules/yesno-tests (Files): Add init.sh.
7817         * tests/test-yesno.sh: Use it.
7818
7819         atexit-tests: ensure reliable exit status
7820         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
7821         Reported by Bruno Haible.
7822
7823 2011-05-24  Bruno Haible  <bruno@clisp.org>
7824
7825         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
7826         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
7827         gl_PREREQ_STRERROR_R invocations from here...
7828         * modules/strerror_r-posix (configure.ac): ... to here.
7829
7830 2011-05-24  Eric Blake  <eblake@redhat.com>
7831
7832         strerror_r: fix missing header
7833         * lib/strerror_r.c: Avoid compiler warning about snprintf.
7834
7835         strerror_r: fix AIX test failures
7836         * lib/strerror_r.c (strerror_r): Convert silent truncation to
7837         ERANGE failure.
7838
7839         strerror_r: fix Solaris test failures
7840         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
7841         failures.
7842         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7843
7844         strerror_r: enforce POSIX recommendations
7845         * lib/strerror_r.c (safe_copy): New helper method.
7846         (strerror_r): Guarantee a non-empty string.
7847         * tests/test-strerror_r.c (main): Enhance tests to incorporate
7848         recent POSIX rulings and to match our strerror guarantees.
7849         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7850
7851 2011-05-24  Jim Meyering  <meyering@redhat.com>
7852
7853         test-perror2.c: avoid warning about unused variable
7854         * tests/test-perror2.c (main): Remove declaration of unused "fp".
7855
7856 2011-05-24  Eric Blake  <eblake@redhat.com>
7857
7858         perror: avoid spurious test failure on HP-UX
7859         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
7860
7861         tests: fix logic bug in init.sh
7862         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
7863         shell.
7864
7865 2011-05-24  Jim Meyering  <meyering@redhat.com>
7866
7867         utimensat: do not reference an out-of-scope buffer
7868         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
7869         declared in an inner scope, yet "times" would be dereferenced outside
7870         the scope in which "ts" was valid.
7871         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
7872         of ts[2] "out/up", so that the use of aliased "times" (via
7873         "times = ts;") does not end up referencing an out-of-scope "ts"
7874
7875         opendir-safer.c: don't clobber errno; don't close negative FD
7876         * lib/opendir-safer.c (opendir_safer):
7877         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
7878         file descriptor, and more importantly, don't clobber the
7879         offending errno value with EINVAL.  Before, upon failure
7880         of dup_safer, we would pass the negative file descriptor to
7881         fdopendir, which would clobber errno.
7882
7883 2011-05-23  Bruno Haible  <bruno@clisp.org>
7884
7885         idcache: Fix module description.
7886         * modules/idcache (Include): Set to "idcache.h".
7887
7888 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7889
7890         gnulib-tool: fix portability problem with MacOS sed
7891         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
7892         before the "}".  Problem reported by Leo in
7893         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
7894         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
7895         sed_extract_condition1, sed_extract_condition2.
7896
7897 2011-05-23  Bruno Haible  <bruno@clisp.org>
7898
7899         hash: Simplify autoconf macro.
7900         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
7901
7902 2011-05-23  Bruno Haible  <bruno@clisp.org>
7903
7904         getugroups: Fix module description.
7905         * modules/getugroups (Include): Set to "getugroups.h".
7906
7907 2011-05-23  Bruno Haible  <bruno@clisp.org>
7908
7909         linkat: Simplify autoconf macro.
7910         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
7911
7912 2011-05-23  Bruno Haible  <bruno@clisp.org>
7913             Eric Blake  <eblake@redhat.com>
7914
7915         linkat, renameat: Update dependencies.
7916         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
7917         * modules/linkat (Depends-on): Likewise. Remove also readlink,
7918         symlinkat.
7919
7920 2011-05-23  Jim Meyering  <meyering@redhat.com>
7921
7922         maint.mk: more tight_scope improvements
7923         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
7924         (_gl_TS_headers): Define only in if-0'd block.
7925         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
7926         sometimes we must *not* use it.  Adjust uses accordingly.
7927         (sc_tight_scope): Use much simpler grep-based test to determine
7928         whether we skip this rule.
7929
7930         maint.mk: generalize/improve the tight-scope rule
7931         * top/maint.mk: Emit a warning when the test is skipped.
7932         (_gl_TS_dir): Add $(srcdir)/ prefix.
7933         (_gl_TS_function_match): Simplify, rather than trying
7934         to enumerate common types.  Otherwise, it would fail to match an
7935         "extern unsigned char const *" declaration in idutils.
7936         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
7937         a way to support use of that type of macro.
7938         (_gl_TS_var_match): Simplify regexp.
7939         (_gl_TS_obj_files): New configurable variable.
7940         (_gl_TS_headers): Likewise.
7941
7942 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7943
7944         verify: fix bug when gnulib <assert.h> is also included
7945         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
7946         is defined, not if _GL_STATIC_ASSERT_H is not defined.
7947         Perhaps there's a better way, but this fixes the immediate problem.
7948         Problem reported by Bruno Haible in
7949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
7950
7951 2011-05-22  Bruno Haible  <bruno@clisp.org>
7952
7953         xgetcwd: Simplify autoconf macro.
7954         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
7955
7956 2011-05-22  Bruno Haible  <bruno@clisp.org>
7957
7958         New module 'mktime-internal'.
7959         * modules/mktime-internal: New file.
7960         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
7961         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
7962         mktime_internal as a C macro if libc has __mktime_internal.
7963         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
7964         conditions.
7965         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
7966
7967 2011-05-22  Bruno Haible  <bruno@clisp.org>
7968
7969         timegm: Correct mktime replacement statements.
7970         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
7971         defining mktime as a C macro. This completes a 2009-07-28 commit.
7972
7973 2011-05-22  Bruno Haible  <bruno@clisp.org>
7974
7975         timegm: Simplify autoconf macro.
7976         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7977
7978 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7979
7980         clock-time: change to LGPLv2+.
7981         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7982         BSD-like but we have no mark for that; this is good enough for now.
7983
7984 2011-05-21  Bruno Haible  <bruno@clisp.org>
7985
7986         strerror_r: Fix comments.
7987         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7988
7989 2011-05-21  Bruno Haible  <bruno@clisp.org>
7990
7991         relocatable-prog-wrapper: Fix possible link error.
7992         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7993         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7994         (gl_FUNC_SETENV): ... to here.
7995         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7996         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7997
7998 2011-05-21  Bruno Haible  <bruno@clisp.org>
7999
8000         relocatable-prog-wrapper: Assume strerror() exists.
8001         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
8002         m4/strerror.m4.
8003         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
8004         * lib/relocwrapper.c: Remove mention of strerror module.
8005         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
8006         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
8007         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
8008         C macro.
8009
8010 2011-05-21  Bruno Haible  <bruno@clisp.org>
8011
8012         select: Simplify replacement idiom.
8013         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
8014         Win32 platforms.
8015         * lib/sys_select.in.h (select): Simplify accordingly.
8016         * modules/select (Depends-on): Likewise.
8017
8018 2011-05-21  Bruno Haible  <bruno@clisp.org>
8019
8020         mkdir-p: Simplify autoconf macro.
8021         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
8022         gl_FUNC_LCHOWN.
8023
8024 2011-05-21  Eric Blake  <eblake@redhat.com>
8025
8026         strerror_r: avoid clobbering strerror on cygwin
8027         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
8028         fall back instead to sys_errlist.
8029         * modules/strerror (configure.ac): Add witness.
8030         * tests/test-strerror_r.c (main): Enhance test.
8031         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8032         * tests/test-perror2.c (main): Free memory before exit.
8033
8034 2011-05-21  Bruno Haible  <bruno@clisp.org>
8035
8036         mkdtemp: Use gnulib naming conventions.
8037         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
8038         * modules/mkdtemp (configure.ac): Update.
8039
8040 2011-05-20  Eric Blake  <eblake@redhat.com>
8041
8042         strerror_r: avoid corrupting errno on Solaris
8043         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
8044         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8045
8046         strerror_r: avoid compiler warning
8047         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
8048
8049         strerror_r: simplify AIX code
8050         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
8051
8052         test-perror: avoid spurious failure on FreeBSD
8053         * modules/perror-tests (Depends-on): Add strerror, now that
8054         strerror_r no longer pulls it in.
8055
8056 2011-05-20  Bruno Haible  <bruno@clisp.org>
8057
8058         strerror_r-posix: Remove unused dependencies.
8059         * modules/strerror_r-posix (Depends-on): Remove strerror.
8060         Reported by Eric Blake.
8061
8062 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
8063
8064         intprops: remove assumption about A|B representation
8065         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
8066         is a valid integer if both A and B are.  Although this is true for
8067         all known practical hosts, the C standard doesn't guarantee it,
8068         and the code need not assume it.  Also, this change may work around
8069         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
8070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
8071
8072 2011-05-20  Eric Blake  <eblake@redhat.com>
8073
8074         perror: work around FreeBSD bug
8075         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
8076         is broken.  Move AC_LIBOBJ...
8077         * modules/perror (configure.ac): Here.
8078         * doc/posix-functions/perror.texi (perror): Document this.
8079         * tests/test-perror2.c (main): Enhance test.
8080
8081         test-perror: check for strerror interactions
8082         * tests/macros.h (STREQ): Add macro.
8083         * modules/perror-tests (Files): Add second test.
8084         * tests/test-perror2.c (main): New file.
8085         * doc/posix-functions/perror.texi (perror): Document glibc bug.
8086
8087         test-perror: rewrite to use init script
8088         * modules/perror-tests (Files): Add init.sh.
8089         * tests/test-perror.sh: Use temporary directory.
8090
8091 2011-05-20  Jim Meyering  <meyering@redhat.com>
8092
8093         maint: replace misused "a" with "an"
8094         * doc/intprops.texi: "a integer"
8095         * doc/regex.texi: "a explanation"
8096         * lib/alignof.h: "a object"
8097         * lib/argmatch.h: "a explanation"
8098         * lib/argp-help.c: "a option" and "a OPTION_DOC"
8099         * lib/stdint.in.h: "a integer"
8100         * lib/userspec.c: "a owner"
8101         * doc/gnulib.texi: Fix "a idea", and reword.
8102
8103 2011-05-19  Jim Meyering  <meyering@redhat.com>
8104
8105         maint: correct misuse of "a" and "an"
8106         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
8107         * lib/argp-help.c: "an docum...": s/an/a/
8108         * lib/argp-parse.c: "An vector": s/An/A/
8109         * lib/execute.c: "an native": s/an/a/
8110         * lib/spawn-pipe.c: Likewise.
8111         * lib/gc.h: "an Gc_rc": s/an/a/
8112         * lib/unigbrk.in.h: "an grapheme": s/an/a/
8113         * lib/fts.c: "an stat.st_dev": s/an/a/
8114
8115 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8116
8117         intprops-tests: work around HP-UX 11.23 cc bug with constants
8118         * tests/test-intprops.c (VERIFY): New macro.
8119         (main): Use it, instead of verify, to work around the compiler bug; see
8120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8121
8122         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
8123         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
8124         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
8125         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
8126         (_GL_REMAINDER_OVERFLOW): Use it.
8127
8128         intprops-tests: revert unsigned part of previous change
8129         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
8130         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
8131         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
8132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
8133
8134 2011-05-19  Bruno Haible  <bruno@clisp.org>
8135
8136         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
8137         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
8138         strerror_r() returned without filling the buffer.
8139         Reported by Eric Blake.
8140
8141 2011-05-19  Eric Blake  <eblake@redhat.com>
8142
8143         strerror_r: guarantee unchanged errno
8144         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
8145         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
8146         failure.
8147         * tests/test-strerror_r.c (main): Enhance test.
8148
8149 2011-05-19  Bruno Haible  <bruno@clisp.org>
8150
8151         strerror_r: Reorder #if blocks.
8152         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
8153         for consistency with the previous commit.
8154
8155 2011-05-19  Bruno Haible  <bruno@clisp.org>
8156
8157         perror: Avoid clobbering the strerror buffer when possible.
8158         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
8159         * lib/strerror.c: Include it.
8160         * modules/strerror (Files): Add lib/strerror-impl.h.
8161         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
8162         (my_strerror): New function, defined through lib/strerror-impl.h.
8163         (perror): Use it instead of strerror.
8164         * modules/perror (Files): Add lib/strerror-impl.h.
8165         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
8166
8167 2011-05-19  Eric Blake  <eblake@redhat.com>
8168
8169         strerror_r: fix on newer cygwin
8170         * lib/strerror_r.c (strerror_r): Cygwin now has
8171         __xpg_strerror_r, use it.
8172
8173 2011-05-19  Bruno Haible  <bruno@clisp.org>
8174
8175         strerror_r: Avoid clobbering the strerror buffer when possible.
8176         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
8177         (sys_nerr, sys_errlist): New declarations.
8178         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
8179         HP-UX, native Win32, IRIX, and 32-bit Solaris.
8180         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
8181
8182 2011-05-19  Bruno Haible  <bruno@clisp.org>
8183
8184         strerror_r: Fix test failure on mingw.
8185         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
8186         EXTEND_STRERROR_R.
8187         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
8188         macros from errno.in.h instead.
8189
8190 2011-05-19  Eric Blake  <eblake@redhat.com>
8191
8192         strerror: relax test for Solaris
8193         * tests/test-strerror.c (main): Permit Solaris behavior.
8194         * tests/test-strerror_r.c (main): Likewise.
8195
8196         strerror: enforce POSIX ruling on strerror(0)
8197         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
8198         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8199         * lib/strerror_r.c (rpl_strerror_r): Work around it.
8200         * doc/posix-functions/strerror.texi (strerror): Document it.
8201         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
8202         * tests/test-strerror.c (main): Strengthen test.
8203         * tests/test-strerror_r.c (main): Likewise.
8204
8205 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8206
8207         intprop-tests: port to older and more-pedantic compilers
8208         * modules/intprops-tests (Files): Add tests/macros.h.
8209         * tests/test-intprops.c: Include macros.h.
8210         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
8211         it's no longer documented to expand to an integer constant expression.
8212         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
8213         argument is floating point, as it's no longer documented to expand
8214         to an integer constant expression in that case.
8215         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
8216         compiler bugs reported by Bruno Haible.  See
8217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8218         (U0, U1): New constants, to work around the same bugs.  Also,
8219         in tests, use e.g., "(unsigned int) 39" rather than "39u".
8220
8221         intprops: work around C compiler bugs
8222         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
8223         bug in Sun C 5.11 2010/08/13 and other compilers; see
8224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8225
8226         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
8227         * doc/intprops.texi (Integer Type Determination): Fix
8228         documentation for TYPE_IS_INTEGER: it returns an constant
8229         expression, not an integer constant expression.  Fix doc for
8230         TYPE_SIGNED: it returns an integer constant expression only if its
8231         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
8232         hardly worth documented that way....)
8233
8234 2011-05-18  Bruno Haible  <bruno@clisp.org>
8235
8236         strerror_r: Avoid clobbering the strerror buffer when possible.
8237         * lib/strerror_r.c (strerror_r): Merge the three implementations.
8238         Handle gnulib defined errno values here. When strerror() returns NULL
8239         or an empty string, return EINVAL.
8240         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
8241         gnulib defined errno values here.
8242         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
8243
8244 2011-05-18  Eric Blake  <eblake@redhat.com>
8245
8246         fnmatch: avoid compiler warning
8247         * lib/fnmatch_loop.c (FCT): Use correct type.
8248         Reported by Matthias Bolte.
8249
8250 2011-05-13  Jim Meyering  <meyering@redhat.com>
8251
8252         maint.mk: three new prohibit_<HDR>_without_use rules
8253         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
8254         (sc_prohibit_stdio-safer_without_use): Likewise.
8255         (sc_prohibit_xfreopen_without_use): Likewise.
8256
8257 2011-05-17  Jim Meyering  <meyering@redhat.com>
8258
8259         announce-gen: fail if the NEWS delta is empty
8260         If there's nothing noteworthy in NEWS, then either you forgot
8261         or you shouldn't be releasing.
8262         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
8263
8264 2011-05-17  Pádraig Brady <P@draigBrady.com>
8265
8266         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
8267         reserved symbols starting with double underscore from the check.
8268
8269 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
8270
8271         intprops: add doc
8272         * doc/intprops.texi: New file, documenting intprops.
8273         * doc/gnulib.texi (Particular Modules): Include it.
8274
8275         verify: add doc to gnulib manual and fix example
8276         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
8277         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
8278         (Compile-time Assertions): Fix example so it can't overflow.
8279
8280 2011-05-17  Jim Meyering  <meyering@redhat.com>
8281
8282         warnings.m4: don't usurp save_CPPFLAGS variable name
8283         * m4/warnings.m4: Prefix local temporary variable name with gl_.
8284
8285         doc: fix typo
8286         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
8287
8288 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8289             Bruno Haible  <bruno@clisp.org>
8290
8291         doc: Tweak recent change.
8292         * README (Portability guidelines): Tweak new text.
8293         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
8294         Interix 6.1.
8295
8296 2011-05-16  Eric Blake  <eblake@redhat.com>
8297
8298         inttypes: avoid autoconf warning
8299         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
8300         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8301
8302 2011-05-16  Sam Steingold <sds@gnu.org>
8303         and Eric Blake  <eblake@redhat.com>
8304
8305         vc-list-files: accept multiple directory operands
8306         * build-aux/vc-list-files: Iterate over all remaining operands.
8307
8308 2011-05-16  Bruno Haible  <bruno@clisp.org>
8309
8310         Fix confusion regarding deprecated modules.
8311         * modules/calloc (Status, Notice): Mark module as deprecated, not
8312         obsolete.
8313         * modules/fnmatch-posix (Status, Notice): Likewise.
8314         * modules/getdate (Status, Notice): Likewise.
8315         * modules/getopt (Status, Notice): Likewise.
8316         * modules/malloc (Status, Notice): Likewise.
8317         * modules/pipe (Status, Notice): Likewise.
8318         * modules/realloc (Status, Notice): Likewise.
8319         * modules/rename-dest-slash (Status, Notice): Likewise.
8320         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
8321         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
8322         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
8323         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
8324         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
8325
8326 2011-05-16  Bruno Haible  <bruno@clisp.org>
8327
8328         doc: List the target platforms.
8329         * doc/gnulib-intro.texi (Target Platforms): New section.
8330         * doc/gnulib.texi (Introduction): Update menu.
8331         * README (Portability guidelines): Refer to the new section. Update
8332         statement about oldest supported environment. Remove rationale why
8333         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
8334         unportable C89 function.
8335         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
8336         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
8337
8338 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8339
8340         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
8341
8342 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
8343
8344         intprops-tests: new module
8345         * modules/intprops-tests, tests/test-intprops.c: New files.
8346
8347         intprops: add safe, portable integer overflow checking
8348         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
8349         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
8350         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
8351         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
8352         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
8353         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
8354         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
8355         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
8356         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
8357         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
8358         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
8359
8360 2011-05-12  James Youngman  <jay@gnu.org>
8361
8362         Add a test for glibc's Bugzilla bug #12378.
8363         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
8364         doesn't allow the literal matching of a lone "[" (which is
8365         required by POSIX).
8366         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
8367
8368 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
8369
8370         Sync glibc change fixing Bugzilla bug #12378.
8371         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
8372         beginning and fall back to matching as normal character if the
8373         string ends before the matching ']' is found.  This is what POSIX
8374         requires.
8375
8376 2011-05-13  Eric Blake  <eblake@redhat.com>
8377
8378         getcwd-lgpl: relax test for FreeBSD
8379         * doc/posix-functions/getcwd.texi (getcwd): Document portability
8380         issue.
8381         * tests/test-getcwd-lgpl.c (main): Relax test.
8382         Reported by Matthias Bolte.
8383
8384 2011-05-11  Eric Blake  <eblake@redhat.com>
8385
8386         test-fflush: silence compiler warning
8387         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
8388
8389 2011-05-11  Bruno Haible  <bruno@clisp.org>
8390
8391         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
8392         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
8393         * modules/canonicalize (Depends-on): Add 'nocrash'.
8394         * modules/canonicalize-lgpl (Depends-on): Likewise.
8395         * doc/posix-functions/realpath.texi: Update platforms list.
8396         Reported by Ryan Schmidt <ryandesign@macports.org>.
8397
8398 2011-05-11  Bruno Haible  <bruno@clisp.org>
8399
8400         group-member: Declare function in <unistd.h>.
8401         * lib/unistd.in.h (group_member): New declaration.
8402         * lib/group-member.h: Remove file.
8403         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
8404         * tests/test-unistd-c++.cc: Check signature of group_member.
8405         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
8406         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
8407         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
8408         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
8409         HAVE_GROUP_MEMBER.
8410         * modules/group-member (Files): Remove lib/group-member.h.
8411         (Depends-on): Add unistd. Specify conditions.
8412         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8413         (Include): Change to <unistd.h>.
8414         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
8415         HAVE_GROUP_MEMBER.
8416         * NEWS: Mention the change.
8417         * lib/euidaccess.c: Don't include group-member.h.
8418
8419 2011-05-11  Bruno Haible  <bruno@clisp.org>
8420
8421         group-member: Document module.
8422         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
8423         module.
8424
8425 2011-05-11  Bruno Haible  <bruno@clisp.org>
8426
8427         fclose: Fix mistake earlier today.
8428         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
8429
8430 2011-05-11  Eric Blake  <eblake@redhat.com>
8431
8432         fclose: preserve fflush errors
8433         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
8434         Reported by Jim Meyering.
8435
8436         bootstrap: support a prereq of 'rpcgen -' on RHEL5
8437         * build-aux/bootstrap (check_versions): When no specific version
8438         is required, merely check that the app produces an exit status
8439         that indicates its existence.
8440
8441         maint.mk: drop redundant check
8442         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
8443         the same but better.
8444
8445 2011-05-11  Bruno Haible  <bruno@clisp.org>
8446
8447         fclose: Fix possible link error.
8448         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
8449         unregister_shadow_fd. Improve comments.
8450         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
8451         Eric Blake.
8452
8453 2011-05-11  Jim Meyering  <meyering@redhat.com>
8454
8455         maint.mk: improve "can not" detection and generalize rule name
8456         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
8457         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
8458         Use the same technique as in sc_prohibit_doubled_word, so that
8459         we recognize "can not" also when the words are separated by a newline.
8460         Suggested by Eric Blake.
8461         (perl_filename_lineno_text_): Define.  Factored out of...
8462         (prohibit_doubled_word_): ...here.  Use the new definition.
8463         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
8464         (prohibit_undesirable_word_seq_RE_): New overridable variable.
8465         (ignore_undesirable_word_sequence_RE_): New overridable variable.
8466
8467 2011-05-10  Eric Blake  <eblake@redhat.com>
8468
8469         fclose: avoid double close race when possible
8470         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
8471         all but WINDOWS_SOCKETS.
8472
8473 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
8474
8475         openat: correct new comment
8476         * lib/openat-proc.c (openat_proc_name): Correct the comment.
8477
8478 2011-05-10  Jim Meyering  <meyering@redhat.com>
8479
8480         openat: add comments
8481         * lib/openat-proc.c (openat_proc_name): Add comments,
8482         mostly from Eric Blake.
8483
8484 2011-05-09  Eric Blake  <eblake@redhat.com>
8485
8486         openat: reduce syscalls in first probe of /proc
8487         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
8488         be a directory.  Simplify the probe for .. bugs.
8489         * modules/openat (Depends-on): Drop same-inode.
8490         Reported by Bastien ROUCARIES.
8491
8492 2011-05-09  Jim Meyering  <meyering@redhat.com>
8493
8494         maint.mk: change semantics/name of tight_scope variables
8495         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
8496         Rename variables to align with semantics that make them more useful.
8497
8498         maint.mk: tweak new rule's name not to impinge
8499         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
8500         (sc_tight_scope): Use new rule name rather than $@-0.
8501
8502         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
8503         * top/maint.mk (sc_tight_scope): New rule.
8504         (sc_tight_scope-0): New rule, ifdef'd out.
8505         (_gl_TS_dir): Default.
8506         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
8507         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
8508
8509 2011-05-09  Simon Josefsson  <simon@josefsson.org>
8510
8511         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
8512         Haible <bruno@clisp.org>.
8513
8514 2011-05-08  Bruno Haible  <bruno@clisp.org>
8515
8516         Comments.
8517         * m4/isnanf.m4: Add comment.
8518         * m4/isnanl.m4: Likewise.
8519
8520 2011-05-08  Bruno Haible  <bruno@clisp.org>
8521
8522         glob: Remove obsolete macro.
8523         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
8524
8525 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8526
8527         intprops: Sun C 5.11 supports __typeof__
8528         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
8529         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
8530         which is new.
8531         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
8532
8533         intprops: switch to usual gnulib indenting and naming
8534         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
8535         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
8536
8537         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
8538
8539 2011-05-08  Jim Meyering  <meyering@redhat.com>
8540
8541         maint.mk: suppress "Entering/Leaving directory" diag in announcement
8542         * top/maint.mk (release-prep): Use make's --no-print-directory
8543         option when generating the announcement.  This eliminates the
8544         pesky "make[2]: Entering/Leaving directory" diagnostics in the
8545         generated announcement template.
8546
8547 2011-05-08  Bruno Haible  <bruno@clisp.org>
8548
8549         tzset: Fix gettimeofday wrapper on Solaris 2.6.
8550         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
8551         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
8552
8553 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
8554
8555         ignore-value, verify: Omit include files from lib_SOURCES.
8556         * modules/ignore-value, modules/verify (Makefile.am):
8557         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
8558         that leads Automake to duplicate use of am__objects_... variables
8559         in Makefile.in.  See
8560         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
8561
8562 2011-05-07  Bruno Haible  <bruno@clisp.org>
8563
8564         fclose: Simplify autoconf macro.
8565         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
8566         defined.
8567
8568 2011-05-07  Bruno Haible  <bruno@clisp.org>
8569
8570         canonicalize-lgpl: Fix autoconf macro ordering bug.
8571         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
8572         gl_STDLIB_H_DEFAULTS.
8573
8574 2011-05-06  Eric Blake  <eblake@redhat.com>
8575
8576         maintainer-makefile: make sc_po_check easier to tune
8577         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
8578         to probe for strings, such as an alternate location for gnulib.
8579
8580         fclose: guarantee behavior on seekable stdin
8581         * modules/fclose (Depends-on): Add fflush.
8582         * doc/posix-functions/fclose.texi (fclose): Document this.
8583         * tests/test-fclose.c (main): Make test for this unconditional.
8584
8585 2011-05-06  Bruno Haible  <bruno@clisp.org>
8586
8587         fflush, fpurge: Relicense under LGPLv2+.
8588         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
8589         * modules/fpurge (License): Likewise.
8590         With permission from Eric Blake and Jim Meyering.
8591         Suggested by Eric Blake.
8592
8593 2011-05-06  Karl Berry  <karl@gnu.org>
8594
8595         * MODULES.html.sh (func_all_modules): remove exit.
8596
8597 2011-05-06  Jim Meyering  <meyering@redhat.com>
8598
8599         maint.mk: use info-gnu@ as the default only for a stable release
8600         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
8601         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
8602         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
8603         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
8604
8605 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8606
8607         assert-h: new module, which supports C1X-style static_assert
8608         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
8609         * lib/verify.h: Revamp so that this can be copied into assert.h,
8610         while retaining the ability to use it standalone as before.
8611         Rename private identifiers so as not to encroach on the
8612         standard C namespace, since this is now used by assert.h.
8613         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
8614         the old verify_true.
8615         (_GL_VERIFY_TRUE): New macro, with much of the contents of
8616         the old verify_true.  Use _GL_VERIFY_TYPE.
8617         (_GL_VERIFY): New macro, with much of the contents of the old verify.
8618         (static_assert): New macro, if _GL_STATIC_ASSERT_H
8619         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
8620         defined when this file is copied into the replacement assert.h.
8621         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
8622         and _Static_assert is not built in.
8623         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
8624         defined, and use the new macros mentioned above.
8625         * doc/posix-headers/assert.texi: Document this.
8626
8627 2011-05-05  Bruno Haible  <bruno@clisp.org>
8628
8629         fclose, fflush: Respect rules for use of AC_LIBOBJ.
8630         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
8631         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
8632         gl_REPLACE_FCLOSE here.
8633         * modules/fflush (Depends-on): Remove fclose.
8634         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
8635         combination with module 'fclose'.
8636
8637 2011-05-05  Bruno Haible  <bruno@clisp.org>
8638
8639         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
8640         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
8641         gl_FUNC_FFLUSH.
8642         (gl_FUNC_FFLUSH): Use it.
8643         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
8644         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
8645         gl_REPLACE_FSEEKO here.
8646
8647 2011-05-05  Bruno Haible  <bruno@clisp.org>
8648
8649         tzset: Relicense under LGPL.
8650         * modules/tzset (License): Change to LGPL.
8651         No agreement needed; it's a no-op.
8652
8653         strtoimax, strtoumax: Relicense under LGPL.
8654         * modules/strtoimax (License): Change to LGPL.
8655         * modules/strtoumax (License): Likewise.
8656         With permission from Jim Meyering, Paul Eggert:
8657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
8658         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
8659
8660         getgroups: Relicense under LGPL.
8661         * modules/getgroups (License): Change to LGPL.
8662         With permission from Jim Meyering, Paul Eggert, Eric Blake:
8663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8664         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8666
8667         nanosleep: Relicense under LGPL.
8668         * modules/nanosleep (License): Change to LGPL.
8669         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
8670         Haible:
8671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8675
8676         futimens: Relicense under LGPL.
8677         * modules/futimens (License): Change to LGPL.
8678         With permission from Eric Blake:
8679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8680
8681         fflush: Relicense under LGPL.
8682         * modules/fflush (License): Change to LGPL.
8683         With permission from Eric Blake, Bruno Haible, Jim Meyering:
8684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
8687
8688         tmpfile: Relicense under LGPL.
8689         * modules/tmpfile (License): Change to LGPL.
8690         With permission from Ben Pfaff:
8691         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8692
8693         isfinite: Relicense under LGPL.
8694         * modules/isfinite (License): Change to LGPL.
8695         With permission from Ben Pfaff, Bruno Haible:
8696         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8697         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
8698
8699         acosl..tanl: Relicense under LGPL.
8700         * modules/acosl (License): Change to LGPL.
8701         * modules/asinl (License): Likewise.
8702         * modules/atanl (License): Likewise.
8703         * modules/cosl (License): Likewise.
8704         * modules/expl (License): Likewise.
8705         * modules/logl (License): Likewise.
8706         * modules/sinl (License): Likewise.
8707         * modules/sqrtl (License): Likewise.
8708         * modules/tanl (License): Likewise.
8709         Source code originally from glibc and Paolo Bonzini. Agreements:
8710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
8711         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
8712
8713 2011-05-05  Bruno Haible  <bruno@clisp.org>
8714
8715         signal: Define sighandler_t.
8716         * lib/signal.in.h (sighandler_t): New type.
8717         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
8718         whether sighandler_t is defined.
8719         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
8720         * modules/signal (Depends-on): Add extensions.
8721         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
8722         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
8723         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
8724
8725 2011-05-05  Eric Blake  <eblake@redhat.com>
8726
8727         maint: remove useless REPLACE_*_H macros
8728         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
8729         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
8730         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
8731         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
8732         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
8733         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
8734         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
8735         * m4/btowc.m4: Update callers.
8736         * m4/dirfd.m4: Likewise.
8737         * m4/duplocale.m4: Likewise.
8738         * m4/fchdir.m4: Likewise.
8739         * m4/fdopendir.m4: Likewise.
8740         * m4/inet_ntop.m4: Likewise.
8741         * m4/inet_pton.m4: Likewise.
8742         * m4/ioctl.m4: Likewise.
8743         * m4/mbrlen.m4: Likewise.
8744         * m4/mbrtowc.m4: Likewise.
8745         * m4/mbsinit.m4: Likewise.
8746         * m4/mbsnrtowcs.m4: Likewise.
8747         * m4/mbsrtowcs.m4: Likewise.
8748         * m4/poll.m4: Likewise.
8749         * m4/setlocale.m4: Likewise.
8750         * m4/wcrtomb.m4: Likewise.
8751         * m4/wcsnrtombs.m4: Likewise.
8752         * m4/wcsrtombs.m4: Likewise.
8753         * m4/wctob.m4: Likewise.
8754         * m4/wcwidth.m4: Likewise.
8755         * modules/posix_spawn: Likewise.
8756         * modules/posix_spawn_file_actions_addclose: Likewise.
8757         * modules/posix_spawn_file_actions_adddup2: Likewise.
8758         * modules/posix_spawn_file_actions_addopen: Likewise.
8759         * modules/posix_spawn_file_actions_destroy: Likewise.
8760         * modules/posix_spawn_file_actions_init: Likewise.
8761         * modules/posix_spawnattr_destroy: Likewise.
8762         * modules/posix_spawnattr_getflags: Likewise.
8763         * modules/posix_spawnattr_getpgroup: Likewise.
8764         * modules/posix_spawnattr_getschedparam: Likewise.
8765         * modules/posix_spawnattr_getschedpolicy: Likewise.
8766         * modules/posix_spawnattr_getsigdefault: Likewise.
8767         * modules/posix_spawnattr_getsigmask: Likewise.
8768         * modules/posix_spawnattr_init: Likewise.
8769         * modules/posix_spawnattr_setflags: Likewise.
8770         * modules/posix_spawnattr_setpgroup: Likewise.
8771         * modules/posix_spawnattr_setschedparam: Likewise.
8772         * modules/posix_spawnattr_setschedpolicy: Likewise.
8773         * modules/posix_spawnattr_setsigdefault: Likewise.
8774         * modules/posix_spawnattr_setsigmask: Likewise.
8775         * modules/posix_spawnp: Likewise.
8776
8777 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
8778
8779         Add option to do-release-commit-and-tag to specify branch.
8780         * build-aux/do-release-commit-and-tag: Add --branch.
8781
8782 2011-05-03  Bruno Haible  <bruno@clisp.org>
8783
8784         Avoid unnecessary compilation units, through conditional dependencies.
8785         * modules/accept (Depends-on): Add conditions to the dependencies.
8786         * modules/acosl (Depends-on): Likewise.
8787         * modules/argz (Depends-on): Likewise.
8788         * modules/asinl (Depends-on): Likewise.
8789         * modules/atanl (Depends-on): Likewise.
8790         * modules/atoll (Depends-on): Likewise.
8791         * modules/bind (Depends-on): Likewise.
8792         * modules/btowc (Depends-on): Likewise.
8793         * modules/canonicalize-lgpl (Depends-on): Likewise.
8794         * modules/ceil (Depends-on): Likewise.
8795         * modules/ceilf (Depends-on): Likewise.
8796         * modules/ceill (Depends-on): Likewise.
8797         * modules/chdir-long (Depends-on): Likewise.
8798         * modules/chown (Depends-on): Likewise.
8799         * modules/close (Depends-on): Likewise.
8800         * modules/connect (Depends-on): Likewise.
8801         * modules/cosl (Depends-on): Likewise.
8802         * modules/dirfd (Depends-on): Likewise.
8803         * modules/dprintf (Depends-on): Likewise.
8804         * modules/dprintf-posix (Depends-on): Likewise.
8805         * modules/error (Depends-on): Likewise.
8806         * modules/euidaccess (Depends-on): Likewise.
8807         * modules/expl (Depends-on): Likewise.
8808         * modules/faccessat (Depends-on): Likewise.
8809         * modules/fchdir (Depends-on): Likewise.
8810         * modules/fclose (Depends-on): Likewise.
8811         * modules/fcntl (Depends-on): Likewise.
8812         * modules/fdopendir (Depends-on): Likewise.
8813         * modules/fflush (Depends-on): Likewise.
8814         * modules/floor (Depends-on): Likewise.
8815         * modules/floorf (Depends-on): Likewise.
8816         * modules/floorl (Depends-on): Likewise.
8817         * modules/fnmatch (Depends-on): Likewise.
8818         * modules/fopen (Depends-on): Likewise.
8819         * modules/fprintf-posix (Depends-on): Likewise.
8820         * modules/frexp (Depends-on): Likewise.
8821         * modules/frexp-nolibm (Depends-on): Likewise.
8822         * modules/frexpl (Depends-on): Likewise.
8823         * modules/frexpl-nolibm (Depends-on): Likewise.
8824         * modules/fseek (Depends-on): Likewise.
8825         * modules/fsusage (Depends-on): Likewise.
8826         * modules/ftell (Depends-on): Likewise.
8827         * modules/ftello (Depends-on): Likewise.
8828         * modules/futimens (Depends-on): Likewise.
8829         * modules/getcwd (Depends-on): Likewise.
8830         * modules/getcwd-lgpl (Depends-on): Likewise.
8831         * modules/getdelim (Depends-on): Likewise.
8832         * modules/getdomainname (Depends-on): Likewise.
8833         * modules/getgroups (Depends-on): Likewise.
8834         * modules/gethostname (Depends-on): Likewise.
8835         * modules/getline (Depends-on): Likewise.
8836         * modules/getlogin_r (Depends-on): Likewise.
8837         * modules/getopt-posix (Depends-on): Likewise.
8838         * modules/getpeername (Depends-on): Likewise.
8839         * modules/getsockname (Depends-on): Likewise.
8840         * modules/getsockopt (Depends-on): Likewise.
8841         * modules/getsubopt (Depends-on): Likewise.
8842         * modules/getusershell (Depends-on): Likewise.
8843         * modules/glob (Depends-on): Likewise.
8844         * modules/grantpt (Depends-on): Likewise.
8845         * modules/iconv_open (Depends-on): Likewise.
8846         * modules/iconv_open-utf (Depends-on): Likewise.
8847         * modules/inet_ntop (Depends-on): Likewise.
8848         * modules/inet_pton (Depends-on): Likewise.
8849         * modules/ioctl (Depends-on): Likewise.
8850         * modules/isapipe (Depends-on): Likewise.
8851         * modules/isfinite (Depends-on): Likewise.
8852         * modules/isinf (Depends-on): Likewise.
8853         * modules/lchown (Depends-on): Likewise.
8854         * modules/ldexpl (Depends-on): Likewise.
8855         * modules/link (Depends-on): Likewise.
8856         * modules/linkat (Depends-on): Likewise.
8857         * modules/listen (Depends-on): Likewise.
8858         * modules/logl (Depends-on): Likewise.
8859         * modules/lstat (Depends-on): Likewise.
8860         * modules/mbrlen (Depends-on): Likewise.
8861         * modules/mbrtowc (Depends-on): Likewise.
8862         * modules/mbsinit (Depends-on): Likewise.
8863         * modules/mbsnrtowcs (Depends-on): Likewise.
8864         * modules/mbsrtowcs (Depends-on): Likewise.
8865         * modules/mbtowc (Depends-on): Likewise.
8866         * modules/memcmp (Depends-on): Likewise.
8867         * modules/mkdir (Depends-on): Likewise.
8868         * modules/mkdtemp (Depends-on): Likewise.
8869         * modules/mkfifo (Depends-on): Likewise.
8870         * modules/mkfifoat (Depends-on): Likewise.
8871         * modules/mknod (Depends-on): Likewise.
8872         * modules/mkostemp (Depends-on): Likewise.
8873         * modules/mkostemps (Depends-on): Likewise.
8874         * modules/mkstemp (Depends-on): Likewise.
8875         * modules/mkstemps (Depends-on): Likewise.
8876         * modules/mktime (Depends-on): Likewise.
8877         * modules/nanosleep (Depends-on): Likewise.
8878         * modules/open (Depends-on): Likewise.
8879         * modules/openat (Depends-on): Likewise.
8880         * modules/perror (Depends-on): Likewise.
8881         * modules/poll (Depends-on): Likewise.
8882         * modules/popen (Depends-on): Likewise.
8883         * modules/posix_spawn (Depends-on): Likewise.
8884         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
8885         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
8886         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
8887         * modules/posix_spawnp (Depends-on): Likewise.
8888         * modules/pread (Depends-on): Likewise.
8889         * modules/printf-posix (Depends-on): Likewise.
8890         * modules/ptsname (Depends-on): Likewise.
8891         * modules/putenv (Depends-on): Likewise.
8892         * modules/pwrite (Depends-on): Likewise.
8893         * modules/readline (Depends-on): Likewise.
8894         * modules/readlink (Depends-on): Likewise.
8895         * modules/readlinkat (Depends-on): Likewise.
8896         * modules/recv (Depends-on): Likewise.
8897         * modules/recvfrom (Depends-on): Likewise.
8898         * modules/regex (Depends-on): Likewise.
8899         * modules/remove (Depends-on): Likewise.
8900         * modules/rename (Depends-on): Likewise.
8901         * modules/renameat (Depends-on): Likewise.
8902         * modules/rmdir (Depends-on): Likewise.
8903         * modules/round (Depends-on): Likewise.
8904         * modules/roundf (Depends-on): Likewise.
8905         * modules/roundl (Depends-on): Likewise.
8906         * modules/rpmatch (Depends-on): Likewise.
8907         * modules/select (Depends-on): Likewise.
8908         * modules/send (Depends-on): Likewise.
8909         * modules/sendto (Depends-on): Likewise.
8910         * modules/setenv (Depends-on): Likewise.
8911         * modules/setlocale (Depends-on): Likewise.
8912         * modules/setsockopt (Depends-on): Likewise.
8913         * modules/shutdown (Depends-on): Likewise.
8914         * modules/sigaction (Depends-on): Likewise.
8915         * modules/signbit (Depends-on): Likewise.
8916         * modules/sigprocmask (Depends-on): Likewise.
8917         * modules/sinl (Depends-on): Likewise.
8918         * modules/sleep (Depends-on): Likewise.
8919         * modules/snprintf (Depends-on): Likewise.
8920         * modules/snprintf-posix (Depends-on): Likewise.
8921         * modules/socket (Depends-on): Likewise.
8922         * modules/sprintf-posix (Depends-on): Likewise.
8923         * modules/sqrtl (Depends-on): Likewise.
8924         * modules/stat (Depends-on): Likewise.
8925         * modules/strchrnul (Depends-on): Likewise.
8926         * modules/strdup-posix (Depends-on): Likewise.
8927         * modules/strerror (Depends-on): Likewise.
8928         * modules/strerror_r-posix (Depends-on): Likewise.
8929         * modules/strndup (Depends-on): Likewise.
8930         * modules/strnlen (Depends-on): Likewise.
8931         * modules/strptime (Depends-on): Likewise.
8932         * modules/strsep (Depends-on): Likewise.
8933         * modules/strsignal (Depends-on): Likewise.
8934         * modules/strstr-simple (Depends-on): Likewise.
8935         * modules/strtod (Depends-on): Likewise.
8936         * modules/strtoimax (Depends-on): Likewise.
8937         * modules/strtok_r (Depends-on): Likewise.
8938         * modules/strtoumax (Depends-on): Likewise.
8939         * modules/symlink (Depends-on): Likewise.
8940         * modules/symlinkat (Depends-on): Likewise.
8941         * modules/tanl (Depends-on): Likewise.
8942         * modules/tcgetsid (Depends-on): Likewise.
8943         * modules/tmpfile (Depends-on): Likewise.
8944         * modules/trunc (Depends-on): Likewise.
8945         * modules/truncf (Depends-on): Likewise.
8946         * modules/truncl (Depends-on): Likewise.
8947         * modules/uname (Depends-on): Likewise.
8948         * modules/unlink (Depends-on): Likewise.
8949         * modules/unlockpt (Depends-on): Likewise.
8950         * modules/unsetenv (Depends-on): Likewise.
8951         * modules/usleep (Depends-on): Likewise.
8952         * modules/utimensat (Depends-on): Likewise.
8953         * modules/vasprintf (Depends-on): Likewise.
8954         * modules/vdprintf (Depends-on): Likewise.
8955         * modules/vdprintf-posix (Depends-on): Likewise.
8956         * modules/vfprintf-posix (Depends-on): Likewise.
8957         * modules/vprintf-posix (Depends-on): Likewise.
8958         * modules/vsnprintf (Depends-on): Likewise.
8959         * modules/vsnprintf-posix (Depends-on): Likewise.
8960         * modules/vsprintf-posix (Depends-on): Likewise.
8961         * modules/wcrtomb (Depends-on): Likewise.
8962         * modules/wcscasecmp (Depends-on): Likewise.
8963         * modules/wcscspn (Depends-on): Likewise.
8964         * modules/wcsdup (Depends-on): Likewise.
8965         * modules/wcsncasecmp (Depends-on): Likewise.
8966         * modules/wcsnrtombs (Depends-on): Likewise.
8967         * modules/wcspbrk (Depends-on): Likewise.
8968         * modules/wcsrtombs (Depends-on): Likewise.
8969         * modules/wcsspn (Depends-on): Likewise.
8970         * modules/wcsstr (Depends-on): Likewise.
8971         * modules/wcstok (Depends-on): Likewise.
8972         * modules/wcswidth (Depends-on): Likewise.
8973         * modules/wctob (Depends-on): Likewise.
8974         * modules/wctomb (Depends-on): Likewise.
8975         * modules/wctype (Depends-on): Likewise.
8976         * modules/wcwidth (Depends-on): Likewise.
8977         * modules/write (Depends-on): Likewise.
8978
8979 2011-05-03  Bruno Haible  <bruno@clisp.org>
8980
8981         Support for conditional dependencies.
8982         * doc/gnulib.texi (Module description): Document the syntax of
8983         conditional dependencies.
8984         * gnulib-tool: New option --conditional-dependencies.
8985         (func_usage): Document it.
8986         (cond_dependencies): New variable.
8987         (func_get_automake_snippet_conditional,
8988         func_get_automake_snippet_unconditional): New functions, extracted from
8989         func_get_automake_snippet.
8990         (func_get_automake_snippet): Use them.
8991         (sed_first_32_chars): New variable.
8992         (func_module_shellfunc_name): New function.
8993         (func_module_shellvar_name): New function.
8994         (func_module_conditional_name): New function.
8995         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8996         func_cond_module_condition): New functions.
8997         (func_modules_transitive_closure): Add support for conditional
8998         dependencies.
8999         (func_emit_lib_Makefile_am): For a conditional module, enclose the
9000         conditional automake snippet in an automake conditional.
9001         (func_emit_autoconf_snippets): Emit shell functions that contain the
9002         code for conditional modules.
9003         (func_import, func_create_testdir): Update specification.
9004
9005 2011-05-03  Eric Blake  <eblake@redhat.com>
9006
9007         test-getaddrinfo: report error information
9008         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
9009
9010 2011-05-03  Jim Meyering  <meyering@redhat.com>
9011
9012         bootstrap: avoid build failure when $GZIP is set
9013         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
9014         program name.  If defined at all, it is supposed to list gzip options.
9015         Reported by Alan Curry in http://debbugs.gnu.org/8609
9016
9017 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
9018
9019         readme-release: new module with release instructions
9020         * modules/readme-release: New module.
9021         * top/README-release: New file, from coreutils, grep, diffutils.
9022         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9023
9024 2011-05-02  Eric Blake  <eblake@redhat.com>
9025
9026         fflush: also replace fclose when fixing fflush
9027         * modules/fflush (Depends-on): Add fclose.
9028         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
9029         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
9030         memstreams with no backing fd.
9031         * doc/posix-functions/fclose.texi (fclose): Document the use of
9032         fflush module to fix the bug.
9033         * tests/test-fclose.c (main): Relax test when fclose is used in
9034         isolation.
9035
9036         fclose: add some tests
9037         * modules/fclose-tests: New test module.
9038         * tests/test-fclose.c: New file.
9039         * doc/posix-functions/fclose.texi (fclose): Document the bug.
9040
9041         fclose: reduced dependencies
9042         * modules/fclose (Depends-on): Switch from fflush/fseeko to
9043         simpler lseek.
9044         * lib/fclose.c (rpl_fclose): Likewise.
9045         Reported by Simon Josefsson.
9046
9047         exit: drop remaining clients
9048         * modules/argmatch (Depends-on): Replace exit with stdlib.
9049         * modules/copy-file (Depends-on): Likewise.
9050         * modules/execute (Depends-on): Likewise.
9051         * modules/exitfail (Depends-on): Likewise.
9052         * modules/obstack (Depends-on): Likewise.
9053         * modules/pagealign_alloc (Depends-on): Likewise.
9054         * modules/pipe-filter-gi (Depends-on): Likewise.
9055         * modules/pipe-filter-ii (Depends-on): Likewise.
9056         * modules/savewd (Depends-on): Likewise.
9057         * modules/spawn-pipe (Depends-on): Likewise.
9058         * modules/wait-process (Depends-on): Likewise.
9059         * modules/xsetenv (Depends-on): Likewise.
9060         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
9061         * modules/git-merge-changelog (Depends-on): Likewise.
9062         * modules/long-options (Depends-on): Likewise.
9063         * modules/pt_chown (Depends-on): Likewise.
9064         * modules/sysexits (Depends-on): Likewise.
9065
9066         freading: relax license from LGPLv3+ to LGPLv2+
9067         * modules/freading (License): Relax LGPL version.
9068
9069 2011-05-02  Bruno Haible  <bruno@clisp.org>
9070
9071         fchdir: Remove unused dependencies.
9072         * modules/fchdir (Depends-on): Remove include_next.
9073
9074 2011-05-02  Bruno Haible  <bruno@clisp.org>
9075
9076         gnulib-tool: Refactor.
9077         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
9078         from func_emit_autoconf_snippets.
9079         (func_emit_autoconf_snippets): Use it.
9080
9081 2011-05-02  Simon Josefsson  <simon@josefsson.org>
9082
9083         * NEWS: Document removal of 'exit'.
9084         * modules/exit: Remove file.
9085
9086 2011-05-01  Bruno Haible  <bruno@clisp.org>
9087
9088         Update DEPENDENCIES.
9089         * DEPENDENCIES (gettext): Recommend the newest release.
9090         Reported by Simon Josefsson.
9091
9092 2011-05-01  Bruno Haible  <bruno@clisp.org>
9093
9094         gnulib-tool: Reduce code duplication.
9095         * gnulib-tool (func_emit_autoconf_snippets): New function.
9096         (func_import, func_create_testdir): Use it.
9097
9098 2011-04-30  Eric Blake  <eblake@redhat.com>
9099
9100         fclose: don't fail on non-seekable input stream
9101         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
9102         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
9103         since fflush is allowed to fail in that case.
9104
9105 2011-04-30  Bruno Haible  <bruno@clisp.org>
9106
9107         dup3: cleanup
9108         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
9109
9110 2011-04-30  Bruno Haible  <bruno@clisp.org>
9111
9112         netdb: Make it work in C++ mode.
9113         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
9114         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
9115         module.
9116         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
9117         gl_MODULE_INDICATOR_FOR_TESTS.
9118         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
9119         * modules/netdb-c++-tests: New file.
9120         * tests/test-netdb-c++.cc: New file.
9121
9122 2011-04-30  Bruno Haible  <bruno@clisp.org>
9123
9124         New modules 'vfscanf', 'vscanf'.
9125         * modules/vfscanf: New file.
9126         * modules/vscanf: New file.
9127         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
9128         here.
9129         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
9130         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
9131
9132 2011-04-30  Bruno Haible  <bruno@clisp.org>
9133
9134         passfd: Add comments.
9135         * lib/passfd.c: Add comments about platforms.
9136
9137 2011-04-30  Bruno Haible  <bruno@clisp.org>
9138
9139         sys_uio: Make <sys/uio.h> self-contained.
9140         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
9141         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
9142
9143 2011-04-30  Bruno Haible  <bruno@clisp.org>
9144
9145         sys_socket: Ensure 'struct iovec' definition.
9146         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
9147         <sys/socket.h>.
9148         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
9149
9150 2011-04-30  Bruno Haible  <bruno@clisp.org>
9151
9152         sys_uio: Protect definition of 'struct iovec'.
9153         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
9154         it as a C struct.
9155
9156 2011-04-30  Bruno Haible  <bruno@clisp.org>
9157
9158         manywarnings: fix indentation
9159         * m4/manywarnings.m4: Indent by 2 spaces consistently.
9160
9161 2011-04-30  Pádraig Brady <P@draigBrady.com>
9162
9163         manywarnings: add -Wno-missing-field-initializers if needed.
9164         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
9165         option if it's needed to allow initialization with { 0, }
9166
9167 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
9168
9169         announce-gen: cosmetic improvement
9170         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
9171
9172 2011-04-29  Jim Meyering  <meyering@redhat.com>
9173
9174         vc-list-files: indent with spaces, not TABs
9175         * build-aux/vc-list-files: Convert leading TABs to spaces,
9176         to match the style of most other files in gnulib.
9177
9178         announce-gen: indent with spaces, not TABs
9179         * build-aux/announce-gen: Convert all TABs to spaces, to match
9180         the style of most other files in gnulib.
9181
9182 2011-04-29  Eric Blake  <eblake@redhat.com>
9183
9184         quotearg: avoid uninitialized variable use
9185         * lib/quotearg.c (quoting_options_from_style): Initialize
9186         remaining fields, and ensure that custom styles are only used via
9187         quoting_options rather than quoting_style.
9188
9189 2011-04-29  Jim Meyering  <meyering@redhat.com>
9190
9191         maint.mk: remove unused VC-tag variable
9192         * top/maint.mk (VC-tag): Remove unused variable.
9193
9194 2011-04-29  Bruno Haible  <bruno@clisp.org>
9195
9196         netdb: fix gai_strerror replacements
9197         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
9198         * modules/netdb: Substitute it.
9199
9200 2011-04-29  Jim Meyering  <meyering@redhat.com>
9201
9202         test-getcwd.c: avoid new set-but-not-used warning
9203         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
9204         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
9205         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
9206         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
9207
9208         test-hash.c: avoid a new shadowing warning
9209         * tests/test-hash.c (main): Don't shadow "dup".
9210
9211 2011-04-28  Eric Blake  <eblake@redhat.com>
9212
9213         getaddrinfo: fix gai_strerror signature
9214         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
9215         and work around mingw with UNICODE defined.
9216         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
9217         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
9218         * modules/netdb (Makefile.am): Substitute it.
9219         * lib/netdb.in.h (gai_strerror): Declare replacement.
9220         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
9221         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
9222         the fix.
9223
9224         getsockopt: avoid compiler warning
9225         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
9226         Reported by Matthias Bolte.
9227
9228         tests: drop unused link dependency
9229         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
9230         * modules/dirent-safer-tests (Makefile.am): Likewise.
9231         * modules/fdopendir-tests (Makefile.am): Likewise.
9232         * modules/mkfifoat-tests (Makefile.am): Likewise.
9233         * modules/openat-safer-tests (Makefile.am): Likewise.
9234         * modules/openat-tests (Makefile.am): Likewise.
9235         * modules/readlinkat-tests (Makefile.am): Likewise.
9236         * modules/symlinkat-tests (Makefile.am): Likewise.
9237         * modules/linkat-tests (Makefile.am): Likewise.
9238         (Depends-on): Switch to filenamecat-lgpl.
9239         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
9240         LIBINTL.
9241         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
9242         * tests/test-linkat.c (main): Don't require xalloc.
9243
9244         hash, mgetgroups: drop xalloc dependency
9245         * lib/hash.c (includes): Adjust includes.
9246         * lib/mgetgroups.c (includes): Likewise.
9247         (xgetgroups): Move...
9248         * lib/xgetgroups.c: ...to new file.
9249         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
9250         * modules/xgetgroups: New file, split from...
9251         * modules/mgetgroups: ...here.
9252         (Depends-on): Add xalloc-oversized.
9253         * modules/hash (Depends-on): Likewise.
9254         * modules/hash-tests (Depends-on): Drop xalloc.
9255         (test_hash_LDADD): Drop unused library.
9256         * tests/test-hash.c (main): Break xalloc dependency.
9257         (includes): Drop unused include.
9258
9259         xalloc-oversized: new module
9260         * modules/xalloc-oversized: New module.
9261         * modules/xalloc (Depends-on): Add it.
9262         * lib/xalloc.h (xalloc_oversized): Move...
9263         * lib/xalloc-oversized.h: ...into new file.
9264
9265         utimecmp: drop dependency on xmalloc
9266         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
9267         due to memory pressure.
9268         * modules/utimecmp (Depends-on): Drop xalloc.
9269
9270 2011-04-27  Eric Blake  <eblake@redhat.com>
9271
9272         getcwd: fix mingw bugs
9273         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
9274         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
9275         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
9276
9277 2011-04-27  Bruno Haible  <bruno@clisp.org>
9278
9279         mkstemps: Ensure declaration on MacOS X 10.5.
9280         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
9281         * doc/glibc-functions/mkstemps.texi: Document header file problem on
9282         MacOS X.
9283
9284 2011-04-27  Bruno Haible  <bruno@clisp.org>
9285
9286         mkstemp: More documentation.
9287         * doc/posix-functions/mkstemp.texi: Document header file problem on
9288         MacOS X.
9289
9290 2011-04-27  Bruno Haible  <bruno@clisp.org>
9291
9292         mkstemp: Tweak configure message when cross-compiling.
9293         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
9294         result as a guess.
9295
9296 2011-04-27  Bruno Haible  <bruno@clisp.org>
9297
9298         clean-temp: Clarify what it does.
9299         * lib/clean-temp.h: Add more comments.
9300         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
9301         module.
9302         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
9303         * doc/glibc-functions/mkstemps.texi: Likewise.
9304         * doc/glibc-functions/mkostemps.texi: Likewise.
9305
9306 2011-04-27  Eric Blake  <eblake@redhat.com>
9307
9308         fchdir: avoid extra chdir and fix test
9309         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
9310         getcwd-lgpl.
9311         * lib/fchdir.c (get_name): Any absolute name will do; it does not
9312         have to be canonical.
9313         (canonicalize_file_name): Drop unused macro.
9314         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
9315
9316         filenamecat-lgpl: fix licence
9317         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
9318         when it was first created.
9319
9320         linkat, renameat: add missing dependency
9321         * modules/linkat (Depends-on): Require getcwd-lgpl.
9322         * modules/renameat (Depends-on): Likewise.
9323
9324         tests: reduce dependencies
9325         * tests/test-linkat.c (main): Use lighter-weight getcwd.
9326         * tests/test-renameat.c (main): Likewise.
9327         * modules/linkat-tests (Depends-on): Relax dependency.
9328         * modules/renameat-tests (Depends-on): Likewise.
9329         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
9330         dependency explicit.
9331
9332         save-cwd: reduce default dependency
9333         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
9334         * lib/save-cwd.c: Update comments.
9335         * NEWS: Document the semantic change.
9336
9337         getcwd: enhance tests
9338         * tests/test-getcwd-lgpl.c: New file, taken from...
9339         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
9340         repeat long path stress tests from m4 probe.
9341         * modules/getcwd-lgpl-tests: New module.
9342         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
9343         * m4/getcwd-abort-bug.m4: Update comment.
9344         * m4/getcwd-path-max.m4: Likewise.
9345
9346         getcwd-lgpl: new module
9347         * modules/getcwd-lgpl: New module.
9348         * lib/getcwd-lgpl.c: New file.
9349         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9350         * MODULES.html.sh (lacking POSIX:2008): Likewise.
9351         * modules/getcwd (configure.ac): Set C witness.
9352         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
9353
9354         getcwd: tweak comments
9355         * m4/getcwd-abort-bug.m4: Fix comments.
9356         * m4/getcwd-path-max.m4: Likewise.
9357         * m4/getcwd.m4: Likewise.
9358
9359 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
9360         and Eric Blake  <eblake@redhat.com>
9361
9362         mkstemp: replace if system version uses wrong permissions
9363         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
9364         read/write mode bits set in file created by mkstemp.
9365         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
9366
9367 2011-04-27  Eric Blake  <eblake@redhat.com>
9368
9369         passfd: avoid compiler warning
9370         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
9371         Reported by Laine Stump.
9372
9373 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
9374
9375         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
9376         required by the NetBSD (and perhaps other 4.4BSD derived) join.
9377
9378 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
9379         and Eric Blake  <eblake@redhat.com>
9380
9381         mkstemp: mention clean-temp module
9382         * lib/mkstemp.c: Add comment.
9383         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
9384
9385 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
9386
9387         inttypes: also provide default values for 32-bit tests
9388         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
9389         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
9390
9391 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
9392
9393         strtoumax: remove dependency on strtoimax
9394         This is like the strtoull change of yesterday.
9395         * modules/strtoumax (Files): Add lib/strtoimax.c.
9396         (Depends-on): Remove strtoimax and add verify.
9397
9398         inttypes-incomplete: new module
9399         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
9400         all but the PRI* and SCN* parts of gl_INTTYPES_H.
9401         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
9402         of gl_INTTYPES_H.
9403         (gl_INTTYPES_H): Rewrite in terms of these new macros.
9404         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
9405         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
9406         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
9407         * modules/strtoumax, modules/xstrtol (Depends-on):
9408         Depend on inttypes-incomplete, not inttypes.
9409         * modules/inttypes-incomplete: New module, containing the contents
9410         of the old modules/inttypes module, except that the Files: section
9411         omits m4/inttypes-pri.m4, and the configure.ac section invokes
9412         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
9413         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
9414         (Depends-on): Depend only on inttypes-incomplete.
9415         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
9416
9417         inttypes: omit now-redundant strtoimax and strtoumax work
9418         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
9419         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
9420
9421         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
9422         This supports apps that need pointers to strtoimax and strtoumax,
9423         and ports to HP-UX 11.00 64.bit, which has macros that expand to
9424         nonexistent functions.  See
9425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
9426         et seq.
9427         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
9428         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
9429         a macro.
9430         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9431
9432 2011-04-25  Simon Josefsson  <simon@josefsson.org>
9433
9434         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
9435
9436 2011-04-25  Bruno Haible  <bruno@clisp.org>
9437
9438         strtol, strtoul: Mark modules as obsolete.
9439         * modules/strtol (Status, Notice): New sections.
9440         * modules/strtoul (Status, Notice): New sections.
9441
9442 2011-04-25  Bruno Haible  <bruno@clisp.org>
9443
9444         strtod: Remove check for strtod, unless supporting old platforms.
9445         * modules/strtod-obsolete: New file.
9446         * m4/strtod-obsolete.m4: New file.
9447         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
9448         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
9449         * modules/strtod (Depends-on): Add strtod-obsolete.
9450         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
9451
9452 2011-04-25  Bruno Haible  <bruno@clisp.org>
9453
9454         strcase: Make module obsolete.
9455         * modules/strcase (Status, Notice): New sections.
9456
9457 2011-04-25  Bruno Haible  <bruno@clisp.org>
9458
9459         dup2: Remove check for dup2, unless supporting old obsolete platforms.
9460         * modules/dup2-obsolete: New file.
9461         * m4/dup2-obsolete.m4: New file.
9462         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
9463         gl_FUNC_DUP2_OBSOLETE is not also defined.
9464         * modules/dup2 (Depends-on): Add dup2-obsolete.
9465         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
9466
9467 2011-04-25  Bruno Haible  <bruno@clisp.org>
9468
9469         strnlen: Avoid memchr related link error on old obsolete platforms.
9470         * modules/memchr-obsolete: New file.
9471         * m4/memchr-obsolete.m4: New file.
9472         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
9473         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
9474         * modules/memchr (Depends-on): Add memchr-obsolete.
9475         * modules/strnlen (Depends-on): Likewise.
9476         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
9477
9478 2011-04-25  Jim Meyering  <meyering@redhat.com>
9479
9480         maint.mk: makefile_at_at_check extend and clean up
9481         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
9482         in addition to */Makefile.am.
9483         Exempt legitimate uses of @VAR@ notation, e.g.,
9484         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
9485         Remove obsolete coreutils-specific comment.
9486         Prompted by discussion here:
9487         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
9488
9489 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
9490
9491         strtoul: remove dependency on strtol
9492         This is so that 'configure' need not check for strtol merely because
9493         the application needs strtoul.
9494         * modules/strtoul (Files): Add lib/strtol.c.
9495         (Depends-on): Remove strtol.
9496
9497         strtoull: remove dependency on strtoul
9498         This is like the strtoll change.
9499         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
9500         (Depends-on): Remove strtoul.
9501
9502         strtoll: remove dependency on strtol
9503         This is so that 'configure' need not check for strtol merely because
9504         the application needs strtoll.
9505         * modules/strtoll (Files): Add lib/strtol.c.
9506         (Depends-on): Remove strtol.
9507
9508 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9509
9510         inttypes: Move some configure check to module 'imaxdiv'.
9511         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
9512         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
9513         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
9514
9515 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9516
9517         inttypes: Move some configure check to module 'imaxabs'.
9518         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
9519         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
9520         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
9521
9522 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9523
9524         inttypes: Remove configure tests that are not needed since 2009-12-31.
9525         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
9526         gl_cv_header_working_inttypes_h.
9527
9528 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9529
9530         * modules/strnlen (Depends-on): Remove memchr.
9531         The strnlen implementation doesn't need the memchr module's fixes; see
9532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
9533
9534         strtol: remove dependency on wchar
9535         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
9536         * modules/strtol (Depends-on): Remove wchar.
9537
9538 2011-04-21  Eric Blake  <eblake@redhat.com>
9539
9540         passfd: fix test regression on Linux
9541         * modules/passfd-tests (configure.ac): Correct socketpair check.
9542
9543         passfd: speed up configure and drop unused code
9544         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
9545         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
9546         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
9547         Instead of probing at configure for unix_scm_rights_bsd44_way,
9548         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
9549         check to a struct member probe.
9550         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
9551         (sendfd, recvfd): Update preprocessor checks.
9552         * modules/passfd (Files): Reflect rename, and drop unused file.
9553         (Depends-on): Drop unused dependency.
9554
9555         passfd: allow compilation on mingw
9556         * modules/sys_socket (Depends-on): Add sys_uio.
9557         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
9558         iovec and a minimal struct msghdr.
9559         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
9560         * tests/test-sys_socket.c (main): Enhance test.
9561         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
9562         guaranteed to provide what we need.
9563         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
9564         * modules/passfd-tests (Depends-on): Add sys_wait.
9565         * tests/test-passfd.c (main): Skip test on mingw, for now.
9566         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
9567         partial 'struct msghdr' implementation.
9568
9569         sys_uio: new module
9570         * modules/sys_uio: New module.
9571         * modules/sys_uio-tests: Likewise.
9572         * lib/sys_uio.in.h: New file.
9573         * m4/sys_uio_h.m4: Likewise.
9574         * tests/test-sys_uio.c: Likewise.
9575         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
9576         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
9577
9578 2011-04-20  Jim Meyering  <meyering@redhat.com>
9579
9580         useless-if-before-free: avoid false-positive
9581         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
9582         disjunct so that it too requires a terminating ";".  Without that,
9583         this script would identify as useless one statement from gcc that
9584         was not:
9585           if (aligned_ptr)
9586             free (((void **) aligned_ptr) [-1]);
9587
9588 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
9589
9590         doc: update users.txt.
9591         * users.txt: Add barcode.
9592
9593 2011-04-19  Bruno Haible  <bruno@clisp.org>
9594
9595         ioctl: Remove link dependency on native Windows.
9596         * lib/fd-hook.h: Renamed from lib/close-hook.h.
9597         (gl_close_fn, gl_ioctl_fn): New types.
9598         (struct fd_hook): Renamed from struct close_hook. Change type of
9599         private_close_fn field. Add private_ioctl_fn field.
9600         (close_hook_fn): Add parameter for primary close method.
9601         (execute_close_hooks, execute_all_close_hooks): Likewise.
9602         (ioctl_hook_fn): New type.
9603         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
9604         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9605         argument.
9606         (unregister_fd_hook): Renamed from unregister_close_hook.
9607         * lib/fd-hook.c: Renamed from lib/close-hook.c.
9608         Don't include <unistd.h>.
9609         (close): Remove undef.
9610         (anchor): Update.
9611         (execute_close_hooks): Add argument for primary close method.
9612         (execute_all_close_hooks): Likewise.
9613         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
9614         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9615         argument. Allow each argument to be NULL.
9616         (unregister_fd_hook): Renamed from unregister_close_hook.
9617         * lib/close.c (rpl_close): Pass 'close' function pointer to
9618         execute_all_close_hooks.
9619         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
9620         (primary_ioctl): New function.
9621         (ioctl): Don't call ioctlsocket here. Instead, call
9622         execute_all_ioctl_hooks.
9623         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
9624         close method.
9625         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
9626         (fd_sockets_hook): Renamed from close_sockets_hook.
9627         (gl_sockets_startup, gl_sockets_cleanup): Update.
9628         * modules/fd-hook: Renamed from modules/close-hook. Update.
9629         * modules/close (Depends-on): Add fd-hook, remove close-hook.
9630         * modules/sockets (Depends-on): Likewise.
9631         * modules/ioctl (Depends-on): Add fd-hook.
9632         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
9633         GNULIB_SOCKET.
9634
9635 2011-04-19  Bruno Haible  <bruno@clisp.org>
9636
9637         Move the support of O_NONBLOCK in open() to the 'open' module.
9638         * modules/nonblocking (Depends-on): Remove 'open'.
9639         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
9640         gl_cv_have_open_O_NONBLOCK.
9641         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
9642         O_NONBLOCK support.
9643         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
9644
9645 2011-04-17  Bruno Haible  <bruno@clisp.org>
9646
9647         pipe2: Simplify code.
9648         * lib/pipe2.c (pipe2): Reduce code duplication.
9649
9650 2011-04-17  Bruno Haible  <bruno@clisp.org>
9651
9652         nonblocking: Add comment.
9653         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
9654
9655 2011-04-17  Bruno Haible  <bruno@clisp.org>
9656
9657         nonblocking: Add tests for sockets.
9658         * tests/test-nonblocking-socket.sh: New file.
9659         * tests/test-nonblocking-socket-main.c: New file.
9660         * tests/test-nonblocking-socket-child.c: New file.
9661         * tests/test-nonblocking-socket.h: New file.
9662         * tests/socket-server.h: New file.
9663         * tests/socket-client.h: New file.
9664         * modules/nonblocking-socket-tests: New file.
9665         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
9666
9667 2011-04-17  Bruno Haible  <bruno@clisp.org>
9668
9669         nonblocking: Add tests for pipes.
9670         * tests/test-nonblocking-pipe.sh: New file.
9671         * tests/test-nonblocking-pipe-main.c: New file.
9672         * tests/test-nonblocking-pipe-child.c: New file.
9673         * tests/test-nonblocking-pipe.h: New file.
9674         * tests/test-nonblocking-writer.h: New file.
9675         * tests/test-nonblocking-reader.h: New file.
9676         * tests/test-nonblocking-misc.h: New file.
9677         * modules/nonblocking-pipe-tests: New file.
9678         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
9679
9680 2011-04-16  Bruno Haible  <bruno@clisp.org>
9681
9682         gettext: Clarify the needed programmer actions.
9683         * modules/gettext (Notice): New field.
9684         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
9685
9686 2011-04-16  Bruno Haible  <bruno@clisp.org>
9687
9688         strchrnul: Tweak last commit.
9689         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
9690         bug.
9691         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
9692         as in _GL_FUNCDECL_SYS.
9693         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
9694         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
9695
9696 2011-04-15  Eric Blake  <eblake@redhat.com>
9697
9698         strchrnul: work around cygwin bug
9699         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
9700         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
9701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
9702         * modules/string (Makefile.am): Substitute it.
9703         * lib/string.in.h (strchrnul): Use it.
9704
9705 2011-04-15  Bruno Haible  <bruno@clisp.org>
9706
9707         Don't require lib/stdio-write.c when only module 'stdio' is used.
9708         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
9709         invocation.
9710         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
9711
9712 2011-04-14  Bruno Haible  <bruno@clisp.org>
9713
9714         Support non-blocking pipe I/O in read() on native Windows.
9715         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
9716         (read): New declaration.
9717         * lib/read.c: New file.
9718         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
9719         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
9720         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
9721         vscanf): New declarations.
9722         * lib/stdio-read.c: New file.
9723         * m4/read.m4: New file.
9724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
9725         REPLACE_READ.
9726         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
9727         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9728         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
9729         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
9730         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
9731         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9732         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9733         * modules/read: New file.
9734         * modules/nonblocking (Files): Add lib/stdio-read.c.
9735         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
9736         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
9737         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9738         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9739         * modules/pread (Depends-on): Add read.
9740         * modules/safe-read (Depends-on): Likewise.
9741         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
9742         gets, scanf, vfscanf, vscanf): Verify signatures.
9743         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
9744         problem with non-blocking pipes.
9745         * doc/posix-functions/fgetc.texi: Likewise.
9746         * doc/posix-functions/fgets.texi: Likewise.
9747         * doc/posix-functions/fread.texi: Likewise.
9748         * doc/posix-functions/fscanf.texi: Likewise.
9749         * doc/posix-functions/getc.texi: Likewise.
9750         * doc/posix-functions/getchar.texi: Likewise.
9751         * doc/posix-functions/gets.texi: Likewise.
9752         * doc/posix-functions/scanf.texi: Likewise.
9753         * doc/posix-functions/vfscanf.texi: Likewise.
9754         * doc/posix-functions/vscanf.texi: Likewise.
9755
9756 2011-04-14  Bruno Haible  <bruno@clisp.org>
9757
9758         Support non-blocking pipe I/O in write() on native Windows.
9759         * lib/write.c (rpl_write): Split a write request that failed merely
9760         because the byte count was larger than the pipe buffer's size.
9761         * doc/posix-functions/write.texi: Mention the problem with large byte
9762         counts.
9763
9764 2011-04-14  Bruno Haible  <bruno@clisp.org>
9765
9766         wchar: Ensure that wchar_t gets defined on uClibc.
9767         * lib/wchar.in.h: On uClibc, include <stddef.h>.
9768         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
9769
9770 2011-04-13  Bruno Haible  <bruno@clisp.org>
9771
9772         safe-write, full-read: Avoid unnecessary compilation units.
9773         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
9774         (Depends-on): Remove safe-read. Add ssize_t.
9775         * modules/full-read (Files): Add lib/full-write.c.
9776         (Depends-on): Add full-write.
9777
9778 2011-04-13  Bruno Haible  <bruno@clisp.org>
9779
9780         Support non-blocking pipe I/O and SIGPIPE in pwrite().
9781         * modules/pwrite (Depends-on): Add 'write'.
9782
9783 2011-04-13  Bruno Haible  <bruno@clisp.org>
9784
9785         Support non-blocking pipe I/O in write() on native Windows.
9786         * lib/unistd.in.h (write): Enable replacement also if
9787         GNULIB_UNISTD_H_NONBLOCKING is 1.
9788         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
9789         (rpl_write): When failing to write on a non-blocking pipe, change
9790         errno from ENOSPC to EAGAIN.
9791         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
9792         putchar, puts, vfprintf, vprintf): Enable replacement also if
9793         GNULIB_STDIO_H_NONBLOCKING is 1.
9794         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
9795         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
9796         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
9797         CALL_WITH_SIGPIPE_EMULATION.
9798         (CALL_WITH_SIGPIPE_EMULATION): Use them.
9799         * m4/nonblocking.m4: New file.
9800         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
9801         for non-blocking I/O support.
9802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9803         GNULIB_UNISTD_H_NONBLOCKING.
9804         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
9805         required for non-blocking I/O support.
9806         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
9807         * modules/nonblocking (Files): Add m4/nonblocking.m4,
9808         lib/stdio-write.c, m4/asm-underscore.m4.
9809         (Depends-on): Add stdio, unistd.
9810         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
9811         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
9812         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
9813         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
9814         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
9815         problem with non-blocking pipes.
9816         * doc/posix-functions/fputc.texi: Likewise.
9817         * doc/posix-functions/fputs.texi: Likewise.
9818         * doc/posix-functions/fwrite.texi: Likewise.
9819         * doc/posix-functions/printf.texi: Likewise.
9820         * doc/posix-functions/putc.texi: Likewise.
9821         * doc/posix-functions/putchar.texi: Likewise.
9822         * doc/posix-functions/puts.texi: Likewise.
9823         * doc/posix-functions/vfprintf.texi: Likewise.
9824         * doc/posix-functions/vprintf.texi: Likewise.
9825         * doc/posix-functions/write.texi: Likewise.
9826
9827 2011-04-10  Jim Meyering  <meyering@redhat.com>
9828
9829         maint.mk: prohibit doubled words
9830         Detect them also when they're separated by a newline.
9831         There are 3 ways to customize it:
9832           - disable the test on a per file basis, as usual with rules using
9833             $(VC_LIST_EXCEPT)
9834           - replace the default doubled-word-selecting regexp (affects all files)
9835           - ignore a particular file-vs-doubled-word match
9836         I nearly used that last one to ignore the "is is" match in
9837         coreutils' NEWS file, since the text was "ls -is is ..."
9838         To do that, I would have added this line to cfg.mk:
9839           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
9840         but it would have ignored any "is is" match in NEWS.
9841         Low probability, but still...
9842         Instead, I changed the text, slightly:
9843           -  ls -is is now consistent with ls -lis in ignoring values returned
9844           +  "ls -is" is now consistent with ls -lis in ignoring values returned
9845         * top/maint.mk (prohibit_double_word_RE_): Provide default.
9846         (prohibit_doubled_word_): Define.
9847         (sc_prohibit_doubled_word): New rule.
9848         (sc_prohibit_the_the): Remove.  Subsumed by the above.
9849
9850 2011-04-10  Jim Meyering  <meyering@redhat.com>
9851
9852         maint: fix doubled-word typo in comment
9853         * m4/gethostname.m4: s/is is/it is/
9854         * m4/getdomainname.m4: Likewise.
9855
9856 2011-04-10  Jim Meyering  <meyering@redhat.com>
9857
9858         maint: remove doubled word: s/it it/it/
9859         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
9860
9861 2011-04-10  Jim Meyering  <meyering@redhat.com>
9862
9863         maint.mk: remove useless semicolon and backslash
9864         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
9865         semicolon and backslash.
9866
9867 2011-04-10  Bruno Haible  <bruno@clisp.org>
9868
9869         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
9870         * modules/stdint-tests (Depends-on): Add wchar.
9871
9872 2011-04-10  Jim Meyering  <meyering@redhat.com>
9873
9874         maint: remove doubled words in comments, e.g., s/a a/a/
9875         * lib/strptime.c (day_of_the_week): s/the the/the/
9876         * tests/test-chown.h (test_chown): s/a a/a/
9877
9878         test-chown.h: correct a cast
9879         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
9880         when the destination is a stat.st_gid.
9881
9882 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
9883
9884         getaddrinfo: Fix test for sa_len member.
9885         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
9886         include <sys/types.h> before <sys/socket.h>.
9887
9888 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
9889
9890         maint: change "can not" to "cannot"
9891         * doc/posix-functions/iconv.texi (iconv): This one crossed line
9892         boundaries.
9893
9894 2011-04-09  Jim Meyering  <meyering@redhat.com>
9895
9896         maint: change "a a" to "a"
9897         * tests/test-lchown.h (test_lchown): s/a a/a/
9898
9899         maint.mk: prohibit \<the the\>
9900         * top/maint.mk (sc_prohibit_the_the): New rule.
9901
9902         maint: fix "the the" in comment
9903         * lib/count-one-bits.h: s/the the/the/
9904
9905         maint: change "can not" to "cannot"
9906         But do not change the occurrences in maintain.texi or in
9907         build-aux/po/Makefile.in.in, which I presume comes from gettext.
9908         * doc/gnulib-tool.texi: s/can not/cannot/
9909         * doc/posix-functions/accept.texi (accept): Likewise.
9910         * doc/posix-functions/socket.texi (socket): Likewise.
9911         * lib/mbrtowc.c: Likewise.
9912
9913         maint.mk: prohibit use of "can not"
9914         * top/maint.mk (sc_prohibit_can_not): New rule.
9915         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
9916
9917 2011-04-09  Bruno Haible  <bruno@clisp.org>
9918
9919         careadlinkat: Guard against misuse of careadlinkatcwd.
9920         * lib/careadlinkat.c: Include <stdlib.h>.
9921         (careadlinkatcwd): Check that the fd argument is as expected.
9922
9923 2011-04-09  Bruno Haible  <bruno@clisp.org>
9924
9925         careadlinkat: Use common coding style.
9926         * lib/careadlinkat.c: Move gnulib includes after system includes.
9927
9928 2011-04-09  Bruno Haible  <bruno@clisp.org>
9929
9930         careadlinkat: Clarify specification.
9931         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
9932         (careadlinkatcwd): Add comment.
9933         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
9934
9935 2011-04-09  Bruno Haible  <bruno@clisp.org>
9936
9937         areadlinkat: Avoid link error on many platforms.
9938         * modules/areadlinkat (Depends-on): Add areadlink.
9939
9940 2011-04-09  Bruno Haible  <bruno@clisp.org>
9941
9942         allocator, careadlinkat: Fix double-inclusion guard.
9943         * lib/allocator.h: Fix double-inclusion guard.
9944         * lib/careadlinkat.h: Likewise.
9945
9946 2011-04-09  Bruno Haible  <bruno@clisp.org>
9947
9948         relocatable-prog-wrapper: Update after module 'areadlink' changed.
9949         * lib/relocwrapper.c: Update dependencies hierarchy.
9950         * build-aux/install-reloc: Update list of files to be compiled.
9951         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
9952         lib/allocator.[hc].
9953
9954 2011-04-08  Eric Blake  <eblake@redhat.com>
9955
9956         strftime: silence gnulib-tool warning
9957         * modules/strftime-tests (Depends-on): Drop automatic dependency.
9958
9959 2011-04-08  Bruno Haible  <bruno@clisp.org>
9960
9961         verify: Fix syntax error with GCC 4.6 in C++ mode.
9962         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
9963         (HAVE_STATIC_ASSERT): New macro.
9964         (verify_true, verify): Use 'static_assert' if it is supported and
9965         '_Static_assert' is not supported.
9966
9967 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9968
9969         allocator: New module.
9970         * modules/allocator, lib/allocator.c: New files.
9971         * lib/allocator.h (stdlib_allocator): New decl.
9972         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
9973         Remove.  Do not include <stdlib.h>.
9974         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9975         * modules/careadlinkat (Files): Remove lib/allocator.h.
9976         (Depends-on): Add allocator.
9977
9978         stdlib: let modules use system malloc, realloc
9979         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9980         if !_GL_USE_STDLIB_ALLOC.
9981         (malloc, realloc): Limit this change to a smaller scope.
9982
9983         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9984         (malloc, realloc): Don't #undef; no longer needed.
9985         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9986         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9987         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9988         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9989         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9990         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9991         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9992         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9993
9994         careadlinkat: rename members to avoid problem
9995         * lib/allocator.h (struct allocator): Rename members from
9996         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9997         and realloc are #define'd.  Reported by Eric Blake in
9998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9999         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
10000
10001 2011-04-08  Eric Blake  <eblake@redhat.com>
10002
10003         nonblocking: reduce dependency
10004         * tests/test-nonblocking.c: Only test sockets when in use.
10005         * modules/nonblocking-tests (Depends-on): Drop socket.
10006         (Makefile.am): Link even if sockets are not present.
10007         * modules/pipe2-tests (Makefile.am): Likewise.
10008         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
10009
10010         pipe2: fix O_NONBLOCK support on mingw
10011         * modules/pipe2 (Depends-on): Add nonblocking.
10012         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
10013         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
10014         * tests/test-nonblocking.c (main): Likewise.
10015         * modules/pipe2-tests (Makefile.am): Avoid link failure.
10016
10017         fcntl-h: fix O_ACCMODE on cygwin
10018         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
10019         * lib/fcntl.in.h (O_ACCMODE): Fix it.
10020
10021         pipe-filter: drop O_NONBLOCK workarounds
10022         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
10023         * modules/pipe-filter-ii (Depends-on): Likewise.
10024         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
10025
10026         nonblocking: provide O_NONBLOCK for mingw
10027         * modules/nonblocking (Depends-on): Add open.
10028         (configure.ac): Set new witness macro.
10029         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
10030         * modules/fcntl-h (Makefile.am): Substitute it.
10031         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
10032         nonblocking module is in use.
10033         * lib/nonblocking.c: Adjust portability test.
10034         * lib/open.c (open): Don't let native open see gnulib flag.
10035         * tests/test-fcntl-h.c (main): Enhance test.
10036         * tests/test-open.h (test_open): Likewise.
10037         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
10038
10039         careadlinkat: fix compilation error on mingw
10040         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
10041         within struct allocator.
10042
10043 2011-04-06  Eric Blake  <eblake@redhat.com>
10044
10045         binary-io: relicense under LGPLv2+
10046         * modules/binary-io (License): Relax to LGPLv2+.
10047         Requested for libvirt, and required by pipe2.
10048
10049 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
10050
10051         verify: use _Static_assert if available
10052         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
10053         (verify_true, verify): Use it if available.  This generates better
10054         diagnostics with GCC 4.6.0 and later.
10055
10056 2011-04-05  Bruno Haible  <bruno@clisp.org>
10057
10058         Remove leftover generated .h files after config.status changed.
10059
10060         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
10061         GL_GENERATE_ALLOCA_H.
10062         * modules/alloca-opt (Makefile.am): Remove alloca.h if
10063         GL_GENERATE_ALLOCA_H evaluates to false.
10064
10065         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
10066         GL_GENERATE_ARGZ_H.
10067         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
10068         evaluates to false.
10069
10070         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
10071         GL_GENERATE_BYTESWAP_H.
10072         * modules/byteswap (Makefile.am): Remove byteswap.h if
10073         GL_GENERATE_BYTESWAP_H evaluates to false.
10074
10075         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
10076         GL_GENERATE_ERRNO_H.
10077         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
10078         evaluates to false.
10079
10080         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
10081         GL_GENERATE_FLOAT_H.
10082         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
10083         evaluates to false.
10084
10085         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
10086         GL_GENERATE_FNMATCH_H.
10087         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
10088         GL_GENERATE_FNMATCH_H evaluates to false.
10089
10090         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
10091         GL_GENERATE_GLOB_H.
10092         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
10093         evaluates to false.
10094
10095         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
10096         automake conditional GL_GENERATE_ICONV_H.
10097         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
10098         evaluates to false.
10099
10100         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
10101         GL_GENERATE_NETINET_IN_H.
10102         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
10103         GL_GENERATE_NETINET_IN_H evaluates to false.
10104
10105         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
10106         conditional GL_GENERATE_PTHREAD_H.
10107         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
10108         * modules/pthread (Makefile.am): Remove pthread.h if
10109         GL_GENERATE_PTHREAD_H evaluates to false.
10110
10111         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
10112         GL_GENERATE_SCHED_H.
10113         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
10114         evaluates to false.
10115
10116         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
10117         conditional GL_GENERATE_SELINUX_CONTEXT_H.
10118         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
10119         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
10120
10121         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
10122         GL_GENERATE_STDARG_H.
10123         * modules/stdarg (Makefile.am): Remove stdarg.h if
10124         GL_GENERATE_STDARG_H evaluates to false.
10125
10126         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
10127         GL_GENERATE_STDBOOL_H.
10128         * modules/stdbool (Makefile.am): Remove stdbool.h if
10129         GL_GENERATE_STDBOOL_H evaluates to false.
10130
10131         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
10132         conditional GL_GENERATE_STDDEF_H.
10133         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
10134         * modules/stddef (Makefile.am): Remove stddef.h if
10135         GL_GENERATE_STDDEF_H evaluates to false.
10136
10137         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
10138         GL_GENERATE_STDINT_H.
10139         * modules/stdint (Makefile.am): Remove stdint.h if
10140         GL_GENERATE_STDINT_H evaluates to false.
10141
10142         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
10143         GL_GENERATE_SYSEXITS_H.
10144         * modules/sysexits (Makefile.am): Remove sysexits.h if
10145         GL_GENERATE_SYSEXITS_H evaluates to false.
10146
10147         Reported by Karl Berry and Ralf Wildenhues.
10148
10149 2011-04-05  Bruno Haible  <bruno@clisp.org>
10150
10151         Ensure to rebuild generated .h files when config.status has changed.
10152         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
10153         config.status.
10154         * modules/ctype (Makefile.am): Likewise.
10155         * modules/dirent (Makefile.am): Likewise.
10156         * modules/errno (Makefile.am): Likewise.
10157         * modules/fcntl-h (Makefile.am): Likewise.
10158         * modules/float (Makefile.am): Likewise.
10159         * modules/getopt-posix (Makefile.am): Likewise.
10160         * modules/glob (Makefile.am): Likewise.
10161         * modules/iconv-h (Makefile.am): Likewise.
10162         * modules/inttypes (Makefile.am): Likewise.
10163         * modules/langinfo (Makefile.am): Likewise.
10164         * modules/locale (Makefile.am): Likewise.
10165         * modules/math (Makefile.am): Likewise.
10166         * modules/netdb (Makefile.am): Likewise.
10167         * modules/netinet_in (Makefile.am): Likewise.
10168         * modules/poll-h (Makefile.am): Likewise.
10169         * modules/pthread (Makefile.am): Likewise.
10170         * modules/pty (Makefile.am): Likewise.
10171         * modules/sched (Makefile.am): Likewise.
10172         * modules/search (Makefile.am): Likewise.
10173         * modules/selinux-h (Makefile.am): Likewise.
10174         * modules/signal (Makefile.am): Likewise.
10175         * modules/spawn (Makefile.am): Likewise.
10176         * modules/stdarg (Makefile.am): Likewise.
10177         * modules/stdbool (Makefile.am): Likewise.
10178         * modules/stddef (Makefile.am): Likewise.
10179         * modules/stdint (Makefile.am): Likewise.
10180         * modules/stdio (Makefile.am): Likewise.
10181         * modules/stdlib (Makefile.am): Likewise.
10182         * modules/string (Makefile.am): Likewise.
10183         * modules/strings (Makefile.am): Likewise.
10184         * modules/sys_file (Makefile.am): Likewise.
10185         * modules/sys_ioctl (Makefile.am): Likewise.
10186         * modules/sys_select (Makefile.am): Likewise.
10187         * modules/sys_socket (Makefile.am): Likewise.
10188         * modules/sys_stat (Makefile.am): Likewise.
10189         * modules/sys_time (Makefile.am): Likewise.
10190         * modules/sys_times (Makefile.am): Likewise.
10191         * modules/sys_utsname (Makefile.am): Likewise.
10192         * modules/sys_wait (Makefile.am): Likewise.
10193         * modules/sysexits (Makefile.am): Likewise.
10194         * modules/termios (Makefile.am): Likewise.
10195         * modules/time (Makefile.am): Likewise.
10196         * modules/unistd (Makefile.am): Likewise.
10197         * modules/wchar (Makefile.am): Likewise.
10198         * modules/wctype-h (Makefile.am): Likewise.
10199         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
10200
10201 2011-04-05  Bruno Haible  <bruno@clisp.org>
10202
10203         pipe2: Relicense under LGPLv2+.
10204         * modules/pipe2 (License): Change to LGPLv2+.
10205         Requested by Eric Blake, for libvirt.
10206
10207 2011-04-05  Bruce Korb  <bkorb@gnu.org>
10208
10209         bootstrap: compute gnulib_extra_files after updating build_aux
10210         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
10211         change build_aux or also supply gnulib_extra_files.  Handle correctly.
10212
10213 2011-04-05  Eric Blake  <eblake@redhat.com>
10214
10215         bootstrap: preserve git whitelist item sorting
10216         * build-aux/bootstrap (sort_patterns): New function.
10217         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
10218
10219 2011-04-05  Simon Josefsson  <simon@josefsson.org>
10220
10221         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
10222         sc_space_tab check.
10223
10224 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
10225
10226         areadlink, areadlinkat: rewrite in terms of careadlinkat
10227         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
10228         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
10229         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
10230         (malloc, realloc): Remove #undefs.
10231         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
10232         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
10233         readlink, ssize_t, stdint, unistd.
10234         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
10235         areadlink, stdint.
10236
10237         careadlinkat: new module
10238         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
10239         * modules/careadlinkat: New files, written by me with
10240         a review and feedback from Ben Pfaff in
10241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
10242
10243 2011-04-01  Bruno Haible  <bruno@clisp.org>
10244
10245         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
10246         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
10247         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
10248         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
10249         Reported by Bruce Korb <bruce.korb@gmail.com>.
10250
10251 2011-04-01  Bruno Haible  <bruno@clisp.org>
10252
10253         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
10254         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
10255         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
10256         * modules/wcpcpy (Depends-on): Add extensions.
10257         * modules/wcpncpy (Depends-on): Likewise.
10258         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
10259         systems.
10260         * doc/posix-functions/wcpncpy.texi: Likewise.
10261         * doc/posix-functions/wcwidth.texi: Likewise.
10262
10263 2011-03-31  Eric Blake  <eblake@redhat.com>
10264
10265         nonblocking: fix mingw test failures
10266         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
10267         non-blocking flag on regular file.
10268         (get_nonblocking_flag): Set errno on invalid fd.
10269         * tests/test-nonblocking.c (main): Avoid test failure on
10270         directories if fchdir is not active.
10271         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
10272
10273 2011-03-31  Bruno Haible  <bruno@clisp.org>
10274
10275         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
10276         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
10277         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
10278         Reported by Simon Josefsson <simon@josefsson.org>.
10279
10280 2011-03-31  Bruno Haible  <bruno@clisp.org>
10281         and Eric Blake  <eblake@redhat.com>
10282
10283         nonblocking: new module
10284         * modules/nonblocking: New module.
10285         * modules/nonblocking-tests: Likewise.
10286         * lib/nonblocking.h: New file.
10287         * lib/nonblocking.c: Likewise.
10288         * tests/test-nonblocking.c: New test.
10289         * lib/ioctl.c (ioctl) [mingw]: Update comment.
10290
10291 2011-03-30  Bruno Haible  <bruno@clisp.org>
10292
10293         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
10294         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
10295         instead of 'printf' format for GCC >= 4.4.
10296         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
10297         (fprintf, printf, vfprintf, vprintf): Declare with
10298         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
10299         the system's vfprintf() function.
10300         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
10301
10302 2011-03-30  Eric Blake  <eblake@redhat.com>
10303
10304         passfd: fix scoping bug
10305         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
10306         before sendmsg/recvmsg.
10307
10308         passfd: standardize coding conventions
10309         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
10310         can be learned at compile time.
10311         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
10312         ifdefs.
10313         (sendfd, recvfd): Follow gnulib code conventions.
10314
10315         passfd: fix incorrect sendmsg arguments
10316         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
10317         incorrect msg_controllen value.
10318         * modules/passfd-tests (Depends-on): Check for alarm.
10319         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
10320         Reported by Bastien ROUCARIES.
10321
10322 2011-03-30  Bruno Haible  <bruno@clisp.org>
10323
10324         c-strcasestr: Relicense under LGPLv2+.
10325         * modules/c-strcasestr (License): Change to LGPLv2+.
10326         Requested by Eric Blake, for libvirt.
10327
10328 2011-03-30  Simon Josefsson  <simon@josefsson.org>
10329
10330         * users.txt: Add libidn2.  Fix libtasn1 link.
10331
10332 2011-03-30  Jim Meyering  <meyering@redhat.com>
10333
10334         tests: readlink* ("",... fails with EINVAL on newer kernels
10335         readlink and readlinkat have typically failed with ENOENT for
10336         the invalid, empty file name,  "".  However, with the advent
10337         of linux-2.6.39, they fail with EINVAL.
10338         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
10339         when operating on the empty file name.
10340         * tests/test-readlink.h (test_readlink): Likewise.
10341
10342 2011-03-29  Bruno Haible  <bruno@clisp.org>
10343
10344         Relicense some modules under LGPLv2+, for libidn2.
10345         * modules/array-mergesort (License): Change to LGPLv2+.
10346         * modules/c-strcaseeq (License): Likewise.
10347         * modules/striconveh (License): Likewise.
10348         * modules/striconveha (License): Likewise.
10349         * modules/uniconv/base (License): Likewise.
10350         * modules/uniconv/u8-conv-from-enc (License): Likewise.
10351         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
10352         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
10353         * modules/unictype/base (License): Likewise.
10354         * modules/unictype/bidiclass-of (License): Likewise.
10355         * modules/unictype/category-M (License): Likewise.
10356         * modules/unictype/category-none (License): Likewise.
10357         * modules/unictype/category-of (License): Likewise.
10358         * modules/unictype/category-test (License): Likewise.
10359         * modules/unictype/category-test-withtable (License): Likewise.
10360         * modules/unictype/combining-class (License): Likewise.
10361         * modules/unictype/joiningtype-of (License): Likewise.
10362         * modules/unictype/scripts (License): Likewise.
10363         * modules/uninorm/base (License): Likewise.
10364         * modules/uninorm/canonical-decomposition (License): Likewise.
10365         * modules/uninorm/composition (License): Likewise.
10366         * modules/uninorm/decompose-internal (License): Likewise.
10367         * modules/uninorm/decomposition-table (License): Likewise.
10368         * modules/uninorm/nfc (License): Likewise.
10369         * modules/uninorm/nfd (License): Likewise.
10370         * modules/uninorm/u32-normalize (License): Likewise.
10371         * modules/unistr/base (License): Likewise.
10372         * modules/unistr/u32-cpy (License): Likewise.
10373         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
10374         * modules/unistr/u32-to-u8 (License): Likewise.
10375         * modules/unistr/u32-uctomb (License): Likewise.
10376         * modules/unistr/u8-check (License): Likewise.
10377         * modules/unistr/u8-mblen (License): Likewise.
10378         * modules/unistr/u8-mbtouc (License): Likewise.
10379         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
10380         * modules/unistr/u8-mbtoucr (License): Likewise.
10381         * modules/unistr/u8-prev (License): Likewise.
10382         * modules/unistr/u8-strlen (License): Likewise.
10383         * modules/unistr/u8-to-u32 (License): Likewise.
10384         * modules/unistr/u8-uctomb (License): Likewise.
10385         * modules/unitypes (License): Likewise.
10386         Requested by Simon Josefsson.
10387
10388 2011-03-29  Simon Josefsson  <simon@josefsson.org>
10389
10390         lib-symbol-visibility: Add a notice.
10391         * modules/lib-symbol-visibility (Notice): New field.
10392
10393 2011-03-29  Bruno Haible  <bruno@clisp.org>
10394
10395         getaddrinfo: Doc fix.
10396         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
10397         section "fixed in Gnulib".
10398
10399 2011-03-28  Simon Josefsson  <simon@josefsson.org>
10400
10401         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
10402         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
10403
10404 2011-03-26  Bruno Haible  <bruno@clisp.org>
10405
10406         unictype/property-byname: Reduce the number of load-time relocations.
10407         * lib/unictype/pr_byname.c: Include <stdlib.h>.
10408         (UC_PROPERTY_INDEX_*): New enumeration values.
10409         (uc_property_byname): Convert an index from the lookup table to an
10410         uc_property_t.
10411         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
10412         values.
10413
10414 2011-03-26  Bruno Haible  <bruno@clisp.org>
10415
10416         unictype/property-byname: Allow omitted word separators and aliases.
10417         * lib/unictype/pr_byname.gperf: Add property names without word
10418         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
10419         for 'space'.
10420
10421 2011-03-26  Bruno Haible  <bruno@clisp.org>
10422
10423         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
10424         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
10425         also hyphens to space.
10426         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
10427         without spaces.
10428         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
10429
10430 2011-03-26  Bruno Haible  <bruno@clisp.org>
10431
10432         unictype/joiningtype-byname: Recognize long names as well.
10433         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
10434         a long name.
10435         * lib/unictype/joiningtype_byname.c: Include <string.h>,
10436         unictype/joiningtype_byname.h.
10437         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
10438         * lib/unictype/joiningtype_byname.gperf: New file.
10439         * modules/unictype/joiningtype-byname (Files): Add
10440         lib/unictype/joiningtype_byname.gperf.
10441         (Depends-on): Add gperf.
10442         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
10443         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
10444         long names.
10445
10446         Tests for module 'unictype/joiningtype-longname'.
10447         * modules/unictype/joiningtype-longname-tests: New file.
10448         * tests/unictype/test-joiningtype_longname.c: New file.
10449
10450         New module 'unictype/joiningtype-longname'.
10451         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
10452         * lib/unictype/joiningtype_longname.c: New file.
10453         * modules/unictype/joiningtype-longname: New file.
10454         * modules/unictype/joiningtype-all (Depends-on): Add
10455         unictype/joiningtype-longname.
10456
10457 2011-03-26  Bruno Haible  <bruno@clisp.org>
10458
10459         unictype/bidiclass-byname: Recognize long names as well.
10460         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
10461         name.
10462         * lib/unictype/bidi_byname.c: Include <string.h>,
10463         unictype/bidi_byname.h.
10464         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
10465         * lib/unictype/bidi_byname.gperf: New file.
10466         * modules/unictype/bidiclass-byname (Files): Add
10467         lib/unictype/bidi_byname.gperf.
10468         (Depends-on): Add gperf.
10469         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
10470         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
10471         long names.
10472
10473         Tests for module 'unictype/bidiclass-longname'.
10474         * modules/unictype/bidiclass-longname-tests: New file.
10475         * tests/unictype/test-bidi_longname.c: New file.
10476
10477         New module 'unictype/bidiclass-longname'.
10478         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
10479         * lib/unictype/bidi_longname.c: New file.
10480         * modules/unictype/bidiclass-longname: New file.
10481         * modules/unictype/bidiclass-all (Depends-on): Add
10482         unictype/bidiclass-longname.
10483
10484 2011-03-26  Bruno Haible  <bruno@clisp.org>
10485
10486         unictype/bidi*: Rename modules.
10487         * modules/unictype/bidiclass-all: Renamed from
10488         modules/unictype/bidicategory-all.
10489         * modules/unictype/bidiclass-name: Renamed from
10490         modules/unictype/bidiclass-name.
10491         (Description): Update.
10492         * modules/unictype/bidiclass-name-tests: Renamed from
10493         modules/unictype/bidicategory-name-tests.
10494         * modules/unictype/bidiclass-byname: Renamed from
10495         modules/unictype/bidicategory-byname.
10496         (Description): Update.
10497         * modules/unictype/bidiclass-byname-tests: Renamed from
10498         modules/unictype/bidicategory-byname-tests.
10499         * modules/unictype/bidiclass-of: Renamed from
10500         modules/unictype/bidicategory-of.
10501         (Description): Update.
10502         * modules/unictype/bidiclass-of-tests: Renamed from
10503         modules/unictype/bidicategory-of-tests.
10504         * modules/unictype/bidiclass-test: Renamed from
10505         modules/unictype/bidicategory-test.
10506         (Description): Update.
10507         * modules/unictype/bidiclass-test-tests: Renamed from
10508         modules/unictype/bidicategory-test-tests.
10509         * modules/unictype/bidicategory-all: New file, a simple redirection.
10510         * modules/unictype/bidicategory-name: Likewise.
10511         * modules/unictype/bidicategory-byname: Likewise.
10512         * modules/unictype/bidicategory-of: Likewise.
10513         * modules/unictype/bidicategory-test: Likewise.
10514         * modules/unictype/property-bidi-* (Dependencies): Update.
10515         * lib/unictype/bidi_*.c: Update comment.
10516
10517 2011-03-26  Bruno Haible  <bruno@clisp.org>
10518
10519         unictype/bidi*: Rename functions, part 2.
10520         * modules/unictype/bidicategory-name (configure.ac): Update required
10521         libunistring version.
10522         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
10523
10524 2011-03-25  Bruno Haible  <bruno@clisp.org>
10525
10526         New module 'unictype/combining-class-all'.
10527         * modules/unictype/combining-class-all: New file.
10528
10529         Tests for module 'unictype/combining-class-byname'.
10530         * modules/unictype/combining-class-byname-tests: New file.
10531         * tests/unictype/test-combiningclass_byname.c: New file.
10532
10533         New module 'unictype/combining-class-byname'.
10534         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
10535         * lib/unictype/combiningclass_byname.c: New file.
10536         * lib/unictype/combiningclass_byname.gperf: New file.
10537         * modules/unictype/combining-class-byname: New file.
10538
10539         Tests for module 'unictype/combining-class-longname'.
10540         * modules/unictype/combining-class-longname-tests: New file.
10541         * tests/unictype/test-combiningclass_longname.c: New file.
10542
10543         New module 'unictype/combining-class-longname'.
10544         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
10545         * lib/unictype/combiningclass_longname.c: New file.
10546         * modules/unictype/combining-class-longname: New file.
10547
10548         Tests for module 'unictype/combining-class-name'.
10549         * modules/unictype/combining-class-name-tests: New file.
10550         * tests/unictype/test-combiningclass_name.c: New file.
10551
10552         New module 'unictype/combining-class-name'.
10553         * lib/unictype.in.h (uc_combining_class_name): New declaration.
10554         * lib/unictype/combiningclass_name.c: New file.
10555         * modules/unictype/combining-class-name: New file.
10556
10557 2011-03-25  Bruno Haible  <bruno@clisp.org>
10558
10559         unictype/combining-class: Rename source files.
10560         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
10561         of unictype/combining.h.
10562         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
10563         Update.
10564         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
10565         * modules/unictype/combining-class (Description): Fix.
10566         (Files, Makefile.am): Update.
10567         * tests/unictype/test-combiningclass.c: Renamed from
10568         tests/unictype/test-combining.c.
10569         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
10570
10571 2011-03-25  Bruno Haible  <bruno@clisp.org>
10572
10573         unictype: Update list of canonical combining classes.
10574         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
10575
10576 2011-03-25  Bruno Haible  <bruno@clisp.org>
10577
10578         unictype/category-byname: Recognize long names as well.
10579         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
10580         a long name.
10581         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
10582         unictype/categ_byname.h.
10583         (UC_CATEGORY_INDEX_*): New enumeration values.
10584         (uc_general_category_byname): Use uc_general_category_lookup and
10585         convert from index to value.
10586         * lib/unictype/categ_byname.gperf: New file.
10587         * modules/unictype/category-byname (Files): Add
10588         lib/unictype/categ_byname.gperf.
10589         (Depends-on): Add gperf.
10590         (Makefile.am): Add rule for generating unictype/categ_byname.h.
10591         * tests/unictype/test-categ_byname.c (main): Test the recognition of
10592         long names.
10593
10594         Tests for module 'unictype/category-longname'.
10595         * modules/unictype/category-longname-tests: New file.
10596         * tests/unictype/test-categ_longname.c: New file.
10597
10598         New module 'unictype/category-longname'.
10599         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
10600         * lib/unictype/categ_longname.c: New file.
10601         * modules/unictype/category-longname: New file.
10602         * modules/unictype/category-all (Depends-on): Add it.
10603
10604 2011-03-25  Bruno Haible  <bruno@clisp.org>
10605
10606         Tests for module 'unictype/category-LC'.
10607         * modules/unictype/category-LC-tests: New file.
10608         * tests/unictype/test-categ_LC.c: New file, automatically generated.
10609
10610         New module 'unictype/category-LC'.
10611         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
10612         (UC_CATEGORY_LC): New declaration.
10613         (UC_CASED_LETTER): New macro.
10614         * lib/gen-uni-tables.c (is_category_LC): New function.
10615         (output_categories): Also handle category LC.
10616         (UC_CATEGORY_MASK_LC): New enumeration value.
10617         (general_category_byname): Also handle category LC.
10618         * lib/unictype/categ_LC.c: New file.
10619         * lib/unictype/categ_LC.h: New file, automatically generated.
10620         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
10621         category LC.
10622         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
10623         * modules/unictype/category-LC: New file.
10624         * modules/unictype/category-byname (Depends-on): Add
10625         unictype/category-LC.
10626         * modules/unictype/category-all (Depends-on): Likewise.
10627
10628 2011-03-25  Eric Blake  <eblake@redhat.com>
10629
10630         xmalloc: revert yesterday's regression
10631         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
10632         realloc's underlying behavior (allowing allocation of zero-size
10633         objects, especially if malloc-gnu is also in use).
10634
10635 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
10636
10637         maint.mk: add missing version to VC-tag
10638         * top/maint.mk: git tag was missing actual tag name; add it.
10639
10640         valgrind: do leak checking, and exit with code 1 on error (not 0)
10641         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
10642         to VALGRIND.
10643
10644 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
10645
10646         posix-modules: say what it does.
10647         * posix-modules: Add a line to the --help output saying what it does.
10648
10649 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10650
10651         xmalloc: Do not leak if underlying realloc is C99 compatible.
10652         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
10653         This avoids a leak on C99-based systems.  See
10654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
10655
10656 2011-03-24  Eric Blake  <eblake@redhat.com>
10657
10658         realloc: document portability problem
10659         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
10660         passing 0 size to realloc.
10661
10662 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
10663
10664         doc: update users.txt
10665         * users.txt: Add cvsps, tmpwatch
10666
10667 2011-03-23  Matt Rice  <ratmice@gmail.com>
10668
10669         doc: update users.txt
10670         * users.txt: Add gdb.
10671
10672 2011-03-23  Jim Meyering  <meyering@redhat.com>
10673
10674         doc: update users.txt
10675         Looking through matches up to the following URL (there are still
10676         several more pages), I found several projects that use gnulib:
10677         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
10678         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
10679         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
10680
10681 2011-03-22  Bruno Haible  <bruno@clisp.org>
10682
10683         unictype/bidi*: Rename functions.
10684         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
10685         uc_bidi_class, uc_is_bidi_class): New declarations.
10686         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
10687         uc_bidi_category_byname.
10688         (uc_bidi_category_byname): New function.
10689         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
10690         u_bidi_category_name.
10691         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
10692         (uc_bidi_category_name): New function.
10693         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
10694         uc_bidi_category.
10695         (uc_bidi_category): New function.
10696         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
10697         uc_is_bidi_category. Invoke uc_bidi_class.
10698         (uc_is_bidi_category): New function.
10699         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
10700         instead of uc_bidi_category_byname.
10701         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
10702         instead of uc_bidi_category_name.
10703         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
10704         uc_bidi_category.
10705         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
10706         instead of uc_is_bidi_category.
10707
10708 2011-03-21  Bruno Haible  <bruno@clisp.org>
10709
10710         New module 'unictype/joininggroup-all'.
10711         * modules/unictype/joininggroup-all: New file.
10712
10713         Tests for module 'unictype/joininggroup-of'.
10714         * modules/unictype/joininggroup-of-tests: New file.
10715         * tests/unictype/test-joininggroup_of.c: New file.
10716         * tests/unictype/test-joininggroup_of.h: New file, automatically
10717         generated by gen-uni-tables.
10718
10719         New module 'unictype/joininggroup-of'.
10720         * modules/unictype/joininggroup-of: New file.
10721         * lib/unictype/joininggroup_of.c: New file.
10722         * lib/unictype/joininggroup_of.h: New file, automatically generated by
10723         gen-uni-tables.
10724
10725         Tests for module 'unictype/joininggroup-byname'.
10726         * modules/unictype/joininggroup-byname-tests: New file.
10727         * tests/unictype/test-joininggroup_byname.c: New file.
10728
10729         New module 'unictype/joininggroup-byname'.
10730         * modules/unictype/joininggroup-byname: New file.
10731         * lib/unictype/joininggroup_byname.c: New file.
10732         * lib/unictype/joininggroup_byname.gperf: New file.
10733
10734         Tests for module 'unictype/joininggroup-name'.
10735         * modules/unictype/joininggroup-name-tests: New file.
10736         * tests/unictype/test-joininggroup_name.c: New file.
10737
10738         New module 'unictype/joininggroup-name'.
10739         * modules/unictype/joininggroup-name: New file.
10740         * lib/unictype/joininggroup_name.c: New file.
10741         * lib/unictype/joininggroup_name.h: New file.
10742
10743         New module 'unictype/joiningtype-all'.
10744         * modules/unictype/joiningtype-all: New file.
10745
10746         Tests for module 'unictype/joiningtype-of'.
10747         * modules/unictype/joiningtype-of-tests: New file.
10748         * tests/unictype/test-joiningtype_of.c: New file.
10749         * tests/unictype/test-joiningtype_of.h: New file, automatically
10750         generated by gen-uni-tables.
10751
10752         New module 'unictype/joiningtype-of'.
10753         * modules/unictype/joiningtype-of: New file.
10754         * lib/unictype/joiningtype_of.c: New file.
10755         * lib/unictype/joiningtype_of.h: New file, automatically generated by
10756         gen-uni-tables.
10757
10758         Tests for module 'unictype/joiningtype-byname'.
10759         * modules/unictype/joiningtype-byname-tests: New file.
10760         * tests/unictype/test-joiningtype_byname.c: New file.
10761
10762         New module 'unictype/joiningtype-byname'.
10763         * modules/unictype/joiningtype-byname: New file.
10764         * lib/unictype/joiningtype_byname.c: New file.
10765
10766         Tests for module 'unictype/joiningtype-name'.
10767         * modules/unictype/joiningtype-name-tests: New file.
10768         * tests/unictype/test-joiningtype_name.c: New file.
10769
10770         New module 'unictype/joiningtype-name'.
10771         * modules/unictype/joiningtype-name: New file.
10772         * lib/unictype/joiningtype_name.c: New file.
10773
10774         unictype: Add support for Arabic shaping properties.
10775         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
10776         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
10777         declarations.
10778         (UC_JOINING_GROUP_*): New enumeration values.
10779         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
10780         declarations.
10781         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
10782         (unicode_joining_type): New variable.
10783         (UC_JOINING_GROUP_*): New enumeration values.
10784         (unicode_joining_group): New variable.
10785         (fill_arabicshaping, joining_type_as_c_identifier,
10786         output_joining_type_test, output_joining_type,
10787         joining_group_as_c_identifier, output_joining_group_test,
10788         output_joining_group): New functions.
10789         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
10790         fill_arabicshaping and output_joining_type_test, output_joining_type,
10791         output_joining_group_test, output_joining_group.
10792         Reported by Simon Josefsson.
10793
10794 2011-03-21  Jim Meyering  <meyering@redhat.com>
10795
10796         strftime: fix a bug in yesterday's change
10797         * lib/strftime.c (add): Accommodate width's initial value of -1.
10798         Otherwise, nstrftime would copy uninitialized data into
10799         the result buffer.
10800
10801 2011-03-21  Jim Meyering  <meyering@redhat.com>
10802
10803         tests: add strftime-tests module
10804         * tests/test-strftime.c: New file.
10805         * modules/strftime-tests: New module.
10806
10807 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10808
10809         strftime: don't assume a byte count fits in 'int'
10810         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
10811         found this problem by static analysis, using gcc -Wstrict-overflow
10812         (GCC 4.5.2, x86-64).  This reported an optimization that depended
10813         on an integer overflow having undefined behavior, but it turns out
10814         that the argument is a size, which might not fit in 'int' anyway,
10815
10816 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10817
10818         stdio: don't require ignore_value around fwrite
10819
10820         This patch works around libc bug 11959
10821         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
10822         Without this patch, applications must often write
10823         ignore_value (fwrite (...)) even though the ignore_value is
10824         not helpful here.  It's common to write many objects, using
10825         fwrite/printf/etc., and then use ferror to detect output error.
10826
10827         I considered making this patch optional, but decided against it,
10828         because libc is obviously being inconsistent here: there is no
10829         reason libc should insist that user code must inspect fwrite
10830         return's value without also insisting that it inspect printf's,
10831         putchar's, etc.  If user code wants to have a strict style where
10832         all these functions' values are checked (so that ferror need not
10833         be checked), we could add support for that style in a new gnulib
10834         module, but in the meantime it's better to be consistent and to
10835         support common usage.
10836
10837         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
10838         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
10839         that we are compiling in checking mode, and if not C++, and
10840         if not already wrapping fwrite for some other reason.
10841         (fwrite): #define to rpl_fwrite if the latter is defined.
10842
10843 2011-03-20  Bruno Haible  <bruno@clisp.org>
10844
10845         verror: Fix compilation error introduced on 2011-02-13.
10846         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
10847         instead of __attribute__.
10848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10849
10850 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10851             Bruno Haible  <bruno@clisp.org>
10852
10853         socklen: do not depend on sys_socket
10854         While trying to modify Emacs to use gnulib's socklen module,
10855         I discovered a circular dependency: socklen depends on sys_socket
10856         and vice versa.  Emacs can use socklen, but it does not need
10857         sys_socket because it has its own substitute for sys/socket.h.
10858         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
10859         gl_TYPE_SOCKLEN_T.
10860         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
10861         gl_PREREQ_SYS_H_SOCKET.
10862         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
10863         gl_PREREQ_SYS_H_SOCKET.
10864         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
10865         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
10866         * modules/socklen (Depends-on): Do not depend on sys_socket.
10867         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
10868
10869 2011-03-20  Jim Meyering  <meyering@redhat.com>
10870
10871         maint.mk: sort file names *after* new transformation
10872         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
10873         prefix would have led to an unwarranted failure in GNU parted.
10874         Sort after that transformation.
10875
10876 2011-03-19  Jim Meyering  <meyering@redhat.com>
10877
10878         maint.mk: fix po-file syntax-check rule
10879         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
10880         Patch by Bruno Haible.
10881
10882 2011-03-19  Bruno Haible  <bruno@clisp.org>
10883
10884         socklen: Update comment.
10885         * m4/socklen.m4: Update comment about platforms.
10886
10887 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10888             Bruno Haible  <bruno@clisp.org>
10889
10890         inet_ntop, inet_pton: Simplify.
10891         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
10892         documented to provide socklen_t and we already depend on sys_socket.
10893         * modules/inet_pton (Depends-on): Likewise.
10894         * lib/arpa_inet.in.h: Adjust comment.
10895
10896 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10897             Bruno Haible  <bruno@clisp.org>
10898
10899         netdb: Simplify.
10900         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
10901         documented to provide socklen_t and we already depend on sys_socket.
10902         * lib/netdb.in.h: Adjust comment.
10903
10904 2011-03-19  Bruno Haible  <bruno@clisp.org>
10905
10906         sys_socket, netdb: Document problem with socklen_t.
10907         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
10908         platforms.
10909         * doc/posix-headers/netdb.texi: Likewise.
10910
10911 2011-03-18  Eric Blake  <eblake@redhat.com>
10912
10913         maint.mk: let po check work in VPATH build
10914         * top/maint.mk (po_file): Allow cfg.mk override.
10915         (sc_po_check): Allow VPATH use.
10916         Reported by Jiri Denemark.
10917
10918 2011-03-16  Jim Meyering  <meyering@redhat.com>
10919
10920         maint.mk: allow fine-grained syntax-check exclusion via Make variables
10921         Before, you would have had to create one .x-sc_ file per rule in order
10922         to exempt offending files.  Now, you may instead use a Make variable --
10923         usually defined in cfg.mk -- whose name identifies the affected rule.
10924         * top/maint.mk (_sc_excl): Define.
10925         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
10926         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
10927
10928 2011-03-13  Bruno Haible  <bruno@clisp.org>
10929
10930         ignore-value tests: Avoid warnings.
10931         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
10932         empty for gcc < 3.4.
10933
10934 2011-03-13  Bruno Haible  <bruno@clisp.org>
10935
10936         passfd: Fix link error on Solaris.
10937         * modules/passfd (Description): Correct.
10938         (Depends-on): Add socketlib.
10939         (Link): New section.
10940         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
10941
10942 2011-03-13  Bruno Haible  <bruno@clisp.org>
10943
10944         passfd: Fix link error on AIX 5.2.
10945         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
10946
10947 2011-03-13  Bruno Haible  <bruno@clisp.org>
10948
10949         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
10950         * lib/sys_socket.in.h: Include <stddef.h>.
10951         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
10952         CMSG_FIRSTHDR. Remove unused variable.
10953
10954 2011-03-13  Bruno Haible  <bruno@clisp.org>
10955
10956         passfd: Fix compilation error on OpenBSD.
10957         * lib/passfd.c: Include <sys/uio.h>.
10958
10959 2011-03-13  Bruno Haible  <bruno@clisp.org>
10960
10961         passfd test: Fix warnings.
10962         * tests/test-passfd.c: Include <sys/wait.h>.
10963         (main): Fix typo.
10964
10965 2011-03-13  Bruno Haible  <bruno@clisp.org>
10966
10967         passfd module, part 4, tweaks.
10968         * tests/test-passfd.c: Reorder includes.
10969         (main): Fix perror and printf calls.
10970
10971 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10972
10973         passfd module, part 4.
10974         * modules/passfd-tests: New file.
10975         * tests/test-passfd.c: New file.
10976
10977 2011-03-13  Jim Meyering  <meyering@redhat.com>
10978
10979         Makefile: rely on GNU make; derive syntax-check rule names
10980         Rather than requiring that each sc_ rule be listed as a dependent
10981         of "check", use features of GNU make to derive the list.
10982         * Makefile (syntax-check-rules): Define.
10983         (check): Depend on the new variable, not the hard-coded list.
10984
10985 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10986             Bruno Haible  <bruno@clisp.org>
10987
10988         passfd module, part 3.
10989         * lib/passfd.h (recvfd): Add a flags argument.
10990         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10991         (recvfd): Add a flags argument.
10992         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10993         exists.
10994         * modules/passfd (Depends-on): Add cloexec.
10995         Suggested by Eric Blake.
10996
10997 2011-03-13  Bruno Haible  <bruno@clisp.org>
10998
10999         passfd module, part 2, tweaks.
11000         * modules/passfd (Files): Reorder.
11001         (Depends-on): Remove errno.
11002         (Include): Remove <sys/socket.h>, <sys/un.h>.
11003         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
11004         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
11005         specification header. Include <sys/socket.h> always. Don't include
11006         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
11007         (sendfd): Clarify that it sets errno when it fails.
11008         (recvfd): Fix specification.
11009
11010 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11011
11012         passfd module, part 2.
11013         * modules/passfd: New file.
11014         * lib/passfd.h: New file.
11015         * lib/passfd.c: New file.
11016
11017 2011-03-12  Bruno Haible  <bruno@clisp.org>
11018
11019         wcswidth, mbswidth: Avoid integer overflow.
11020         * lib/wcswidth.c: Include <limits.h>.
11021         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
11022         * lib/mbswidth.c: Include <limits.h>.
11023         (mbsnwidth): Avoid 'int' overflow.
11024         Reported by Jim Meyering.
11025
11026 2011-03-12  Bruno Haible  <bruno@clisp.org>
11027
11028         futimens, utimensat: Avoid endless recursion on Solaris 10.
11029         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
11030         Solaris.
11031         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
11032         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
11033
11034 2011-03-11  Jim Meyering  <meyering@redhat.com>
11035
11036         maint.mk: relax a regexp to accommodate other formatting styles
11037         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
11038         between "ngettext" and the following "(".
11039
11040 2011-03-11  Pádraig Brady <P@draigBrady.com>
11041
11042         maint.mk: suppress a false positive warning
11043         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
11044         diagnostics are marked with ngettext.
11045
11046 2011-03-10  Eric Blake  <eblake@redhat.com>
11047
11048         wchar: add explicit dependencies, for Tru64
11049         * modules/mbmemcasecoll (Depends-on): Add wchar.
11050         * modules/mbtowc (Depends-on): Likewise.
11051         * modules/vasnprintf (Depends-on): Likewise.
11052         * modules/unistdio/u-printf-args (Depends-on): Likewise.
11053         * modules/wctomb (Depends-on): Likewise.
11054         Reported by Peter O'Gorman.
11055
11056 2011-03-08  Bruno Haible  <bruno@clisp.org>
11057
11058         passfd module, part 1, tweaks.
11059         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
11060         Improve indentation. Improve AC_MSG_CHECKING messages.
11061         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
11062         gl_SOCKET_FAMILIES.
11063
11064 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11065
11066         passfd module, part 1.
11067         * m4/afunix.m4: New file.
11068         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
11069         sockets.
11070
11071 2011-03-08  Bruno Haible  <bruno@clisp.org>
11072
11073         regex-quote: New API.
11074         * lib/regex-quote.h: Include <stdbool.h>.
11075         (struct regex_quote_spec): New type.
11076         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11077         New declarations.
11078         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11079         'const struct regex_quote_spec *' argument.
11080         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
11081         (pcre_special): New constant.
11082         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11083         New functions.
11084         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11085         'const struct regex_quote_spec *' argument.
11086         * modules/regex-quote (Depends-on): Add stdbool.
11087         * tests/test-regex-quote.c (check): Update for new API. Add test for
11088         anchored results.
11089         * NEWS: Mention the API change.
11090         Reported by Reuben Thomas and Eric Blake.
11091
11092 2011-03-06  Bruno Haible  <bruno@clisp.org>
11093
11094         regex-quote: Fix creation of POSIX extended regular expressions.
11095         * lib/regex-quote.c (ere_special): Add grouping and alternation
11096         operators.
11097
11098 2011-03-05  Bruno Haible  <bruno@clisp.org>
11099
11100         doc: Improve doc regarding autopoint vs. gnulib.
11101         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
11102         disable autopoint while running autoreconf.
11103         Suggested by Ralf Wildenhues.
11104
11105 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11106
11107         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
11108         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
11109
11110 2011-03-03  Bruce Korb  <bkorb@gnu.org>
11111
11112         parse-duration: remove xalloc.h dependency
11113         * lib/parse-duration.c (parse_period): handle NULL return from
11114         strdup instead of calling xstrdup().
11115         * modules/parse-duration: remove "xalloc" dependency
11116
11117 2011-03-03  Matthew Booth  <mbooth@redhat.com>
11118
11119         bootstrap: honor m4_base when running aclocal
11120         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
11121
11122 2011-03-02  Jim Meyering  <meyering@redhat.com>
11123
11124         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
11125         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
11126         on request from Matt Booth.
11127
11128 2011-03-01  Eric Blake  <eblake@redhat.com>
11129
11130         test-link: work on Hurd
11131         * tests/test-link.h (test_link): Hurd rejects linking directories
11132         with EISDIR instead of the POSIX-mandated EPERM.
11133
11134 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
11135
11136         stdio: simplify by moving files to printf-posix, sigpipe
11137         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
11138         since this symbol is needed only if printf is replaced.
11139         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
11140         Require gl_ASM_SYMBOL_PREFIX.
11141         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
11142         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
11143         (Depends-on): Add 'raise'.
11144         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
11145         * modules/stdio (Files): Remove lib/stdio-write.c,
11146         m4/asm-underscore.m4.
11147         (Depends-on): Remove 'raise'.
11148
11149         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
11150         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
11151         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
11152         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
11153
11154 2011-02-28  Bruno Haible  <bruno@clisp.org>
11155
11156         localcharset: Assume ANSI C behaviour of free().
11157         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
11158         calling free().
11159         Suggested by Simon Josefsson <simon@josefsson.org>.
11160
11161 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
11162             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
11163             Bruno Haible  <bruno@clisp.org>  (tiny change)
11164
11165         On Cygwin, use /proc file system instead of win32 API.
11166         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
11167         Win32 file names.
11168         (DllMain): Simplify by removing Cygwin specific code.
11169         (find_shared_library_fullname): Use Linux specific implementation also
11170         for Cygwin.
11171         (get_shared_library_fullname): Update accordingly.
11172         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
11173         Win32 file names.
11174         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
11175         Cygwin specific code.
11176
11177 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
11178             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
11179
11180         Fix OpenMP flag detection for various Fortran compilers.
11181         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
11182         OpenMP-conditional compilation construct, to force compile
11183         failure with missing OpenMP flag.
11184         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
11185
11186 2011-02-25  Eric Blake  <eblake@redhat.com>
11187
11188         strstr: expand test coverage
11189         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
11190         compilation.
11191         * tests/test-memmem.c (main): Duplicate tests.
11192         * tests/test-strcasestr.c (main): Likewise.
11193         * tests/test-c-strcasestr.c (main): Likewise.
11194
11195 2011-02-25  Jim Meyering  <meyering@redhat.com>
11196
11197         maint.mk: detect missing-NL-at-EOF, too
11198         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
11199         it also detects when a file lacks a newline at EOF.
11200         (require_exactly_one_NL_at_EOF_): Renamed from
11201         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
11202         since people may well have .x-sc_... file names tied to the
11203         existing name.  Suggested by Eric Blake.
11204
11205 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11206
11207         dirname: move m4/dos.m4 functionality into lib/dosname.h
11208
11209         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
11210         extracts symbols from it, puts them into config.h; but it's much
11211         easier to use the symbols directly.  filename.h already does this,
11212         but it disagrees with dos.m4 in some respects.  This patch
11213         introduces a different include file dosname.h that packages up
11214         dos.m4, and then later we can work on merging filename.h and
11215         dosname.h.  Applications that need only the easy-to-configure
11216         symbols should consider including dosname.h rather than dirname.h.
11217         * NEWS: Mention incompatible changes.
11218         * m4/dos.m4: Remove.
11219         * lib/dosname.h, modules/dosname: New files.
11220         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
11221         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
11222         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
11223         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
11224         Include dosname.h, not dirname.h.
11225         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
11226         Include dosname.h, for definitions of symbols like ISSLASH
11227         that used to be in config.h.
11228         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
11229         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11230         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11231         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11232         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
11233         * modules/rmdir (Files): Likewise.
11234         * modules/stat (Files): Likewise.
11235         * modules/unlink (Files): Likewise.
11236         * modules/dirname-lgpl (Depends-on): Add dosname.
11237         * modules/lstat (Depends-on): Likewise.
11238         * modules/openat (Depends-on): Likewise.
11239         * modules/rmdir (Depends-on): Likewise.
11240         * modules/savewd (Depends-on): Likewise.
11241         * modules/stat (Depends-on): Likewise.
11242         * modules/unlink (Depends-on): Likewise.
11243         * modules/openat (Depends-on): Remove dirname-lgpl.
11244         * modules/savewd (Depends-on): Likewise.
11245         * tests/test-dirname.c: Do not use removed symbols like
11246         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
11247         the remaining symbols, e.g., ISSLASH ('\\').
11248
11249 2011-02-25  Eric Blake  <eblake@redhat.com>
11250
11251         strstr: revert patches that introduced bug and pessimization
11252         * lib/str-two-way.h: Add another reference.
11253         (two_way_short_needle, two_way_long_needle): Revert changes from
11254         2011-02-24; they pessimize search speed.
11255         (critical_factorization): Partially revert changes from
11256         2010-06-22; they violate the requirement that the left half of the
11257         needle be smaller than the period of the needle.
11258
11259 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11260
11261         filenamecat: remove unnecessary dependency on dirname-lgpl
11262         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
11263         is no direct dependency, just an indirect one via filenamecat-lgpl.
11264
11265         remove: remove unnecessary use of m4/dos.m4
11266         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
11267         * modules/remove (FILES): Remove m4/dos.m4.
11268
11269         * lib/openat-proc.c: Don't include dirname.h; not needed.
11270
11271         backupfile: remove unnecessary use of m4/dos.m4
11272         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
11273         of its symbols are used by the backupfile code.  backupfile.c does
11274         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
11275         for the rare case of programs that want all their backup file
11276         names to live within 8+3 limits, and dos.m4 doesn't address that.
11277         * modules/backupfile (Files): Remove m4/dos.m4.
11278
11279 2011-02-24  Jim Meyering  <meyering@redhat.com>
11280
11281         strstr: fix a bug whereby strstr would mistakenly return NULL
11282         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
11283         in period calculation.
11284         (two_way_long_needle): Likewise.
11285         The original problem was reported by Mike Stump in
11286         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
11287         Ralf Wildenhues provided the short needle and haystack.
11288         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
11289         Add a more involved test to trigger the bug in two_way_long_needle.
11290
11291 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11292
11293         gnulib-tool: remove use of bold display in help screen
11294         * gnulib-tool (func_usage): Do not use bold display anymore in the
11295         help screen.  That was just meant to be a temporary emphasis for a
11296         backward-incompatible change.
11297
11298 2011-02-23  Bruno Haible  <bruno@clisp.org>
11299
11300         Fix misindentation of preprocessor directives.
11301         * lib/argp-namefrob.h: Reindent preprocessor directives.
11302         * lib/getopt_int.h (struct _getopt_data): Likewise.
11303         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
11304         * lib/vasnprintf.c (decode_long_double): Likewise.
11305         * tests/test-argmatch.c: Insert blank lines, for clarity.
11306         * tests/test-exclude.c: Likewise.
11307
11308 2011-02-22  Bruno Haible  <bruno@clisp.org>
11309
11310         ioctl: Fix for MacOS X in 64-bit mode.
11311         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
11312         value.
11313         Suggested by Eric Blake.
11314         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
11315
11316 2011-02-22  Jim Meyering  <meyering@redhat.com>
11317
11318         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
11319         * Makefile (sc_cpp_indent_check): Don't limit the check to files
11320         in lib/.
11321
11322 2011-02-22  Eric Blake  <eblake@redhat.com>
11323
11324         maint: avoid any CDPATH issue
11325         * Makefile (sc_cpp_indent_check): Anchor cd argument.
11326
11327         maint: adjust cpp indentation for my modules, as well
11328         * Makefile (sc_cpp_indent_check): Add my name.
11329         * lib/fbufmode.c: Filter through cppi.
11330         * lib/fpurge.c: Likewise.
11331         * lib/freadable.c: Likewise.
11332         * lib/freading.c: Likewise.
11333         * lib/fwritable.c: Likewise.
11334         * lib/fwriting.c: Likewise.
11335         * lib/sigaction.c: Likewise.
11336
11337 2011-02-22  Jim Meyering  <meyering@redhat.com>
11338
11339         maint: adjust cpp indentation to reflect nesting depth
11340         I.e., in a block of code that begins with an unnested "#if",
11341         put one space between the "#" in column 1 and following token.
11342         For example,
11343         -#include <sys/vfs.h>
11344         +# include <sys/vfs.h>
11345         Do this only in .c files that are part of a module I maintain.
11346         * lib/linkat.c: Filter through cppi.
11347         * lib/nanosleep.c: Likewise.
11348         * lib/openat.c: Likewise.
11349         * lib/openat-die.c: Likewise.
11350         * lib/dup3.c: Likewise.
11351         * lib/fchownat.c: Likewise.
11352         * lib/flock.c: Likewise.
11353         * lib/fsync.c: Likewise.
11354         * lib/fts.c: Likewise.
11355         * lib/getpass.c: Likewise.
11356         * lib/gettimeofday.c: Likewise.
11357         * lib/userspec.c: Likewise.
11358         * Makefile (sc_cpp_indent_check): New rule, to check this.
11359
11360 2011-02-22  Bruno Haible  <bruno@clisp.org>
11361
11362         New module 'wctomb'.
11363         * lib/stdlib.in.h (wctomb): New declaration.
11364         * lib/wctomb.c: New file.
11365         * lib/wctomb-impl.h: New file.
11366         * m4/wctomb.m4: New file.
11367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
11368         REPLACE_WCTOMB.
11369         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
11370         REPLACE_WCTOMB.
11371         * modules/wctomb: New file.
11372         * tests/test-stdlib-c++.cc: Test signature of wctomb.
11373         * doc/posix-functions/wctomb.texi: Mention the new module.
11374         * modules/wctob (Depends-on): Add wctomb.
11375
11376 2011-02-22  Bruno Haible  <bruno@clisp.org>
11377
11378         New module 'mbtowc'.
11379         * lib/stdlib.in.h (mbtowc): New declaration.
11380         * lib/mbtowc.c: New file.
11381         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
11382         * m4/mbtowc.m4: New file.
11383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
11384         REPLACE_MBTOWC.
11385         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
11386         REPLACE_MBTOWC.
11387         * modules/mbtowc: New file.
11388         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
11389         * doc/posix-functions/mbtowc.texi: Mention the new module.
11390         * modules/btowc (Depends-on): Add mbtowc.
11391
11392 2011-02-22  Bruno Haible  <bruno@clisp.org>
11393
11394         wcrtomb: Add more tests for native Windows platforms.
11395         * tests/test-wcrtomb-w32-1.sh: New file.
11396         * tests/test-wcrtomb-w32-2.sh: New file.
11397         * tests/test-wcrtomb-w32-3.sh: New file.
11398         * tests/test-wcrtomb-w32-4.sh: New file.
11399         * tests/test-wcrtomb-w32-5.sh: New file.
11400         * tests/test-wcrtomb-w32.c: New file.
11401         * modules/wcrtomb-tests (Files): Add them.
11402         (Makefile.am): Arrange to run these tests.
11403         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
11404         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
11405
11406 2011-02-20  Bruno Haible  <bruno@clisp.org>
11407
11408         wcrtomb: Enhance test.
11409         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
11410
11411 2011-02-20  Bruno Haible  <bruno@clisp.org>
11412
11413         mbrtowc: Tiny optimization.
11414         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
11415
11416 2011-02-20  Jim Meyering  <meyering@redhat.com>
11417
11418         test-exclude.c: remove unmatched #endif
11419         * tests/test-exclude.c: Remove stray #endif, left over from
11420         the change of a week ago.
11421
11422 2011-02-19  Jim Meyering  <meyering@redhat.com>
11423
11424         git-version-gen: skip "-dirty" check when appropriate
11425         * build-aux/git-version-gen: Don't run any git commands when the
11426         version string comes from .tarball-version.  Prior to this, we
11427         would run git update-index --refresh even from a just-unpacked
11428         tarball directory, and that could affect a .git/ directory in a
11429         parent of the build directory.  Reported by Mike Frysinger.
11430
11431 2011-02-19  Bruno Haible  <bruno@clisp.org>
11432
11433         unictype/property-byname: Reduce the size of the 'data' segment.
11434         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
11435
11436 2011-02-19  Bruno Haible  <bruno@clisp.org>
11437
11438         unictype/scripts: Reduce the size of the 'data' segment.
11439         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
11440         '%pic'.
11441         * lib/unictype/scripts_byname.gperf: Regenerated.
11442
11443 2011-02-19  Bruno Haible  <bruno@clisp.org>
11444
11445         stdint: Update documentation.
11446         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
11447
11448 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
11449
11450         stdint: omit redundant check for wchar.h
11451         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
11452         always tests whether wchar.h exists, so remove the now-redundant test.
11453
11454 2011-02-18  Bruno Haible  <bruno@clisp.org>
11455
11456         stdint: Cut dependency to module 'wchar'.
11457         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
11458         include the necessary prerequisites.
11459         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
11460         * modules/stdint (Depends-on): Remove wchar.
11461         (Makefile.am): Substitute HAVE_WCHAR_H.
11462         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
11463
11464 2011-02-18  Eric Blake  <eblake@redhat.com>
11465
11466         longlong: skip, rather than fail, on cross-compilation
11467         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
11468         when cross-compiling; regression from 2011-02-16.
11469
11470 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11471
11472         * NEWS: Mention 2011-02-08 change to stdlib.
11473
11474 2011-02-17  Bruno Haible  <bruno@clisp.org>
11475
11476         getloadavg: Add comments about platforms.
11477         * m4/getloadavg.m4: Add comment.
11478         * lib/getloadavg.c: Likewise.
11479
11480 2011-02-17  Bruno Haible  <bruno@clisp.org>
11481
11482         getloadavg: Fix link error on Solaris 2.6.
11483         * modules/getloadavg (Link): New section.
11484         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
11485         linking test-getloadavg.
11486         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
11487         getloadavg.
11488
11489 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11490
11491         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
11492         It was 'int', but this doesn't match the IRIX 6.5 manual.
11493         Suggested by Bruno Haible in
11494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
11495
11496 2011-02-17  Bruno Haible  <bruno@clisp.org>
11497
11498         havelib: Fix comments.
11499         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
11500         change.
11501
11502 2011-02-17  Bruno Haible  <bruno@clisp.org>
11503
11504         havelib: Update config.rpath.
11505         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
11506
11507 2011-02-17  Bruno Haible  <bruno@clisp.org>
11508
11509         getloadavg test: Add some plausibility checks.
11510         * tests/test-getloadavg.c (check_avg): Print a warning when the value
11511         is improbable.
11512
11513 2011-02-16  Eric Blake  <eblake@redhat.com>
11514
11515         maintainer-makefile: make syntax-check a no-op from tarballs
11516         * top/maint.mk (no-vc-detected): New rule.
11517         (local-checks-available): Use it to avoid hanging if someone tries
11518         'make syntax-check' from a tarball.  Also append to any non-syntax
11519         checks already defined in cfg.mk.
11520
11521 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
11522
11523         longlong: tune, particularly for common case of c99
11524
11525         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
11526         or running anything if c99, or if unsigned long long int does not
11527         work.  In either case, we know the answer without further tests.
11528         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
11529         it at most once, and use its results for both long long int and
11530         unsigned long long int.  This is more likely to be efficient in
11531         the common case where the program wants to check for both long
11532         long int and unsigned long long int.
11533         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
11534         since the answer is already known.
11535
11536 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
11537
11538         getloadavg: set errno
11539         * lib/getloadavg.c: Set errno when returning -1.  If no other
11540         error number looks appropriate, set it to ENOSYS if the getloadavg
11541         looks like it can't possibly ever work, ENOTSUP otherwise.
11542         Suggested by Bruno Haible in
11543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
11544
11545         getloadavg: trim unused parts and speed up 'configure'
11546         * NEWS: Document this.
11547         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
11548         always compiled if getloadavg is absent.
11549         Move test code to ...
11550         * tests/test-getloadavg.c: New file, containing previous
11551         contents of test from lib/getloadavg.c.  It also contains
11552         suggestions by Bruno Haible in
11553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
11554         * modules/getloadavg-tests: New file.
11555         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
11556         Do tests in the same order as they're needed for getloadavg.c.
11557         Omit setgid-related tests that generate symbols KMEM_GROUP,
11558         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
11559         Do only the tests that are needed to see whether the system has
11560         getloadavg, moving the other tests into ...
11561         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
11562         NLIST_NAME_UNION; nobody should be using it.  Do not define
11563         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
11564         relevant, as the user of this module shouldn't care how getloadavg
11565         is implemented.
11566
11567         getloadavg: omit unused var
11568         * lib/getloadavg.c (getloadavg): Omit unused local variable.
11569
11570 2011-02-15  Jim Meyering  <meyering@redhat.com>
11571
11572         doc: update users.txt
11573         * users.txt: Update iwhd's URL.
11574
11575 2011-02-13  Bruno Haible  <bruno@clisp.org>
11576
11577         Consistent macro naming for macros that use GCC __attribute__.
11578         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
11579         _ATTRIBUTE_NONNULL_.
11580         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
11581         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
11582         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
11583         ATTRIBUTE_DEPRECATED.
11584         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
11585         ATTRIBUTE_NORETURN.
11586         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11587         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11588         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11589         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11590         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
11591         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
11592         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
11593         ATTRIBUTE_SENTINEL.
11594         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
11595         ATTRIBUTE_RETURN_CHECK.
11596         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
11597         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
11598         ATTRIBUTE_NORETURN.
11599         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
11600         Reported by Paul Eggert.
11601
11602 2011-02-13  Bruno Haible  <bruno@clisp.org>
11603
11604         Don't interfere with a program's definition of __attribute__.
11605         * lib/argp.h (__attribute__): Remove definition.
11606         (_GL_ATTRIBUTE_FORMAT): New macro.
11607         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
11608         * lib/argp-fmtstream.h (__attribute__): Remove definition.
11609         (_GL_ATTRIBUTE_FORMAT): New macro.
11610         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
11611         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
11612         GCC 3 or newer.
11613         * lib/error.h (__attribute__): Remove definition.
11614         (_GL_ATTRIBUTE_FORMAT): New macro.
11615         (error, error_at_line): Use it.
11616         * lib/hash.h (__attribute__): Remove definition.
11617         (ATTRIBUTE_WUR): Update definition. Define always.
11618         * lib/openat.h (__attribute__): Remove definition.
11619         (ATTRIBUTE_NORETURN): Update definition. Define always.
11620         * lib/sigpipe-die.h (__attribute__): Remove definition.
11621         (ATTRIBUTE_NORETURN): Update definition. Define always.
11622         * lib/vasnprintf.h (__attribute__): Remove definition.
11623         (_GL_ATTRIBUTE_FORMAT): New macro.
11624         (asnprintf, vasnprintf): Use it.
11625         * lib/xalloc.h (__attribute__): Remove definition.
11626         (ATTRIBUTE_NORETURN): Update definition. Define always.
11627         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
11628         * lib/xmemdup0.h (__attribute__): Remove definition.
11629         (ATTRIBUTE_NORETURN): Update definition. Define always.
11630         * lib/xprintf.h (__attribute__): Remove definition.
11631         (_GL_ATTRIBUTE_FORMAT): New macro.
11632         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
11633         * lib/xstrtol.h (__attribute__): Remove definition.
11634         (ATTRIBUTE_NORETURN): Update definition. Define always.
11635         * lib/xvasprintf.h (__attribute__): Remove definition.
11636         (_GL_ATTRIBUTE_FORMAT): New macro.
11637         (xasprintf, xvasprintf): Use it.
11638         * tests/test-argmatch.c (__attribute__): Remove definition.
11639         (ATTRIBUTE_NORETURN): Update definition. Define always.
11640         * tests/test-exclude.c (__attribute__): Remove definition.
11641         (ATTRIBUTE_NORETURN): Update definition. Define always.
11642         Reported by Paul Eggert.
11643
11644 2011-02-13  Bruno Haible  <bruno@clisp.org>
11645
11646         mbrtowc: Add more tests for native Windows platforms.
11647         * tests/test-mbrtowc-w32-1.sh: New file.
11648         * tests/test-mbrtowc-w32-2.sh: New file.
11649         * tests/test-mbrtowc-w32-3.sh: New file.
11650         * tests/test-mbrtowc-w32-4.sh: New file.
11651         * tests/test-mbrtowc-w32-5.sh: New file.
11652         * tests/test-mbrtowc-w32.c: New file.
11653         * modules/mbrtowc-tests (Files): Add them.
11654         (Makefile.am): Arrange to run these tests.
11655         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
11656         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
11657
11658 2011-02-13  Bruno Haible  <bruno@clisp.org>
11659
11660         mbrtowc: Work around native Windows bug.
11661         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
11662         guess when no suitable locale for testing was found.
11663         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
11664
11665 2011-02-13  Bruno Haible  <bruno@clisp.org>
11666
11667         mbsinit: Work around mingw bug.
11668         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
11669         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
11670         Windows.
11671         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
11672
11673 2011-02-13  Bruno Haible  <bruno@clisp.org>
11674
11675         mbsinit: Don't crash for a NULL argument.
11676         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
11677         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
11678
11679 2011-02-13  Bruno Haible  <bruno@clisp.org>
11680
11681         Don't interfere with a program's definition of __attribute__.
11682         * lib/stdio.in.h (__attribute__): Remove definition.
11683         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
11684         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
11685         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
11686         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
11687         * lib/string.in.h (__attribute__): Remove definition.
11688         Reported by Paul Eggert.
11689
11690 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11691
11692         stdlib: don't get in the way of non-GCC __attribute__
11693         See thread starting at
11694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
11695         Revert previous stdlib change, installing the following instead:
11696         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
11697         to get in the way of a non-GCC compiler that supports __attribute__.
11698         (_GL_ATTRIBUTE_RETURN): New macro.
11699         (_Exit): Use it instead of __attribute__.
11700
11701 2011-02-12  Bruno Haible  <bruno@clisp.org>
11702
11703         quotearg test: Avoid test failure on mingw.
11704         * tests/test-quotearg.sh: Convert the locale identifier from native
11705         Windows syntax to Unix syntax.
11706
11707 2011-02-12  Bruno Haible  <bruno@clisp.org>
11708
11709         setlocale: Prefer gnulib's override over libintl's override.
11710         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
11711         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
11712         GNULIB_defined_setlocale is set.
11713
11714 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11715
11716         stdlib: support non-GCC __attribute__
11717
11718         Fix a serious and tricky problem encountered when attempting to
11719         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
11720         5.5, but it crashed due to memory corruption on Solaris 10 with
11721         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
11722         bits that are otherwise zero.  This tagging is optional inside
11723         Emacs but is preferred and is used when __attribute__ ((__aligned
11724         (8))) works, as it does with both recent-enough GCC and with Sun C
11725         5.11.  However, Sun C 5.11 is not GCC and does not #define
11726         __GNUC__ and __GNUC_MINOR__.
11727
11728         When I added the getloadavg module to Emacs, it brought in
11729         stdlib.in.h, which contained this fragment:
11730
11731            #ifndef __attribute__
11732            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
11733            #  define __attribute__(Spec)   /* empty */
11734            # endif
11735            #endif
11736
11737         When files that include <stdlib.h> were compiled with Sun C 5.11,
11738         the above code disabled __attribute__ ((__aligned (8))), which
11739         caused variables to not be properly aligned, which eventually led
11740         to the pointer corruption mentioned above.  (This was a bit hard
11741         to diagnose, unfortunately.)
11742
11743         Several "#define __attribute__(X) /* empty */" code snippets need
11744         to be eradicated from Gnulib to work with non-GCC compilers that
11745         support __attribute__.  The Autoconf way to do this is to test for
11746         each kind of attribute that we want support for, and selectively
11747         enable that in source code.
11748
11749         Fix this problem just for stdlib.h, by adding a test for the
11750         __noreturn__ attribute, and change stdlib.in.h to use that test
11751         when needed.  This technique can be easily generalized to the
11752         other *.in.h files and attributes, and a similar technique can be
11753         used for *.h and *.c files.  This patch is enough to solve the
11754         problem for Emacs + getloadavg, and I thought I'd publish it for
11755         feedback before undertaking further, similar fixes in other
11756         modules.
11757
11758         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
11759         because it's not needed for stdlib.h.  It merely substitutes the
11760         value directly into stdlib.h.  We may well need to #define it, or
11761         similar symbols, for other modules, but it's nice to also have an
11762         option to not #define it for applications like Emacs that do not
11763         need it.
11764
11765         * lib/stdlib.in.h (__attribute__): Do not #define.
11766         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
11767         be defined only if the _Exit module is also used.
11768         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
11769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
11770         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
11771         platforms.
11772         * modules/_Exit (Files): Add m4/attribute.m4.
11773         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
11774         * m4/attribute.m4: New file.
11775
11776 2011-02-12  Bruno Haible  <bruno@clisp.org>
11777
11778         wcsrtombs: Work around bug on native Windows.
11779         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
11780         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
11781         instead of len.
11782         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
11783
11784 2011-02-12  Bruno Haible  <bruno@clisp.org>
11785
11786         mbsrtowcs: Work around bug on native Windows.
11787         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
11788         against mingw bug.
11789         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
11790
11791 2011-02-12  Bruno Haible  <bruno@clisp.org>
11792
11793         Avoid setlocale bugs in tests.
11794         * modules/btowc (Dependencies): Add setlocale.
11795         * modules/c-strcase (Dependencies): Likewise.
11796         * modules/mbmemcasecmp (Dependencies): Likewise.
11797         * modules/mbmemcasecoll (Dependencies): Likewise.
11798         * modules/mbrtowc (Dependencies): Likewise.
11799         * modules/mbscasecmp (Dependencies): Likewise.
11800         * modules/mbscasestr (Dependencies): Likewise.
11801         * modules/mbschr (Dependencies): Likewise.
11802         * modules/mbscspn (Dependencies): Likewise.
11803         * modules/mbsinit (Dependencies): Likewise.
11804         * modules/mbsncasecmp (Dependencies): Likewise.
11805         * modules/mbsnrtowcs (Dependencies): Likewise.
11806         * modules/mbspbrk (Dependencies): Likewise.
11807         * modules/mbspcasecmp (Dependencies): Likewise.
11808         * modules/mbsrchr (Dependencies): Likewise.
11809         * modules/mbsrtowcs (Dependencies): Likewise.
11810         * modules/mbsspn (Dependencies): Likewise.
11811         * modules/mbsstr (Dependencies): Likewise.
11812         * modules/nl_langinfo (Dependencies): Likewise.
11813         * modules/quotearg (Dependencies): Likewise.
11814         * modules/unicase/locale-language (Dependencies): Likewise.
11815         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
11816         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
11817         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
11818         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
11819         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
11820         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
11821         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
11822         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
11823         * modules/vasnprintf-posix (Dependencies): Likewise.
11824         * modules/wcrtomb (Dependencies): Likewise.
11825         * modules/wcsnrtombs (Dependencies): Likewise.
11826         * modules/wcsrtombs (Dependencies): Likewise.
11827
11828 2011-02-12  Bruno Haible  <bruno@clisp.org>
11829
11830         setlocale: Workaround native Windows bug.
11831         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
11832         succeeds but sets LC_CTYPE to "C", report a failure.
11833         * tests/test-setlocale2.sh: New file.
11834         * tests/test-setlocale2.c: New file.
11835         * modules/setlocale-tests (Files): Add the new files.
11836         (Makefile.am): Enable test-setlocale2.sh test.
11837         * doc/posix-functions/setlocale.texi: Mention workaround.
11838
11839 2011-02-11  Bruno Haible  <bruno@clisp.org>
11840
11841         Tests for module 'setlocale'.
11842         * modules/setlocale-tests: New file.
11843         * tests/test-setlocale1.sh: New file.
11844         * tests/test-setlocale1.c: New file.
11845
11846         New module 'setlocale'.
11847         * lib/locale.in.h (setlocale): New declaration.
11848         * lib/setlocale.c: New file, based on
11849         gettext/gettext-runtime/intl/setlocale.c.
11850         * m4/setlocale.m4: New file.
11851         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
11852         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
11853         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
11854         REPLACE_SETLOCALE.
11855         * modules/setlocale: New file.
11856         * tests/test-locale-c++.cc: Test the declaration of setlocale.
11857         * doc/posix-functions/setlocale.texi: Mention the new module.
11858
11859 2011-02-11  Bruno Haible  <bruno@clisp.org>
11860
11861         Prepare for locale dependent tests on mingw.
11862         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
11863         because it has the wrong locale encoding.
11864         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
11865         French_France.1252 instead of "fr".
11866         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
11867         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
11868         because it has the wrong locale encoding.
11869         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
11870         native Windows, try Turkish_Turkey.65001.
11871         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
11872         Chinese_China.54936.
11873
11874         Prepare for locale dependent tests on mingw.
11875         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
11876         differently.
11877         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
11878         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
11879         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11880         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11881
11882 2011-02-11  Eric Blake  <eblake@redhat.com>
11883
11884         strptime: avoid compiler warnings
11885         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
11886         compiler warnings about dead code.
11887         Reported by Daniel P. Berrange.
11888
11889 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
11890
11891         doc: update users.txt
11892         * users.txt: Add rcs.
11893
11894 2011-02-10  John W. Eaton  <jwe@gnu.org>
11895
11896         doc: update users.txt
11897         * users.txt: Add octave.
11898
11899 2011-02-10  Jim Meyering  <meyering@redhat.com>
11900
11901         doc: update users.txt
11902         * users.txt: Add iwhd.
11903
11904 2011-02-09  Bruno Haible  <bruno@clisp.org>
11905
11906         gnulib-tool: Make copyright notice adjustment more robust.
11907         * gnulib-tool (func_import): In sed_transform_main_lib_file,
11908         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
11909         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
11910         License".
11911         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
11912
11913 2011-02-06  Bruno Haible  <bruno@clisp.org>
11914
11915         New module 'towctrans'.
11916         * modules/towctrans: New file.
11917         * lib/wctype.in.h (towctrans): New declaration.
11918         * lib/towctrans.c: New file.
11919         * lib/towctrans-impl.h: New file.
11920         * m4/towctrans.m4: New file.
11921         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
11922         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
11923         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
11924         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
11925         * doc/posix-functions/towctrans.texi: Mention the new module.
11926
11927 2011-02-06  Bruno Haible  <bruno@clisp.org>
11928
11929         New module 'wctrans'.
11930         * modules/wctrans: New file.
11931         * lib/wctype.in.h (wctrans): New declaration.
11932         * lib/wctrans.c: New file.
11933         * lib/wctrans-impl.h: New file.
11934         * m4/wctrans.m4: New file.
11935         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
11936         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
11937         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
11938         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
11939         * doc/posix-functions/wctrans.texi: Mention the new module.
11940
11941 2011-02-06  Bruno Haible  <bruno@clisp.org>
11942
11943         New module 'iswctype'.
11944         * modules/iswctype: New file.
11945         * lib/wctype.in.h (iswctype): New declaration.
11946         * lib/iswctype.c: New file.
11947         * lib/iswctype-impl.h: New file.
11948         * m4/iswctype.m4: New file.
11949         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
11950         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
11951         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
11952         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
11953         * doc/posix-functions/iswctype.texi: Mention the new module and the
11954         HP-UX 11.00 problem.
11955
11956 2011-02-06  Bruno Haible  <bruno@clisp.org>
11957
11958         New module 'wctype'.
11959         * modules/wctype: Change to represent the wctype() substitute.
11960         * lib/wctype.in.h (wctype): New declaration.
11961         * lib/wctype.c: New file.
11962         * lib/wctype-impl.h: New file.
11963         * m4/wctype.m4: New file.
11964         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
11965         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
11966         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
11967         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
11968         * doc/posix-functions/wctype.texi: Mention the new module and the
11969         HP-UX 11.00 problem.
11970
11971 2011-02-06  Bruno Haible  <bruno@clisp.org>
11972
11973         wctype-h: Ensure wctype_t and wctrans_t are defined.
11974         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11975         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11976         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11977         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11978         HAVE_WCTRANS_T.
11979         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11980
11981 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11982
11983         flock: fix license typo
11984
11985         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11986         omitted.
11987
11988 2011-02-08  Bruno Haible  <bruno@clisp.org>
11989
11990         Split large sed scripts, for HP-UX sed.
11991         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11992         to avoid HP-UX limit of 99 commands, in the near future.
11993         * modules/stdlib (Makefile.am): Likewise.
11994         * modules/unistd (Makefile.am): Likewise.
11995         * modules/wchar (Makefile.am): Likewise.
11996         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11997         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11998         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11999
12000 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12001             Bruno Haible  <bruno@clisp.org>
12002
12003         stdlib: improve random_r modularization
12004         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
12005         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
12006         you also need the random_r module to get this material right.
12007         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
12008         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
12009         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
12010
12011 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12012
12013         stdlib: don't depend on stdint
12014         * lib/stdlib.in.h: Don't include <stdint.h> merely because
12015         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
12016         be independent of whether stdint.h is needed.
12017         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
12018         here, instead of ...
12019         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
12020         struct random_data should be using the random_r module, not just
12021         the stdlib module (which wouldn't make sense: what package needs
12022         just struct random_data without also needing random_r?).
12023         * modules/stdlib (Depends-on): Remove stdint.
12024
12025         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
12026         See the thread rooted at
12027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
12028         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
12029         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
12030         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
12031         __VMS)); previously it was always included (via fcntl--.h).
12032         (getloadavg): Do not use c_strtod.  Instead, approximate it by
12033         hand; this is good enough for load averages.  Also, do not use
12034         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
12035         flags directly if available and don't bother otherwise.  (Packages
12036         that need the extra reliability should use the modules that define
12037         these flags on older platforms that lack them.)
12038         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
12039         fcntl-safer.
12040
12041 2011-02-08  Jim Meyering  <meyering@redhat.com>
12042
12043         di-set.h, ino-map.h: add multiple-inclusion guard
12044         Technically, the guard is required only for ino-map.h, due to its
12045         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
12046         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
12047         * lib/ino-map.h: Likewise.
12048
12049 2011-02-06  Bruno Haible  <bruno@clisp.org>
12050
12051         iswblank: Ensure declaration on glibc systems.
12052         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
12053         * modules/iswblank (Dependencies): Add 'extensions'.
12054         * doc/posix-functions/iswblank.texi: Document the glibc problem.
12055
12056 2011-02-06  Bruno Haible  <bruno@clisp.org>
12057
12058         New module 'iswblank'.
12059         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
12060         * modules/iswblank: New file.
12061         * modules/wctype-h (Files): Remove lib/iswblank.c.
12062         (Makefile.am): Substitute GNULIB_ISWBLANK.
12063         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
12064         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
12065         (gl_WCTYPE_H_DEFAULTS): New macro.
12066         (gl_WCTYPE_H): Require it. Remove iswblank related code.
12067         * modules/iswblank-tests: New file.
12068         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
12069         * tests/test-wctype-h.c (main): Remove iswblank tests.
12070         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
12071         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
12072         of 'wctype-h'.
12073         * NEWS: Mention the change.
12074         * modules/mbchar (Depends-on): Add iswblank.
12075
12076 2011-02-08  Bruno Haible  <bruno@clisp.org>
12077
12078         di-set tests: Refactor.
12079         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
12080         unnecessary includes.
12081         (ASSERT): Remove macro.
12082         (main): Make C90 compliant by avoiding variable declaration after
12083         statement.
12084         * modules/di-set-tests (Files): Add tests/macros.h.
12085
12086 2011-02-08  Bruno Haible  <bruno@clisp.org>
12087
12088         ino-map tests: Refactor.
12089         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
12090         unnecessary includes.
12091         (ASSERT): Remove macro.
12092         (main): Make C90 compliant by avoiding variable declaration after
12093         statement.
12094         * modules/ino-map-tests (Files): Add tests/macros.h.
12095
12096 2011-02-08  Jim Meyering  <meyering@redhat.com>
12097
12098         di-set: add "const" to a cast
12099         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
12100         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
12101
12102 2011-02-06  Bruno Haible  <bruno@clisp.org>
12103
12104         Rename module 'wctype' to 'wctype-h'.
12105         * modules/wctype-h: Renamed from modules/wctype.
12106         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
12107         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
12108         (Files, Depends-on, Makefile.am): Update.
12109         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
12110         (Files, Makefile.am): Update.
12111         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
12112         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
12113         * doc/posix-headers/wctype.texi: Update.
12114         * doc/posix-functions/iswalnum.texi: Update.
12115         * doc/posix-functions/iswalpha.texi: Update.
12116         * doc/posix-functions/iswblank.texi: Update.
12117         * doc/posix-functions/iswcntrl.texi: Update.
12118         * doc/posix-functions/iswdigit.texi: Update.
12119         * doc/posix-functions/iswgraph.texi: Update.
12120         * doc/posix-functions/iswlower.texi: Update.
12121         * doc/posix-functions/iswprint.texi: Update.
12122         * doc/posix-functions/iswpunct.texi: Update.
12123         * doc/posix-functions/iswspace.texi: Update.
12124         * doc/posix-functions/iswupper.texi: Update.
12125         * doc/posix-functions/iswxdigit.texi: Update.
12126         * doc/posix-functions/towlower.texi: Update.
12127         * doc/posix-functions/towupper.texi: Update.
12128         * NEWS: Mention the change.
12129         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
12130         * modules/mbchar (Dependencies): Likewise.
12131         * modules/mbswidth (Dependencies): Likewise.
12132         * modules/quotearg (Dependencies): Likewise.
12133         * modules/regex (Dependencies): Likewise.
12134         * modules/wcscasecmp (Dependencies): Likewise.
12135         * modules/wcsncasecmp (Dependencies): Likewise.
12136         * modules/wcwidth (Dependencies): Likewise.
12137
12138 2011-02-06  Bruno Haible  <bruno@clisp.org>
12139
12140         New module 'wcswidth'.
12141         * modules/wcswidth: New file.
12142         * lib/wchar.in.h (wcswidth): New declaration.
12143         * lib/wcswidth.c: New file.
12144         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
12145         * m4/wcswidth.m4: New file.
12146         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
12147         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
12148         REPLACE_WCSWIDTH.
12149         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
12150         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
12151         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
12152         * doc/posix-functions/wcswidth.texi: Mention the new module.
12153
12154 2011-02-06  Bruno Haible  <bruno@clisp.org>
12155
12156         New module 'wcstok'.
12157         * modules/wcstok: New file.
12158         * lib/wchar.in.h (wcstok): New declaration.
12159         * lib/wcstok.c: New file.
12160         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
12161         * m4/wcstok.m4: New file.
12162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
12163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
12164         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
12165         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
12166         * doc/posix-functions/wcstok.texi: Mention the new module.
12167
12168 2011-02-06  Bruno Haible  <bruno@clisp.org>
12169
12170         New module 'wcsstr'.
12171         * modules/wcsstr: New file.
12172         * lib/wchar.in.h (wcsstr): New declaration.
12173         * lib/wcsstr.c: New file.
12174         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
12175         * m4/wcsstr.m4: New file.
12176         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
12177         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
12178         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
12179         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
12180         * doc/posix-functions/wcsstr.texi: Mention the new module.
12181
12182 2011-02-06  Bruno Haible  <bruno@clisp.org>
12183
12184         New module 'wcspbrk'.
12185         * modules/wcspbrk: New file.
12186         * lib/wchar.in.h (wcspbrk): New declaration.
12187         * lib/wcspbrk.c: New file.
12188         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
12189         * m4/wcspbrk.m4: New file.
12190         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
12191         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
12192         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
12193         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
12194         * doc/posix-functions/wcspbrk.texi: Mention the new module.
12195
12196 2011-02-06  Bruno Haible  <bruno@clisp.org>
12197
12198         New module 'wcsspn'.
12199         * modules/wcsspn: New file.
12200         * lib/wchar.in.h (wcsspn): New declaration.
12201         * lib/wcsspn.c: New file.
12202         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
12203         * m4/wcsspn.m4: New file.
12204         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
12205         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
12206         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
12207         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
12208         * doc/posix-functions/wcsspn.texi: Mention the new module.
12209
12210 2011-02-06  Bruno Haible  <bruno@clisp.org>
12211
12212         New module 'wcscspn'.
12213         * modules/wcscspn: New file.
12214         * lib/wchar.in.h (wcscspn): New declaration.
12215         * lib/wcscspn.c: New file.
12216         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
12217         * m4/wcscspn.m4: New file.
12218         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
12219         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
12220         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
12221         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
12222         * doc/posix-functions/wcscspn.texi: Mention the new module.
12223
12224 2011-02-06  Bruno Haible  <bruno@clisp.org>
12225
12226         New module 'wcsrchr'.
12227         * modules/wcsrchr: New file.
12228         * lib/wchar.in.h (wcsrchr): New declaration.
12229         * lib/wcsrchr.c: New file.
12230         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
12231         * m4/wcsrchr.m4: New file.
12232         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
12233         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
12234         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
12235         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
12236         * doc/posix-functions/wcsrchr.texi: Mention the new module.
12237
12238 2011-02-06  Bruno Haible  <bruno@clisp.org>
12239
12240         New module 'wcschr'.
12241         * modules/wcschr: New file.
12242         * lib/wchar.in.h (wcschr): New declaration.
12243         * lib/wcschr.c: New file.
12244         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
12245         * m4/wcschr.m4: New file.
12246         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
12247         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
12248         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
12249         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
12250         * doc/posix-functions/wcschr.texi: Mention the new module.
12251
12252 2011-02-06  Bruno Haible  <bruno@clisp.org>
12253
12254         New module 'wcsdup'.
12255         * modules/wcsdup: New file.
12256         * lib/wchar.in.h (wcsdup): New declaration.
12257         * lib/wcsdup.c: New file.
12258         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
12259         * m4/wcsdup.m4: New file.
12260         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
12261         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
12262         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
12263         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
12264         * doc/posix-functions/wcsdup.texi: Mention the new module.
12265
12266 2011-02-06  Bruno Haible  <bruno@clisp.org>
12267
12268         New module 'wcsxfrm'.
12269         * modules/wcsxfrm: New file.
12270         * lib/wchar.in.h (wcsxfrm): New declaration.
12271         * lib/wcsxfrm.c: New file.
12272         * lib/wcsxfrm-impl.h: New file.
12273         * m4/wcsxfrm.m4: New file.
12274         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
12275         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
12276         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
12277         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
12278         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
12279
12280 2011-02-06  Bruno Haible  <bruno@clisp.org>
12281
12282         New module 'wcscoll'.
12283         * modules/wcscoll: New file.
12284         * lib/wchar.in.h (wcscoll): New declaration.
12285         * lib/wcscoll.c: New file.
12286         * lib/wcscoll-impl.h: New file.
12287         * m4/wcscoll.m4: New file.
12288         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
12289         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
12290         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
12291         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
12292         * doc/posix-functions/wcscoll.texi: Mention the new module.
12293
12294 2011-02-06  Bruno Haible  <bruno@clisp.org>
12295
12296         New module 'wcsncasecmp'.
12297         * modules/wcsncasecmp: New file.
12298         * lib/wchar.in.h (wcsncasecmp): New declaration.
12299         * lib/wcsncasecmp.c: New file.
12300         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
12301         * m4/wcsncasecmp.m4: New file.
12302         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
12303         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
12304         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
12305         HAVE_WCSNCASECMP.
12306         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
12307         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
12308
12309 2011-02-06  Bruno Haible  <bruno@clisp.org>
12310
12311         New module 'wcscasecmp'.
12312         * modules/wcscasecmp: New file.
12313         * lib/wchar.in.h (wcscasecmp): New declaration.
12314         * lib/wcscasecmp.c: New file.
12315         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
12316         * m4/wcscasecmp.m4: New file.
12317         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
12318         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
12319         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
12320         HAVE_WCSCASECMP.
12321         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
12322         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
12323
12324 2011-02-05  Bruno Haible  <bruno@clisp.org>
12325
12326         New module 'wcsncmp'.
12327         * modules/wcsncmp: New file.
12328         * lib/wchar.in.h (wcsncmp): New declaration.
12329         * lib/wcsncmp.c: New file.
12330         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
12331         * m4/wcsncmp.m4: New file.
12332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
12333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
12334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
12335         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
12336         * doc/posix-functions/wcsncmp.texi: Mention the new module.
12337
12338 2011-02-05  Bruno Haible  <bruno@clisp.org>
12339
12340         New module 'wcscmp'.
12341         * modules/wcscmp: New file.
12342         * lib/wchar.in.h (wcscmp): New declaration.
12343         * lib/wcscmp.c: New file.
12344         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
12345         * m4/wcscmp.m4: New file.
12346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
12347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
12348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
12349         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
12350         * doc/posix-functions/wcscmp.texi: Mention the new module.
12351
12352 2011-02-05  Bruno Haible  <bruno@clisp.org>
12353
12354         New module 'wcsncat'.
12355         * modules/wcsncat: New file.
12356         * lib/wchar.in.h (wcsncat): New declaration.
12357         * lib/wcsncat.c: New file.
12358         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
12359         * m4/wcsncat.m4: New file.
12360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
12361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
12362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
12363         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
12364         * doc/posix-functions/wcsncat.texi: Mention the new module.
12365
12366 2011-02-05  Bruno Haible  <bruno@clisp.org>
12367
12368         New module 'wcscat'.
12369         * modules/wcscat: New file.
12370         * lib/wchar.in.h (wcscat): New declaration.
12371         * lib/wcscat.c: New file.
12372         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
12373         * m4/wcscat.m4: New file.
12374         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
12375         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
12376         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
12377         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
12378         * doc/posix-functions/wcscat.texi: Mention the new module.
12379
12380 2011-02-05  Bruno Haible  <bruno@clisp.org>
12381
12382         New module 'wcpncpy'.
12383         * modules/wcpncpy: New file.
12384         * lib/wchar.in.h (wcpncpy): New declaration.
12385         * lib/wcpncpy.c: New file.
12386         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
12387         * m4/wcpncpy.m4: New file.
12388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
12389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
12390         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
12391         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
12392         * doc/posix-functions/wcpncpy.texi: Mention the new module.
12393
12394 2011-02-05  Bruno Haible  <bruno@clisp.org>
12395
12396         New module 'wcsncpy'.
12397         * modules/wcsncpy: New file.
12398         * lib/wchar.in.h (wcsncpy): New declaration.
12399         * lib/wcsncpy.c: New file.
12400         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
12401         * m4/wcsncpy.m4: New file.
12402         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
12403         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
12404         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
12405         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
12406         * doc/posix-functions/wcsncpy.texi: Mention the new module.
12407
12408 2011-02-05  Bruno Haible  <bruno@clisp.org>
12409
12410         New module 'wcpcpy'.
12411         * modules/wcpcpy: New file.
12412         * lib/wchar.in.h (wcpcpy): New declaration.
12413         * lib/wcpcpy.c: New file.
12414         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
12415         * m4/wcpcpy.m4: New file.
12416         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
12417         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
12418         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
12419         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
12420         * doc/posix-functions/wcpcpy.texi: Mention the new module.
12421
12422 2011-02-05  Bruno Haible  <bruno@clisp.org>
12423
12424         New module 'wcscpy'.
12425         * modules/wcscpy: New file.
12426         * lib/wchar.in.h (wcscpy): New declaration.
12427         * lib/wcscpy.c: New file.
12428         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
12429         * m4/wcscpy.m4: New file.
12430         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
12431         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
12432         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
12433         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
12434         * doc/posix-functions/wcscpy.texi: Mention the new module.
12435
12436 2011-02-05  Bruno Haible  <bruno@clisp.org>
12437
12438         New module 'wcsnlen'.
12439         * modules/wcsnlen: New file.
12440         * lib/wchar.in.h (wcsnlen): New declaration.
12441         * lib/wcsnlen.c: New file.
12442         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
12443         * m4/wcsnlen.m4: New file.
12444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
12445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
12446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
12447         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
12448         * doc/posix-functions/wcsnlen.texi: Mention the new module.
12449
12450 2011-02-05  Bruno Haible  <bruno@clisp.org>
12451
12452         New module 'wcslen'.
12453         * modules/wcslen: New file.
12454         * lib/wchar.in.h (wcslen): New declaration.
12455         * lib/wcslen.c: New file.
12456         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
12457         * m4/wcslen.m4: New file.
12458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
12459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
12460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
12461         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
12462         * doc/posix-functions/wcslen.texi: Mention the new module.
12463
12464 2011-02-05  Bruno Haible  <bruno@clisp.org>
12465
12466         New module 'wmemset'.
12467         * modules/wmemset: New file.
12468         * lib/wchar.in.h (wmemset): New declaration.
12469         * lib/wmemset.c: New file.
12470         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
12471         * m4/wmemset.m4: New file.
12472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
12473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
12474         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
12475         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
12476         * doc/posix-functions/wmemset.texi: Mention the new module.
12477
12478 2011-02-05  Bruno Haible  <bruno@clisp.org>
12479
12480         New module 'wmemmove'.
12481         * modules/wmemmove: New file.
12482         * lib/wchar.in.h (wmemmove): New declaration.
12483         * lib/wmemmove.c: New file.
12484         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
12485         * m4/wmemmove.m4: New file.
12486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
12487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
12488         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
12489         HAVE_WMEMMOVE.
12490         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
12491         * doc/posix-functions/wmemmove.texi: Mention the new module.
12492
12493 2011-02-05  Bruno Haible  <bruno@clisp.org>
12494
12495         New module 'wmemcpy'.
12496         * modules/wmemcpy: New file.
12497         * lib/wchar.in.h (wmemcpy): New declaration.
12498         * lib/wmemcpy.c: New file.
12499         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
12500         * m4/wmemcpy.m4: New file.
12501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
12502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
12503         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
12504         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
12505         * doc/posix-functions/wmemcpy.texi: Mention the new module.
12506
12507 2011-02-05  Bruno Haible  <bruno@clisp.org>
12508
12509         New module 'wmemcmp'.
12510         * modules/wmemcmp: New file.
12511         * lib/wchar.in.h (wmemcmp): New declaration.
12512         * lib/wmemcmp.c: New file.
12513         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
12514         * m4/wmemcmp.m4: New file.
12515         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
12516         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
12517         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
12518         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
12519         * doc/posix-functions/wmemcmp.texi: Mention the new module.
12520
12521 2011-02-07  Jim Meyering  <meyering@redhat.com>
12522
12523         di-set, ino-map: new modules, from coreutils
12524         * lib/di-set.c: New file.
12525         * lib/di-set.h: Likewise.
12526         * lib/ino-map.c: Likewise.
12527         * lib/ino-map.h: Likewise.
12528         * modules/di-set: Likewise.
12529         * modules/di-set-tests: Likewise.
12530         * modules/ino-map: Likewise.
12531         * modules/ino-map-tests: Likewise.
12532         * tests/test-di-set.c: Likewise.
12533         * tests/test-ino-map.c: Likewise.
12534
12535 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12536
12537         getloadavg: merge minor changes from Emacs
12538
12539         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
12540         (getloadavg): Use memset, not bzero.
12541
12542         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
12543         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12544         clash (bug#86).
12545
12546 2010-11-14  Bruno Haible  <bruno@clisp.org>
12547
12548         Allow multiple gnulib generated replacements to coexist.
12549         * lib/getopt.in.h (struct option): Avoid identical redefinition.
12550         * lib/inttypes.in.h (imaxdiv_t): Likewise.
12551         * lib/langinfo.in.h (nl_item): Likewise.
12552         * lib/math.in.h (_NaN, NAN): Likewise.
12553         * lib/netdb.in.h (struct addrinfo): Likewise.
12554         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
12555         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
12556         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
12557         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
12558         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
12559         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
12560         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
12561         pthread_mutexattr_init, pthread_mutexattr_settype,
12562         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
12563         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
12564         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
12565         pthread_spin_trylock, pthread_spin_unlock): Likewise.
12566         * lib/sched.in.h (struct sched_param): Likewise.
12567         * lib/se-selinux.in.h (security_class_t, security_context_t,
12568         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
12569         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
12570         lsetfilecon, fsetfilecon, security_check_context,
12571         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
12572         Likewise.
12573         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
12574         Likewise.
12575         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
12576         _gl_function_taking_int_returning_void_t, union sigval,
12577         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
12578         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
12579         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12580         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
12581         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
12582         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
12583         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
12584         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
12585         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
12586         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
12587         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
12588         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
12589         socklen_t, rpl_fd_isset): Likewise.
12590         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
12591         * lib/sys_time.in.h (struct timeval): Likewise.
12592         * lib/sys_times.in.h (struct tms): Likewise.
12593         * lib/sys_utsname.in.h (struct utsname):
12594         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
12595         * lib/unistd.in.h (getpagesize): Likewise.
12596         * lib/wchar.in.h (mbstate_t): Likewise.
12597         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12598         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
12599         towlower, towupper): Likewise.
12600         Reported by Sam Steingold <sds@gnu.org>.
12601
12602 2011-02-05  Eric Blake  <eblake@redhat.com>
12603
12604         unsetenv: work around Haiku issues
12605         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
12606         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
12607
12608 2010-12-30  Bruce Korb  <bkorb@gnu.org>
12609
12610         libposix: avoid calling error() within libposix
12611         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
12612         is defined.
12613
12614 2011-02-05  Eric Blake  <eblake@redhat.com>
12615
12616         strerror_r-posix: port to cygwin
12617         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
12618         implementation.
12619         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
12620         * tests/test-strerror_r.c (main): Fix test.
12621         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12622         issue.
12623
12624 2011-02-05  Bruno Haible  <bruno@clisp.org>
12625
12626         New module 'wmemchr'.
12627         * modules/wmemchr: New file.
12628         * lib/wchar.in.h (wmemchr): New declaration.
12629         * lib/wmemchr.c: New file.
12630         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
12631         * m4/wmemchr.m4: New file.
12632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
12633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
12634         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
12635         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
12636         * doc/posix-functions/wmemchr.texi: Mention the new module.
12637
12638 2011-02-04  Eric Blake  <eblake@redhat.com>
12639
12640         fdopendir: detect FreeBSD bug
12641         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
12642         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
12643
12644 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12645
12646         stdbool: do not define HAVE_STDBOOL_H
12647         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
12648         AC_HEADER_STDBOOL.  All uses changed.  Do not define
12649         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
12650         imported from the latest Autoconf git.  It was motivated by Emacs,
12651         which uses gnulib but does not need HAVE_STDBOOL_H.
12652
12653 2011-02-04  Bruno Haible  <bruno@clisp.org>
12654
12655         wcsnrtombs: Prepare for new module wwcsnrtombs.
12656         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
12657         * lib/wcsnrtombs.c: Include it.
12658         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
12659
12660         wcsrtombs: Prepare for new module wwcsrtombs.
12661         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
12662         * lib/wcsrtombs.c: Include it.
12663         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
12664
12665         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
12666         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
12667         * lib/mbsnrtowcs.c: Include it.
12668         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
12669
12670         mbsrtowcs: Prepare for new module mbsrtowwcs.
12671         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
12672         * lib/mbsrtowcs.c: Include it.
12673         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
12674
12675 2011-02-04  Bruno Haible  <bruno@clisp.org>
12676
12677         vasnprintf: Reduce use of malloc for small format strings.
12678         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
12679         (arguments): Add room for the first 7 arguments.
12680         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
12681         (char_directives, u8_directives, u16_directives, u32_directives): Add
12682         room for the first 7 directives.
12683         * lib/printf-parse.c: Include <string.h>.
12684         (PRINTF_PARSE): Change memory handling code so that it uses the first
12685         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
12686         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
12687         Reported by Pádraig Brady <P@draigbrady.com>.
12688
12689 2011-01-31  Eric Blake  <eblake@redhat.com>
12690
12691         dup2: work around Haiku bug
12692         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
12693         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
12694         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12695         * tests/test-dup2.c (main): Enhance test.
12696
12697 2011-01-31  Simon Josefsson  <simon@josefsson.org>
12698
12699         doc: off_t is not available in eglibc 2.11.2 stdio.h.
12700         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
12701         declared by eglibc 2.11.2.
12702         * lib/stdio.in.h: Likewise.
12703
12704 2011-01-31  Eric Blake  <eblake@redhat.com>
12705
12706         ignore-value: add missing test dependency
12707         * tests/test-ignore-value.c: Revert previous change; stdio.h
12708         provides off_t.
12709         * modules/ignore-value-tests (Depends-on): Add missing dependency.
12710
12711 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
12712
12713         mktime: clarify long_int width checking
12714         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
12715         the top level, to make it clearer that the assumption about
12716         long_int width is being checked.  See
12717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
12718
12719 2011-01-30  Simon Josefsson  <simon@josefsson.org>
12720
12721         ignore-value: Fix self-test.
12722         * tests/test-ignore-value.c: Include sys/types.h for off_t.
12723
12724 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
12725
12726         TYPE_MAXIMUM: avoid theoretically undefined behavior
12727         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
12728         negative number, which the C Standard says has undefined behavior.
12729         In practice this is not a problem, but might as well do it by the book.
12730         Reported by Rich Felker and Eric Blake; see
12731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
12732         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
12733         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12735         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
12736         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12737         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
12738
12739         mktime: #undef mktime before #defining it
12740         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
12741
12742         mktime: systematically normalize tm_isdst comparisons
12743         * lib/mktime.c (isdst_differ): New function.
12744         (__mktime_internal): Use it systematically for all isdst comparisons.
12745         This completes the fix for libc BZ #6723, and removes the need for
12746         normalizing tm_isdst.  See
12747         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
12748         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
12749
12750         mktime: fix some integer overflow issues and sidestep the rest
12751
12752         This was prompted by a bug report by Benjamin Lindner for MinGW
12753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
12754         His bug is due to signed integer overflow (0 - INT_MIN), and I
12755         I scanned through mktime.c looking for other integer overflow
12756         problems, fixing all the bugs I found.
12757
12758         Although the C Standard says the resulting code is still not safe
12759         in the presence of integer overflow, in practice it should be good
12760         enough for all real-world two's-complement implementations, except
12761         for debugging environments that deliberately trap on integer
12762         overflow (e.g., gcc -ftrapv).
12763
12764         * lib/mktime.c (WRAPV): New macro.
12765         (SHR): Also check that long_int and time_t shift right in the
12766         usual way, before using the fast-but-unportable method.
12767         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
12768         used.  The code already assumed two's complement, so there's
12769         no need to test for alternatives.  All uses removed.
12770         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
12771         the C standard.  Problem reported by Rich Felker in
12772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
12773         (twos_complement_arithmetic): Also check long_int and time_t.
12774         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
12775         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
12776         (__mktime_internal): Avoid integer overflow with unary subtraction
12777         in two instances where -1 - X is an adequate replacement for -X,
12778         since the calculations are approximate.
12779
12780 2011-01-29  Eric Blake  <eblake@redhat.com>
12781
12782         mktime: avoid infinite loop
12783         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
12784         type; behavior is still undefined but portable to all known targets.
12785         Reported by Rich Felker.
12786
12787 2011-01-29  Simon Josefsson  <simon@josefsson.org>
12788
12789         rename, unlink, same-inode: Relicense.
12790         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
12791         * modules/unlink (License): Likewise.
12792         * modules/same-inode (License): Likewise.
12793
12794 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12795
12796         mktime: avoid problems on NetBSD 5 / i386
12797         * lib/mktime.c (long_int): New type.  This works around a problem
12798         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
12799         but time_t is 64 bits, and where I expect the existing code is
12800         wrong in some cases.
12801         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
12802         (ydhms_diff): Bring back the compile-time check for wide-enough
12803         year and yday.
12804
12805         mktime: fix misspelling in comment
12806         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
12807         This merges all recent glibc changes of importance.
12808
12809 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12810
12811         move-if-change: cope with concurrent mv of identical file.
12812         * build-aux/move-if-change (CMPPROG): Accept environment
12813         variable as an override for `cmp'.
12814         (usage): Document CMPPROG.
12815         Adjust comparison to drop stdout.  Cope with failure of mv if
12816         the target file exists and is identical to the source, for
12817         parallel builds.
12818         Report from H.J. Lu against binutils in PR binutils/12283.
12819
12820 2011-01-28  Bruce Korb  <bkorb@gnu.org>
12821
12822         * users.txt: Mention sharutils.
12823
12824 2011-01-28  Simon Josefsson  <simon@josefsson.org>
12825
12826         * users.txt: Mention OATH Toolkit.
12827
12828 2011-01-27  Bruno Haible  <bruno@clisp.org>
12829
12830         Prepare for supporting FreeBSD 10.
12831         * build-aux/config.libpath: Remove handling of freebsd1*.
12832
12833 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
12834
12835         Prepare for supporting FreeBSD 10.
12836         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
12837         match FreeBSD 10.0.
12838
12839 2011-01-27  Bruno Haible  <bruno@clisp.org>
12840
12841         vma-iter, get-rusage-as: Add OpenBSD support.
12842         * modules/vma-iter (configure.ac): Test for mquery.
12843         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
12844         * lib/vma-iter.c: Include <sys/mman.h>.
12845         (vma_iterate): Add an implementation based on mquery().
12846         * lib/resource-ext.h (get_rusage_as): Update comments.
12847         * lib/get-rusage-as.c: Likewise.
12848         * lib/get-rusage-data.c: Likewise.
12849
12850 2011-01-26  Karl Berry  <karl@gnu.org>
12851
12852         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
12853         variables to make it easier to override the makeinfo program used.
12854
12855 2011-01-26  Eric Blake  <eblake@redhat.com>
12856
12857         fcntl: work around Haiku F_DUPFD bugs
12858         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
12859         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
12860         cloexec bit on duplication.
12861         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
12862
12863 2011-01-26  Bruno Haible  <bruno@clisp.org>
12864
12865         Enable memory leak tests on AIX.
12866         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
12867         * tests/test-fprintf-posix3.c (main): Likewise.
12868
12869 2011-01-26  Bruno Haible  <bruno@clisp.org>
12870
12871         Tests for module 'get-rusage-data'.
12872         * modules/get-rusage-data-tests: New file.
12873         * tests/test-get-rusage-data.c: New file.
12874
12875         New module 'get-rusage-data'.
12876         * lib/resource-ext.h (get_rusage_data): New declaration.
12877         * lib/get-rusage-data.c: New file.
12878         * modules/get-rusage-data: New file.
12879
12880 2011-01-25  Bruno Haible  <bruno@clisp.org>
12881
12882         get-rusage-as: Allow for easier testing.
12883         * lib/resource-ext.h (get_rusage_as): Add comment.
12884         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
12885         (main): New function for interactive testing.
12886
12887 2011-01-25  Bruno Haible  <bruno@clisp.org>
12888
12889         vma-iter: Treat Haiku like BeOS.
12890         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
12891         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
12892
12893 2011-01-25  Eric Blake  <eblake@redhat.com>
12894
12895         c-stack: fix regression on cygwin when libsigsegv is present
12896         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
12897
12898 2011-01-24  Bruno Haible  <bruno@clisp.org>
12899
12900         vma-iter: Avoid empty intervals.
12901         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
12902         on an empty interval.
12903
12904 2011-01-24  Jim Meyering  <meyering@redhat.com>
12905
12906         u64: remove unnecessary #include
12907         * lib/u64.h: Don't include <stddef.h>.  It was not used.
12908
12909 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12910
12911         Allow the user to avoid the HAVE_RAW_DECL_* macros.
12912         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
12913
12914 2011-01-23  Bruno Haible  <bruno@clisp.org>
12915
12916         New module 'vma-iter'.
12917         * lib/vma-iter.h: New file.
12918         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
12919         * modules/vma-iter: New file.
12920         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
12921         for get_rusage_as_via_iterator.
12922         (vma_iterate_callback): New function.
12923         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
12924         * modules/get-rusage-as (Depends-on): Add vma-iter.
12925
12926 2011-01-23  Bruno Haible  <bruno@clisp.org>
12927
12928         uninorm: Tweak includes.
12929         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
12930         Reported by Jim Meyering.
12931
12932 2011-01-23  Bruno Haible  <bruno@clisp.org>
12933
12934         get-rusage-as: Improve on NetBSD.
12935         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
12936         /proc, like on FreeBSD.
12937
12938 2011-01-23  Jim Meyering  <meyering@redhat.com>
12939
12940         xreadlink.h: remove unnecessary #include
12941         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
12942
12943         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
12944         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
12945
12946 2011-01-23  Bruno Haible  <bruno@clisp.org>
12947
12948         get-rusage-as: Fix bug.
12949         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
12950         original limit when aborting the first loop.
12951
12952 2011-01-23  Bruno Haible  <bruno@clisp.org>
12953
12954         wctype: Ensure valid C syntax.
12955         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
12956         unconditionally, instead of gl_NEXT_HEADERS conditionally.
12957
12958 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12959
12960         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
12961         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
12962         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
12963         as they are needed only for configure's test case.
12964         This removes two unnecessary symbols from config.h.
12965
12966         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
12967         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
12968         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
12969         AC_CHECK_HEADERS_ONCE on a header that we also invoke
12970         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
12971         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
12972         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
12973         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12974         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12975         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12976         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12977         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12978         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12979         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12980         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12981         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12982         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12983         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12984
12985 2011-01-21  Eric Blake  <eblake@redhat.com>
12986
12987         maintainer-makefile: work with older git for submodule check
12988         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12989         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12990         Reported by Matthias Bolte.
12991
12992         bootstrap: minor portability fixes
12993         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12994         (usage): Omit leading capital and trailing . on help phrases, per
12995         GNU Coding Standards.
12996         (check_versions, top level): Prefix messages with script name.
12997
12998 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12999
13000         bootstrap: support --no-git option
13001         * build-aux/bootstrap: Add --no-git option, to be used when
13002         --gnulib-srcdir points to the exact desired checkout.
13003
13004 2011-01-21  Eric Blake  <eblake@redhat.com>
13005
13006         strerror_r-posix: work with glibc 2.13
13007         * lib/strerror_r.c (strerror_r): Fix return type.
13008
13009 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13010             Bruno Haible  <bruno@clisp.org>
13011
13012         uN_strstr: New unit tests.
13013         * modules/unistr/u8-strstr-tests: New file.
13014         * modules/unistr/u16-strstr-tests: New file.
13015         * modules/unistr/u32-strstr-tests: New file.
13016         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
13017         * tests/unistr/test-u8-strstr.c: New file.
13018         * tests/unistr/test-u16-strstr.c: New file.
13019         * tests/unistr/test-u32-strstr.c: New file.
13020
13021 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13022             Bruno Haible  <bruno@clisp.org>
13023
13024         Make uN_strstr functions O(n) worst-case.
13025         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
13026         16-bit and 32-bit unit cases, use the unibyte algorithm from
13027         lib/mbsstr.c.
13028         * lib/unistr/u8-strstr.c: Include <string.h>.
13029         (UNIT_IS_UINT8_T): New macro.
13030         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
13031         (U_STRLEN, U_STRNLEN): New macros.
13032         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
13033         (U_STRLEN, U_STRNLEN): New macros.
13034         * modules/unistr/u8-strstr (Depends-on): Add strstr.
13035         (configure.ac): Update required libunistring version.
13036         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
13037         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
13038         malloca.
13039         (configure.ac): Update required libunistring version.
13040         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
13041         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
13042         malloca.
13043         (configure.ac): Update required libunistring version.
13044
13045 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13046             Bruno Haible  <bruno@clisp.org>
13047
13048         Prepare for faster uN_strstr functions.
13049         * lib/str-kmp.h: Support definable UNITs.
13050         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
13051         needle_len argument.
13052         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
13053         * lib/mbscasestr.c (mbscasestr): Likewise.
13054
13055 2011-01-21  Pádraig Brady <P@draigBrady.com>
13056
13057         malloca-tests: make faster by unsetting MALLOC_PERTURB_
13058         * tests/test-malloca.c (main): Unset the environment variable
13059         to greatly speed up the test.
13060         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
13061         * modules/malloca-tests: Depend on unsetenv.
13062
13063 2011-01-21  Pádraig Brady <P@draigBrady.com>
13064
13065         ignore-value: remove stdint dependency
13066         * lib/ignore-value.h: Remove <stdint.h>
13067         * modules/ignore-value: Remove stdint dependency.
13068
13069 2011-01-21  Jim Meyering  <meyering@redhat.com>
13070
13071         maint.mk: adjust variable name to be consistent with other gl_ vars
13072         * top/maint.mk (gl_public_submodule_commit): Rename the variable
13073         to be lower case.
13074
13075 2011-01-20  Jim Meyering  <meyering@redhat.com>
13076
13077         maint.mk: make "check" depend on public-submodule-commit by default
13078         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
13079
13080 2011-01-20  Bruno Haible  <bruno@clisp.org>
13081
13082         mbfile, mbiter: Complete change from 2008-12-21.
13083         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
13084         * m4/mbiter.m4 (gl_MBITER): Likewise.
13085
13086 2011-01-20  Jim Meyering  <meyering@redhat.com>
13087
13088         init.sh: insert space between each function name and "()"
13089         * tests/init.sh: Make it a little easier to see that a function's
13090         name is "warn_", and not "warn" when looking at the first part of
13091         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
13092
13093 2011-01-20  Jim Meyering  <meyering@redhat.com>
13094
13095         mountlist: clean up code formatting
13096         * lib/mountlist.c (read_file_system_list): Split a long line,
13097         correct bracing style, use NULL in place of "(struct statfs *)0",
13098         don't parenthesize return value, add spaces around "=" and after
13099         ";-in-for-stmt".
13100
13101 2011-01-14  Markus Duft <mduft@gentoo.org>
13102
13103         mountlist: add support for Interix
13104         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
13105         Apply statvfs to all entries of /dev/fs.
13106         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
13107         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
13108
13109 2011-01-20  Jim Meyering  <meyering@redhat.com>
13110
13111         maint.mk: improve the public-submodule-commit rule
13112         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
13113         to suppress printing of its commands... unless V=1.
13114         Add git submodule's --quiet option to suppress printing of e.g.,
13115         "Entering gnulib" output.
13116         "cd" into $(srcdir) before running git submodule.
13117
13118 2011-01-20  Bruno Haible  <bruno@clisp.org>
13119
13120         include_next: Fix bug introduced on 2011-01-18.
13121         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
13122         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
13123         ac_cv_header_... variable if the second argument is not 'check'.
13124         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
13125         gl_NEXT_HEADERS_INTERNAL.
13126
13127 2011-01-20  Bruno Haible  <bruno@clisp.org>
13128
13129         Allow the user to avoid the GNULIB_TEST_* macros.
13130         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
13131         Suggested by Paul Eggert.
13132
13133 2011-01-14  Jim Meyering  <meyering@redhat.com>
13134
13135         bootstrap: avoid failure when there is no .gitmodules file
13136         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
13137         has been assigned to, even when its value is the empty string.
13138         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
13139         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
13140         Reported by John W. Eaton <jwe@gnu.org>.
13141
13142 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
13143
13144         assume <ctype.h>, ..., <time.h> exist
13145         For years gnulib has been assuming the existence of the headers
13146         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
13147         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
13148         them, since they don't appear to be needed.
13149         * README (Portability guidelines): Document this.
13150         * lib/flock.c: Assume <fcntl.h> exists.
13151         * lib/regex_internal.h: Assume <locale.h> exists.
13152         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
13153         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
13154         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
13155         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
13156         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
13157         * m4/regex.m4 (gl_REGEX): Likewise.
13158         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
13159         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
13160         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
13161         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
13162         * tests/test-argp.c: Likewise.
13163         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
13164
13165         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
13166         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
13167         AA_APPLE_UNIVERSAL_BUILD.  See
13168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
13169         * NEWS: Document this.
13170
13171 2011-01-19  Eric Blake  <eblake@redhat.com>
13172
13173         c-stack: assume stack overflow if SA_SIGINFO unsupported
13174         * lib/c-stack.c (SIGACTION_WORKS): Rename...
13175         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
13176         sigaction will work.
13177         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
13178         behavior match Linux.
13179         * tests/test-c-stack.c (main): Prefer NULL for pointers.
13180
13181         stdbool-tests: accomodate Haiku
13182         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
13183
13184         binary-io: fix O_TEXT on Haiku
13185         * modules/binary-io (Depends-on): Add fcntl-h.
13186         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
13187         than blindly undefining O_TEXT.
13188         Reported by Scott McCreary.
13189
13190 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13191
13192         include_next: do not check for standard headers like stddef.h
13193
13194         I found this problem when modifying Emacs to use gnulib.
13195         I noticed that it added HAVE_STDDEF_H to config.h, even though
13196         gnulib always assumes <stddef.h> exists as per README and this
13197         symbol is unnecessary.
13198         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
13199         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
13200         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
13201         faster for headers like stddef.h that are known to exist.
13202         (gl_CHECK_NEXT_HEADERS): Use it.
13203         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
13204         rather than gl_CHECK_NEXT_HEADERS.
13205         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
13206         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
13207
13208 2011-01-18  Eric Blake  <eblake@redhat.com>
13209
13210         ansi-c++-opt: skip C++ dependency style if C++ is unused
13211         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
13212         tests when we know C++ compilation is not desired.
13213         Reported by Scott McCreary.
13214
13215 2011-01-18  Bruno Haible  <bruno@clisp.org>
13216
13217         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
13218         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
13219         (main): Perform test also when getrlimit and setrlimit don't exist or
13220         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
13221         limiting the address space size using setrlimit, compare the address
13222         space size before and after the the test.
13223         * tests/test-dprintf-posix2.c: Likewise.
13224         * tests/test-fprintf-posix3.sh: Update skip messages.
13225         * tests/test-dprintf-posix2.sh: Likewise.
13226         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
13227         * modules/dprintf-posix-tests (Depends-on): Likewise.
13228         Reported by Bruce Korb <bkorb@gnu.org> and
13229         Gary V. Vaughan <gary@gnu.org>.
13230
13231 2011-01-18  Bruno Haible  <bruno@clisp.org>
13232
13233         get-rusage-as: Improvement for Cygwin.
13234         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
13235         areas that are merely reserved.
13236
13237 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13238
13239         strftime: remove dependencies on multibyte modules
13240
13241         strftime depended on mbrlen, mbsinit, and wchar, but these modules
13242         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
13243         only if __osf__ is defined, and I suspect OSF doesn't need these
13244         other modules.  If my guess is wrong, we'll need to come up with a
13245         variant of strftime that doesn't need the multibyte modules.
13246
13247         I discovered this problem when attempting modify Emacs to use the
13248         strftime module.  With the previous gnulib, this caused Emacs to
13249         need 31 new files, ranging from lib/config.charset to
13250         m4/wint_t.m4.  This was overkill and I expect would be offputting
13251         to the Emacs maintainers.  After this change, only 6 new files are
13252         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
13253         stdbool.m4, and tm_gmtoff.m4.
13254
13255         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
13256         Suggested by Bruno Haible in
13257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
13258         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
13259         and do not check for wchar.h.
13260         * modules/strftime (Files): Remove m4/mbstate_t.m4.
13261         (Depends-on): Remove mbrlen, mbsinit, wchar.
13262
13263 2011-01-18  Bruno Haible  <bruno@clisp.org>
13264
13265         Tests for module 'get-rusage-as'.
13266         * modules/get-rusage-as-tests: New file.
13267         * tests/test-get-rusage-as.c: New file.
13268
13269         New module 'get-rusage-as'.
13270         * modules/get-rusage-as: New file.
13271         * lib/resource-ext.h: New file.
13272         * lib/get-rusage-as.c: New file.
13273
13274 2011-01-17  Eric Blake  <eblake@redhat.com>
13275
13276         sigaction: relax license from LGPLv3+ to LGPLv2+
13277         * modules/sigaction (License): Relax to LGPLv2+.
13278
13279 2011-01-14  Bruno Haible  <bruno@clisp.org>
13280
13281         filemode: Make function declarations usable in C++ mode.
13282         * lib/filemode.h: Enclose function declarations in extern "C" block.
13283         Reported by John W. Eaton <jwe@gnu.org>.
13284
13285 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
13286
13287         save-cwd: no longer include "xgetcwd.h"
13288         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
13289         This avoids a compilation failure in projects that use save-cwd
13290         without also using the xgetcwd module.
13291
13292 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
13293
13294         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
13295         This is so that a program like Emacs, which needs only dtoastr,
13296         does not have to bother with distributing and compiling ftoastr
13297         and ldtoastr.
13298         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
13299         * modules/dtoastr, modules/ldtoastr: New files.
13300         * modules/ftoastr: Now works just for 'float'.
13301         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
13302         (Makefile.am): Remove ftoastr.h (not needed and no effect),
13303         dtoastr.c, ldtoastr.c.
13304
13305 2011-01-11  Jim Meyering  <meyering@redhat.com>
13306
13307         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
13308         There is no need to work around the lack of the fchdir function,
13309         since gnulib can now provide a replacement when required.
13310         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
13311         * modules/save-cwd (Depends-on): Add fchdir.
13312
13313 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
13314
13315         openat, save-cwd: avoid xmalloc
13316
13317         This removes a direct (but undocumented) dependency of openat on
13318         xalloc, along with an indirect dependency via save-cwd.  It also
13319         removes a dependency of save-cwd on xgetcwd, and thereby
13320         indirectly on xalloc.  This change causes the openat substitute
13321         to fall back on save_cwd when memory is tight, and for save_cwd to
13322         fail instead of dying when memory is tight, but that's good enough.
13323         Problem and initial idea for fix reported by Bastien Roucaries in
13324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
13325
13326         * lib/openat-proc.c: Include stdlib.h (for malloc), not
13327         xalloc.h (for xmalloc).
13328         (openat_proc_name): Use malloc, not xmalloc.
13329         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
13330         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
13331
13332         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
13333         This avoids heap allocation for file names whose lengths are in
13334         the range 512..1023, with the upper bound increasing to at most
13335         4031 depending on the platform's PATH_MAX.  (We do not want
13336         pathmax.h here as it might supply a non-constant PATH_MAX.)
13337         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
13338         Perhaps they should be moved to malloca.h?
13339         (OPENAT_BUFFER_SIZE): Use them.
13340
13341 2011-01-10  Bruno Haible  <bruno@clisp.org>
13342
13343         doc: Update users.txt.
13344         * users.txt: Add recutils.
13345
13346 2011-01-09  Karl Berry  <karl@gnu.org>
13347
13348         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
13349
13350         * doc/configmake.texi: New file.
13351         * doc/gnulib.texi: Include it.
13352         * modules/configmake: Move documentation from here.
13353
13354 2011-01-09  Bruno Haible  <bruno@clisp.org>
13355
13356         Update to Unicode 6.0.0.
13357         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
13358         (get_lbp): Update for Unicode 6.0.0.
13359         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
13360         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
13361         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
13362         U+11001, U+11038..U+11046. Remove U+06DE.
13363         (uc_width): Fix bounds of planes.
13364         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13365         lib/uniwidth/width.c.
13366         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
13367         trailing whitespace removed.
13368         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
13369         without comments, but with the original copyright notice.
13370         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
13371         * lib/unicase/ignorable.h: Likewise.
13372         * lib/unicase/tocasefold.h: Likewise.
13373         * lib/unicase/tolower.h: Likewise.
13374         * lib/unicase/totitle.h: Likewise.
13375         * lib/unicase/toupper.h: Likewise.
13376         * lib/unictype/bidi_of.h: Likewise.
13377         * lib/unictype/blocks.h: Likewise.
13378         * lib/unictype/categ_C.h: Likewise.
13379         * lib/unictype/categ_Cn.h: Likewise.
13380         * lib/unictype/categ_L.h: Likewise.
13381         * lib/unictype/categ_Ll.h: Likewise.
13382         * lib/unictype/categ_Lm.h: Likewise.
13383         * lib/unictype/categ_Lo.h: Likewise.
13384         * lib/unictype/categ_Lu.h: Likewise.
13385         * lib/unictype/categ_M.h: Likewise.
13386         * lib/unictype/categ_Mc.h: Likewise.
13387         * lib/unictype/categ_Me.h: Likewise.
13388         * lib/unictype/categ_Mn.h: Likewise.
13389         * lib/unictype/categ_N.h: Likewise.
13390         * lib/unictype/categ_Nd.h: Likewise.
13391         * lib/unictype/categ_No.h: Likewise.
13392         * lib/unictype/categ_P.h: Likewise.
13393         * lib/unictype/categ_Po.h: Likewise.
13394         * lib/unictype/categ_S.h: Likewise.
13395         * lib/unictype/categ_Sc.h: Likewise.
13396         * lib/unictype/categ_Sk.h: Likewise.
13397         * lib/unictype/categ_Sm.h: Likewise.
13398         * lib/unictype/categ_So.h: Likewise.
13399         * lib/unictype/categ_of.h: Likewise.
13400         * lib/unictype/combining.h: Likewise.
13401         * lib/unictype/ctype_alnum.h: Likewise.
13402         * lib/unictype/ctype_alpha.h: Likewise.
13403         * lib/unictype/ctype_graph.h: Likewise.
13404         * lib/unictype/ctype_lower.h: Likewise.
13405         * lib/unictype/ctype_print.h: Likewise.
13406         * lib/unictype/ctype_punct.h: Likewise.
13407         * lib/unictype/ctype_upper.h: Likewise.
13408         * lib/unictype/decdigit.h: Likewise.
13409         * lib/unictype/digit.h: Likewise.
13410         * lib/unictype/numeric.h: Likewise.
13411         * lib/unictype/pr_alphabetic.h: Likewise.
13412         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13413         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13414         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13415         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13416         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13417         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13418         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13419         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13420         * lib/unictype/pr_case_ignorable.h: Likewise.
13421         * lib/unictype/pr_cased.h: Likewise.
13422         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
13423         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
13424         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
13425         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
13426         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
13427         * lib/unictype/pr_combining.h: Likewise.
13428         * lib/unictype/pr_composite.h: Likewise.
13429         * lib/unictype/pr_currency_symbol.h: Likewise.
13430         * lib/unictype/pr_decimal_digit.h: Likewise.
13431         * lib/unictype/pr_deprecated.h: Likewise.
13432         * lib/unictype/pr_format_control.h: Likewise.
13433         * lib/unictype/pr_grapheme_base.h: Likewise.
13434         * lib/unictype/pr_grapheme_extend.h: Likewise.
13435         * lib/unictype/pr_grapheme_link.h: Likewise.
13436         * lib/unictype/pr_id_continue.h: Likewise.
13437         * lib/unictype/pr_id_start.h: Likewise.
13438         * lib/unictype/pr_ideographic.h: Likewise.
13439         * lib/unictype/pr_lowercase.h: Likewise.
13440         * lib/unictype/pr_math.h: Likewise.
13441         * lib/unictype/pr_numeric.h: Likewise.
13442         * lib/unictype/pr_other_alphabetic.h: Likewise.
13443         * lib/unictype/pr_other_id_continue.h: Likewise.
13444         * lib/unictype/pr_other_math.h: Likewise.
13445         * lib/unictype/pr_punctuation.h: Likewise.
13446         * lib/unictype/pr_sentence_terminal.h: Likewise.
13447         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13448         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13449         * lib/unictype/pr_unified_ideograph.h: Likewise.
13450         * lib/unictype/pr_uppercase.h: Likewise.
13451         * lib/unictype/pr_xid_continue.h: Likewise.
13452         * lib/unictype/pr_xid_start.h: Likewise.
13453         * lib/unictype/scripts.h: Likewise.
13454         * lib/unictype/scripts_byname.gperf: Likewise.
13455         * lib/unictype/sy_java_ident.h: Likewise.
13456         * lib/unigbrk/gbrkprop.h: Likewise.
13457         * lib/unilbrk/lbrkprop1.h: Likewise.
13458         * lib/unilbrk/lbrkprop2.h: Likewise.
13459         * lib/uninorm/decomposition-table2.h: Likewise.
13460         * lib/uniwbrk/wbrkprop.h: Likewise.
13461         * tests/unicase/test-cased.c: Likewise.
13462         * tests/unicase/test-ignorable.c: Likewise.
13463         * tests/unicase/test-uc_tolower.c: Likewise.
13464         * tests/unicase/test-uc_totitle.c: Likewise.
13465         * tests/unicase/test-uc_toupper.c: Likewise.
13466         * tests/unictype/test-categ_C.c: Likewise.
13467         * tests/unictype/test-categ_Cn.c: Likewise.
13468         * tests/unictype/test-categ_L.c: Likewise.
13469         * tests/unictype/test-categ_Ll.c: Likewise.
13470         * tests/unictype/test-categ_Lm.c: Likewise.
13471         * tests/unictype/test-categ_Lo.c: Likewise.
13472         * tests/unictype/test-categ_Lu.c: Likewise.
13473         * tests/unictype/test-categ_M.c: Likewise.
13474         * tests/unictype/test-categ_Mc.c: Likewise.
13475         * tests/unictype/test-categ_Me.c: Likewise.
13476         * tests/unictype/test-categ_Mn.c: Likewise.
13477         * tests/unictype/test-categ_N.c: Likewise.
13478         * tests/unictype/test-categ_Nd.c: Likewise.
13479         * tests/unictype/test-categ_No.c: Likewise.
13480         * tests/unictype/test-categ_P.c: Likewise.
13481         * tests/unictype/test-categ_Po.c: Likewise.
13482         * tests/unictype/test-categ_S.c: Likewise.
13483         * tests/unictype/test-categ_Sc.c: Likewise.
13484         * tests/unictype/test-categ_Sk.c: Likewise.
13485         * tests/unictype/test-categ_Sm.c: Likewise.
13486         * tests/unictype/test-categ_So.c: Likewise.
13487         * tests/unictype/test-ctype_alnum.c: Likewise.
13488         * tests/unictype/test-ctype_alpha.c: Likewise.
13489         * tests/unictype/test-ctype_graph.c: Likewise.
13490         * tests/unictype/test-ctype_lower.c: Likewise.
13491         * tests/unictype/test-ctype_print.c: Likewise.
13492         * tests/unictype/test-ctype_punct.c: Likewise.
13493         * tests/unictype/test-ctype_upper.c: Likewise.
13494         * tests/unictype/test-decdigit.h: Likewise.
13495         * tests/unictype/test-digit.h: Likewise.
13496         * tests/unictype/test-numeric.h: Likewise.
13497         * tests/unictype/test-pr_alphabetic.c: Likewise.
13498         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13499         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
13500         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
13501         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13502         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13503         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13504         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13505         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13506         * tests/unictype/test-pr_case_ignorable.c: Likewise.
13507         * tests/unictype/test-pr_cased.c: Likewise.
13508         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
13509         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
13510         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
13511         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
13512         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
13513         * tests/unictype/test-pr_combining.c: Likewise.
13514         * tests/unictype/test-pr_composite.c: Likewise.
13515         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13516         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13517         * tests/unictype/test-pr_deprecated.c: Likewise.
13518         * tests/unictype/test-pr_format_control.c: Likewise.
13519         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13520         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13521         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13522         * tests/unictype/test-pr_id_continue.c: Likewise.
13523         * tests/unictype/test-pr_id_start.c: Likewise.
13524         * tests/unictype/test-pr_ideographic.c: Likewise.
13525         * tests/unictype/test-pr_lowercase.c: Likewise.
13526         * tests/unictype/test-pr_math.c: Likewise.
13527         * tests/unictype/test-pr_numeric.c: Likewise.
13528         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13529         * tests/unictype/test-pr_other_id_continue.c: Likewise.
13530         * tests/unictype/test-pr_other_math.c: Likewise.
13531         * tests/unictype/test-pr_punctuation.c: Likewise.
13532         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13533         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13534         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13535         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13536         * tests/unictype/test-pr_uppercase.c: Likewise.
13537         * tests/unictype/test-pr_xid_continue.c: Likewise.
13538         * tests/unictype/test-pr_xid_start.c: Likewise.
13539         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13540         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13541         changes.
13542         * lib/unictype/categ_Cc.h: Likewise.
13543         * lib/unictype/categ_Cf.h: Likewise.
13544         * lib/unictype/categ_Co.h: Likewise.
13545         * lib/unictype/categ_Cs.h: Likewise.
13546         * lib/unictype/categ_Lt.h: Likewise.
13547         * lib/unictype/categ_Nl.h: Likewise.
13548         * lib/unictype/categ_Pc.h: Likewise.
13549         * lib/unictype/categ_Pd.h: Likewise.
13550         * lib/unictype/categ_Pe.h: Likewise.
13551         * lib/unictype/categ_Pf.h: Likewise.
13552         * lib/unictype/categ_Pi.h: Likewise.
13553         * lib/unictype/categ_Ps.h: Likewise.
13554         * lib/unictype/categ_Z.h: Likewise.
13555         * lib/unictype/categ_Zl.h: Likewise.
13556         * lib/unictype/categ_Zp.h: Likewise.
13557         * lib/unictype/categ_Zs.h: Likewise.
13558         * lib/unictype/ctype_blank.h: Likewise.
13559         * lib/unictype/ctype_cntrl.h: Likewise.
13560         * lib/unictype/ctype_digit.h: Likewise.
13561         * lib/unictype/ctype_space.h: Likewise.
13562         * lib/unictype/ctype_xdigit.h: Likewise.
13563         * lib/unictype/mirror.h: Likewise.
13564         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13565         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13566         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13567         * lib/unictype/pr_bidi_control.h: Likewise.
13568         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13569         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13570         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13571         * lib/unictype/pr_bidi_pdf.h: Likewise.
13572         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13573         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13574         * lib/unictype/pr_dash.h: Likewise.
13575         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13576         * lib/unictype/pr_diacritic.h: Likewise.
13577         * lib/unictype/pr_extender.h: Likewise.
13578         * lib/unictype/pr_hex_digit.h: Likewise.
13579         * lib/unictype/pr_hyphen.h: Likewise.
13580         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13581         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13582         * lib/unictype/pr_ignorable_control.h: Likewise.
13583         * lib/unictype/pr_iso_control.h: Likewise.
13584         * lib/unictype/pr_join_control.h: Likewise.
13585         * lib/unictype/pr_left_of_pair.h: Likewise.
13586         * lib/unictype/pr_line_separator.h: Likewise.
13587         * lib/unictype/pr_logical_order_exception.h: Likewise.
13588         * lib/unictype/pr_non_break.h: Likewise.
13589         * lib/unictype/pr_not_a_character.h: Likewise.
13590         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13591         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13592         * lib/unictype/pr_other_id_start.h: Likewise.
13593         * lib/unictype/pr_other_lowercase.h: Likewise.
13594         * lib/unictype/pr_other_uppercase.h: Likewise.
13595         * lib/unictype/pr_paired_punctuation.h: Likewise.
13596         * lib/unictype/pr_paragraph_separator.h: Likewise.
13597         * lib/unictype/pr_pattern_syntax.h: Likewise.
13598         * lib/unictype/pr_pattern_white_space.h: Likewise.
13599         * lib/unictype/pr_private_use.h: Likewise.
13600         * lib/unictype/pr_quotation_mark.h: Likewise.
13601         * lib/unictype/pr_radical.h: Likewise.
13602         * lib/unictype/pr_soft_dotted.h: Likewise.
13603         * lib/unictype/pr_space.h: Likewise.
13604         * lib/unictype/pr_titlecase.h: Likewise.
13605         * lib/unictype/pr_variation_selector.h: Likewise.
13606         * lib/unictype/pr_white_space.h: Likewise.
13607         * lib/unictype/pr_zero_width.h: Likewise.
13608         * lib/unictype/sy_c_ident.h: Likewise.
13609         * lib/unictype/sy_c_whitespace.h: Likewise.
13610         * lib/unictype/sy_java_whitespace.h: Likewise.
13611         * lib/uninorm/composition-table.gperf: Likewise.
13612         * lib/uninorm/decomposition-table1.h: Likewise.
13613         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
13614         LB8.
13615         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13616         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13617         * modules/unictype/*: Bump version number of expected libunistring
13618         version.
13619
13620 2011-01-09  Bruno Haible  <bruno@clisp.org>
13621
13622         Update to Unicode 5.2.0.
13623         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
13624         trailing whitespace removed.
13625
13626 2011-01-09  Bruno Haible  <bruno@clisp.org>
13627
13628         New Unicode character properties, from Unicode 5.2.0.
13629         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
13630         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
13631         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
13632         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
13633         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
13634         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
13635         uc_is_property_cased, uc_is_property_case_ignorable,
13636         uc_is_property_changes_when_lowercased,
13637         uc_is_property_changes_when_uppercased,
13638         uc_is_property_changes_when_titlecased,
13639         uc_is_property_changes_when_casefolded,
13640         uc_is_property_changes_when_casemapped): New declarations.
13641         * lib/unictype/pr_byname.gperf: Add the new properties.
13642         * modules/unictype/property-byname (Depends-on): Depend on the new
13643         properties modules.
13644         * modules/unictype/property-all (Depends-on): Likewise.
13645         * MODULES.html.sh (Unicode string functions): Add
13646         unictype/property-case-ignorable, unictype/property-cased,
13647         unictype/property-changes-when-casefolded,
13648         unictype/property-changes-when-casemapped,
13649         unictype/property-changes-when-lowercased,
13650         unictype/property-changes-when-titlecased,
13651         unictype/property-changes-when-uppercased.
13652
13653         New module 'unictype/property-changes-when-casemapped'.
13654         * modules/unictype/property-changes-when-casemapped: New file.
13655         * lib/unictype/pr_changes_when_casemapped.c: New file.
13656         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
13657         generated by gen-uni-tables.
13658         * modules/unictype/property-changes-when-casemapped-tests: New file.
13659         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
13660         automatically generated by gen-uni-tables.
13661
13662         New module 'unictype/property-changes-when-casefolded'.
13663         * modules/unictype/property-changes-when-casefolded: New file.
13664         * lib/unictype/pr_changes_when_casefolded.c: New file.
13665         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
13666         generated by gen-uni-tables.
13667         * modules/unictype/property-changes-when-casefolded-tests: New file.
13668         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
13669         automatically generated by gen-uni-tables.
13670
13671         New module 'unictype/property-changes-when-titlecased'.
13672         * modules/unictype/property-changes-when-titlecased: New file.
13673         * lib/unictype/pr_changes_when_titlecased.c: New file.
13674         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
13675         generated by gen-uni-tables.
13676         * modules/unictype/property-changes-when-titlecased-tests: New file.
13677         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
13678         automatically generated by gen-uni-tables.
13679
13680         New module 'unictype/property-changes-when-uppercased'.
13681         * modules/unictype/property-changes-when-uppercased: New file.
13682         * lib/unictype/pr_changes_when_uppercased.c: New file.
13683         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
13684         generated by gen-uni-tables.
13685         * modules/unictype/property-changes-when-uppercased-tests: New file.
13686         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
13687         automatically generated by gen-uni-tables.
13688
13689         New module 'unictype/property-changes-when-lowercased'.
13690         * modules/unictype/property-changes-when-lowercased: New file.
13691         * lib/unictype/pr_changes_when_lowercased.c: New file.
13692         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
13693         generated by gen-uni-tables.
13694         * modules/unictype/property-changes-when-lowercased-tests: New file.
13695         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
13696         automatically generated by gen-uni-tables.
13697
13698         New module 'unictype/property-case-ignorable'.
13699         * modules/unictype/property-case-ignorable: New file.
13700         * lib/unictype/pr_case_ignorable.c: New file.
13701         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
13702         by gen-uni-tables.
13703         * modules/unictype/property-case-ignorable-tests: New file.
13704         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
13705         generated by gen-uni-tables.
13706
13707         New module 'unictype/property-cased'.
13708         * modules/unictype/property-cased: New file.
13709         * lib/unictype/pr_cased.c: New file.
13710         * lib/unictype/pr_cased.h: New file, automatically generated by
13711         gen-uni-tables.
13712         * modules/unictype/property-cased-tests: New file.
13713         * tests/unictype/test-pr_cased.c: New file, automatically generated by
13714         gen-uni-tables.
13715
13716 2011-01-09  Bruno Haible  <bruno@clisp.org>
13717
13718         Update to Unicode 5.2.0.
13719         * lib/gen-uni-tables.c (output_predicate, output_category,
13720         output_combclass, output_bidi_category, output_decimal_digit_test,
13721         output_decimal_digit, output_digit_test, output_digit,
13722         output_numeric_test, output_numeric, output_mirror, output_scripts,
13723         output_scripts_byname, output_blocks, output_ident_category): Fix
13724         comment header.
13725         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
13726         get_wbp.
13727         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
13728         items.
13729         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
13730         Changes_When_Lowercased, Changes_When_Uppercased,
13731         Changes_When_Titlecased, Changes_When_Casefolded,
13732         Changes_When_Casemapped.
13733         (is_property_alphabetic, is_property_default_ignorable_code_point):
13734         Update for Unicode 5.2.0.
13735         (is_property_cased, is_property_case_ignorable,
13736         is_property_changes_when_lowercased,
13737         is_property_changes_when_uppercased,
13738         is_property_changes_when_titlecased,
13739         is_property_changes_when_casefolded,
13740         is_property_changes_when_casemapped): New functions.
13741         (output_properties): Output also the properties cased, case_ignorable,
13742         changes_when_lowercased, changes_when_uppercased,
13743         changes_when_titlecased, changes_when_casefolded,
13744         changes_when_casemapped.
13745         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
13746         Unicode TR#11 revision 17 -> 19.
13747         (LBP_CP): New enumeration value.
13748         (LBP_*): Adjust values accordingly.
13749         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13750         TR#14 revision 22 -> 24.
13751         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
13752         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
13753         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13754         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
13755         is_WBP_MIDLETTER.
13756         (output_composition_tables): Allow for 24 bits instead of 16 bits in
13757         the code1 and code2 of each composition rule.
13758         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
13759         * lib/unicase/ignorable.h: Likewise.
13760         * lib/unicase/tocasefold.h: Likewise.
13761         * lib/unicase/tolower.h: Likewise.
13762         * lib/unicase/totitle.h: Likewise.
13763         * lib/unicase/toupper.h: Likewise.
13764         * lib/unictype/bidi_of.h: Likewise.
13765         * lib/unictype/blocks.h: Likewise.
13766         * lib/unictype/categ_C.h: Likewise.
13767         * lib/unictype/categ_Cf.h: Likewise.
13768         * lib/unictype/categ_Cn.h: Likewise.
13769         * lib/unictype/categ_L.h: Likewise.
13770         * lib/unictype/categ_Ll.h: Likewise.
13771         * lib/unictype/categ_Lm.h: Likewise.
13772         * lib/unictype/categ_Lo.h: Likewise.
13773         * lib/unictype/categ_Lu.h: Likewise.
13774         * lib/unictype/categ_M.h: Likewise.
13775         * lib/unictype/categ_Mc.h: Likewise.
13776         * lib/unictype/categ_Mn.h: Likewise.
13777         * lib/unictype/categ_N.h: Likewise.
13778         * lib/unictype/categ_Nd.h: Likewise.
13779         * lib/unictype/categ_Nl.h: Likewise.
13780         * lib/unictype/categ_No.h: Likewise.
13781         * lib/unictype/categ_P.h: Likewise.
13782         * lib/unictype/categ_Pd.h: Likewise.
13783         * lib/unictype/categ_Po.h: Likewise.
13784         * lib/unictype/categ_S.h: Likewise.
13785         * lib/unictype/categ_Sc.h: Likewise.
13786         * lib/unictype/categ_So.h: Likewise.
13787         * lib/unictype/categ_of.h: Likewise.
13788         * lib/unictype/combining.h: Likewise.
13789         * lib/unictype/ctype_alnum.h: Likewise.
13790         * lib/unictype/ctype_alpha.h: Likewise.
13791         * lib/unictype/ctype_graph.h: Likewise.
13792         * lib/unictype/ctype_lower.h: Likewise.
13793         * lib/unictype/ctype_print.h: Likewise.
13794         * lib/unictype/ctype_punct.h: Likewise.
13795         * lib/unictype/ctype_upper.h: Likewise.
13796         * lib/unictype/decdigit.h: Likewise.
13797         * lib/unictype/digit.h: Likewise.
13798         * lib/unictype/numeric.h: Likewise.
13799         * lib/unictype/pr_alphabetic.h: Likewise.
13800         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13801         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13802         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13803         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13804         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13805         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13806         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13807         * lib/unictype/pr_combining.h: Likewise.
13808         * lib/unictype/pr_composite.h: Likewise.
13809         * lib/unictype/pr_currency_symbol.h: Likewise.
13810         * lib/unictype/pr_dash.h: Likewise.
13811         * lib/unictype/pr_decimal_digit.h: Likewise.
13812         * lib/unictype/pr_deprecated.h: Likewise.
13813         * lib/unictype/pr_diacritic.h: Likewise.
13814         * lib/unictype/pr_extender.h: Likewise.
13815         * lib/unictype/pr_grapheme_base.h: Likewise.
13816         * lib/unictype/pr_grapheme_extend.h: Likewise.
13817         * lib/unictype/pr_grapheme_link.h: Likewise.
13818         * lib/unictype/pr_id_continue.h: Likewise.
13819         * lib/unictype/pr_id_start.h: Likewise.
13820         * lib/unictype/pr_ideographic.h: Likewise.
13821         * lib/unictype/pr_ignorable_control.h: Likewise.
13822         * lib/unictype/pr_logical_order_exception.h: Likewise.
13823         * lib/unictype/pr_lowercase.h: Likewise.
13824         * lib/unictype/pr_numeric.h: Likewise.
13825         * lib/unictype/pr_other_alphabetic.h: Likewise.
13826         * lib/unictype/pr_punctuation.h: Likewise.
13827         * lib/unictype/pr_sentence_terminal.h: Likewise.
13828         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13829         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13830         * lib/unictype/pr_unified_ideograph.h: Likewise.
13831         * lib/unictype/pr_uppercase.h: Likewise.
13832         * lib/unictype/pr_xid_continue.h: Likewise.
13833         * lib/unictype/pr_xid_start.h: Likewise.
13834         * lib/unictype/pr_zero_width.h: Likewise.
13835         * lib/unictype/scripts.h: Likewise.
13836         * lib/unictype/scripts_byname.gperf: Likewise.
13837         * lib/unictype/sy_java_ident.h: Likewise.
13838         * lib/unigbrk/gbrkprop.h: Likewise.
13839         * lib/unilbrk/lbrkprop1.h: Likewise.
13840         * lib/unilbrk/lbrkprop2.h: Likewise.
13841         * lib/unilbrk/lbrktables.h: Likewise.
13842         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
13843         LBP_CP. Implement rule LB30.
13844         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
13845         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
13846         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
13847         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
13848         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
13849         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
13850         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
13851         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
13852         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
13853         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
13854         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
13855         bits instead of 16 bits in the code1 and code2 of each composition
13856         rule.
13857         (uc_composition): Update for Unicode 5.2.0.
13858         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
13859         * lib/uninorm/decomposition-table2.h: Likewise.
13860         * lib/uniwbrk/wbrkprop.h: Likewise.
13861         * tests/unicase/test-cased.c: Likewise.
13862         * tests/unicase/test-ignorable.c: Likewise.
13863         * tests/unicase/test-uc_tolower.c: Likewise.
13864         * tests/unicase/test-uc_totitle.c: Likewise.
13865         * tests/unicase/test-uc_toupper.c: Likewise.
13866         * tests/unictype/test-categ_C.c: Likewise.
13867         * tests/unictype/test-categ_Cf.c: Likewise.
13868         * tests/unictype/test-categ_Cn.c: Likewise.
13869         * tests/unictype/test-categ_L.c: Likewise.
13870         * tests/unictype/test-categ_Ll.c: Likewise.
13871         * tests/unictype/test-categ_Lm.c: Likewise.
13872         * tests/unictype/test-categ_Lo.c: Likewise.
13873         * tests/unictype/test-categ_Lu.c: Likewise.
13874         * tests/unictype/test-categ_M.c: Likewise.
13875         * tests/unictype/test-categ_Mc.c: Likewise.
13876         * tests/unictype/test-categ_Mn.c: Likewise.
13877         * tests/unictype/test-categ_N.c: Likewise.
13878         * tests/unictype/test-categ_Nd.c: Likewise.
13879         * tests/unictype/test-categ_Nl.c: Likewise.
13880         * tests/unictype/test-categ_No.c: Likewise.
13881         * tests/unictype/test-categ_P.c: Likewise.
13882         * tests/unictype/test-categ_Pd.c: Likewise.
13883         * tests/unictype/test-categ_Po.c: Likewise.
13884         * tests/unictype/test-categ_S.c: Likewise.
13885         * tests/unictype/test-categ_Sc.c: Likewise.
13886         * tests/unictype/test-categ_So.c: Likewise.
13887         * tests/unictype/test-ctype_alnum.c: Likewise.
13888         * tests/unictype/test-ctype_alpha.c: Likewise.
13889         * tests/unictype/test-ctype_graph.c: Likewise.
13890         * tests/unictype/test-ctype_lower.c: Likewise.
13891         * tests/unictype/test-ctype_print.c: Likewise.
13892         * tests/unictype/test-ctype_punct.c: Likewise.
13893         * tests/unictype/test-ctype_upper.c: Likewise.
13894         * tests/unictype/test-decdigit.h: Likewise.
13895         * tests/unictype/test-digit.h: Likewise.
13896         * tests/unictype/test-numeric.h: Likewise.
13897         * tests/unictype/test-pr_alphabetic.c: Likewise.
13898         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13899         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13900         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
13901         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13902         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13903         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13904         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13905         * tests/unictype/test-pr_combining.c: Likewise.
13906         * tests/unictype/test-pr_composite.c: Likewise.
13907         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13908         * tests/unictype/test-pr_dash.c: Likewise.
13909         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13910         * tests/unictype/test-pr_deprecated.c: Likewise.
13911         * tests/unictype/test-pr_diacritic.c: Likewise.
13912         * tests/unictype/test-pr_extender.c: Likewise.
13913         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13914         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13915         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13916         * tests/unictype/test-pr_id_continue.c: Likewise.
13917         * tests/unictype/test-pr_id_start.c: Likewise.
13918         * tests/unictype/test-pr_ideographic.c: Likewise.
13919         * tests/unictype/test-pr_ignorable_control.c: Likewise.
13920         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
13921         * tests/unictype/test-pr_lowercase.c: Likewise.
13922         * tests/unictype/test-pr_numeric.c: Likewise.
13923         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13924         * tests/unictype/test-pr_punctuation.c: Likewise.
13925         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13926         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13927         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13928         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13929         * tests/unictype/test-pr_uppercase.c: Likewise.
13930         * tests/unictype/test-pr_xid_continue.c: Likewise.
13931         * tests/unictype/test-pr_xid_start.c: Likewise.
13932         * tests/unictype/test-pr_zero_width.c: Likewise.
13933         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13934         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
13935         changed behaviour: line breaking is now disallowed between a letter
13936         or '=' and '('.
13937         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13938         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13939         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13940         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
13941         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13942         lib/uniwidth/width.c.
13943         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
13944         without comments, but with the original copyright notice.
13945         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13946         changes.
13947         * lib/unictype/categ_Cc.h: Likewise.
13948         * lib/unictype/categ_Co.h: Likewise.
13949         * lib/unictype/categ_Cs.h: Likewise.
13950         * lib/unictype/categ_Lt.h: Likewise.
13951         * lib/unictype/categ_Me.h: Likewise.
13952         * lib/unictype/categ_Pc.h: Likewise.
13953         * lib/unictype/categ_Pe.h: Likewise.
13954         * lib/unictype/categ_Pf.h: Likewise.
13955         * lib/unictype/categ_Pi.h: Likewise.
13956         * lib/unictype/categ_Ps.h: Likewise.
13957         * lib/unictype/categ_Sk.h: Likewise.
13958         * lib/unictype/categ_Sm.h: Likewise.
13959         * lib/unictype/categ_Z.h: Likewise.
13960         * lib/unictype/categ_Zl.h: Likewise.
13961         * lib/unictype/categ_Zp.h: Likewise.
13962         * lib/unictype/categ_Zs.h: Likewise.
13963         * lib/unictype/ctype_blank.h: Likewise.
13964         * lib/unictype/ctype_cntrl.h: Likewise.
13965         * lib/unictype/ctype_digit.h: Likewise.
13966         * lib/unictype/ctype_space.h: Likewise.
13967         * lib/unictype/ctype_xdigit.h: Likewise.
13968         * lib/unictype/mirror.h: Likewise.
13969         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13970         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13971         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13972         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13973         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13974         * lib/unictype/pr_bidi_control.h: Likewise.
13975         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13976         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13977         * lib/unictype/pr_bidi_pdf.h: Likewise.
13978         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13979         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13980         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13981         * lib/unictype/pr_format_control.h: Likewise.
13982         * lib/unictype/pr_hex_digit.h: Likewise.
13983         * lib/unictype/pr_hyphen.h: Likewise.
13984         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13985         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13986         * lib/unictype/pr_iso_control.h: Likewise.
13987         * lib/unictype/pr_join_control.h: Likewise.
13988         * lib/unictype/pr_left_of_pair.h: Likewise.
13989         * lib/unictype/pr_line_separator.h: Likewise.
13990         * lib/unictype/pr_math.h: Likewise.
13991         * lib/unictype/pr_non_break.h: Likewise.
13992         * lib/unictype/pr_not_a_character.h: Likewise.
13993         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13994         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13995         * lib/unictype/pr_other_id_continue.h: Likewise.
13996         * lib/unictype/pr_other_id_start.h: Likewise.
13997         * lib/unictype/pr_other_lowercase.h: Likewise.
13998         * lib/unictype/pr_other_math.h: Likewise.
13999         * lib/unictype/pr_other_uppercase.h: Likewise.
14000         * lib/unictype/pr_paired_punctuation.h: Likewise.
14001         * lib/unictype/pr_paragraph_separator.h: Likewise.
14002         * lib/unictype/pr_pattern_syntax.h: Likewise.
14003         * lib/unictype/pr_pattern_white_space.h: Likewise.
14004         * lib/unictype/pr_private_use.h: Likewise.
14005         * lib/unictype/pr_quotation_mark.h: Likewise.
14006         * lib/unictype/pr_radical.h: Likewise.
14007         * lib/unictype/pr_soft_dotted.h: Likewise.
14008         * lib/unictype/pr_space.h: Likewise.
14009         * lib/unictype/pr_titlecase.h: Likewise.
14010         * lib/unictype/pr_variation_selector.h: Likewise.
14011         * lib/unictype/pr_white_space.h: Likewise.
14012         * lib/unictype/sy_c_ident.h: Likewise.
14013         * lib/unictype/sy_c_whitespace.h: Likewise.
14014         * lib/unictype/sy_java_whitespace.h: Likewise.
14015         * modules/uni*/*: Bump version number of expected libunistring version.
14016         Reported by Simon Josefsson.
14017
14018 2011-01-09  Karl Heuer  <kwzh@gnu.org>
14019
14020         useless-if-before-free: fix typo in --help and make the internal,
14021         automatic version date update process work once again.
14022         --help output contained a NUL character instead of the
14023         backslash-zero that was intended.  Also, the "must lie within
14024         the first 8 lines" line is on line 9, and hence not getting
14025         automatically updated.
14026         * build-aux/useless-if-before-free: Fix the former by adding a
14027         backslash, and the latter by condensing the three lines of what-it-does
14028         to a single line, leaving one line of slack for the future.
14029
14030 2011-01-09  Bruno Haible  <bruno@clisp.org>
14031
14032         uniwidth/width: Fix width of U+1D173..U+1D17A.
14033         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
14034         symbolic_width, output_width_property_test): New functions.
14035         (main): Invoke output_nonspacing_property, output_width_property_test.
14036         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
14037         U+1D173..U+1D17A.
14038         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
14039         1.
14040         * modules/uniwidth/*: Bump version number of expected libunistring
14041         version.
14042         * modules/unilbrk/*: Likewise.
14043
14044 2011-01-08  Bruno Haible  <bruno@clisp.org>
14045
14046         uninorm tests: Preserve copyright of Unicode data file.
14047         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
14048         Mention modifications.
14049
14050 2011-01-08  Bruno Haible  <bruno@clisp.org>
14051
14052         gen-uni-tables: Prepare for Unicode 5.2.0.
14053         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
14054         (debug_output_lbp, output_lbp): Update.
14055
14056 2011-01-08  Bruno Haible  <bruno@clisp.org>
14057
14058         unilbrk: Clarify gen-uni-tables.c code.
14059         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
14060         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
14061         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
14062
14063 2011-01-07  Bruno Haible  <bruno@clisp.org>
14064
14065         strtod: Restore errno when successfully parsing Infinity or NaN.
14066         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
14067         restore the original errno.
14068
14069 2011-01-07  Bruno Haible  <bruno@clisp.org>
14070
14071         remove test: Avoid failure on HP-UX 11.
14072         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
14073
14074 2011-01-07  Bruno Haible  <bruno@clisp.org>
14075
14076         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
14077         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
14078         error code.
14079
14080 2011-01-07  Pádraig Brady <P@draigBrady.com>
14081
14082         ignore-value: fixup comments, and add Eric Blake
14083         as an author since he rewrote the macros.
14084         * lib/ignore-value.h (ignore_value):  State that
14085         we now support aggregates.  Also specify exactly
14086         when the GCC warn_unused_result feature was added.
14087
14088 2011-01-06  Eric Blake  <eblake@redhat.com>
14089
14090         ignore-value: support aggregate types
14091         * lib/ignore-value.h (ignore_value): Provide separate gcc
14092         definition.
14093         * modules/ignore-value-tests: New test module.
14094         * tests/test-ignore-value.c: New test.
14095
14096         maint.mk: improve sc_prohibit_strcmp regex
14097         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
14098         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
14099         definition of STRNEQ.
14100
14101         signal: work around Haiku issue with SIGBUS
14102         * lib/siglist.h: Add comment.
14103         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
14104         strsignal's favoring of SIGSEGV.
14105         * tests/test-signal.c (main): Avoid test failure.
14106         * doc/posix-headers/signal.texi (signal.h): Document the issue.
14107         Reported by Scott McCreary.
14108
14109         maint.mk: add pre-release check to ensure submodule commits are public
14110         * top/maint.mk (public-submodule-commit): New rule.
14111         (submodule-checks): New variable.
14112         (alpha beta stable): Depend on the variable.
14113
14114 2011-01-05  Pádraig Brady <P@draigBrady.com>
14115         and Jim Meyering  <meyering@redhat.com>
14116
14117         ignore-value: make ignore_value more generic; deprecate ignore_ptr
14118         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
14119         (ATTRIBUTE_DEPRECATED): Define.
14120         (_ignore_case): New function.
14121         (ignore_value): New macro, to replace the old function.
14122         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
14123         * modules/ignore-value (Depends-on): Add stdint.
14124
14125 2011-01-04  Eric Blake  <eblake@redhat.com>
14126
14127         doc: regenerate INSTALL
14128         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
14129         @firstparagraphindent support, now that autoconf dropped it.
14130         (INSTALL_PRELUDE): Reinstate old macro.
14131         * doc/install.texi: Resync from autoconf.
14132         * doc/INSTALL: Reflect recent autoconf update.
14133         * doc/INSTALL.ISO: Likewise.
14134         * doc/INSTALL.UTF-8: Likewise.
14135         Reported by Karl Berry.
14136
14137 2011-01-04  Bruce Korb  <address@hidden>
14138
14139         git-version-gen: avoid a sub-shell
14140         * build-aux/git-version-gen: Redirect stderr in `...` via
14141         "exec 2>...", rather than via an added sub-shell.
14142
14143 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
14144
14145         git-version-gen: use (...) rather than sh -c '...'
14146         * build-aux/git-version-gen: Rather than hard-coding a shell's name
14147         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
14148
14149 2011-01-03  Jim Meyering  <meyering@redhat.com>
14150
14151         git-version-gen: convert leading TABs to spaces
14152         * build-aux/git-version-gen: Expand leading TABs.
14153
14154         git-version-gen: handle failed "git rev-list"
14155         * build-aux/git-version-gen: Rather than leaking a "fatal" error
14156         from git and proceeding as if it had succeeded but printed no SHA1
14157         checksums, suppress the diagnostic and handle the failure.
14158         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
14159
14160         git-version-gen: include command name in one more diagnostic
14161         * build-aux/git-version-gen: When the required .tarball-version file
14162         was missing or unreadable, you might see the diagnostic from "cat",
14163         but no trace of the name of the invoking script.  Now, you still see
14164         the diagnostic from cat, but also get one from "git-version-gen: ".
14165         Inspired by a patch from Bruce Korb.
14166
14167         update-copyright: adjust test to match changed code
14168         * tests/test-update-copyright.sh: Change test's expected output
14169         to match new actual output.
14170
14171 2011-01-02  Bruno Haible  <bruno@clisp.org>
14172
14173         getlogin_r: Avoid test failure on HP-UX 11.
14174         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
14175         ERANGE when the second argument is zero.
14176         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
14177         portability problem.
14178
14179 2011-01-02  Bruce Korb  <bkorb@gnu.org>
14180
14181         * build-aux/update-copyright: doc Simon's changes
14182
14183 2011-01-02  Simon Josefsson  <simon@josefsson.org>
14184
14185         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
14186         environment variable.
14187
14188 2011-01-02  Bruno Haible  <bruno@clisp.org>
14189
14190         unigbrk: Avoid gcc warnings.
14191         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
14192         unused variable.
14193         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
14194         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
14195         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
14196         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
14197         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
14198         Change type of first argument to 'const char *'.
14199         (main): Remove unused variable.
14200         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
14201         type of first argument to 'const char *'.
14202         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
14203         Likewise.
14204         (main): Change type of variable 's'.
14205         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
14206         to 'int'.
14207
14208 2011-01-02  Bruno Haible  <bruno@clisp.org>
14209
14210         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
14211         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
14212         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
14213         bug.
14214         * lib/pwrite.c: Undo 2010-12-31 patch.
14215         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
14216
14217 2011-01-02  Bruno Haible  <bruno@clisp.org>
14218
14219         pread: Fix test whether it works.
14220         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
14221
14222 2011-01-02  Bruno Haible  <bruno@clisp.org>
14223
14224         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
14225         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
14226         ends in "6". Don't require a specific month name. Try also the locale
14227         names found on HP-UX 11 and Solaris 7.
14228
14229 2011-01-02  Bruno Haible  <bruno@clisp.org>
14230
14231         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
14232         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
14233         C linkage.
14234         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
14235
14236 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14237
14238         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
14239         for consistency, since the "cluster" term is not used elsewhere.
14240         * lib/unigbrk.in.h: Update name.
14241         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
14242         * lib/unigbrk/u16-grapheme-next.c: Update name.
14243         * lib/unigbrk/u16-grapheme-prev.c: Update name.
14244         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
14245         * lib/unigbrk/u32-grapheme-next.c: Update name.
14246         * lib/unigbrk/u32-grapheme-prev.c: Update name.
14247         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
14248         * lib/unigbrk/u8-grapheme-next.c: Update name.
14249         * lib/unigbrk/u8-grapheme-prev.c: Update name.
14250         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
14251         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
14252         Suggested by Bruno Haible.
14253
14254 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14255
14256         Remove module 'u8-grapheme-len' as too redundant with
14257         'u8-grapheme-next'.
14258         * modules/unigbrk/u8-grapheme-len: Delete file.
14259         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
14260         * lib/unigbrk.in.h: Remove prototype for deleted function.
14261         * lib/unigbrk/u8-grapheme-len.c: Delete file.
14262         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
14263
14264         Remove module 'u16-grapheme-len' as too redundant with
14265         'u16-grapheme-next'.
14266         * modules/unigbrk/u16-grapheme-len: Delete file.
14267         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
14268         * lib/unigbrk.in.h: Remove prototype for deleted function.
14269         * lib/unigbrk/u16-grapheme-len.c: Delete file.
14270         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
14271
14272         Remove module 'u32-grapheme-len' as too redundant with
14273         'u32-grapheme-next'.
14274         * modules/unigbrk/u32-grapheme-len: Delete file.
14275         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
14276         * lib/unigbrk.in.h: Remove prototype for deleted function.
14277         * lib/unigbrk/u32-grapheme-len.c: Delete file.
14278         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
14279
14280         Suggested by Bruno Haible.
14281
14282 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14283
14284         * unigbrk.in.h: Fix typo: "ben" => "been".
14285         Reported by Bruno Haible.
14286
14287 2011-01-01  Jim Meyering  <meyering@redhat.com>
14288
14289         maint: update almost all copyright ranges to include 2011
14290         Run the new "make update-copyright" rule.
14291
14292 2011-01-01  Jim Meyering  <meyering@redhat.com>
14293
14294         maint: update-copyright: exempt doc/INSTALL*
14295         * Makefile (update-copyright): Also exclude doc/INSTALL*,
14296         since they are generated.  Suggested by Bruno Haible.
14297
14298 2011-01-01  Jim Meyering  <meyering@redhat.com>
14299
14300         maint: refine the update-copyright rule
14301         * Makefile (update-copyright): Also exclude any file that includes
14302         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
14303         code that merely generates the comment.
14304
14305 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14306
14307         New module 'u8-grapheme-len'.
14308         * modules/unigbrk/u8-grapheme-len: New file.
14309         * modules/unigbrk/u8-grapheme-len-tests: New file.
14310         * lib/unigbrk.in.h: Add prototype for new function.
14311         * lib/unigbrk/u8-grapheme-len.c: New file.
14312         * tests/unigbrk/test-u8-grapheme-len.c: New file.
14313
14314         New module 'u16-grapheme-len'.
14315         * modules/unigbrk/u16-grapheme-len: New file.
14316         * modules/unigbrk/u16-grapheme-len-tests: New file.
14317         * lib/unigbrk.in.h: Add prototype for new function.
14318         * lib/unigbrk/u16-grapheme-len.c: New file.
14319         * tests/unigbrk/test-u16-grapheme-len.c: New file.
14320
14321         New module 'u32-grapheme-len'.
14322         * modules/unigbrk/u32-grapheme-len: New file.
14323         * modules/unigbrk/u32-grapheme-len-tests: New file.
14324         * lib/unigbrk.in.h: Add prototype for new function.
14325         * lib/unigbrk/u32-grapheme-len.c: New file.
14326         * tests/unigbrk/test-u32-grapheme-len.c: New file.
14327
14328         New module 'u8-grapheme-next'.
14329         * modules/unigbrk/u8-grapheme-next: New file.
14330         * modules/unigbrk/u8-grapheme-next-tests: New file.
14331         * lib/unigbrk.in.h: Add prototype for new function.
14332         * lib/unigbrk/u8-grapheme-next.c: New file.
14333         * tests/unigbrk/test-u8-grapheme-next.c: New file.
14334
14335         New module 'u16-grapheme-next'.
14336         * modules/unigbrk/u16-grapheme-next: New file.
14337         * modules/unigbrk/u16-grapheme-next-tests: New file.
14338         * lib/unigbrk.in.h: Add prototype for new function.
14339         * lib/unigbrk/u16-grapheme-next.c: New file.
14340         * tests/unigbrk/test-u16-grapheme-next.c: New file.
14341
14342         New module 'u32-grapheme-next'.
14343         * modules/unigbrk/u32-grapheme-next: New file.
14344         * modules/unigbrk/u32-grapheme-next-tests: New file.
14345         * lib/unigbrk.in.h: Add prototype for new function.
14346         * lib/unigbrk/u32-grapheme-next.c: New file.
14347         * tests/unigbrk/test-u32-grapheme-next.c: New file.
14348
14349         New module 'u8-grapheme-prev'.
14350         * modules/unigbrk/u8-grapheme-prev: New file.
14351         * modules/unigbrk/u8-grapheme-prev-tests: New file.
14352         * lib/unigbrk.in.h: Add prototype for new function.
14353         * lib/unigbrk/u8-grapheme-prev.c: New file.
14354         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
14355
14356         New module 'u16-grapheme-prev'.
14357         * modules/unigbrk/u16-grapheme-prev: New file.
14358         * modules/unigbrk/u16-grapheme-prev-tests: New file.
14359         * lib/unigbrk.in.h: Add prototype for new function.
14360         * lib/unigbrk/u16-grapheme-prev.c: New file.
14361         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
14362
14363         New module 'u32-grapheme-prev'.
14364         * modules/unigbrk/u32-grapheme-prev: New file.
14365         * modules/unigbrk/u32-grapheme-prev-tests: New file.
14366         * lib/unigbrk.in.h: Add prototype for new function.
14367         * lib/unigbrk/u32-grapheme-prev.c: New file.
14368         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
14369
14370         New module 'u8-grapheme-breaks'.
14371         * modules/unigbrk/u8-grapheme-breaks: New file.
14372         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
14373         * lib/unigbrk.in.h: Add prototype for new function.
14374         * lib/unigbrk/u8-grapheme-breaks.c: New file.
14375         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
14376
14377         New module 'u16-grapheme-breaks'.
14378         * modules/unigbrk/u16-grapheme-breaks: New file.
14379         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
14380         * lib/unigbrk.in.h: Add prototype for new function.
14381         * lib/unigbrk/u16-grapheme-breaks.c: New file.
14382         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
14383
14384         New module 'u32-grapheme-breaks'.
14385         * modules/unigbrk/u32-grapheme-breaks: New file.
14386         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
14387         * lib/unigbrk.in.h: Add prototype for new function.
14388         * lib/unigbrk/u32-grapheme-breaks.c: New file.
14389         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
14390
14391         New module 'ulc-grapheme-breaks'.
14392         * modules/unigbrk/ulc-grapheme-breaks: New file.
14393         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
14394         * m4/locale-ar.m4: New file.
14395         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
14396         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
14397         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
14398
14399 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14400
14401         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
14402         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
14403         modified how this file was generated before I initially submitted
14404         the module, but failed to regenerate it.  This meant that several
14405         of the level2 entries were wrong.
14406         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
14407         Remove the division-by-2 that is folded into the table now that
14408         gbrkprop.h has been regenerated properly.  Now -1 entries are
14409         handled correctly.
14410
14411         New module 'unigbrk/uc-gbrk-prop-tests'.
14412         * modules/unigbrk/uc-gbrk-prop-tests: New file.
14413         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
14414         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
14415         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
14416
14417 2011-01-01  Bruno Haible  <bruno@clisp.org>
14418
14419         Avoid use of hexadecimal escapes.
14420         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
14421         instead of hexadecimal escapes.
14422
14423 2011-01-01  Jim Meyering  <meyering@redhat.com>
14424
14425         maint: new rule to update copyright year ranges
14426         * Makefile (update-copyright): New rule.
14427
14428         maint: indent with TABs in Makefile
14429         * Makefile: Expand leading sequences of spaces to TABs
14430
14431         version-etc: update the copyright year it reports
14432         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
14433
14434 2010-12-31  Bruno Haible  <bruno@clisp.org>
14435
14436         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
14437         * lib/isfinite.c (zerof, zerod, zerol): New variables.
14438         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
14439         zero.
14440
14441 2010-12-31  Bruno Haible  <bruno@clisp.org>
14442
14443         pwrite: Work around HP-UX 11.11 bug.
14444         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
14445         works and set REPLACE_PWRITE if not.
14446         * lib/pwrite.c (pwrite): Add an implementation that uses the system
14447         function.
14448         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
14449
14450 2010-12-31  Bruno Haible  <bruno@clisp.org>
14451
14452         pread: Work around HP-UX 11 bugs.
14453         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
14454         and set REPLACE_PREAD if not.
14455         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
14456
14457 2010-12-31  Eric Blake  <eblake@redhat.com>
14458
14459         nl_langinfo: fix YESEXPR on Irix 6.5
14460         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
14461         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
14462         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
14463         it.
14464
14465 2010-12-31  Bruno Haible  <bruno@clisp.org>
14466
14467         iconv: Document HP-UX 11 bug.
14468         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
14469
14470 2010-12-31  Bruno Haible  <bruno@clisp.org>
14471
14472         ldexpl: Fix link error on HP-UX 11.
14473         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
14474         LDEXPL_LIBM, using $ISNANL_LIBM.
14475
14476 2010-12-31  Eric Blake  <eblake@redhat.com>
14477
14478         ftello: avoid compilation failure with SunStudio c89
14479         * lib/ftello.c (ftello): Use lseek, not llseek.
14480
14481         tests: avoid failing coreutils tests on cygwin
14482         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
14483         (create_exe_shims_): Return 0 when skipping.
14484
14485 2010-12-31  Bruno Haible  <bruno@clisp.org>
14486
14487         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
14488         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
14489
14490 2010-12-31  Bruno Haible  <bruno@clisp.org>
14491
14492         waitpid: Fix link error in C++ mode.
14493         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
14494
14495 2010-12-31  Bruno Haible  <bruno@clisp.org>
14496
14497         isnan: Use GCC built-ins when possible.
14498         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
14499         __builtin_isnan.
14500         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
14501         (isnan): Define using GCC built-ins for GCC >= 4.0.
14502
14503 2010-12-31  Bruno Haible  <bruno@clisp.org>
14504
14505         isnand: Fix mistake.
14506         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
14507         __builtin_isnand.
14508
14509 2010-12-31  Bruno Haible  <bruno@clisp.org>
14510
14511         open: Avoid C++ error on HP-UX 11.
14512         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
14513
14514 2010-12-31  Bruno Haible  <bruno@clisp.org>
14515
14516         time_r: Add missing declarations on HP-UX 11.
14517         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
14518         instead of HAVE_LOCALTIME_R.
14519         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
14520         HAVE_LOCALTIME_R always.
14521         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
14522         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
14523         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
14524         HAVE_LOCALTIME_R.
14525         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
14526         * doc/posix-functions/localtime_r.texi: Likewise.
14527
14528 2010-12-29  Eric Blake  <eblake@redhat.com>
14529
14530         mountlist: tweak previous commit
14531         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
14532         Reported by Paul Eggert.
14533
14534         mountlist: fix local drive detection on cygwin
14535         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
14536         that works for cygwin.
14537
14538 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14539
14540         ftoastr, snprintf: ftoastr + snprintf module
14541         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
14542         since the snprintf module now should be good enough here.
14543         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
14544         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
14545         and gl_MODULE_INDICATOR([snprintf]), but the former enables
14546         GNULIB_SNPRINTF only for the test directory, and the latter
14547         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
14548         seems to suffice by itself.
14549
14550 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14551
14552         alloca: one step towards thread-safety
14553         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
14554         need for a static variable.  All callers changed.  This does not
14555         make the alloca replacement thread-safe, but it's one step.
14556
14557         tests: minor indenting change
14558         * tests/init.sh: Sync from coreutils housekeeping patch
14559         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
14560         to keep lines within 80 columns.
14561
14562 2010-12-28  Jim Meyering  <meyering@redhat.com>
14563
14564         regex: don't infloop on persistent failing calloc
14565         * lib/regexec.c (build_trtable): Return failure indication upon
14566         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
14567         In glibc, this was fixed for version 2.13:
14568         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
14569
14570 2010-12-28  Bruno Haible  <bruno@clisp.org>
14571             Paul Eggert <eggert@cs.ucla.edu>
14572
14573         linkat: Make implementation robust against system behaviour variations.
14574         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
14575         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
14576         way, and to -2 if it needs a generic runtime test.
14577         * lib/linkat.c (solaris_optimized_link_immediate,
14578         solaris_optimized_link_follow): New functions.
14579         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
14580         (check_same_link): Use it.
14581
14582 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
14583
14584         New module 'unigbrk/base'.
14585         * modules/unigbrk/base: New file.
14586         * lib/unigbrk.in.h: New file.
14587
14588         New module 'unigbrk/uc-gbrk-prop'.
14589         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
14590         * modules/unigbrk/uc-gbrk-prop: New file.
14591         * lib/unigbrk/gbrkprop.h: New file.
14592         * lib/unigbrk/uc-gbrk-prop.c: New file.
14593
14594         New module 'unigbrk/uc-is-grapheme-break'.
14595         * modules/unigbrk/uc-is-grapheme-break: New file.
14596         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
14597         * lib/unigbrk/uc-is-grapheme-break.c: New file.
14598         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
14599         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
14600         * tests/unigbrk/GraphemeBreakTest.txt: New file.
14601
14602         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
14603
14604 2010-12-27  Bruno Haible  <bruno@clisp.org>
14605
14606         linkat test: Avoid failure on Solaris 11 2010-11.
14607         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
14608
14609 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14610
14611         utimens: work around glibc rounding bug on more platforms
14612         * lib/utimens.c (fdutimens): Work around rounding bug even if
14613         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
14614         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
14615
14616 2010-12-27  Bruno Haible  <bruno@clisp.org>
14617
14618         select tests: Improve comments.
14619         * tests/test-select.c (do_select): Add comments.
14620
14621 2010-12-27  Bruno Haible  <bruno@clisp.org>
14622
14623         select tests: Safer way of handling timeout.
14624         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
14625         at every invocation.
14626
14627 2010-12-27  Bruno Haible  <bruno@clisp.org>
14628
14629         select tests: Use 'bool' where appropriate.
14630         * tests/test-select.c (connect_to_socket): Change argument type to
14631         'bool'.
14632
14633 2010-12-27  Bruno Haible  <bruno@clisp.org>
14634
14635         select tests: Use existing modules.
14636         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
14637         (configure.ac): Don't test for unistd.h.
14638         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
14639         declared in <unistd.h>.
14640
14641 2010-12-27  Bruno Haible  <bruno@clisp.org>
14642
14643         mbrtowc: Work around a Solaris 7 bug.
14644         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
14645         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
14646         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
14647         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
14648         MBRTOWC_NULL_ARG1_BUG.
14649         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
14650         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
14651         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
14652         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
14653
14654 2010-12-27  Jim Meyering  <meyering@redhat.com>
14655
14656         read-file.c: tweak syntax
14657         * lib/read-file.c (fread_file): Remove space after "*" in function
14658         definitions.
14659
14660 2010-12-27  Bruno Haible  <bruno@clisp.org>
14661
14662         times test: Avoid gcc warnings on OSF/1.
14663         * tests/test-times.c (main): Cast printf arguments from clock_t to
14664         'long int'.
14665
14666 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14667
14668         utimens: work around glibc rounding bug on older Linux kernels
14669         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
14670         on Linux with a glibc whose utimes might not work, then work
14671         around a longstanding glibc bug involving rounding rather than
14672         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
14673         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14674
14675 2010-12-26  Bruno Haible  <bruno@clisp.org>
14676
14677         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
14678         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
14679         _GL_CXXALIAS_SYS.
14680         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14681
14682 2010-12-26  Bruno Haible  <bruno@clisp.org>
14683
14684         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
14685         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
14686         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14687         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
14688         looking for the declaration.
14689         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
14690         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
14691         problem.
14692         * doc/posix-functions/inet_pton.texi: Likewise.
14693
14694 2010-12-26  Bruno Haible  <bruno@clisp.org>
14695
14696         arpa_inet: Use the common idioms with C++ support.
14697         * lib/arpa_inet.in.h: Include c++defs.h.
14698         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
14699         support.
14700         * modules/arpa_inet (Depends-on): Add c++defs.
14701         (Makefile.am): Substitute the contents of c++defs.h.
14702         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
14703         * modules/arpa_inet-c++-tests: New file.
14704         * tests/test-arpa_inet-c++.cc: New file.
14705
14706 2010-12-25  Bruno Haible  <bruno@clisp.org>
14707
14708         Fix more C++ link errors on Solaris 8.
14709         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
14710         $(LIB_EACCESS).
14711         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
14712         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
14713         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
14714         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
14715         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
14716
14717 2010-12-25  Bruno Haible  <bruno@clisp.org>
14718
14719         printf-posix: Fix link error when a non-GCC compiler is used.
14720         * lib/stdio.in.h (printf): When not using GCC, override printf
14721         correctly.
14722         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14723
14724 2010-12-25  Bruno Haible  <bruno@clisp.org>
14725
14726         strerror_r-posix: Update doc.
14727         * doc/posix-functions/strerror_r.texi: Update doc about the return
14728         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
14729
14730 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
14731
14732         utimens: simplify the logic of the previous change
14733         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
14734         This should not affect whether the test succeeds or fails.
14735
14736         utimens: configure better on hosts with NFS clock skew
14737         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
14738         uses the clock of the local host.  It might use the clock of the
14739         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
14740         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14741
14742 2010-12-25  Bruno Haible  <bruno@clisp.org>
14743
14744         ptsname test: Avoid failure on Solaris.
14745         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
14746         open a pseudo-terminal; don't use BSD-style ptys.
14747         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
14748
14749 2010-12-25  Bruno Haible  <bruno@clisp.org>
14750
14751         ptsname: Avoid ERANGE failure on some systems.
14752         * lib/ptsname.c (buffer): Increase size.
14753
14754 2010-12-25  Bruno Haible  <bruno@clisp.org>
14755
14756         rename, renameat: Avoid test failures at NFS mounted locations.
14757         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
14758         so that subsequent mkdir calls succeed.
14759
14760 2010-12-25  Bruno Haible  <bruno@clisp.org>
14761
14762         iswblank: Fix C++ link error on Solaris 8.
14763         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
14764         _GL_FUNCDECL_SYS.
14765
14766 2010-12-25  Bruno Haible  <bruno@clisp.org>
14767
14768         unistd: Fix C++ link error on Solaris 8.
14769         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
14770
14771 2010-12-25  Bruno Haible  <bruno@clisp.org>
14772
14773         readlink doc: Mention an old glibc bug.
14774         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
14775
14776 2010-12-25  Bruno Haible  <bruno@clisp.org>
14777
14778         fcntl-h: Fix for use of C++ on glibc systems.
14779         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14780         also on glibc systems in C++ mode.
14781         Reported by Gary V. Vaughan <gary@gnu.org>.
14782
14783 2010-12-25  Bruno Haible  <bruno@clisp.org>
14784
14785         roundl-ieee: Make it work on OSF/1 5.1 with cc.
14786         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
14787
14788 2010-12-25  Bruno Haible  <bruno@clisp.org>
14789
14790         truncl-ieee: Make it work on OSF/1 5.1 with cc.
14791         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
14792         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
14793         test whether truncl works according to ISO C 99 with IEC 60559.
14794         * m4/truncl-ieee.m4: New file.
14795         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
14796         m4/signbit.m4.
14797         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
14798
14799 2010-12-25  Bruno Haible  <bruno@clisp.org>
14800
14801         ceill-ieee: Make it work on OSF/1 5.1 with cc.
14802         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
14803         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
14804         test whether ceill works according to ISO C 99 with IEC 60559.
14805         * m4/ceill-ieee.m4: New file.
14806         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
14807         m4/signbit.m4.
14808         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
14809
14810 2010-12-25  Bruno Haible  <bruno@clisp.org>
14811
14812         Ensure all prerequisites of <wchar.h> are included.
14813         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
14814         before <wchar.h>.
14815         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14816         gl_MBRLEN_NUL_RETVAL): Likewise.
14817         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14818         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
14819         AC_FUNC_MBRTOWC): Likewise.
14820         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14821         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
14822         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14823         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14824         Likewise.
14825         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14826         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
14827         (gl_WCHAR_H): Improve comments.
14828         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14829
14830 2010-12-25  Bruno Haible  <bruno@clisp.org>
14831
14832         strtok_r: Fix C syntax error in autoconf macro.
14833         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
14834         characters in test program.
14835
14836 2010-12-24  Bruno Haible  <bruno@clisp.org>
14837
14838         ceil, trunc, round: Fix gcc warnings.
14839         * lib/ceil.c (MIN): Undefine before redefining.
14840         * lib/trunc.c (MIN): Likewise.
14841         * lib/round.c (MIN): Likewise.
14842         Include <math.h> first.
14843
14844 2010-12-24  Bruno Haible  <bruno@clisp.org>
14845
14846         select tests: Avoid failures on OSF/1 5.1.
14847         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
14848         failure of closing the last socket; it may fail with ECONNRESET.
14849
14850 2010-12-24  Eric Blake  <eblake@redhat.com>
14851
14852         stdint: avoid HP-UX 10.20 preprocessor bug
14853         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
14854         than #if.
14855         * tests/test-floor2.c (main): Likewise.
14856         Reported by Peter O'Gorman.
14857
14858         pipe: make obsoletion transition easier
14859         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
14860         * modules/pipe (Files): Include revived file.
14861         (Include): Drop reference, to mirror getdate's behavior.
14862
14863 2010-12-24  Bruno Haible  <bruno@clisp.org>
14864
14865         sys_socket: Hide mismatch of declarations on NonStop Kernel.
14866         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
14867         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
14868         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14869
14870 2010-12-24  Bruno Haible  <bruno@clisp.org>
14871
14872         gethostname: Ensure declaration on NonStop Kernel.
14873         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
14874         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14875
14876 2010-12-24  Bruno Haible  <bruno@clisp.org>
14877
14878         sys_select: Ensure all necessary types on NonStop Kernel.
14879         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
14880         include <sys/time.h>.
14881         * doc/posix-headers/sys_select.texi: Mention that it's missing on
14882         NonStop Kernel.
14883         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14884
14885 2010-12-24  Bruno Haible  <bruno@clisp.org>
14886
14887         sys_select: Remove unneeded include.
14888         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
14889         have <sys/select.h>.
14890
14891 2010-12-24  Bruno Haible  <bruno@clisp.org>
14892
14893         gethostname: Provide a fallback for HOST_NAME_MAX.
14894         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
14895         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
14896         instead.
14897         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14898
14899 2010-12-24  Bruno Haible  <bruno@clisp.org>
14900
14901         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
14902         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
14903         (SA_RESTART): Likewise.
14904         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14905
14906 2010-12-24  Bruno Haible  <bruno@clisp.org>
14907
14908         signal: Define NSIG.
14909         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
14910         * tests/test-signal.c (nsig): New variable.
14911         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14912
14913 2010-12-24  Bruno Haible  <bruno@clisp.org>
14914
14915         rename, renameat: Avoid test failures on OSF/1 5.1.
14916         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
14917         alternative error codes.
14918         * tests/test-renameat.c (main): Likewise.
14919
14920 2010-12-24  Bruno Haible  <bruno@clisp.org>
14921
14922         *printf: Detect large precisions bug on Solaris 10/SPARC.
14923         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
14924         by Paul Eggert.
14925         * tests/test-snprintf-posix.h (test_function): Add this test code here
14926         too.
14927         * tests/test-sprintf-posix.h (test_function): Likewise.
14928         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14929         * tests/test-vasprintf-posix.c (test_function): Likewise.
14930         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
14931         around by gnulib.
14932         * doc/posix-functions/printf.texi: Likewise.
14933         * doc/posix-functions/snprintf.texi: Likewise.
14934         * doc/posix-functions/sprintf.texi: Likewise.
14935         * doc/posix-functions/vfprintf.texi: Likewise.
14936         * doc/posix-functions/vprintf.texi: Likewise.
14937         * doc/posix-functions/vsnprintf.texi: Likewise.
14938         * doc/posix-functions/vsprintf.texi: Likewise.
14939         * doc/posix-functions/dprintf.texi: Undo last commit.
14940         * doc/posix-functions/vdprintf.texi: Likewise.
14941
14942 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14943
14944         tests: port test-fdutimensat.c to Solaris 8
14945         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
14946         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
14947         On Solaris 8, it fails with errno == ENOSYS, because there is no
14948         futimens (so it can't use the fd), and there is no lutimens (so it
14949         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
14950
14951         vsnprintf: make more consistent with snprintf; doc fixes
14952
14953         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
14954         the byte count return problem was promoted from the snprintf-posix
14955         to the snprintf module.
14956         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14957         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
14958         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
14959         * tests/test-snprintf.c (main): Check the byte count returned.
14960         * tests/test-vsnprintf.c (main): Likewise.
14961
14962 2010-12-23  Eric Blake  <eblake@redhat.com>
14963
14964         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
14965         * modules/sigpipe (License): Relax license.
14966
14967 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14968
14969         doc: document Solaris printf bug with large float precisions
14970         * doc/posix-functions/dprintf.texi (dprintf):
14971         * doc/posix-functions/fprintf.texi (fprintf):
14972         * doc/posix-functions/printf.texi (printf):
14973         * doc/posix-functions/snprintf.texi (snprintf):
14974         * doc/posix-functions/sprintf.texi (sprintf):
14975         * doc/posix-functions/vdprintf.texi (vdprintf):
14976         * doc/posix-functions/vfprintf.texi (vfprintf):
14977         * doc/posix-functions/vprintf.texi (vprintf):
14978         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14979         * doc/posix-functions/vsprintf.texi (vsprintf):
14980         Mention that these functions mishandle large floating point
14981         precisions on Solaris 10.  The same bug is also present in Solaris
14982         8, and I assume earlier.  This causes "cd gnulib-tests; make
14983         check" to fail on Solaris 8 (and I assume, later) when building
14984         the latest coreutils, in test-vasprintf-posix's call to
14985         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14986         the wide flavors (e.g., wprintf) so this patch just updates the
14987         documentation for the narrow ones.
14988
14989         test-posixtm.c: add two tests
14990         * tests/test-posixtm.c: Add two tests, to highlight the
14991         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14992         around this bug; this is merely to document it.
14993
14994 2010-12-22  Bruno Haible  <bruno@clisp.org>
14995
14996         getlogin_r: Work around portability problem on OSF/1.
14997         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14998         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14999         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
15000         test for a truncated result.
15001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
15002         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
15003         * modules/getlogin_r (Depends-on): Add memchr.
15004         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
15005
15006 2010-12-22  Bruno Haible  <bruno@clisp.org>
15007
15008         ptsname: Avoid test failure on OSF/1 5.1.
15009         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
15010         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
15011         (same_slave): New function.
15012         (main): Use it to compare ptsname's result with the expected file name.
15013
15014 2010-12-22  Bruno Haible  <bruno@clisp.org>
15015
15016         Port extended stdio modules to HP NonStop Kernel.
15017         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
15018         macros.
15019         * lib/fbufmode.c: Update comments.
15020         * lib/fflush.c: Likewise.
15021         * lib/fpurge.c: Likewise.
15022         * lib/freadable.c: Likewise.
15023         * lib/freadahead.c: Likewise.
15024         * lib/freading.c: Likewise.
15025         * lib/freadptr.c: Likewise.
15026         * lib/freadseek.c: Likewise.
15027         * lib/fseeko.c: Likewise.
15028         * lib/fseterr.c: Likewise.
15029         * lib/fwritable.c: Likewise.
15030         * lib/fwriting.c: Likewise.
15031         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15032
15033 2010-12-22  Bruno Haible  <bruno@clisp.org>
15034
15035         ttyname_r: Work around bug on OSF/1 5.1.
15036         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
15037         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
15038         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
15039         present.
15040         * lib/ttyname_r.c (ttyname_r): Update comments.
15041
15042 2010-12-22  Bruno Haible  <bruno@clisp.org>
15043
15044         round: Implement result sign according to IEEE 754.
15045         * lib/round.c (MIN, MINUS_ZERO): New macros.
15046         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
15047         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
15048         * tests/test-round-ieee.c (main): Likewise.
15049         * tests/test-roundl-ieee.c (main): Likewise.
15050
15051         trunc: Implement result sign according to IEEE 754.
15052         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
15053         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
15054         * tests/test-trunc2.c: Include minus-zero.h.
15055         (MINUS_ZERO): New macro.
15056         (trunc_reference): Keep in sync with lib/trunc.c.
15057         * tests/test-truncf2.c: Include minus-zero.h.
15058         (MINUS_ZERO): New macro.
15059         (truncf_reference): Keep in sync with lib/trunc.c.
15060         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
15061         * tests/test-trunc-ieee.c (main): Likewise.
15062         * tests/test-truncl-ieee.c (main): Likewise.
15063
15064         ceil: Implement result sign according to IEEE 754.
15065         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
15066         (FUNC): Return -0.0 for -1 < x < 0.
15067         * tests/test-ceil2.c: Include minus-zero.h.
15068         (MINUS_ZERO): New macro.
15069         (ceil_reference): Keep in sync with lib/ceil.c.
15070         * tests/test-ceilf2.c: Include minus-zero.h.
15071         (MINUS_ZERO): New macro.
15072         (ceilf_reference): Keep in sync with lib/ceil.c.
15073         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
15074         * tests/test-ceil-ieee.c (main): Likewise.
15075         * tests/test-ceill-ieee.c (main): Likewise.
15076
15077         floor: Implement result sign according to IEEE 754.
15078         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
15079         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
15080         * tests/test-floorf2.c (floorf_reference): Likewise.
15081         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
15082         * tests/test-floor-ieee.c (main): Likewise.
15083         * tests/test-floorl-ieee.c (main): Likewise.
15084
15085 2010-12-22  Bruno Haible  <bruno@clisp.org>
15086
15087         getaddrinfo: Update doc.
15088         * doc/posix-functions/gai_strerror.texi: Return type is also different
15089         on AIX and HP-UX.
15090
15091 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15092
15093         getaddrinfo, inet_ntop: Update doc for Solaris.
15094         * doc/posix-functions/gai_strerror.texi: Return type is also an
15095         issue on Solaris 9 and earlier.
15096         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
15097         on Solaris 10 and earlier.
15098
15099 2010-12-21  Bruno Haible  <bruno@clisp.org>
15100
15101         New module 'roundl-ieee'.
15102         * modules/roundl-ieee: New file.
15103         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
15104         test whether roundl works according to ISO C 99 with IEC 60559.
15105         * m4/roundl-ieee.m4: New file.
15106         * modules/roundl-ieee-tests: New file.
15107         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
15108         * tests/test-roundl.c (main): Remove signbit tests.
15109         * modules/roundl-tests (Depends-on): Remove signbit.
15110         * doc/posix-functions/roundl.texi: Mention the new module.
15111
15112 2010-12-21  Bruno Haible  <bruno@clisp.org>
15113
15114         New module 'truncl-ieee'.
15115         * modules/truncl-ieee: New file.
15116         * modules/truncl-ieee-tests: New file.
15117         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
15118         * tests/test-truncl.c (main): Remove signbit tests.
15119         * modules/truncl-tests (Depends-on): Remove signbit.
15120         * doc/posix-functions/truncl.texi: Mention the new module.
15121
15122 2010-12-21  Bruno Haible  <bruno@clisp.org>
15123
15124         New module 'ceill-ieee'.
15125         * modules/ceill-ieee: New file.
15126         * modules/ceill-ieee-tests: New file.
15127         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
15128         * tests/test-ceill.c (main): Remove signbit tests.
15129         * modules/ceill-tests (Depends-on): Remove signbit.
15130         * doc/posix-functions/ceill.texi: Mention the new module.
15131
15132 2010-12-21  Bruno Haible  <bruno@clisp.org>
15133
15134         New module 'floorl-ieee'.
15135         * modules/floorl-ieee: New file.
15136         * modules/floorl-ieee-tests: New file.
15137         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
15138         * tests/test-floorl.c (main): Remove signbit tests.
15139         * modules/floorl-tests (Depends-on): Remove signbit.
15140         * doc/posix-functions/floorl.texi: Mention the new module.
15141
15142 2010-12-21  Bruno Haible  <bruno@clisp.org>
15143
15144         New module 'round-ieee'.
15145         * modules/round-ieee: New file.
15146         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
15147         whether round works according to ISO C 99 with IEC 60559.
15148         * m4/round-ieee.m4: New file.
15149         * modules/round-ieee-tests: New file.
15150         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
15151         * tests/test-round1.c (main): Remove signbit tests.
15152         * modules/round-tests (Depends-on): Remove 'signbit'.
15153         * doc/posix-functions/round.texi: Mention the new module.
15154
15155 2010-12-21  Bruno Haible  <bruno@clisp.org>
15156
15157         New module 'trunc-ieee'.
15158         * modules/trunc-ieee: New file.
15159         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
15160         whether trunc works according to ISO C 99 with IEC 60559.
15161         * m4/trunc-ieee.m4: New file.
15162         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
15163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
15164         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
15165         * modules/trunc-ieee-tests: New file.
15166         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
15167         * tests/test-trunc1.c (main): Remove signbit tests.
15168         * modules/trunc-tests (Depends-on): Remove 'signbit'.
15169         * doc/posix-functions/trunc.texi: Mention the new module.
15170
15171 2010-12-21  Bruno Haible  <bruno@clisp.org>
15172
15173         New module 'ceil-ieee'.
15174         * modules/ceil-ieee: New file.
15175         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
15176         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
15177         ISO C 99 with IEC 60559.
15178         * m4/ceil-ieee.m4: New file.
15179         * modules/ceil (Files): Add lib/ceil.c.
15180         (Depends-on): Add 'float'.
15181         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15182         * lib/math.in.h (ceil): New declaration.
15183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
15184         REPLACE_CEIL.
15185         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
15186         * modules/ceil-ieee-tests: New file.
15187         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
15188         * tests/test-math-c++.cc: Check the signature of 'ceil'.
15189         * doc/posix-functions/ceil.texi: Mention the new module.
15190
15191 2010-12-21  Bruno Haible  <bruno@clisp.org>
15192
15193         New module 'floor-ieee'.
15194         * modules/floor-ieee: New file.
15195         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
15196         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
15197         ISO C 99 with IEC 60559.
15198         * m4/floor-ieee.m4: New file.
15199         * modules/floor (Files): Add lib/floor.c.
15200         (Depends-on): Add 'float'.
15201         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15202         * lib/math.in.h (floor): New declaration.
15203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
15204         REPLACE_FLOOR.
15205         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
15206         * modules/floor-ieee-tests: New file.
15207         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
15208         * tests/test-math-c++.cc: Check the signature of 'floor'.
15209         * doc/posix-functions/floor.texi: Mention the new module.
15210
15211 2010-12-21  Bruno Haible  <bruno@clisp.org>
15212
15213         New module 'roundf-ieee'.
15214         * modules/roundf-ieee: New file.
15215         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
15216         test whether roundf works according to ISO C 99 with IEC 60559.
15217         * m4/roundf-ieee.m4: New file.
15218         * modules/roundf-ieee-tests: New file.
15219         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
15220         * tests/test-roundf1.c (main): Remove signbit tests.
15221         * modules/roundf-tests (Depends-on): Remove 'signbit'.
15222         * doc/posix-functions/roundf.texi: Mention the new module.
15223
15224 2010-12-21  Bruno Haible  <bruno@clisp.org>
15225
15226         New module 'truncf-ieee'.
15227         * modules/truncf-ieee: New file.
15228         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
15229         test whether truncf works according to ISO C 99 with IEC 60559.
15230         * m4/truncf-ieee.m4: New file.
15231         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
15232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
15233         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
15234         * modules/truncf-ieee-tests: New file.
15235         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
15236         * tests/test-truncf1.c (main): Remove signbit tests.
15237         * modules/truncf-tests (Depends-on): Remove 'signbit'.
15238         * doc/posix-functions/truncf.texi: Mention the new module.
15239
15240 2010-12-21  Bruno Haible  <bruno@clisp.org>
15241
15242         New module 'ceilf-ieee'.
15243         * modules/ceilf-ieee: New file.
15244         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
15245         test whether ceilf works according to ISO C 99 with IEC 60559.
15246         * m4/ceilf-ieee.m4: New file.
15247         * modules/ceilf-ieee-tests: New file.
15248         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
15249         * tests/test-ceilf1.c (main): Remove signbit tests.
15250         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
15251         * doc/posix-functions/ceilf.texi: Mention the new module.
15252
15253 2010-12-21  Bruno Haible  <bruno@clisp.org>
15254
15255         New module 'floorf-ieee'.
15256         * modules/floorf-ieee: New file.
15257         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
15258         test whether floorf works according to ISO C 99 with IEC 60559.
15259         * m4/floorf-ieee.m4: New file.
15260         * modules/floorf-ieee-tests: New file.
15261         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
15262         * tests/test-floorf1.c (main): Remove signbit tests.
15263         * modules/floorf-tests (Depends-on): Remove 'signbit'.
15264         * doc/posix-functions/floorf.texi: Mention the new module.
15265
15266 2010-12-21  Bruno Haible  <bruno@clisp.org>
15267
15268         Support for minus zero in autoconf macros.
15269         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
15270         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
15271         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
15272         * tests/minus-zero.h: Update comments.
15273
15274 2010-12-21  Bruno Haible  <bruno@clisp.org>
15275
15276         Tests for module 'ceil'.
15277         * modules/ceil-tests: New file.
15278         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
15279         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
15280
15281 2010-12-21  Bruno Haible  <bruno@clisp.org>
15282
15283         Tests for module 'floor'.
15284         * modules/floor-tests: New file.
15285         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
15286         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
15287
15288 2010-12-21  Bruno Haible  <bruno@clisp.org>
15289
15290         math: Fix indentation.
15291         * lib/math.in.h (floorf): Fix indentation.
15292
15293 2010-12-21  Bruno Haible  <bruno@clisp.org>
15294
15295         Fix cross-compilation guesses on Solaris.
15296         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
15297         not match "solaris2.10".
15298         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15299         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
15300         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
15301
15302 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
15303
15304         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
15305         This fixes a problem observed with the latest coreutils snapshot
15306         that caused a test to fail on Solaris 8.  src/csplit.c's call
15307         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
15308         earlier, instead of returning the number of bytes that would have
15309         been generated; this causes csplit to incorrectly report memory
15310         exhaustion.
15311         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
15312         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
15313         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
15314         comments to match.
15315         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
15316         Fix typo in matching older versions of Solaris: "solaris2.10"
15317         is matched by the shell pattern "solaris2.[0-9]*".  This matters
15318         only for guessing while cross-compiling.
15319         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
15320
15321 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15322
15323         ftoastr: fix comment again
15324         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
15325         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
15326         Also, simplify example a bit by using flags = 0.
15327
15328 2010-12-20  Bruno Haible  <bruno@clisp.org>
15329
15330         round*, trunc*: Update documentation regarding glibc.
15331         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
15332         * doc/posix-functions/round.texi: Likewise.
15333         * doc/posix-functions/roundl.texi: Likewise.
15334         * doc/posix-functions/truncf.texi: Likewise.
15335         * doc/posix-functions/trunc.texi: Likewise.
15336         * doc/posix-functions/truncl.texi: Likewise.
15337
15338 2010-12-20  Bruno Haible  <bruno@clisp.org>
15339
15340         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
15341         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
15342         * doc/posix-functions/round.texi: Likewise.
15343         * doc/posix-functions/roundl.texi: Likewise.
15344
15345 2010-12-20  Bruno Haible  <bruno@clisp.org>
15346
15347         ttyname_r: Add missing declaration on HP-UX 11.
15348         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
15349         HAVE_TTYNAME_R.
15350         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
15351         declared. Set HAVE_TTYNAME_R always.
15352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15353         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
15354         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
15355         HAVE_TTYNAME_R.
15356         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
15357
15358 2010-12-20  Bruno Haible  <bruno@clisp.org>
15359
15360         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
15361         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
15362         * doc/posix-functions/getlogin_r.texi: Likewise.
15363         * tests/test-getlogin.c: Include <errno.h>.
15364         (main): Avoid test failure on HP-UX 11.11.
15365         * tests/test-getlogin_r.c (main): Likewise.
15366
15367 2010-12-20  Bruno Haible  <bruno@clisp.org>
15368
15369         getlogin_r: Add missing declaration on HP-UX 11.
15370         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
15371         declared also when it exists as a function.
15372         * doc/posix-functions/getlogin_r.texi: Document this workaround.
15373
15374 2010-12-20  Bruno Haible  <bruno@clisp.org>
15375
15376         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
15377         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
15378         through wcrtomb.
15379
15380 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15381
15382         ftoastr: fix comment
15383         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
15384         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
15385
15386 2010-12-19  Bruno Haible  <bruno@clisp.org>
15387
15388         isnan: Ensure it is a macro.
15389         * lib/math.in.h (isnan): Define as a macro if not already a macro.
15390         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
15391         Solaris.
15392
15393 2010-12-19  Bruno Haible  <bruno@clisp.org>
15394
15395         ldexpl test: Fix link error on OSF/1 5.1.
15396         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
15397
15398 2010-12-19  Bruno Haible  <bruno@clisp.org>
15399
15400         wctype: Make it work in C++ mode on OSF/1 5.1.
15401         * lib/wctype.in.h (iswblank): Declare but not define here.
15402         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
15403         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
15404         * modules/wctype (Files): Add lib/iswblank.c.
15405
15406 2010-12-19  Bruno Haible  <bruno@clisp.org>
15407
15408         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
15409         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
15410         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
15411
15412 2010-12-19  Bruno Haible  <bruno@clisp.org>
15413
15414         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
15415         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
15416         _POSIX_PII_SOCKET.
15417         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
15418         * doc/posix-functions/recvfrom.texi: Likewise.
15419         * doc/posix-functions/send.texi: Likewise.
15420         * doc/posix-functions/sendto.texi: Likewise.
15421
15422 2010-12-19  Bruno Haible  <bruno@clisp.org>
15423
15424         tcgetsid: Add missing declaration on OSF/1 5.1.
15425         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
15426         HAVE_TCGETSID.
15427         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
15428         Don't set HAVE_TCGETSID.
15429         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
15430         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
15431         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
15432         HAVE_TCGETSID.
15433         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
15434
15435 2010-12-19  Bruno Haible  <bruno@clisp.org>
15436
15437         stdio: Fix problem with popen() declaration on OSF/1 5.1.
15438         * lib/stdio.in.h: During the include_next statement, let recursive
15439         includes of this file include only the system header file.
15440
15441 2010-12-19  Bruno Haible  <bruno@clisp.org>
15442
15443         iconv_open: Fix regression from 2010-12-04.
15444         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
15445         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
15446
15447 2010-12-19  Bruno Haible  <bruno@clisp.org>
15448
15449         stdbool test: Avoid a gcc warning.
15450         * tests/test-stdbool.c (main): Fail if e1 is false.
15451         Reported by Jim Meyering.
15452
15453 2010-12-19  Jim Meyering  <meyering@redhat.com>
15454
15455         setenv: restore to working order
15456         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
15457         mistakenly removed.
15458         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
15459         HAVE_SETENV.
15460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
15461         HAVE_SETENV.
15462
15463 2010-12-19  Bruno Haible  <bruno@clisp.org>
15464
15465         Document some different function declarations on OSF/1 5.1.
15466         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
15467         * doc/posix-functions/inet_ntop.texi: Likewise.
15468         * doc/posix-functions/gethostname.texi: Likewise.
15469         * lib/unistd.in.h (gethostname): Update comment.
15470
15471 2010-12-19  Bruno Haible  <bruno@clisp.org>
15472
15473         doc: Mention vasprintf-posix module.
15474         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
15475         the 'vasprintf-posix' module.
15476         * doc/glibc-functions/vasprintf.texi: Likewise.
15477
15478 2010-12-19  Bruno Haible  <bruno@clisp.org>
15479
15480         unsetenv: Add missing declaration on OSF/1 5.1.
15481         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
15482         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
15483         Don't set HAVE_UNSETENV. In the test program, set _BSD.
15484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
15485         not HAVE_UNSETENV.
15486         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
15487         HAVE_UNSETENV.
15488         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
15489
15490 2010-12-19  Bruno Haible  <bruno@clisp.org>
15491
15492         setenv: Add missing declaration on OSF/1 5.1.
15493         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
15494         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
15495         declared. Don't set HAVE_SETENV.
15496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
15497         not HAVE_SETENV.
15498         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
15499         HAVE_SETENV.
15500         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
15501
15502 2010-12-19  Bruno Haible  <bruno@clisp.org>
15503
15504         nl_langinfo tests: Avoid gcc warning.
15505         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
15506
15507 2010-12-19  Bruno Haible  <bruno@clisp.org>
15508
15509         mknod: Avoid error in C++ mode on OSF/1 with GCC.
15510         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
15511         _GL_CXXALIAS_SYS.
15512
15513 2010-12-19  Bruno Haible  <bruno@clisp.org>
15514
15515         stdbool: Relax test.
15516         * tests/test-stdbool.c (e): Don't require that casts from a variable's
15517         address to 'bool' work in static initializer, for compilers other than
15518         GCC.
15519
15520 2010-12-19  Bruno Haible  <bruno@clisp.org>
15521
15522         ftello: Add missing declaration on OSF/1 5.1.
15523         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
15524         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
15525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
15526         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
15527         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
15528
15529 2010-12-19  Bruno Haible  <bruno@clisp.org>
15530
15531         fseeko: Add missing declaration on OSF/1 5.1.
15532         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
15533         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
15534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
15535         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
15536         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
15537
15538 2010-12-19  Bruno Haible  <bruno@clisp.org>
15539
15540         fchdir: Add missing declaration on OSF/1 5.1.
15541         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
15542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
15543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
15544         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
15545         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
15546
15547 2010-12-19  Bruno Haible  <bruno@clisp.org>
15548
15549         relocatable-prog-wrapper: Separate from relocatable-prog.
15550         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
15551         uninstall-relocwrapper rule here.
15552         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
15553         Reported by Ian Beckwith <ianb@erislabs.net>.
15554
15555 2010-12-19  Bruno Haible  <bruno@clisp.org>
15556
15557         unistr/u8-mbsnlen: Add missing dependency.
15558         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
15559         Reported by Ian Beckwith <ianb@erislabs.net>.
15560
15561 2010-12-19  Bruno Haible  <bruno@clisp.org>
15562
15563         iconv: Make it possible again to use this module without 'iconv-h'.
15564         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
15565         if it is not defined.
15566         Reported by Ian Beckwith <ianb@erislabs.net>.
15567
15568 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15569
15570         acl: port to Solaris 8 when copying from tmpfs to ufs
15571         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
15572         error number.  Problem observed on Solaris 8 with latest
15573         coreutils, with "mv A B", where A is on a tmpfs file system and B
15574         is on a ufs file system.  This caused coreutils' mv/part-symlink
15575         test to fail.
15576
15577         tests: set fail=0 at start
15578         * tests/init.sh (setup_): Move fail=0 initialization here ...
15579         (mktempd_): ... from here, so that tests can rely on fail being
15580         set to 0 initially.  This fixes a problem in coreutils; see:
15581         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
15582
15583 2010-12-18  Bruno Haible  <bruno@clisp.org>
15584
15585         memmem-simple: Stylistic changes.
15586         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
15587         Fix preprocessor directive indentation.
15588
15589 2010-12-15  Pádraig Brady <P@draigBrady.com>
15590
15591         memmem, memmem-simple: reorganize and expand empty needle check
15592         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
15593         functional checks to memmem-simple so that one has a fully functional
15594         memmem by using just this module.
15595         Restrict the performance only check to the memmem module.
15596         Also expand the empty needle check to ensure the correct
15597         pointer is returned, not just a non NULL pointer.
15598         * doc/glibc-functions/memmem.texi: Rearrange the portability
15599         documentation to correlate with the rearranged checks.
15600         Clarify exactly how the memmem and memmem-simple modules
15601         relate to each other.
15602
15603 2010-12-15  Pádraig Brady <P@draigBrady.com>
15604             Bruno Haible  <bruno@clisp.org>
15605
15606         Improve cross-compilation guesses for uClibc.
15607         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
15608         that uClibc does not have the glibc bug.
15609         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
15610         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
15611
15612 2010-12-14  Eric Blake  <eblake@redhat.com>
15613
15614         configmake: provide fallbacks for oldest supported autotools
15615         * m4/configmake.m4: New file.
15616         * modules/configmake (Files): Ship it.
15617         (configure.ac): Use it to guarantee fallbacks.
15618
15619 2010-12-13  Pádraig Brady <P@draigBrady.com>
15620
15621         read-file: Improve handling of large files
15622         * lib/read-file.c (fread_file): Minimize realloc()s
15623         for regular files, and better manage sizes around SIZE_MAX.
15624
15625 2010-12-13  Eric Blake  <eblake@redhat.com>
15626
15627         cloexec, fcntl: relax license
15628         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
15629         consent from all contributors.
15630         * modules/fcntl (License): Likewise.
15631
15632 2010-12-10  Bruno Haible  <bruno@clisp.org>
15633
15634         Tests for module 'pipe-posix'.
15635         * modules/pipe-posix-tests: New file.
15636         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
15637
15638 2010-12-10  Bruno Haible  <bruno@clisp.org>
15639
15640         pipe-posix: Make it work in C++ mode.
15641         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
15642         (pipe): Use common idiom, not a macro definition.
15643         * lib/pipe.c: New file.
15644         * m4/pipe.m4: New file.
15645         * modules/pipe-posix (Description): Enhance.
15646         (Files): Add lib/pipe.c, m4/pipe.m4.
15647         (configure.ac): Invoke gl_FUNC_PIPE.
15648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
15649         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
15650         * tests/test-unistd-c++.cc: Check the signature of pipe.
15651
15652 2010-12-10  Bruno Haible  <bruno@clisp.org>
15653
15654         Rename module 'pipe' to 'spawn-pipe'.
15655         * modules/spawn-pipe: New file, renamed from modules/pipe.
15656         (Files, configure.ac, Makefile.am): Update.
15657         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
15658         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
15659         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
15660         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
15661         "spawn-pipe.h" instead of "pipe.h".
15662         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
15663         to gl_SPAWN_PIPE.
15664         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
15665         (Files, Makefile.am): Update.
15666         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
15667         Update.
15668         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
15669         Include "spawn-pipe.h" instead of "pipe.h".
15670         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
15671         * lib/javacomp.c: Likewise.
15672         * lib/javaversion.c: Likewise.
15673         * lib/pipe-filter-gi.c: Likewise.
15674         * lib/pipe-filter-ii.c: Likewise.
15675         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
15676         * modules/javacomp (Depends-on): Likewise.
15677         * modules/javaversion (Depends-on): Likewise.
15678         * modules/pipe-filter-gi (Depends-on): Likewise.
15679         * modules/pipe-filter-ii (Depends-on): Likewise.
15680         * MODULES.html.sh (Executing programs): Update.
15681         * NEWS: Mention the change.
15682
15683 2010-12-10  Eric Blake  <eblake@redhat.com>
15684
15685         pipe-posix: new module
15686         * modules/pipe-posix: New file.
15687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
15688         (gl_UNISTD_H): Check for declaration.
15689         * modules/unistd (Makefile.am): Substitute it.
15690         * lib/unistd.in.h (pipe): Provide it for mingw.
15691         * doc/posix-functions/pipe.texi (pipe): Update documentation.
15692         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
15693
15694 2010-12-07  Bruno Haible  <bruno@clisp.org>
15695
15696         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
15697         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
15698         u8_strcmp_gnu.
15699         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
15700
15701 2010-12-06  Bruno Haible  <bruno@clisp.org>
15702
15703         Update internal documentation.
15704         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
15705
15706 2010-12-04  Bruno Haible  <bruno@clisp.org>
15707
15708         Put more information about failed tests into the test return codes.
15709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
15710         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
15711         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15712         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15713         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15714         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15715         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15716         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15717         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
15718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15719         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
15720         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15721         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15722         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15723         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
15724         returns a bit mask.
15725         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15726         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
15727         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
15728         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
15729         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15730         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15731         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15733         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15734         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15735         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15736         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15737         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15738         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15739         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15740         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15741         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
15742         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
15743         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15744         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
15745         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15746         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15747         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15748         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15749         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15750         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15751         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
15752         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15753         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15754         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
15755         gl_PRINTF_PRECISION): Likewise.
15756         * m4/regex.m4 (gl_REGEX): Likewise.
15757         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15758         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15759         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
15760         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15761         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15762         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15763         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15764         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
15765         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15766         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15767         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15768         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15769         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15770         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
15771         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15772         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15773         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15774         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15776         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
15777         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
15778         enumerated value.
15779         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
15780
15781 2010-12-04  Bruno Haible  <bruno@clisp.org>
15782
15783         Update for Solaris 11 2010-11.
15784         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
15785         Express, released in November 2010.
15786
15787 2010-12-04  Bruno Haible  <bruno@clisp.org>
15788
15789         nproc: Relax license.
15790         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
15791         and Paul Eggert.
15792         Requested by Ludovic Courtès <ludo@gnu.org>.
15793
15794 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15795
15796         utimecmp: fine-grained src to nearby coarse-grained dest
15797
15798         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
15799         and the source is on a file system with higher-resolution time
15800         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
15801         not work, and the time stamps are close together, the algorithm to
15802         determine the exact resolution from the read-back mtime was buggy:
15803         it had a "!=" where it should have had an "==".  This bug has been
15804         in the code ever since it was introduced to gnulib.
15805         Problem reported by Dan Jacobson in
15806         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
15807
15808 2010-11-30  Bruno Haible  <bruno@clisp.org>
15809
15810         strerror_r-posix: Fix autoconf test.
15811         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
15812
15813 2010-11-28  Bruno Haible  <bruno@clisp.org>
15814             Paul Eggert  <eggert@cs.ucla.edu>
15815
15816         Tests for module 'getdomainname'.
15817         * modules/getdomainname-tests: New file.
15818         * tests/test-getdomainname.c: New file, based on
15819         tests/test-gethostname.c.
15820
15821 2010-11-28  Bruno Haible  <bruno@clisp.org>
15822             Paul Eggert  <eggert@cs.ucla.edu>
15823
15824         getdomainname: Use the system function when possible.
15825         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
15826         (getdomainname): Replace if needed. Provide the declaration if it is
15827         missing. Don't use _GL_CXXALIAS_SYS_CAST.
15828         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
15829         (getdomainname): When the system has getdomainname, call the system
15830         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
15831         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
15832         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
15833         found in libnsl. Look for the declaration also in <netdb.h>. Replace
15834         the function if its second argument is of type 'int' or if it is found
15835         in libnsl.
15836         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
15837         <sys/systeminfo.h> and sysinfo().
15838         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
15839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15840         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
15841         HAVE_GETDOMAINNAME.
15842         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
15843         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
15844         * doc/glibc-functions/getdomainname.texi: Document the problems with
15845         the getdomainname declaration.
15846
15847 2010-11-28  Bruno Haible  <bruno@clisp.org>
15848
15849         sys_socket: Ensure ss_family field on AIX.
15850         * lib/sys_socket.in.h (ss_family): New macro definition.
15851         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
15852         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
15853         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15854         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15855         * modules/sys_socket (Makefile.am): Substitute
15856         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15857         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
15858
15859 2010-11-27  Bruno Haible  <bruno@clisp.org>
15860
15861         readline: Improve configure output.
15862         * m4/readline.m4 (gl_FUNC_READLINE): Make the
15863         "checking for readline..." result understandable.
15864
15865 2010-11-27  Bruno Haible  <bruno@clisp.org>
15866
15867         *printf-posix: Detect a bug on Solaris 10/x86.
15868         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
15869         for floating-point output.
15870         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
15871         directive.
15872         * tests/test-snprintf-posix.h (test_function): Likewise.
15873         * tests/test-sprintf-posix.h (test_function): Likewise.
15874         * tests/test-vasprintf-posix.c (test_function): Likewise.
15875         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
15876         * doc/posix-functions/printf.texi: Likewise.
15877         * doc/posix-functions/snprintf.texi: Likewise.
15878         * doc/posix-functions/sprintf.texi: Likewise.
15879         * doc/posix-functions/vfprintf.texi: Likewise.
15880         * doc/posix-functions/vprintf.texi: Likewise.
15881         * doc/posix-functions/vsnprintf.texi: Likewise.
15882         * doc/posix-functions/vsprintf.texi: Likewise.
15883         * doc/glibc-functions/obstack_printf.texi: Likewise.
15884         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15885
15886 2010-11-27  Bruno Haible  <bruno@clisp.org>
15887
15888         Fix link error when module libunistring-optional is in use.
15889         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
15890         * modules/striconveha-tests (Makefile.am): Likewise.
15891
15892 2010-11-27  Bruno Haible  <bruno@clisp.org>
15893
15894         regex: Mention link dependencies.
15895         * modules/regex (Link): New section.
15896         * modules/rpmatch (Link): Likewise.
15897         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
15898
15899 2010-11-27  Bruno Haible  <bruno@clisp.org>
15900
15901         ftoastr: Fix compilation error on Solaris.
15902         * lib/ftoastr.c: Include <config.h>.
15903
15904 2010-11-27  Bruno Haible  <bruno@clisp.org>
15905
15906         getloadavg: Update documentation.
15907         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
15908
15909 2010-11-27  Bruno Haible  <bruno@clisp.org>
15910
15911         sys_socket: Fix test whether the functions are declared.
15912         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
15913         not <sys/select.h>.
15914
15915 2010-11-27  Bruno Haible  <bruno@clisp.org>
15916
15917         getpass: Make sure to get system declaration on some platforms.
15918         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
15919         gl_USE_SYSTEM_EXTENSIONS.
15920         * modules/getpass (Depends-on): Add extensions.
15921
15922 2010-11-26  Bruno Haible  <bruno@clisp.org>
15923
15924         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
15925         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
15926         'iconv' module is present.
15927         (ICONV_CONST): New macro.
15928         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
15929         ICONV_CONST.
15930         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
15931         set ICONV_CONST.
15932         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
15933         here.
15934         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
15935         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
15936         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
15937         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
15938         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
15939         present.
15940
15941 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15942
15943         ftoastr: comment fix
15944         * lib/ftoastr.c: "little" -> "little or no" in comment
15945
15946 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
15947
15948         stdint: port to GCC 4.3 + OSX + Octave
15949         On this platform, stdint.h is buggy and defines int64_t to long
15950         long int.  The replacement defined it to long int, causing
15951         problems with C++ style name mangling.  Instead, trust the system
15952         definition if INT64_MAX is defined, and likewise for the unsigned
15953         variant.   Problem reported by Jarno Rajahalme in
15954         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
15955         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
15956         and don't mess with int64_t and INT64_MAX in this case.
15957         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
15958
15959 2010-11-24  Bruno Haible  <bruno@clisp.org>
15960
15961         doc: Corrections regarding MacOS X 10.4 and 10.5.
15962         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
15963         MacOS X.
15964         Reported by Simon Josefsson.
15965
15966 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
15967
15968         Uninstall ".bin" files installed by relocwrapper.
15969         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
15970         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
15971         unless it is already there.
15972
15973 2010-11-21  Bruno Haible  <bruno@clisp.org>
15974
15975         Update for NetBSD 5.0.
15976         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15977         NetBSD; the test fails on NetBSD 5.0.
15978         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15979         about NetBSD.
15980
15981 2010-11-21  Bruno Haible  <bruno@clisp.org>
15982
15983         Update for HP-UX 11.23 and HP-UX 11.31.
15984         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15985         HP-UX.
15986
15987 2010-11-21  Bruno Haible  <bruno@clisp.org>
15988
15989         Update for MacOS X 10.5.
15990         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15991         MacOS X; the test fails on MacOS X 10.5.8.
15992         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15993         about MacOS X.
15994
15995 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15996
15997         bootstrap: add bootstrap_sync option.
15998         See discussion at
15999         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
16000         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
16001         * build-aux/bootstrap: Accept --bootstrap-sync to update
16002         bootstrap if it is not identical to the local gnulib's
16003         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
16004         enable this by default.  Accept --no-bootstrap-sync to disable
16005         it.
16006
16007 2010-11-20  Bruno Haible  <bruno@clisp.org>
16008
16009         Ensure that <features.h> is included before __GLIBC__ is tested.
16010         * lib/printf-parse.h: Include <features.h>.
16011         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
16012         Reported by Mike Frysinger <vapier@gentoo.org>.
16013
16014         Ensure that <features.h> is included before __GLIBC__ is tested.
16015         * lib/wchar.in.h: Include <features.h>.
16016         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
16017         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
16018         Reported by Mike Frysinger <vapier@gentoo.org>.
16019
16020         Ensure that <features.h> is included before __GLIBC__ is tested.
16021         * lib/arpa_inet.in.h: Include <features.h>.
16022         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
16023         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
16024         Reported by Mike Frysinger <vapier@gentoo.org>.
16025
16026         Ensure that <features.h> is included before __GLIBC__ is tested.
16027         * build-aux/link-warning.h: Include <features.h>.
16028         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
16029         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
16030         Reported by Mike Frysinger <vapier@gentoo.org>.
16031
16032         Ensure that <features.h> is included before __GLIBC__ is tested.
16033         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
16034         Reported by Mike Frysinger <vapier@gentoo.org>.
16035
16036 2010-11-20  Bruno Haible  <bruno@clisp.org>
16037
16038         memmem: Fix autoconf test.
16039         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
16040
16041 2010-11-20  Bruno Haible  <bruno@clisp.org>
16042
16043         Port to uClibc.
16044         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
16045         * lib/fcntl.in.h: Likewise.
16046         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
16047         * lib/mbrtowc.c (mbrtowc): Likewise.
16048         * lib/relocatable.c (find_shared_library_fullname): Likewise.
16049         * lib/strerror_r.c: Likewise.
16050         * lib/unistr/u8-strnlen.c: Likewise.
16051         * lib/vasnprintf.c (decimal_point_char): Likewise.
16052         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16053         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16054         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16055         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16056         * tests/test-sigaction.c (handler, main): Likewise.
16057         * lib/freading.h: Treat uClibc like a non-glibc platform.
16058         * lib/freading.c: Likewise.
16059         * lib/gettext.h: Likewise.
16060         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
16061         Likewise.
16062         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
16063         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
16064         * lib/propername.c (proper_name_utf8): Likewise.
16065         * lib/spawn.in.h: Likewise.
16066         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
16067         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
16068         mem_cd_iconveh_internal): Likewise.
16069         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
16070         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16071         strstr, strcasestr): Likewise.
16072         * lib/unicodeio.c (unicode_to_mb): Likewise.
16073         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
16074         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
16075         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
16076         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
16077         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
16078         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
16079         * lib/unistr/u8-stpncpy.c: Likewise.
16080         * lib/vasnprintf.c (VASNPRINTF): Likewise.
16081         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
16082         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16083         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16084         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16085         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
16086         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
16087         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
16088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16089         Likewise.
16090         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16091         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16092         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16093         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16094         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16095         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16096         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16097         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16098         * tests/test-getopt.h (OPTIND_MIN): Likewise.
16099         * tests/test-striconveha.c (main): Likewise.
16100         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16101         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
16102         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
16103         * doc/posix-functions/getline.texi: Likewise.
16104         Reported by Mike Frysinger <vapier@gentoo.org>.
16105
16106 2010-11-20  Bruno Haible  <bruno@clisp.org>
16107
16108         nproc: Fix condition.
16109         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
16110         HAVE_PTHREAD_AFFINITY_NP.
16111
16112 2010-11-20  Bruno Haible  <bruno@clisp.org>
16113
16114         Fix a comment.
16115         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
16116
16117 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
16118
16119         ftoastr: don't assume snprintf
16120         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
16121         Implement a subset of snprintf here, by using sprintf safely.
16122         * modules/ftoastr (Depends-on): Remove snprintf.
16123
16124 2010-11-19  Jim Meyering  <meyering@redhat.com>
16125
16126         test-rename.h: fix compilation failure
16127         * tests/test-rename.h (test_rename): Add omitted "}".
16128
16129 2010-11-17  Jim Meyering  <meyering@redhat.com>
16130
16131         maint.mk: add a URL discussing the no-@acronym policy
16132         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
16133
16134 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
16135
16136         ftoastr: depend on snprintf, improve comments
16137         * lib/ftoastr.c: Also mention Loitsch's draft.
16138         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
16139         needed in the current implementation, but it might simplify
16140         speeding up the code later.
16141         * modules/ftoastr: Depend on snprintf; this improves portability.
16142         Suggested by Bruno Haible in the same email.
16143
16144         ftoastr: port to hosts lacking strtof and strtold
16145         Problem reported by Bruno Haible in
16146         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
16147         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
16148         environment and strtold (and presumably strtof) are not available.
16149         * modules/ftoastr (Files): Add m4/c-strtod.m4.
16150         (configure.ac): Require gl_C99_STRTOLD.
16151
16152 2010-11-18  Bruno Haible  <bruno@clisp.org>
16153
16154         c-strtold: Avoid link error on AIX 7.
16155         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
16156         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
16157         (gl_C_STRTOLD): Test whether strtold_l exists.
16158         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16159
16160 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
16161
16162         intprops: new macro INT_BITS_STRLEN_BOUND
16163         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
16164         ftoastr.h.  This exposes an internal of intprops.h that was formerly
16165         not exposed.  Also, it uses a slightly tighter bound than before;
16166         though this makes no practical difference, we might as well be as
16167         tight as we easily can.
16168
16169         ftoastr: new module, for lossless conversion of floats to short strings
16170         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
16171         * modules/ftoastr: New files.
16172
16173 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
16174
16175         bootstrap: port to Solaris sed
16176         * build-aux/bootstrap (get_version): Port to Solaris sed.
16177         See Ralf Wildenhues's note in
16178         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
16179
16180 2010-11-14  Jim Meyering  <meyering@redhat.com>
16181
16182         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
16183         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
16184         and move definition closer to sole use.
16185
16186 2010-11-13  Jim Meyering  <meyering@redhat.com>
16187
16188         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
16189         Now we require at least autoconf-2.59, which means the work-around
16190         is no longer needed.
16191         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
16192         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16193         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
16194         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
16195         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16196
16197 2010-11-13  Bruno Haible  <bruno@clisp.org>
16198
16199         rename, renameat: Avoid test failures at NFS mounted locations.
16200         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
16201         functions.
16202         (test_rename): Use assert_nonexistent.
16203         * tests/test-rename.c: Include <dirent.h>.
16204         * tests/test-renameat.c: Likewise.
16205         Reported by Gary V. Vaughan <gary@gnu.org>.
16206
16207         rename, renameat: Document Linux bug with NFS
16208         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
16209         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
16210         * doc/posix-functions/renameat.texi: Likewise.
16211         Suggested by Eric Blake.
16212
16213 2010-11-13  Bruno Haible  <bruno@clisp.org>
16214
16215         rename test: Add comments.
16216         * tests/test-rename.h (test_rename): Add structure and comments.
16217
16218 2010-11-13  Eric Blake  <eblake@redhat.com>
16219
16220         maintainer-makefile: cover a few more files
16221         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
16222         scripts generated within C files, for libvirt.
16223
16224 2010-11-13  Bruno Haible  <bruno@clisp.org>
16225
16226         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
16227         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
16228         character, return the number of bytes that belong together, not always
16229         1.
16230         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
16231         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
16232         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
16233         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
16234         number of bytes of an invalid character.
16235         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
16236         (main): Invoke it.
16237         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
16238         results.
16239         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
16240         malformed byte sequences.
16241         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
16242         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
16243         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
16244         Reported by Ben Pfaff and Paolo Bonzini.
16245
16246 2010-11-13  Bruno Haible  <bruno@clisp.org>
16247
16248         openat: Work around glibc bug with fchownat() and empty file names.
16249         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
16250         (gl_FUNC_FCHOWNAT): Invoke it.
16251         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
16252         * doc/posix-functions/fchownat.texi: Document the glibc bug.
16253         Reported by Gary V. Vaughan <gary@gnu.org>.
16254
16255 2010-11-13  Bruno Haible  <bruno@clisp.org>
16256
16257         openat: Ensure autoconf macro ordering.
16258         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
16259         gl_USE_SYSTEM_EXTENSIONS.
16260         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
16261
16262 2010-11-13  Bruno Haible  <bruno@clisp.org>
16263
16264         Update comments.
16265         * lib/unistr/u8-check.c: Update file name in comments.
16266         * lib/unistr/u8-mblen.c: Likewise.
16267         * lib/unistr/u8-prev.c: Likewise.
16268         * lib/unistr/u8-strmblen.c: Likewise.
16269         * lib/unistr/u8-strmbtouc.c: Likewise.
16270
16271 2010-11-13  Jim Meyering  <meyering@redhat.com>
16272
16273         tests: avoid test failure on Solaris 10 due to lack of PATH export
16274         * tests/test-update-copyright.sh: Don't forget to export PATH.
16275
16276         init.sh: ensure that IFS is defined, just in case...
16277         * tests/init.sh (setup_): Ensure that IFS is defined,
16278         so that saving and restoring it works as expected.  This
16279         appears to be useful at least for an old version of dash
16280         from a long time ago (RH 6).  See here for details:
16281         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
16282
16283         maint.mk: tighten "test a == b" check
16284         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
16285         test to files that contain something like #!/bin/sh.
16286         Without this, coreutils would get two false positives in
16287         the comments of C source files.
16288
16289 2010-11-12  Eric Blake  <eblake@redhat.com>
16290
16291         bootstrap: fix typo in previous attempt
16292         * build-aux/bootstrap (buildreq): Correct the grouping.
16293         Reported by Paul Eggert.
16294
16295         maintainer-makefile: prohibit test x == x
16296         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
16297         Based on a report by Matthias Bolte.
16298
16299         bootstrap: allow FreeBSD gzip
16300         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
16301         which has no '.' and goes to stderr.
16302         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
16303         Reported by Matthias Bolte.
16304
16305         maintainer-makefile: check for i18n setup
16306         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
16307         will likely work.
16308
16309 2010-11-12  Bruno Haible  <bruno@clisp.org>
16310
16311         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
16312         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
16313         * lib/nanosleep.c (nanosleep): Likewise.
16314
16315 2010-11-11  Bruno Haible  <bruno@clisp.org>
16316
16317         fcntl-h: Fix for use of C++ on glibc systems.
16318         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16319         also on glibc systems in C++ mode.
16320         Reported by Gary V. Vaughan <gary@gnu.org>.
16321
16322 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16323
16324         mknod: avoid false failure with dash
16325         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
16326
16327 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16328
16329         unlink: Fix "is it should" typo in diagnostic.
16330         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
16331         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
16332
16333 2010-11-11  Bruno Haible  <bruno@clisp.org>
16334
16335         Tests for module 'strerror_r-posix'.
16336         * modules/strerror_r-posix-tests: New file.
16337         * tests/test-strerror_r.c: New file.
16338         * tests/test-string-c++.cc: Check the signature of strerror_r.
16339
16340         New module 'strerror_r-posix'.
16341         * lib/string.in.h (strerror_r): New declaration.
16342         * lib/strerror_r.c: New file.
16343         * m4/strerror_r.m4: New file.
16344         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
16345         of strerror_r.
16346         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
16347         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
16348         * modules/strerror_r-posix: New file.
16349         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
16350         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
16351         * doc/posix-functions/strerror_r.texi: Mention the new module and the
16352         portability problems.
16353
16354 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
16355
16356         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
16357         line is also considered for output. Quoted function name in shell
16358         command, so temporary files for functions like MyClass::operator()
16359         are removed correctly without errors.
16360
16361 2010-11-09  Bruno Haible  <bruno@clisp.org>
16362
16363         * doc/posix-functions/strerror.texi: List more failing platforms.
16364
16365         * doc/posix-functions/strerror.texi: Add a comment.
16366
16367 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
16368
16369         fdopendir: fix bug on MacOS X when low on file descriptors
16370
16371         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
16372         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
16373         All callers changed.
16374         (fdopendir): Invoke save_cwd at the top level, not after using
16375         multiple dup() calls to use up file descriptors.  Then retry
16376         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
16377         less than the maximum number of open file descriptors, because
16378         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
16379         on Mac OS X 10.6.4 for tar 1.24
16380         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
16381         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
16382         and for tar 1.25
16383         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
16384
16385 2010-11-07  Bruno Haible  <bruno@clisp.org>
16386
16387         vasnprintf: Support I flag on glibc systems.
16388         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
16389         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
16390         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
16391         snprintf function.
16392         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
16393         glibc systems.
16394         * tests/test-vasnprintf-posix3.c: New file.
16395         * modules/vasnprintf-posix-tests (Files): Add it.
16396         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
16397
16398 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16399
16400         [html] Fix copy/paste bug: Use unique name for compiler warnings.
16401         * MODULES.html.sh: For compiler warnings, use name
16402         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
16403
16404 2010-11-05  Eric Blake  <eblake@redhat.com>
16405
16406         ceil, floor: avoid spurious failure with icc
16407         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
16408         [denormals-as-zero] when optimizing without -mieee-fp option.
16409         * tests/test-floorf2.c (floorf_reference): Likewise.
16410         * tests/test-ceilf1.c (dummy): New function.
16411         (main): Use it to outsmart icc's optimization.
16412         * tests/test-floorf1.c (dummy, main): Likewise.
16413
16414         tests: require working signbit
16415         * modules/ceilf-tests (Depends-on): Add signbit.
16416         * modules/ceill-tests (Depends-on): Likewise.
16417         * modules/floorf-tests (Depends-on): Likewise.
16418         * modules/floorl-tests (Depends-on): Likewise.
16419         * modules/round-tests (Depends-on): Likewise.
16420         * modules/roundf-tests (Depends-on): Likewise.
16421         * modules/roundl-tests (Depends-on): Likewise.
16422         * modules/trunc-tests (Depends-on): Likewise.
16423         * modules/truncf-tests (Depends-on): Likewise.
16424         * modules/truncl-tests (Depends-on): Likewise.
16425
16426         strtod: work around icc bug
16427         * lib/strtod.c (minus_zero): Define to working value.
16428         (strtod): Use it to avoid icc bug.
16429
16430         copysign: enhance tests
16431         * modules/copysign-tests (Files): Add minus-zero.h.
16432         * tests/test-copysign.c (main): Also test zeros.
16433
16434 2010-11-04  Eric Blake  <eblake@redhat.com>
16435
16436         ceil, floor, round, trunc: enhance tests of -0
16437         * tests/test-ceilf1.c (main): Ensure correct sign of result.
16438         * tests/test-ceill.c (main): Likewise.
16439         * tests/test-floorf1.c (main): Likewise.
16440         * tests/test-floorl.c (main): Likewise.
16441         * tests/test-round1.c (main): Likewise.
16442         * tests/test-roundf1.c (main): Likewise.
16443         * tests/test-roundl.c (main): Likewise.
16444         * tests/test-trunc1.c (main): Likewise.
16445         * tests/test-truncf1.c (main): Likewise.
16446         * tests/test-truncl.c (main): Likewise.
16447
16448 2010-11-04  Eric Blake  <eblake@redhat.com>
16449
16450         frexp, tests: work around ICC bug with -zero
16451         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
16452         works with more compilers.
16453         * tests/minus-zero.h: New file.
16454         * modules/ceilf-tests (Files): Include it.
16455         * modules/ceill-tests (Files): Likewise.
16456         * modules/floorf-tests (Files): Likewise.
16457         * modules/floorl-tests (Files): Likewise.
16458         * modules/frexp-nolibm-tests (Files): Likewise.
16459         * modules/frexp-tests (Files): Likewise.
16460         * modules/frexpl-nolibm-tests (Files): Likewise.
16461         * modules/frexpl-tests (Files): Likewise.
16462         * modules/isnan-tests (Files): Likewise.
16463         * modules/isnand-nolibm-tests (Files): Likewise.
16464         * modules/isnand-tests (Files): Likewise.
16465         * modules/isnanf-nolibm-tests (Files): Likewise.
16466         * modules/isnanf-tests (Files): Likewise.
16467         * modules/isnanl-nolibm-tests (Files): Likewise.
16468         * modules/isnanl-tests (Files): Likewise.
16469         * modules/round-tests (Files): Likewise.
16470         * modules/roundf-tests (Files): Likewise.
16471         * modules/roundl-tests (Files): Likewise.
16472         * modules/ldexpl-tests (Files): Likewise.
16473         * modules/signbit-tests (Files): Likewise.
16474         * modules/snprintf-posix-tests (Files): Likewise.
16475         * modules/sprintf-posix-tests (Files): Likewise.
16476         * modules/strtod-tests (Files): Likewise.
16477         * modules/trunc-tests (Files): Likewise.
16478         * modules/truncf-tests (Files): Likewise.
16479         * modules/truncl-tests (Files): Likewise.
16480         * modules/vsnprintf-posix-tests (Files): Likewise.
16481         * modules/vsprintf-posix-tests (Files): Likewise.
16482         * modules/vasnprintf-posix-tests (Files): Likewise.
16483         * modules/vasprintf-posix-tests (Files): Likewise.
16484         * tests/test-ceilf1.c (main): Use it.
16485         * tests/test-ceill.c (main): Likewise.
16486         * tests/test-floorf1.c (main): Likewise.
16487         * tests/test-floorl.c (main): Likewise.
16488         * tests/test-frexp.c (main): Likewise.
16489         * tests/test-frexpl.c (main): Likewise.
16490         * tests/test-isnan.c (main): Likewise.
16491         * tests/test-isnand.h (main): Likewise.
16492         * tests/test-isnanf.h (main): Likewise.
16493         * tests/test-isnanl.h (main): Likewise.
16494         * tests/test-ldexpl.c (main): Likewise.
16495         * tests/test-round.c (main): Likewise.
16496         * tests/test-roundf.c (main): Likewise.
16497         * tests/test-roundl.c (main): Likewise.
16498         * tests/test-signbit.c (test_signbitf, test_signbitd)
16499         (test_signbitl): Likewise.
16500         * tests/test-snprintf-posix.h (test_function): Likewise.
16501         * tests/test-sprintf-posix.h (test_function): Likewise.
16502         * tests/test-strtod.c (main): Likewise.
16503         * tests/test-trunc1.c (main): Likewise.
16504         * tests/test-truncf1.c (main): Likewise.
16505         * tests/test-truncl.c (main): Likewise.
16506
16507         isnanl: work around icc bug
16508         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
16509
16510 2010-11-03  Eric Blake  <eblake@redhat.com>
16511
16512         tests: fix compiler warnings
16513         * tests/test-getopt.h (test_getopt): Fix condition.
16514         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16515         * tests/test-pipe2.c (main): Likewise.
16516         * tests/test-quotearg-simple.c (main): Avoid icc warning.
16517
16518         utimens: fix broken m4 test
16519         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
16520
16521 2010-10-28  Bruno Haible  <bruno@clisp.org>
16522
16523         posix_spawn*, getdtablesize: Relax license.
16524         * modules/posix_spawn (License): Change to LGPLv2+.
16525         * modules/posix_spawnp (License): Likewise.
16526         * modules/posix_spawn-internal (License): Likewise.
16527         * modules/posix_spawnattr_init (License): Likewise.
16528         * modules/posix_spawnattr_getflags (License): Likewise.
16529         * modules/posix_spawnattr_setflags (License): Likewise.
16530         * modules/posix_spawnattr_getpgroup (License): Likewise.
16531         * modules/posix_spawnattr_setpgroup (License): Likewise.
16532         * modules/posix_spawnattr_getschedparam (License): Likewise.
16533         * modules/posix_spawnattr_setschedparam (License): Likewise.
16534         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
16535         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
16536         * modules/posix_spawnattr_getsigdefault (License): Likewise.
16537         * modules/posix_spawnattr_setsigdefault (License): Likewise.
16538         * modules/posix_spawnattr_getsigmask (License): Likewise.
16539         * modules/posix_spawnattr_setsigmask (License): Likewise.
16540         * modules/posix_spawnattr_destroy (License): Likewise.
16541         * modules/posix_spawn_file_actions_init (License): Likewise.
16542         * modules/posix_spawn_file_actions_addclose (License): Likewise.
16543         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
16544         * modules/posix_spawn_file_actions_addopen (License): Likewise.
16545         * modules/posix_spawn_file_actions_destroy (License): Likewise.
16546         * modules/getdtablesize (License): Likewise.
16547         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
16548
16549 2010-10-26  Bruno Haible  <bruno@clisp.org>
16550
16551         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
16552         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
16553         Cygwin and mingw.
16554         Suggested by Eric Blake.
16555
16556 2010-10-26  Bruno Haible  <bruno@clisp.org>
16557
16558         stdio: Work around compilation error due to renameat() on Solaris 10.
16559         * lib/stdio.in.h: Include <unistd.h> on Solaris.
16560         * lib/renameat.c: Don't include <unistd.h> here.
16561         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
16562         Reported by Paul Eggert and Eric Blake.
16563
16564 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16565
16566         renameat: port to Solaris 10, which declares renameat in unistd.h
16567
16568         * lib/renameat.c: Include unistd.h before stdio.h, because
16569         Solaris 10 declares renameat in unistd.h.  Problem encountered
16570         when building GNU tar 1.24 on Solaris 10.
16571
16572 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16573
16574         fdopendir: fix C89 compilation
16575         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
16576         compilers.
16577
16578 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16579
16580         inttostr: simplify by removing unnecessary redundancy
16581         * lib/anytostr.c: Don't include verify.h.
16582         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
16583         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
16584         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
16585         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
16586         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
16587         Likewise.
16588         * modules/inttostr (Depends-on): Remove 'verify'.
16589
16590 2010-10-23  Bruno Haible  <bruno@clisp.org>
16591
16592         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
16593         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
16594         Reported by Eric Blake.
16595
16596 2010-10-23  Bruno Haible  <bruno@clisp.org>
16597
16598         Tests: Fix LOCALE_JA on MirBSD 10.
16599         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
16600         to an UTF-8 locale.
16601         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
16602         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16603         Reported by Eric Blake.
16604
16605 2010-10-21  Bruno Haible  <bruno@clisp.org>
16606
16607         nl_langinfo test: Avoid test failure on NetBSD 5.
16608         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
16609         Reported by Eric Blake.
16610
16611 2010-10-21  Eric Blake  <eblake@redhat.com>
16612
16613         c-stack: work around libsigsegv 2.8 bug
16614         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
16615         overflow on at least PowerPC64.
16616
16617 2010-10-17  Bruno Haible  <bruno@clisp.org>
16618
16619         userspec: Drop redundant file.
16620         * modules/userspec (Files): Remove lib/inttostr.h.
16621
16622 2010-10-17  Bruno Haible  <bruno@clisp.org>
16623
16624         nl_langinfo tests: Silence some warnings.
16625         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
16626         Reported by Jim Meyering.
16627
16628 2010-10-17  Bruno Haible  <bruno@clisp.org>
16629
16630         Make use of GCC's attribute __alloc_size__.
16631         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
16632         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
16633         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
16634         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
16635         __alloc_size__.
16636         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
16637         Suggested by Jim Meyering.
16638
16639 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
16640
16641         bootstrap: anchor .gitignore entries.
16642         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
16643         with...
16644         (insert_vc_ignore): ... this new function, which prepends `/' to
16645         all .gitignore entries before passing them to
16646         insert_sorted_if_absent.
16647
16648 2010-10-16  Bruno Haible  <bruno@clisp.org>
16649
16650         nextafter: Fix configure check.
16651         * modules/nextafter (configure.ac): Correct expected prototype.
16652
16653 2010-10-16  Bruno Haible  <bruno@clisp.org>
16654
16655         termios: Update documentation.
16656         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
16657
16658 2010-10-16  Bruno Haible  <bruno@clisp.org>
16659
16660         tests: Make them compile with TinyCC.
16661         * tests/test-strstr.c (main): Remove parentheses around array
16662         initializer.
16663
16664 2010-10-15  Eric Blake  <eblake@redhat.com>
16665
16666         ignore-value: make header idempotent
16667         * lib/ignore-value.h: Add double-inclusion guards.
16668         Reported by Stefan Berger.
16669
16670 2010-10-15  Jim Meyering  <meyering@redhat.com>
16671
16672         GNUmakefile: handle "stable" target, not "major"
16673         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
16674         lists in maint.mk and announce-gen.  Without this, "make stable"
16675         would fail to ensure that $(VERSION) is up to date.
16676
16677 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
16678
16679         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
16680         & co.
16681
16682 2010-10-14  Bruno Haible  <bruno@clisp.org>
16683
16684         vasnprintf: Don't set errno to 0.
16685         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
16686         block that sets it to 0.
16687         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
16688
16689 2010-10-14  Bruno Haible  <bruno@clisp.org>
16690
16691         socketlib: Fix.
16692         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
16693         gl_PREREQ_SYS_H_WINSOCK2.
16694         Reported by Ian Beckwith <ianb@erislabs.net>.
16695
16696 2010-10-13  Jim Meyering  <meyering@redhat.com>
16697
16698         test-select-stdin.c: avoid warn_unused_result warnings
16699         * tests/test-select-stdin.c: Include "macros.h".
16700         ASSERT that read and fflush succeed.
16701
16702 2010-10-13  Jim Meyering  <meyering@redhat.com>
16703
16704         git-version-gen: do require git-VC'd files in cwd
16705         * build-aux/git-version-gen: Reject a git version string
16706         if there are no commits associated with the current directory.
16707         This avoids an unlikely false-positive (unrelated dir whose parent
16708         repository also contains a tag matching v*), as pointed out
16709         by Giuseppe Scrivano in
16710         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
16711
16712 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16713
16714         argv-iter: omit nonconforming declaration
16715         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
16716         enum arg_iter_err declaration, which doesn't conform to C99.
16717         Solaris 10 cc warns about this.
16718
16719 2010-10-13  Eric Blake  <eblake@redhat.com>
16720
16721         termios: fix compilation on mingw
16722         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
16723         (gl_TERMIOS_H): Adjust it on mingw.
16724         * modules/termios (Makefile.am): Substitute new key.
16725         * lib/termios.in.h (includes): Make include_next conditional.
16726         * doc/posix-headers/termios.texi (termios.h): Update
16727         documentation.
16728         Reported by Daniel P. Berrange.
16729
16730 2010-10-13  Jim Meyering  <meyering@redhat.com>
16731
16732         git-version-gen: don't require that .git/ be in the current dir
16733         * build-aux/git-version-gen: Adjust this script so that it works
16734         when run from any working directory beneath the top-level .git/-
16735         containing directory.  Inspired by a patch from Giuseppe Scrivano,
16736         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
16737
16738         test-select: avoid warn_unused_result warnings
16739         * tests/test-select.c: Include "macros.h".
16740         ASSERT that each call to read, write, and pipe succeeds.
16741         While not technically required, also check each "close".
16742         * modules/select-tests (Files): Add tests/macros.h.
16743
16744         test-symlinkat: remove declaration of unused local
16745         * tests/test-symlinkat.c (main): Remove unused local, "buf".
16746
16747         test-inttostr: avoid shadowing warnings
16748         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
16749         and use malloc rather than the stack for the same reason as
16750         mentioned in the comment justifying the other allocation.
16751
16752 2010-10-11  Bruno Haible  <bruno@clisp.org>
16753
16754         stdlib: Allow multiple gnulib generated replacements to coexist.
16755         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
16756         Reported by Sam Steingold <sds@gnu.org>.
16757
16758 2010-10-11  Jim Meyering  <meyering@redhat.com>
16759
16760         fix a documentation typo
16761         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
16762
16763 2010-10-11  Eric Blake  <eblake@redhat.com>
16764
16765         futimens: work around Solaris 11 bug
16766         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
16767         * tests/test-futimens.h (test_futimens): Enhance, rather than
16768         weaken test.
16769         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16770
16771 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16772
16773         Indentation.
16774         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
16775         higher-level operators more to the left.
16776
16777 2010-10-11  Jim Meyering  <meyering@redhat.com>
16778
16779         test-futimens: avoid unwarranted test failure on Solaris 5.11
16780         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
16781         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
16782         because it tries to dereference the NULL name argument.
16783
16784 2010-10-11  Bruno Haible  <bruno@clisp.org>
16785
16786         Indentation.
16787         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
16788         indentation.
16789
16790 2010-10-11  Jim Meyering  <meyering@redhat.com>
16791
16792         spawn.in.h: make indentation consistent with parentheses
16793         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
16794         Make indentation consistent with parentheses.
16795
16796 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
16797
16798         Fix mismatched parens in previous commit
16799         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
16800         parens.
16801
16802 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16803
16804         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
16805
16806         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
16807         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
16808         * lib/malloca.c: Include "verify.h".
16809         (verify1): Remove, replacing with a verify call.
16810         * lib/relocwrapper.c (verify1): Likewise.
16811         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
16812         Likewise.
16813         * modules/malloca (Depends-on): Add 'verify'.
16814         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
16815         * modules/vasnprintf (Depends-on): Add 'verify'.
16816         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16817         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16818         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16819         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16820         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16821         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16822         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16823
16824         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
16825
16826         Formerly the style was sometimes 2*X - 1, because the C standard
16827         was wrongly thought to disallow ?: in integral constant expressions.
16828         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
16829         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
16830         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16831         * lib/stdint.in.h (_verify_intmax_size): Likewise.
16832         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
16833         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
16834         verify that time_t cannot be floating.
16835
16836 2010-10-08  Eric Blake  <eblake@redhat.com>
16837
16838         time: enforce recent POSIX ruling that time_t is integral
16839         * lib/time.in.h (__time_t_must_be_integral): Detect any
16840         problematic systems, allowing the rest of gnulib to assume POSIX.
16841
16842 2010-10-08  Jim Meyering  <meyering@redhat.com>
16843
16844         fdopendir: fix a bug on systems lacking openat and /proc support
16845         OpenBSD 4.7 is one such system.  The most noticeable effect was
16846         failure of any application making nontrivial use of fts: rm, du,
16847         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
16848           ./rm: traversal failed: `a': Bad file descriptor
16849         Debugging that, you see that even though FD 6 was closed just
16850         prior to the opendir call in fd_clone_opendir, its resulting
16851         dir->dd_fd was 8, rather than the expected value of 6:
16852
16853         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
16854         93                close (fd);
16855         (gdb) n
16856         94                dir = fd_clone_opendir (dupfd);
16857         (gdb) n
16858         95                saved_errno = errno;
16859         (gdb) p dir->dd_fd
16860         $11 = 8
16861
16862         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
16863         The problem is that on OpenBSD, fd_clone_opendir has to resort
16864         to using the old-style save/restore CWD mechanism, due to its
16865         lack of openat/proc support, and *that* would steal the FD (6)
16866         that opendir was supposed to use.
16867
16868         The fix is to squirrel away the desired FD so that save_cwd uses a
16869         different one, and then free the dest FD right before calling opendir.
16870         That guarantees opendir will use the required file descriptor.
16871
16872         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
16873
16874 2010-10-08  Bruno Haible  <bruno@clisp.org>
16875
16876         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
16877         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
16878
16879 2010-10-08  Bruno Haible  <bruno@clisp.org>
16880
16881         nanosleep: Make replacement POSIX compliant.
16882         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
16883         is out of range.
16884         Reported by Jim Meyering.
16885
16886 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16887
16888         bootstrap: add hook for altering gnulib.mk, for Bison
16889         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
16890         the Bison bootstrapping process can rewrite file names and variables
16891         in this file before later parts of 'bootstrap' use the file.
16892         Bison wants to include lib/gnulib.mk from the top-level makefile,
16893         so it needs the file names in this file to be relative to the top
16894         level, not relative to lib; plus it needs variable names to be
16895         rewritten.
16896         (slurp): Use the new function.
16897
16898         bootstrap: reformat for readability
16899         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
16900
16901 2010-10-08  Eric Blake  <eblake@redhat.com>
16902
16903         docs: update cygwin progress
16904         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
16905         1.7.7.
16906         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
16907         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
16908         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
16909         * doc/posix-functions/carg.texi (carg): Likewise.
16910         * doc/posix-functions/cargf.texi (cargf): Likewise.
16911         * doc/posix-functions/casin.texi (casin): Likewise.
16912         * doc/posix-functions/casinf.texi (casinf): Likewise.
16913         * doc/posix-functions/casinh.texi (casinh): Likewise.
16914         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
16915         * doc/posix-functions/catan.texi (catan): Likewise.
16916         * doc/posix-functions/catanf.texi (catanf): Likewise.
16917         * doc/posix-functions/catanh.texi (catanh): Likewise.
16918         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
16919         * doc/posix-functions/ccos.texi (ccos): Likewise.
16920         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
16921         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
16922         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
16923         * doc/posix-functions/cexp.texi (cexp): Likewise.
16924         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
16925         * doc/posix-functions/cimag.texi (cimag): Likewise.
16926         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
16927         * doc/posix-functions/clog.texi (clog): Likewise.
16928         * doc/posix-functions/clogf.texi (clogf): Likewise.
16929         * doc/posix-functions/conj.texi (conj): Likewise.
16930         * doc/posix-functions/conjf.texi (conjf): Likewise.
16931         * doc/posix-functions/cpow.texi (cpow): Likewise.
16932         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
16933         * doc/posix-functions/cproj.texi (cproj): Likewise.
16934         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
16935         * doc/posix-functions/creal.texi (creal): Likewise.
16936         * doc/posix-functions/crealf.texi (crealf): Likewise.
16937         * doc/posix-functions/csin.texi (csin): Likewise.
16938         * doc/posix-functions/csinf.texi (csinf): Likewise.
16939         * doc/posix-functions/csinh.texi (csinh): Likewise.
16940         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
16941         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
16942         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
16943         * doc/posix-functions/ctan.texi (ctan): Likewise.
16944         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
16945         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
16946         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
16947         * doc/posix-headers/complex.texi (complex.h): Likewise.
16948
16949 2010-10-07  Jim Meyering  <meyering@redhat.com>
16950
16951         parse-datetime: avoid compilation failure on OpenBSD 4.7
16952         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
16953         This works around a compilation failure on OpenBSD 4.7:
16954         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
16955
16956 2010-10-07  Eric Blake  <eblake@redhat.com>
16957
16958         docs: update cygwin progress
16959         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
16960         1.7.6.
16961         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16962         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
16963         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
16964         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
16965         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
16966         Likewise.
16967         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
16968         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
16969         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
16970         Likewise.
16971         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
16972         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
16973         Likewise.
16974         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16975         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16976         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16977         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16978         Likewise.
16979         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16980         Likewise.
16981         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16982
16983         docs: update parse-datetime history
16984         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16985         documentation of this function's history and alternatives.
16986
16987         cygwin: use more robust version check
16988         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16989         exclude an eventual cygwin 1.9.1.
16990         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16991         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16992         (gl_FUNC_STRCASESTR): Likewise.
16993         Reported by Bruno Haible.
16994
16995 2010-10-06  Bruno Haible  <bruno@clisp.org>
16996
16997         string, sys_select: Avoid #including large headers unless necessary.
16998         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16999         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
17000         OSF/1, BeOS, Haiku.
17001         Reported by Jim Meyering.
17002
17003 2010-10-05  Eric Blake  <eblake@redhat.com>
17004
17005         memmem, strstr, strcasestr: fix bug with long periodic needle
17006         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
17007         periodic needle having false positive.
17008         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
17009         and cygwin 1.7.7.
17010         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
17011         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17012         (gl_FUNC_STRCASESTR): Likewise.
17013         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17014         * tests/test-memmem.c (main): Expose the bug.
17015         * tests/test-strcasestr.c (main): Likewise.
17016         * tests/test-strstr.c (main): Likewise.
17017         * tests/test-c-strcasestr.c (main): Likewise.
17018         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
17019         * doc/posix-functions/strstr.texi (strstr): Likewise.
17020         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17021         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
17022
17023 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17024
17025         parse-datetime: do some more renaming
17026         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
17027         parse_datetime, not get_date.  Mention the renaming.
17028         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
17029         in comments.
17030         * m4/bison.m4: Likewise.
17031
17032 2010-10-05  Eric Blake  <eblake@redhat.com>
17033
17034         parse-datetime: better name than get_date
17035         * NEWS: Reword the deprecation notice.
17036         * modules/get_date: Rename to modules/parse-datetime.
17037         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
17038         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
17039         * lib/get_date.y: Rename to lib/parse-datetime.y.
17040         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
17041         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
17042         * doc/getdate.texi: Provide fallback wrapper.
17043         * lib/getdate.h: Move guts, and wrap...
17044         * lib/parse-datetime.h: ...new file.
17045         * lib/parse-datetime.y (get_date): Rename...
17046         (parse_datetime): ...to this.
17047         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
17048         (gl_PARSE_DATETIME): ...to this.
17049         * doc/posix-functions/getdate.texi (get_date): Provide fallback
17050         documentation.
17051         * modules/getdate (Files): Provide fallback docs and header.
17052         (Notice, Depends-on): Update references.
17053         * tests/test-parse-datetime.c: Likewise.
17054         * DEPENDENCIES: Likewise.
17055         * MODULES.html.sh (Date and time <time.h>): Likewise.
17056         * doc/parse-datetime.texi (Date input formats)
17057         (Authors of parse_datetime): Likewise.
17058         * modules/parse-datetime (Files, configure.ac, Makefile.am)
17059         (Include): Likewise.
17060         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
17061         * gnulib-tool: Likewise.
17062         * m4/bison.m4 (gl_BISON): Likewise.
17063         Suggested by Bruno Haible.
17064
17065 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17066
17067         more ports to Solaris tr, which needs [] around ranges
17068         * gnulib-tool: Solaris tr needs [] around ranges.
17069         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17070         * tests/test-pipe-filter-gi1.c (main): Likewise.
17071         * tests/test-pipe-filter-ii1.c (main): Likewise.
17072
17073 2010-10-05  Eric Blake  <eblake@redhat.com>
17074
17075         bootstrap: fix Solaris regression
17076         * build-aux/bootstrap (check_versions): Solaris tr still needs []
17077         around ranges.
17078         Reported by Pádraig Brady.
17079
17080         bootstrap: work with pkg-config
17081         * build-aux/bootstrap (check_versions): Also transliterate - in
17082         prerequisite name.
17083         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
17084         prerequisites that were already found, to avoid confusion.
17085         Reported by Justin Clift.
17086
17087         faccessat: remove unused wrappers
17088         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
17089         presence of these wrappers dragged in -lgen on Solaris.
17090         Reported by Clemens Brogi; fix suggested by Paul Eggert.
17091
17092 2010-10-05  Jim Meyering  <meyering@redhat.com>
17093
17094         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
17095         * Makefile (sc_pragma_columns): New syntax-check rule.
17096
17097 2010-10-04  Bruno Haible  <bruno@clisp.org>
17098
17099         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
17100         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
17101         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
17102         Reported by Bruce Korb and Eric Blake.
17103
17104 2010-10-04  Bruno Haible  <bruno@clisp.org>
17105
17106         threadlib: Make option --with-libpth-prefix work.
17107         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
17108         use $LIBPTH, not just -lpth.
17109
17110 2010-10-04  Bruno Haible  <bruno@clisp.org>
17111
17112         Avoid line length limitation from HP NonStop system header files.
17113         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
17114         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
17115         * lib/ctype.in.h: Likewise.
17116         * lib/dirent.in.h: Likewise.
17117         * lib/errno.in.h: Likewise.
17118         * lib/fcntl.in.h: Likewise.
17119         * lib/float.in.h: Likewise.
17120         * lib/getopt.in.h: Likewise.
17121         * lib/iconv.in.h: Likewise.
17122         * lib/inttypes.in.h: Likewise.
17123         * lib/langinfo.in.h: Likewise.
17124         * lib/locale.in.h: Likewise.
17125         * lib/math.in.h: Likewise.
17126         * lib/netdb.in.h: Likewise.
17127         * lib/netinet_in.in.h: Likewise.
17128         * lib/poll.in.h: Likewise.
17129         * lib/pthread.in.h: Likewise.
17130         * lib/pty.in.h: Likewise.
17131         * lib/sched.in.h: Likewise.
17132         * lib/se-selinux.in.h: Likewise.
17133         * lib/search.in.h: Likewise.
17134         * lib/signal.in.h: Likewise.
17135         * lib/spawn.in.h: Likewise.
17136         * lib/stdarg.in.h: Likewise.
17137         * lib/stddef.in.h: Likewise.
17138         * lib/stdint.in.h: Likewise.
17139         * lib/stdio.in.h: Likewise.
17140         * lib/stdlib.in.h: Likewise.
17141         * lib/string.in.h: Likewise.
17142         * lib/strings.in.h: Likewise.
17143         * lib/sys_file.in.h: Likewise.
17144         * lib/sys_ioctl.in.h: Likewise.
17145         * lib/sys_select.in.h: Likewise.
17146         * lib/sys_socket.in.h: Likewise.
17147         * lib/sys_stat.in.h: Likewise.
17148         * lib/sys_time.in.h: Likewise.
17149         * lib/sys_times.in.h: Likewise.
17150         * lib/sys_utsname.in.h: Likewise.
17151         * lib/sys_wait.in.h: Likewise.
17152         * lib/sysexits.in.h: Likewise.
17153         * lib/termios.in.h: Likewise.
17154         * lib/time.in.h: Likewise.
17155         * lib/unistd.in.h: Likewise.
17156         * lib/wchar.in.h: Likewise.
17157         * lib/wctype.in.h: Likewise.
17158         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
17159         * modules/ctype (Makefile.am): Likewise.
17160         * modules/dirent (Makefile.am): Likewise.
17161         * modules/errno (Makefile.am): Likewise.
17162         * modules/fcntl-h (Makefile.am): Likewise.
17163         * modules/float (Makefile.am): Likewise.
17164         * modules/getopt-posix (Makefile.am): Likewise.
17165         * modules/iconv-h (Makefile.am): Likewise.
17166         * modules/inttypes (Makefile.am): Likewise.
17167         * modules/langinfo (Makefile.am): Likewise.
17168         * modules/locale (Makefile.am): Likewise.
17169         * modules/math (Makefile.am): Likewise.
17170         * modules/netdb (Makefile.am): Likewise.
17171         * modules/netinet_in (Makefile.am): Likewise.
17172         * modules/poll-h (Makefile.am): Likewise.
17173         * modules/pthread (Makefile.am): Likewise.
17174         * modules/pty (Makefile.am): Likewise.
17175         * modules/sched (Makefile.am): Likewise.
17176         * modules/search (Makefile.am): Likewise.
17177         * modules/selinux-h (Makefile.am): Likewise.
17178         * modules/signal (Makefile.am): Likewise.
17179         * modules/spawn (Makefile.am): Likewise.
17180         * modules/stdarg (Makefile.am): Likewise.
17181         * modules/stddef (Makefile.am): Likewise.
17182         * modules/stdint (Makefile.am): Likewise.
17183         * modules/stdio (Makefile.am): Likewise.
17184         * modules/stdlib (Makefile.am): Likewise.
17185         * modules/string (Makefile.am): Likewise.
17186         * modules/strings (Makefile.am): Likewise.
17187         * modules/sys_file (Makefile.am): Likewise.
17188         * modules/sys_ioctl (Makefile.am): Likewise.
17189         * modules/sys_select (Makefile.am): Likewise.
17190         * modules/sys_socket (Makefile.am): Likewise.
17191         * modules/sys_stat (Makefile.am): Likewise.
17192         * modules/sys_time (Makefile.am): Likewise.
17193         * modules/sys_times (Makefile.am): Likewise.
17194         * modules/sys_utsname (Makefile.am): Likewise.
17195         * modules/sys_wait (Makefile.am): Likewise.
17196         * modules/sysexits (Makefile.am): Likewise.
17197         * modules/termios (Makefile.am): Likewise.
17198         * modules/time (Makefile.am): Likewise.
17199         * modules/unistd (Makefile.am): Likewise.
17200         * modules/wchar (Makefile.am): Likewise.
17201         * modules/wctype (Makefile.am): Likewise.
17202
17203 2010-10-04  Bruno Haible  <bruno@clisp.org>
17204
17205         read-file tests: Avoid a test failure on NonStop Kernel.
17206         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
17207         a regular file.
17208         Reported by Joachim Schmitz <schmitz@hp.com>.
17209
17210 2010-10-03  Bruno Haible  <bruno@clisp.org>
17211
17212         gnulib-tool: Fixes for --create-testdir with --libtool.
17213         * gnulib-tool (func_get_automake_snippet): Don't augment
17214         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
17215         an executable.
17216         (func_create_testdir): Handle module 'alloca' like func_import.
17217         Reported by Bruce Korb <bruce.korb@gmail.com>.
17218
17219 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
17220
17221         Avoid some lines longer than 80 characters.
17222         * lib/stdint.in.h: Break long comment lines.
17223         * lib/math.in.h: Likewise.
17224         (_GL_NUM_UINT_WORDS): New macro, for readability.
17225         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
17226         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
17227         * lib/stdlib.in.h: Likewise.
17228         * lib/spawn.in.h: Likewise.
17229         * lib/sys_socket.in.h: Update an URL.
17230         * lib/sys_stat.in.h: Break long line.
17231
17232 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
17233
17234         Improve pmccabe2html.
17235         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
17236         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
17237         when the sources change. Remove the line in the HTML about "Used
17238         ranges" (which implied that there might be other unused ranges),
17239         rename "Resume" to "Summary" (easier to understand for more users).
17240         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
17241         styles, and some unnecessary blank lines.
17242
17243 2010-10-03  Bruno Haible  <bruno@clisp.org>
17244             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
17245
17246         acl: Add support for ACLs on NonStop Kernel.
17247         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
17248         Check whether the function aclsort() exists.
17249         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
17250         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
17251         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17252         (acl_nontrivial [HAVE_ACLSORT]: New function.
17253         (file_has_acl): Implement for NonStop Kernel.
17254         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17255         (qset_acl): Implement for NonStop Kernel.
17256         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
17257         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17258         (main): Implement for NonStop Kernel.
17259         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
17260         Kernel. Handle this flavor.
17261         * tests/test-set-mode-acl.sh: Likewise.
17262         * tests/test-copy-acl.sh: Likewise.
17263         * tests/test-copy-file.sh: Likewise.
17264
17265 2010-10-03  Bruno Haible  <bruno@clisp.org>
17266
17267         Info about ACLs on NonStop Kernel.
17268         * doc/acl-resources.txt: Add info about NonStop Kernel.
17269         References by Joachim Schmitz <schmitz@hp.com>.
17270
17271 2010-10-02  Bruno Haible  <bruno@clisp.org>
17272
17273         Define missing EDQUOT on NonStop Kernel.
17274         * lib/errno.in.h (EDQUOT): Assign a value if missing.
17275         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
17276         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
17277         missing.
17278         * doc/posix-headers/errno.texi: Mention the NSK bug.
17279         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
17280         Reported by Joachim Schmitz <schmitz@hp.com>.
17281
17282 2010-10-02  Bruno Haible  <bruno@clisp.org>
17283
17284         Update doc for POSIX:2008.
17285         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
17286         Update URL of POSIX specification.
17287
17288 2010-10-02  Bruno Haible  <bruno@clisp.org>
17289
17290         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
17291         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
17292         from gnulib, not from Automake.
17293
17294 2010-10-02  Bruno Haible  <bruno@clisp.org>
17295
17296         New module 'system-posix'.
17297         * modules/system-posix: New file.
17298         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
17299         module is present.
17300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17301         GNULIB_SYSTEM_POSIX.
17302         * modules/stdlib (Depends-on): Remove sys_wait.
17303         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
17304         * doc/posix-functions/system.texi: Mention the new module.
17305         * doc/posix-headers/stdlib.texi: Likewise.
17306         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
17307         define test_sys_wait_macros to a no-op.
17308         Reported by Sam Steingold <sds@gnu.org>.
17309
17310 2010-09-30  Bruno Haible  <bruno@clisp.org>
17311
17312         More renaming from 'getdate' to 'get_date'.
17313         * doc/get_date.texi: Renamed from doc/getdate.texi.
17314         * modules/get_date (Files): Update.
17315         * MODULES.html.sh (Date and time <time.h>): Update.
17316         * DEPENDENCIES: Update.
17317         * gnulib-tool: Update comment.
17318         * m4/bison.m4 (gl_BISON): Likewise.
17319         * m4/get_date.m4 (gl_GET_DATE): Likewise.
17320
17321 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
17322
17323         bootstrap: support ACLOCAL_FLAGS during aclocal
17324         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
17325         can add additional -I dir for third-party .m4 files.
17326
17327 2010-09-30  Eric Blake  <eblake@redhat.com>
17328
17329         bootstrap: use glibtoolize on MacOS
17330         * build-aux/bootstrap (check_versions): Convert libtool into
17331         libtoolize.
17332         (tool search): Move libtool check earlier, and look for
17333         glibtoolize for MacOS.
17334         (gnulib_tool_options): Auto-add --libtool when appropriate.
17335         Reported by Justin Clift.
17336
17337         poll: fix typo that broke test on MacOS
17338         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
17339         Reported by Justin Clift.
17340
17341         getdate: rename to get_date
17342         Note: getdate.h is not renamed, to minimize client impact.
17343         * modules/getdate: Mark obsolete.  Move old contents...
17344         * modules/get_date: ...to new module name.
17345         * modules/getdate-tests: Move...
17346         * modules/get_date-tests: ...here.
17347         * m4/getdate.m4: Move...
17348         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
17349         * lib/getdate.y: Move...
17350         * lib/get_date.y: ...here.
17351         * tests/test-getdate.c: Move...
17352         * tests/test-get_date.c: ...here.
17353         * doc/posix-functions/getdate.texi (getdate): Update name.
17354         * NEWS: Mention the change.
17355
17356 2010-09-29  Bruno Haible  <bruno@clisp.org>
17357
17358         Separate the module 'waitpid' from the module 'sys_wait'.
17359         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
17360         present.
17361         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
17362         gl_MODULE_INDICATOR_FOR_TESTS.
17363         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
17364         * modules/sys_wait (Depends-on): Remove waitpid.
17365         (Makefile.am): Substitute GNULIB_WAITPID.
17366         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
17367         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
17368         signature only if the 'waitpid' module is present.
17369         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
17370         * NEWS: Mention the change.
17371         * modules/grantpt (Depends-on): Add waitpid.
17372         * modules/wait-process (Depends-on): Likewise.
17373
17374 2010-09-29  Bruno Haible  <bruno@clisp.org>
17375
17376         More tests for module 'sys_wait'.
17377         * modules/sys_wait-c++-tests: New file.
17378         * tests/test-sys_wait-c++.cc: New file.
17379         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
17380         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17381
17382 2010-09-29  Bruno Haible  <bruno@clisp.org>
17383
17384         New module 'waitpid'.
17385         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
17386         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
17387         Don't include <process.h>.
17388         (waitpid): Declare only, using modern idiom.
17389         * m4/waitpid.m4: New file.
17390         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
17391         * modules/waitpid: New file.
17392         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
17393         (Makefile.am): Update.
17394         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17395
17396 2010-09-28  Bruno Haible  <bruno@clisp.org>
17397
17398         poll: Assume ANSI C.
17399         * lib/poll.c (poll): Use an ANSI C declaration.
17400
17401 2010-09-28  Bruno Haible  <bruno@clisp.org>
17402
17403         poll-h: Create poll.h on all platforms.
17404         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
17405         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
17406         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
17407         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
17408         (gl_REPLACE_POLL_H): Don't set POLL_H.
17409         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
17410         * modules/poll-h (Depends-on): Add include_next.
17411         (Makefile.am): Create poll.h unconditionally. Substitute also
17412         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
17413
17414 2010-09-28  Bruno Haible  <bruno@clisp.org>
17415
17416         Tests for module 'poll-h'.
17417         * modules/poll-h-c++-tests: New file.
17418         * tests/test-poll-h-c++.cc: New file.
17419
17420         Tests for module 'poll-h'.
17421         * modules/poll-h-tests: New file.
17422         * tests/test-poll-h.c: New file.
17423
17424 2010-09-28  Bruno Haible  <bruno@clisp.org>
17425
17426         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
17427         * modules/poll-h (Depends-on): Add 'extensions'.
17428
17429 2010-09-28  Bruno Haible  <bruno@clisp.org>
17430
17431         New module 'poll-h'.
17432         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
17433         (poll): Use modern idiom.
17434         * modules/poll-h: New file.
17435         * modules/poll (Files): Remove lib/poll.in.h.
17436         (Depends-on): Add poll-h.
17437         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
17438         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
17439         * m4/poll_h.m4: New file.
17440         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
17441         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
17442         and invoke gl_REPLACE_POLL_H.
17443         * lib/poll.c: Use common idiom.
17444         * tests/test-poll.c: Likewise.
17445         * doc/posix-headers/poll.texi: Mention the poll-h module.
17446         Suggested by Eric Blake.
17447
17448 2010-09-26  Bruno Haible  <bruno@clisp.org>
17449
17450         sys_wait: Implement WSTOPSIG.
17451         * lib/sys_wait.in.h (WSTOPSIG): New macro.
17452         Reported by Simon Josefsson.
17453
17454 2010-09-26  Simon Josefsson  <simon@josefsson.org>
17455
17456         stdlib, sys_wait: Avoid compilation error on mingw.
17457         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
17458
17459 2010-09-26  Bruno Haible  <bruno@clisp.org>
17460
17461         stdlib tests: Avoid code duplication.
17462         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
17463         * modules/sys_wait-tests (Files): Likewise.
17464         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
17465         * tests/test-stdlib.c: Include test-sys_wait.h.
17466         (main): Invoke test_sys_wait_macros.
17467         * tests/test-sys_wait.c: Include test-sys_wait.h.
17468         (main): Invoke test_sys_wait_macros.
17469
17470 2010-09-25  Simon Josefsson  <simon@josefsson.org>
17471
17472         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
17473         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
17474         sure Windows sockets are working before calling getaddrinfo.
17475         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
17476         * doc/gnulib.texi (Windows sockets): Fix typo.
17477
17478 2010-09-25  Bruno Haible  <bruno@clisp.org>
17479
17480         Tests for module 'regex-quote'.
17481         * modules/regex-quote-tests: New file.
17482         * tests/test-regex-quote.c: New file.
17483
17484         New module 'regex-quote'.
17485         * lib/regex-quote.h: New file.
17486         * lib/regex-quote.c: New file.
17487         * modules/regex-quote: New file.
17488         Suggested by Reuben Thomas <rrt@sc3d.org>.
17489
17490 2010-09-24  Bruno Haible  <bruno@clisp.org>
17491
17492         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
17493         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
17494
17495 2010-09-23  Bruno Haible  <bruno@clisp.org>
17496
17497         setenv: Relax license.
17498         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
17499         Blake.
17500         Requested by Eric Blake.
17501
17502 2010-09-22  Bruno Haible  <bruno@clisp.org>
17503
17504         termios: Relax license.
17505         * modules/termios (License): Change to LGPLv2+.
17506         Requested by Eric Blake.
17507
17508 2010-09-22  Bruno Haible  <bruno@clisp.org>
17509
17510         threadlib: Allow the package to change the default to 'no'.
17511         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
17512         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
17513         Reported by Paul Eggert.
17514
17515 2010-09-22  Pádraig Brady  <P@draigbrady.com>
17516             Bruno Haible  <bruno@clisp.org>
17517
17518         Fix endless loop in mbmemcasecoll.
17519         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
17520         byte.
17521         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
17522
17523 2010-09-22  Bruno Haible  <bruno@clisp.org>
17524
17525         Tests for module 'memcoll'.
17526         * modules/memcoll-tests: New file.
17527         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
17528
17529         memcoll, xmemcoll: Clarify size vs. length.
17530         * modules/memcoll.c (memcoll0): Clarify specification.
17531         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
17532         passed to collate_error.
17533
17534 2010-09-22  Bruno Haible  <bruno@clisp.org>
17535
17536         Tests for module 'memcasecmp'.
17537         * modules/memcasecmp-tests: New file.
17538         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
17539
17540 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17541
17542         * lib/pthread.in.h: Add split double-inclusion guard, and include
17543         system <pthread.h> if there is one.  Use @@-style as in other
17544         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
17545         pthread.h doesn't.
17546         (pthread_mutexattr_destroy, pthread_mutexattr_init):
17547         (pthread_mutexattr_settype, pthread_mutex_trylock):
17548         New static inline functions, if there's no system <pthread.h>.
17549         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
17550         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
17551         Approximate with mutexes if the system lacks spinlocks, as in
17552         MacOS.
17553         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
17554         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
17555         @@-style.  Check for spinlocks separately.
17556         (gl_PTHREAD_DEFAULTS): New macro.
17557         * modules/pthread: Redo to use a more typical style for in.h files.
17558
17559 2010-09-21  Eric Blake  <eblake@redhat.com>
17560
17561         net_if: enhance tests
17562         * tests/test-net_if.c (main): Move signature checks earlier.
17563         Print failures to stderr.
17564         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
17565         Document the bug that we do not yet fix.
17566
17567 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17568
17569         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
17570         about gnulib, not GSS.
17571
17572 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17573
17574         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
17575         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
17576         for Emacs.
17577         * build-aux/pmccabe2html: Make Makefile.am example code more
17578         cut-and-paste friendly.
17579
17580 2010-09-21  Simon Josefsson  <simon@josefsson.org>
17581
17582         * tests/test-net_if.c: New file.
17583         * modules/net_if-tests: New file.
17584
17585 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17586
17587         pthread: add pthread_spin_destroy
17588         * lib/pthread.in.h (pthread_spin_destroy): New function.
17589
17590 2010-09-19  Bruno Haible  <bruno@clisp.org>
17591
17592         gnulib-tool: Fix --help output.
17593         * gnulib-tool (func_usage): Fix help message.
17594         Reported by Reuben Thomas <rrt@sc3d.org>.
17595
17596 2010-09-18  Jim Meyering  <meyering@redhat.com>
17597
17598         maint.mk: avoid unexpanded \n in two diagnostics
17599         * top/maint.mk (sc_prohibit_always_true_header_tests):
17600         Don't use a literal \n in a halt=... assignment.  It would not be
17601         expanded, and the two \n bytes would appear in the diagnostic output
17602         rather than the desired newline.  Use halt=$$(printf ... instead.
17603         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17604
17605 2010-09-18  Bruno Haible  <bruno@clisp.org>
17606
17607         netinet_in: Doc tweak.
17608         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
17609         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17610
17611 2010-09-18  Jim Meyering  <meyering@redhat.com>
17612
17613         init.sh: correct an outdated comment
17614         * tests/init.sh (create_exe_shims_):  s/function/alias/
17615
17616         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
17617         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
17618         a file named "*.exe" is removed between the glob expansion and the
17619         processing of that oddly named file.
17620
17621 2010-09-17  Eric Blake  <eblake@redhat.com>
17622
17623         mirbsd: add some more support
17624         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
17625         in BSD family.
17626         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
17627         devices as OpenBSD.
17628         * m4/host-os.m4 (mirbsd): Add MirBSD.
17629
17630         tests: fix unportable assumption on sys/wait.h
17631         * tests/test-sys_wait.c (main): Relax test.
17632         * tests/test-stdlib.c (main): Likewise.
17633
17634         init.sh: accomodate directory with no .exes
17635         * tests/init.sh: Accomodate directory containing only scripts.
17636
17637         tests: avoid compiler warning
17638         * tests/test-stdlib.c (main): Use the variable.
17639
17640         fdutimens, fdutimensat: update signature, again
17641         * lib/utimens.h (gl_futimens): Delete, and move signature...
17642         (fdutimens): ...here.
17643         (fdutimensat): Rearrange signature.
17644         (lutimensat): Rename variable for clarity.
17645         * lib/fdutimensat.c (fdutimensat): Update signature.
17646         * lib/utimens.c (fdutimens): Likewise.
17647         (gl_futimens): Delete.
17648         (utimens, lutimens): Update callers.
17649         * lib/futimens.c (futimens): Likewise.
17650         * tests/test-fdutimensat.c: Likewise.
17651         * tests/test-utimens.c: Likewise.
17652         * tests/test-futimens.h: Update comment.
17653         * NEWS: Mention this.
17654         Suggested by Paul Eggert.
17655
17656 2010-09-17  Bruno Haible  <bruno@clisp.org>
17657
17658         Take over the maintenance of some older macros from Autoconf.
17659         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
17660         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
17661         GNU Autoconf.
17662         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
17663         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
17664
17665 2010-09-17  Eric Blake  <eblake@redhat.com>
17666
17667         fdutimensat: drop atflag validation
17668         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
17669         with valid fd, to close a race scenario where futimens is
17670         unsupported and FILE was replaced by a symlink.
17671         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
17672         accordingly.
17673         Suggested by Paul Eggert.
17674
17675 2010-09-16  Bruno Haible  <bruno@clisp.org>
17676
17677         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
17678         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
17679
17680 2010-09-16  Bruno Haible  <bruno@clisp.org>
17681
17682         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
17683         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
17684         login_tty exists.
17685         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17686
17687 2010-09-16  Bruno Haible  <bruno@clisp.org>
17688
17689         login_tty: Make the replacement code work on BSD systems.
17690         * lib/login_tty.c: Include <sys/ioctl.h>.
17691         (login_tty): Use ioctl TIOCSCTTY when available.
17692         * modules/login_tty (Depends-on): Add sys_ioctl.
17693         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17694
17695 2010-09-16  Bruno Haible  <bruno@clisp.org>
17696
17697         login_tty: Stricter unit test.
17698         * modules/login_tty-tests (Depends-on): Add tcgetsid.
17699         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
17700         and tcgetsid() after login_tty.
17701         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17702
17703 2010-09-16  Bruno Haible  <bruno@clisp.org>
17704
17705         New module 'tcgetsid'.
17706         * lib/tcgetsid.c: New file.
17707         * m4/tcgetsid.m4: New file.
17708         * modules/tcgetsid: New file.
17709         * modules/termios (Depends-on): Add c++defs, warn-on-use.
17710         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
17711         GNULIB_TCGETSID, HAVE_TCGETSID.
17712         * lib/termios.in.h: Include <sys/types.h>.
17713         (tcgetsid): New declaration.
17714         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
17715         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
17716         * doc/posix-functions/tcgetsid.texi: Mention the new module.
17717         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
17718
17719 2010-09-16  Bruno Haible  <bruno@clisp.org>
17720
17721         Tests for module 'termios'.
17722         * modules/termios-c++-tests: New file.
17723         * modules/termios-tests: New file.
17724         * tests/test-termios-c++.cc: New file.
17725         * tests/test-termios.c: New file.
17726
17727         New module 'termios'.
17728         * modules/termios: New file.
17729         * lib/termios.in.h: New file.
17730         * m4/termios_h.m4: New file.
17731         * doc/posix-headers/termios.texi: Mention the new module.
17732
17733 2010-09-16  Eric Blake  <eblake@redhat.com>
17734
17735         fdutimensat: add an atflag parameter
17736         * lib/fdutimensat.c (fdutimensat): Add new parameter.
17737         * lib/utimens.h (fdutimensat): Update prototype.
17738         * tests/test-fdutimensat.c: Adjust test to match.
17739         * NEWS: Document the change.
17740         Suggested by Paul Eggert.
17741
17742 2010-09-16  Bruno Haible  <bruno@clisp.org>
17743
17744         Fix typos in comments.
17745         * lib/striconveh.h: Fix typo in comment.
17746         * lib/login_tty.c (login_tty): Likewise.
17747
17748 2010-09-15  Bruno Haible  <bruno@clisp.org>
17749
17750         stdlib: clarify MirBSD WEXITSTATUS bug
17751         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
17752         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17753
17754 2010-09-15  Eric Blake  <eblake@redhat.com>
17755
17756         stdlib: work around MirBSD WEXITSTATUS bug
17757         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
17758         * modules/stdlib (Depends-on): Add sys_wait.
17759         * tests/test-sys_wait.c (main): Enhance test.
17760         * tests/test-stdlib.c (main): Likewise.
17761         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
17762
17763         docs: mention MacOS issue with WEXITSTATUS(constant)
17764         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
17765         issue.
17766         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17767
17768         strnlen: add tests
17769         * modules/strnlen-tests: New file.
17770         * tests/test-strnlen.c: Likewise.
17771
17772 2010-09-14  Bruno Haible  <bruno@clisp.org>
17773
17774         unistr/base: Avoid link errors when module 'libunistring' is also used.
17775         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
17776         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
17777         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
17778         Declare also when HAVE_LIBUNISTRING is set.
17779         Reported by Pádraig Brady <P@draigbrady.com>.
17780
17781 2010-09-14  Eric Blake  <eblake@redhat.com>
17782
17783         test-rawmemchr: make more robust
17784         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
17785         (Depends-on, configure.ac): Add needed prerequisites to use it.
17786         * modules/memchr-tests (Files, Depends-on, configure.ac):
17787         Likewise, to avoid implicit reliance on memchr module prereqs.
17788         * tests/test-memchr.c (main): Ensure proper masking.
17789         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
17790         reads.
17791
17792         memchr: detect glibc Alpha bug
17793         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
17794         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
17795         Alpha.
17796         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
17797         * tests/test-memchr.c (main): Enhance test.
17798         Reported by Nelson H. F. Beebe.
17799
17800 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17801
17802         fts, getcwd, glob: audit for dirfd returning -1
17803         * lib/fts.c (opendir): Remove #define; no longer used.
17804         (opendirat): New arg PDIR_FD.  All callers changed.
17805         (fts_build, _opendir2): Use new opendirat to avoid the need for
17806         dirfd, or for checking whether dirfd returns a negative value.
17807         Don't use opendir; always use openat followed by fdopendir.
17808         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
17809         it.
17810         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
17811         returns -1 here.
17812         * modules/fts (Depends-on): Remove dirfd.
17813         * modules/getcwd (Depends-on): Likewise.
17814
17815 2010-09-13  Eric Blake  <eblake@redhat.com>
17816
17817         float: fix broken MirBSD header
17818         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
17819         * doc/posix-headers/float.texi (float.h): Document it.
17820
17821 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17822
17823         fts: use O_NOFOLLOW to avoid race condition when opening a directory
17824         * lib/fts.c (opendirat): New arg extra_flags.
17825         (__opendir2): Use it to avoid following symlinks when opening
17826         a directory, if symlinks are not supposed to be followed.  See
17827         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
17828
17829         fdopendir: preserve argument fd before returning
17830         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
17831         (fdopendir_with_dup, fd_clone_opendir): New static functions.
17832         (fdopendir): Use them, arranging for FD to be open to the same
17833         directory that it was when it started.  (It might be temporarily
17834         closed while fdopendir is running, so this not thread- or
17835         signal-safe.)  Be careful to do the right thing even when file
17836         descriptors are scarce and dup fails with errno == EMFILE.  See
17837         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
17838
17839 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
17840
17841         regex: Pass the system regex if its only problem is 32-bit regoff_t.
17842         * NEWS: Document change.
17843         * m4/regex.m4: Disable test for regoff_t size.
17844
17845 2010-09-13  Jim Meyering  <meyering@redhat.com>
17846
17847         fts: don't operate on an invalid file descriptor after failed dup
17848         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
17849         negative file descriptor.
17850
17851 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17852
17853         savedir: add streamsavedir, deprecate fdsavedir
17854         * NEWS: Mention deprecation of fdsavedir.
17855         * lib/savedir.c (streamsavedir): New extern function, whose name
17856         ends in "savedir" to be consistent with the others.  This differs
17857         from savedirstream in that it doesn't close its argument.  The
17858         next version of GNU tar will use this instead of fdsavedir, to
17859         avoid some race conditions and conserve file descriptors.
17860         (savedirstream): Reimplement as a wrapper around streamsavedir.
17861         (fdsavedir): Add a comment deprecating this function.  As far as
17862         I know, only GNU tar used it, and GNU tar doesn't need it any more.
17863         * lib/savedir.h (streamsavedir): New decl.
17864         (fdsavedir): Add a comment deprecating this.
17865
17866 2010-09-10  Bruno Haible  <bruno@clisp.org>
17867
17868         langinfo: Fix last commit.
17869         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
17870         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
17871         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17872
17873 2010-09-10  Bruno Haible  <bruno@clisp.org>
17874
17875         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
17876         * lib/progreloc.c (O_EXEC): Define fallback.
17877
17878 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17879
17880         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
17881         * NEWS: Document recent changes to fcntl-h.
17882         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
17883         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
17884         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
17885         Similarly for O_SEARCH; this last was already true, but not documented.
17886         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
17887         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
17888         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
17889         Likewise.
17890         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
17891         is zero, not whether it is defined.
17892         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
17893         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
17894         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
17895
17896 2010-09-10  Bruno Haible  <bruno@clisp.org>
17897
17898         langinfo, nl_langinfo: Fix for IRIX 5.3.
17899         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
17900         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
17901         HAVE_LANGINFO_YESEXPR.
17902         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
17903         HAVE_LANGINFO_YESEXPR.
17904         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
17905         HAVE_LANGINFO_T_FMT_AMPM is 0.
17906         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
17907         HAVE_LANGINFO_YESEXPR is 0.
17908         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
17909         NOEXPR.
17910         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
17911         * doc/posix-functions/nl_langinfo.texi: Likewise.
17912         Reported by Eric Blake.
17913
17914 2010-09-10  Bruno Haible  <bruno@clisp.org>
17915
17916         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
17917         * doc/glibc-functions/login_tty.texi: Mention the include file problem
17918         on FreeBSD 8.0 and OpenBSD 4.6.
17919         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
17920         * m4/pty_h.m4 (gl_PTY_H): Likewise.
17921         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
17922         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
17923         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
17924         ac_includes_default.
17925         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17926
17927 2010-09-09  Eric Blake  <eblake@redhat.com>
17928
17929         strsignal: work around NetBSD bug
17930         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
17931         * lib/string.in.h (includes): Likewise.
17932         * doc/posix-functions/strsignal.texi (strsignal): Document the
17933         bug.
17934         Reported by Nelson H. F. Beebe.
17935
17936         gnulib-tool: work with NetBSD /bin/sh
17937         * gnulib-tool (func_cache_var, func_cache_lookup_module)
17938         (func_get_description, func_get_comment, func_get_status)
17939         (func_get_notice, func_get_applicability, func_get_filelist)
17940         (func_get_dependencies, func_get_autoconf_early_snippet)
17941         (func_get_autoconf_snippet, func_get_automake_snippet)
17942         (func_get_include_directive, func_get_link_directive)
17943         (func_get_license, func_get_maintainer, func_import): Avoid
17944         shell syntax errors from parsing syntax extensions.
17945
17946 2010-09-09  Bruno Haible  <bruno@clisp.org>
17947
17948         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17949         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
17950         a reliable way to determine whether the 'alias' command works.
17951
17952 2010-09-08  Jim Meyering  <meyering@redhat.com>
17953
17954         init.sh: penalize a set-x-impaired shell; don't disqualify it
17955         * tests/init.sh: Too many shells corrupt application stderr when
17956         you set -x, so we can't afford to disqualify them, since at least
17957         on Irix-6.5, that would disqualify all bourne shells.
17958         Instead, use a two-pass approach.
17959         On the first pass, try to find a shell that meets the stricter
17960         condition that set -x does not corrupt stderr.
17961         If no shell meets the stricter condition, retest each candidate
17962         shell, but without that extra condition.  Finally, when
17963         VERBOSE=yes is requested and set -x might cause trouble, simply
17964         issue a warning and refrain from enabling debug output.
17965
17966 2010-09-08  Eric Blake  <eblake@redhat.com>
17967
17968         unsetenv: fix OpenBSD bug
17969         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
17970         * doc/posix-functions/unsetenv.texi (unsetenv): Update
17971         documentation.
17972         Reported by Jim Meyering.
17973
17974         strtod: work around IRIX 6.5 bug
17975         * lib/strtod.c (strtod): Reparse number on shorter string if
17976         exponent parse was invalid.
17977         * tests/test-strtod.c (main): Add check for "0x1p 2".
17978         Reported by Tom G. Christensen.
17979
17980         getopt: optimize previous patch
17981         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17982         empty variable.  Speed up awk script.
17983         Reported by Paolo Bonzini.
17984
17985 2010-09-08  Jim Meyering  <meyering@redhat.com>
17986
17987         test.sh: disqualify shells for which set -x corrupts stderr
17988         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17989         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17990         appear in stderr output.  For example, this command:
17991             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17992         prints "P=1" on those two systems:
17993
17994 2010-09-08  Bruno Haible  <bruno@clisp.org>
17995
17996         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17997         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17998         commands, because some shells ignore redirections when there is an
17999         error in the command lookup.
18000         Reported by Eric Blake.
18001
18002 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
18003
18004         * lib/regex.h: Fix a mention of `regex_compile' (should be
18005         `re_compile_pattern').
18006         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
18007         (re_set_registers): Correct name of parameter in comment.
18008
18009         * doc/regex.texi: Add documentation for missing syntax flags.
18010         Remove commented-out documentation of defunct syntax option
18011         RE_NO_EMPTY_ALTS.
18012         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
18013         Add documentation of re_set_registers.
18014         Document trick to re-use a pattern buffer by setting fastmap manually.
18015         Update documentation of struct re_pattern_buffer per public members.
18016         Uncomment documentation of equivalence class operators and
18017         collating symbol operators, since they are now implemented,
18018         Explain leftmost-longest matching in relation to alternatives.
18019         Tidy documentation of substring matching.
18020         Remove POSIX documentation, which is done better in
18021         glibc, and refer the reader there. Keep BSD API documentation, as
18022         that is not readily available elsewhere.
18023
18024 2010-09-07  Eric Blake  <eblake@redhat.com>
18025
18026         getopt: handle POSIXLY_CORRECT set but not exported
18027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
18028         export state of POSIXLY_CORRECT, due to bash set -o posix.
18029         Reported by Dustin J. Mitchell.
18030
18031 2010-09-05  Bruno Haible  <bruno@clisp.org>
18032
18033         gnulib-tool: Highlight the changed options.
18034         * gnulib-tool (func_usage): Display the --import, --add-import,
18035         --remove-import explanations in bold font.
18036
18037 2010-09-06  Karl Berry  <karl@gnu.org>
18038
18039         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
18040
18041 2010-09-05  Bruno Haible  <bruno@clisp.org>
18042
18043         uniwidth/width: Update comment.
18044         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
18045         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
18046
18047 2010-09-05  Bruno Haible  <bruno@clisp.org>
18048
18049         isinf, isnan: Relax license.
18050         * modules/isinf (License): Change from GPL to LGPL, with consent from
18051         Ben Pfaff.
18052         * modules/isnan (License): Likewise.
18053         Requested by Ludovic Courtès.
18054
18055 2010-09-04  Bruno Haible  <bruno@clisp.org>
18056
18057         gnulib-tool: Help migration from --import to --add-import or --update.
18058         * gnulib-tool: Emit a verbose error message when --import is used
18059         without any module name.
18060
18061 2010-09-04  Bruno Haible  <bruno@clisp.org>
18062
18063         Update doc about gnulib-tool.
18064         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
18065         'gnulib-tool --update' in more detail.
18066         Reported by Eric Blake.
18067
18068 2010-09-04  Bruno Haible  <bruno@clisp.org>
18069
18070         gnulib-tool: Change --import. New options --add/remove-import.
18071         * gnulib-tool: New options --add-import, --remove-import.
18072         (func_usage): Document them.
18073         (have_associative): Define always.
18074         (func_import): In import mode, don't merge the specified settings with
18075         the cached settings. Implement remove-import mode.
18076         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
18077         Explain when to use them versus --import.
18078         (Simple update): Use --add-import instead of --import.
18079         * NEWS: Mention the change.
18080
18081 2010-09-04  Bruno Haible  <bruno@clisp.org>
18082
18083         * doc/gnulib-tool.texi (Initial import): Update paragraph about
18084         separate gnulib.mk.
18085
18086 2010-09-04  Bruno Haible  <bruno@clisp.org>
18087
18088         gnulib-tool: Don't talk about CVS any more.
18089         * gnulib-tool (func_usage, func_import): Write "version control"
18090         instead of CVS.
18091
18092 2010-09-04  Jim Meyering  <meyering@redhat.com>
18093
18094         maint.mk: avoid obscure sc_copyright_check failure in coreutils
18095         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
18096         false positives (whose names may be ill-chosen) when searching
18097         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
18098         would cause a false-positive.
18099
18100         avoid coreutils "make distcheck" failure
18101         Coreutils tests with an absolute build directory name that contains
18102         a space.  Not quoting this directory name caused a failure.
18103         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
18104         * tests/test-vc-list-files-cvs.sh: Likewise.
18105
18106 2010-09-04  Bruno Haible  <bruno@clisp.org>
18107
18108         gnulib-tool: Avoid error when run in a package without Makefile.am.
18109         * gnulib-tool: When collecting the m4dirs in a package that does not
18110         have a Makefile.am, eliminate those directories that contain no
18111         gnulib-cache.m4. Fix expression that counts these directories.
18112
18113 2010-09-04  Bruno Haible  <bruno@clisp.org>
18114
18115         update-copyright test: Improve output when perl is missing or too old.
18116         * tests/test-update-copyright.sh: Move test of Perl version down after
18117         the test whether Perl exists. Provide an explanation relating Perl's
18118         error message to Automake's SKIP: message.
18119
18120 2010-09-04  Bruno Haible  <bruno@clisp.org>
18121
18122         Don't augment PATH in TESTS_ENVIRONMENT.
18123         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
18124         set abs_aux_dir instead of augmenting PATH.
18125         * modules/vc-list-files-tests (Makefile.am): Likewise.
18126         * tests/test-update-copyright.sh: Augment PATH here.
18127         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
18128         path_prepend_.
18129         * tests/test-vc-list-files-git.sh: Likewise.
18130
18131 2010-09-04  Jim Meyering  <meyering@redhat.com>
18132
18133         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
18134         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
18135
18136 2010-09-04  Bruno Haible  <bruno@clisp.org>
18137
18138         strdup: Fix compilation error in C++ mode.
18139         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
18140         the macro.
18141
18142 2010-09-04  Bruno Haible  <bruno@clisp.org>
18143
18144         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
18145         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
18146         macro into a function.
18147         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18148
18149 2010-09-04  Bruno Haible  <bruno@clisp.org>
18150
18151         Set PATH_SEPARATOR the same way autoconf does.
18152         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
18153         the value of PATH_SEPARATOR the same way autoconf-generated configure
18154         scripts do.
18155         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
18156         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18157
18158 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18159
18160         Set PATH_SEPARATOR the same way autoconf does.
18161         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
18162         the same way autoconf-generated configure scripts do.
18163         * posix-modules: Likewise.
18164
18165 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18166
18167         hash: fix safe_hasher const typo
18168         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
18169         const; otherwise, there is a type error later.
18170
18171 2010-09-02  Jim Meyering  <meyering@redhat.com>
18172
18173         test-update-copyright.sh: require perl 5.8.0
18174         * tests/test-update-copyright.sh: Require 5.8.0,
18175         which Tom G. Christensen has confirmed is adequate,
18176         while 5.6.1 is not.
18177
18178 2010-09-02  Eric Blake  <eblake@redhat.com>
18179
18180         tests: init.sh improvements for re-exec'ing with zsh
18181         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
18182         -vx through shell re-exec.
18183         Reported by Tom G. Christensen.
18184
18185         wctype: fix typo in previous commit
18186         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
18187         Reported by Ludovic Courtès.
18188
18189 2010-09-02  Jim Meyering  <meyering@redhat.com>
18190
18191         test-update-copyright.sh: skip test if Perl is too old
18192         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
18193         Reported by Tom G. Christensen.
18194
18195 2010-09-02  Bruno Haible  <bruno@clisp.org>
18196
18197         wctype: Avoid compilation error on IRIX 6.5.30.
18198         * lib/wctype.in.h (iswblank): Declare with a replacement if
18199         REPLACE_ISWBLANK is set.
18200         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
18201         declared. Set REPLACE_ISWBLANK.
18202         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
18203         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
18204         * doc/posix-headers/wctype.texi: Likewise.
18205         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18206
18207 2010-09-01  Bruno Haible  <bruno@clisp.org>
18208
18209         New module 'socketlib'.
18210         * modules/socketlib: New file.
18211         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
18212         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
18213         * modules/sockets (Depends-on): Add socketlib.
18214         Suggested by Sam Steingold <sds@gnu.org>.
18215
18216 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18217
18218         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
18219
18220         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
18221         when one needs search access to a directory but not read access.
18222         On systems where it is available, it works in some cases where
18223         O_RDONLY does not, namely on directories that are searchable but
18224         not readable, and which need only to be searchable.  If O_SEARCH
18225         is not available, fall back to the traditional method of using
18226         O_RDONLY.
18227
18228         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
18229         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
18230         when opening a directory that needs only to be searchable.
18231         * lib/chdir-safer.c (chdir_no_follow): Likewise.
18232         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
18233         * lib/openat-proc.c (openat_proc_name): Likewise.
18234         * lib/openat.c (openat_needs_fchdir): Likewise.
18235         * lib/save-cwd.c (save_cwd): Likewise.
18236         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
18237
18238 2010-08-28  Bruno Haible  <bruno@clisp.org>
18239
18240         New module 'host-cpu-c-abi'.
18241         * modules/host-cpu-c-abi: New file.
18242         * m4/host-cpu-c-abi.m4: New file, based on part of
18243         clisp/src/m4/general.m4.
18244         Requested by Sam Steingold <sds@gnu.org>.
18245
18246 2010-08-31  Eric Blake  <eblake@redhat.com>
18247         and Jim Meyering  <meyering@redhat.com>
18248
18249         hash: factor, and guard against misbehaving hasher function
18250         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
18251         of table->hasher's return value.  Also protect against a hash value
18252         so large that adding it to table->bucket results in a NULL pointer.
18253         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
18254         Use it in place of open-coded check-and-abort.
18255
18256 2010-08-30  Bruno Haible  <bruno@clisp.org>
18257
18258         hash: silence spurious clang warning
18259         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
18260         Reported by Eric Blake.
18261
18262 2010-08-30  Eric Blake  <eblake@redhat.com>
18263
18264         strstr, memmem, strcasestr: avoid leaked shell message
18265         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
18266         FreeBSD.
18267         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18268         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18269
18270         tests: silence clang warning
18271         * tests/test-malloca.c (do_allocation): Avoid dead store.
18272
18273 2010-08-29  Bruno Haible  <bruno@clisp.org>
18274
18275         gettext: Fix recent mistake.
18276         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
18277
18278 2010-08-29  Bruno Haible  <bruno@clisp.org>
18279
18280         selinux-h: Offer a --without-selinux option.
18281         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
18282         --without-selinux was specified, skip all tests and define
18283         HAVE_SELINUX_SELINUX_H to 0.
18284         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
18285         set LIB_SELINUX to empty.
18286         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
18287         gl_LIBSELINUX. If --without-selinux was specified, replace
18288         selinux/context.h.
18289         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
18290
18291 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18292             Bruno Haible  <bruno@clisp.org>
18293
18294         Make the module 'realloc-gnu' work again on AIX and OSF/1.
18295         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
18296         of HAVE_REALLOC.
18297         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
18298         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
18299         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
18300         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
18301
18302 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18303             Bruno Haible  <bruno@clisp.org>
18304
18305         Make the module 'calloc-gnu' work again on AIX and OSF/1.
18306         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
18307         HAVE_CALLOC.
18308         * lib/xmalloc.c: Update accordingly.
18309         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
18310         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
18311         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
18312
18313 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18314             Bruno Haible  <bruno@clisp.org>
18315
18316         Make the module 'malloc-gnu' work again on AIX and OSF/1.
18317         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
18318         HAVE_MALLOC.
18319         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
18320         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
18321         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
18322
18323 2010-08-29  Bruno Haible  <bruno@clisp.org>
18324
18325         Update modules list.
18326         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
18327         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
18328         (String handling <string.h>): Add astrxfrm.
18329         (File system functions): Add readlinkat.
18330
18331 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18332
18333         Tests for module 'realloc-gnu'.
18334         * modules/realloc-gnu-tests: New file.
18335         * tests/test-realloc-gnu.c: New file.
18336
18337         Tests for module 'calloc-gnu'.
18338         * modules/calloc-gnu-tests: New file.
18339         * tests/test-calloc-gnu.c: New file.
18340
18341         Tests for module 'malloc-gnu'.
18342         * modules/malloc-gnu-tests: New file.
18343         * tests/test-malloc-gnu.c: New file.
18344
18345 2010-08-28  Bruno Haible  <bruno@clisp.org>
18346
18347         Rename module 'realloc' -> 'realloc-gnu'.
18348         * modules/realloc-gnu: New file, copied from modules/realloc.
18349         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
18350         obsolete.
18351         * modules/mgetgroups (Depends-on): Update.
18352         * doc/posix-functions/realloc.texi: Update.
18353         * NEWS: Mention the change.
18354
18355         Rename module 'calloc' -> 'calloc-gnu'.
18356         * modules/calloc-gnu: New file, copied from modules/calloc.
18357         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
18358         obsolete.
18359         * doc/posix-functions/calloc.texi: Update.
18360         * NEWS: Mention the change.
18361
18362         Rename module 'malloc' -> 'malloc-gnu'.
18363         * modules/malloc-gnu: New file, copied from modules/malloc.
18364         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
18365         obsolete.
18366         * modules/argp (Depends-on): Update.
18367         * modules/regex (Depends-on): Update.
18368         * doc/posix-functions/malloc.texi: Update.
18369         * NEWS: Mention the change.
18370
18371 2010-08-28  Eric Blake  <eblake@redhat.com>
18372
18373         pread, pwrite: add missing dependency
18374         * modules/pread (Depends-on): Add extensions.
18375         * modules/pwrite (Depends-on): Likewise.
18376
18377 2010-08-28  Bruno Haible  <bruno@clisp.org>
18378
18379         unistr/u*-strchr: Fix tests dependencies.
18380         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
18381         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
18382         Reported by Ian Beckwith <ianb@erislabs.net>.
18383
18384 2010-08-28  Bruno Haible  <bruno@clisp.org>
18385
18386         read-file: Don't occupy too much unused memory.
18387         * lib/read-file.c (fread_file): Shrink the buffer at the end.
18388
18389 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
18390             Eric Blake  <eblake@redhat.com>
18391             Bruno Haible  <bruno@clisp.org>
18392
18393         read-file: Avoid memory reallocations with regular files.
18394         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
18395         (fread_file): With regular files, use the remaining length as the
18396         initial buffer size.  Check against overflow.
18397         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
18398         sys_stat.
18399
18400 2010-08-28  Bruno Haible  <bruno@clisp.org>
18401
18402         ftello: Relax license.
18403         * modules/ftello (License): Relax to LGPLv2+.
18404         Reported by Eric Blake.
18405
18406 2010-08-28  Bruno Haible  <bruno@clisp.org>
18407
18408         Avoid relocwrapper link errors due to gnulib replacement functions.
18409         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
18410         function.
18411         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18412
18413 2010-08-28  Bruno Haible  <bruno@clisp.org>
18414
18415         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
18416         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
18417         defined.
18418         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
18419         Suggested by Eric Blake.
18420
18421 2010-08-28  Bruno Haible  <bruno@clisp.org>
18422
18423         sys_socket, netdb: Ensure socklen_t gets defined.
18424         * modules/sys_socket (Depends-on): Add socklen.
18425         * modules/netdb (Depends-on): Likewise.
18426         * modules/getaddrinfo (Depends-on): Remove socklen.
18427         * modules/getsockopt (Depends-on): Likewise.
18428         * modules/setsockopt (Depends-on): Likewise.
18429         * tests/test-sys_socket.c: Check that socklen_t is defined.
18430         * tests/test-netdb.c: Likewise.
18431         * m4/socklen.m4: Update comments.
18432         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18433
18434 2010-08-27  Eric Blake  <eblake@redhat.com>
18435
18436         login_tty: add missing dependency
18437         * modules/login_tty (Depends-on): Add pty.
18438
18439 2010-08-26  Eric Blake  <eblake@redhat.com>
18440
18441         lib-symbol-versions: fix m4 quoting
18442         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
18443         format for AC_LINK_IFELSE.
18444
18445         glob: fix compile test
18446         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
18447
18448         btowc: fix missing file
18449         * modules/btowc (Files): Also ship locale-fr.m4.
18450
18451         lseek: fix link test
18452         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
18453         AC_LINK_IFELSE.
18454
18455         include_next: silence autoconf 2.68 warning
18456         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
18457         AC_COMPILE_IFELSE as special.
18458         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
18459         autoconf < 2.68.
18460
18461         acl: fix compilation test
18462         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
18463         AC_COMPILE_IFELSE.
18464
18465 2010-08-26  Bruno Haible  <bruno@clisp.org>
18466
18467         Modernize AC_TRY_RUN invocations.
18468         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
18469         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18470         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
18471         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
18472         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18473         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18474         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18475         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18476         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18477         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18478         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18479         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18480         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18481         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18482         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18483         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18484         gl_MBRLEN_NUL_RETVAL): Likewise.
18485         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18486         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
18487         Likewise.
18488         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18489         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18490         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18491         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18492         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18493         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18494         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
18495         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18496         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
18497         Likewise.
18498         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18499         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
18500         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18501         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18502         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18503         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18504         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18505         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
18506         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18508
18509 2010-08-26  Bruno Haible  <bruno@clisp.org>
18510
18511         Modernize AC_TRY_LINK invocations.
18512         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
18513         AC_TRY_LINK.
18514         * m4/argp.m4 (gl_ARGP): Likewise.
18515         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
18516         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18517         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
18518         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18519         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18520         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
18521         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
18522         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18523         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18524         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
18525         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18526         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
18527         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
18528         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18529         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18530         * m4/hostent.m4 (gl_HOSTENT): Likewise.
18531         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18532         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
18533         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18534         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
18535         Likewise.
18536         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
18537         Likewise.
18538         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
18539         Likewise.
18540         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18541         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
18542         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
18543         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
18544         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
18545         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18546         * m4/servent.m4 (gl_SERVENT): Likewise.
18547         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18548         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
18549         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
18550         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
18551         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18552         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18553         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18554         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18555         * modules/tsearch-tests (configure.ac): Likewise.
18556
18557 2010-08-26  Bruno Haible  <bruno@clisp.org>
18558
18559         Modernize AC_TRY_COMPILE invocations.
18560         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
18561         AC_TRY_COMPILE.
18562         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
18563         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
18564         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18565         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18566         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18567         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18568         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18569         * m4/lock.m4 (gl_LOCK): Likewise.
18570         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18571         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18572         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
18573         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18574         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18575         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
18576         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
18577         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
18578         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18579         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18580         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18581         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18582         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
18583         extraneous semicolon.
18584
18585 2010-08-26  Jim Meyering  <meyering@redhat.com>
18586
18587         stat-time: relax license LGPL
18588         * modules/stat-time (License): Change from GPL to LGPL,
18589         with consent from all contributors, for use in libguile.
18590         Requested by Ludovic Courtès.
18591
18592 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
18593
18594         poll: return immediately on POLLHUP.
18595         * lib/poll.c (poll): Always set timeout before wait_timeout is
18596         computed.
18597
18598 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18599
18600         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
18601         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
18602         rmdir ("dir/.//"), unlinkat.
18603
18604 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18605
18606         stdbool: avoid spurious failure with modern xlc
18607         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18608
18609 2010-08-24  Bruno Haible  <bruno@clisp.org>
18610
18611         getloadavg: simplify code
18612         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
18613         gl_have_func. Update comments.
18614
18615 2010-08-24  Eric Blake  <eblake@redhat.com>
18616
18617         getloadavg: don't define SVR4 on cygwin
18618         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
18619         only define SVR4 when -lkvm is required.
18620         Reported by Yaakov Selkowitz.
18621
18622 2010-08-24  Bruno Haible  <bruno@clisp.org>
18623
18624         priv-set: fix comment
18625         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
18626
18627 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18628
18629         priv-set: fix comments
18630         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
18631         to match code, as suggested by David Bartley in:
18632         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
18633
18634 2010-08-23  Eric Blake  <eblake@redhat.com>
18635
18636         stdbool: avoid rejecting clang
18637         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18638         * tests/test-stdbool.c: Enable more tests if using the system
18639         <stdbool.h> instead of the gnulib replacement.
18640         (main): Move xlc bug test to a runtime test for all compilers.
18641         Reported by Anders Kaseorg.
18642
18643         argz: fix shell quoting issue
18644         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
18645         Reported by Charles Wilson.
18646
18647 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
18648             Erik Faye-Lund <kusmabite@gmail.com>
18649
18650         poll, select: handle ERROR_BROKEN_PIPE.
18651         * lib/poll.c (win32_compute_revents): Return POLLHUP when
18652         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18653         * lib/select.c (win32_compute_revents): Do not mark a pipe
18654         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18655
18656 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
18657
18658         fts: allow compilation with C++
18659         * lib/fts_.h: Specify extern "C" linkage with C++.
18660
18661 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18662
18663         Fix gnulib-tool sed script de-commentation for AIX sed.
18664         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
18665         sed.
18666
18667 2010-08-17  Eric Blake  <eblake@redhat.com>
18668
18669         test-stddef: test for (some) offsetof bugs
18670         * tests/test-stddef.c: Enhance test to ensure correct type of
18671         offsetof.
18672         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
18673         that we are not fixing at this time.
18674
18675 2010-08-15  Bruno Haible  <bruno@clisp.org>
18676
18677         stpncpy: Allow stpncpy to be defined as a macro.
18678         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
18679         if it's already correctly declared.
18680         * lib/string.in.h (stpncpy): Undefine before redefining.
18681         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
18682
18683 2010-08-14  Bruno Haible  <bruno@clisp.org>
18684
18685         Rename module 'memxfrm' to 'amemxfrm'.
18686         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
18687         (amemxfrm): Renamed from memxfrm.
18688         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
18689         (amemxfrm): Renamed from memxfrm.
18690         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
18691         * NEWS: Mention the change.
18692         * MODULES.html.sh (String handling <string.h>): Update.
18693         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
18694         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
18695         * lib/unicase/u16-casexfrm.c: Likewise.
18696         * lib/unicase/u32-casexfrm.c: Likewise.
18697         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
18698         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
18699         * lib/uninorm/u16-normxfrm.c: Likewise.
18700         * lib/uninorm/u32-normxfrm.c: Likewise.
18701         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
18702         memxfrm.
18703         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
18704         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
18705         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
18706         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
18707         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
18708         Suggested by Paul Eggert.
18709
18710 2010-08-14  Bruno Haible  <bruno@clisp.org>
18711
18712         Tests for module 'astrxfrm'.
18713         * modules/astrxfrm-tests: New file.
18714         * tests/test-astrxfrm.c: New file.
18715
18716         New module 'astrxfrm'.
18717         * lib/astrxfrm.h: New file.
18718         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
18719         * modules/astrxfrm: New file.
18720
18721 2010-08-14  Reuben Thomas <rrt@sc3d.org>
18722
18723         regex: Tweak doc.
18724         * doc/regex.texi (Overview): Don't mention regex.c.
18725         (GNU Regular Expression Compiling): Likewise.
18726         (Match-end-of-line Operator): Mention 'not_eol'.
18727
18728 2010-08-14  Brian Gough  <bjg@gnu.org>
18729             Bruno Haible  <bruno@clisp.org>
18730
18731         git-merge-changelog: add doc relating to use with bzr and hg.
18732         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
18733
18734 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
18735
18736         pthread: fix pthread.h creation for srcdir != builddir
18737         * modules/pthread (Makefile.am): Fix the rule to work also in a
18738         non-srcdir build.
18739
18740 2010-08-13  Karl Berry  <karl@gnu.org>
18741
18742         * doc/regex.texi (Predefined Syntaxes): @smallexample.
18743         * doc/posix-*/*: force line break before @url of POSIX
18744         specifications.
18745         Suggested by Werner Lemberg.
18746
18747 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18748
18749         strtod: fix const diagnostic
18750         * lib/strtod.c (strtod): Don't assign const char * to char *,
18751         as this elicits a warning from GCC when warnings are enabled.
18752
18753 2010-08-10  Pádraig Brady <P@draigbrady.com>
18754         and Eric Blake  <eblake@redhat.com>
18755
18756         copy-acl: ignore ENOTSUP on HP-UX
18757         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
18758         so that it is available for HP-UX.
18759         * lib/copy-acl.c (qcopy_acl): Use it.
18760         Reported by Patrick M. Callahan.
18761
18762 2010-08-10  Eric Blake  <eblake@redhat.com>
18763
18764         open, chown: relax license
18765         * modules/open (License): Change to LGPLv2+, with consent by all
18766         authors, for use in augeas.
18767         * modules/chown (License): Likewise.
18768         * modules/lchown (Likewise): Likewise.
18769         Requested by Adam Stokes.
18770
18771 2010-08-09  Karl Berry  <karl@gnu.org>
18772
18773         * build-aux/ar-lib: new file, import from Automake.
18774         * config/srclist.txt: autocheck for updates.
18775
18776 2010-08-09  Eric Blake  <eblake@redhat.com>
18777
18778         readlinkat: adjust client modules
18779         * modules/areadlinkat (Depends-on): Use readlinkat, not
18780         symlinkat.
18781         * modules/areadlinkat-with-size (Depends-on): Likewise.
18782
18783         mknod: be more vocal about danger of running tests as root
18784         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
18785         root, since that is just asking for problems.
18786         Suggested by Bruno Haible, based on a report by Rainer Tammer.
18787
18788         readlinkat: split into its own module
18789         * modules/symlinkat: Split readlinkat...
18790         * modules/readlinkat: ...into separate module.
18791         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
18792         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
18793         * lib/symlinkat.c (readlinkat): Move...
18794         * lib/readlinkat.c: ...into new file.
18795         * modules/symlinkat-tests: Split readlinkat test...
18796         * modules/readlinkat-tests: ...into separate module.
18797         * tests/test-symlinkat.c: Split...
18798         * tests/test-readlinkat.c: ...into new file.
18799         * NEWS: Document the split.
18800         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18801         * lib/unistd.in.h (readlinkat): Likewise.
18802         Suggested by Bruno Haible.
18803
18804 2010-08-08  Bruno Haible  <bruno@clisp.org>
18805
18806         memxfrm: Speed up.
18807         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
18808         that usually only one call to strxfrm is necessary for each string
18809         part.
18810         Reported by Paul Eggert <eggert@cs.ucla.edu>.
18811
18812 2010-08-07  Karl Berry  <karl@gnu.org>
18813
18814         * doc/posix-headers/limits.texi,
18815         * doc/posix-functions/malloc.texi,
18816         * doc/posix-functions/strsignal.texi: missing @item.
18817         * doc/ld-version-script.texi: spurious leading i.
18818         * doc/regex.texi (Interval Operators): no commas inside @var.
18819
18820 2010-08-01  Bruno Haible  <bruno@clisp.org>
18821
18822         Integrate the regex documentation.
18823         * doc/gnulib.texi: Define 'cn' index.
18824         (Regular expressions): New a chapter that includes regex.texi and
18825         regexprops-generic.texi.
18826         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
18827         syntax.
18828
18829         Whitespace cleanup.
18830         * doc/regex.texi: Remove trailing spaces.
18831
18832         Add regex documentation.
18833         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
18834         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
18835         Written by Kathy A. Hargreaves and Karl Berry.
18836
18837 2010-08-01  Bruno Haible  <bruno@clisp.org>
18838
18839         link: Update documentation.
18840         * doc/posix-functions/link.texi: Update regarding Solaris.
18841
18842 2010-07-31  Bruno Haible  <bruno@clisp.org>
18843
18844         Update modules list.
18845         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
18846         (String handling <string.h>): Add memcmp2, memxfrm.
18847         (Container data structures): Add xlist, xsublist, xoset.
18848         (Core language properties): Add alignof, unused-parameter.
18849         (Process control, Numeric conversion functions <stdlib.h>): Renamed
18850         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
18851         (Unibyte characters <ctype.h>): New section.
18852         (String handling <string.h>): New section.
18853         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
18854         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
18855         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
18856         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
18857         tan, tanh, tanl, y0, y1, yn.
18858         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
18859         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
18860         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
18861         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
18862         unlockpt, vdprintf, vdprintf-posix.
18863         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
18864         (File system functions): Add concat-filename, sys_file, sys_ioctl,
18865         xconcat-filename.
18866         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
18867         getdtablesize, pipe2, pipe2-safer.
18868         (Security): New section.
18869         (Networking functions): Add accept4.
18870         (Signal handling): Add sigpipe.
18871         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
18872         mbmemcasecoll.
18873         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
18874         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
18875         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
18876         pipe-filter-ii.
18877         (Misc): Add argp-version-etc, login_tty, parse-duration.
18878
18879 2010-07-31  Bruno Haible  <bruno@clisp.org>
18880
18881         Improve doc in MODULES.html.
18882         * modules/linkat (Description): Add the word "function".
18883         * modules/mkfifo (Description): Likewise.
18884         * modules/mknod (Description): Likewise.
18885         * modules/remove (Description): Likewise.
18886         * modules/renameat (Description): Likewise.
18887         * modules/stat (Description): Likewise.
18888         * modules/symlink (Description): Likewise.
18889         * modules/unlink (Description): Likewise.
18890
18891 2010-07-31  Bruno Haible  <bruno@clisp.org>
18892
18893         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
18894         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
18895         option --enable/disable-c++ instead of --enable/disable-cxx.
18896         * NEWS: Mention the change.
18897
18898 2010-07-31  Bruno Haible  <bruno@clisp.org>
18899
18900         readlink, areadlink: Relax test a bit.
18901         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
18902         alternative to ENOTDIR.
18903         * tests/test-areadlink.h (test_areadlink): Likewise.
18904         Reported by Rainer Tammer.
18905
18906 2010-07-31  Bruno Haible  <bruno@clisp.org>
18907
18908         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
18909         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
18910         character, perform the search using U_STRCHR.
18911         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
18912         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
18913         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
18914         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
18915         Suggested by Paolo Bonzini.
18916
18917 2010-07-31  Bruno Haible  <bruno@clisp.org>
18918
18919         unistr/u*-strstr: Fix dependencies.
18920         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
18921         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
18922         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
18923
18924 2010-07-31  Bruno Haible  <bruno@clisp.org>
18925
18926         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
18927         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
18928         the beginning of the loop.
18929         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
18930         cases in 'switch' statement.
18931
18932         unistr/u8-strchr: Fix several bugs.
18933         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
18934         the string. When not found, return NULL, not a pointer near the end.
18935
18936         More tests for unistr/u8-strchr.
18937         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
18938         that the function does not read past the first occurrence of the byte
18939         being searched.
18940         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
18941         * tests/unistr/test-u16-strchr.c (main): New function.
18942         * tests/unistr/test-u32-strchr.c (main): New function.
18943
18944 2010-07-31  Bruno Haible  <bruno@clisp.org>
18945
18946         posix-modules: Ignore backup files of documentation files.
18947         * posix-modules: grep only through files named *.texi.
18948
18949 2010-07-31  Bruno Haible  <bruno@clisp.org>
18950
18951         symlinkat: Fix documentation.
18952         * doc/posix-functions/readlinkat.texi: Fix module name.
18953
18954 2010-07-31  Bruno Haible  <bruno@clisp.org>
18955
18956         fchownat: Replace also when chown has the trailing slash bug.
18957         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
18958         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
18959         introduced on 2010-04-10.
18960         Reported by Rainer Tammer.
18961
18962 2010-07-31  Bruno Haible  <bruno@clisp.org>
18963
18964         linkat: Work around AIX 7.1 bug.
18965         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
18966         whether linkat handles trailing slash correctly. If not, replace linkat
18967         and define LINKAT_TRAILING_SLASH_BUG.
18968         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
18969         check whether (fd1,file1) points to a directory if file1 or file2 ends
18970         in a slash. Code taken from lib/link.c.
18971         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
18972         Reported by Rainer Tammer.
18973
18974 2010-07-31  Bruno Haible  <bruno@clisp.org>
18975
18976         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18977         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18978         This disables an xlc optimization that was causing wrong test results.
18979         Reported by Rainer Tammer.
18980
18981 2010-07-31  Bruno Haible  <bruno@clisp.org>
18982
18983         iconv: Work around AIX 6.1..7.1 bug.
18984         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18985         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18986         cross-compiling, guess no on all versions of AIX.
18987         Reported by Rainer Tammer.
18988
18989 2010-07-31  Bruno Haible  <bruno@clisp.org>
18990
18991         readlink: Relax test a bit.
18992         * tests/test-readlink.h (test_readlink): Allow different errno value
18993         when readlink is called with a file name that ends in / and refers to
18994         a file.
18995         Suggested by Eric Blake.
18996         Reported by Rainer Tammer.
18997
18998 2010-07-31  Bruno Haible  <bruno@clisp.org>
18999
19000         copysign: Does not require -lm on glibc systems.
19001         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
19002         gl_COMMON_DOUBLE_MATHFUNC.
19003         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
19004
19005 2010-07-31  Bruno Haible  <bruno@clisp.org>
19006
19007         duplocale: Work around AIX 7.1 bug.
19008         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
19009         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
19010         * lib/duplocale.c (rpl_duplocale): Update comment.
19011         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
19012         Reported by Rainer Tammer.
19013
19014 2010-07-30  Bruno Haible  <bruno@clisp.org>
19015
19016         dirfd: Avoid link error on AIX 7.1.
19017         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
19018         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
19019         exist, set REPLACE_DIRFD.
19020         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
19021         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
19022         * doc/posix-functions/dirfd.texi: Update.
19023         Reported by Rainer Tammer.
19024
19025 2010-07-30  Eric Blake  <eblake@redhat.com>
19026
19027         strtod: next round of AIX fixes
19028         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
19029         exponent.
19030         * tests/test-strtod.c (main): Enhance tests.
19031         * doc/posix-functions/strtod.texi (strtod): Document next bug.
19032         Reported by Rainer Tammer.
19033
19034         futimens: fix configure check
19035         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
19036         Reported by Bruno Haible.
19037
19038 2010-07-30  Bruno Haible  <bruno@clisp.org>
19039
19040         getline: Update regarding AIX.
19041         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
19042         Reported by Rainer Tammer.
19043
19044 2010-07-30  Bruno Haible  <bruno@clisp.org>
19045
19046         wcwidth: Drop replacement on AIX 7.
19047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
19048         AIX 7.
19049         Reported by Rainer Tammer.
19050
19051 2010-07-30  Bruno Haible  <bruno@clisp.org>
19052
19053         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
19054         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
19055         a 'char *'.
19056         Reported by Rainer Tammer.
19057
19058 2010-07-30  Bruno Haible  <bruno@clisp.org>
19059
19060         unlink: Update regarding AIX.
19061         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
19062         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
19063         Reported by Rainer Tammer.
19064
19065 2010-07-30  Bruno Haible  <bruno@clisp.org>
19066
19067         symlink: Update regarding AIX.
19068         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
19069         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
19070         Reported by Rainer Tammer.
19071
19072 2010-07-30  Bruno Haible  <bruno@clisp.org>
19073
19074         strndup: Update regarding AIX.
19075         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
19076         AIX 7.
19077         Reported by Rainer Tammer.
19078
19079 2010-07-30  Bruno Haible  <bruno@clisp.org>
19080
19081         stat: Update regarding AIX.
19082         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
19083         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
19084         Reported by Rainer Tammer.
19085
19086 2010-07-30  Bruno Haible  <bruno@clisp.org>
19087
19088         truncl: Fix autoconf test.
19089         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
19090         whether truncl works.
19091         Reported by Rainer Tammer.
19092
19093 2010-07-30  Bruno Haible  <bruno@clisp.org>
19094
19095         round: Update regarding AIX.
19096         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
19097         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
19098         Reported by Rainer Tammer.
19099
19100 2010-07-30  Bruno Haible  <bruno@clisp.org>
19101
19102         rename: Update regarding AIX.
19103         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
19104         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
19105         Reported by Rainer Tammer.
19106
19107 2010-07-30  Bruno Haible  <bruno@clisp.org>
19108
19109         printf.m4: Update regarding AIX.
19110         * m4/printf.m4: Update comments regarding AIX.
19111         Reported by Rainer Tammer.
19112
19113 2010-07-30  Bruno Haible  <bruno@clisp.org>
19114
19115         iconv: Update regarding AIX.
19116         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
19117         AIX 7.
19118         Reported by Rainer Tammer.
19119
19120 2010-07-30  Bruno Haible  <bruno@clisp.org>
19121
19122         getopt: Update regarding AIX.
19123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
19124         no on AIX.
19125         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
19126         Reported by Rainer Tammer.
19127
19128 2010-07-30  Bruno Haible  <bruno@clisp.org>
19129
19130         ldexpl; Update regarding AIX.
19131         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
19132         on AIX 7.
19133         Reported by Rainer Tammer.
19134
19135 2010-07-30  Bruno Haible  <bruno@clisp.org>
19136
19137         frexpl: Update regarding AIX.
19138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
19139         on AIX 7.
19140         Reported by Rainer Tammer.
19141
19142 2010-07-30  Bruno Haible  <bruno@clisp.org>
19143
19144         open, fopen: Update regarding AIX.
19145         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
19146         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19147         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
19148         * doc/posix-functions/fopen.texi: Likewise.
19149         Reported by Rainer Tammer.
19150
19151 2010-07-30  Bruno Haible  <bruno@clisp.org>
19152
19153         chown: Update doc regarding AIX.
19154         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
19155         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
19156         Reported by Rainer Tammer.
19157
19158 2010-07-30  Eric Blake  <eblake@redhat.com>
19159
19160         strtod: fix bug in replacement function on AIX
19161         * lib/strtod.c (strtod): Special case broken "0x" parse in
19162         underlying strtod.
19163         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
19164         * doc/posix-functions/strtod.texi (strtod): Likewise.
19165         Reported by Rainer Tammer.
19166
19167 2010-07-30  Bruno Haible  <bruno@clisp.org>
19168
19169         mbrlen: Fix cross-compilation guess for AIX.
19170         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
19171         guess. Leftover from 2008-12-22.
19172
19173 2010-07-30  Bruno Haible  <bruno@clisp.org>
19174
19175         mbrtowc: Fix cross-compilation guess for AIX.
19176         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
19177         guess. Leftover from 2008-12-21.
19178
19179 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
19180
19181         init.sh: work around trap limitation of some shells
19182         * tests/init.sh (setup_): Move exit trap outside of shell function.
19183
19184 2010-07-29  Eric Blake  <eblake@redhat.com>
19185
19186         strtod: aid debugging
19187         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
19188         understanding why strtod is rejected.
19189
19190 2010-07-28  Bruno Haible  <bruno@clisp.org>
19191
19192         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
19193         * lib/unistr/u8-chr.c: Include <string.h>.
19194         * tests/unistr/test-u8-chr.c: Likewise.
19195         * tests/unistr/test-u16-chr.c: Likewise.
19196         * tests/unistr/test-u32-chr.c: Likewise.
19197         * tests/unistr/test-u8-strchr.c: Likewise.
19198         * tests/unistr/test-u16-strchr.c: Likewise.
19199         * tests/unistr/test-u32-strchr.c: Likewise.
19200         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
19201         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
19202         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
19203         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
19204
19205 2010-07-28  Bruno Haible  <bruno@clisp.org>
19206
19207         Use spaces for indentation, not tabs.
19208         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19209
19210 2010-07-27  Bruno Haible  <bruno@clisp.org>
19211
19212         mbspcasecmp: Fix function specification.
19213         * lib/string.in.h (mbspcasecmp): Fix specification comment.
19214         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
19215         Reported by Eric Blake <eblake@redhat.com>.
19216
19217 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
19218
19219         timespec: use cast and not conditional, as truncation isn't possible
19220         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
19221         instead of a conditional.  Comment about the situation in more detail.
19222         This undoes most of the 2009-10-29 patch.
19223
19224 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
19225
19226         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
19227         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
19228         * lib/unistr/u8-strchr.c: Likewise.
19229         * modules/unistr/u8-chr: Depend on memchr.
19230
19231         unistr/u*-strchr: add tests
19232         * modules/unistr/u8-strchr-tests: New file.
19233         * modules/unistr/u16-strchr-tests: New file.
19234         * modules/unistr/u32-strchr-tests: New file.
19235         * tests/unistr/test-strchr.h: New file.
19236         * tests/unistr/test-u8-strchr.c: New file.
19237         * tests/unistr/test-u16-strchr.c: New file.
19238         * tests/unistr/test-u32-strchr.c: New file.
19239
19240         unistr/u*-chr: test multibyte sequences more
19241         * tests/unistr/test-chr.h: Do complete testing of the characters in the
19242         test vector.
19243         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
19244         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
19245         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
19246
19247         unistr/u*-chr: test multibyte sequences
19248         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
19249
19250         unistr/u*-chr: prepare for multibyte tests
19251         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
19252         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
19253         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
19254         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
19255         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
19256         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
19257
19258 2010-07-18  Bruno Haible  <bruno@clisp.org>
19259
19260         unistr/u8-strchr: Optimize non-ASCII argument case.
19261         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
19262         because the first byte often matches anyway.
19263         Reported by Pádraig Brady <P@draigbrady.com>.
19264
19265 2010-07-15  Karl Berry  <karl@gnu.org>
19266
19267         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
19268
19269 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
19270
19271         getcwd: on Solaris, work better if ancestors are inaccessible
19272         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
19273         buffer and size, try again with a large buffer.  This works better
19274         on Solaris, since its getcwd succeeds even if the path to the root
19275         is inaccessible, and this is helpful in common cases such as .zfs
19276         hidden directories.  Problem reported by J Chapman Flack in
19277         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
19278         Use system getcwd if it's declared, not merely if it's partly
19279         working; use the partly-working test only to avoid needless effort
19280         if the system getcwd fails.
19281         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
19282         comment that was already obsolete and is now even more obsolete.
19283         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
19284         now might call strdup.
19285
19286 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
19287
19288         pthread: Add enough so that coreutils/src/sort.c compiles.
19289         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
19290         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
19291         gnulib. Include <sched.h> and <time.h>, as per POSIX.
19292         Include <sys/types.h>, in case it defines pthread_t.
19293         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
19294         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
19295         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
19296         (pthread_rwlockattr_t, pthread_spinlock_t):
19297         New typedefs, if HAVE_PTHREAD_T is not defined.
19298         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
19299         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
19300         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
19301         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
19302         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
19303         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
19304         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
19305         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
19306         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
19307         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
19308         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
19309         New macros.
19310         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
19311         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
19312         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
19313         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
19314         (pthread_spin_unlock): New dummy functions.
19315         (pthread_create): Return EAGAIN; don't set errno.
19316         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
19317         require AC_C_INLINE.
19318         * modules/pthread (Depends-on): Add sched, time.
19319         (pthread.h): Use AM_V_GEN.
19320
19321 2010-07-13  Bruno Haible  <bruno@clisp.org>
19322
19323         striconveh: Don't malloc memory if the result buffer is sufficient.
19324         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
19325         buffer if its size is sufficient.
19326         Reported by Ludovic Courtès <ludo@gnu.org>.
19327
19328 2010-07-13  Bruno Haible  <bruno@clisp.org>
19329
19330         strtod: Add safety check.
19331         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
19332
19333 2010-07-12  Bruno Haible  <bruno@clisp.org>
19334
19335         Unify tests that set gl_cv_func_ldexpl_no_libm.
19336         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
19337         gl_FUNC_LDEXPL.
19338         (gl_FUNC_LDEXPL): Invoke it.
19339         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19340
19341 2010-07-12  Bruno Haible  <bruno@clisp.org>
19342
19343         Unify tests that set gl_cv_func_ldexp_no_libm.
19344         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
19345         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
19346         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
19347         (configure.ac): Simply invoke gl_FUNC_LDEXP.
19348         * modules/strtod (Files): Add m4/ldexp.m4.
19349
19350 2010-07-12  Bruno Haible  <bruno@clisp.org>
19351
19352         Unify tests that set gl_cv_func_frexpl_no_libm.
19353         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
19354         gl_FUNC_FREXPL_NO_LIBM.
19355         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
19356         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19357
19358 2010-07-12  Bruno Haible  <bruno@clisp.org>
19359
19360         Unify tests that set gl_cv_func_frexp_no_libm.
19361         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
19362         gl_FUNC_FREXP_NO_LIBM.
19363         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
19364         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19365
19366 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19367
19368         memcoll: clarify sizes versus lengths, document better, and tweak perf
19369         * lib/memcoll.c (strcoll_loop, memcoll0):
19370         Improve quality of descriptive comments.  Name variables
19371         consistently as to whether they are lengths (which do not include
19372         terminating null) versus sizes (which do).
19373         * lib/xmemcoll.c (xmemcoll0): Likewise.
19374         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
19375         returned when s1size == 0; this is easier to compile and saves
19376         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
19377
19378 2010-07-12  Bruno Haible  <bruno@clisp.org>
19379
19380         Tests for module '_Exit'.
19381         * modules/_Exit-tests: New file.
19382         * tests/test-_Exit.sh: New file.
19383         * tests/test-_Exit.c: New file.
19384
19385         New module '_Exit'.
19386         * lib/stdlib.in.h (__attribute__): New macro.
19387         (_Exit): New declaration.
19388         * lib/_Exit.c: New file.
19389         * m4/_Exit.m4: New file.
19390         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
19391         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
19392         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
19393         * modules/_Exit: New file.
19394         * tests/test-stdlib-c++.cc (_Exit): Check signature.
19395         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
19396
19397 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19398
19399         strtod: make it more-accurate typically, and don't require libm
19400         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
19401         Include limits.h.  Don't include string.h.
19402         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
19403         (locale_isspace): New function, so that no casts are needed to
19404         check whether *s is a space.
19405         (ldexp): Provide an unused dummy if not available.
19406         (scale_radix_exp, parse_number, underlying_strtod): New functions.
19407         (strtod): Use them.  This implementation prefers to use the
19408         underlying strtod if available, falling back on our own code
19409         only to fix known bugs.  This is more likely to produce an
19410         accurate result.  Also, it avoids the use of libm functions.
19411         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
19412         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
19413         was absent, but it caused a test failure with coreutils.
19414         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
19415         with libm.
19416         * modules/strtod (Makefile.am, Link): libm is no longer needed.
19417         * modules/strtod-tests (Makefile.am): Likewise.
19418
19419 2010-07-11  Pádraig Brady  <P@draigBrady.com>
19420             Bruno Haible  <bruno@clisp.org>
19421
19422         unistr/u8-strchr: Optimize ASCII argument case.
19423         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
19424
19425 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
19426
19427         (x)memcoll: minor tweaks
19428         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
19429         is after the type that it qualifies.
19430         (memcoll0): Likewise.
19431         * lib/memcoll.h (memcoll0): Likewise.
19432         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
19433         * lib/xmemcoll.h (xmemcoll0): Likewise.
19434         * lib/memcoll.c (memcoll0): Correct the comment.  This function
19435         differs from memcoll in that the NUL byte is part of the argument.
19436         Omit the abort-checks, as performance is a real issue here.  Plus,
19437         the checks were wrong anyway (an off-by-one error).  Omit local
19438         variable 'diff', as it's a bit clearer that way.
19439         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
19440         no longer needed.
19441
19442 2010-07-08  Chen Guo <chenguo4@yahoo.com>
19443
19444         (x)memcoll: speedup when input is known to be NUL delimited
19445         * lib/memcoll.c: Include stdlib.
19446         (memcoll0): New function.
19447         (strcoll_loop): New function, refactored for use in both memcoll
19448         and memcoll0.
19449         * lib/memcoll.h (memcoll0): Add prototype.
19450         * lib/xmemcoll.c (xmemcoll0): New function.
19451         (collate_error): New function, refactored for use in both xmemcoll
19452         and xmemcoll0.
19453         * lib/xmemcoll.h (xmemcoll0): Add prototype.
19454         * m4/memcoll.m4: add inline invocation.
19455
19456 2010-07-06  Pádraig Brady  <P@draigBrady.com>
19457
19458         * build-aux/bootstrap: Remove any local translations
19459         from the translation project synchronization directory,
19460         so that local only translations are not distributed.
19461
19462 2010-07-04  Bruno Haible  <bruno@clisp.org>
19463
19464         fsusage: Clarify which code applies to which platforms.
19465         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
19466         platform.
19467         * lib/fsusage.c (get_fs_usage): Likewise.
19468
19469 2010-07-04  Bruno Haible  <bruno@clisp.org>
19470
19471         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
19472         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
19473         Reported by Martin Lambers <marlam@marlam.de>.
19474
19475 2010-07-04  Jim Meyering  <meyering@redhat.com>
19476
19477         hash: once again explicitly disallow insertion of NULL
19478         * lib/hash.c (hash_insert0): Reinstate just-removed test:
19479         inserting a NULL pointer cannot work with these functions.
19480         Add a comment with details.
19481         This reverts part of the 2010-07-01 commit, 5bef1a35
19482         "hash: extend module to deal with non-pointer keys".
19483
19484 2010-07-01  Bruno Haible  <bruno@clisp.org>
19485
19486         stdbool: Update doc.
19487         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
19488         Info from Christian Weisgerber <naddy@mips.inka.de>.
19489
19490 2010-07-01  Jim Meyering  <meyering@redhat.com>
19491
19492         hash: extend module to deal with non-pointer keys
19493         * lib/hash.c (hash_insert0): New interface, much like hash_insert
19494         but that allows insertion of non-pointer entries.
19495         Do not disallow an ENTRY value of NULL.
19496         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
19497         * lib/hash.h (hash_insert0): Declare.
19498
19499 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19500
19501         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
19502         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
19503         not present (i.e. with autoconf 2.59 and when using gettextize, not
19504         gnulib), require AC_GNU_SOURCE instead.
19505
19506 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
19507
19508         idpriv-drop: Fix tests.
19509         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
19510         not to the test-idpriv-droptemp program.
19511
19512 2010-06-29  Bruno Haible  <bruno@clisp.org>
19513
19514         string: Fix syntax error with g++ 2.96.
19515         * lib/string.in.h (__pure__): Remove definition.
19516         (_GL_ATTRIBUTE_PURE): New macro.
19517         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
19518         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
19519         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19520
19521 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
19522
19523         unitypes: Fix bug introduced on 2010-05-18.
19524         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
19525
19526 2010-06-22  Eric Blake  <eblake@redhat.com>
19527
19528         memmem: slight optimization
19529         * lib/str-two-way.h (critical_factorization): Update comments.
19530         Reduce work during factorization phase.
19531         Reported by Carlos Bueno <carlos@bueno.org>.
19532
19533 2010-06-21  Bruno Haible  <bruno@clisp.org>
19534
19535         Fix HAVE_CALLOC_POSIX misnomer.
19536         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
19537         !HAVE_CALLOC_POSIX.
19538         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
19539         HAVE_CALLOC_POSIX.
19540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
19541         instead of HAVE_CALLOC_POSIX.
19542         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
19543         HAVE_CALLOC_POSIX.
19544
19545         Use modern idiom for calloc() replacement.
19546         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
19547         AC_FUNC_CALLOC.
19548         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
19549         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
19550         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19551         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
19552         (gl_REPLACE_CALLOC): New macro.
19553
19554 2010-06-21  Bruno Haible  <bruno@clisp.org>
19555
19556         Fix HAVE_REALLOC_POSIX misnomer.
19557         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
19558         !HAVE_REALLOC_POSIX.
19559         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
19560         HAVE_REALLOC_POSIX.
19561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
19562         instead of HAVE_REALLOC_POSIX.
19563         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
19564         HAVE_REALLOC_POSIX.
19565
19566         Use modern idiom for realloc() replacement.
19567         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
19568         AC_FUNC_REALLOC.
19569         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
19570         Autoconf's AC_FUNC_REALLOC.
19571         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19572         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
19573         (gl_REPLACE_REALLOC): New macro.
19574         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19575
19576 2010-06-21  Bruno Haible  <bruno@clisp.org>
19577
19578         Fix HAVE_MALLOC_POSIX misnomer.
19579         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
19580         !HAVE_MALLOC_POSIX.
19581         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
19582         HAVE_MALLOC_POSIX.
19583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
19584         instead of HAVE_MALLOC_POSIX.
19585         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
19586         HAVE_MALLOC_POSIX.
19587
19588         Use modern idiom for malloc() replacement.
19589         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
19590         AC_FUNC_MALLOC.
19591         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
19592         Autoconf's AC_FUNC_MALLOC.
19593         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19594         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
19595         (gl_REPLACE_MALLOC): New macro.
19596         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19597
19598 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
19599
19600         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
19601         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
19602         This macro takes 3 arguments, not 4.
19603
19604 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
19605
19606         ipv6: fix detection under mingw
19607         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
19608         in6_addr.
19609
19610 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
19611
19612         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
19613         that strtod() works when cross-compiling to a glibc version known
19614         to work.
19615
19616 2010-06-15  Bruno Haible  <bruno@clisp.org>
19617
19618         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
19619
19620 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
19621
19622         select: Correct timeout.
19623         * lib/select.c (rpl_select): Compute wait_timeout correctly.
19624
19625 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19626
19627         git-version-gen: init shell var to avoid env var influence
19628         * build-aux/git-version-gen (v): Init shell var to empty.
19629
19630 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
19631
19632         priv-set: Don't assume that priv.h exists merely because getppriv does.
19633         See Jan Andersen's bug report about AIX 5L in
19634         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
19635         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
19636         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
19637         * lib/priv-set.h: Likewise.
19638         * tests/test-priv-set.c: Likewise.
19639
19640 2010-06-13  Bruno Haible  <bruno@clisp.org>
19641
19642         relocatable: Make it easier to test whether to install wrappers.
19643         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
19644         RELOCATABLE_VIA_WRAPPER.
19645
19646 2010-06-13  Bruno Haible  <bruno@clisp.org>
19647
19648         gnulib-tool: Display specified modules and dependencies differently.
19649         * gnulib-tool (func_show_module_list): New function.
19650         (func_import, func_create_testdir): Invoke it.
19651         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
19652
19653 2010-06-13  Bruno Haible  <bruno@clisp.org>
19654
19655         gnulib-tool: Align code of func_import and func_create_testdir.
19656         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
19657         specified_modules.
19658
19659 2010-06-12  Jim Meyering  <meyering@redhat.com>
19660
19661         test-inttostr: avoid spurious failure on Solaris 9
19662         * tests/test-inttostr.c (main): Skip the test when snprintf fails
19663         to accept "%ju".  Reported by Bruno Haible.
19664
19665 2010-06-11  Jim Meyering  <meyering@redhat.com>
19666
19667         test-sys_socket: mark variables as used more readably
19668         * tests/test-sys_socket.c (main): Mark otherwise unused variables
19669         as "used" explicitly via (void) statement casts.  This is more
19670         readable than using them in an artificial return expression.
19671         Suggestion from Bruno Haible.
19672
19673 2010-06-11  Bruno Haible  <bruno@clisp.org>
19674
19675         Avoid some more warnings from "gcc -Wwrite-strings".
19676         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
19677         to 'const char *'.
19678         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
19679         * tests/test-c-strcasestr.c (main): Likewise.
19680         * tests/test-mbscasestr1.c (main): Likewise.
19681         * tests/test-mbscasestr2.c (main): Likewise.
19682         * tests/test-memmem.c (main): Likewise.
19683         * tests/test-strstr.c (main): Likewise.
19684         * tests/test-strcasestr.c (main): Likewise.
19685
19686 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19687
19688         init.sh: change framework_failure_ to fail with status 99, not 1
19689         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
19690         automake's parallel-tests rule that this is an unexpected failure,
19691         even if the test is listed in XFAIL_TESTS.
19692
19693 2010-06-11  Jim Meyering  <meyering@redhat.com>
19694
19695         test-inttostr: avoid warnings about 4-6KB literal strings
19696         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
19697         Include "macros.h", for its definition of ASSERT.
19698         (CK): s/assert/ASSERT/
19699         * modules/inttostr-tests (Files): Add macros.h.
19700
19701         init.sh: don't use $ME_ or skip_ before they are defined
19702         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
19703         their first uses.  Also hoist their companions: warn_, fail_,
19704         framework_failure_, $stderr_fileno.  Prompted by a patch from
19705         Stefano Lattarini.
19706
19707         test-sys_socket: avoid set-but-not-used warnings from gcc
19708         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
19709         avoid warning about set-but-not-used variables.
19710
19711         test-xvasprintf: avoid 'const' discard warnings
19712         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
19713         "const" when assigning from literal strings.
19714         (test_xasprintf): Add "void" in function argument list to placate
19715         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
19716
19717         tests: avoid compilation warnings in argmatch and exclude tests...
19718         in packages that define ARGMATCH_DIE_DECL, like coreutils.
19719         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
19720         Since it always exits, declare with the "noreturn" attribute.
19721         * tests/test-argmatch.c: Likewise.
19722
19723         tests: avoid 'const' discard warnings in mbsstr tests
19724         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
19725         * tests/test-mbsstr2.c (main): Likewise.
19726
19727         test-verify: avoid warning from gcc's -Wmissing-declarations
19728         * tests/test-verify.c (function): Declare to be static.
19729
19730         test-inttostr.c: include <string.h> for use of strcmp
19731         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
19732
19733         test-linkat: avoid failed assertion on "other" architectures
19734         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
19735         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
19736         sparc: https://bugs.launchpad.net/bugs/591968
19737
19738 2010-06-11  Jim Meyering  <meyering@redhat.com>
19739
19740         printf.m4: avoid autoconf's "Expanded Before Required" warning
19741         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
19742         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
19743         autoconf warning.
19744
19745 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
19746
19747         Replacement header templates are now named with ".in", not "_".
19748         * doc/gnulib-intro.texi: Correct.
19749
19750 2010-06-10  Jim Meyering  <meyering@redhat.com>
19751
19752         inttostr-tests: depend on snprintf, not snprintf-posix
19753         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
19754         snprintf-posix, to avoid this aclocal failure:
19755           missing file gnulib-tests/vasnprintf.c
19756           configure.ac:45: error: expected source file, required through \
19757           AC_LIBSOURCES, not found
19758
19759 2010-06-10  Jim Meyering  <meyering@redhat.com>
19760
19761         inttostr: add a new function, inttostr, and tests
19762         The namesake function was not available.  The existence of the
19763         template file, inttostr.c makes its addition nontrivial.
19764         * lib/anytostr.c: Rename from inttostr.c.
19765         (anytostr): Rename from inttostr.
19766         * lib/inttostr.c: New file.
19767         * modules/inttostr (Files): Add anytostr.c.
19768         (Makefile.am): Set lib_SOURCES instead of ...
19769         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
19770         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
19771         * lib/offtostr.c: Likewise.
19772         * lib/uinttostr.c: Likewise.
19773         * lib/umaxtostr.c: Likewise.
19774         * modules/inttostr-tests: New file.
19775         * tests/test-inttostr.c: New file.  Test these functions.
19776
19777 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
19778             Bruno Haible  <bruno@clisp.org>
19779
19780         Add "Extending Gnulib" chapter to manual.
19781         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
19782         chapter.
19783         (Extending Gnulib): New chapter.
19784         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
19785         chapter.
19786
19787 2010-06-09  Bruno Haible  <bruno@clisp.org>
19788
19789         Avoid relocwrapper link errors due to gnulib replacement functions.
19790         * lib/areadlink.c: Use the system's malloc, realloc functions.
19791         (areadlink): Set errno to ENOMEM explicitly.
19792         * modules/areadlink (Depends-on): Remove malloc-posix.
19793         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19794
19795 2010-06-09  Bruno Haible  <bruno@clisp.org>
19796
19797         Avoid relocwrapper link errors due to gnulib replacement functions.
19798         * lib/canonicalize-lgpl.c: Use the system's malloc function.
19799         * lib/malloca.c: Likewise.
19800         * lib/relocatable.c: Likewise.
19801         * lib/progreloc.c: Use the system's malloc, sprintf functions.
19802         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
19803         * lib/setenv.c: Use the system's malloc, realloc functions.
19804         * lib/strerror.c: Use the system's sprintf function.
19805         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19806
19807 2010-06-04  Bruno Haible  <bruno@clisp.org>
19808
19809         Prefer documented low-level autoconf macro names.
19810         * m4/lib-link.m4: Use m4_translit instead of translit.
19811         * m4/environ.m4: Likewise.
19812         * m4/mathfunc.m4: Likewise.
19813         * m4/onceonly.m4: Likewise.
19814         * m4/stdint.m4: Likewise.
19815         Suggested by Eric Blake.
19816
19817 2010-06-04  Martin Lambers  <marlam@marlam.de>
19818             Bruno Haible  <bruno@clisp.org>
19819
19820         havelib: Allow library names with '+' characters.
19821         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19822         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
19823
19824 2010-06-09  Bruno Haible  <bruno@clisp.org>
19825
19826         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
19827         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
19828         realloc failed.
19829
19830 2010-06-08  Peter Simons  <simons@cryp.to>
19831
19832         maint.mk: make the news-check rule more configurable
19833         * top/maint.mk (news-check-lines-spec): New variable.
19834         (news-check): Use "sed -n 1,10p" in place of "head".
19835
19836 2010-06-07  Jim Meyering  <meyering@redhat.com>
19837
19838         do-release-commit-and-tag: fix typo in --help
19839         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
19840
19841         regex: avoid new dead-code warning with gcc-4.6.0
19842         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
19843         if-block containing a while-loop.  It's been unused for at least
19844         5 years.
19845
19846 2010-06-05  Bruno Haible  <bruno@clisp.org>
19847
19848         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
19849         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
19850
19851 2010-06-04  Bruno Haible  <bruno@clisp.org>
19852
19853         Update to GNU gettext 0.18.1.
19854         * modules/gettext (configure.ac): Require gettext infrastructure from
19855         version 0.18.1.
19856
19857 2010-06-03  Bruno Haible  <bruno@clisp.org>
19858
19859         Don't use AC_LIBOBJ with file names in subdirectories.
19860         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
19861         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
19862         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
19863         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
19864         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
19865         gl_LIBUNISTRING_LIBSOURCE.
19866         (Makefile.am): Augment lib_SOURCES here, conditionally.
19867         * NEWS: Drop requirement for Automake option 'subdir-objects'.
19868
19869 2010-06-03  Bruno Haible  <bruno@clisp.org>
19870
19871         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
19872         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
19873         expansion does not end with a newline.
19874         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
19875         unnecessary newline.
19876
19877 2010-06-03  Bruno Haible  <bruno@clisp.org>
19878
19879         Reduce dependencies.
19880         * tests/test-quotearg.h: New file, extracted from
19881         tests/test-quotearg.c.
19882         * tests/test-quotearg-simple.c: New file, extracted from
19883         tests/test-quotearg.c.
19884         * tests/test-quotearg.c: Don't include <ctype.h>.
19885         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
19886         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
19887         use_quote_double_quotes, use_quotearg_colon): Moved to
19888         tests/test-quotearg.h.
19889         (results_g, flag_results, custom_quotes, custom_results): Moved
19890         to tests/test-quotearg-simple.c.
19891         (main): Moved the part that does not depend on gettext to
19892         tests/test-quotearg-simple.c. Return 77 if the test cannot be
19893         performed.
19894         * modules/quotearg-simple: New file.
19895         * modules/quotearg-simple-tests: New file.
19896         * modules/quotearg (Depends-on): Add quotearg-simple.
19897         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
19898         (Files): Add tests/test-quotearg.h.
19899         Reported by Paolo Bonzini.
19900
19901 2010-06-03  Bruno Haible  <bruno@clisp.org>
19902
19903         Reduce dependencies.
19904         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
19905
19906 2010-06-03  Bruno Haible  <bruno@clisp.org>
19907
19908         time: Undefine more broken macros.
19909         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
19910         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
19911         Reported by Eric Blake.
19912
19913 2010-06-03  Bruno Haible  <bruno@clisp.org>
19914
19915         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
19916         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
19917         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
19918         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
19919         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
19920         Reported by Ludovic Courtès <ludo@gnu.org>.
19921
19922 2010-06-02  Eric Blake  <eblake@redhat.com>
19923
19924         time: work with mingw + pthreads-win32 library
19925         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
19926         if timespec is defined only in pthread.h.
19927         * modules/time (Makefile.am): Substitute it.
19928         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
19929         <pthread.h>, when needed.
19930         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
19931         from the library.
19932
19933 2010-05-31  Bruno Haible  <bruno@clisp.org>
19934
19935         Avoid expanding two macros in the wrong order.
19936         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
19937         gl_LIBUNISTRING if it is defined.
19938         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
19939         autoconf >= 2.64.
19940         Reported by Ludovic Courtès <ludo@gnu.org>.
19941
19942 2010-05-27  Jim Meyering  <meyering@redhat.com>
19943
19944         maint.mk: also prohibit "#undef" of always-defined symbols
19945         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
19946         Allow more than one space before the symbol name.
19947         (sc_prohibit_always-defined_macros): Use grep's -E, now that
19948         the regexp uses alternation.
19949
19950 2010-05-26  Eric Blake  <eblake@redhat.com>
19951
19952         maint.mk: avoid echo -e
19953         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
19954         Convert all uses of echo -* to printf.
19955         Reported by Matthias Bolte.
19956
19957 2010-05-25  Bruno Haible  <bruno@clisp.org>
19958
19959         Update to GNU gettext 0.18, part 2.
19960         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
19961         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
19962
19963 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19964
19965         Add missing include in test-pwrite.c.
19966         * tests/test-pwrite.c: Include string.h, for strcmp.
19967
19968 2010-05-24  Bruno Haible  <bruno@clisp.org>
19969
19970         * NEWS: Mention requirement for Automake option 'subdir-objects'.
19971
19972 2010-05-24  Bruno Haible  <bruno@clisp.org>
19973
19974         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19975         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19976         iconveh_error argument.
19977         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19978         U_STRCONV_TO_LOCALE.
19979         * lib/unistr/u16-strcoll.c: Likewise.
19980         * lib/unistr/u32-strcoll.c: Likewise.
19981         * modules/unistr/u8-strcoll (Depends-on): Add
19982         uniconv/u8-strconv-to-enc, localcharset. Remove
19983         uniconv/u8-strconv-to-locale.
19984         (configure.ac): Bump version number.
19985         * modules/unistr/u16-strcoll (Depends-on): Add
19986         uniconv/u16-strconv-to-enc, localcharset. Remove
19987         uniconv/u16-strconv-to-locale.
19988         (configure.ac): Bump version number.
19989         * modules/unistr/u32-strcoll (Depends-on): Add
19990         uniconv/u32-strconv-to-enc, localcharset. Remove
19991         uniconv/u32-strconv-to-locale.
19992         (configure.ac): Bump version number.
19993
19994 2010-05-24  Bruno Haible  <bruno@clisp.org>
19995
19996         Avoid a test failure on NetBSD 5.0.
19997         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19998         an iconv() bug.
19999
20000 2010-05-24  Bruno Haible  <bruno@clisp.org>
20001
20002         Adjust #include directive style.
20003         * modules/regex (Includes): Recommend to write <regex.h>.
20004
20005 2010-05-24  Bruno Haible  <bruno@clisp.org>
20006
20007         regex: Don't require alloca.
20008         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
20009         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
20010         only inside if (0).
20011
20012 2010-05-23  Jim Meyering  <meyering@redhat.com>
20013
20014         test-renameat.c: include <sys/stat.h>
20015         * tests/test-renameat.c: Include <sys/stat.h>; required for
20016         definition of S_IS* macros.
20017
20018 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
20019
20020         Update maintainer documentation for 'relocatable-prog' module.
20021         * doc/relocatable-maint.texi: Update.
20022         Comments by Bruno Haible.
20023
20024 2010-05-23  Bruno Haible  <bruno@clisp.org>
20025
20026         git-merge-changelog: Enable --split-merged-entry by default.
20027         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
20028         (usage): Don't mention this option any more.
20029         Reported by Ralf Wildenhues.
20030
20031 2010-05-23  Jim Meyering  <meyering@redhat.com>
20032
20033         test-pwrite: do not leave behind a test file named "out"
20034         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
20035         The trivial-looking use of init.sh is really necessary.
20036         It ensures that the temporary file, "out", is created in
20037         a temporary directory, and removed upon termination.
20038         * tests/test-pwrite.sh: Re-add file.
20039         * modules/pwrite-tests: Reference it.
20040
20041 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20042
20043         Fix output redirection buglet in init.sh.
20044         * tests/init.sh: Fix redirection of stderr.
20045
20046 2010-05-20  Simon Josefsson  <simon@josefsson.org>
20047
20048         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
20049
20050 2010-05-17  Simon Josefsson  <simon@josefsson.org>
20051
20052         * modules/valgrind-tests: New file.
20053         * m4/valgrind-tests.m4: New file.
20054         * doc/valgrind-tests.texi: New file.
20055         * doc/gnulib.texi (Running self-tests under valgrind): New
20056         section.
20057
20058 2010-05-19  Bruno Haible  <bruno@clisp.org>
20059
20060         Clean up dead code in recent commit.
20061         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
20062         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
20063         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
20064         Suggested by Paolo Bonzini.
20065
20066 2010-05-19  Bruno Haible  <bruno@clisp.org>
20067
20068         Avoid valgrind error reports from libunistring.
20069         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
20070         * modules/libunistring (Files): Add it.
20071         * modules/libunistring-optional (Files): Likewise.
20072
20073 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
20074             Bruno Haible  <bruno@clisp.org>
20075
20076         New module 'libunistring-optional'.
20077         * modules/libunistring-optional: New file.
20078         * m4/libunistring-base.m4: New file.
20079         * m4/libunistring-optional.m4: New file.
20080         * lib/unicase.in.h: Renamed from lib/unicase.h.
20081         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
20082         * lib/unictype.in.h: Renamed from lib/unictype.h.
20083         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
20084         * lib/uniname.in.h: Renamed from lib/uniname.h.
20085         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
20086         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
20087         * lib/unistr.in.h: Renamed from lib/unistr.h.
20088         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
20089         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
20090         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
20091         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
20092         gl_LIBUNISTRING. If the library was found, determine the installed
20093         version and set LIBUNISTRING_VERSION.
20094         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
20095         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
20096         handle a configuration option --with-included-libunistring.
20097         * modules/libunistring (Files): Add m4/absolute-header.m4.
20098         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
20099         Add m4/libunistring-base.m4.
20100         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20101         (Makefile.am): Build unicase.h from unicase.in.h.
20102         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
20103         Add m4/libunistring-base.m4.
20104         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20105         (Makefile.am): Build uniconv.h from uniconv.in.h.
20106         * modules/unictype/base (Files): Use unictype.in.h instead of
20107         unictype.h. Add m4/libunistring-base.m4.
20108         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20109         (Makefile.am): Build unictype.h from unictype.in.h.
20110         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
20111         Add m4/libunistring-base.m4.
20112         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20113         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
20114         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
20115         Add m4/libunistring-base.m4.
20116         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20117         (Makefile.am): Build uniname.h from uniname.in.h.
20118         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
20119         Add m4/libunistring-base.m4.
20120         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20121         (Makefile.am): Build uninorm.h from uninorm.in.h.
20122         * modules/unistdio/base (Files): Use unistdio.in.h instead of
20123         unistdio.h. Add m4/libunistring-base.m4.
20124         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20125         (Makefile.am): Build unistdio.h from unistdio.in.h.
20126         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
20127         Add m4/libunistring-base.m4.
20128         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20129         (Makefile.am): Build unistr.h from unistr.in.h.
20130         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
20131         Add m4/libunistring-base.m4.
20132         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20133         (Makefile.am): Build unitypes.h from unitypes.in.h.
20134         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
20135         Add m4/libunistring-base.m4.
20136         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20137         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
20138         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
20139         uniwidth.h. Add m4/libunistring-base.m4.
20140         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20141         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
20142         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
20143         instead of augmenting lib_SOURCES.
20144         * modules/unicase/empty-suffix-context: Likewise.
20145         * modules/unicase/locale-language: Likewise.
20146         * modules/unicase/tolower: Likewise.
20147         * modules/unicase/totitle: Likewise.
20148         * modules/unicase/toupper: Likewise.
20149         * modules/unicase/u8-casecmp: Likewise.
20150         * modules/unicase/u8-casecoll: Likewise.
20151         * modules/unicase/u8-casefold: Likewise.
20152         * modules/unicase/u8-casexfrm: Likewise.
20153         * modules/unicase/u8-ct-casefold: Likewise.
20154         * modules/unicase/u8-ct-tolower: Likewise.
20155         * modules/unicase/u8-ct-totitle: Likewise.
20156         * modules/unicase/u8-ct-toupper: Likewise.
20157         * modules/unicase/u8-is-cased: Likewise.
20158         * modules/unicase/u8-is-casefolded: Likewise.
20159         * modules/unicase/u8-is-lowercase: Likewise.
20160         * modules/unicase/u8-is-titlecase: Likewise.
20161         * modules/unicase/u8-is-uppercase: Likewise.
20162         * modules/unicase/u8-prefix-context: Likewise.
20163         * modules/unicase/u8-suffix-context: Likewise.
20164         * modules/unicase/u8-tolower: Likewise.
20165         * modules/unicase/u8-totitle: Likewise.
20166         * modules/unicase/u8-toupper: Likewise.
20167         * modules/unicase/u16-casecmp: Likewise.
20168         * modules/unicase/u16-casecoll: Likewise.
20169         * modules/unicase/u16-casefold: Likewise.
20170         * modules/unicase/u16-casexfrm: Likewise.
20171         * modules/unicase/u16-ct-casefold: Likewise.
20172         * modules/unicase/u16-ct-tolower: Likewise.
20173         * modules/unicase/u16-ct-totitle: Likewise.
20174         * modules/unicase/u16-ct-toupper: Likewise.
20175         * modules/unicase/u16-is-cased: Likewise.
20176         * modules/unicase/u16-is-casefolded: Likewise.
20177         * modules/unicase/u16-is-lowercase: Likewise.
20178         * modules/unicase/u16-is-titlecase: Likewise.
20179         * modules/unicase/u16-is-uppercase: Likewise.
20180         * modules/unicase/u16-prefix-context: Likewise.
20181         * modules/unicase/u16-suffix-context: Likewise.
20182         * modules/unicase/u16-tolower: Likewise.
20183         * modules/unicase/u16-totitle: Likewise.
20184         * modules/unicase/u16-toupper: Likewise.
20185         * modules/unicase/u32-casecmp: Likewise.
20186         * modules/unicase/u32-casecoll: Likewise.
20187         * modules/unicase/u32-casefold: Likewise.
20188         * modules/unicase/u32-casexfrm: Likewise.
20189         * modules/unicase/u32-ct-casefold: Likewise.
20190         * modules/unicase/u32-ct-tolower: Likewise.
20191         * modules/unicase/u32-ct-totitle: Likewise.
20192         * modules/unicase/u32-ct-toupper: Likewise.
20193         * modules/unicase/u32-is-cased: Likewise.
20194         * modules/unicase/u32-is-casefolded: Likewise.
20195         * modules/unicase/u32-is-lowercase: Likewise.
20196         * modules/unicase/u32-is-titlecase: Likewise.
20197         * modules/unicase/u32-is-uppercase: Likewise.
20198         * modules/unicase/u32-prefix-context: Likewise.
20199         * modules/unicase/u32-suffix-context: Likewise.
20200         * modules/unicase/u32-tolower: Likewise.
20201         * modules/unicase/u32-totitle: Likewise.
20202         * modules/unicase/u32-toupper: Likewise.
20203         * modules/unicase/ulc-casecmp: Likewise.
20204         * modules/unicase/ulc-casecoll: Likewise.
20205         * modules/unicase/ulc-casexfrm: Likewise.
20206         * modules/uniconv/u8-conv-from-enc: Likewise.
20207         * modules/uniconv/u8-conv-to-enc: Likewise.
20208         * modules/uniconv/u8-strconv-from-enc: Likewise.
20209         * modules/uniconv/u8-strconv-from-locale: Likewise.
20210         * modules/uniconv/u8-strconv-to-enc: Likewise.
20211         * modules/uniconv/u8-strconv-to-locale: Likewise.
20212         * modules/uniconv/u16-conv-from-enc: Likewise.
20213         * modules/uniconv/u16-conv-to-enc: Likewise.
20214         * modules/uniconv/u16-strconv-from-enc: Likewise.
20215         * modules/uniconv/u16-strconv-from-locale: Likewise.
20216         * modules/uniconv/u16-strconv-to-enc: Likewise.
20217         * modules/uniconv/u16-strconv-to-locale: Likewise.
20218         * modules/uniconv/u32-conv-from-enc: Likewise.
20219         * modules/uniconv/u32-conv-to-enc: Likewise.
20220         * modules/uniconv/u32-strconv-from-enc: Likewise.
20221         * modules/uniconv/u32-strconv-from-locale: Likewise.
20222         * modules/uniconv/u32-strconv-to-enc: Likewise.
20223         * modules/uniconv/u32-strconv-to-locale: Likewise.
20224         * modules/unictype/bidicategory-byname: Likewise.
20225         * modules/unictype/bidicategory-name: Likewise.
20226         * modules/unictype/bidicategory-of: Likewise.
20227         * modules/unictype/bidicategory-test: Likewise.
20228         * modules/unictype/block-list: Likewise.
20229         * modules/unictype/block-test: Likewise.
20230         * modules/unictype/category-C: Likewise.
20231         * modules/unictype/category-Cc: Likewise.
20232         * modules/unictype/category-Cf: Likewise.
20233         * modules/unictype/category-Cn: Likewise.
20234         * modules/unictype/category-Co: Likewise.
20235         * modules/unictype/category-Cs: Likewise.
20236         * modules/unictype/category-L: Likewise.
20237         * modules/unictype/category-Ll: Likewise.
20238         * modules/unictype/category-Lm: Likewise.
20239         * modules/unictype/category-Lo: Likewise.
20240         * modules/unictype/category-Lt: Likewise.
20241         * modules/unictype/category-Lu: Likewise.
20242         * modules/unictype/category-M: Likewise.
20243         * modules/unictype/category-Mc: Likewise.
20244         * modules/unictype/category-Me: Likewise.
20245         * modules/unictype/category-Mn: Likewise.
20246         * modules/unictype/category-N: Likewise.
20247         * modules/unictype/category-Nd: Likewise.
20248         * modules/unictype/category-Nl: Likewise.
20249         * modules/unictype/category-No: Likewise.
20250         * modules/unictype/category-P: Likewise.
20251         * modules/unictype/category-Pc: Likewise.
20252         * modules/unictype/category-Pd: Likewise.
20253         * modules/unictype/category-Pe: Likewise.
20254         * modules/unictype/category-Pf: Likewise.
20255         * modules/unictype/category-Pi: Likewise.
20256         * modules/unictype/category-Po: Likewise.
20257         * modules/unictype/category-Ps: Likewise.
20258         * modules/unictype/category-S: Likewise.
20259         * modules/unictype/category-Sc: Likewise.
20260         * modules/unictype/category-Sk: Likewise.
20261         * modules/unictype/category-Sm: Likewise.
20262         * modules/unictype/category-So: Likewise.
20263         * modules/unictype/category-Z: Likewise.
20264         * modules/unictype/category-Zl: Likewise.
20265         * modules/unictype/category-Zp: Likewise.
20266         * modules/unictype/category-Zs: Likewise.
20267         * modules/unictype/category-and: Likewise.
20268         * modules/unictype/category-and-not: Likewise.
20269         * modules/unictype/category-byname: Likewise.
20270         * modules/unictype/category-name: Likewise.
20271         * modules/unictype/category-none: Likewise.
20272         * modules/unictype/category-of: Likewise.
20273         * modules/unictype/category-or: Likewise.
20274         * modules/unictype/category-test: Likewise.
20275         * modules/unictype/combining-class: Likewise.
20276         * modules/unictype/ctype-alnum: Likewise.
20277         * modules/unictype/ctype-alpha: Likewise.
20278         * modules/unictype/ctype-blank: Likewise.
20279         * modules/unictype/ctype-cntrl: Likewise.
20280         * modules/unictype/ctype-digit: Likewise.
20281         * modules/unictype/ctype-graph: Likewise.
20282         * modules/unictype/ctype-lower: Likewise.
20283         * modules/unictype/ctype-print: Likewise.
20284         * modules/unictype/ctype-punct: Likewise.
20285         * modules/unictype/ctype-space: Likewise.
20286         * modules/unictype/ctype-upper: Likewise.
20287         * modules/unictype/ctype-xdigit: Likewise.
20288         * modules/unictype/decimal-digit: Likewise.
20289         * modules/unictype/digit: Likewise.
20290         * modules/unictype/mirror: Likewise.
20291         * modules/unictype/numeric: Likewise.
20292         * modules/unictype/property-alphabetic: Likewise.
20293         * modules/unictype/property-ascii-hex-digit: Likewise.
20294         * modules/unictype/property-bidi-arabic-digit: Likewise.
20295         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
20296         * modules/unictype/property-bidi-block-separator: Likewise.
20297         * modules/unictype/property-bidi-boundary-neutral: Likewise.
20298         * modules/unictype/property-bidi-common-separator: Likewise.
20299         * modules/unictype/property-bidi-control: Likewise.
20300         * modules/unictype/property-bidi-embedding-or-override: Likewise.
20301         * modules/unictype/property-bidi-eur-num-separator: Likewise.
20302         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
20303         * modules/unictype/property-bidi-european-digit: Likewise.
20304         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
20305         * modules/unictype/property-bidi-left-to-right: Likewise.
20306         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
20307         * modules/unictype/property-bidi-other-neutral: Likewise.
20308         * modules/unictype/property-bidi-pdf: Likewise.
20309         * modules/unictype/property-bidi-segment-separator: Likewise.
20310         * modules/unictype/property-bidi-whitespace: Likewise.
20311         * modules/unictype/property-byname: Likewise.
20312         * modules/unictype/property-combining: Likewise.
20313         * modules/unictype/property-composite: Likewise.
20314         * modules/unictype/property-currency-symbol: Likewise.
20315         * modules/unictype/property-dash: Likewise.
20316         * modules/unictype/property-decimal-digit: Likewise.
20317         * modules/unictype/property-default-ignorable-code-point: Likewise.
20318         * modules/unictype/property-deprecated: Likewise.
20319         * modules/unictype/property-diacritic: Likewise.
20320         * modules/unictype/property-extender: Likewise.
20321         * modules/unictype/property-format-control: Likewise.
20322         * modules/unictype/property-grapheme-base: Likewise.
20323         * modules/unictype/property-grapheme-extend: Likewise.
20324         * modules/unictype/property-grapheme-link: Likewise.
20325         * modules/unictype/property-hex-digit: Likewise.
20326         * modules/unictype/property-hyphen: Likewise.
20327         * modules/unictype/property-id-continue: Likewise.
20328         * modules/unictype/property-id-start: Likewise.
20329         * modules/unictype/property-ideographic: Likewise.
20330         * modules/unictype/property-ids-binary-operator: Likewise.
20331         * modules/unictype/property-ids-trinary-operator: Likewise.
20332         * modules/unictype/property-ignorable-control: Likewise.
20333         * modules/unictype/property-iso-control: Likewise.
20334         * modules/unictype/property-join-control: Likewise.
20335         * modules/unictype/property-left-of-pair: Likewise.
20336         * modules/unictype/property-line-separator: Likewise.
20337         * modules/unictype/property-logical-order-exception: Likewise.
20338         * modules/unictype/property-lowercase: Likewise.
20339         * modules/unictype/property-math: Likewise.
20340         * modules/unictype/property-non-break: Likewise.
20341         * modules/unictype/property-not-a-character: Likewise.
20342         * modules/unictype/property-numeric: Likewise.
20343         * modules/unictype/property-other-alphabetic: Likewise.
20344         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
20345         * modules/unictype/property-other-grapheme-extend: Likewise.
20346         * modules/unictype/property-other-id-continue: Likewise.
20347         * modules/unictype/property-other-id-start: Likewise.
20348         * modules/unictype/property-other-lowercase: Likewise.
20349         * modules/unictype/property-other-math: Likewise.
20350         * modules/unictype/property-other-uppercase: Likewise.
20351         * modules/unictype/property-paired-punctuation: Likewise.
20352         * modules/unictype/property-paragraph-separator: Likewise.
20353         * modules/unictype/property-pattern-syntax: Likewise.
20354         * modules/unictype/property-pattern-white-space: Likewise.
20355         * modules/unictype/property-private-use: Likewise.
20356         * modules/unictype/property-punctuation: Likewise.
20357         * modules/unictype/property-quotation-mark: Likewise.
20358         * modules/unictype/property-radical: Likewise.
20359         * modules/unictype/property-sentence-terminal: Likewise.
20360         * modules/unictype/property-soft-dotted: Likewise.
20361         * modules/unictype/property-space: Likewise.
20362         * modules/unictype/property-terminal-punctuation: Likewise.
20363         * modules/unictype/property-test: Likewise.
20364         * modules/unictype/property-titlecase: Likewise.
20365         * modules/unictype/property-unassigned-code-value: Likewise.
20366         * modules/unictype/property-unified-ideograph: Likewise.
20367         * modules/unictype/property-uppercase: Likewise.
20368         * modules/unictype/property-variation-selector: Likewise.
20369         * modules/unictype/property-white-space: Likewise.
20370         * modules/unictype/property-xid-continue: Likewise.
20371         * modules/unictype/property-xid-start: Likewise.
20372         * modules/unictype/property-zero-width: Likewise.
20373         * modules/unictype/scripts: Likewise.
20374         * modules/unictype/syntax-c-ident: Likewise.
20375         * modules/unictype/syntax-c-whitespace: Likewise.
20376         * modules/unictype/syntax-java-ident: Likewise.
20377         * modules/unictype/syntax-java-whitespace: Likewise.
20378         * modules/unilbrk/u8-possible-linebreaks: Likewise.
20379         * modules/unilbrk/u8-width-linebreaks: Likewise.
20380         * modules/unilbrk/u16-possible-linebreaks: Likewise.
20381         * modules/unilbrk/u16-width-linebreaks: Likewise.
20382         * modules/unilbrk/u32-possible-linebreaks: Likewise.
20383         * modules/unilbrk/u32-width-linebreaks: Likewise.
20384         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
20385         * modules/unilbrk/ulc-width-linebreaks: Likewise.
20386         * modules/uniname/uniname: Likewise.
20387         * modules/uninorm/canonical-decomposition: Likewise.
20388         * modules/uninorm/composition: Likewise.
20389         * modules/uninorm/decomposing-form: Likewise.
20390         * modules/uninorm/decomposition: Likewise.
20391         * modules/uninorm/filter: Likewise.
20392         * modules/uninorm/nfc: Likewise.
20393         * modules/uninorm/nfd: Likewise.
20394         * modules/uninorm/nfkc: Likewise.
20395         * modules/uninorm/nfkd: Likewise.
20396         * modules/uninorm/u8-normalize: Likewise.
20397         * modules/uninorm/u8-normcmp: Likewise.
20398         * modules/uninorm/u8-normcoll: Likewise.
20399         * modules/uninorm/u8-normxfrm: Likewise.
20400         * modules/uninorm/u16-normalize: Likewise.
20401         * modules/uninorm/u16-normcmp: Likewise.
20402         * modules/uninorm/u16-normcoll: Likewise.
20403         * modules/uninorm/u16-normxfrm: Likewise.
20404         * modules/uninorm/u32-normalize: Likewise.
20405         * modules/uninorm/u32-normcmp: Likewise.
20406         * modules/uninorm/u32-normcoll: Likewise.
20407         * modules/uninorm/u32-normxfrm: Likewise.
20408         * modules/unistdio/u8-asnprintf: Likewise.
20409         * modules/unistdio/u8-asprintf: Likewise.
20410         * modules/unistdio/u8-snprintf: Likewise.
20411         * modules/unistdio/u8-sprintf: Likewise.
20412         * modules/unistdio/u8-u8-asnprintf: Likewise.
20413         * modules/unistdio/u8-u8-asprintf: Likewise.
20414         * modules/unistdio/u8-u8-snprintf: Likewise.
20415         * modules/unistdio/u8-u8-sprintf: Likewise.
20416         * modules/unistdio/u8-u8-vasnprintf: Likewise.
20417         * modules/unistdio/u8-u8-vasprintf: Likewise.
20418         * modules/unistdio/u8-u8-vsnprintf: Likewise.
20419         * modules/unistdio/u8-u8-vsprintf: Likewise.
20420         * modules/unistdio/u8-vasnprintf: Likewise.
20421         * modules/unistdio/u8-vasprintf: Likewise.
20422         * modules/unistdio/u8-vsnprintf: Likewise.
20423         * modules/unistdio/u8-vsprintf: Likewise.
20424         * modules/unistdio/u16-asnprintf: Likewise.
20425         * modules/unistdio/u16-asprintf: Likewise.
20426         * modules/unistdio/u16-snprintf: Likewise.
20427         * modules/unistdio/u16-sprintf: Likewise.
20428         * modules/unistdio/u16-u16-asnprintf: Likewise.
20429         * modules/unistdio/u16-u16-asprintf: Likewise.
20430         * modules/unistdio/u16-u16-snprintf: Likewise.
20431         * modules/unistdio/u16-u16-sprintf: Likewise.
20432         * modules/unistdio/u16-u16-vasnprintf: Likewise.
20433         * modules/unistdio/u16-u16-vasprintf: Likewise.
20434         * modules/unistdio/u16-u16-vsnprintf: Likewise.
20435         * modules/unistdio/u16-u16-vsprintf: Likewise.
20436         * modules/unistdio/u16-vasnprintf: Likewise.
20437         * modules/unistdio/u16-vasprintf: Likewise.
20438         * modules/unistdio/u16-vsnprintf: Likewise.
20439         * modules/unistdio/u16-vsprintf: Likewise.
20440         * modules/unistdio/u32-asnprintf: Likewise.
20441         * modules/unistdio/u32-asprintf: Likewise.
20442         * modules/unistdio/u32-snprintf: Likewise.
20443         * modules/unistdio/u32-sprintf: Likewise.
20444         * modules/unistdio/u32-u32-asnprintf: Likewise.
20445         * modules/unistdio/u32-u32-asprintf: Likewise.
20446         * modules/unistdio/u32-u32-snprintf: Likewise.
20447         * modules/unistdio/u32-u32-sprintf: Likewise.
20448         * modules/unistdio/u32-u32-vasnprintf: Likewise.
20449         * modules/unistdio/u32-u32-vasprintf: Likewise.
20450         * modules/unistdio/u32-u32-vsnprintf: Likewise.
20451         * modules/unistdio/u32-u32-vsprintf: Likewise.
20452         * modules/unistdio/u32-vasnprintf: Likewise.
20453         * modules/unistdio/u32-vasprintf: Likewise.
20454         * modules/unistdio/u32-vsnprintf: Likewise.
20455         * modules/unistdio/u32-vsprintf: Likewise.
20456         * modules/unistdio/ulc-asnprintf: Likewise.
20457         * modules/unistdio/ulc-asprintf: Likewise.
20458         * modules/unistdio/ulc-fprintf: Likewise.
20459         * modules/unistdio/ulc-snprintf: Likewise.
20460         * modules/unistdio/ulc-sprintf: Likewise.
20461         * modules/unistdio/ulc-vasnprintf: Likewise.
20462         * modules/unistdio/ulc-vasprintf: Likewise.
20463         * modules/unistdio/ulc-vfprintf: Likewise.
20464         * modules/unistdio/ulc-vsnprintf: Likewise.
20465         * modules/unistdio/ulc-vsprintf: Likewise.
20466         * modules/unistr/u8-check: Likewise.
20467         * modules/unistr/u8-chr: Likewise.
20468         * modules/unistr/u8-cmp: Likewise.
20469         * modules/unistr/u8-cmp2: Likewise.
20470         * modules/unistr/u8-cpy: Likewise.
20471         * modules/unistr/u8-cpy-alloc: Likewise.
20472         * modules/unistr/u8-endswith: Likewise.
20473         * modules/unistr/u8-mblen: Likewise.
20474         * modules/unistr/u8-mbsnlen: Likewise.
20475         * modules/unistr/u8-mbtouc: Likewise.
20476         * modules/unistr/u8-mbtouc-unsafe: Likewise.
20477         * modules/unistr/u8-mbtoucr: Likewise.
20478         * modules/unistr/u8-move: Likewise.
20479         * modules/unistr/u8-next: Likewise.
20480         * modules/unistr/u8-prev: Likewise.
20481         * modules/unistr/u8-set: Likewise.
20482         * modules/unistr/u8-startswith: Likewise.
20483         * modules/unistr/u8-stpcpy: Likewise.
20484         * modules/unistr/u8-stpncpy: Likewise.
20485         * modules/unistr/u8-strcat: Likewise.
20486         * modules/unistr/u8-strchr: Likewise.
20487         * modules/unistr/u8-strcmp: Likewise.
20488         * modules/unistr/u8-strcoll: Likewise.
20489         * modules/unistr/u8-strcpy: Likewise.
20490         * modules/unistr/u8-strcspn: Likewise.
20491         * modules/unistr/u8-strdup: Likewise.
20492         * modules/unistr/u8-strlen: Likewise.
20493         * modules/unistr/u8-strmblen: Likewise.
20494         * modules/unistr/u8-strmbtouc: Likewise.
20495         * modules/unistr/u8-strncat: Likewise.
20496         * modules/unistr/u8-strncmp: Likewise.
20497         * modules/unistr/u8-strncpy: Likewise.
20498         * modules/unistr/u8-strnlen: Likewise.
20499         * modules/unistr/u8-strpbrk: Likewise.
20500         * modules/unistr/u8-strrchr: Likewise.
20501         * modules/unistr/u8-strspn: Likewise.
20502         * modules/unistr/u8-strstr: Likewise.
20503         * modules/unistr/u8-strtok: Likewise.
20504         * modules/unistr/u8-to-u16: Likewise.
20505         * modules/unistr/u8-to-u32: Likewise.
20506         * modules/unistr/u8-uctomb: Likewise.
20507         * modules/unistr/u16-check: Likewise.
20508         * modules/unistr/u16-chr: Likewise.
20509         * modules/unistr/u16-cmp: Likewise.
20510         * modules/unistr/u16-cmp2: Likewise.
20511         * modules/unistr/u16-cpy: Likewise.
20512         * modules/unistr/u16-cpy-alloc: Likewise.
20513         * modules/unistr/u16-endswith: Likewise.
20514         * modules/unistr/u16-mblen: Likewise.
20515         * modules/unistr/u16-mbsnlen: Likewise.
20516         * modules/unistr/u16-mbtouc: Likewise.
20517         * modules/unistr/u16-mbtouc-unsafe: Likewise.
20518         * modules/unistr/u16-mbtoucr: Likewise.
20519         * modules/unistr/u16-move: Likewise.
20520         * modules/unistr/u16-next: Likewise.
20521         * modules/unistr/u16-prev: Likewise.
20522         * modules/unistr/u16-set: Likewise.
20523         * modules/unistr/u16-startswith: Likewise.
20524         * modules/unistr/u16-stpcpy: Likewise.
20525         * modules/unistr/u16-stpncpy: Likewise.
20526         * modules/unistr/u16-strcat: Likewise.
20527         * modules/unistr/u16-strchr: Likewise.
20528         * modules/unistr/u16-strcmp: Likewise.
20529         * modules/unistr/u16-strcoll: Likewise.
20530         * modules/unistr/u16-strcpy: Likewise.
20531         * modules/unistr/u16-strcspn: Likewise.
20532         * modules/unistr/u16-strdup: Likewise.
20533         * modules/unistr/u16-strlen: Likewise.
20534         * modules/unistr/u16-strmblen: Likewise.
20535         * modules/unistr/u16-strmbtouc: Likewise.
20536         * modules/unistr/u16-strncat: Likewise.
20537         * modules/unistr/u16-strncmp: Likewise.
20538         * modules/unistr/u16-strncpy: Likewise.
20539         * modules/unistr/u16-strnlen: Likewise.
20540         * modules/unistr/u16-strpbrk: Likewise.
20541         * modules/unistr/u16-strrchr: Likewise.
20542         * modules/unistr/u16-strspn: Likewise.
20543         * modules/unistr/u16-strstr: Likewise.
20544         * modules/unistr/u16-strtok: Likewise.
20545         * modules/unistr/u16-to-u32: Likewise.
20546         * modules/unistr/u16-to-u8: Likewise.
20547         * modules/unistr/u16-uctomb: Likewise.
20548         * modules/unistr/u32-check: Likewise.
20549         * modules/unistr/u32-chr: Likewise.
20550         * modules/unistr/u32-cmp: Likewise.
20551         * modules/unistr/u32-cmp2: Likewise.
20552         * modules/unistr/u32-cpy: Likewise.
20553         * modules/unistr/u32-cpy-alloc: Likewise.
20554         * modules/unistr/u32-endswith: Likewise.
20555         * modules/unistr/u32-mblen: Likewise.
20556         * modules/unistr/u32-mbsnlen: Likewise.
20557         * modules/unistr/u32-mbtouc: Likewise.
20558         * modules/unistr/u32-mbtouc-unsafe: Likewise.
20559         * modules/unistr/u32-mbtoucr: Likewise.
20560         * modules/unistr/u32-move: Likewise.
20561         * modules/unistr/u32-next: Likewise.
20562         * modules/unistr/u32-prev: Likewise.
20563         * modules/unistr/u32-set: Likewise.
20564         * modules/unistr/u32-startswith: Likewise.
20565         * modules/unistr/u32-stpcpy: Likewise.
20566         * modules/unistr/u32-stpncpy: Likewise.
20567         * modules/unistr/u32-strcat: Likewise.
20568         * modules/unistr/u32-strchr: Likewise.
20569         * modules/unistr/u32-strcmp: Likewise.
20570         * modules/unistr/u32-strcoll: Likewise.
20571         * modules/unistr/u32-strcpy: Likewise.
20572         * modules/unistr/u32-strcspn: Likewise.
20573         * modules/unistr/u32-strdup: Likewise.
20574         * modules/unistr/u32-strlen: Likewise.
20575         * modules/unistr/u32-strmblen: Likewise.
20576         * modules/unistr/u32-strmbtouc: Likewise.
20577         * modules/unistr/u32-strncat: Likewise.
20578         * modules/unistr/u32-strncmp: Likewise.
20579         * modules/unistr/u32-strncpy: Likewise.
20580         * modules/unistr/u32-strnlen: Likewise.
20581         * modules/unistr/u32-strpbrk: Likewise.
20582         * modules/unistr/u32-strrchr: Likewise.
20583         * modules/unistr/u32-strspn: Likewise.
20584         * modules/unistr/u32-strstr: Likewise.
20585         * modules/unistr/u32-strtok: Likewise.
20586         * modules/unistr/u32-to-u16: Likewise.
20587         * modules/unistr/u32-to-u8: Likewise.
20588         * modules/unistr/u32-uctomb: Likewise.
20589         * modules/uniwbrk/u8-wordbreaks: Likewise.
20590         * modules/uniwbrk/u16-wordbreaks: Likewise.
20591         * modules/uniwbrk/u32-wordbreaks: Likewise.
20592         * modules/uniwbrk/ulc-wordbreaks: Likewise.
20593         * modules/uniwbrk/wordbreak-property: Likewise.
20594         * modules/uniwidth/u8-strwidth: Likewise.
20595         * modules/uniwidth/u8-width: Likewise.
20596         * modules/uniwidth/u16-strwidth: Likewise.
20597         * modules/uniwidth/u16-width: Likewise.
20598         * modules/uniwidth/u32-strwidth: Likewise.
20599         * modules/uniwidth/u32-width: Likewise.
20600         * modules/uniwidth/width: Likewise.
20601         * modules/unicase/cased-tests (Makefile.am): Link all test programs
20602         with $(LIBUNISTRING).
20603         * modules/unicase/ignorable-tests: Likewise.
20604         * modules/unicase/locale-language-tests: Likewise.
20605         * modules/unicase/tolower-tests: Likewise.
20606         * modules/unicase/totitle-tests: Likewise.
20607         * modules/unicase/toupper-tests: Likewise.
20608         * modules/unicase/u8-casecmp-tests: Likewise.
20609         * modules/unicase/u8-casecoll-tests: Likewise.
20610         * modules/unicase/u8-casefold-tests: Likewise.
20611         * modules/unicase/u8-is-cased-tests: Likewise.
20612         * modules/unicase/u8-is-casefolded-tests: Likewise.
20613         * modules/unicase/u8-is-lowercase-tests: Likewise.
20614         * modules/unicase/u8-is-titlecase-tests: Likewise.
20615         * modules/unicase/u8-is-uppercase-tests: Likewise.
20616         * modules/unicase/u8-tolower-tests: Likewise.
20617         * modules/unicase/u8-totitle-tests: Likewise.
20618         * modules/unicase/u8-toupper-tests: Likewise.
20619         * modules/unicase/u16-casecmp-tests: Likewise.
20620         * modules/unicase/u16-casecoll-tests: Likewise.
20621         * modules/unicase/u16-casefold-tests: Likewise.
20622         * modules/unicase/u16-is-cased-tests: Likewise.
20623         * modules/unicase/u16-is-casefolded-tests: Likewise.
20624         * modules/unicase/u16-is-lowercase-tests: Likewise.
20625         * modules/unicase/u16-is-titlecase-tests: Likewise.
20626         * modules/unicase/u16-is-uppercase-tests: Likewise.
20627         * modules/unicase/u16-tolower-tests: Likewise.
20628         * modules/unicase/u16-totitle-tests: Likewise.
20629         * modules/unicase/u16-toupper-tests: Likewise.
20630         * modules/unicase/u32-casecmp-tests: Likewise.
20631         * modules/unicase/u32-casecoll-tests: Likewise.
20632         * modules/unicase/u32-casefold-tests: Likewise.
20633         * modules/unicase/u32-is-cased-tests: Likewise.
20634         * modules/unicase/u32-is-casefolded-tests: Likewise.
20635         * modules/unicase/u32-is-lowercase-tests: Likewise.
20636         * modules/unicase/u32-is-titlecase-tests: Likewise.
20637         * modules/unicase/u32-is-uppercase-tests: Likewise.
20638         * modules/unicase/u32-tolower-tests: Likewise.
20639         * modules/unicase/u32-totitle-tests: Likewise.
20640         * modules/unicase/u32-toupper-tests: Likewise.
20641         * modules/unicase/ulc-casecmp-tests: Likewise.
20642         * modules/unicase/ulc-casecoll-tests: Likewise.
20643         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
20644         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
20645         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
20646         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
20647         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
20648         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
20649         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
20650         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
20651         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
20652         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
20653         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
20654         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
20655         * modules/unictype/bidicategory-byname-tests: Likewise.
20656         * modules/unictype/bidicategory-name-tests: Likewise.
20657         * modules/unictype/bidicategory-of-tests: Likewise.
20658         * modules/unictype/bidicategory-test-tests: Likewise.
20659         * modules/unictype/block-list-tests: Likewise.
20660         * modules/unictype/block-of-tests: Likewise.
20661         * modules/unictype/block-test-tests: Likewise.
20662         * modules/unictype/category-C-tests: Likewise.
20663         * modules/unictype/category-Cc-tests: Likewise.
20664         * modules/unictype/category-Cf-tests: Likewise.
20665         * modules/unictype/category-Cn-tests: Likewise.
20666         * modules/unictype/category-Co-tests: Likewise.
20667         * modules/unictype/category-Cs-tests: Likewise.
20668         * modules/unictype/category-L-tests: Likewise.
20669         * modules/unictype/category-Ll-tests: Likewise.
20670         * modules/unictype/category-Lm-tests: Likewise.
20671         * modules/unictype/category-Lo-tests: Likewise.
20672         * modules/unictype/category-Lt-tests: Likewise.
20673         * modules/unictype/category-Lu-tests: Likewise.
20674         * modules/unictype/category-M-tests: Likewise.
20675         * modules/unictype/category-Mc-tests: Likewise.
20676         * modules/unictype/category-Me-tests: Likewise.
20677         * modules/unictype/category-Mn-tests: Likewise.
20678         * modules/unictype/category-N-tests: Likewise.
20679         * modules/unictype/category-Nd-tests: Likewise.
20680         * modules/unictype/category-Nl-tests: Likewise.
20681         * modules/unictype/category-No-tests: Likewise.
20682         * modules/unictype/category-P-tests: Likewise.
20683         * modules/unictype/category-Pc-tests: Likewise.
20684         * modules/unictype/category-Pd-tests: Likewise.
20685         * modules/unictype/category-Pe-tests: Likewise.
20686         * modules/unictype/category-Pf-tests: Likewise.
20687         * modules/unictype/category-Pi-tests: Likewise.
20688         * modules/unictype/category-Po-tests: Likewise.
20689         * modules/unictype/category-Ps-tests: Likewise.
20690         * modules/unictype/category-S-tests: Likewise.
20691         * modules/unictype/category-Sc-tests: Likewise.
20692         * modules/unictype/category-Sk-tests: Likewise.
20693         * modules/unictype/category-Sm-tests: Likewise.
20694         * modules/unictype/category-So-tests: Likewise.
20695         * modules/unictype/category-Z-tests: Likewise.
20696         * modules/unictype/category-Zl-tests: Likewise.
20697         * modules/unictype/category-Zp-tests: Likewise.
20698         * modules/unictype/category-Zs-tests: Likewise.
20699         * modules/unictype/category-and-not-tests: Likewise.
20700         * modules/unictype/category-and-tests: Likewise.
20701         * modules/unictype/category-byname-tests: Likewise.
20702         * modules/unictype/category-name-tests: Likewise.
20703         * modules/unictype/category-none-tests: Likewise.
20704         * modules/unictype/category-of-tests: Likewise.
20705         * modules/unictype/category-or-tests: Likewise.
20706         * modules/unictype/category-test-withtable-tests: Likewise.
20707         * modules/unictype/combining-class-tests: Likewise.
20708         * modules/unictype/ctype-alnum-tests: Likewise.
20709         * modules/unictype/ctype-alpha-tests: Likewise.
20710         * modules/unictype/ctype-blank-tests: Likewise.
20711         * modules/unictype/ctype-cntrl-tests: Likewise.
20712         * modules/unictype/ctype-digit-tests: Likewise.
20713         * modules/unictype/ctype-graph-tests: Likewise.
20714         * modules/unictype/ctype-lower-tests: Likewise.
20715         * modules/unictype/ctype-print-tests: Likewise.
20716         * modules/unictype/ctype-punct-tests: Likewise.
20717         * modules/unictype/ctype-space-tests: Likewise.
20718         * modules/unictype/ctype-upper-tests: Likewise.
20719         * modules/unictype/ctype-xdigit-tests: Likewise.
20720         * modules/unictype/decimal-digit-tests: Likewise.
20721         * modules/unictype/digit-tests: Likewise.
20722         * modules/unictype/mirror-tests: Likewise.
20723         * modules/unictype/numeric-tests: Likewise.
20724         * modules/unictype/property-alphabetic-tests: Likewise.
20725         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
20726         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
20727         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
20728         * modules/unictype/property-bidi-block-separator-tests: Likewise.
20729         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
20730         * modules/unictype/property-bidi-common-separator-tests: Likewise.
20731         * modules/unictype/property-bidi-control-tests: Likewise.
20732         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
20733         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
20734         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
20735         * modules/unictype/property-bidi-european-digit-tests: Likewise.
20736         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
20737         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
20738         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
20739         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
20740         * modules/unictype/property-bidi-pdf-tests: Likewise.
20741         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
20742         * modules/unictype/property-bidi-whitespace-tests: Likewise.
20743         * modules/unictype/property-byname-tests: Likewise.
20744         * modules/unictype/property-combining-tests: Likewise.
20745         * modules/unictype/property-composite-tests: Likewise.
20746         * modules/unictype/property-currency-symbol-tests: Likewise.
20747         * modules/unictype/property-dash-tests: Likewise.
20748         * modules/unictype/property-decimal-digit-tests: Likewise.
20749         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
20750         * modules/unictype/property-deprecated-tests: Likewise.
20751         * modules/unictype/property-diacritic-tests: Likewise.
20752         * modules/unictype/property-extender-tests: Likewise.
20753         * modules/unictype/property-format-control-tests: Likewise.
20754         * modules/unictype/property-grapheme-base-tests: Likewise.
20755         * modules/unictype/property-grapheme-extend-tests: Likewise.
20756         * modules/unictype/property-grapheme-link-tests: Likewise.
20757         * modules/unictype/property-hex-digit-tests: Likewise.
20758         * modules/unictype/property-hyphen-tests: Likewise.
20759         * modules/unictype/property-id-continue-tests: Likewise.
20760         * modules/unictype/property-id-start-tests: Likewise.
20761         * modules/unictype/property-ideographic-tests: Likewise.
20762         * modules/unictype/property-ids-binary-operator-tests: Likewise.
20763         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
20764         * modules/unictype/property-ignorable-control-tests: Likewise.
20765         * modules/unictype/property-iso-control-tests: Likewise.
20766         * modules/unictype/property-join-control-tests: Likewise.
20767         * modules/unictype/property-left-of-pair-tests: Likewise.
20768         * modules/unictype/property-line-separator-tests: Likewise.
20769         * modules/unictype/property-logical-order-exception-tests: Likewise.
20770         * modules/unictype/property-lowercase-tests: Likewise.
20771         * modules/unictype/property-math-tests: Likewise.
20772         * modules/unictype/property-non-break-tests: Likewise.
20773         * modules/unictype/property-not-a-character-tests: Likewise.
20774         * modules/unictype/property-numeric-tests: Likewise.
20775         * modules/unictype/property-other-alphabetic-tests: Likewise.
20776         * modules/unictype/property-other-default-ignorable-code-point-tests:
20777         Likewise.
20778         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
20779         * modules/unictype/property-other-id-continue-tests: Likewise.
20780         * modules/unictype/property-other-id-start-tests: Likewise.
20781         * modules/unictype/property-other-lowercase-tests: Likewise.
20782         * modules/unictype/property-other-math-tests: Likewise.
20783         * modules/unictype/property-other-uppercase-tests: Likewise.
20784         * modules/unictype/property-paired-punctuation-tests: Likewise.
20785         * modules/unictype/property-paragraph-separator-tests: Likewise.
20786         * modules/unictype/property-pattern-syntax-tests: Likewise.
20787         * modules/unictype/property-pattern-white-space-tests: Likewise.
20788         * modules/unictype/property-private-use-tests: Likewise.
20789         * modules/unictype/property-punctuation-tests: Likewise.
20790         * modules/unictype/property-quotation-mark-tests: Likewise.
20791         * modules/unictype/property-radical-tests: Likewise.
20792         * modules/unictype/property-sentence-terminal-tests: Likewise.
20793         * modules/unictype/property-soft-dotted-tests: Likewise.
20794         * modules/unictype/property-space-tests: Likewise.
20795         * modules/unictype/property-terminal-punctuation-tests: Likewise.
20796         * modules/unictype/property-test-tests: Likewise.
20797         * modules/unictype/property-titlecase-tests: Likewise.
20798         * modules/unictype/property-unassigned-code-value-tests: Likewise.
20799         * modules/unictype/property-unified-ideograph-tests: Likewise.
20800         * modules/unictype/property-uppercase-tests: Likewise.
20801         * modules/unictype/property-variation-selector-tests: Likewise.
20802         * modules/unictype/property-white-space-tests: Likewise.
20803         * modules/unictype/property-xid-continue-tests: Likewise.
20804         * modules/unictype/property-xid-start-tests: Likewise.
20805         * modules/unictype/property-zero-width-tests: Likewise.
20806         * modules/unictype/scripts-tests: Likewise.
20807         * modules/unictype/syntax-c-ident-tests: Likewise.
20808         * modules/unictype/syntax-c-whitespace-tests: Likewise.
20809         * modules/unictype/syntax-java-ident-tests: Likewise.
20810         * modules/unictype/syntax-java-whitespace-tests: Likewise.
20811         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
20812         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
20813         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
20814         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
20815         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
20816         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
20817         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
20818         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
20819         * modules/uniname/uniname-tests: Likewise.
20820         * modules/uninorm/canonical-decomposition-tests: Likewise.
20821         * modules/uninorm/compat-decomposition-tests: Likewise.
20822         * modules/uninorm/composition-tests: Likewise.
20823         * modules/uninorm/decomposing-form-tests: Likewise.
20824         * modules/uninorm/decomposition-tests: Likewise.
20825         * modules/uninorm/filter-tests: Likewise.
20826         * modules/uninorm/nfc-tests: Likewise.
20827         * modules/uninorm/nfd-tests: Likewise.
20828         * modules/uninorm/nfkc-tests: Likewise.
20829         * modules/uninorm/nfkd-tests: Likewise.
20830         * modules/uninorm/u8-normcmp-tests: Likewise.
20831         * modules/uninorm/u8-normcoll-tests: Likewise.
20832         * modules/uninorm/u16-normcmp-tests: Likewise.
20833         * modules/uninorm/u16-normcoll-tests: Likewise.
20834         * modules/uninorm/u32-normcmp-tests: Likewise.
20835         * modules/uninorm/u32-normcoll-tests: Likewise.
20836         * modules/unistdio/u8-asnprintf-tests: Likewise.
20837         * modules/unistdio/u8-vasnprintf-tests: Likewise.
20838         * modules/unistdio/u8-vasprintf-tests: Likewise.
20839         * modules/unistdio/u8-vsnprintf-tests: Likewise.
20840         * modules/unistdio/u8-vsprintf-tests: Likewise.
20841         * modules/unistdio/u16-asnprintf-tests: Likewise.
20842         * modules/unistdio/u16-vasnprintf-tests: Likewise.
20843         * modules/unistdio/u16-vasprintf-tests: Likewise.
20844         * modules/unistdio/u16-vsnprintf-tests: Likewise.
20845         * modules/unistdio/u16-vsprintf-tests: Likewise.
20846         * modules/unistdio/u32-asnprintf-tests: Likewise.
20847         * modules/unistdio/u32-vasnprintf-tests: Likewise.
20848         * modules/unistdio/u32-vasprintf-tests: Likewise.
20849         * modules/unistdio/u32-vsnprintf-tests: Likewise.
20850         * modules/unistdio/u32-vsprintf-tests: Likewise.
20851         * modules/unistdio/ulc-asnprintf-tests: Likewise.
20852         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
20853         * modules/unistdio/ulc-vasprintf-tests: Likewise.
20854         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
20855         * modules/unistdio/ulc-vsprintf-tests: Likewise.
20856         * modules/unistr/u8-check-tests: Likewise.
20857         * modules/unistr/u8-chr-tests: Likewise.
20858         * modules/unistr/u8-cmp-tests: Likewise.
20859         * modules/unistr/u8-cmp2-tests: Likewise.
20860         * modules/unistr/u8-cpy-alloc-tests: Likewise.
20861         * modules/unistr/u8-cpy-tests: Likewise.
20862         * modules/unistr/u8-mblen-tests: Likewise.
20863         * modules/unistr/u8-mbsnlen-tests: Likewise.
20864         * modules/unistr/u8-mbtouc-tests: Likewise.
20865         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
20866         * modules/unistr/u8-mbtoucr-tests: Likewise.
20867         * modules/unistr/u8-move-tests: Likewise.
20868         * modules/unistr/u8-next-tests: Likewise.
20869         * modules/unistr/u8-prev-tests: Likewise.
20870         * modules/unistr/u8-set-tests: Likewise.
20871         * modules/unistr/u8-stpcpy-tests: Likewise.
20872         * modules/unistr/u8-stpncpy-tests: Likewise.
20873         * modules/unistr/u8-strcat-tests: Likewise.
20874         * modules/unistr/u8-strcmp-tests: Likewise.
20875         * modules/unistr/u8-strcoll-tests: Likewise.
20876         * modules/unistr/u8-strcpy-tests: Likewise.
20877         * modules/unistr/u8-strdup-tests: Likewise.
20878         * modules/unistr/u8-strlen-tests: Likewise.
20879         * modules/unistr/u8-strmblen-tests: Likewise.
20880         * modules/unistr/u8-strmbtouc-tests: Likewise.
20881         * modules/unistr/u8-strncat-tests: Likewise.
20882         * modules/unistr/u8-strncmp-tests: Likewise.
20883         * modules/unistr/u8-strncpy-tests: Likewise.
20884         * modules/unistr/u8-strnlen-tests: Likewise.
20885         * modules/unistr/u8-to-u16-tests: Likewise.
20886         * modules/unistr/u8-to-u32-tests: Likewise.
20887         * modules/unistr/u8-uctomb-tests: Likewise.
20888         * modules/unistr/u16-check-tests: Likewise.
20889         * modules/unistr/u16-chr-tests: Likewise.
20890         * modules/unistr/u16-cmp-tests: Likewise.
20891         * modules/unistr/u16-cmp2-tests: Likewise.
20892         * modules/unistr/u16-cpy-alloc-tests: Likewise.
20893         * modules/unistr/u16-cpy-tests: Likewise.
20894         * modules/unistr/u16-mblen-tests: Likewise.
20895         * modules/unistr/u16-mbsnlen-tests: Likewise.
20896         * modules/unistr/u16-mbtouc-tests: Likewise.
20897         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
20898         * modules/unistr/u16-mbtoucr-tests: Likewise.
20899         * modules/unistr/u16-move-tests: Likewise.
20900         * modules/unistr/u16-next-tests: Likewise.
20901         * modules/unistr/u16-prev-tests: Likewise.
20902         * modules/unistr/u16-set-tests: Likewise.
20903         * modules/unistr/u16-stpcpy-tests: Likewise.
20904         * modules/unistr/u16-stpncpy-tests: Likewise.
20905         * modules/unistr/u16-strcat-tests: Likewise.
20906         * modules/unistr/u16-strcmp-tests: Likewise.
20907         * modules/unistr/u16-strcoll-tests: Likewise.
20908         * modules/unistr/u16-strcpy-tests: Likewise.
20909         * modules/unistr/u16-strdup-tests: Likewise.
20910         * modules/unistr/u16-strlen-tests: Likewise.
20911         * modules/unistr/u16-strmblen-tests: Likewise.
20912         * modules/unistr/u16-strmbtouc-tests: Likewise.
20913         * modules/unistr/u16-strncat-tests: Likewise.
20914         * modules/unistr/u16-strncmp-tests: Likewise.
20915         * modules/unistr/u16-strncpy-tests: Likewise.
20916         * modules/unistr/u16-strnlen-tests: Likewise.
20917         * modules/unistr/u16-to-u32-tests: Likewise.
20918         * modules/unistr/u16-to-u8-tests: Likewise.
20919         * modules/unistr/u16-uctomb-tests: Likewise.
20920         * modules/unistr/u32-check-tests: Likewise.
20921         * modules/unistr/u32-chr-tests: Likewise.
20922         * modules/unistr/u32-cmp-tests: Likewise.
20923         * modules/unistr/u32-cmp2-tests: Likewise.
20924         * modules/unistr/u32-cpy-alloc-tests: Likewise.
20925         * modules/unistr/u32-cpy-tests: Likewise.
20926         * modules/unistr/u32-mblen-tests: Likewise.
20927         * modules/unistr/u32-mbsnlen-tests: Likewise.
20928         * modules/unistr/u32-mbtouc-tests: Likewise.
20929         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
20930         * modules/unistr/u32-mbtoucr-tests: Likewise.
20931         * modules/unistr/u32-move-tests: Likewise.
20932         * modules/unistr/u32-next-tests: Likewise.
20933         * modules/unistr/u32-prev-tests: Likewise.
20934         * modules/unistr/u32-set-tests: Likewise.
20935         * modules/unistr/u32-stpcpy-tests: Likewise.
20936         * modules/unistr/u32-stpncpy-tests: Likewise.
20937         * modules/unistr/u32-strcat-tests: Likewise.
20938         * modules/unistr/u32-strcmp-tests: Likewise.
20939         * modules/unistr/u32-strcoll-tests: Likewise.
20940         * modules/unistr/u32-strcpy-tests: Likewise.
20941         * modules/unistr/u32-strdup-tests: Likewise.
20942         * modules/unistr/u32-strlen-tests: Likewise.
20943         * modules/unistr/u32-strmblen-tests: Likewise.
20944         * modules/unistr/u32-strmbtouc-tests: Likewise.
20945         * modules/unistr/u32-strncat-tests: Likewise.
20946         * modules/unistr/u32-strncmp-tests: Likewise.
20947         * modules/unistr/u32-strncpy-tests: Likewise.
20948         * modules/unistr/u32-strnlen-tests: Likewise.
20949         * modules/unistr/u32-to-u16-tests: Likewise.
20950         * modules/unistr/u32-to-u8-tests: Likewise.
20951         * modules/unistr/u32-uctomb-tests: Likewise.
20952         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
20953         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
20954         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
20955         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
20956         * modules/uniwidth/u8-strwidth-tests: Likewise.
20957         * modules/uniwidth/u8-width-tests: Likewise.
20958         * modules/uniwidth/u16-strwidth-tests: Likewise.
20959         * modules/uniwidth/u16-width-tests: Likewise.
20960         * modules/uniwidth/u32-strwidth-tests: Likewise.
20961         * modules/uniwidth/u32-width-tests: Likewise.
20962         * modules/uniwidth/width-tests: Likewise.
20963
20964 2010-05-18  Richard Jones  <rjones@redhat.com>
20965
20966         doc: users.txt: list hivex
20967         * users.txt: Add hivex.
20968
20969 2010-05-18  Richard Jones  <rjones@redhat.com>
20970
20971         doc: users.txt: list febootstrap
20972         * users.txt: Add febootstrap.
20973
20974 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20975
20976         bootstrap: fix an error when gnulib is not used as a git submodule
20977         * build-aux/bootstrap (gnulib_path): If its length is zero then
20978         assign "gnulib" to it.
20979         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20980
20981 2010-05-16  Bruno Haible  <bruno@clisp.org>
20982
20983         Avoid autoconf warnings about AM_ICONV.
20984         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20985         2.64.
20986
20987 2010-05-16  Bruno Haible  <bruno@clisp.org>
20988
20989         absolute-header: Make the macro usable in more situations.
20990         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20991         from gl_ABSOLUTE_HEADER.
20992         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20993
20994 2010-05-16  James Youngman  <jay@gnu.org>
20995
20996         doc: update users.txt
20997         * users.txt: Add CSSC.
20998
20999 2010-05-16  Jim Meyering  <meyering@redhat.com>
21000
21001         init.sh: fix an error in the previous change; add more comments
21002         * tests/init.sh: Compare exit code in loop against 9, not 2.
21003         Patch by Bruno Haible.
21004         Make the two tests more similar by adding an empty "then" clause.
21005         Add comments.
21006
21007         init.sh: avoid unnecessary shell re-exec
21008         * tests/init.sh: Improve the re-exec-required check to first test the
21009         current shell.  If it passes the test, do not search for a shell that
21010         does pass, and do not re-exec.  This test is particularly contorted to
21011         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
21012         of $(...) evokes a syntax error and causes immediate shell exit with
21013         status 2.  Bruno Haible reported that the re-exec made it impossible
21014         to single-step through any init.sh-using script.
21015
21016 2010-05-16  Bruno Haible  <bruno@clisp.org>
21017
21018         Fix collision between gnulib's and libintl's printf replacements.
21019         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
21020         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
21021         (printf): When using GNU C, map the __printf__ function to rpl_printf
21022         via __asm__. When not using GNU C, define rpl_printf instead of
21023         __printf__.
21024         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
21025         commit.
21026         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
21027         commit.
21028         * m4/asm-underscore.m4: New file.
21029         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
21030         * modules/stdio (Files): Add m4/asm-underscore.m4.
21031         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
21032         Reported by Ben Pfaff.
21033
21034 2010-05-16  Bruno Haible  <bruno@clisp.org>
21035
21036         verify: Avoid skipping the test on openSUSE 11.0.
21037         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
21038
21039 2010-05-13  Bruno Haible  <bruno@clisp.org>
21040
21041         Avoid useless warnings from G++.
21042         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
21043         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
21044         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21045
21046 2010-05-11  Jim Meyering  <meyering@redhat.com>
21047
21048         maint.mk: tweak preceding change
21049         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
21050         regexps tighter by anchoring at EOL, and make the new group "shy"
21051         for slightly decreased overhead.
21052
21053 2010-05-11  Eric Blake  <eblake@redhat.com>
21054
21055         maint.mk: gnulib doesn't guarantee NSIG
21056         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
21057
21058 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21059
21060         test-pwrite.c: Remove unused variable declaration.
21061         * tests/test-pwrite.c (main): Remove read_buf declaration.
21062
21063         Remove useless test-pwrite.sh file.
21064         * tests/test-pwrite.sh: Delete file.
21065         * modules/pwrite-tests: Remove references.
21066         Reported by Bruno Haible.
21067
21068 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21069
21070         init.sh: fix a typo
21071         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
21072
21073 2010-05-10  Jim Meyering  <meyering@redhat.com>
21074
21075         maint.mk: avoid using a temporary file in the always-defined-macros check
21076         * top/maint.mk (.re-defmac): Remove rule.
21077         (gl_trap_): Remove definition.
21078         (sc_prohibit_always-defined_macros): Rewrite not to create and
21079         depend on a temporary file.  Instead, depend on GNU grep's ability
21080         to read a list of regular expressions from stdin when given "-f -".
21081
21082 2010-05-09  Bruno Haible  <bruno@clisp.org>
21083
21084         Update to GNU gettext 0.18, part 1.
21085         * m4/gettext.m4: Update to GNU gettext 0.18.
21086         * m4/intl.m4: Likewise.
21087         * m4/po.m4: Likewise.
21088         * modules/gettext (Files): Add m4/fcntl-o.m4.
21089         (configure.ac): Require gettext infrastructure from version 0.18.
21090
21091 2010-05-09  Jim Meyering  <meyering@redhat.com>
21092
21093         init.sh: enable MALLOC_PERTURB_
21094         * tests/init.sh: Enable glibc's malloc-perturbing option.
21095
21096         maint.mk: improve sc_cross_check_PATH_usage_in_tests
21097         With my recent change in init.sh from the two-line form:
21098             -#   : ${srcdir=.}
21099             -#   . "$srcdir/init.sh"; path_prepend_ .
21100             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
21101         I noticed that using the one-line form would cause this test
21102         to fail with a false-positive, or to stop working altogether,
21103         depending on whether help-version changed or all the tests did.
21104         * top/maint.mk (_hv_regex): Remove this definition.
21105         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
21106         (_hv_regex_strong): Use a stronger regex to check for conformance.
21107         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
21108         Give a separate diagnostic for lack of conforming use.
21109
21110         maint.mk: prohibit definition of symbols defined by gnulib
21111         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
21112         definition of symbols defined by gnulib.
21113
21114 2010-05-09  Bruno Haible  <bruno@clisp.org>
21115
21116         acl: Avoid test failure on Cygwin-hosted mingw.
21117         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
21118
21119 2010-05-09  Bruno Haible  <bruno@clisp.org>
21120
21121         error: Use system's fcntl function.
21122         * lib/error.c (fcntl): Undefine.
21123
21124 2010-05-09  Jim Meyering  <meyering@redhat.com>
21125
21126         verify: adjust formatting to be more consistent
21127         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
21128         argument-list '('s, and after one comma.
21129
21130 2010-05-09  Bruno Haible  <bruno@clisp.org>
21131
21132         error: More reliable output on mingw.
21133         * lib/error.c: Include <windows.h>.
21134         (is_open): New function.
21135         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
21136         defined.
21137
21138 2010-05-09  Bruno Haible  <bruno@clisp.org>
21139
21140         vasnprintf: Fix syntax errors in libintl build on mingw.
21141         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
21142         pad_ourselves and prec_ourselves after use.
21143
21144 2010-05-08  Bruno Haible  <bruno@clisp.org>
21145
21146         * lib/config.charset: Update comments for Cygwin 1.7.
21147         * lib/localcharset.c: Likewise.
21148
21149 2010-05-07  Jim Meyering  <meyering@redhat.com>
21150
21151         init.sh: improve comments
21152         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
21153         . "${srcdir=.}/init.sh"; path_prepend_ .
21154         Add a note about path_prepend_ and the alternative of using
21155         TESTS_ENVIRONMENT.
21156
21157 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
21158
21159         exclude: Unescape hashed patterns in wildcard mode.
21160         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
21161         to the hash list.
21162         * tests/test-exclude8.sh: New test case.
21163         * modules/exclude-tests: Add new test.
21164
21165 2010-05-05  Eric Blake  <eblake@redhat.com>
21166
21167         verify: automate tests
21168         * modules/verify-tests: New module.
21169         * tests/test-verify.sh: New file.
21170         * tests/test-verify.c: Guard each negative test with a unique id.
21171         Also avoid warning about unused left hand of comma expressions.
21172
21173 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21174
21175         Further improvements to verify.h, suggested by Eric Blake.
21176         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
21177         the GL_* versions, to avoid collision with OpenGL.
21178         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
21179         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
21180         than testing merely whether it's defined.
21181
21182         Modify verify.h to pacify gcc -Wredundant_decls.
21183         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
21184         These use the prefix "GL_" since they're likely to be useful elsewhere.
21185         We may need to break them out into a different .h file.
21186         (__COUNTER__): Define to 0 if the compiler doesn't support it.
21187         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
21188         of verify_function__.
21189
21190 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21191
21192         Tests for module pwrite.
21193         * modules/pwrite-tests: New file.
21194         * tests/test-pwrite.sh: New file.
21195         * tests/test-pwrite.c: New file.
21196
21197         New module pwrite.
21198         * lib/unistd.in.h (pwrite): New declaration.
21199         * lib/pwrite.c: New file, from glibc with modifications.
21200         * m4/pwrite.m4: New file.
21201         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
21202         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
21203         REPLACE_PWRITE.
21204         * modules/pwrite: New file.
21205         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
21206         REPLACE_PWRITE.
21207         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
21208         * doc/posix-functions/pwrite.texi: Mention the new module.
21209
21210 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21211
21212         pread: Update documentation.
21213         * doc/posix-functions/pread.texi: Mention the 'pread' module.
21214
21215 2010-05-04  Eric Blake  <eblake@redhat.com>
21216
21217         docs: update cygwin progress
21218         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
21219         this bug.
21220         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
21221         Added in cygwin 1.7.2.
21222         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
21223         Likewise.
21224         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
21225         Likewise.
21226         * doc/glibc-functions/dup3.texi (dup3): Likewise.
21227         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
21228         * doc/glibc-functions/accept4.texi (accept4): Likewise.
21229         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
21230         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
21231         Mention nproc module.
21232         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
21233         bug in cygwin 1.7.5 addition.
21234         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
21235         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
21236         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
21237         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
21238         1.7.5.
21239         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
21240         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
21241         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
21242         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
21243         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
21244         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
21245         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
21246         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
21247         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
21248         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
21249         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
21250         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
21251         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
21252         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
21253         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
21254         Likewise.
21255         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
21256         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
21257         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
21258         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
21259         Likewise.
21260         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
21261         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
21262         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
21263         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
21264         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
21265         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
21266         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
21267         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
21268         Likewise.
21269         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
21270         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
21271         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
21272         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
21273         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
21274         Likewise.
21275         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
21276         Likewise.
21277         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
21278         Likewise.
21279         * doc/glibc-functions/xdrrec_endofrecord.texi
21280         (xdrrec_endofrecord): Likewise.
21281         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
21282         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
21283         Likewise.
21284         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
21285         Likewise.
21286
21287 2010-05-04  Jim Meyering  <meyering@redhat.com>
21288
21289         gendocs.sh: make its "-s FILE" option more useful
21290         * build-aux/gendocs.sh: When honoring the -s FILE option, update
21291         $PACKAGE to reflect the probably-different basename of "FILE".
21292
21293 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21294
21295         bootstrap: don't ignore download_po_files failure
21296         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
21297         failure.
21298
21299 2010-05-03  Jim Meyering  <meyering@redhat.com>
21300
21301         maint.mk: allow to pass options to gendocs.sh
21302         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
21303         (gendocs_options_): New overridable variable.
21304
21305         gnu-web-doc-update: don't ignore configure or build failure
21306         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
21307
21308         announce-gen: backslash-escape '@'s in --help output
21309         * build-aux/announce-gen: Fix syntax errors.
21310
21311         maint.mk, announce-gen: allow project-specific announcement mail headers
21312         * top/maint.mk (translation_project_): Define default.
21313         (announcement_Cc_, announcement_mail_headers_): Likewise.
21314         (announcement): Invoke announce-gen with new --mail-headers option.
21315         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
21316
21317         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
21318         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
21319         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
21320         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
21321         line in the "err2" output file when running "make check" in verbose
21322         mode (i.e., with set -x enabled).
21323
21324 2010-05-03  Bruno Haible  <bruno@clisp.org>
21325
21326         wctob: Fix for weird platforms.
21327         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
21328         argument value.
21329
21330 2010-05-03  Jim Meyering  <meyering@redhat.com>
21331
21332         maint.mk: prohibit unwarranted use of <strings.h>
21333         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
21334         strings.h in a file that does not also use strcasecmp, strncasecmp,
21335         ffs or ffsll.
21336
21337         maint.mk: remove obsolete comments
21338         * top/maint.mk: Remove stale, commented-out rules.
21339
21340 2010-05-02  Bruno Haible  <bruno@clisp.org>
21341
21342         wcwidth: Declare also when it's aliased.
21343         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
21344         macro.
21345
21346 2010-05-02  Bruno Haible  <bruno@clisp.org>
21347
21348         Fix regression from 2010-04-25.
21349         * gnulib-tool (func_modules_transitive_closure): Check the status of
21350         all modules, not only of the tests that are of the form foo-tests where
21351         foo is a module.
21352
21353 2010-05-02  Bruno Haible  <bruno@clisp.org>
21354
21355         wctob: Work around nasty Cygwin 1.7.2 bug.
21356         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
21357         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
21358
21359 2010-05-01  Bruno Haible  <bruno@clisp.org>
21360
21361         fpurge: Sharper test.
21362         * tests/test-fpurge.c (main): Add one more ftell check.
21363         * modules/fpurge-tests (Depends-on): Add ftell.
21364         Suggested by Eric Blake.
21365
21366 2010-05-01  Bruno Haible  <bruno@clisp.org>
21367
21368         ftello: Another test.
21369         * tests/test-ftello3.c: New file.
21370         * modules/ftello-tests (Files): Add it.
21371         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21372         MOSTLYCLEANFILES.
21373
21374         ftell: Another test.
21375         * tests/test-ftell3.c: New file.
21376         * modules/ftell-tests (Files): Add it.
21377         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21378         MOSTLYCLEANFILES.
21379
21380 2010-05-01  Bruno Haible  <bruno@clisp.org>
21381
21382         ftell, ftello: Work around Solaris bug.
21383         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
21384         * lib/ftello.c: Include stdio-impl.h.
21385         (ftello): On Solaris, when _IOWRT is set, compute the result without
21386         looking at _IOREAD.
21387         * modules/ftello (Files): Add lib/stdio-impl.h.
21388         * doc/posix-functions/ftell.texi: Mention Solaris bug.
21389         * doc/posix-functions/ftello.texi: Likewise.
21390         Reported by Eric Blake.
21391
21392 2010-05-01  Bruno Haible  <bruno@clisp.org>
21393
21394         freading: Adapt to special meaning of _IOREAD flag on Solaris.
21395         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
21396         the _IOWRT flag is also set.
21397
21398 2010-05-01  Bruno Haible  <bruno@clisp.org>
21399
21400         Fix doc about a HP-UX stdio bug.
21401         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
21402         * doc/posix-functions/ftello.texi: Likewise.
21403
21404 2010-05-01  Bruno Haible  <bruno@clisp.org>
21405
21406         lseek test: Fix failure on Solaris.
21407         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
21408         output.
21409
21410 2010-04-30  Jim Meyering  <meyering@redhat.com>
21411
21412         bootstrap: don't ignore failure to generate po*/Makevars
21413         * build-aux/bootstrap (with_gettext): Don't ignore failure
21414         to create po/Makevars or runtime-po/Makevars.
21415
21416 2010-04-29  Eric Blake  <eblake@redhat.com>
21417
21418         headers: relax license to LGPLv2+
21419         * modules/fcntl-h (License): Relax license.
21420         * modules/getopt-posix (License): Likewise.
21421         * modules/locale (License): Likewise.
21422         * modules/math (License): Likewise.
21423         * modules/pty (License): Likewise.
21424         * modules/sched (License): Likewise.
21425         * modules/search (License): Likewise.
21426         * modules/spawn (License): Likewise.
21427         * modules/stdarg (License): Likewise.
21428         * modules/sysexits (License): Likewise.
21429
21430 2010-04-29  Jim Meyering  <meyering@redhat.com>
21431
21432         inttypes: relax license to LGPLv2+
21433         * modules/inttypes (License): Relax license.
21434
21435 2010-04-29  Simon Josefsson  <simon@josefsson.org>
21436
21437         * top/maint.mk (indent): Run twice to produce idempotent results.
21438
21439 2010-04-28  Bruno Haible  <bruno@clisp.org>
21440
21441         getdate: Generate getdate.c in the source directory.
21442         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
21443         MOSTLYCLEANFILES.
21444         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
21445
21446 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
21447
21448         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
21449         is not declared as a const *; avoid warnings in that case.
21450
21451 2010-04-28  Eric Blake  <eblake@redhat.com>
21452
21453         canonicalize-lgpl: avoid compiler warning
21454         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
21455         declaration' / 'extraneous semicolon' warning with some compilers.
21456         Reported by Andreas Gruenbacher.
21457
21458 2010-04-28  Jim Meyering  <meyering@redhat.com>
21459
21460         init.sh: ensure a more reliable exit status when exiting via trap
21461         * tests/init.sh (setup_): Don't rely on $? in signal handler.
21462         Inspired by patches from Dmitry V. Levin.
21463         Also trap on signal 3 (SIGQUIT).
21464
21465 2010-04-27  Bruno Haible  <bruno@clisp.org>
21466
21467         Update doc about utimes().
21468         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
21469         'utimens' module.
21470         Reported by Andreas Gruenbacher <agruen@suse.de>.
21471
21472 2010-04-27  Eric Blake  <eblake@redhat.com>
21473
21474         full-read, full-write: relax license
21475         * modules/full-read (License): Drop to LGPLv2+.
21476         * modules/full-write (License): Likewise.
21477         * modules/safe-read (License): Likewise.
21478         * modules/safe-write (License): Likewise.
21479
21480         pthread: mention library for linking
21481         * modules/pthread (Link): Mention $(LIB_PTHREAD).
21482
21483 2010-04-27  Jim Meyering  <meyering@redhat.com>
21484
21485         maint.mk: fix a bug introduced in last change
21486         * top/maint.mk (gl_assured_headers_): Now that all names are on
21487         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
21488         is not anchored to end of word, it should be adequate.
21489
21490         maint.mk: avoid side-effect in latest syntax-check
21491         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
21492         to run commands via $(shell...), and hence to incur cost only when
21493         the new rule is actually run.
21494
21495         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
21496         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
21497         and use that to create a regexp used to detect all #if HAVE_..._H uses.
21498         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
21499         (gl_assured_headers_, az_, AZ_): Define.
21500         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
21501
21502 2010-04-26  Jim Meyering  <jim@meyering.net>
21503             Bruno Haible  <bruno@clisp.org>
21504
21505         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
21506         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
21507         Prompted by an exchange with Gilles Espinasse.
21508
21509 2010-04-26  Jim Meyering  <meyering@redhat.com>
21510
21511         git-version-gen: aesthetic tweak
21512         * build-aux/git-version-gen: Use "$nl" rather than a literal,
21513         so that the command remains on a single line.
21514
21515 2010-04-26  Eric Blake  <eblake@redhat.com>
21516
21517         git-version-gen: allow use on EBCDIC hosts
21518         * build-aux/git-version-gen (dirty): Use literal rather than tying
21519         ourselves to ascii.
21520         Reported by Steve Goetze.
21521
21522 2010-04-25  Bruno Haible  <bruno@clisp.org>
21523
21524         netdb: Add support for GNULIB_POSIXCHECK.
21525         * lib/netdb.in.h: Include warn-on-use.h.
21526         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
21527         functions are used when GNULIB_POSIXCHECK is defined and the
21528         getaddrinfo module is not in use.
21529         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
21530         freeaddrinfo, gai_strerror, getnameinfo are declared.
21531         * modules/netdb (Depends-on): Add warn-on-use.
21532         (Makefile.am): Include warn-on-use.h in netdb.h.
21533
21534 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
21535
21536         build: avoid "make check" failure without .git/ directory
21537         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
21538         there is no .git/ directory.
21539
21540 2010-04-25  Bruno Haible  <bruno@clisp.org>
21541
21542         ptsname: Fix misuse of ttyname_r.
21543         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
21544         of errno.
21545
21546 2010-04-25  Bruno Haible  <bruno@clisp.org>
21547
21548         ttyname_r: Make it work on Solaris 10.
21549         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
21550         if the system function has the POSIX declaration. Test whether the
21551         function fails if the buffer is less than 128 bytes large.
21552         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
21553         system's ttyname_r function. Provide a reasonably large buffer.
21554         * modules/ttyname_r (Depends-on): Add extensions.
21555         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
21556
21557 2010-04-25  Bruno Haible  <bruno@clisp.org>
21558
21559         Use the 'extensions' module for some more functions on Solaris.
21560         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
21561         module.
21562         * doc/posix-functions/ctime_r.texi: Likewise.
21563         * doc/posix-functions/getgrgid_r.texi: Likewise.
21564         * doc/posix-functions/getgrnam_r.texi: Likewise.
21565         * doc/posix-functions/getpwnam_r.texi: Likewise.
21566         * doc/posix-functions/getpwuid_r.texi: Likewise.
21567         * doc/posix-functions/readdir_r.texi: Likewise.
21568         * doc/posix-functions/sigwait.texi: Likewise.
21569         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
21570         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
21571
21572 2010-04-25  Bruno Haible  <bruno@clisp.org>
21573
21574         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
21575         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
21576         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
21577         * lib/ttyname_r.c: Include <limits.h>.
21578         (ttyname_r): Define using the system's ttyname_r function, if it exists
21579         and not on Solaris.
21580         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
21581         set.
21582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
21583         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
21584         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
21585         Reported by Simon Josefsson.
21586
21587 2010-04-25  Bruno Haible  <bruno@clisp.org>
21588
21589         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
21590         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
21591         * doc/posix-functions/ctime_r.texi: Likewise.
21592         * doc/posix-functions/getgrgid_r.texi: Likewise.
21593         * doc/posix-functions/getgrnam_r.texi: Likewise.
21594         * doc/posix-functions/getlogin_r.texi: Likewise.
21595         * doc/posix-functions/getpwnam_r.texi: Likewise.
21596         * doc/posix-functions/getpwuid_r.texi: Likewise.
21597         * doc/posix-functions/readdir_r.texi: Likewise.
21598         * doc/posix-functions/sigwait.texi: Likewise.
21599         * doc/posix-functions/ttyname_r.texi: Likewise.
21600         Reported by Simon Josefsson.
21601
21602 2010-04-25  Bruno Haible  <bruno@clisp.org>
21603
21604         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
21605         * gnulib-tool (func_usage): Document that --with-*-tests options apply
21606         also to --create-testdir.
21607         (func_acceptable): Don't consider the status of *-tests modules here.
21608         (func_modules_transitive_closure): Consider it here, before including a
21609         test module.
21610         (func_import, func_create_testdir): Set inc_all_direct_tests,
21611         inc_all_indirect_tests.
21612         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
21613         --create-testdir and --create-megatestdir.
21614
21615 2010-04-25  Bruno Haible  <bruno@clisp.org>
21616
21617         gnulib-tool: Add --without-*-tests options.
21618         * gnulib-tool (func_usage): Document the --without-*-tests options.
21619         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
21620         excl_unportable_tests): New variables.
21621         Fail if they are specified with --import or --update.
21622         (func_acceptable): Respect the excl_*_tests variables.
21623         (func_import): Set the excl_*_tests variables to empty.
21624
21625 2010-04-25  Simon Josefsson  <simon@josefsson.org>
21626             Bruno Haible  <bruno@clisp.org>
21627
21628         Work around a MacOS X 10.4 bug with openpty.
21629         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
21630         * tests/test-openpty.c (main): Close the master side explicitly.
21631
21632 2010-04-25  Bruno Haible  <bruno@clisp.org>
21633
21634         strnlen: Fix a C++ test error on MacOS X and Solaris.
21635         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
21636         the function is not declared.
21637         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
21638         Simon Josefsson.
21639
21640 2010-04-24  Bruno Haible  <bruno@clisp.org>
21641
21642         Avoid a gcc warning.
21643         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
21644         of correct type for %08lx directive.
21645         Reported by Eric Blake.
21646
21647 2010-04-24  Bruno Haible  <bruno@clisp.org>
21648
21649         vasnprintf: Correct errno value in case of out-of-memory.
21650         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
21651         or sprintf. Use the errno value from SNPRINTF or sprintf.
21652         Reported by Ian Beckwith <ianb@erislabs.net>.
21653
21654 2010-04-24  Bruno Haible  <bruno@clisp.org>
21655
21656         ansi-c++-opt: Find correct compiler when cross-compiling.
21657         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
21658         AC_CHECK_PROGS.
21659         Reported by Simon Josefsson.
21660
21661 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
21662
21663         vc-list-files: Add support for subversion
21664         * build-aux/vc-list-files: Use "svn list" to generate the list of
21665         files controlled by subversion.
21666
21667 2010-04-23  Jim Meyering  <meyering@redhat.com>
21668
21669         vc-list-files tests: convert to use init.sh
21670         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
21671         path_prepend_.
21672         Use Exit, not exit.
21673         Use skip_ rather than open coding it.
21674         Remove trap set-up and compare definitions.
21675         * tests/test-vc-list-files-git.sh: Likewise.
21676         * modules/vc-list-files-tests (Files): Add tests/init.sh.
21677
21678 2010-04-22  Simon Josefsson  <simon@josefsson.org>
21679
21680         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
21681         backup files.
21682
21683 2010-04-21  Simon Josefsson  <simon@josefsson.org>
21684
21685         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
21686
21687 2010-04-20  Eric Blake  <eblake@redhat.com>
21688
21689         tests: be robust to ignored SIGPIPE
21690         * tests/test-select-in.sh: Consume all output.
21691         * tests/test-lseek.sh: Check correct exit status, while avoiding
21692         EPIPE.
21693
21694 2010-04-20  Simon Josefsson  <simon@josefsson.org>
21695             Bruno Haible  <bruno@clisp.org>
21696
21697         visibility: Don't use -fvisibility if it leads to a warning.
21698         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
21699         yes, don't pretend that visibility works if it leads to a warning.
21700         Reported by Mike Gran <spk121@yahoo.com>.
21701
21702 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
21703
21704         * build-aux/bootstrap: Use "git -h" for testing for supported options
21705         instead of "git --help".  The short-form option only shows a summary,
21706         and doesn't layout the full man page.  Grep for the full option name
21707         in the summary, too.
21708
21709 2010-04-19  Bruno Haible  <bruno@clisp.org>
21710
21711         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
21712         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
21713         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
21714         mention of RELOCATABLE_STRIP.
21715         Reported by Sylvain Beucler <beuc@beuc.net>.
21716
21717 2010-04-19  Bruno Haible  <bruno@clisp.org>
21718
21719         * lib/diffseq.h: Fix typo in comment.
21720         Reported by Eric Blake.
21721
21722 2010-04-19  Bruno Haible  <bruno@clisp.org>
21723
21724         ioctl: Move autoconf macro to a .m4 file.
21725         * m4/ioctl.m4: New file, extracted from modules/ioctl.
21726         * modules/ioctl (Files): Add it.
21727         (configure.ac): Simply invoke gl_FUNC_IOCTL.
21728         Reported by Ian Beckwith <ianb@erislabs.net>.
21729
21730 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
21731             Bruno Haible  <bruno@clisp.org>
21732
21733         diffseq: Accommodate use-case with abstract arrays.
21734         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
21735         is not defined.
21736         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
21737         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
21738
21739 2010-04-18  Bruno Haible  <bruno@clisp.org>
21740
21741         * doc/posix-headers/stdbool.texi: More precise wording.
21742
21743 2010-04-17  Jim Meyering  <meyering@redhat.com>
21744
21745         maint.mk: use gnu-style indentation in an embedded perl script
21746         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
21747         Rename variable: s/two/last_two_bytes/
21748
21749 2010-04-16  Eric Blake  <eblake@redhat.com>
21750
21751         test-stdbool: skip test that fails with Solaris CC
21752         * tests/test-stdbool.c (f): Skip test that causes compilation
21753         error under buggy C++ compiler.
21754         * lib/stdbool.in.h: Document the limitation.
21755         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
21756
21757         setenv: allow compilation with C++
21758         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
21759         register keyword.
21760
21761         stdint: allow test to pass with C++
21762         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
21763
21764         getopt: allow compilation with C++
21765         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
21766         struct.
21767         * lib/getopt.c (_getopt_internal_r): Use correct type.
21768         Reported by Dagobert Michelson, via Joel E. Denny.
21769
21770 2010-04-16  Bruno Haible  <bruno@clisp.org>
21771
21772         Override netdb.h always.
21773         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
21774         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
21775         Reported by Ludovic Courtès <ludo@gnu.org>.
21776
21777 2010-04-15  Bruno Haible  <bruno@clisp.org>
21778
21779         openpty: Fix mistake from 2010-03-21.
21780         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
21781         Reported by Simon Josefsson.
21782
21783 2010-04-15  Eric Blake  <eblake@redhat.com>
21784
21785         test-forkpty: fix expected signature
21786         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
21787         Reported by Simon Josefsson.
21788
21789 2010-04-15  Jim Meyering  <meyering@redhat.com>
21790
21791         maint.mk: texinfo_suffix_re_: correct the default regexp
21792         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
21793
21794         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
21795         make it configurable via texinfo_suffix_re_.
21796
21797 2010-04-14  Eric Blake  <eblake@redhat.com>
21798
21799         strtok_r: relax license to LGPLv2+
21800         * modules/strtok_r (License): Relax license.
21801         Reported by Matthias Bolte.
21802
21803 2010-04-14  Simon Josefsson  <simon@josefsson.org>
21804
21805         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
21806         version 1.4.4 by default instead of requiring the libgcrypt
21807         version used during build.  This makes it possible to use the
21808         application with older but still binary compatible libgcrypt
21809         versions.
21810
21811 2010-04-13  Eric Blake  <eblake@redhat.com>
21812
21813         getopt-gnu: match recent glibc fixes and posix ruling
21814         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
21815         '+' handling, when requesting extensions.
21816         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
21817         'W;' handling.
21818         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
21819         * doc/posix-functions/getopt.texi (getopt): Document this.
21820         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21821         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21822         Likewise.
21823
21824         getopt: merge bug fixes from glibc
21825         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
21826         diagnostics.  Honor '+:' correctly.  Reject ';'.
21827
21828         getopt-posix: detect MacOS bug
21829         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
21830         optind when missing a required argument.
21831         * doc/posix-functions/getopt.texi (getopt): Document the bug.
21832         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21833         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21834         Likewise.
21835
21836         getopt-posix: avoid spurious failure on Solaris
21837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
21838         an indicator that setting optind=1 is sufficient for reset.
21839
21840         getopt-posix: avoid spurious failure on FreeBSD
21841         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
21842         in POSIX mode, since the m4 test uses it.
21843
21844         gnulib-tool: silence warning on BSD sh
21845         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
21846
21847 2010-04-13  Jim Meyering  <meyering@redhat.com>
21848
21849         doc: users.txt: GNU patch now uses gnulib
21850         * users.txt: Add patch.
21851
21852 2010-04-12  Jim Meyering  <meyering@redhat.com>
21853
21854         maint.mk: generate more concise timing data for syntax-check rules
21855         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
21856         " done" from each line that reports a syntax-check test duration.
21857
21858 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
21859
21860         git-version-gen: use "git update-index..." rather than "git status"
21861         * build-aux/git-version-gen: Use git update-index --refresh, not
21862         "git status".  With some versions of git, "git status" would fail
21863         to update the index and result in an unwarranted "-dirty" suffix.
21864
21865 2010-04-11  Jim Meyering  <meyering@redhat.com>
21866
21867         openat: correct formatting (no semantic change)
21868         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
21869         Suggested by Bruno Haible.
21870
21871 2010-04-11  Bruno Haible  <bruno@clisp.org>
21872
21873         Stricter declaration checking in testdirs.
21874         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21875         If for_tests is true, augment AM_CPPFLAGS to define
21876         GNULIB_STRICT_CHECKING.
21877         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
21878         GNULIB_STRICT_CHECKING is defined, verify that the function is
21879         declared.
21880
21881 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
21882             Bruno Haible  <bruno@clisp.org>
21883
21884         libunistring: Improve configure output.
21885         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
21886         Don't say "consider installing GNU libunistring" when checking again
21887         with libiconv.
21888
21889 2010-04-11  Bruno Haible  <bruno@clisp.org>
21890
21891         libunistring: Correct value of $LTLIBUNISTRING.
21892         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
21893         correct the value of $LTLIBUNISTRING.
21894
21895 2010-04-11  Bruno Haible  <bruno@clisp.org>
21896
21897         havelib: Add static libraries to LIBS in the right order.
21898         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
21899         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
21900
21901 2010-04-11  Bruno Haible  <bruno@clisp.org>
21902
21903         libunistring: Detect libunistring also when it depends on libiconv.
21904         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
21905         the second AC_LIB_HAVE_LINKFLAGS invocation.
21906
21907 2010-04-11  James Youngman  <jay@gnu.org>
21908
21909         close-stream: declare local scalars to be "const"
21910         * lib/close-stream.c (close_stream): Make boolean variables const
21911         to document the fact that we set but do not change them.
21912
21913 2010-04-11  Bruno Haible  <bruno@clisp.org>
21914
21915         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
21916
21917 2010-04-11  Jim Meyering  <meyering@redhat.com>
21918
21919         maint.mk: don't include dist-check.mk
21920         * top/maint.mk: Remove bogus include directive.
21921
21922         maint.mk: improve empty-line-at-EOF check
21923         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
21924         solution, rather than tail+Perl-based one.  The latter would read
21925         a few kilobytes from the end of each file, and did not handle empty
21926         files properly.
21927
21928         maint.mk: print the elapsed time for each syntax-check rule
21929         * top/maint.mk (sc_m_rules_): Save start time in a file.
21930         (sc_z_rules_): New rules: remove temp file and print elapsed time.
21931         (local-check): Interpose the .z rules
21932
21933 2010-04-11  Jim Meyering  <meyering@redhat.com>
21934
21935         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
21936         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
21937         empty file with one that ends in an empty line.
21938
21939 2010-04-10  Bruno Haible  <bruno@clisp.org>
21940
21941         mkdir: Make it work on mingw64.
21942         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
21943         * lib/mkdir.c: Update comment.
21944         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
21945
21946 2010-04-10  Bruno Haible  <bruno@clisp.org>
21947
21948         Don't override improved macro from newer autoconf.
21949         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
21950         autoconf >= 2.62.
21951         Reported by Joel E. Denny <jdenny@clemson.edu>.
21952
21953 2010-04-10  Jim Meyering  <meyering@redhat.com>
21954
21955         maint.mk: new syntax-check rule: prohibit empty lines at end of file
21956         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
21957
21958         maint.mk: correct a diagnostic
21959         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
21960         in diagnostic; now use $prohibit.
21961
21962 2010-04-10  Bruno Haible  <address@hidden>
21963
21964         fchownat: Fix a C++ test error on Solaris 8.
21965         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
21966         the function does not exist.
21967
21968 2010-04-10  Bruno Haible  <bruno@clisp.org>
21969
21970         vasnprintf: Add more tests.
21971         * tests/test-vasnprintf-posix.c: Include <errno.h>.
21972         (test_function): Test converting an invalid wide string.
21973
21974         vasnprintf: Correct handling of unconvertible wide string arguments.
21975         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21976         VASNPRINTF.
21977         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21978         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21979         smaller than the expected maximum need for the directive. Set errno to
21980         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21981         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21982         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21983         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21984         * modules/vasnprintf (Files): Add m4/printf.m4.
21985         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21986
21987 2010-04-10  Bruno Haible  <bruno@clisp.org>
21988
21989         vasnprintf: Fix crash in %ls directive.
21990         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21991         string is passed as argument to %ls, with no precision and no width.
21992         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21993
21994 2010-04-10  Bruno Haible  <bruno@clisp.org>
21995
21996         vasnprintf: Fix multiple test failures on mingw.
21997         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21998         _snprintf, or snwprintf, not _snwprintf.
21999
22000 2010-04-10  Bruno Haible  <bruno@clisp.org>
22001
22002         write: Fix a C++ test error on mingw.
22003         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
22004
22005 2010-04-10  Bruno Haible  <bruno@clisp.org>
22006
22007         vasnprintf test: Reduce code duplication.
22008         * tests/test-vasnprintf.c (test_function): New function, extracted from
22009         test_vasnprintf.
22010         (test_vasnprintf, test_asnprintf): Invoke it.
22011
22012 2010-04-10  Bruno Haible  <bruno@clisp.org>
22013
22014         strnlen: Fix warning in C++ mode on MacOS X.
22015         * lib/string.in.h (strnlen): Use the modern idiom.
22016         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
22017         defining strnlen as a macro already in <config.h>.
22018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22019         REPLACE_STRNLEN.
22020         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
22021         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22022
22023 2010-04-08  James Youngman  <jay@gnu.org>
22024
22025         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
22026         the example.
22027
22028 2010-04-09  Jim Meyering  <meyering@redhat.com>
22029
22030         maint.mk: print better diagnostic when there is no $(_hv_file)
22031         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
22032         announce that when $(_hv_file) (aka help-version) does not exist.
22033
22034         init.sh: run tr in the "C" locale to avoid multibyte interpretation
22035         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
22036         not try to interpret its random input bytes.  Jarno Rajahalme reported
22037         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
22038         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
22039         (mktempd_): Likewise, just in case.
22040
22041         ftruncate: add two years to projected module removal date: 2012
22042         * m4/ftruncate.m4: Adjust comments.
22043
22044         ftruncate: mark module as obsolete; even MinGW provides it, now
22045         * modules/ftruncate (Status): Obsolete.
22046         (Notice): Say that.
22047         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
22048         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
22049
22050 2010-04-08  Bruno Haible  <bruno@clisp.org>
22051
22052         Fix side effects from tests-related modules.
22053         * modules/dprintf-posix (Comment): New section.
22054         * modules/fprintf-posix (Comment): Likewise.
22055         * modules/obstack-printf-posix (Comment): Likewise.
22056         * modules/printf-posix (Comment): Likewise.
22057         * modules/snprintf-posix (Comment): Likewise.
22058         * modules/sprintf-posix (Comment): Likewise.
22059         * modules/vasnprintf-posix (Comment): Likewise.
22060         * modules/vasprintf-posix (Comment): Likewise.
22061         * modules/vdprintf-posix (Comment): Likewise.
22062         * modules/vfprintf-posix (Comment): Likewise.
22063         * modules/vprintf-posix (Comment): Likewise.
22064         * modules/vsnprintf-posix (Comment): Likewise.
22065         * modules/vsprintf-posix (Comment): Likewise.
22066         * modules/xprintf-posix (Comment): Likewise.
22067         * modules/xvasprintf-posix (Comment): Likewise.
22068         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
22069         * modules/floorf-tests (Depends-on): Likewise.
22070         * modules/round-tests (Depends-on): Likewise.
22071         * modules/roundf-tests (Depends-on): Likewise.
22072         * modules/trunc-tests (Depends-on): Likewise.
22073         * modules/truncf-tests (Depends-on): Likewise.
22074         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
22075         'fprintf-posix' module is not present.
22076         * tests/test-floorf2.c (check): Likewise.
22077         * tests/test-trunc2.c (check): Likewise.
22078         * tests/test-truncf2.c (check): Likewise.
22079         * tests/test-round2.c (equal): Likewise.
22080         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22081
22082 2010-04-07  Karl Berry  <karl@gnu.org>
22083
22084         * config/srclist.txt,
22085         * config/srclistvars.sh,
22086         * config/srclist-update: doc fixes.
22087
22088 2010-04-07  Jim Meyering  <meyering@redhat.com>
22089
22090         maint.mk: add a PATH crosschecking syntax-check rule
22091         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
22092         Useful if you use a test like the one in help-version (coreutils,
22093         diffutils, grep, gzip) that ensures $(VERSION) matches what is
22094         printed by prog --version.
22095
22096 2010-04-06  Bruno Haible  <bruno@clisp.org>
22097
22098         Fix link error on mingw.
22099         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
22100         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
22101
22102 2010-04-06  Bruno Haible  <bruno@clisp.org>
22103
22104         Assume rmdir exists.
22105         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
22106
22107 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
22108
22109         doc: update users.txt
22110         * users.txt: Add gcal.
22111
22112 2010-04-06  Jim Meyering  <meyering@redhat.com>
22113
22114         init.sh: simply unset TMPDIR rather than risking env -i
22115         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
22116         although it probably works fine on all Unix-based systems, some
22117         systems (Cygwin?) cannot tolerate a totally cleared environment.
22118         Suggestion from Eric Blake.
22119
22120 2010-04-06  Jim Meyering  <meyering@redhat.com>
22121
22122         init.sh: portability fix: use env's POSIX-specified -i option not -u
22123         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
22124         than unportable env -u.  Solaris 5.11's env lacks support for -u.
22125
22126 2010-04-05  Bruno Haible  <bruno@clisp.org>
22127
22128         btowc: Work around Cygwin 1.7.2 bug.
22129         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
22130         does not map NUL to 0.
22131         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
22132
22133 2010-04-05  Bruno Haible  <bruno@clisp.org>
22134
22135         Make the multithread modules work on Cygwin 1.7.2.
22136         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
22137         imported symbols can be declared weak, so that it returns "no" on
22138         Cygwin 1.7.2.
22139
22140 2010-04-05  Bruno Haible  <bruno@clisp.org>
22141
22142         Use the module 'strncat'.
22143         * modules/unistr/u8-strncat (Depends-on): Add strncat.
22144
22145         Tests for module 'strncat'.
22146         * modules/strncat-tests: New file.
22147         * tests/test-strncat.c: New file.
22148
22149         New module 'strncat'.
22150         * lib/string.in.h (strncat): New declaration.
22151         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
22152         * m4/strncat.m4: New file, based on m4/memchr.m4.
22153         * modules/strncat: New file.
22154         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
22155         is declared.
22156         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
22157         REPLACE_STRNCAT.
22158         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
22159         REPLACE_STRNCAT.
22160         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
22161         module.
22162         * tests/test-string-c++.cc: Check signature of strncat.
22163
22164 2010-04-05  Jim Meyering  <meyering@redhat.com>
22165
22166         xstrtoumax-tests: convert to use init.sh
22167         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
22168         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22169         Use Exit, not exit.
22170         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22171
22172         xstrtoimax-tests: convert to use init.sh
22173         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
22174         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22175         Use Exit, not exit.
22176         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22177
22178 2010-04-05  Bruno Haible  <bruno@clisp.org>
22179
22180         sys_socket: Avoid #define replacements in C++ mode.
22181         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
22182         warning to the function if possible, rather than #defining the symbol
22183         to a dysfunctional alias.
22184
22185 2010-04-05  Bruno Haible  <bruno@clisp.org>
22186
22187         fseeko: Fix C++ test error on mingw.
22188         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
22189         gl_FUNC_FSEEKO.
22190         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
22191         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
22192         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
22193         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
22194
22195 2010-04-05  Bruno Haible  <bruno@clisp.org>
22196
22197         duplocale: Improve test output.
22198         * tests/test-duplocale.c (main): Print reason for skipped test.
22199
22200 2010-04-05  Bruno Haible  <bruno@clisp.org>
22201
22202         Assume rmdir exists.
22203         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
22204         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
22205
22206 2010-04-05  Bruno Haible  <bruno@clisp.org>
22207
22208         Fix link error on Solaris 8 with cc.
22209         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
22210
22211 2010-04-05  Bruno Haible  <bruno@clisp.org>
22212
22213         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
22214         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
22215
22216 2010-04-05  Bruno Haible  <bruno@clisp.org>
22217
22218         vasprintf: Update documentation.
22219         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
22220
22221 2010-04-05  Bruno Haible  <bruno@clisp.org>
22222
22223         ptsname: Improve test.
22224         * tests/test-ptsname.c (main): Also try the various master names of BSD
22225         systems.
22226
22227 2010-04-05  Bruno Haible  <bruno@clisp.org>
22228
22229         memchr: Avoid a possible C++ test error.
22230         * lib/string.in.h (memchr): Provide declaration if function is missing.
22231         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
22232         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
22233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
22234         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
22235
22236 2010-04-05  Bruno Haible  <bruno@clisp.org>
22237
22238         strtok_r: Improve idiom.
22239         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
22240         AC_LIBOBJ is used.
22241
22242 2010-04-05  Bruno Haible  <bruno@clisp.org>
22243
22244         strdup: Improve idiom.
22245         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
22246         AC_LIBOBJ is used.
22247         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
22248         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
22249         when AC_LIBOBJ is used.
22250
22251 2010-04-05  Bruno Haible  <bruno@clisp.org>
22252
22253         mbsinit, mbrtowc, wcrtomb: Improve idioms.
22254         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
22255         don't set REPLACE_MBSINIT to 1.
22256         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
22257         don't set REPLACE_MBRTOWC to 1.
22258         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
22259         exist, don't set REPLACE_MBSRTOWCS to 1.
22260         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
22261         exist, don't set REPLACE_MBSNRTOWCS to 1.
22262         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
22263         don't set REPLACE_WCRTOMB to 1.
22264         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
22265         exist, don't set REPLACE_WCSRTOMBS to 1.
22266         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
22267         exist, don't set REPLACE_WCSNRTOMBS to 1.
22268
22269 2010-04-05  Bruno Haible  <bruno@clisp.org>
22270
22271         ldexpl: Improve idiom.
22272         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
22273         make sure to set HAVE_DECL_LDEXPL to 0.
22274
22275 2010-04-05  Jim Meyering  <meyering@redhat.com>
22276
22277         xstrtol-tests: convert to use init.sh
22278         * modules/xstrtol-tests (Files): Add tests/init.sh.
22279         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22280         Use Exit, not exit.
22281         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22282
22283         atexit-tests: convert to use init.sh
22284         * modules/atexit-tests (Files): Add tests/init.sh.
22285         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22286         Use Exit, not exit.
22287         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22288
22289         init.sh: fix typo
22290         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
22291
22292         init.sh: make it easier for a test script to write to the tty, ...
22293         when using automake's parallel-tests mode.
22294         * tests/init.sh (stderr_fileno_): Define overridable variable.
22295         (warn_): New function, to use it.
22296         (fail_, skip_, framework_failure_): Use warn_.
22297
22298 2010-04-04  Bruno Haible  <bruno@clisp.org>
22299
22300         btowc: Avoid warning.
22301         * lib/btowc.c: Include <stdlib.h>.
22302         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
22303
22304 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
22305             Bruno Haible  <bruno@clisp.org>
22306
22307         wchar: Port to NetBSD 1.5.
22308         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
22309         * lib/wctype.in.h (WEOF): Likewise.
22310
22311 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
22312             Bruno Haible  <bruno@clisp.org>
22313
22314         Port extended stdio to NetBSD 1.5.
22315         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
22316         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
22317         older.
22318
22319 2010-04-04  Bruno Haible  <bruno@clisp.org>
22320
22321         string: Remove unused substitution.
22322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
22323         HAVE_DECL_STRERROR.
22324         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
22325
22326 2010-04-04  Bruno Haible  <bruno@clisp.org>
22327
22328         strtod: Avoid a possible C++ test error.
22329         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
22330         set REPLACE_STRTOD.
22331
22332 2010-04-04  Bruno Haible  <bruno@clisp.org>
22333
22334         strerror: Update documentation.
22335         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
22336
22337 2010-04-04  Bruno Haible  <bruno@clisp.org>
22338
22339         stdio: Fix some C++ test errors on Solaris 8 with GCC.
22340         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
22341         _GL_CXXALIAS_SYS_CAST.
22342
22343 2010-04-04  Bruno Haible  <bruno@clisp.org>
22344
22345         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
22346         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
22347         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
22348         REPLACE_FREXPL to 1.
22349         * doc/posix-functions/frexpl.texi: Update documentation.
22350
22351 2010-04-04  Bruno Haible  <bruno@clisp.org>
22352
22353         math: Fix some C++ test errors on Solaris 8 and Cygwin.
22354         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
22355
22356 2010-04-04  Bruno Haible  <bruno@clisp.org>
22357
22358         Implement nanosleep for native Windows.
22359         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
22360
22361 2010-04-04  Bruno Haible  <bruno@clisp.org>
22362
22363         math: Fix some C++ test errors on Solaris 8.
22364         * lib/math.in.h (truncf, trunc): Use simpler idiom.
22365
22366 2010-04-04  Bruno Haible  <bruno@clisp.org>
22367
22368         math: Fix some C++ test errors on Cygwin.
22369         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
22370         truncl): Provide declaration if the system does not have it.
22371         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
22372         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
22373         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
22374         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
22375         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
22376         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
22377         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
22378         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
22379         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
22380         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
22381         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
22382         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
22383         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
22384         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
22385         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
22386         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
22387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
22388         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22389         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22390         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
22391         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22392         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22393
22394 2010-04-04  Bruno Haible  <bruno@clisp.org>
22395
22396         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
22397         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22398         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22399         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
22400         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22401         * m4/isinf.m4 (gl_ISINF): Likewise.
22402         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22403
22404 2010-04-04  Bruno Haible  <bruno@clisp.org>
22405
22406         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
22407         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22408
22409 2010-04-04  Bruno Haible  <bruno@clisp.org>
22410
22411         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
22412         * modules/tmpfile (configure.ac): Update.
22413
22414         tmpfile: Fix C++ test error on mingw.
22415         * lib/stdio.in.h (tmpfile): New declaration.
22416         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
22417         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
22418         * modules/tmpfile (Depends-on): Add stdio.
22419         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
22420         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
22421         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
22422         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
22423         REPLACE_TMPFILE.
22424         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
22425
22426 2010-04-04  Bruno Haible  <bruno@clisp.org>
22427
22428         ioctl: Fix C++ test error on mingw.
22429         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
22430         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
22431         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
22432
22433 2010-04-03  Bruno Haible  <bruno@clisp.org>
22434
22435         wcwidth: Fix C++ test error on mingw.
22436         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
22437         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
22438         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
22439
22440 2010-04-03  Bruno Haible  <bruno@clisp.org>
22441
22442         nanosleep: Fix C++ test error on mingw.
22443         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
22444         * lib/time.in.h (nanosleep): Use modern idiom.
22445         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
22446         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
22447         REPLACE_NANOSLEEP to 1.
22448         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
22449         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
22450
22451 2010-04-03  Bruno Haible  <bruno@clisp.org>
22452
22453         strptime: Fix C++ test error on mingw.
22454         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
22455         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
22456         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
22457         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
22458         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
22459         not REPLACE_STRPTIME.
22460         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
22461         REPLACE_STRPTIME.
22462
22463 2010-04-03  Bruno Haible  <bruno@clisp.org>
22464
22465         timegm: Fix C++ test error on mingw.
22466         * lib/time.in.h (timegm): Use modern idiom.
22467         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
22468         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
22469         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
22470         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
22471
22472 2010-04-03  Bruno Haible  <bruno@clisp.org>
22473
22474         timegm: Assume declaration if function exists.
22475         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
22476         if it exists. Don't clobber ac_cv_func_timegm.
22477
22478 2010-04-03  Bruno Haible  <bruno@clisp.org>
22479
22480         time_r: Fix C++ test error on mingw.
22481         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
22482         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
22483         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
22484         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
22485         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
22486
22487 2010-04-03  Bruno Haible  <bruno@clisp.org>
22488
22489         time_r: Minor updates.
22490         * modules/time_r (Description): Mention the provided functions.
22491         * lib/time_r.c: Don't include <string.h>.
22492         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
22493         * doc/posix-functions/localtime_r.texi: Likewise.
22494
22495 2010-04-03  Bruno Haible  <bruno@clisp.org>
22496
22497         time: Fix regression introduced on 2010-03-08.
22498         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
22499         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
22500
22501 2010-04-03  Jim Meyering  <meyering@redhat.com>
22502
22503         maint.mk: don't silently disable project-specific syntax-check rules
22504         * top/maint.mk (_prohibit_regexp): Define, to help people realize
22505         that they need to convert their project-specific syntax-check rules
22506         to use the new _sc_search_regexp.
22507
22508 2010-04-03  Bruno Haible  <bruno@clisp.org>
22509
22510         fchdir: Fix regression introduced on 2010-03-08.
22511         * lib/unistd.in.h (fchdir): Fix declaration.
22512         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
22513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
22514         REPLACE_FCHDIR.
22515         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
22516         REPLACE_FCHDIR.
22517
22518 2010-04-03  Bruno Haible  <bruno@clisp.org>
22519
22520         getpagesize: Fix C++ test error on mingw.
22521         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
22522         system does not declare the function.
22523         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
22524         declared.
22525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22526         HAVE_DECL_GETPAGESIZE.
22527         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
22528
22529 2010-04-03  Bruno Haible  <bruno@clisp.org>
22530
22531         stdio: Make C++ tests work on mingw.
22532         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
22533         does not declare the function.
22534
22535 2010-04-03  Bruno Haible  <bruno@clisp.org>
22536
22537         ftello: Fix C++ test error on mingw.
22538         * lib/stdio.in.h (ftello): Use modern idiom.
22539         * lib/ftello.c (ftello): Renamed from rpl_ftello.
22540         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
22541         is missing and that it needs to be replaced.
22542         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
22543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
22544         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
22545
22546 2010-04-03  Bruno Haible  <bruno@clisp.org>
22547
22548         fseeko: Fix C++ test error on mingw.
22549         * lib/stdio.in.h (fseeko): Use modern idiom.
22550         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
22551         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
22552         is missing and that it needs to be replaced.
22553         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
22554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
22555         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
22556
22557 2010-04-03  Bruno Haible  <bruno@clisp.org>
22558
22559         mkstemp: Fix C++ test error on mingw.
22560         * lib/stdlib.in.h (mkstemp): Use modern idiom.
22561         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
22562         function is missing and that it needs to be replaced.
22563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
22564         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
22565
22566 2010-04-03  Bruno Haible  <bruno@clisp.org>
22567
22568         stpncpy: Fix C++ test error on mingw.
22569         * lib/string.in.h (stpncpy): Use modern idiom.
22570         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
22571         function is missing and that it needs to be replaced.
22572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22573         REPLACE_STPNCPY.
22574         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
22575
22576 2010-04-03  Bruno Haible  <bruno@clisp.org>
22577
22578         sys_stat: Fix C++ test error on mingw.
22579         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
22580         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
22581
22582 2010-04-03  Bruno Haible  <bruno@clisp.org>
22583
22584         pty: Update doc.
22585         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
22586
22587 2010-04-03  Bruno Haible  <bruno@clisp.org>
22588
22589         unistd: Fix C++ test error on mingw.
22590         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
22591
22592 2010-04-03  Bruno Haible  <bruno@clisp.org>
22593
22594         Update doc regarding mingw.
22595         * doc/glibc-functions/openpty.texi: Update regarding mingw.
22596         * doc/glibc-functions/login_tty.texi: Likewise.
22597         * doc/glibc-functions/forkpty.texi: Likewise.
22598
22599 2010-04-03  Bruno Haible  <bruno@clisp.org>
22600
22601         stdlib: Avoid compilation failure of c-strtold on mingw.
22602         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
22603
22604 2010-04-03  Bruno Haible  <bruno@clisp.org>
22605
22606         locale: Make C++ tests work on Cygwin and mingw.
22607         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
22608         cannot provide the function.
22609         Reported by Simon Josefsson.
22610
22611 2010-04-03  Bruno Haible  <bruno@clisp.org>
22612
22613         localename: Port to MacOS X 10.6.
22614         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
22615         memory layout of the locales in MacOS X 10.6 as well.
22616         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
22617
22618 2010-04-02  Bruno Haible  <bruno@clisp.org>
22619
22620         gnulib-tool: Ensure that long-running tests are executed last.
22621         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
22622         running tests after the one for the other tests.
22623
22624 2010-04-02  Bruno Haible  <bruno@clisp.org>
22625
22626         gnulib-tool: Ensure the tests in the main directory are executed first.
22627         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
22628         start with the current directory.
22629
22630 2010-04-02  Bruno Haible  <bruno@clisp.org>
22631
22632         Tests for module 'havelib', moved here from GNU gettext.
22633         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
22634         modifications.
22635         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
22636         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
22637         with modifications.
22638         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
22639         modifications.
22640         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
22641         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
22642         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
22643         with modifications.
22644         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
22645         with modifications.
22646         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
22647         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
22648         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
22649         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
22650         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
22651         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
22652         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
22653         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
22654         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
22655         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
22656         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
22657         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
22658         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
22659         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
22660         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
22661         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
22662         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
22663         with modifications.
22664         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
22665         with modifications.
22666         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
22667         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
22668         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
22669         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
22670         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
22671         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
22672         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
22673         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
22674         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
22675         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
22676         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
22677         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
22678         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
22679         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
22680         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
22681         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
22682         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
22683         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
22684         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
22685         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
22686         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
22687         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
22688         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
22689         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
22690         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
22691         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
22692         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
22693         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
22694         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
22695         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
22696         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
22697         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
22698         * tests/havelib/rpathx/rpathx.c: New file, from
22699         gettext/autoconf-lib-link.
22700         * tests/havelib/rpathx/Makefile.am: New file, from
22701         gettext/autoconf-lib-link.
22702         * tests/havelib/rpathx/configure.ac: New file, from
22703         gettext/autoconf-lib-link with modifications.
22704         * tests/havelib/rpathy/rpathy.c: New file, from
22705         gettext/autoconf-lib-link.
22706         * tests/havelib/rpathy/Makefile.am: New file, from
22707         gettext/autoconf-lib-link.
22708         * tests/havelib/rpathy/configure.ac: New file, from
22709         gettext/autoconf-lib-link with modifications.
22710         * tests/havelib/rpathz/rpathz.c: New file, from
22711         gettext/autoconf-lib-link.
22712         * tests/havelib/rpathz/Makefile.am: New file, from
22713         gettext/autoconf-lib-link.
22714         * tests/havelib/rpathz/configure.ac: New file, from
22715         gettext/autoconf-lib-link with modifications.
22716         * tests/havelib/rpathlx/usex.c: New file, from
22717         gettext/autoconf-lib-link.
22718         * tests/havelib/rpathlx/Makefile.am: New file, from
22719         gettext/autoconf-lib-link.
22720         * tests/havelib/rpathlx/configure.ac: New file, from
22721         gettext/autoconf-lib-link with modifications.
22722         * tests/havelib/rpathly/usey.c: New file, from
22723         gettext/autoconf-lib-link.
22724         * tests/havelib/rpathly/Makefile.am: New file, from
22725         gettext/autoconf-lib-link.
22726         * tests/havelib/rpathly/configure.ac: New file, from
22727         gettext/autoconf-lib-link with modifications.
22728         * tests/havelib/rpathlz/usez.c: New file, from
22729         gettext/autoconf-lib-link.
22730         * tests/havelib/rpathlz/Makefile.am: New file, from
22731         gettext/autoconf-lib-link.
22732         * tests/havelib/rpathlz/configure.ac: New file, from
22733         gettext/autoconf-lib-link with modifications.
22734         * tests/havelib/rpathlyx/usey.c: New file, from
22735         gettext/autoconf-lib-link.
22736         * tests/havelib/rpathlyx/Makefile.am: New file, from
22737         gettext/autoconf-lib-link.
22738         * tests/havelib/rpathlyx/configure.ac: New file, from
22739         gettext/autoconf-lib-link with modifications.
22740         * tests/havelib/rpathlzyx/usez.c: New file, from
22741         gettext/autoconf-lib-link.
22742         * tests/havelib/rpathlzyx/Makefile.am: New file, from
22743         gettext/autoconf-lib-link.
22744         * tests/havelib/rpathlzyx/configure.ac: New file, from
22745         gettext/autoconf-lib-link with modifications.
22746         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
22747         with modifications.
22748
22749 2010-04-02  Bruno Haible  <bruno@clisp.org>
22750
22751         gnulib-tool: Create distributed built sources also for the tests.
22752         * gnulib-tool (func_create_testdir): Also generate distributed built
22753         sources in the tests directory.
22754
22755 2010-04-02  Bruno Haible  <bruno@clisp.org>
22756
22757         gnulib-tool: Obey user's environment variables.
22758         * gnulib-tool (func_create_testdir): When creating built sources,
22759         respect the environment variables for autoconf, automake, etc. given by
22760         the user.
22761
22762 2010-04-02  Bruno Haible  <bruno@clisp.org>
22763
22764         gnulib-tool: Provide the value of --m4-base to modules.
22765         * gnulib-tool (func_import, func_create_testdir): Emit a definition
22766         of gl_m4_base.
22767
22768 2010-04-02  Eric Blake  <eblake@redhat.com>
22769
22770         maint.mk: fix some fallout
22771         * NEWS: Document the incompatible change, and its effect on cfg.mk.
22772         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
22773
22774 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22775
22776         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
22777         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
22778         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
22779         (sc_cast_of_x_alloc_return_value): Likewise.
22780         (sc_cast_of_alloca_return_value): Likewise.
22781         (sc_space_tab): Likewise.
22782         (sc_prohibit_atoi_atof): Likewise.
22783         (sc_prohibit_magic_number_exit): Likewise.
22784         (sc_error_exit_success): Likewise.
22785         (sc_file_system): Likewise.
22786         (sc_prohibit_have_config_h): Likewise.
22787         (sc_require_config_h): Likewise.
22788         (sc_prohibit_HAVE_MBRTOWC): Likewise.
22789         (sc_obsolete_symbols): Likewise.
22790         (sc_changelog): Likewise.
22791         (sc_program_name): Likewise.
22792         (sc_the_the): Likewise.
22793         (sc_trailing_blank): Likewise.
22794         (sc_two_space_separator_in_usage): Likewise.
22795         (sc_useless_cpp_parens): Likewise.
22796         (sc_GPL_version): Likewise.
22797         (sc_GFDL_version): Likewise.
22798         (sc_texinfo_acronym): Likewise.
22799         (sc_prohibit_cvs_keyword): Likewise.
22800         (sc_prohibit_stat_st_blocks): Likewise.
22801         (sc_prohibit_S_IS_definition): Likewise.
22802         (sc_redundant_const): Likewise.
22803         (sc_makefile_TAB_only_indentation): Likewise.
22804         (sc_m4_quote_check): Likewise.
22805         (sc_makefile_path_separator_check): Likewise.
22806         (sc_copyright_check): Likewise.
22807         (sc_Wundef_boolean): Likewise.
22808         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22809
22810         maint.mk: match 0 or more whitespace-before-function-call '('
22811         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
22812         that have zero or two-and-more spaces between the function name
22813         and the open parenthesis.
22814         (sc_error_message_warn_fatal): Likewise.
22815         (sc_error_message_uppercase): Likewise.
22816         (sc_error_message_period): Likewise.
22817
22818 2010-03-31  Eric Blake  <eblake@redhat.com>
22819
22820         maint.mk: check for [ as well as test
22821         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
22822         Based on a libvirt report by Matthias Bolte.
22823
22824         gnumakefile: don't squelch _version output
22825         * top/GNUmakefile (_version): Create one-shot dependency rather
22826         than using $(shell) when version must be regenerated.
22827         (_autoreconf): Run verbosely, by default.
22828
22829         sys_time: avoid compiler warnings
22830         * lib/sys_time.in.h (includes): Ensure gcc pragma is
22831         unconditional, fixing regression from 2010-03-29.
22832         Reported by Simon Josefsson.
22833
22834 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22835
22836         maint.mk: s/_header_without_use/_sc_header_without_use/
22837         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
22838         (sc_prohibit_assert_without_use): Use the new name.
22839         (sc_prohibit_close_stream_without_use): Likewise.
22840         (sc_prohibit_getopt_without_use): Likewise.
22841         (sc_prohibit_quotearg_without_use): Likewise.
22842         (sc_prohibit_quote_without_use): Likewise.
22843         (sc_prohibit_long_options_without_use): Likewise.
22844         (sc_prohibit_inttostr_without_use): Likewise.
22845         (sc_prohibit_ignore_value_without_use): Likewise.
22846         (sc_prohibit_error_without_use): Likewise.
22847         (sc_prohibit_xalloc_without_use): Likewise.
22848         (sc_prohibit_hash_without_use): Likewise.
22849         (sc_prohibit_hash_pjw_without_use): Likewise.
22850         (sc_prohibit_safe_read_without_use): Likewise.
22851         (sc_prohibit_argmatch_without_use): Likewise.
22852         (sc_prohibit_canonicalize_without_use): Likewise.
22853         (sc_prohibit_root_dev_ino_without_use): Likewise.
22854         (sc_prohibit_openat_without_use): Likewise.
22855         (sc_prohibit_c_ctype_without_use): Likewise.
22856         (sc_prohibit_signal_without_use): Likewise.
22857         (sc_prohibit_intprops_without_use): Likewise.
22858
22859 2010-03-30  Eric Blake  <eblake@redhat.com>
22860
22861         maint: improve module indicators
22862         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
22863         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
22864         columns, and avoid extra macro expansion.
22865
22866         fdopendir: work around FreeBSD bug
22867         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22868         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
22869         * modules/dirent (Makefile.am): Substitute it.
22870         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
22871         declaration.
22872         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
22873         fix.
22874         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22875
22876 2010-03-29  Bruno Haible  <bruno@clisp.org>
22877
22878         Emit #pragma system_header after the inclusion guard, not before.
22879         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
22880         guard that spans the entire file, not before. This enables an
22881         optimization in GCC's preprocessor.
22882         * lib/ctype.in.h: Likewise.
22883         * lib/dirent.in.h: Likewise.
22884         * lib/errno.in.h: Likewise.
22885         * lib/float.in.h: Likewise.
22886         * lib/getopt.in.h: Likewise.
22887         * lib/iconv.in.h: Likewise.
22888         * lib/langinfo.in.h: Likewise.
22889         * lib/locale.in.h: Likewise.
22890         * lib/math.in.h: Likewise.
22891         * lib/netdb.in.h: Likewise.
22892         * lib/netinet_in.in.h: Likewise.
22893         * lib/pty.in.h: Likewise.
22894         * lib/sched.in.h: Likewise.
22895         * lib/se-selinux.in.h: Likewise.
22896         * lib/search.in.h: Likewise.
22897         * lib/spawn.in.h: Likewise.
22898         * lib/stdarg.in.h: Likewise.
22899         * lib/stdint.in.h: Likewise.
22900         * lib/string.in.h: Likewise.
22901         * lib/strings.in.h: Likewise.
22902         * lib/sys_file.in.h: Likewise.
22903         * lib/sys_ioctl.in.h: Likewise.
22904         * lib/sys_time.in.h: Likewise.
22905         * lib/sys_times.in.h: Likewise.
22906         * lib/sys_utsname.in.h: Likewise.
22907         * lib/sys_wait.in.h: Likewise.
22908         * lib/sysexits.in.h: Likewise.
22909         * lib/wctype.in.h: Likewise.
22910
22911 2010-03-28  James Youngman  <jay@gnu.org>
22912
22913         save-cwd: don't leak a file descriptor when the caller execs.
22914         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
22915         saved file descriptor.
22916         * modules/save-cwd (Depends-on): Depend on cloexec.
22917
22918 2010-03-29  Bruno Haible  <bruno@clisp.org>
22919
22920         Remove vestiges of fts-lgpl module.
22921         * lib/fts_.h: Assume GNULIB_FTS is 1.
22922         * lib/fts.c: Likewise.
22923         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22924
22925 2010-03-28  Bruno Haible  <bruno@clisp.org>
22926
22927         Fix definition of tests witness macro.
22928         * gnulib-tool (func_import): Fix definition of witness macro.
22929
22930 2010-03-28  Bruno Haible  <bruno@clisp.org>
22931
22932         Fix ioctl's protoype on glibc systems.
22933         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
22934         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
22935         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
22936         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
22937         signature. If not, arrange to replace the ioctl function.
22938         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22939         REPLACE_IOCTL.
22940         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
22941         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
22942         Reported by Ludovic Courtès <ludo@gnu.org>.
22943
22944 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
22945
22946         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
22947         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
22948         made it so grep -r --include=GLOB* ... did not work.
22949
22950 2010-03-26  Jim Meyering  <meyering@redhat.com>
22951             Eric Blake  <eblake@redhat.com>
22952
22953         maint.mk: prohibit use of test's -o and -a operators
22954         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
22955
22956 2010-03-28  Bruno Haible  <bruno@clisp.org>
22957
22958         Remove unused GNULIB_XYZ macro definitions.
22959         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
22960         invocation.
22961
22962 2010-03-28  Bruno Haible  <bruno@clisp.org>
22963
22964         Mark privileged tests modules.
22965         * modules/idpriv-drop-tests (Status): New section.
22966         * modules/idpriv-droptemp-tests (Status): New section.
22967
22968 2010-03-28  Bruno Haible  <bruno@clisp.org>
22969
22970         Split C++ tests into separate tests modules.
22971         * modules/dirent-c++-tests: New file, extracted from
22972         modules/dirent-tests.
22973         * modules/dirent-tests: Depend on it.
22974         * modules/fcntl-h-c++-tests: New file, extracted from
22975         modules/fcntl-h-tests.
22976         * modules/fcntl-h-tests: Depend on it.
22977         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22978         * modules/glob-tests: Depend on it.
22979         * modules/iconv-h-c++-tests: New file, extracted from
22980         modules/iconv-h-tests.
22981         * modules/iconv-h-tests: Depend on it.
22982         * modules/langinfo-c++-tests: New file, extracted from
22983         modules/langinfo-tests.
22984         * modules/langinfo-tests: Depend on it.
22985         * modules/locale-c++-tests: New file, extracted from
22986         modules/locale-tests.
22987         * modules/locale-tests: Depend on it.
22988         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22989         * modules/math-tests: Depend on it.
22990         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22991         * modules/pty-tests: Depend on it.
22992         * modules/search-c++-tests: New file, extracted from
22993         modules/search-tests.
22994         * modules/search-tests: Depend on it.
22995         * modules/signal-c++-tests: New file, extracted from
22996         modules/signal-tests.
22997         * modules/signal-tests: Depend on it.
22998         * modules/spawn-c++-tests: New file, extracted from
22999         modules/spawn-tests.
23000         * modules/spawn-tests: Depend on it.
23001         * modules/stdio-c++-tests: New file, extracted from
23002         modules/stdio-tests.
23003         * modules/stdio-tests: Depend on it.
23004         * modules/stdlib-c++-tests: New file, extracted from
23005         modules/stdlib-tests.
23006         * modules/stdlib-tests: Depend on it.
23007         * modules/string-c++-tests: New file, extracted from
23008         modules/string-tests.
23009         * modules/string-tests: Depend on it.
23010         * modules/sys_ioctl-c++-tests: New file, extracted from
23011         modules/sys_ioctl-tests.
23012         * modules/sys_ioctl-tests: Depend on it.
23013         * modules/sys_select-c++-tests: New file, extracted from
23014         modules/sys_select-tests.
23015         * modules/sys_select-tests: Depend on it.
23016         * modules/sys_socket-c++-tests: New file, extracted from
23017         modules/sys_socket-tests.
23018         * modules/sys_socket-tests: Depend on it.
23019         * modules/sys_stat-c++-tests: New file, extracted from
23020         modules/sys_stat-tests.
23021         * modules/sys_stat-tests: Depend on it.
23022         * modules/sys_time-c++-tests: New file, extracted from
23023         modules/sys_time-tests.
23024         * modules/sys_time-tests: Depend on it.
23025         * modules/time-c++-tests: New file, extracted from modules/time-tests.
23026         * modules/time-tests: Depend on it.
23027         * modules/unistd-c++-tests: New file, extracted from
23028         modules/unistd-tests.
23029         * modules/unistd-tests: Depend on it.
23030         * modules/wchar-c++-tests: New file, extracted from
23031         modules/wchar-tests.
23032         * modules/wchar-tests: Depend on it.
23033         * modules/wctype-c++-tests: New file, extracted from
23034         modules/wctype-tests.
23035         * modules/wctype-tests: Depend on it.
23036         Reported by Simon Josefsson.
23037
23038 2010-03-28  Bruno Haible  <bruno@clisp.org>
23039
23040         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
23041         * gnulib-tool (func_exists_module): New function, extracted from
23042         func_verify_module.
23043         (func_verify_module): Use it.
23044         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
23045         'foo' only if 'foo' exists.
23046         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
23047         module.
23048
23049 2010-03-28  Bruno Haible  <bruno@clisp.org>
23050
23051         gnulib-tool: Add support for special categories of tests.
23052         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
23053         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
23054         (func_usage): Document them.
23055         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
23056         inc_unportable_tests, inc_all_tests): New variables.
23057         (func_acceptable): Consider these variables.
23058         (func_modules_transitive_closure): Make it work when the 'Status' field
23059         consists of multiple words.
23060         (func_import): Store and restore the values of inc_cxx_tests,
23061         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
23062         inc_all_tests in gnulib-comp.m4.
23063         (func_create_testdir): Set inc_all_tests to true.
23064         * doc/gnulib.texi (Extra tests modules): New section.
23065         Suggested by Jim Meyering.
23066
23067 2010-03-28  Bruno Haible  <bruno@clisp.org>
23068
23069         ansi-c++-opt: Allow turning off the C++ build by default.
23070         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
23071         gl_CXX_CHOICE_DEFAULT_NO is defined.
23072         Requested by Eric Blake.
23073
23074 2010-03-28  Bruno Haible  <bruno@clisp.org>
23075
23076         unistd: Avoid #define replacements in C++ mode.
23077         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
23078         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
23079         setsockopt, shutdown, select): In C++, attach a warning to the function
23080         if possible, rather than #defining the symbol to a dysfunctional alias.
23081         Reported by John W. Eaton <jwe@gnu.org>.
23082
23083 2010-03-28  Bruno Haible  <bruno@clisp.org>
23084
23085         Fix link errors on mingw.
23086         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
23087         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
23088         $(LIBSOCKET).
23089         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
23090         $(LIBSOCKET).
23091
23092 2010-03-28  Bruno Haible  <bruno@clisp.org>
23093             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23094
23095         lib-ignore: Determine different options for different compilers.
23096         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
23097         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
23098         Add comments.
23099         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
23100         * NEWS: Mention the change.
23101
23102 2010-03-27  Bruno Haible  <bruno@clisp.org>
23103
23104         Remove unused GNULIB_XYZ macro definitions.
23105         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23106         * modules/fseek (configure.ac): Likewise.
23107         * modules/ioctl (configure.ac): Likewise.
23108         * modules/open (configure.ac): Likewise.
23109         * modules/stdlib-safer (configure.ac): Likewise.
23110
23111 2010-03-27  Bruno Haible  <bruno@clisp.org>
23112
23113         Add a remark about certain modules.
23114         * modules/malloc (Comment): New section.
23115         * modules/realloc (Comment): Likewise.
23116         * modules/sigpipe (Comment): Likewise.
23117
23118 2010-03-27  Bruno Haible  <bruno@clisp.org>
23119
23120         Resolve conflict between the two kinds of module indicators.
23121         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
23122         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
23123         * modules/canonicalize (configure.ac): Invoke
23124         gl_MODULE_INDICATOR_FOR_TESTS.
23125         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
23126         GNULIB_XYZ.
23127         * tests/test-dirent-c++.cc: Likewise.
23128         * tests/test-dirent-safer.c: Likewise.
23129         * tests/test-dup2.c: Likewise.
23130         * tests/test-fchdir.c: Likewise.
23131         * tests/test-fcntl-h-c++.cc: Likewise.
23132         * tests/test-getopt.c: Likewise.
23133         * tests/test-getopt.h: Likewise.
23134         * tests/test-langinfo-c++.cc: Likewise.
23135         * tests/test-locale-c++.cc: Likewise.
23136         * tests/test-math-c++.cc: Likewise.
23137         * tests/test-pty-c++.cc: Likewise.
23138         * tests/test-search-c++.cc: Likewise.
23139         * tests/test-signal-c++.cc: Likewise.
23140         * tests/test-spawn-c++.cc: Likewise.
23141         * tests/test-stdio-c++.cc: Likewise.
23142         * tests/test-stdlib-c++.cc: Likewise.
23143         * tests/test-string-c++.cc: Likewise.
23144         * tests/test-sys_ioctl-c++.cc: Likewise.
23145         * tests/test-sys_select-c++.cc: Likewise.
23146         * tests/test-sys_socket-c++.cc: Likewise.
23147         * tests/test-sys_stat-c++.cc: Likewise.
23148         * tests/test-sys_time-c++.cc: Likewise.
23149         * tests/test-time-c++.cc: Likewise.
23150         * tests/test-unistd-c++.cc: Likewise.
23151         * tests/test-wchar-c++.cc: Likewise.
23152         * tests/uninorm/test-u8-nfc.c: Likewise.
23153         * tests/uninorm/test-u8-nfd.c: Likewise.
23154         * tests/uninorm/test-u8-nfkc.c: Likewise.
23155         * tests/uninorm/test-u8-nfkd.c: Likewise.
23156         * tests/uninorm/test-u16-nfc.c: Likewise.
23157         * tests/uninorm/test-u16-nfd.c: Likewise.
23158         * tests/uninorm/test-u16-nfkc.c: Likewise.
23159         * tests/uninorm/test-u16-nfkd.c: Likewise.
23160         * tests/uninorm/test-u32-nfc.c: Likewise.
23161         * tests/uninorm/test-u32-nfc-big.c: Likewise.
23162         * tests/uninorm/test-u32-nfd.c: Likewise.
23163         * tests/uninorm/test-u32-nfd-big.c: Likewise.
23164         * tests/uninorm/test-u32-nfkc.c: Likewise.
23165         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
23166         * tests/uninorm/test-u32-nfkd.c: Likewise.
23167         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
23168         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23169
23170 2010-03-27  Bruno Haible  <bruno@clisp.org>
23171
23172         Distinguish two kinds of module indicators.
23173         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
23174         gl_MODULE_INDICATOR.
23175         (gl_MODULE_INDICATOR): New macro.
23176         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23177         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
23178         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23179         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23180         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23181         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23182         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23183         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23184         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23185         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23186         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23187         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23188         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23189         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23190         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23191         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23192         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
23193         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
23194         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
23195         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
23196         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
23197         * modules/cloexec (configure.ac): Likewise.
23198         * modules/getopt-gnu (configure.ac): Likewise.
23199         * modules/uninorm/u8-normalize (configure.ac): Likewise.
23200         * modules/uninorm/u16-normalize (configure.ac): Likewise.
23201         * modules/uninorm/u32-normalize (configure.ac): Likewise.
23202         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
23203
23204 2010-03-27  Bruno Haible  <bruno@clisp.org>
23205
23206         New module description field 'Comment'.
23207         * gnulib-tool: New option --extract-comment.
23208         (func_usage): Document it.
23209         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
23210         (func_get_comment): New function.
23211         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
23212
23213 2010-03-27  Bruno Haible  <bruno@clisp.org>
23214
23215         Addendum to 2010-02-07 commit.
23216         * gnulib-tool (func_usage): Document --extract-applicability option.
23217
23218 2010-03-27  Bruno Haible  <bruno@clisp.org>
23219
23220         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
23221         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
23222         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
23223         rather than link errors.
23224
23225 2010-03-27  Bruno Haible  <bruno@clisp.org>
23226
23227         Avoid side effects from tests-related modules on the compilation of lib.
23228         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
23229         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
23230         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
23231         parameter. Emit into AM_CPPFLAGS a definition of the designated C
23232         macro.
23233         (func_import): Define a witness macro. Assign it a value that depends
23234         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
23235         tests-related modules.
23236         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
23237         Reported by Jim Meyering.
23238
23239 2010-03-27  Bruno Haible  <bruno@clisp.org>
23240
23241         Factorize common .m4 code.
23242         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
23243         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
23244         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
23245         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
23246         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23247         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
23248         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
23249         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23250         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23251         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23252         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
23253         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23254         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23255         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23256         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23257         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
23258         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23259         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23261         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
23262         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
23263         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23264         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23265         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23266         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
23267         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
23268         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
23269         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
23270         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
23271         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
23272         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
23273         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
23274
23275 2010-03-27  Bruno Haible  <bruno@clisp.org>
23276
23277         Fix a compilation error on Cygwin with g++ >= 4.3.
23278         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
23279         if it is undefined or if we alias it to chmod.
23280         (lstat): Don't warn about the use of this function if it is undefined
23281         or if we alias it to stat.
23282         Reported by Simon Josefsson.
23283
23284 2010-03-27  Bruno Haible  <bruno@clisp.org>
23285
23286         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
23287         * modules/getlogin (configure.ac): Update.
23288
23289         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
23290         * modules/getlogin_r (configure.ac): Update.
23291
23292         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
23293         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
23294         * modules/inet_ntop (configure.ac): Update.
23295
23296         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
23297         * modules/inet_pton (configure.ac): Update.
23298
23299         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
23300         * modules/mbslen (configure.ac): Update.
23301
23302         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
23303         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
23304         * modules/forkpty (configure.ac): Update.
23305         * modules/openpty (configure.ac): Update.
23306
23307 2010-03-26  Simon Josefsson  <simon@josefsson.org>
23308
23309         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
23310         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
23311
23312 2010-03-25  Eric Blake  <eblake@redhat.com>
23313
23314         maint: use pragma consistently across replacement headers
23315         * lib/ctype.in.h (system_header): Hoist for consistent placement.
23316         * lib/dirent.in.h (system_header): Likewise.
23317         * lib/errno.in.h (system_header): Likewise.
23318         * lib/float.in.h (system_header): Likewise.
23319         * lib/getopt.in.h (system_header): Likewise.
23320         * lib/iconv.in.h (system_header): Likewise.
23321         * lib/inttypes.in.h (system_header): Likewise.
23322         * lib/langinfo.in.h (system_header): Likewise.
23323         * lib/locale.in.h (system_header): Likewise.
23324         * lib/math.in.h (system_header): Likewise.
23325         * lib/netdb.in.h (system_header): Likewise.
23326         * lib/netinet_in.in.h (system_header): Likewise.
23327         * lib/pty.in.h (system_header): Likewise.
23328         * lib/sched.in.h (system_header): Likewise.
23329         * lib/se-selinux.in.h (system_header): Likewise.
23330         * lib/search.in.h (system_header): Likewise.
23331         * lib/spawn.in.h (system_header): Likewise.
23332         * lib/stdarg.in.h (system_header): Likewise.
23333         * lib/stdint.in.h (system_header): Likewise.
23334         * lib/string.in.h (system_header): Likewise.
23335         * lib/strings.in.h (system_header): Likewise.
23336         * lib/sys_file.in.h (system_header): Likewise.
23337         * lib/sys_ioctl.in.h (system_header): Likewise.
23338         * lib/sys_socket.in.h (system_header): Likewise.
23339         * lib/sys_times.in.h (system_header): Likewise.
23340         * lib/sys_utsname.in.h (system_header): Likewise.
23341         * lib/sys_wait.in.h (system_header): Likewise.
23342         * lib/sysexits.in.h (system_header): Likewise.
23343         * lib/unistd.in.h (system_header): Likewise.
23344         * lib/wctype.in.h (system_header): Likewise.
23345
23346         arpa/inet: fix mingw compilation warning
23347         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
23348         Reported by Matthew Bolte.
23349
23350 2010-03-25  Bruno Haible  <bruno@clisp.org>
23351
23352         Avoid collision between gnulib wrapper and libintl wrapper.
23353         * lib/printf.c (printf): Don't define if a printf wrapper is already
23354         defined in intl/printf.c.
23355         Reported by Michel Boaventura <michel@michelboaventura.com>.
23356
23357 2010-03-25  Bruno Haible  <bruno@clisp.org>
23358
23359         Use ANSI C.
23360         * lib/readutmp.h (getutent): Provide ANSI C prototype.
23361
23362 2010-03-25  Bruno Haible  <bruno@clisp.org>
23363
23364         Minor formatting changes.
23365         * lib/acosl.c: Insert space before function argument list.
23366         * lib/argz.c: Likewise.
23367         * lib/asinl.c: Likewise.
23368         * lib/expl.c: Likewise.
23369         * lib/gen-uni-tables.c: Likewise.
23370         * lib/gettext.h: Likewise.
23371         * lib/glthread/lock.h: Likewise.
23372         * lib/tanl.c: Likewise.
23373         * lib/uniname/uniname.c: Likewise.
23374         * tests/test-idpriv-drop.c: Likewise.
23375         * tests/test-idpriv-droptemp.c: Likewise.
23376         * tests/test-lock.c: Likewise.
23377         * tests/test-tls.c: Likewise.
23378         * lib/argp-help.c: Insert space before function-like macro argument
23379         list.
23380         * lib/memcmp.c: Likewise.
23381         * tests/test-base64.c: Likewise.
23382         * lib/localename.c: Insert space before sizeof's argument list.
23383         * lib/safe-alloc.h: Likewise.
23384         * lib/file-set.h: Insert space before macro argument list.
23385         * tests/test-argp.c: Likewise.
23386         * lib/argp-namefrob.h: Insert space before function parameter list.
23387         * lib/getaddrinfo.c: Likewise.
23388         * lib/netdb.in.h: Likewise.
23389         * lib/parse-duration.h: Likewise.
23390         * lib/parse-duration.c: Likewise.
23391         * lib/poll.c: Likewise.
23392         * lib/select.c: Likewise.
23393         * lib/trim.h: Likewise.
23394         * tests/test-usleep.c: Likewise.
23395         * lib/ldexpl.c: Insert space before function parameter list and before
23396         function argument list.
23397         * lib/logl.c: Likewise.
23398         * lib/sqrtl.c: Likewise.
23399         * lib/trim.c: Likewise.
23400         * lib/cosl.c: Use GNU style indentation. Insert space before function
23401         argument list.
23402         * lib/sinl.c: Likewise.
23403         * lib/tsearch.c: Insert space after 'for'.
23404         Reported by Jim Meyering.
23405
23406 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
23407
23408         * maint.mk (sc_Wundef_boolean): Check for the presence of the
23409         config header before grepping, as it's not present before
23410         autoreconf/configure are run.  Reported by Simon Josefsson.
23411
23412 2010-03-23  Bruno Haible  <bruno@clisp.org>
23413
23414         pt_chown: Make it work with automake < 1.11.
23415         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
23416         Reported by Simon Josefsson.
23417
23418 2010-03-23  Bruno Haible  <bruno@clisp.org>
23419
23420         pt_chown: Don't depend on GPLed modules.
23421         * lib/pt_chown.c: Don't include idpriv.h.
23422         (main): Don't drop privileges.
23423         * modules/pt_chown (Depends-on): Remove idpriv-drop.
23424         Reported by Simon Josefsson.
23425
23426 2010-03-24  Simon Josefsson  <simon@josefsson.org>
23427
23428         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
23429         suggestions from karl@freefriends.org (Karl Berry).
23430
23431 2010-03-22  Eric Blake  <eblake@redhat.com>
23432
23433         gethostname: further tweaks
23434         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
23435         are overriding gethostname.
23436         Suggested by Bruno Haible.
23437
23438 2010-03-21  Bruno Haible  <bruno@clisp.org>
23439
23440         Fix comments.
23441         * lib/forkpty.c (rpl_forkpty): Fix comment.
23442         * lib/openpty.c (rpl_openpty): Likewise.
23443         Reported by Eric Blake.
23444
23445 2010-03-22  Eric Blake  <eblake@redhat.com>
23446
23447         gethostname: fix build on mingw
23448         * lib/unistd.in.h (includes): Work around fact that mingw
23449         <winsock2.h> re-includes <unistd.h>, by avoiding any
23450         redeclarations if we are being included by <winsock2.h>.
23451         Reported by Matthias Bolte.
23452
23453 2010-03-21  Bruno Haible  <bruno@clisp.org>
23454
23455         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23456         * lib/forkpty.c (forkpty): New replacement function, from glibc with
23457         modifications.
23458         * lib/pty.in.h (forkpty): Update declaration. Add comments.
23459         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
23460         provide the replacement.
23461         * modules/forkpty (Depends-on): Add openpty, login_tty.
23462         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
23463         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
23464         * doc/glibc-functions/forkpty.texi: More supported platforms.
23465         * config/srclist.txt: Add forkpty.c (commented).
23466
23467 2010-03-21  Bruno Haible  <bruno@clisp.org>
23468
23469         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
23470         (Makefile.am): Verify that PTY_LIB is defined.
23471
23472         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
23473
23474 2010-03-21  Bruno Haible  <bruno@clisp.org>
23475
23476         Tests for module 'login_tty'.
23477         * modules/login_tty-tests: New file.
23478         * tests/test-login_tty.c: New file.
23479
23480         New module 'login_tty'.
23481         * lib/login_tty.c: New file.
23482         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
23483         * modules/login_tty: New file.
23484         * doc/glibc-functions/login_tty.texi: Mention the new module.
23485
23486 2010-03-21  Bruno Haible  <bruno@clisp.org>
23487
23488         login_tty: Documentation.
23489         * doc/glibc-functions/login_tty.texi: New file.
23490         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
23491
23492 2010-03-21  Bruno Haible  <bruno@clisp.org>
23493
23494         pty: Consistent macro naming.
23495         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
23496         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
23497         * modules/pty (configure.ac): Update.
23498
23499 2010-03-21  Bruno Haible  <bruno@clisp.org>
23500
23501         Tests for openpty: Make stricter.
23502         * tests/test-openpty.c (main): Add test of canonical processing and
23503         erase.
23504         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
23505
23506         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23507         * lib/openpty.c (openpty): New replacement function.
23508         * lib/pty.in.h: Include <termios.h>.
23509         (openpty): Update declaration. Add comments.
23510         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
23511         is not declared, arrange to provide the replacement. Check for _getpty
23512         and posix_openpt.
23513         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
23514         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
23515         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
23516         * modules/pty-tests (test_pty_c___LDADD): New variable.
23517         * doc/glibc-functions/openpty.texi: More supported platforms.
23518
23519 2010-03-21  Bruno Haible  <bruno@clisp.org>
23520
23521         setenv: Tweaks.
23522         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
23523         the test program.
23524         * doc/posix-functions/setenv.texi: Update platforms list.
23525
23526 2010-03-21  Bruno Haible  <bruno@clisp.org>
23527
23528         New module 'unlockpt'.
23529         * lib/unlockpt.c: New file, from glibc with modifications.
23530         * m4/unlockpt.m4: New file.
23531         * modules/unlockpt: New file.
23532         * lib/stdlib.in.h (unlockpt): New declaration.
23533         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
23534         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
23535         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
23536         HAVE_UNLOCKPT.
23537         * doc/posix-functions/unlockpt.texi: Mention the new module.
23538         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
23539         * config/srclist.txt: Add unlockpt.c (commented).
23540
23541 2010-03-21  Jim Meyering  <meyering@redhat.com>
23542
23543         maint.mk: prohibit inclusion of "intprops.h" without use
23544         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
23545
23546 2010-03-21  Bruno Haible  <bruno@clisp.org>
23547
23548         New module 'grantpt'.
23549         * lib/grantpt.c: New file, from glibc with modifications.
23550         * m4/grantpt.m4: New file.
23551         * modules/grantpt: New file.
23552         * lib/stdlib.in.h (grantpt): New declaration.
23553         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
23554         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
23555         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
23556         HAVE_GRANTPT.
23557         * doc/posix-functions/grantpt.texi: Mention the new module.
23558         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
23559         * config/srclist.txt: Add grantpt.c (commented).
23560
23561 2010-03-21  Bruno Haible  <bruno@clisp.org>
23562
23563         New module 'pt_chown'.
23564         * lib/pt_chown.c: New file, from glibc with modifications.
23565         * lib/pty-private.h: New file, from glibc with modifications.
23566         * modules/pt_chown: New file.
23567         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
23568
23569 2010-03-21  Bruno Haible  <bruno@clisp.org>
23570
23571         Tests for module 'ptsname'.
23572         * modules/ptsname-tests: New file.
23573         * tests/test-ptsname.c: New file.
23574
23575         New module 'ptsname'.
23576         * lib/ptsname.c: New file, from glibc with modifications.
23577         * m4/ptsname.m4: New file.
23578         * modules/ptsname: New file.
23579         * lib/stdlib.in.h (ptsname): New declaration.
23580         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
23581         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
23582         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
23583         HAVE_PTSNAME.
23584         * doc/posix-functions/ptsname.texi: Mention the new module.
23585         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
23586         * config/srclist.txt: Add ptsname.c (commented).
23587
23588 2010-03-21  Bruno Haible  <bruno@clisp.org>
23589
23590         Tests for module 'ttyname_r'.
23591         * modules/ttyname_r-tests: New file.
23592         * tests/test-ttyname_r.c: New file.
23593
23594         New module 'ttyname_r'.
23595         * lib/ttyname_r.c: New file.
23596         * m4/ttyname_r.m4: New file.
23597         * modules/ttyname_r: New file.
23598         * lib/unistd.in.h (ttyname_r): New declaration.
23599         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
23600         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
23601         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
23602         HAVE_TTYNAME_R.
23603         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
23604         * doc/posix-functions/ttyname_r.texi: Mention the new module.
23605
23606 2010-03-20  Bruno Haible  <bruno@clisp.org>
23607
23608         signal: Undefine macro definitions in C++ mode.
23609         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
23610         sigfillset): Undefine macro definitions from the system header in C++
23611         mode.
23612         Reported by John W. Eaton <jwe@gnu.org>.
23613
23614 2010-03-20  Bruno Haible  <bruno@clisp.org>
23615
23616         Ensure no #include statements inside extern "C" { ... }.
23617         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
23618         contain #include statements.
23619         * lib/time.in.h: Likewise.
23620
23621 2010-03-20  Bruno Haible  <bruno@clisp.org>
23622
23623         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
23624         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
23625         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
23626         Reported by John W. Eaton <jwe@gnu.org>.
23627
23628 2010-03-20  Bruno Haible  <bruno@clisp.org>
23629
23630         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
23631         Reported by Jim Meyering.
23632
23633 2010-03-20  Bruno Haible  <bruno@clisp.org>
23634
23635         pipe: Set errno upon failure.
23636         * lib/pipe.h: Specify that when -1 is returned, errno is set.
23637         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
23638         errno value in error message.
23639
23640 2010-03-20  Bruno Haible  <bruno@clisp.org>
23641             Jim Meyering  <meyering@redhat.com>
23642
23643         lchown: Avoid "unused variable" warning.
23644         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
23645
23646 2010-03-20  Bruno Haible  <bruno@clisp.org>
23647
23648         Work around unlink() bug on MacOS X 10.5.6.
23649         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
23650         attempting to unlink a parent directory.
23651         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
23652         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
23653         activate for the replacement function.
23654         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
23655
23656 2010-03-20  Bruno Haible  <bruno@clisp.org>
23657
23658         Fix link errors on Solaris 8.
23659         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
23660         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
23661
23662 2010-03-19  Jim Meyering  <meyering@redhat.com>
23663
23664         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
23665         The _LIBC implementation of build_range_exp correctly honors the
23666         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
23667         However, the non-_LIBC implementation would ignore that syntax-bit
23668         flag and return REG_ERANGE unconditionally.
23669         This change makes it honor that flag.
23670         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
23671         Make two pointer parameters "const".
23672         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
23673         (parse_bracket_exp): Update caller.
23674
23675         regex.m4: correct the reversed range endpoint ([b-a]) test
23676         * m4/regex.m4: When requiring that [b-a] evoke failure,
23677         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
23678         test pass once again for x86-based systems.
23679
23680 2010-03-19  Bruno Haible  <bruno@clisp.org>
23681
23682         scandir: Fix link error on Solaris 8.
23683         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
23684         macros.
23685
23686 2010-03-19  Bruno Haible  <bruno@clisp.org>
23687
23688         getusershell: Fix documentation.
23689         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
23690         module.
23691         * doc/glibc-functions/setusershell.texi: Likewise.
23692
23693         getusershell: Provide declaration, missing on Solaris 9.
23694         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
23695         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
23696         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
23697         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
23698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23699         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
23700         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
23701         HAVE_GETUSERSHELL.
23702         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
23703
23704 2010-03-19  Bruno Haible  <bruno@clisp.org>
23705
23706         wctype: Provide iswblank function.
23707         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
23708         exists and is fine.
23709         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
23710         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
23711         * tests/test-wctype.c (main): Re-enable the iswblank tests.
23712         * doc/posix-functions/iswblank.texi: Update.
23713
23714 2010-03-19  Bruno Haible  <bruno@clisp.org>
23715
23716         Tests of module 'pty' in C++ mode.
23717         * modules/pty-tests: New file.
23718         * tests/test-pty-c++.cc: New file.
23719         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23720
23721 2010-03-19  Eric Blake  <eblake@redhat.com>
23722
23723         logb: fix documentation
23724         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
23725         1.5 declaration bug.
23726
23727         forkpty, openpty: prefer glibc's const-safe prototype
23728         * lib/forkpty.c (rpl_forkpty): New file.
23729         * lib/openpty.c (rpl_openpty): Likewise.
23730         * modules/forkpty (Files): Distribute it.
23731         * modules/openpty (Files): Likewise.
23732         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
23733         check...
23734         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
23735         replacement for for non-const BSD signature.
23736         * modules/pty (Makefile.am): Substitute witnesses.
23737         * lib/pty.in.h (forkpty, openpty): Declare replacements.
23738         * tests/test-forkpty.c: Update signature check.
23739         * tests/test-openpty.c: Likewise.
23740         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
23741         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23742
23743         forkpty, openpty: split functions into new modules
23744         * modules/pty (Makefile.am): Substitute new witnesses.
23745         (Libraries): Move library detection...
23746         * modules/forkpty: ...into new module.
23747         * modules/openpty: Another new module.
23748         * modules/pty-tests: Rename and split...
23749         * modules/forkpty-tests: ...to this...
23750         * modules/openpty-tests: ...and this.
23751         * tests/test-pty.c: Rename and split...
23752         * tests/test-forkpty.c: ...to this...
23753         * tests/test-openpty.c: ...and this.
23754         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
23755         (gl_PTY): Split library searching...
23756         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
23757         (gl_FORKPTY, gl_OPENPTY): New macros.
23758         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
23759         * NEWS: Mention the split.
23760         * MODULES.html.sh (Misc): Document the modules.
23761         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
23762         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23763
23764         pty: improve replacement header
23765         * lib/pty.in.h: New file.
23766         * modules/pty (Files): Ship it.
23767         (Makefile.am): Always build replacement.
23768         * m4/pty.m4: Rename...
23769         * m4/pty_h.m4: ...to this.
23770         (gl_PTY): Modernize setting of witness macros; update check of
23771         forkpty to take proper advantage of cache.
23772         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
23773
23774         getopt: avoid compiler warning
23775         * lib/getopt.c (attribute_hidden): Remove unused macro.
23776
23777 2010-03-18  Bruno Haible  <bruno@clisp.org>
23778
23779         Fix link errors on Solaris 8.
23780         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
23781         * modules/search-tests (test_search_c___LDADD): Likewise.
23782         * modules/signal-tests (test_signal_c___LDADD): Likewise.
23783         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
23784         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
23785         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
23786         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
23787         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
23788         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
23789
23790 2010-03-18  Bruno Haible  <bruno@clisp.org>
23791
23792         Fix bug introduced on 2010-03-14.
23793         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
23794         (gl_SPAWN_H): Require it.
23795         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
23796         Reported by Simon Josefsson.
23797
23798 2010-03-18  Bruno Haible  <bruno@clisp.org>
23799
23800         Fix typo introduced on 2009-12-31.
23801         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
23802         posix_spawn_file_actions_adddup2.
23803
23804 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
23805         and Eric Blake  <eblake@redhat.com>
23806
23807         test-vc-list-files-git: make more robust
23808         * tests/test-vc-list-files-git.sh: Unset problematic environment
23809         variables.  Chain commands together.
23810
23811 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
23812
23813         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
23814         `AC_CHECK_DECL' invocation.
23815
23816 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
23817
23818         * lib/inttostr.c (inttostr): Make sure the invocation of verify
23819         appears before executable statements. Suggested by Petr Sumbera
23820         <Petr.Sumbera@Sun.COM>.
23821
23822 2010-03-14  Bruno Haible  <bruno@clisp.org>
23823
23824         * tests/test-flock.c (test_exclusive): Comment out a test that causes
23825         portability problems. Instead use a simpler test.
23826         (main): Check that invalid arguments are rejected only on Linux.
23827
23828 2010-03-14  Bruno Haible  <bruno@clisp.org>
23829
23830         Fix bug introduced on 2009-12-31.
23831         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23832         gl_PREREQ_SYS_H_WINSOCK2 always.
23833         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
23834         SYS_SOCKET_H variable.
23835         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
23836         Update comments.
23837         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
23838         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23839         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23840         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23841         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
23842
23843 2010-03-14  Bruno Haible  <bruno@clisp.org>
23844
23845         Fix values returned by sinl, cosl.
23846         * lib/trigl.h: Add specification comments.
23847         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
23848         that combines the values from the precomputed table with the values of
23849         the Chebyshev polynomials.
23850
23851 2010-03-14  Bruno Haible  <bruno@clisp.org>
23852
23853         Fix compilation error when modules 'posix_spawn[p]' are not used.
23854         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
23855         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
23856
23857 2010-03-14  Bruno Haible  <bruno@clisp.org>
23858
23859         Fix compilation error on mingw when module 'time_r' is not used.
23860         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
23861         is 1.
23862         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
23863         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23864         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
23865         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
23866
23867 2010-03-14  Bruno Haible  <bruno@clisp.org>
23868
23869         Fix compilation error with Sun C.
23870         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
23871         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
23872         instead of GCC specific ULONG_LONG_MAX.
23873         * lib/xstrtoll.c: Likewise.
23874         * lib/xstrtoull.c: Likewise.
23875
23876 2010-03-13  Bruno Haible  <bruno@clisp.org>
23877
23878         Allow the user to disable C++ code and tests.
23879         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
23880         (gl_PROG_ANSI_CXX): Require it.
23881
23882 2010-03-13  Bruno Haible  <bruno@clisp.org>
23883
23884         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
23885         cases.
23886
23887 2010-03-13  Bruno Haible  <bruno@clisp.org>
23888
23889         Test that gnulib does not break the standard C++ headers.
23890         * tests/test-locale-c++2.cc: New file.
23891         * modules/locale-tests (Files): Add it.
23892         (Makefile.am): Compile it for test-locale-c++.
23893         * tests/test-math-c++2.cc: New file.
23894         * modules/math-tests (Files): Add it.
23895         (Makefile.am): Compile it for test-math-c++.
23896         * tests/test-signal-c++2.cc: New file.
23897         * modules/signal-tests (Files): Add it.
23898         (Makefile.am): Compile it for test-signal-c++.
23899         * tests/test-stdio-c++2.cc: New file.
23900         * modules/stdio-tests (Files): Add it.
23901         (Makefile.am): Compile it for test-stdio-c++.
23902         * tests/test-stdlib-c++2.cc: New file.
23903         * modules/stdlib-tests (Files): Add it.
23904         (Makefile.am): Compile it for test-stdlib-c++.
23905         * tests/test-string-c++2.cc: New file.
23906         * modules/string-tests (Files): Add it.
23907         (Makefile.am): Compile it for test-string-c++.
23908         * tests/test-time-c++2.cc: New file.
23909         * modules/time-tests (Files): Add it.
23910         (Makefile.am): Compile it for test-time-c++.
23911         Reported by John W. Eaton <jwe@gnu.org>.
23912
23913 2010-03-13  Bruno Haible  <bruno@clisp.org>
23914
23915         * gnulib-tool (func_usage): Clarify which options are available for
23916         --create-testdir and --create-megatestdir.
23917
23918 2010-03-13  Bruno Haible  <bruno@clisp.org>
23919
23920         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
23921         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
23922         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
23923         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23924         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
23925         when appropriate.
23926         Reported by Jim Meyering.
23927
23928 2010-03-12  Simon Josefsson  <simon@josefsson.org>
23929
23930         * gnulib-tool (func_import): Explain origin of code.
23931
23932 2010-03-12  Bruno Haible  <bruno@clisp.org>
23933
23934         Fix problem with automake's definition of CXXLINK.
23935         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
23936         Reported by Simon Josefsson and Ludovic Courtès.
23937
23938 2010-03-12  Bruno Haible  <bruno@clisp.org>
23939
23940         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
23941         stable releases.
23942
23943 2010-03-11  Bruno Haible  <bruno@clisp.org>
23944
23945         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
23946         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
23947         whether the system provides one variant or multiple variants of the
23948         function.
23949         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
23950         C++ compilers.
23951         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
23952         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
23953         Reported by Jim Meyering.
23954
23955 2010-03-09  Simon Josefsson  <simon@josefsson.org>
23956
23957         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
23958
23959 2010-03-08  Bruno Haible  <bruno@clisp.org>
23960
23961         gnulib-tool: Add support for --libtool in --create-testdir.
23962         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
23963         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
23964
23965 2010-03-08  Eric Blake  <eblake@redhat.com>
23966
23967         gnulib-tool.texi: mention possibility of git submodule
23968         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
23969         submodules.
23970         * doc/.gitignore: Ignore another generated file.
23971
23972 2010-03-08  Karl Berry  <karl@gnu.org>
23973
23974         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23975         of committing gnulib files while skipping others.
23976
23977 2010-03-07  Bruno Haible  <bruno@clisp.org>
23978
23979         Tests of module 'wctype' in C++ mode.
23980         * tests/test-wctype-c++.cc: New file.
23981         * modules/wctype-tests (Files): Add it and tests/signature.h.
23982         (Depends-on): Add ansi-c++-opt.
23983         (Makefile.am): Arrange to compile and run test-wctype-c++.
23984
23985         Tests of module 'wchar' in C++ mode.
23986         * tests/test-wchar-c++.cc: New file.
23987         * modules/wchar-tests (Files): Add it and tests/signature.h.
23988         (Depends-on): Add ansi-c++-opt.
23989         (Makefile.am): Arrange to compile and run test-wchar-c++.
23990         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23991         gl_MODULE_INDICATOR.
23992
23993         Tests of module 'unistd' in C++ mode.
23994         * tests/test-unistd-c++.cc: New file.
23995         * modules/unistd-tests (Files): Add it and tests/signature.h.
23996         (Depends-on): Add ansi-c++-opt.
23997         (Makefile.am): Arrange to compile and run test-unistd-c++.
23998         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23999         gl_MODULE_INDICATOR.
24000
24001         Tests of module 'time' in C++ mode.
24002         * tests/test-time-c++.cc: New file.
24003         * modules/time-tests (Files): Add it and tests/signature.h.
24004         (Depends-on): Add ansi-c++-opt.
24005         (Makefile.am): Arrange to compile and run test-time-c++.
24006         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24007
24008         Tests of module 'sys_time' in C++ mode.
24009         * tests/test-sys_time-c++.cc: New file.
24010         * modules/sys_time-tests (Files): Add it and tests/signature.h.
24011         (Depends-on): Add ansi-c++-opt.
24012         (Makefile.am): Arrange to compile and run test-sys_time-c++.
24013         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
24014         gl_MODULE_INDICATOR.
24015
24016         Tests of module 'sys_stat' in C++ mode.
24017         * tests/test-sys_stat-c++.cc: New file.
24018         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
24019         (Depends-on): Add ansi-c++-opt.
24020         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
24021         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
24022         gl_MODULE_INDICATOR.
24023
24024         Tests of module 'sys_socket' in C++ mode.
24025         * tests/test-sys_socket-c++.cc: New file.
24026         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
24027         (Depends-on): Add ansi-c++-opt.
24028         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
24029         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
24030         gl_MODULE_INDICATOR.
24031
24032         Tests of module 'sys_select' in C++ mode.
24033         * tests/test-sys_select-c++.cc: New file.
24034         * modules/sys_select-tests (Files): Add it and tests/signature.h.
24035         (Depends-on): Add ansi-c++-opt.
24036         (Makefile.am): Arrange to compile and run test-sys_select-c++.
24037         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
24038         gl_MODULE_INDICATOR.
24039
24040         Tests of module 'sys_ioctl' in C++ mode.
24041         * tests/test-sys_ioctl-c++.cc: New file.
24042         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
24043         (Depends-on): Add ansi-c++-opt.
24044         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
24045         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
24046         gl_MODULE_INDICATOR.
24047
24048         Tests of module 'string' in C++ mode.
24049         * tests/test-string-c++.cc: New file.
24050         * modules/string-tests (Files): Add it and tests/signature.h.
24051         (Depends-on): Add ansi-c++-opt.
24052         (Makefile.am): Arrange to compile and run test-string-c++.
24053         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
24054         gl_MODULE_INDICATOR.
24055
24056         Tests of module 'stdlib' in C++ mode.
24057         * tests/test-stdlib-c++.cc: New file.
24058         * modules/stdlib-tests (Files): Add it and tests/signature.h.
24059         (Depends-on): Add ansi-c++-opt.
24060         (Makefile.am): Arrange to compile and run test-stdlib-c++.
24061         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
24062         gl_MODULE_INDICATOR.
24063
24064         Tests of module 'stdio' in C++ mode.
24065         * tests/test-stdio-c++.cc: New file.
24066         * modules/stdio-tests (Files): Add it and tests/signature.h.
24067         (Depends-on): Add ansi-c++-opt.
24068         (Makefile.am): Arrange to compile and run test-stdio-c++.
24069         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
24070         gl_MODULE_INDICATOR.
24071
24072         Tests of module 'spawn' in C++ mode.
24073         * tests/test-spawn-c++.cc: New file.
24074         * modules/spawn-tests (Files): Add it and tests/signature.h.
24075         (Depends-on): Add ansi-c++-opt.
24076         (Makefile.am): Arrange to compile and run test-spawn-c++.
24077         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
24078         gl_MODULE_INDICATOR.
24079
24080         Tests of module 'signal' in C++ mode.
24081         * tests/test-signal-c++.cc: New file.
24082         * modules/signal-tests (Files): Add it and tests/signature.h.
24083         (Depends-on): Add ansi-c++-opt.
24084         (Makefile.am): Arrange to compile and run test-signal-c++.
24085         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
24086         gl_MODULE_INDICATOR.
24087
24088         Tests of module 'search' in C++ mode.
24089         * tests/test-search-c++.cc: New file.
24090         * modules/search-tests (Files): Add it and tests/signature.h.
24091         (Depends-on): Add ansi-c++-opt.
24092         (Makefile.am): Arrange to compile and run test-search-c++.
24093         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
24094         gl_MODULE_INDICATOR.
24095
24096         Tests of module 'math' in C++ mode.
24097         * tests/test-math-c++.cc: New file.
24098         * modules/math-tests (Files): Add it and tests/signature.h.
24099         (Depends-on): Add ansi-c++-opt.
24100         (Makefile.am): Arrange to compile and run test-math-c++.
24101         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24102
24103         Tests of module 'locale' in C++ mode.
24104         * tests/test-locale-c++.cc: New file.
24105         * modules/locale-tests (Files): Add it and tests/signature.h.
24106         (Depends-on): Add ansi-c++-opt.
24107         (Makefile.am): Arrange to compile and run test-locale-c++.
24108         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
24109         gl_MODULE_INDICATOR.
24110
24111         Tests of module 'langinfo' in C++ mode.
24112         * tests/test-langinfo-c++.cc: New file.
24113         * modules/langinfo-tests (Files): Add it and tests/signature.h.
24114         (Depends-on): Add ansi-c++-opt.
24115         (Makefile.am): Arrange to compile and run test-langinfo-c++.
24116         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
24117         gl_MODULE_INDICATOR.
24118
24119         Tests of module 'iconv-h' in C++ mode.
24120         * tests/test-iconv-h-c++.cc: New file.
24121         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
24122         (Depends-on): Add ansi-c++-opt.
24123         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
24124
24125         Tests of module 'glob' in C++ mode.
24126         * tests/test-glob-c++.cc: New file.
24127         * modules/glob-tests (Files): Add it.
24128         (Depends-on): Add ansi-c++-opt.
24129         (Makefile.am): Arrange to compile and run test-glob-c++.
24130
24131         Tests of module 'fcntl-h' in C++ mode.
24132         * tests/test-fcntl-h-c++.cc: New file.
24133         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
24134         (Depends-on): Add ansi-c++-opt.
24135         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
24136         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
24137         gl_MODULE_INDICATOR.
24138
24139         Tests of module 'dirent' in C++ mode.
24140         * tests/test-dirent-c++.cc: New file.
24141         * modules/dirent-tests (Files): Add it and tests/signature.h.
24142         (Depends-on): Add ansi-c++-opt.
24143         (Makefile.am): Arrange to compile and run test-dirent-c++.
24144         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24145         gl_MODULE_INDICATOR.
24146
24147         New module 'ansi-c++-opt'.
24148         * modules/ansi-c++-opt: New file.
24149         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
24150
24151         Document C++ namespace mode.
24152         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
24153
24154         wctype: Avoid #define replacements in C++ mode.
24155         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
24156         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
24157         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
24158         In C++, define a namespaced alias symbol.
24159         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
24160         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
24161         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
24162         rule.
24163
24164         wchar: Avoid #define replacements in C++ mode.
24165         * lib/wchar.in.h: Include c++defs.h.
24166         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
24167         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
24168         symbol.
24169         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
24170         * modules/wchar (Depends-on): Add c++defs.
24171         (Makefile.am): Update wchar.h rule.
24172
24173         unistd: Avoid #define replacements in C++ mode.
24174         * lib/unistd.in.h: Include c++defs.h.
24175         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
24176         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
24177         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
24178         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
24179         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
24180         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
24181         symbol.
24182         (environ): Update.
24183         * modules/unistd (Depends-on): Add c++defs.
24184         (Makefile.am): Update unistd.h rule.
24185
24186         time: Avoid #define replacements in C++ mode.
24187         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
24188         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
24189         define a namespaced alias symbol.
24190         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
24191         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
24192         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
24193         * modules/time (Depends-on): Add c++defs, warn-on-use.
24194         (Makefile.am): Update time.h rule.
24195         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24196         * modules/nanosleep (configure.ac): Likewise.
24197         * modules/strptime (configure.ac): Likewise.
24198         * modules/timegm (configure.ac): Likewise.
24199
24200         sys_time: Avoid #define replacements in C++ mode.
24201         * lib/sys_time.in.h: Include c++defs.h.
24202         (gettimeofday): In C++, define a namespaced alias symbol.
24203         * modules/sys_time (Depends-on): Add c++defs.
24204         (Makefile.am): Update sys/time.h rule.
24205
24206         sys_stat: Avoid #define replacements in C++ mode.
24207         * lib/sys_stat.in.h: Include c++defs.h.
24208         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
24209         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
24210         namespaced alias symbol.
24211         In C++, define a namespaced alias symbol.
24212         * modules/sys_stat (Depends-on): Add c++defs.
24213         (Makefile.am): Update sys/stat.h rule.
24214
24215         sys_socket: Avoid #define replacements in C++ mode.
24216         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
24217         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
24218         definitions also when the system has a <sys/socket.h>.
24219         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24220         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
24221         In C++, define a namespaced alias symbol.
24222         * modules/sys_socket (Depends-on): Add c++defs.
24223         (Makefile.am): Update sys/socket.h rule.
24224
24225         sys_select: Avoid #define replacements in C++ mode.
24226         * lib/sys_select.in.h: Include c++defs.h. Enable the function
24227         definitions also when the system has a <sys/select.h>.
24228         (select): In C++, define a namespaced alias symbol.
24229         * modules/sys_select (Depends-on): Add c++defs.
24230         (Makefile.am): Update sys/select.h rule.
24231
24232         sys_ioctl: Avoid #define replacements in C++ mode.
24233         * lib/sys_ioctl.in.h: Include c++defs.h.
24234         (ioctl): In C++, define a namespaced alias symbol.
24235         * modules/sys_ioctl (Depends-on): Add c++defs.
24236         (Makefile.am): Update sys/ioctl.h rule.
24237
24238         string: Avoid #define replacements in C++ mode.
24239         * lib/string.in.h: Include c++defs.h.
24240         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
24241         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24242         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24243         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
24244         strsignal, strverscmp): In C++, define a namespaced alias symbol.
24245         * modules/string (Depends-on): Add c++defs.
24246         (Makefile.am): Update string.h rule.
24247
24248         stdlib: Avoid #define replacements in C++ mode.
24249         * lib/stdlib.in.h: Include c++defs.h.
24250         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
24251         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
24252         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
24253         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
24254         symbol.
24255         * modules/stdlib (Depends-on): Add c++defs.
24256         (Makefile.am): Update stdlib.h rule.
24257
24258         stdio: Avoid #define replacements in C++ mode.
24259         * lib/stdio.in.h: Include c++defs.h.
24260         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
24261         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
24262         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
24263         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
24264         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
24265         namespaced alias symbol.
24266         * modules/stdio (Depends-on): Add c++defs.
24267         (Makefile.am): Update stdio.h rule.
24268
24269         spawn: Avoid #define replacements in C++ mode.
24270         * lib/spawn.in.h: Include c++defs.h.
24271         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24272         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24273         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24274         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24275         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24276         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24277         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24278         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24279         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24280         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24281         In C++, define a namespaced alias symbol.
24282         * modules/spawn (Depends-on): Add c++defs.
24283         (Makefile.am): Update spawn.h rule.
24284
24285         signal: Avoid #define replacements in C++ mode.
24286         * lib/signal.in.h: Include c++defs.h.
24287         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24288         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
24289         namespaced alias symbol.
24290         * modules/signal (Depends-on): Add c++defs.
24291         (Makefile.am): Update signal.h rule.
24292
24293         search: Avoid #define replacements in C++ mode.
24294         * lib/search.in.h: Include c++defs.h.
24295         (_gl_search_compar_fn, _gl_search_action_fn): New types.
24296         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
24297         symbol.
24298         * modules/search (Depends-on): Add c++defs.
24299         (Makefile.am): Update search.h rule.
24300
24301         math: Avoid #define replacements in C++ mode.
24302         * lib/math.in.h: Include c++defs.h.
24303         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
24304         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
24305         trunc, truncl): In C++, define a namespaced alias symbol.
24306         * modules/math (Depends-on): Add c++defs.
24307         (Makefile.am): Update math.h rule.
24308
24309         locale: Avoid #define replacements in C++ mode.
24310         * lib/locale.in.h: Include c++defs.h.
24311         (duplocale): In C++, define a namespaced alias symbol.
24312         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
24313         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
24314         * modules/locale (Depends-on): Add c++defs.
24315         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
24316
24317         langinfo: Avoid #define replacements in C++ mode.
24318         * lib/langinfo.in.h: Include c++defs.h.
24319         (nl_langinfo): In C++, define a namespaced alias symbol.
24320         * modules/langinfo (Depends-on): Add c++defs.
24321         (Makefile.am): Update langinfo.h rule.
24322
24323         iconv-h: Avoid #define replacements in C++ mode.
24324         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
24325         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
24326         symbol.
24327         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
24328         whenever iconv is present.
24329         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
24330         (Makefile.am): Update iconv.h rule.
24331
24332         glob: Avoid #define replacements in C++ mode.
24333         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
24334         (_gl_glob_errfunc_fn): New type.
24335         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
24336         symbol.
24337         * modules/glob (Depends-on): Add c++defs, warn-on-use.
24338         (Makefile.am): Update glob.h rule.
24339
24340         fcntl-h: Avoid #define replacements in C++ mode.
24341         * lib/fcntl.in.h: Include c++defs.h.
24342         (fcntl, open, openat): In C++, define a namespaced alias symbol.
24343         * modules/fcntl-h (Depends-on): Add c++defs.
24344         (Makefile.am): Update fcntl.h rule.
24345
24346         dirent: Avoid #define replacements in C++ mode.
24347         * lib/dirent.in.h: Include c++defs.h.
24348         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
24349         namespaced alias symbol.
24350         (dirfd): Update declaration.
24351         * modules/dirent (Depends-on): Add c++defs.
24352         (Makefile.am): Update dirent.h rule.
24353
24354         ctype: Make it usable in C++ code.
24355         * lib/ctype.in.h: Include c++defs.h.
24356         (isblank): Declare as extern "C".
24357         * modules/ctype (Depends-on): Add c++defs.
24358         (Makefile.am): Update ctype.h rule.
24359
24360         New module 'c++defs'.
24361         * modules/c++defs: New file.
24362         * build-aux/c++defs.h: New file.
24363         Reported by John W. Eaton <jwe@gnu.org>.
24364
24365 2010-03-07  Bruno Haible  <bruno@clisp.org>
24366
24367         logb: Provide missing declaration for Cygwin.
24368         * lib/math.in.h (logb): New declaration.
24369         * m4/logb.m4: New file.
24370         * modules/logb (Files): Add m4/logb.m4.
24371         (Depends-on): Add math.
24372         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
24373         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
24374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
24375         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
24376         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
24377
24378 2010-03-07  Bruno Haible  <bruno@clisp.org>
24379
24380         Fix test-cond link error.
24381         * tests/test-cond.c: Include <stdio.h>.
24382
24383 2010-03-07  Bruno Haible  <bruno@clisp.org>
24384
24385         Fix test-dirent-safer link error.
24386         * modules/dirent-safer-tests (Makefile.am): Define
24387         test_dirent_safer_LDADD.
24388
24389 2010-03-07  Bruno Haible  <bruno@clisp.org>
24390
24391         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
24392         among default module list.
24393
24394 2010-03-07  Bruno Haible  <bruno@clisp.org>
24395
24396         Fix link error on platforms with GNU libiconv.
24397         * modules/unistr/u8-strcoll-tests (Makefile): Define
24398         test_u8_strcoll_LDADD.
24399         * modules/unistr/u16-strcoll-tests (Makefile): Define
24400         test_u16_strcoll_LDADD.
24401         * modules/unistr/u32-strcoll-tests (Makefile): Define
24402         test_u32_strcoll_LDADD.
24403
24404 2010-03-07  Bruno Haible  <bruno@clisp.org>
24405
24406         Use POSIX declarations for socket functions.
24407         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
24408         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
24409         rpl_sendto): Change declaration to match POSIX.
24410         * lib/connect.c (rpl_connect): Likewise.
24411         * lib/accept.c (rpl_accept): Likewise.
24412         * lib/bind.c (rpl_bind): Likewise.
24413         * lib/getpeername.c (rpl_getpeername): Likewise.
24414         * lib/getsockname.c (rpl_getsockname): Likewise.
24415         * lib/recv.c (rpl_recv): Likewise.
24416         * lib/send.c (rpl_send): Likewise.
24417         * lib/recvfrom.c (rpl_recvfrom): Likewise.
24418         * lib/sendto.c (rpl_sendto): Likewise.
24419
24420 2010-03-06  Bruno Haible  <bruno@clisp.org>
24421
24422         Clarify access, euidaccess, faccessat.
24423         * doc/posix-functions/faccessat.texi: Mention security problem under
24424         "Other problems", not "Portability problems".
24425         * doc/posix-functions/access.texi: Likewise. Mention a related security
24426         problem.
24427         * doc/glibc-functions/euidaccess.texi: Mention security problems.
24428         * lib/euidaccess.c: Add comments about platforms.
24429         * lib/unistd.in.h (access, euidaccess): Add warnings.
24430
24431 2010-03-07  Bruno Haible  <bruno@clisp.org>
24432
24433         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
24434         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
24435         (POSIX_SPAWN_SETSCHEDULER): Likewise.
24436         (POSIX_SPAWN_USEVFORK): Define in a way that works when
24437         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24438         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
24439         declare when POSIX_SPAWN_SETSCHEDULER is zero.
24440         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
24441         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
24442         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
24443         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
24444         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
24445         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
24446         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
24447         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
24448         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
24449         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
24450         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
24451         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
24452         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
24453         Likewise.
24454         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
24455         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
24456         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
24457         Likewise.
24458         * tests/test-spawn.c (main): Make it work when
24459         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24460
24461 2010-03-07  Bruno Haible  <bruno@clisp.org>
24462
24463         Fix incorrect Makefile.am generation in German locale.
24464         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24465         Execute sed command with character range in C locale.
24466
24467 2010-03-06  Bruno Haible  <bruno@clisp.org>
24468
24469         Tests for module 'iconv-h'.
24470         * modules/iconv-h-tests: New file.
24471         * tests/test-iconv-h.c: New file.
24472
24473         New module 'iconv-h'.
24474         * modules/iconv-h: New file.
24475         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
24476         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
24477         (configure.ac): Remove gl_ICONV_H.
24478         (Makefile.am): Remove rule for iconv.h.
24479
24480 2010-03-06  Bruno Haible  <bruno@clisp.org>
24481
24482         More consistent naming of *.m4 files.
24483         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
24484         * modules/wctype (Files): Update.
24485
24486         More consistent naming of *.m4 files.
24487         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
24488         * modules/wchar (Files): Update.
24489
24490 2010-03-06  Jim Meyering  <meyering@redhat.com>
24491
24492         euidaccess: relax license to LGPLv2+
24493         * modules/euidaccess (License): Relax to LGPLv2+.
24494
24495 2010-03-06  Bruno Haible  <bruno@clisp.org>
24496
24497         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
24498         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
24499         (Makefile.am): Augment lib_SOURCES instead.
24500
24501 2010-03-04  Jim Meyering  <meyering@redhat.com>
24502
24503         utime: remove obsolete module
24504         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
24505         unnecessary for years, and has been marked as obsolete for 10 months.
24506         * modules/utime: Remove file.
24507         * lib/utime.c: Remove file.
24508         * m4/utime.m4: Remove file.
24509         * m4/utimes-null.m4: Remove file.
24510         * doc/posix-functions/utime.texi (utime): Remove reference to
24511         the module.  Move the sole "fixed by gnulib" item into the
24512         "problems not fixed by Gnulib" list.
24513         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
24514
24515 2010-03-05  Simon Josefsson  <simon@josefsson.org>
24516
24517         * modules/exit (License): Relax license to LGPLv2+.
24518         (Status): Mark as obsolete.
24519         * NEWS: Mention deprecated 'exit' module.
24520         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
24521         of now obsolete 'exit'.
24522
24523 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24524
24525         fts-lgpl: remove unused module
24526         * modules/fts-lgpl: Remove.
24527         * MODULES.html.sh (func_all_modules): Adjust.
24528         * check-module (find_included_lib_files): Adjust.
24529         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
24530
24531 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
24532
24533         copy-acl: enhance Solaris ACL error handling
24534         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
24535         * lib/set-mode-acl.c (qset_acl): Likewise.
24536
24537 2010-03-02  Bruno Haible  <bruno@clisp.org>
24538
24539         spawn: Don't override the system defined values on FreeBSD 8.
24540         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
24541         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
24542         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
24543         if HAVE_POSIX_SPAWN is 1.
24544         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
24545
24546 2010-03-01  Bruno Haible  <bruno@clisp.org>
24547
24548         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
24549         regarding Automake.
24550
24551 2010-02-25  Bruno Haible  <bruno@clisp.org>
24552
24553         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
24554         * gnulib-tool: Define 'echo' as a function only before the ksh alias
24555         setting, not afterwards.
24556         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
24557
24558 2010-02-24  Eric Blake  <eblake@redhat.com>
24559
24560         bootstrap, git-version-gen: use timestamp
24561         * build-aux/git-version-gen (scriptversion): Force UTC.
24562         * build-aux/bootstrap (scriptversion): New variable.
24563
24564         bootstrap: allow older git
24565         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
24566         older than 1.6.4.  Requested by the libvirt project.
24567
24568 2010-02-23  Eric Blake  <eblake@redhat.com>
24569
24570         warn-on-use: work with old autoconf
24571         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
24572         AS_VAR semantics of autoconf 2.60.
24573         Reported by Bruno Haible.
24574
24575         bootstrap: improve some comments
24576         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
24577         clarification comments.
24578
24579         gettimeofday: provide correct function
24580         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
24581         when replacement is declared, otherwise provide gettimeofday.
24582         Reported by Michael Goffioul.
24583
24584 2010-02-23  Jim Meyering  <meyering@redhat.com>
24585
24586         lib-ignore: relax license to "unlimited", not LGPLv2+
24587         * modules/lib-ignore (License): Relax to "unlimited".
24588
24589 2010-02-23  Jim Meyering  <meyering@redhat.com>
24590
24591         lib-ignore: relax license to LGPLv2+
24592         * modules/lib-ignore (License): Relax to LGPLv2+.
24593
24594 2010-02-22  Eric Blake  <eblake@redhat.com>
24595
24596         lseek: avoid bash 3.2 broken pipe bug
24597         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
24598         warning from bash 3.2.
24599         Reported by Ben Pfaff, with analysis from Bruno Haible.
24600
24601         bootstrap: support non-FSF copyright holder
24602         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
24603         bootstrap.conf override of COPYRIGHT_HOLDER.
24604         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
24605
24606         bootstrap: interoperate with gettext 0.14.1
24607         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
24608
24609         bootstrap: allow for alternate submodule location
24610         * build-aux/bootstrap (gnulib_path): New variable; use instead of
24611         hardcoding submodule location.
24612         (gnulib_mk): Allow direct use of Makefile.am.
24613
24614         bootstrap: use GNULIB_SRCDIR to reduce disk usage
24615         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
24616         rather than reconfiguring where the submodule points.
24617
24618         gettimeofday: restore support for platforms that lack function
24619         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
24620         replacement if function is missing.
24621         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
24622         * modules/sys_time (Makefile.am): Substitute it.
24623         * lib/sys_time.in.h (gettimeofday): Check it.
24624         Reported by Michael Goffioul.
24625
24626 2010-02-21  Bruno Haible  <bruno@clisp.org>
24627
24628         * lib/stdio.in.h (obstack_printf): Fix typo.
24629
24630 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
24631
24632         vc-list-files: use bzr ls's -R option
24633         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
24634         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
24635
24636 2010-02-21  Jim Meyering  <meyering@redhat.com>
24637
24638         init.sh: fix EXEEXT shims to work also for names like test-prog
24639         * tests/init.sh: Re-exec a better shell, when needed.
24640         If the current shell lacks support for posix $(...), an init.sh-using
24641         test will now try to find a shell that supports that.  If EXEEXT is
24642         nonempty, we also require support for hyphen-in-alias-name and shell
24643         substitutions like ${var#glob}.  Failure to find such a shell results
24644         in a skipped test.
24645
24646 2010-02-21  Bruno Haible  <bruno@clisp.org>
24647
24648         Really work around around "broken pipe" error message from bash 3.2.
24649         * gnulib-tool (func_reset_sigpipe): Remove function.
24650         (echo): In bash 3.2, define to a function that uses printf.
24651         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
24652
24653 2010-02-20  Bruno Haible  <bruno@clisp.org>
24654
24655         Restore support for automake 1.9.6 with autoconf 2.61.
24656         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
24657         Reported by James Youngman <jay@gnu.org>.
24658
24659 2010-02-20  Bruno Haible  <bruno@clisp.org>
24660
24661         Improve *printf warning condition.
24662         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
24663         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
24664         and the function is overridden due to SIGPIPE emulation.
24665
24666 2010-02-20  Bruno Haible  <bruno@clisp.org>
24667
24668         * lib/stdio.in.h: Tweak comments.
24669
24670 2010-02-19  Bruno Haible  <bruno@clisp.org>
24671
24672         Make it easier to find modules. New gnulib-tool option '--find'.
24673         * gnulib-tool: New option --find.
24674         (func_usage): Document it.
24675         (func_sanitize_modulelist): New function, extracted from
24676         func_all_modules.
24677         (func_all_modules): Invoke it.
24678         * doc/gnulib-tool.texi (Which modules?): New node.
24679
24680 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
24681
24682         * lib/sys_select.in.h: Provide select replacement even if
24683         sys/select.h exists on a system, for Interix.
24684
24685 2010-02-18  Jim Meyering  <meyering@redhat.com>
24686
24687         init.sh: don't use $(...) just yet
24688         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
24689         to accommodate e.g., Solaris' /bin/sh.
24690
24691 2010-02-17  Bruno Haible  <bruno@clisp.org>
24692
24693         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
24694         Reported by Ludovic Courtès <ludo@gnu.org>.
24695
24696 2010-02-16  Simon Josefsson  <simon@josefsson.org>
24697
24698         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
24699         linking with -lintl.
24700
24701 2010-02-17  Simon Josefsson  <simon@josefsson.org>
24702
24703         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
24704         if not provided by the system's netdb.h.  Reported by
24705         ludo@gnu.org (Ludovic Courtès).
24706
24707 2010-02-15  Jim Meyering  <meyering@redhat.com>
24708
24709         init.sh: improve portability and efficiency
24710         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
24711         "dummy" in a for loop.
24712         Use '!', not '^' to select the complement of a character set used
24713         in a "case" statement.
24714         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
24715         Suggestions from Eric Blake.
24716
24717         init.sh: automatically accommodate programs with the .exe suffix
24718         Automatically arrange for an invocation of "prog" to execute the
24719         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
24720         may use the simpler "prog", yet still work when built on a system
24721         that requires specifying the added suffix.
24722         Do this by constructing a function named "prog" that invokes
24723         "prog.exe" for each .exe file in selected directories.
24724         * tests/init.sh (find_exe_basenames_): New function.
24725         (create_exe_shim_functions_): New function.
24726         (path_prepend_): Use it.
24727
24728         maint.mk: mark syntax-check sc_*.m rules as .PHONY
24729         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
24730         "make -t syntax-check" doesn't create a ton of sc_*.m files.
24731
24732 2010-02-14  Jim Meyering  <meyering@redhat.com>
24733
24734         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
24735         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
24736         (sc_prohibit_hash_pjw_without_use): New rule.
24737
24738         maint.mk: allow the default upload destination dir to be overridden
24739         * top/maint.mk (upload_dest_dir_): Define with a default that
24740         preserves the status quo.
24741         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
24742         Reported by Peter Simons.
24743
24744         maint.mk: prohibit inclusion of "hash.h" without_use
24745         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
24746
24747 2010-02-10  Jim Meyering  <meyering@redhat.com>
24748
24749         maint.mk: prohibit inclusion of "ignore-value.h" without_use
24750         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
24751
24752 2010-02-09  Eric Blake  <ebb9@byu.net>
24753         and Bruno Haible  <bruno@clisp.org>
24754
24755         obstack-printf-posix: ensure declaration
24756         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
24757         extracted from gl_FUNC_OBSTACK_PRINTF.
24758         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
24759         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
24760         Likewise.
24761         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
24762         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
24763         0.
24764
24765 2010-02-08  Bruno Haible  <bruno@clisp.org>
24766
24767         gnulib-tool: Fix typo in 2010-02-07 commit.
24768         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
24769         Reported by Eric Blake.
24770
24771 2010-02-07  Bruno Haible  <bruno@clisp.org>
24772
24773         gnulib-tool: Fix up caching patches.
24774         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
24775         option --no-cache. Use associative arrays when supported by the shell.
24776         (sed_comments): New variable.
24777         (modcache): Renamed from do_cache.
24778         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
24779         abbreviate unnecessarily.
24780         (have_associative): New variable.
24781         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
24782         way also for ksh and zsh.
24783         (func_init_sed_convert_to_cache_statements): New function, extracted
24784         from func_cache_lookup_module. Add support for associative arrays.
24785         Don't set the c_MODULE_cached variable here. Ignore all lines before
24786         the first field header. Remove only the final newline, not all trailing
24787         newlines. Support empty fields correctly. Limit the use of 'eval' to
24788         assignments.
24789         (func_get_description, func_get_status, func_get_notice,
24790         func_get_applicability, func_get_filelist, func_get_dependencies,
24791         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
24792         func_get_automake_snippet, func_get_include_directive,
24793         func_get_link_directive, func_get_license, func_get_maintainer):
24794         Update documentation. List the unoptimized code first. Add support for
24795         associative arrays. Limit the use of 'eval' to assignments.
24796         (func_get_applicability): Undo stylistic pessimisations.
24797         (func_get_automake_snippet, func_get_include_directive): Reduce code
24798         duplication.
24799         (func_modules_transitive_closure, func_modules_add_dummy,
24800         func_modules_notice, func_modules_to_filelist, func_add_file,
24801         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
24802         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
24803         func_create_testdir, func_create_megatestdir): Update documentation.
24804
24805 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24806
24807         * gnulib-tool (func_cache_lookup_module): Store the module name
24808         belonging to the cache variable; error out if two different
24809         module names map to the same cache variable name.
24810
24811 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24812
24813         gnulib-tool: Make caching optional.
24814         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
24815         Update matching short versions of --no-changelog.
24816         (func_usage): Update.
24817         (sed_extract_cache_prog): Renamed from ...
24818         (sed_extract_prog): ... this; revert to old extraction script.
24819         (func_get_description, func_get_status)
24820         (func_get_notice, func_get_applicability, func_get_filelist)
24821         (func_get_dependencies, func_get_autoconf_early_snippet)
24822         (func_get_autoconf_snippet, func_get_automake_snippet)
24823         (func_get_include_directive, func_get_link_directive)
24824         (func_get_license, func_get_maintainer): If $do_cache is false,
24825         use old, non-caching extraction scripts.
24826         Suggestion by Bruno Haible.
24827
24828 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24829
24830         gnulib-tool: cache module metainformation.
24831         * gnulib-tool (sed_extract_prog): Match newline before each
24832         header, and rewrite header to a shell variable suffix.
24833         (func_cache_var, func_cache_lookup_module): New functions,
24834         to turn a module name into a cache variable prefix, and to
24835         look up and cache module metainformation.
24836         (func_get_description, func_get_status)
24837         (func_get_notice, func_get_applicability, func_get_filelist)
24838         (func_get_dependencies, func_get_autoconf_early_snippet)
24839         (func_get_autoconf_snippet, func_get_automake_snippet)
24840         (func_get_include_directive, func_get_link_directive)
24841         (func_get_license, func_get_maintainer): Use
24842         func_cache_lookup_module.
24843
24844 2010-02-07  Bruno Haible  <bruno@clisp.org>
24845
24846         fnctl: Fix missing dependency.
24847         * modules/fcntl (Depends-on): Add getdtablesize.
24848         Reported by John W. Eaton <jwe@gnu.org>.
24849
24850 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24851
24852         Argp: fix recognition of short alias options.
24853
24854         * lib/argp-parse.c (convert_options): Fix improper use of
24855         `|' between character values.
24856         * tests/test-argp.c (group1_option): New alias option
24857         --read (-r).
24858         (group1_parser): Special handling for 'r'.
24859         (test15): New test case.
24860         (test_fun): Add test15.
24861         * tests/test-argp-2.sh: Update expected --help and --usage
24862         outputs.
24863
24864 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24865
24866         * tests/test-argp.c: Fix indentation.
24867
24868 2010-02-04  Eric Blake  <ebb9@byu.net>
24869
24870         gettimeofday: expose type of second argument
24871         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
24872         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
24873         * tests/test-gettimeofday.c: Use it to silence warning.
24874         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
24875         the issue.
24876
24877 2010-02-03  Jim Meyering  <meyering@redhat.com>
24878
24879         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
24880         * lib/regcomp.c (TYPE_SIGNED): Define.
24881         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
24882
24883         regcomp.c: avoid a new -Wshadow warning
24884         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
24885
24886 2010-02-01  Jim Meyering  <meyering@redhat.com>
24887
24888         removing useless parentheses in cpp #define directives
24889         For motivation, see commit c0221df4, "define STREQ(a,b)
24890         consistently, removing useless parentheses"
24891         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
24892         * lib/mountlist.c (MNT_IGNORE): Likewise.
24893         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
24894
24895 2010-02-01  Eric Blake  <ebb9@byu.net>
24896
24897         sys_time: use link-warning
24898         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
24899         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
24900         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
24901         * modules/sys_time (Depends-on): Add warn-on-use.
24902         (Makefile.am): Always build replacement.
24903         (configure.ac): Update substitutions.
24904         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
24905         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
24906         bother with SYS_TIME_H.
24907         * modules/gettimeofday (configure.ac): Declare indicator.
24908         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
24909         in use.
24910
24911         closein-tests: silence compiler warning
24912         * tests/test-closein.c (main): Ignore fread result.
24913         * modules/closein-tests (Depends-on): Add ignore-value.
24914
24915         tests: silence warning about system return
24916         * tests/test-areadlink-with-size.c (main): Ignore system result.
24917         * tests/test-areadlink.c (main): Likewise.
24918         * tests/test-areadlinkat-with-size.c (main): Likewise.
24919         * tests/test-areadlinkat.c (main): Likewise.
24920         * tests/test-canonicalize-lgpl.c (main): Likewise.
24921         * tests/test-canonicalize.c (main): Likewise.
24922         * tests/test-chown.c (main): Likewise.
24923         * tests/test-fchownat.c (main): Likewise.
24924         * tests/test-fdutimensat.c (main): Likewise.
24925         * tests/test-fstatat.c (main): Likewise.
24926         * tests/test-futimens.c (main): Likewise.
24927         * tests/test-lchown.c (main): Likewise.
24928         * tests/test-link.c (main): Likewise.
24929         * tests/test-linkat.c (main): Likewise.
24930         * tests/test-lstat.c (main): Likewise.
24931         * tests/test-mkdir.c (main): Likewise.
24932         * tests/test-mkdirat.c (main): Likewise.
24933         * tests/test-mkfifo.c (main): Likewise.
24934         * tests/test-mkfifoat.c (main): Likewise.
24935         * tests/test-mknod.c (main): Likewise.
24936         * tests/test-readlink.c (main): Likewise.
24937         * tests/test-remove.c (main): Likewise.
24938         * tests/test-rename.c (main): Likewise.
24939         * tests/test-renameat.c (main): Likewise.
24940         * tests/test-rmdir.c (main): Likewise.
24941         * tests/test-symlink.c (main): Likewise.
24942         * tests/test-symlinkat.c (main): Likewise.
24943         * tests/test-unlink.c (main): Likewise.
24944         * tests/test-unlinkat.c (main): Likewise.
24945         * tests/test-utimens.c (main): Likewise.
24946         * tests/test-utimensat.c (main): Likewise.
24947         * modules/areadlink-tests (Depends-on): Add ignore-value.
24948         * modules/areadlink-with-size-tests (Depends-on): Likewise.
24949         * modules/areadlinkat-tests (Depends-on): Likewise.
24950         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
24951         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24952         * modules/canonicalize-tests (Depends-on): Likewise.
24953         * modules/chown-tests (Depends-on): Likewise.
24954         * modules/fdutimensat-tests (Depends-on): Likewise.
24955         * modules/futimens-tests (Depends-on): Likewise.
24956         * modules/lchown-tests (Depends-on): Likewise.
24957         * modules/link-tests (Depends-on): Likewise.
24958         * modules/linkat-tests (Depends-on): Likewise.
24959         * modules/lstat-tests (Depends-on): Likewise.
24960         * modules/mkdir-tests (Depends-on): Likewise.
24961         * modules/mkfifo-tests (Depends-on): Likewise.
24962         * modules/mkfifoat-tests (Depends-on): Likewise.
24963         * modules/mknod-tests (Depends-on): Likewise.
24964         * modules/openat-tests (Depends-on): Likewise.
24965         * modules/readlink-tests (Depends-on): Likewise.
24966         * modules/remove-tests (Depends-on): Likewise.
24967         * modules/rename-tests (Depends-on): Likewise.
24968         * modules/renameat-tests (Depends-on): Likewise.
24969         * modules/rmdir-tests (Depends-on): Likewise.
24970         * modules/symlink-tests (Depends-on): Likewise.
24971         * modules/symlinkat-tests (Depends-on): Likewise.
24972         * modules/unlink-tests (Depends-on): Likewise.
24973         * modules/utimens-tests (Depends-on): Likewise.
24974         * modules/utimensat-tests (Depends-on): Likewise.
24975
24976 2010-01-31  Bruno Haible  <bruno@clisp.org>
24977
24978         Perform the same test for many <math.h> functions.
24979         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24980         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24981         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24982         of gl_MATHFUNC.
24983         * modules/acos (configure.ac): Likewise.
24984         * modules/asin (configure.ac): Likewise.
24985         * modules/atan (configure.ac): Likewise.
24986         * modules/atan2 (configure.ac): Likewise.
24987         * modules/cbrt (configure.ac): Likewise.
24988         * modules/copysign (configure.ac): Likewise.
24989         * modules/cos (configure.ac): Likewise.
24990         * modules/cosh (configure.ac): Likewise.
24991         * modules/erf (configure.ac): Likewise.
24992         * modules/erfc (configure.ac): Likewise.
24993         * modules/exp (configure.ac): Likewise.
24994         * modules/fmod (configure.ac): Likewise.
24995         * modules/hypot (configure.ac): Likewise.
24996         * modules/j0 (configure.ac): Likewise.
24997         * modules/j1 (configure.ac): Likewise.
24998         * modules/jn (configure.ac): Likewise.
24999         * modules/lgamma (configure.ac): Likewise.
25000         * modules/log (configure.ac): Likewise.
25001         * modules/log10 (configure.ac): Likewise.
25002         * modules/log1p (configure.ac): Likewise.
25003         * modules/pow (configure.ac): Likewise.
25004         * modules/remainder (configure.ac): Likewise.
25005         * modules/sin (configure.ac): Likewise.
25006         * modules/sinh (configure.ac): Likewise.
25007         * modules/tan (configure.ac): Likewise.
25008         * modules/tanh (configure.ac): Likewise.
25009         * modules/y0 (configure.ac): Likewise.
25010         * modules/y1 (configure.ac): Likewise.
25011         * modules/yn (configure.ac): Likewise.
25012         Suggested by Paolo Bonzini.
25013
25014 2010-01-31  Bruno Haible  <bruno@clisp.org>
25015
25016         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
25017
25018 2010-01-31  Bruno Haible  <bruno@clisp.org>
25019
25020         Work around getdelim() bug on FreeBSD 8.0.
25021         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
25022         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
25023         not work.
25024         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
25025         is 1.
25026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
25027         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
25028         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
25029         a non-zero size.
25030         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
25031
25032 2010-01-31  Bruno Haible  <bruno@clisp.org>
25033
25034         Work around getline() bug on FreeBSD 8.0.
25035         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
25036         and a non-zero size.
25037         * tests/test-getline.c (main): Likewise.
25038         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
25039         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
25040
25041 2010-01-28  Eric Blake  <ebb9@byu.net>
25042
25043         regex: fix build failure
25044         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
25045         platforms.
25046
25047 2010-01-28  Jim Meyering  <meyering@redhat.com>
25048
25049         regex: do not ignore memory allocation failure
25050         * lib/regex_internal.c (create_cd_newstate): Detect
25051         re_node_set_init_copy failure.   Extracted from glibc commit
25052         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25053
25054         regex: sync more white-space changes from libc
25055         * lib/regex_internal.c: White-space only changes.
25056         * lib/regexec.c: Likewise.
25057
25058         regex: add many uses of __attribute_warn_unused_result__
25059         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
25060         * lib/regexec.c: Likewise.
25061         Extracted from a messy glibc commit.
25062
25063         regcomp.c: spelling and merge-artifact from glibc
25064         * lib/regcomp.c: Merge remainder of glibc's
25065         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25066
25067         regcomp.c: sync white-space changes from glibc
25068         * lib/regcomp.c: Merge to accommodate white space
25069         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25070
25071         regcomp.c: do not ignore internal return values
25072         * lib/regcomp.c: Do not ignore internal return values.
25073         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
25074         but without its white-space changes and spelling fixes.
25075
25076         regex_internal.h: define __attribute_warn_unused_result__
25077         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
25078
25079         maint: add a syntax-check rule to check for vulnerable Makefile.in
25080         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
25081
25082 2010-01-27  Jim Meyering  <meyering@redhat.com>
25083
25084         ncftpput-ftp: clean up spaces
25085         * build-aux/ncftpput-ftp: Make Copyright line consistent.
25086         Remove trailing blanks.
25087
25088 2010-01-27  Simon Josefsson  <simon@josefsson.org>
25089
25090         * build-aux/git-version-gen: Fix copyright statement.
25091         * build-aux/gnupload: Likewise.
25092         * tests/test-arcfour.c: Likewise.
25093         * tests/test-arctwo.c: Likewise.
25094         * tests/test-count-one-bits.c: Likewise.
25095         * tests/test-crc.c: Likewise.
25096         * tests/test-des.c: Likewise.
25097         * tests/test-gc-arcfour.c: Likewise.
25098         * tests/test-gc-arctwo.c: Likewise.
25099         * tests/test-gc-des.c: Likewise.
25100         * tests/test-gc-hmac-md5.c: Likewise.
25101         * tests/test-gc-hmac-sha1.c: Likewise.
25102         * tests/test-gc-md2.c: Likewise.
25103         * tests/test-gc-md4.c: Likewise.
25104         * tests/test-gc-md5.c: Likewise.
25105         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25106         * tests/test-gc-rijndael.c: Likewise.
25107         * tests/test-gc-sha1.c: Likewise.
25108         * tests/test-gc.c: Likewise.
25109         * tests/test-gethostname.c: Likewise.
25110         * tests/test-gettimeofday.c: Likewise.
25111         * tests/test-hash.c: Likewise.
25112         * tests/test-hmac-md5.c: Likewise.
25113         * tests/test-hmac-sha1.c: Likewise.
25114         * tests/test-md2.c: Likewise.
25115         * tests/test-md4.c: Likewise.
25116         * tests/test-md5.c: Likewise.
25117         * tests/test-memchr.c: Likewise.
25118         * tests/test-memchr2.c: Likewise.
25119         * tests/test-memcmp.c: Likewise.
25120         * tests/test-memmem.c: Likewise.
25121         * tests/test-memrchr.c: Likewise.
25122         * tests/test-rawmemchr.c: Likewise.
25123         * tests/test-read-file.c: Likewise.
25124         * tests/test-rijndael.c: Likewise.
25125         * tests/test-sockets.c: Likewise.
25126         * tests/test-strchrnul.c: Likewise.
25127         * tests/test-strstr.c: Likewise.
25128         * tests/test-strtod.c: Likewise.
25129         * build-aux/ncftpput-ftp: Likewise.
25130
25131 2010-01-26  Eric Blake  <ebb9@byu.net>
25132
25133         ignore-value: update recommended header name
25134         * modules/ignore-value (Include): Only use <> for headers that
25135         exist in glibc.
25136
25137 2010-01-26  Jim Meyering  <meyering@redhat.com>
25138
25139         test-userspec.c: avoid compiler warnings
25140         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
25141         and "initialization discards qualifiers..." warnings.
25142         Put the first "uid" in its own scope, and make char* members "const".
25143
25144 2010-01-25  Bruno Haible  <bruno@clisp.org>
25145
25146         gnulib-tool: Make warning diagnostics consistent.
25147         * gnulib-tool (func_warning): New function.
25148         Use it everywhere where gnulib-tool produces output to stderr and it is
25149         not a fatal error.
25150
25151 2010-01-25  Bruno Haible  <bruno@clisp.org>
25152
25153         Fix test dependencies.
25154         * modules/xstrtol-tests (Depends-on): Add inttypes.
25155         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
25156
25157 2010-01-25 Pádraig Brady <P@draigBrady.com>
25158
25159         syntax-check: detect incorrect boolean macro values in config.h
25160         * modules/maintainer-makefile (configure.ac): Parameterize the location
25161         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
25162         The logic is from Eric Blake and the location indicated by Jim Meyering.
25163         Note the more natural CONFIG_HEADER name is prohibited by automake
25164         for backwards compatibility reasons.
25165         * top/maint.mk (sc_Wundef_boolean): New rule.
25166
25167 2010-01-25  Jim Meyering  <meyering@redhat.com>
25168
25169         bootstrap: detect MacOS 10.6's shasum, too
25170         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
25171         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
25172
25173 2010-01-23  Jim Meyering  <meyering@redhat.com>
25174
25175         xstrtoll: new module
25176         * modules/xstrtoll: New file.
25177         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
25178         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
25179         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
25180         ./configure fails if you use this module and lack "long long".
25181         * modules/xstrtoll-tests: New module.
25182         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
25183         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
25184         new init.sh-based test framework.
25185
25186 2010-01-24  Bruno Haible  <bruno@clisp.org>
25187
25188         Tests for module 'yn'.
25189         * modules/yn-tests: New file.
25190         * tests/test-yn.c: New file.
25191
25192         Tests for module 'y1'.
25193         * modules/y1-tests: New file.
25194         * tests/test-y1.c: New file.
25195
25196         Tests for module 'y0'.
25197         * modules/y0-tests: New file.
25198         * tests/test-y0.c: New file.
25199
25200         Tests for module 'tanh'.
25201         * modules/tanh-tests: New file.
25202         * tests/test-tanh.c: New file.
25203
25204         Tests for module 'tan'.
25205         * modules/tan-tests: New file.
25206         * tests/test-tan.c: New file.
25207
25208         Tests for module 'sqrt'.
25209         * modules/sqrt-tests: New file.
25210         * tests/test-sqrt.c: New file.
25211
25212         Tests for module 'sinh'.
25213         * modules/sinh-tests: New file.
25214         * tests/test-sinh.c: New file.
25215
25216         Tests for module 'sin'.
25217         * modules/sin-tests: New file.
25218         * tests/test-sin.c: New file.
25219
25220         Tests for module 'rint'.
25221         * modules/rint-tests: New file.
25222         * tests/test-rint.c: New file.
25223
25224         Tests for module 'remainder'.
25225         * modules/remainder-tests: New file.
25226         * tests/test-remainder.c: New file.
25227
25228         Tests for module 'pow'.
25229         * modules/pow-tests: New file.
25230         * tests/test-pow.c: New file.
25231
25232         Tests for module 'nextafter'.
25233         * modules/nextafter-tests: New file.
25234         * tests/test-nextafter.c: New file.
25235
25236         Tests for module 'modf'.
25237         * modules/modf-tests: New file.
25238         * tests/test-modf.c: New file.
25239
25240         Tests for module 'logb'.
25241         * modules/logb-tests: New file.
25242         * tests/test-logb.c: New file.
25243
25244         Tests for module 'log1p'.
25245         * modules/log1p-tests: New file.
25246         * tests/test-log1p.c: New file.
25247
25248         Tests for module 'log10'.
25249         * modules/log10-tests: New file.
25250         * tests/test-log10.c: New file.
25251
25252         Tests for module 'log'.
25253         * modules/log-tests: New file.
25254         * tests/test-log.c: New file.
25255
25256         Tests for module 'lgamma'.
25257         * modules/lgamma-tests: New file.
25258         * tests/test-lgamma.c: New file.
25259
25260         Tests for module 'ldexp'.
25261         * modules/ldexp-tests: New file.
25262         * tests/test-ldexp.c: New file.
25263
25264         Tests for module 'jn'.
25265         * modules/jn-tests: New file.
25266         * tests/test-jn.c: New file.
25267
25268         Tests for module 'j1'.
25269         * modules/j1-tests: New file.
25270         * tests/test-j1.c: New file.
25271
25272         Tests for module 'j0'.
25273         * modules/j0-tests: New file.
25274         * tests/test-j0.c: New file.
25275
25276         Tests for module 'hypot'.
25277         * modules/hypot-tests: New file.
25278         * tests/test-hypot.c: New file.
25279
25280         Tests for module 'fmod'.
25281         * modules/fmod-tests: New file.
25282         * tests/test-fmod.c: New file.
25283
25284         Tests for module 'fabs'.
25285         * modules/fabs-tests: New file.
25286         * tests/test-fabs.c: New file.
25287
25288         Tests for module 'exp'.
25289         * modules/exp-tests: New file.
25290         * tests/test-exp.c: New file.
25291
25292         Tests for module 'erfc'.
25293         * modules/erfc-tests: New file.
25294         * tests/test-erfc.c: New file.
25295
25296         Tests for module 'erf'.
25297         * modules/erf-tests: New file.
25298         * tests/test-erf.c: New file.
25299
25300         Tests for module 'cosh'.
25301         * modules/cosh-tests: New file.
25302         * tests/test-cosh.c: New file.
25303
25304         Tests for module 'cos'.
25305         * modules/cos-tests: New file.
25306         * tests/test-cos.c: New file.
25307
25308         Tests for module 'copysign'.
25309         * modules/copysign-tests: New file.
25310         * tests/test-copysign.c: New file.
25311
25312         Tests for module 'cbrt'.
25313         * modules/cbrt-tests: New file.
25314         * tests/test-cbrt.c: New file.
25315
25316         Tests for module 'atan2'.
25317         * modules/atan2-tests: New file.
25318         * tests/test-atan2.c: New file.
25319
25320         Tests for module 'atan'.
25321         * modules/atan-tests: New file.
25322         * tests/test-atan.c: New file.
25323
25324         Tests for module 'asin'.
25325         * modules/asin-tests: New file.
25326         * tests/test-asin.c: New file.
25327
25328         Tests for module 'acos'.
25329         * modules/acos-tests: New file.
25330         * tests/test-acos.c: New file.
25331
25332 2010-01-24  Bruno Haible  <bruno@clisp.org>
25333
25334         Fix tests for common <math.h> functions.
25335         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
25336         code snippet that references the function pointer, rather than merely
25337         calling the function. Substitute the FUNC_LIBM variable.
25338         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
25339         * modules/acos (configure.ac): Likewise.
25340         * modules/asin (configure.ac): Likewise.
25341         * modules/atan (configure.ac): Likewise.
25342         * modules/atan2 (configure.ac): Likewise.
25343         * modules/cbrt (configure.ac): Likewise.
25344         * modules/copysign (configure.ac): Likewise.
25345         * modules/cos (configure.ac): Likewise.
25346         * modules/cosh (configure.ac): Likewise.
25347         * modules/erf (configure.ac): Likewise.
25348         * modules/erfc (configure.ac): Likewise.
25349         * modules/exp (configure.ac): Likewise.
25350         * modules/fabs (configure.ac): Likewise.
25351         * modules/fmod (configure.ac): Likewise.
25352         * modules/hypot (configure.ac): Likewise.
25353         * modules/j0 (configure.ac): Likewise.
25354         * modules/j1 (configure.ac): Likewise.
25355         * modules/jn (configure.ac): Likewise.
25356         * modules/ldexp (configure.ac): Likewise.
25357         * modules/lgamma (configure.ac): Likewise.
25358         * modules/log (configure.ac): Likewise.
25359         * modules/log10 (configure.ac): Likewise.
25360         * modules/log1p (configure.ac): Likewise.
25361         * modules/logb (configure.ac): Likewise.
25362         * modules/modf (configure.ac): Likewise.
25363         * modules/nextafter (configure.ac): Likewise.
25364         * modules/pow (configure.ac): Likewise.
25365         * modules/remainder (configure.ac): Likewise.
25366         * modules/rint (configure.ac): Likewise.
25367         * modules/sin (configure.ac): Likewise.
25368         * modules/sinh (configure.ac): Likewise.
25369         * modules/tan (configure.ac): Likewise.
25370         * modules/tanh (configure.ac): Likewise.
25371         * modules/y0 (configure.ac): Likewise.
25372         * modules/y1 (configure.ac): Likewise.
25373         * modules/yn (configure.ac): Likewise.
25374
25375 2010-01-24  Bruno Haible  <bruno@clisp.org>
25376
25377         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
25378         * tests/test-acosl.c (x): New variable.
25379         (main): Store argument in x and fetch it from x.
25380         * tests/test-asinl.c (x): New variable.
25381         (main): Store argument in x and fetch it from x.
25382         * tests/test-atanl.c (x): New variable.
25383         (main): Store argument in x and fetch it from x.
25384         * tests/test-cosl.c (x): New variable.
25385         (main): Store argument in x and fetch it from x.
25386         * tests/test-expl.c (x): New variable.
25387         (main): Store argument in x and fetch it from x.
25388         * tests/test-logl.c (x): New variable.
25389         (main): Store argument in x and fetch it from x.
25390         * tests/test-sinl.c (x): New variable.
25391         (main): Store argument in x and fetch it from x.
25392         * tests/test-sqrtl.c (x): New variable.
25393         (main): Store argument in x and fetch it from x.
25394         * tests/test-tanl.c (x): New variable.
25395         (main): Store argument in x and fetch it from x.
25396
25397 2010-01-24  Bruno Haible  <bruno@clisp.org>
25398
25399         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
25400         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
25401         assignments to the initial TESTS_ENVIRONMENT.
25402         * doc/gnulib.texi (Unit test modules): Document it.
25403         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
25404         TESTS_ENVIRONMENT.
25405         * modules/btowc-tests (Makefile.am): Likewise.
25406         * modules/c-stack-tests (Makefile.am): Likewise.
25407         * modules/c-strcase-tests (Makefile.am): Likewise.
25408         * modules/copy-file-tests (Makefile.am): Likewise.
25409         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
25410         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
25411         * modules/mbrtowc-tests (Makefile.am): Likewise.
25412         * modules/mbscasecmp-tests (Makefile.am): Likewise.
25413         * modules/mbscasestr-tests (Makefile.am): Likewise.
25414         * modules/mbschr-tests (Makefile.am): Likewise.
25415         * modules/mbscspn-tests (Makefile.am): Likewise.
25416         * modules/mbsinit-tests (Makefile.am): Likewise.
25417         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
25418         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
25419         * modules/mbspbrk-tests (Makefile.am): Likewise.
25420         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
25421         * modules/mbsrchr-tests (Makefile.am): Likewise.
25422         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
25423         * modules/mbsspn-tests (Makefile.am): Likewise.
25424         * modules/mbsstr-tests (Makefile.am): Likewise.
25425         * modules/nl_langinfo-tests (Makefile.am): Likewise.
25426         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
25427         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
25428         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
25429         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
25430         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
25431         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
25432         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
25433         * modules/wcrtomb-tests (Makefile.am): Likewise.
25434         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
25435         * modules/wcsrtombs-tests (Makefile.am): Likewise.
25436         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
25437         assignments from TESTS_ENVIRONMENT.
25438         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
25439         augmentation.
25440         * modules/argp-version-etc-tests (Makefile.am): Likewise.
25441         * modules/atexit-tests (Makefile.am): Likewise.
25442         * modules/binary-io-tests (Makefile.am): Likewise.
25443         * modules/closein-tests (Makefile.am): Likewise.
25444         * modules/dprintf-posix-tests (Makefile.am): Likewise.
25445         * modules/exclude-tests (Makefile.am): Likewise.
25446         * modules/fflush-tests (Makefile.am): Likewise.
25447         * modules/fpending-tests (Makefile.am): Likewise.
25448         * modules/fprintf-posix-tests (Makefile.am): Likewise.
25449         * modules/freadahead-tests (Makefile.am): Likewise.
25450         * modules/freadptr-tests (Makefile.am): Likewise.
25451         * modules/freadseek-tests (Makefile.am): Likewise.
25452         * modules/fseek-tests (Makefile.am): Likewise.
25453         * modules/fseeko-tests (Makefile.am): Likewise.
25454         * modules/ftell-tests (Makefile.am): Likewise.
25455         * modules/ftello-tests (Makefile.am): Likewise.
25456         * modules/idpriv-drop-tests (Makefile.am): Likewise.
25457         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
25458         * modules/lseek-tests (Makefile.am): Likewise.
25459         * modules/parse-duration-tests (Makefile.am): Likewise.
25460         * modules/perror-tests (Makefile.am): Likewise.
25461         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
25462         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
25463         * modules/pipe-tests (Makefile.am): Likewise.
25464         * modules/pread-tests (Makefile.am): Likewise.
25465         * modules/printf-posix-tests (Makefile.am): Likewise.
25466         * modules/select-tests (Makefile.am): Likewise.
25467         * modules/sigpipe-tests (Makefile.am): Likewise.
25468         * modules/tsearch-tests (Makefile.am): Likewise.
25469         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
25470         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
25471         * modules/uniname/uniname-tests (Makefile.am): Likewise.
25472         * modules/uniwidth/width-tests (Makefile.am): Likewise.
25473         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
25474         * modules/version-etc-tests (Makefile.am): Likewise.
25475         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
25476         * modules/vprintf-posix-tests (Makefile.am): Likewise.
25477         * modules/xalloc-die-tests (Makefile.am): Likewise.
25478         * modules/xprintf-posix-tests (Makefile.am): Likewise.
25479         * modules/xstrtoimax-tests (Makefile.am): Likewise.
25480         * modules/xstrtol-tests (Makefile.am): Likewise.
25481         * modules/xstrtoumax-tests (Makefile.am): Likewise.
25482         * modules/yesno-tests (Makefile.am): Likewise.
25483         Suggested by Jim Meyering.
25484
25485 2010-01-24  Bruno Haible  <bruno@clisp.org>
25486
25487         More documentation.
25488         * doc/gnulib.texi (Writing modules): New chapter.
25489         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
25490         the new chapter.
25491
25492 2010-01-24  Jim Meyering  <meyering@redhat.com>
25493
25494         maint.mk: do not prepend "./" after filtering
25495         * top/maint.mk (_prepend_srcdir_prefix): New variable
25496         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
25497         "./" when $(srcdir) is ".".
25498
25499         define STREQ(a,b) consistently, removing useless parentheses
25500         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
25501         since the only risk is that "a" or "b" contains an unparenthesized
25502         comma, but if either did that, STREQ would have 3 or more arguments.
25503         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
25504         * lib/fts.c (STREQ): Remove unnecessary parentheses.
25505         * lib/hash-triple.c (STREQ): Likewise.
25506         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
25507         * lib/getugroups.c (STREQ): Likewise.
25508
25509 2010-01-23  Jim Meyering  <meyering@redhat.com>
25510
25511         maint.mk: fix syntax-check in a non-srcdir build directory
25512         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
25513         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
25514
25515 2010-01-22  Jim Meyering  <meyering@redhat.com>
25516
25517         userspec: add unit tests
25518         * tests/test-userspec.c: New file.
25519         * modules/userspec-tests: Likewise.
25520
25521 2010-01-21  Jim Meyering  <meyering@redhat.com>
25522
25523         maint.mk: handle source file names containing "." robustly
25524         * top/maint.mk (_dot_escaped_srcdir): Define.
25525         (VC_LIST): Use it in LHS of sed substitution.
25526
25527 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
25528
25529         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
25530         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
25531         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
25532         from a non-srcdir build.
25533
25534 2010-01-20  Eric Blake  <ebb9@byu.net>
25535
25536         warn-on-use: use instead of link-warning
25537         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
25538         * modules/unistd (Depends-on, Makefile.am): Likewise.
25539         * modules/arpa_inet (Depends-on): Replace link-warning with
25540         warn-on-use.
25541         (Makefile.am): Update rules accordingly.
25542         * modules/ctype (Depends-on, Makefile.am): Likewise.
25543         * modules/dirent (Depends-on, Makefile.am): Likewise.
25544         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
25545         * modules/inttypes (Depends-on, Makefile.am): Likewise.
25546         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25547         * modules/locale (Depends-on, Makefile.am): Likewise.
25548         * modules/math (Depends-on, Makefile.am): Likewise.
25549         * modules/search (Depends-on, Makefile.am): Likewise.
25550         * modules/signal (Depends-on, Makefile.am): Likewise.
25551         * modules/spawn (Depends-on, Makefile.am): Likewise.
25552         * modules/stdlib (Depends-on, Makefile.am): Likewise.
25553         * modules/string (Depends-on, Makefile.am): Likewise.
25554         * modules/strings (Depends-on, Makefile.am): Likewise.
25555         * modules/sys_file (Depends-on, Makefile.am): Likewise.
25556         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
25557         * modules/sys_select (Depends-on, Makefile.am): Likewise.
25558         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
25559         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
25560         * modules/sys_times (Depends-on, Makefile.am): Likewise.
25561         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25562         * modules/wchar (Depends-on, Makefile.am): Likewise.
25563         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
25564         should be poisoned.
25565         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
25566         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
25567         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
25568         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25569         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25570         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25571         * m4/math_h.m4 (gl_MATH_H): Likewise.
25572         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25573         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
25574         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25575         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
25576         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
25577         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
25578         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
25579         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
25580         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25581         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25582         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25583         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
25584         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25585         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25586         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25587         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25588         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
25589         GL_LINK_WARNING.
25590         * lib/ctype.in.h: Likewise.
25591         * lib/dirent.in.h: Likewise.
25592         * lib/fcntl.in.h: Likewise.
25593         * lib/inttypes.in.h: Likewise.
25594         * lib/langinfo.in.h: Likewise.
25595         * lib/locale.in.h: Likewise.
25596         * lib/math.in.h: Likewise.
25597         * lib/search.in.h: Likewise.
25598         * lib/signal.in.h: Likewise.
25599         * lib/spawn.in.h: Likewise.
25600         * lib/stdio.in.h: Likewise.
25601         * lib/stdlib.in.h: Likewise.
25602         * lib/string.in.h: Likewise.
25603         * lib/strings.in.h: Likewise.
25604         * lib/sys_file.in.h: Likewise.
25605         * lib/sys_ioctl.in.h: Likewise.
25606         * lib/sys_select.in.h: Likewise.
25607         * lib/sys_socket.in.h: Likewise.
25608         * lib/sys_stat.in.h: Likewise.
25609         * lib/sys_times.in.h: Likewise.
25610         * lib/sys_utsname.in.h: Likewise.
25611         * lib/unistd.in.h: Likewise.
25612         * lib/wchar.in.h: Likewise.
25613
25614 2010-01-20  Bruno Haible  <bruno@clisp.org>
25615
25616         Avoid duplicate -lm.
25617         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
25618         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
25619         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
25620         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
25621         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
25622         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
25623         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
25624         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
25625         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
25626         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
25627         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
25628         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25629         Reported by Paolo Bonzini.
25630
25631 2010-01-19  Bruno Haible  <bruno@clisp.org>
25632
25633         langinfo, nl_langinfo: Relicense under LGPLv2+.
25634         * modules/langinfo (License): Change to LGPLv2+.
25635         * modules/nl_langinfo (License): Likewise.
25636         Patch by David Lutterkort <lutter@redhat.com>.
25637
25638 2010-01-19  Bruno Haible  <bruno@clisp.org>
25639
25640         Avoid compilation error with cc on OSF/1 5.1.
25641         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
25642         statement, not before.
25643         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25644
25645 2010-01-18  Bruno Haible  <bruno@clisp.org>
25646
25647         Avoid a link error due to the __printf__ symbol.
25648         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
25649         and 2.6.x.
25650         (__format__, __printf__): Remove definitions.
25651         * lib/argp-fmtstream.h: Likewise.
25652         * lib/argp.h: Likewise.
25653         * lib/error.h: Likewise.
25654         * lib/vasnprintf.h: Likewise.
25655         * lib/xprintf.h: Likewise.
25656         * lib/xvasprintf.h: Likewise.
25657         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25658
25659 2010-01-18  Bruno Haible  <bruno@clisp.org>
25660
25661         Tests for module 'tanl'.
25662         * modules/tanl-tests: New file.
25663         * tests/test-tanl.c: New file.
25664
25665         Tests for module 'sqrtl'.
25666         * modules/sqrtl-tests: New file.
25667         * tests/test-sqrtl.c: New file.
25668
25669         Tests for module 'sinl'.
25670         * modules/sinl-tests: New file.
25671         * tests/test-sinl.c: New file.
25672
25673         Tests for module 'logl'.
25674         * modules/logl-tests: New file.
25675         * tests/test-logl.c: New file.
25676
25677         Tests for module 'expl'.
25678         * modules/expl-tests: New file.
25679         * tests/test-expl.c: New file.
25680
25681         Tests for module 'cosl'.
25682         * modules/cosl-tests: New file.
25683         * tests/test-cosl.c: New file.
25684
25685         Tests for module 'atanl'.
25686         * modules/atanl-tests: New file.
25687         * tests/test-atanl.c: New file.
25688
25689         Tests for module 'asinl'.
25690         * modules/asinl-tests: New file.
25691         * tests/test-asinl.c: New file.
25692
25693         Tests for module 'acosl'.
25694         * modules/acosl-tests: New file.
25695         * tests/test-acosl.c: New file.
25696
25697         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25698         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25699         tanl): Use the standard gnulib idiom.
25700         * lib/cosl.c: Don't include trigl.c and sincosl.c.
25701         * lib/sinl.c: Likewise.
25702         * lib/tanl.c: Don't include trigl.c.
25703         (kernel_tanl): Make static.
25704         * lib/sincosl.c: Include trigl.h first.
25705         * lib/trigl.c: Likewise.
25706         * m4/acosl.m4: New file.
25707         * m4/asinl.m4: New file.
25708         * m4/atanl.m4: New file.
25709         * m4/cosl.m4: New file.
25710         * m4/expl.m4: New file.
25711         * m4/logl.m4: New file.
25712         * m4/sinl.m4: New file.
25713         * m4/sqrtl.m4: New file.
25714         * m4/tanl.m4: New file.
25715         * m4/mathl.m4: Remove file.
25716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
25717         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25718         Don't initialize GNULIB_MATHL.
25719         * modules/acosl: New file.
25720         * modules/asinl: New file.
25721         * modules/atanl: New file.
25722         * modules/cosl: New file.
25723         * modules/expl: New file.
25724         * modules/logl: New file.
25725         * modules/sinl: New file.
25726         * modules/sqrtl: New file.
25727         * modules/tanl: New file.
25728         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
25729         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
25730         substitute GNULIB_MATHL.
25731         * modules/mathl: Rewritten.
25732         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
25733         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
25734         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
25735         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
25736         * doc/posix-functions/expl.texi: Mention the 'expl' module.
25737         * doc/posix-functions/logl.texi: Mention the 'logl' module.
25738         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
25739         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
25740         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
25741
25742 2010-01-18  Bruno Haible  <bruno@clisp.org>
25743
25744         sqrt: Make gl_FUNC_SQRT requirable.
25745         * m4/sqrt.m4: New file.
25746         * modules/sqrt (Files): Add it.
25747         (configure.ac): Invoke gl_FUNC_SQRT.
25748
25749 2010-01-18  Bruno Haible  <bruno@clisp.org>
25750
25751         New modules for common <math.h> functions.
25752         * m4/mathfunc.m4: New file.
25753         * modules/acos: New file.
25754         * modules/asin: New file.
25755         * modules/atan: New file.
25756         * modules/atan2: New file.
25757         * modules/cbrt: New file.
25758         * modules/copysign: New file.
25759         * modules/cos: New file.
25760         * modules/cosh: New file.
25761         * modules/erf: New file.
25762         * modules/erfc: New file.
25763         * modules/exp: New file.
25764         * modules/fabs: New file.
25765         * modules/fmod: New file.
25766         * modules/hypot: New file.
25767         * modules/j0: New file.
25768         * modules/j1: New file.
25769         * modules/jn: New file.
25770         * modules/ldexp: New file.
25771         * modules/lgamma: New file.
25772         * modules/log: New file.
25773         * modules/log10: New file.
25774         * modules/log1p: New file.
25775         * modules/logb: New file.
25776         * modules/modf: New file.
25777         * modules/nextafter: New file.
25778         * modules/pow: New file.
25779         * modules/remainder: New file.
25780         * modules/rint: New file.
25781         * modules/sin: New file.
25782         * modules/sinh: New file.
25783         * modules/sqrt: New file.
25784         * modules/tan: New file.
25785         * modules/tanh: New file.
25786         * modules/y0: New file.
25787         * modules/y1: New file.
25788         * modules/yn: New file.
25789         * doc/posix-functions/acos.texi: Mention the 'acos' module.
25790         * doc/posix-functions/asin.texi: Mention the 'asin' module.
25791         * doc/posix-functions/atan.texi: Mention the 'atan' module.
25792         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
25793         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
25794         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
25795         * doc/posix-functions/cos.texi: Mention the 'cos' module.
25796         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
25797         * doc/posix-functions/erf.texi: Mention the 'erf' module.
25798         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
25799         * doc/posix-functions/exp.texi: Mention the 'exp' module.
25800         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
25801         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
25802         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
25803         * doc/posix-functions/j0.texi: Mention the 'j0' module.
25804         * doc/posix-functions/j1.texi: Mention the 'j1' module.
25805         * doc/posix-functions/jn.texi: Mention the 'jn' module.
25806         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
25807         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
25808         * doc/posix-functions/log.texi: Mention the 'log' module.
25809         * doc/posix-functions/log10.texi: Mention the 'log10' module.
25810         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
25811         * doc/posix-functions/logb.texi: Mention the 'logb' module.
25812         * doc/posix-functions/modf.texi: Mention the 'modf' module.
25813         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
25814         * doc/posix-functions/pow.texi: Mention the 'pow' module.
25815         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
25816         * doc/posix-functions/rint.texi: Mention the 'rint' module.
25817         * doc/posix-functions/sin.texi: Mention the 'sin' module.
25818         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
25819         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
25820         * doc/posix-functions/tan.texi: Mention the 'tan' module.
25821         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
25822         * doc/posix-functions/y0.texi: Mention the 'y0' module.
25823         * doc/posix-functions/y1.texi: Mention the 'y1' module.
25824         * doc/posix-functions/yn.texi: Mention the 'yn' module.
25825
25826 2010-01-18  Jim Meyering  <meyering@redhat.com>
25827
25828         ignore-value: relax license to LGPLv2+
25829         * modules/ignore-value (License): Relax to LGPLv2+.
25830
25831         getdate: don't leak when TZ contains two or more '"'s
25832         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
25833         double quote in TZ after the first one.
25834
25835         readtokens: do not leak internal token_lengths buffer
25836         * lib/readtokens.c (readtokens): Free the local, lengths,
25837         when the supplied "token_lengths" parameter is NULL.
25838
25839 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25840
25841         Fix a couple of missing LIBTHREAD link failures on AIX.
25842         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
25843         $(LIBTHREAD).
25844         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
25845
25846         Link test-poll against INET_PTON_LIB.
25847         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
25848         for inet_pton on Solaris 10.
25849
25850 2010-01-17  Bruno Haible  <bruno@clisp.org>
25851
25852         unistdio/*-sprintf: Fix typo in module description.
25853         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
25854         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
25855         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
25856         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
25857         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
25858         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
25859         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
25860         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25861
25862 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25863
25864         gnulib-tool: fix filelist for AIX, HP-UX ksh.
25865         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
25866         variables in shell case patterns, for AIX and HP-UX ksh.
25867
25868         Split large sed scripts, for HP-UX sed.
25869         * modules/stdio: Split sed scripts around 50 sed commands,
25870         to avoid HP-UX limit of 99 commands, in the near future.
25871         * modules/string: Likewise.
25872         * modules/unistd: Likewise.
25873
25874         gnulib-tool: avoid writing in the current directory.
25875         * gnulib-tool (func_emit_lib_Makefile_am)
25876         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
25877         not in the current directory, so concurrent gnulib-tool
25878         instances do not interfere.
25879
25880 2010-01-16  Jim Meyering  <meyering@redhat.com>
25881
25882         doc: update users.txt
25883         * users.txt: Add grep.
25884         (diffutils, gzip): Update URLs.
25885
25886 2010-01-12  Bruno Haible  <bruno@clisp.org>
25887
25888         posix_spawn: Avoid test failure on Cygwin.
25889         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
25890         characters.
25891         Reported by Simon Josefsson.
25892
25893 2010-01-12  Bruno Haible  <bruno@clisp.org>
25894
25895         * tests/test-cond.c (main): When skipping the test, show the reason.
25896
25897 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25898
25899         * lib/striconv.c (str_cd_iconv): Avoid if before free.
25900
25901 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25902
25903         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
25904         VC_LIST_ALWAYS_EXCLUDE_REGEX.
25905
25906 2010-01-12  Eric Blake  <ebb9@byu.net>
25907
25908         build: guarantee AS_VAR_IF
25909         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
25910         (gl_AS_VAR_IF): Move...
25911         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
25912         Reported by Simon Josefsson.
25913
25914 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25915
25916         * lib/stdio.in.h: Fix typo.
25917
25918 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25919
25920         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
25921         libgpg-error.
25922
25923 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25924
25925         * tests/test-xalloc-die.sh: Use $EXEEXT.
25926
25927 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25928             Bruno Haible  <bruno@clisp.org>
25929
25930         getlogin, getlogin_r: Avoid test failure.
25931         * tests/test-getlogin.c: Include <stdio.h>.
25932         (main): Skip the test when the function fails because stdin is not a
25933         tty.
25934         * tests/test-getlogin_r.c: Include <stdio.h>.
25935         (main): Skip the test when the function fails because stdin is not a
25936         tty.
25937
25938 2010-01-11  Eric Blake  <ebb9@byu.net>
25939
25940         tests: avoid more large file warnings
25941         * tests/test-fflush.c: Avoid warning about ftell use.
25942         * tests/test-fseek.c: Avoid warning about fseek use.
25943
25944 2010-01-10  Bruno Haible  <bruno@clisp.org>
25945
25946         nproc: Work better on Linux when /proc and /sys are not mounted.
25947         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
25948         as lower bound when, on glibc/Linux systems,
25949         sysconf (_SC_NPROCESSORS_CONF) returns 1.
25950         Suggested by Pádraig Brady <P@draigbrady.com>.
25951         Reported by Dmitry V. Levin <ldv@altlinux.org>.
25952
25953         nproc: Refactor.
25954         * lib/nproc.c (num_processors_via_affinity_mask): New function,
25955         extracted from num_processors.
25956         (num_processors): Call it.
25957
25958 2010-01-11  Jim Meyering  <meyering@redhat.com>
25959
25960         utimecmp: avoid new warning from upcoming gcc-4.5.0
25961         * lib/utimecmp.c (BILLION): Define using #define rather than an
25962         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
25963
25964 2010-01-11  Eric Blake  <ebb9@byu.net>
25965
25966         math: add portability warnings for classification macros
25967         * modules/math (Depends-on): Add warn-on-use.
25968         (Makefile.am): Provide new substitutions.
25969         * m4/math_h.m4 (gl_MATH_H): Require inline.
25970         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
25971         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
25972         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
25973         implement warnings.
25974
25975         unistd: warn on use of environ without module
25976         * modules/unistd (Depends-on): Add warn-on-use.
25977         (Makefile.am): Provide new substitutions.
25978         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25979         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25980
25981         stdio: warn on suspicious uses
25982         * modules/stdio (Depends-on): Add warn-on-use.
25983         (Makefile.am): Provide new substitutions.
25984         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25985         fseeko.
25986         * lib/stdio.in.h (gets): Always warn on use.
25987         (fseek, ftell): Adjust when warnings are issued, and honor
25988         _GL_NO_LARGE_FILES as a way to silence the warning.
25989         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25990         any warning about large file offsets.
25991         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25992         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25993         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25994         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25995         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25996         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25997         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25998         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25999
26000         warn-on-use: new module
26001         * modules/warn-on-use: New file.
26002         * build-aux/warn-on-use.h: Likewise.
26003         * m4/warn-on-use.m4: Likewise.
26004         * MODULES.html.sh (Support for building): Mention it.
26005
26006 2010-01-10  Bruno Haible  <bruno@clisp.org>
26007
26008         Tests for module 'unistr/u32-strdup'.
26009         * modules/unistr/u32-strdup-tests: New file.
26010         * tests/unistr/test-u32-strdup.c: New file.
26011
26012         Tests for module 'unistr/u16-strdup'.
26013         * modules/unistr/u16-strdup-tests: New file.
26014         * tests/unistr/test-u16-strdup.c: New file.
26015
26016         Tests for module 'unistr/u8-strdup'.
26017         * modules/unistr/u8-strdup-tests: New file.
26018         * tests/unistr/test-u8-strdup.c: New file.
26019         * tests/unistr/test-strdup.h: New file.
26020
26021         Tests for module 'unistr/u32-strncmp'.
26022         * modules/unistr/u32-strncmp-tests: New file.
26023         * tests/unistr/test-u32-strncmp.c: New file.
26024
26025         Tests for module 'unistr/u16-strncmp'.
26026         * modules/unistr/u16-strncmp-tests: New file.
26027         * tests/unistr/test-u16-strncmp.c: New file.
26028
26029         Tests for module 'unistr/u8-strncmp'.
26030         * modules/unistr/u8-strncmp-tests: New file.
26031         * tests/unistr/test-u8-strncmp.c: New file.
26032         * tests/unistr/test-strncmp.h: New file.
26033
26034         Tests for module 'unistr/u32-strcoll'.
26035         * modules/unistr/u32-strcoll-tests: New file.
26036         * tests/unistr/test-u32-strcoll.c: New file.
26037
26038         Tests for module 'unistr/u16-strcoll'.
26039         * modules/unistr/u16-strcoll-tests: New file.
26040         * tests/unistr/test-u16-strcoll.c: New file.
26041
26042         Tests for module 'unistr/u8-strcoll'.
26043         * modules/unistr/u8-strcoll-tests: New file.
26044         * tests/unistr/test-u8-strcoll.c: New file.
26045
26046         Tests for module 'unistr/u32-strcmp'.
26047         * modules/unistr/u32-strcmp-tests: New file.
26048         * tests/unistr/test-u32-strcmp.c: New file.
26049         * tests/unistr/test-u32-strcmp.h: New file.
26050
26051         Tests for module 'unistr/u16-strcmp'.
26052         * modules/unistr/u16-strcmp-tests: New file.
26053         * tests/unistr/test-u16-strcmp.c: New file.
26054         * tests/unistr/test-u16-strcmp.h: New file.
26055
26056         Tests for module 'unistr/u8-strcmp'.
26057         * modules/unistr/u8-strcmp-tests: New file.
26058         * tests/unistr/test-u8-strcmp.c: New file.
26059         * tests/unistr/test-u8-strcmp.h: New file.
26060         * tests/unistr/test-strcmp.h: New file.
26061
26062         Tests for module 'unistr/u32-strncat'.
26063         * modules/unistr/u32-strncat-tests: New file.
26064         * tests/unistr/test-u32-strncat.c: New file.
26065
26066         Tests for module 'unistr/u16-strncat'.
26067         * modules/unistr/u16-strncat-tests: New file.
26068         * tests/unistr/test-u16-strncat.c: New file.
26069
26070         Tests for module 'unistr/u8-strncat'.
26071         * modules/unistr/u8-strncat-tests: New file.
26072         * tests/unistr/test-u8-strncat.c: New file.
26073         * tests/unistr/test-strncat.h: New file.
26074
26075         Tests for module 'unistr/u32-strcat'.
26076         * modules/unistr/u32-strcat-tests: New file.
26077         * tests/unistr/test-u32-strcat.c: New file.
26078
26079         Tests for module 'unistr/u16-strcat'.
26080         * modules/unistr/u16-strcat-tests: New file.
26081         * tests/unistr/test-u16-strcat.c: New file.
26082
26083         Tests for module 'unistr/u8-strcat'.
26084         * modules/unistr/u8-strcat-tests: New file.
26085         * tests/unistr/test-u8-strcat.c: New file.
26086         * tests/unistr/test-strcat.h: New file.
26087
26088         Tests for module 'unistr/u32-stpncpy'.
26089         * modules/unistr/u32-stpncpy-tests: New file.
26090         * tests/unistr/test-u32-stpncpy.c: New file.
26091
26092         Tests for module 'unistr/u16-stpncpy'.
26093         * modules/unistr/u16-stpncpy-tests: New file.
26094         * tests/unistr/test-u16-stpncpy.c: New file.
26095
26096         Tests for module 'unistr/u8-stpncpy'.
26097         * modules/unistr/u8-stpncpy-tests: New file.
26098         * tests/unistr/test-u8-stpncpy.c: New file.
26099         * tests/unistr/test-stpncpy.h: New file.
26100
26101         Tests for module 'unistr/u32-strncpy'.
26102         * modules/unistr/u32-strncpy-tests: New file.
26103         * tests/unistr/test-u32-strncpy.c: New file.
26104
26105         Tests for module 'unistr/u16-strncpy'.
26106         * modules/unistr/u16-strncpy-tests: New file.
26107         * tests/unistr/test-u16-strncpy.c: New file.
26108
26109         Tests for module 'unistr/u8-strncpy'.
26110         * modules/unistr/u8-strncpy-tests: New file.
26111         * tests/unistr/test-u8-strncpy.c: New file.
26112         * tests/unistr/test-strncpy.h: New file.
26113
26114         Tests for module 'unistr/u32-stpcpy'.
26115         * modules/unistr/u32-stpcpy-tests: New file.
26116         * tests/unistr/test-u32-stpcpy.c: New file.
26117
26118         Tests for module 'unistr/u16-stpcpy'.
26119         * modules/unistr/u16-stpcpy-tests: New file.
26120         * tests/unistr/test-u16-stpcpy.c: New file.
26121
26122         Tests for module 'unistr/u8-stpcpy'.
26123         * modules/unistr/u8-stpcpy-tests: New file.
26124         * tests/unistr/test-u8-stpcpy.c: New file.
26125         * tests/unistr/test-stpcpy.h: New file.
26126
26127         Tests for module 'unistr/u32-strcpy'.
26128         * modules/unistr/u32-strcpy-tests: New file.
26129         * tests/unistr/test-u32-strcpy.c: New file.
26130
26131         Tests for module 'unistr/u16-strcpy'.
26132         * modules/unistr/u16-strcpy-tests: New file.
26133         * tests/unistr/test-u16-strcpy.c: New file.
26134
26135         Tests for module 'unistr/u8-strcpy'.
26136         * modules/unistr/u8-strcpy-tests: New file.
26137         * tests/unistr/test-u8-strcpy.c: New file.
26138         * tests/unistr/test-strcpy.h: New file.
26139
26140         Tests for module 'unistr/u32-strnlen'.
26141         * modules/unistr/u32-strnlen-tests: New file.
26142         * tests/unistr/test-u32-strnlen.c: New file.
26143
26144         Tests for module 'unistr/u16-strnlen'.
26145         * modules/unistr/u16-strnlen-tests: New file.
26146         * tests/unistr/test-u16-strnlen.c: New file.
26147
26148         Tests for module 'unistr/u8-strnlen'.
26149         * modules/unistr/u8-strnlen-tests: New file.
26150         * tests/unistr/test-u8-strnlen.c: New file.
26151         * tests/unistr/test-strnlen.h: New file.
26152
26153         Tests for module 'unistr/u32-strlen'.
26154         * modules/unistr/u32-strlen-tests: New file.
26155         * tests/unistr/test-u32-strlen.c: New file.
26156
26157         Tests for module 'unistr/u16-strlen'.
26158         * modules/unistr/u16-strlen-tests: New file.
26159         * tests/unistr/test-u16-strlen.c: New file.
26160
26161         Tests for module 'unistr/u8-strlen'.
26162         * modules/unistr/u8-strlen-tests: New file.
26163         * tests/unistr/test-u8-strlen.c: New file.
26164
26165         Tests for module 'unistr/u32-prev'.
26166         * modules/unistr/u32-prev-tests: New file.
26167         * tests/unistr/test-u32-prev.c: New file.
26168
26169         Tests for module 'unistr/u16-prev'.
26170         * modules/unistr/u16-prev-tests: New file.
26171         * tests/unistr/test-u16-prev.c: New file.
26172
26173         Tests for module 'unistr/u8-prev'.
26174         * modules/unistr/u8-prev-tests: New file.
26175         * tests/unistr/test-u8-prev.c: New file.
26176
26177         Tests for module 'unistr/u32-next'.
26178         * modules/unistr/u32-next-tests: New file.
26179         * tests/unistr/test-u32-next.c: New file.
26180
26181         Tests for module 'unistr/u16-next'.
26182         * modules/unistr/u16-next-tests: New file.
26183         * tests/unistr/test-u16-next.c: New file.
26184
26185         Tests for module 'unistr/u8-next'.
26186         * modules/unistr/u8-next-tests: New file.
26187         * tests/unistr/test-u8-next.c: New file.
26188
26189         Tests for module 'unistr/u32-strmbtouc'.
26190         * modules/unistr/u32-strmbtouc-tests: New file.
26191         * tests/unistr/test-u32-strmbtouc.c: New file.
26192
26193         Tests for module 'unistr/u16-strmbtouc'.
26194         * modules/unistr/u16-strmbtouc-tests: New file.
26195         * tests/unistr/test-u16-strmbtouc.c: New file.
26196
26197         Tests for module 'unistr/u8-strmbtouc'.
26198         * modules/unistr/u8-strmbtouc-tests: New file.
26199         * tests/unistr/test-u8-strmbtouc.c: New file.
26200
26201         Tests for module 'unistr/u32-strmblen'.
26202         * modules/unistr/u32-strmblen-tests: New file.
26203         * tests/unistr/test-u32-strmblen.c: New file.
26204
26205         Tests for module 'unistr/u16-strmblen'.
26206         * modules/unistr/u16-strmblen-tests: New file.
26207         * tests/unistr/test-u16-strmblen.c: New file.
26208
26209         Tests for module 'unistr/u8-strmblen'.
26210         * modules/unistr/u8-strmblen-tests: New file.
26211         * tests/unistr/test-u8-strmblen.c: New file.
26212
26213         Tests for module 'unistr/u32-cpy-alloc'.
26214         * modules/unistr/u32-cpy-alloc-tests: New file.
26215         * tests/unistr/test-u32-cpy-alloc.c: New file.
26216
26217         Tests for module 'unistr/u16-cpy-alloc'.
26218         * modules/unistr/u16-cpy-alloc-tests: New file.
26219         * tests/unistr/test-u16-cpy-alloc.c: New file.
26220
26221         Tests for module 'unistr/u8-cpy-alloc'.
26222         * modules/unistr/u8-cpy-alloc-tests: New file.
26223         * tests/unistr/test-u8-cpy-alloc.c: New file.
26224         * tests/unistr/test-cpy-alloc.h: New file.
26225
26226         Tests for module 'unistr/u32-mbsnlen'.
26227         * modules/unistr/u32-mbsnlen-tests: New file.
26228         * tests/unistr/test-u32-mbsnlen.c: New file.
26229
26230         Tests for module 'unistr/u16-mbsnlen'.
26231         * modules/unistr/u16-mbsnlen-tests: New file.
26232         * tests/unistr/test-u16-mbsnlen.c: New file.
26233
26234         Tests for module 'unistr/u8-mbsnlen'.
26235         * modules/unistr/u8-mbsnlen-tests: New file.
26236         * tests/unistr/test-u8-mbsnlen.c: New file.
26237
26238         Tests for module 'unistr/u32-chr'.
26239         * modules/unistr/u32-chr-tests: New file.
26240         * tests/unistr/test-u32-chr.c: New file.
26241
26242         Tests for module 'unistr/u16-chr'.
26243         * modules/unistr/u16-chr-tests: New file.
26244         * tests/unistr/test-u16-chr.c: New file.
26245
26246         Tests for module 'unistr/u8-chr'.
26247         * modules/unistr/u8-chr-tests: New file.
26248         * tests/unistr/test-u8-chr.c: New file.
26249         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
26250
26251         Tests for module 'unistr/u32-cmp2'.
26252         * modules/unistr/u32-cmp2-tests: New file.
26253         * tests/unistr/test-u32-cmp2.c: New file.
26254
26255         Tests for module 'unistr/u16-cmp2'.
26256         * modules/unistr/u16-cmp2-tests: New file.
26257         * tests/unistr/test-u16-cmp2.c: New file.
26258
26259         Tests for module 'unistr/u8-cmp2'.
26260         * modules/unistr/u8-cmp2-tests: New file.
26261         * tests/unistr/test-u8-cmp2.c: New file.
26262         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
26263
26264         Tests for module 'unistr/u32-cmp'.
26265         * modules/unistr/u32-cmp-tests: New file.
26266         * tests/unistr/test-u32-cmp.c: New file.
26267
26268         Tests for module 'unistr/u16-cmp'.
26269         * modules/unistr/u16-cmp-tests: New file.
26270         * tests/unistr/test-u16-cmp.c: New file.
26271
26272         Tests for module 'unistr/u8-cmp'.
26273         * modules/unistr/u8-cmp-tests: New file.
26274         * tests/unistr/test-u8-cmp.c: New file.
26275         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
26276
26277         Tests for module 'unistr/u32-set'.
26278         * modules/unistr/u32-set-tests: New file.
26279         * tests/unistr/test-u32-set.c: New file.
26280
26281         Tests for module 'unistr/u16-set'.
26282         * modules/unistr/u16-set-tests: New file.
26283         * tests/unistr/test-u16-set.c: New file.
26284
26285         Tests for module 'unistr/u8-set'.
26286         * modules/unistr/u8-set-tests: New file.
26287         * tests/unistr/test-u8-set.c: New file.
26288         * tests/unistr/test-set.h: New file.
26289
26290         Tests for module 'unistr/u32-move'.
26291         * modules/unistr/u32-move-tests: New file.
26292         * tests/unistr/test-u32-move.c: New file.
26293
26294         Tests for module 'unistr/u16-move'.
26295         * modules/unistr/u16-move-tests: New file.
26296         * tests/unistr/test-u16-move.c: New file.
26297
26298         Tests for module 'unistr/u8-move'.
26299         * modules/unistr/u8-move-tests: New file.
26300         * tests/unistr/test-u8-move.c: New file.
26301         * tests/unistr/test-move.h: New file.
26302
26303         Tests for module 'unistr/u32-cpy'.
26304         * modules/unistr/u32-cpy-tests: New file.
26305         * tests/unistr/test-u32-cpy.c: New file.
26306
26307         Tests for module 'unistr/u16-cpy'.
26308         * modules/unistr/u16-cpy-tests: New file.
26309         * tests/unistr/test-u16-cpy.c: New file.
26310
26311         Tests for module 'unistr/u8-cpy'.
26312         * modules/unistr/u8-cpy-tests: New file.
26313         * tests/unistr/test-u8-cpy.c: New file.
26314         * tests/unistr/test-cpy.h: New file.
26315
26316 2010-01-09  Bruno Haible  <bruno@clisp.org>
26317
26318         Tests for module 'unistr/u32-uctomb'.
26319         * modules/unistr/u32-uctomb-tests: New file.
26320         * tests/unistr/test-u32-uctomb.c: New file.
26321
26322         Tests for module 'unistr/u16-uctomb'.
26323         * modules/unistr/u16-uctomb-tests: New file.
26324         * tests/unistr/test-u16-uctomb.c: New file.
26325
26326         Tests for module 'unistr/u8-uctomb'.
26327         * modules/unistr/u8-uctomb-tests: New file.
26328         * tests/unistr/test-u8-uctomb.c: New file.
26329
26330         Tests for module 'unistr/u32-mbtoucr'.
26331         * modules/unistr/u32-mbtoucr-tests: New file.
26332         * tests/unistr/test-u32-mbtoucr.c: New file.
26333
26334         Tests for module 'unistr/u16-mbtoucr'.
26335         * modules/unistr/u16-mbtoucr-tests: New file.
26336         * tests/unistr/test-u16-mbtoucr.c: New file.
26337
26338         Tests for module 'unistr/u8-mbtoucr'.
26339         * modules/unistr/u8-mbtoucr-tests: New file.
26340         * tests/unistr/test-u8-mbtoucr.c: New file.
26341
26342         Tests for module 'unistr/u32-mbtouc'.
26343         * modules/unistr/u32-mbtouc-tests: New file.
26344         * tests/unistr/test-u32-mbtouc.c: New file.
26345
26346         Tests for module 'unistr/u16-mbtouc'.
26347         * modules/unistr/u16-mbtouc-tests: New file.
26348         * tests/unistr/test-u16-mbtouc.c: New file.
26349
26350         Tests for module 'unistr/u8-mbtouc'.
26351         * modules/unistr/u8-mbtouc-tests: New file.
26352         * tests/unistr/test-u8-mbtouc.c: New file.
26353
26354         Tests for module 'unistr/u32-mbtouc-unsafe'.
26355         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
26356         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
26357         * tests/unistr/test-u32-mbtouc.h: New file.
26358
26359         Tests for module 'unistr/u16-mbtouc-unsafe'.
26360         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
26361         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
26362         * tests/unistr/test-u16-mbtouc.h: New file.
26363
26364         Tests for module 'unistr/u8-mbtouc-unsafe'.
26365         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
26366         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
26367         * tests/unistr/test-u8-mbtouc.h: New file.
26368
26369         Tests for module 'unistr/u32-mblen'.
26370         * modules/unistr/u32-mblen-tests: New file.
26371         * tests/unistr/test-u32-mblen.c: New file.
26372
26373         Tests for module 'unistr/u16-mblen'.
26374         * modules/unistr/u16-mblen-tests: New file.
26375         * tests/unistr/test-u16-mblen.c: New file.
26376
26377         Tests for module 'unistr/u8-mblen'.
26378         * modules/unistr/u8-mblen-tests: New file.
26379         * tests/unistr/test-u8-mblen.c: New file.
26380
26381         Tests for module 'unistr/u32-to-u16'.
26382         * modules/unistr/u32-to-u16-tests: New file.
26383         * tests/unistr/test-u32-to-u16.c: New file.
26384
26385         Tests for module 'unistr/u32-to-u8'.
26386         * modules/unistr/u32-to-u8-tests: New file.
26387         * tests/unistr/test-u32-to-u8.c: New file.
26388
26389         Tests for module 'unistr/u16-to-u32'.
26390         * modules/unistr/u16-to-u32-tests: New file.
26391         * tests/unistr/test-u16-to-u32.c: New file.
26392
26393         Tests for module 'unistr/u16-to-u8'.
26394         * modules/unistr/u16-to-u8-tests: New file.
26395         * tests/unistr/test-u16-to-u8.c: New file.
26396
26397         Tests for module 'unistr/u8-to-u32'.
26398         * modules/unistr/u8-to-u32-tests: New file.
26399         * tests/unistr/test-u8-to-u32.c: New file.
26400
26401         Tests for module 'unistr/u8-to-u16'.
26402         * modules/unistr/u8-to-u16-tests: New file.
26403         * tests/unistr/test-u8-to-u16.c: New file.
26404
26405         Tests for module 'unistr/u32-check'.
26406         * modules/unistr/u32-check-tests: New file.
26407         * tests/unistr/test-u32-check.c: New file.
26408
26409         Tests for module 'unistr/u16-check'.
26410         * modules/unistr/u16-check-tests: New file.
26411         * tests/unistr/test-u16-check.c: New file.
26412
26413         Tests for module 'unistr/u8-check'.
26414         * modules/unistr/u8-check-tests: New file.
26415         * tests/unistr/test-u8-check.c: New file.
26416
26417         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
26418         (category_equals): New function.
26419         (main): Add more tests.
26420         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
26421
26422         * tests/unictype/test-bidi_byname.c (main): Add more tests.
26423
26424 2010-01-10  Bruno Haible  <bruno@clisp.org>
26425
26426         unistr/u*-strcoll: Try harder to distinguish different strings.
26427         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
26428         compare s1 and s2 to see if they are different.
26429
26430 2010-01-10  Bruno Haible  <bruno@clisp.org>
26431
26432         unistr/u*-stpncpy: Fix the return value.
26433         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
26434         description of the return value consistent with stpncpy in glibc.
26435         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
26436         written non-NUL unit.
26437
26438 2010-01-10  Bruno Haible  <bruno@clisp.org>
26439
26440         unistr/u*-next: Add missing dependencies.
26441         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
26442         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
26443         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
26444
26445 2010-01-10  Bruno Haible  <bruno@clisp.org>
26446
26447         unistr/u8-mbsnlen: Fix return value for incomplete character.
26448         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
26449         u8_mblen.
26450         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
26451         Remove unistr/u8-mblen.
26452         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
26453         u16_mblen.
26454         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
26455         Remove unistr/u16-mblen.
26456
26457 2010-01-10  Bruno Haible  <bruno@clisp.org>
26458
26459         wchar: Fix compilation error when <wchar.h> is used from coreutils.
26460         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
26461         Reported by Brian Gough <bjg@gnu.org> and
26462         Chris Clayton <chris2553@googlemail.com> via
26463         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
26464
26465 2010-01-09  Bruno Haible  <bruno@clisp.org>
26466
26467         unistr/u16-to-u32: Reject invalid input.
26468         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
26469         u16_mbtouc.
26470         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
26471         Remove unistr/u16-mbtouc.
26472
26473         unistr/u16-to-u8: Reject invalid input.
26474         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
26475         u16_mbtouc.
26476         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
26477         Remove unistr/u16-mbtouc.
26478
26479         unistr/u8-to-u32: Reject invalid input.
26480         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
26481         u8_mbtouc.
26482         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
26483         Remove unistr/u8-mbtouc.
26484
26485         unistr/u8-to-u16: Reject invalid input.
26486         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
26487         u8_mbtouc.
26488         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
26489         Remove unistr/u8-mbtouc.
26490
26491 2010-01-09  Bruno Haible  <bruno@clisp.org>
26492
26493         Tests for module 'getlogin'.
26494         * modules/getlogin-tests: New file.
26495         * tests/test-getlogin.c: New file.
26496
26497         New module 'getlogin'.
26498         * lib/unistd.in.h (getlogin): New declaration.
26499         * lib/getlogin.c: New file.
26500         * m4/getlogin.m4: New file.
26501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
26502         HAVE_GETLOGIN.
26503         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
26504         HAVE_GETLOGIN.
26505         * modules/getlogin: New file.
26506         * doc/posix-functions/getlogin.texi: Mention the new module.
26507         Reported by John W. Eaton <jwe@gnu.org>.
26508
26509 2010-01-09  Bruno Haible  <bruno@clisp.org>
26510
26511         getlogin_r: Support for native Windows.
26512         * lib/getlogin_r.c: Include <windows.h>
26513         (getlogin_r): Implement for native Windows.
26514         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
26515         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
26516         via John W. Eaton <jwe@gnu.org>.
26517
26518 2010-01-09  Bruno Haible  <bruno@clisp.org>
26519
26520         getlogin_r: Small fixes.
26521         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
26522         succeeds.
26523         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
26524         before testing whether getlogin_r is declared. No need to set
26525         HAVE_DECL_GETLOGIN_R to 1.
26526         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
26527
26528 2010-01-09  Bruno Haible  <bruno@clisp.org>
26529
26530         * lib/unistd.in.h (getlogin_r): Add comment.
26531
26532 2010-01-09  Bruno Haible  <bruno@clisp.org>
26533
26534         Tests for module 'getlogin_r'.
26535         * modules/getlogin_r-tests: New file.
26536         * tests/test-getlogin_r.c: New file.
26537
26538 2010-01-09  Jim Meyering  <meyering@redhat.com>
26539
26540         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
26541         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
26542         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
26543
26544 2010-01-08  Simon Josefsson  <simon@josefsson.org>
26545
26546         * lib/dup2.c (rpl_dup2): Improve comment.
26547
26548 2010-01-08  Eric Blake  <ebb9@byu.net>
26549
26550         maint.mk: allow packages to add makefile @@ exceptions
26551         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
26552         (sc_makefile_check): Rename...
26553         (sc_makefile_at_at_check): ...to this, and use hook.
26554
26555         dup2: work around mingw bug
26556         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
26557         Reported by Simon Josefsson.
26558
26559 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
26560
26561         glob: Fix C++ compilation.
26562         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
26563         C++.
26564
26565 2010-01-07  Bruno Haible  <bruno@clisp.org>
26566
26567         Fix indentation of wctype.in.h, broken since 2007-01-06.
26568         * lib/wctype.in.h: Fix indentation of preprocessor directives.
26569
26570 2010-01-07  Bruno Haible  <bruno@clisp.org>
26571
26572         mbslen: Avoid collision with system function.
26573         * lib/string.in.h [MirBSD]: Include <wchar.h>.
26574         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
26575         * m4/mbslen.m4: New file.
26576         * modules/mbslen (Files): Add it.
26577         (configure.ac): Invoke gl_MBSLEN.
26578         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
26579         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
26580         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
26581         via Ian Beckwith <ianb@erislabs.net>.
26582
26583 2010-01-07  Bruno Haible  <bruno@clisp.org>
26584
26585         dirent: Document the last fix.
26586         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
26587
26588 2010-01-07  Bruno Haible  <bruno@clisp.org>
26589
26590         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
26591         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
26592         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
26593         va_list are defined.
26594         * doc/posix-headers/stdio.texi: Document the bug of missing types.
26595         Reported by Eric Blake.
26596
26597 2010-01-07  Bruno Haible  <bruno@clisp.org>
26598
26599         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
26600         * modules/xlist (Depends-on): Add 'list',
26601         * modules/xoset (Depends-on): Add 'oset'.
26602         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26603
26604 2010-01-07  Bruno Haible  <bruno@clisp.org>
26605
26606         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
26607         * doc/posix-functions/strncasecmp.texi: Likewise.
26608
26609 2010-01-07  Bruno Haible  <bruno@clisp.org>
26610
26611         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
26612
26613 2010-01-07  John W. Eaton  <jwe@octave.org>
26614
26615         wctype: allow C++ use
26616         * lib/wctype.in.h: Add extern "C" block for C++.
26617
26618 2010-01-06  Eric Blake  <ebb9@byu.net>
26619
26620         maint.mk: detect incorrect GFDL usage
26621         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
26622
26623 2010-01-06  Jim Meyering  <meyering@redhat.com>
26624         and Eric Blake  <ebb9@byu.net>
26625
26626         maint.mk: ignore multi-line copyright in NEWS
26627         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
26628
26629 2010-01-06  Eric Blake  <ebb9@byu.net>
26630
26631         select: add missing dependency
26632         * modules/select-tests (Depends-on): Move sockets dependency...
26633         * modules/select (Depends-on): ...here.
26634         Reported by Ian Beckwith.
26635
26636         doc: regenerate INSTALL
26637         * doc/INSTALL: Reflect recent autoconf update.
26638         * doc/INSTALL.ISO: Likewise.
26639         * doc/INSTALL.UTF-8: Likewise.
26640
26641         pread: fix compilation on glibc
26642         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
26643         Reported by Ralf Wildenhues.
26644
26645         dirent: fix test failure
26646         * lib/dirent.in.h (includes): Guarantee ino_t.
26647         Reported by Ralf Wildenhues.
26648
26649 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
26650
26651         linkat, renameat: avoid bad free
26652         * lib/at-func2.c (at_func2): Fix typo.
26653         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
26654
26655 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26656
26657         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
26658         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
26659         to avoid failure of symlink test later.
26660
26661 2010-01-06  Eric Blake  <ebb9@byu.net>
26662
26663         stdio, unistd: guarantee ssize_t
26664         * lib/unistd.in.h (includes): Ensure that types required by POSIX
26665         2008 are exposed when needed.
26666         * lib/stdio.in.h (includes): Likewise.
26667         Reported by Ralf Wildenhues.
26668
26669 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
26670
26671         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
26672         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
26673         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
26674
26675 2010-01-06  Jim Meyering  <meyering@redhat.com>
26676
26677         readtokens: this module *does* require xalloc.h
26678         It uses only functions that were omitted by the old syntax-check rule.
26679         * lib/readtokens.c: Include "xalloc.h" once again.
26680         * modules/readtokens (Depends-on): Add xalloc.
26681         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
26682
26683 2010-01-05  Eric Blake  <ebb9@byu.net>
26684
26685         maint: support 'make announcement' from a VPATH build
26686         * top/maint.mk (announcement): Look for correct NEWS file.
26687
26688 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
26689
26690         utimens (fdutimens): ignore a negative FD, per contract
26691         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
26692         when we have a valid file descriptor.  Otherwise, using a brand
26693         new glibc (with just-patched futimens that now fails with EBADF)
26694         would cause this function to fail with ENOSYS.
26695         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
26696         See also http://bugzilla.redhat.com/552320.
26697
26698 2010-01-05  Eric Blake  <ebb9@byu.net>
26699
26700         strcase: document what it provides
26701         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
26702         gnulib module.
26703         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
26704         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
26705
26706 2010-01-05  Jim Meyering  <meyering@redhat.com>
26707
26708         maint: remove useless inclusions of "xalloc.h"
26709         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
26710         * lib/readtokens.c: Likewise.
26711         * lib/same.c: Likewise.
26712         * modules/getloadavg (Depends-on): Remove xalloc.
26713         * modules/readtokens: Likewise.
26714         * modules/same: Likewise.
26715
26716         maint.mk: include 4 more function names in alloca.h-checking regexp
26717         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
26718         regexp.  Before, we would give a false-positive (saying alloca.h
26719         is included unnecessarily) when the only uses involved omitted symbols.
26720
26721         xalloc.h: use consistent formatting
26722         * lib/xalloc.h: Move declarations to start in the first column.
26723
26724 2010-01-05  Eric Blake  <ebb9@byu.net>
26725
26726         mkdir: avoid xalloc
26727         * lib/mkdir.c (includes): Drop unused header.
26728         Reported by John W. Eaton.
26729
26730 2010-01-04  Jim Meyering  <meyering@redhat.com>
26731
26732         nl_langinfo: avoid configure-time syntax error
26733         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
26734         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
26735         the empty string.  Don't let that provoke a shell syntax error.
26736
26737         regcomp, regexec, fnmatch: avoid array bounds read error
26738         * lib/regcomp.c (build_equiv_class): From glibc:
26739         Use only the low 24 bits of a findidx return value as an index
26740         into the weights array.  Patch by Ulrich Drepper:
26741         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
26742         * lib/regexec.c (check_node_accept_bytes): Likewise.
26743         * lib/fnmatch_loop.c (FCT): Likewise.
26744
26745         regcomp: skip collseq lookup when there are no rules
26746         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
26747         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
26748
26749         regcomp: recognize ill-formed { } expressions
26750         * lib/regcomp.c (parse_dup_op): From glibc:
26751         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
26752
26753         regcomp: fix typo in comment
26754         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
26755         s/satisfy/satisfies/.
26756
26757         regcomp: sync from glibc: remove dead store
26758         * lib/regcomp.c (duplicate_node_closure): Remove useless
26759         search_duplicated_node call and dead store.
26760
26761         regcomp: sync from glibc; always use nl_langinfo
26762         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
26763         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
26764         * modules/regex (Depends-on): Add nl_langinfo.
26765
26766 2010-01-04  Eric Blake  <ebb9@byu.net>
26767
26768         fdopendir: fix configure test
26769         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
26770
26771 2010-01-01  Bruno Haible  <bruno@clisp.org>
26772
26773         wchar: Remove unused configure check.
26774         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
26775
26776 2010-01-01  Eric Blake  <ebb9@byu.net>
26777
26778         headers: make check of system header explicit
26779         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
26780         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
26781         ourselves.
26782         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26784         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
26785         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
26786         internals.
26787         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
26788         missing.
26789         Suggested by Bruno Haible.
26790
26791 2010-01-01  Jim Meyering  <meyering@redhat.com>
26792
26793         ChangeLog: tweak to eliminate unnecessary copyright line
26794         * ChangeLog: Remove a copyright line that was mistakenly updated
26795         by today's update-copyright run.  Reported by Eric Blake.
26796
26797         test-update-copyright: don't let envvar setting cause test failure
26798         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26799
26800 2010-01-01  Bruno Haible  <bruno@clisp.org>
26801
26802         localename: Avoid gcc warning.
26803         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
26804         function if it is not used.
26805
26806 2010-01-01  Jim Meyering  <meyering@redhat.com>
26807
26808         update nearly all FSF copyright year lists to include 2010
26809         Use the same procedure as for 2009, outlined in
26810         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
26811
26812         version-etc: set COPYRIGHT_YEAR to 2010
26813         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
26814
26815 2009-12-31  Eric Blake  <ebb9@byu.net>
26816
26817         doc: correct availability of cygwin 1.5.x getopt
26818         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
26819         variables.
26820         * doc/posix-functions/opterr.texi (opterr): Likewise.
26821         * doc/posix-functions/optind.texi (optind): Likewise.
26822         * doc/posix-functions/optopt.texi (optopt): Likewise.
26823         * doc/posix-functions/tzname.texi (tzname): Likewise.
26824
26825         openat: update maintainer
26826         * modules/openat (Maintainer): Add myself.
26827
26828         utimens: avoid shadowing warning
26829         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
26830         buffers into one, to avoid shadowing, as well as avoiding a
26831         redundant stat.
26832         Reported by Jim Meyering.
26833
26834         test-dup2: avoid compiler warning
26835         * tests/test-dup2.c (is_inheritable): Only define if used.
26836
26837 2010-01-01  Bruno Haible  <bruno@clisp.org>
26838
26839         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
26840         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
26841         defined, use wctomb instead of wcrtomb.
26842
26843 2010-01-01  Bruno Haible  <bruno@clisp.org>
26844
26845         iconv: Reject native Solaris iconv.
26846         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
26847         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
26848
26849 2009-12-31  Bruno Haible  <bruno@clisp.org>
26850
26851         * tests/test-signal.c (main): Remove test of 'SIG'.
26852
26853 2009-12-31  Bruno Haible  <bruno@clisp.org>
26854
26855         spawn: Fix incomplete fix.
26856         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26857         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26858         warnings for GNULIB_POSIXCHECK again.
26859         Reported by Eric Blake.
26860
26861 2009-12-31  Bruno Haible  <bruno@clisp.org>
26862
26863         Avoid namespace pollution on glibc systems.
26864         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
26865         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
26866         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
26867         glibc systems.
26868
26869 2009-12-31  Bruno Haible  <bruno@clisp.org>
26870
26871         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
26872         (gl_REPLACE_WCHAR_H): Turn into a no-op.
26873         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
26874         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
26875         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
26876         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
26877         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
26878
26879 2009-12-31  Bruno Haible  <bruno@clisp.org>
26880
26881         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26882         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
26883         afterwards.
26884
26885 2009-12-31  Bruno Haible  <bruno@clisp.org>
26886
26887         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
26888         SYS_UTSNAME_H.
26889
26890 2009-12-31  Bruno Haible  <bruno@clisp.org>
26891
26892         spawn: Fix misapplied patch.
26893         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26894         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26895         warnings for GNULIB_POSIXCHECK.
26896
26897 2009-12-31  Bruno Haible  <bruno@clisp.org>
26898
26899         times: Update after sys_times changed.
26900         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
26901         * modules/times (Files): Add it.
26902         (configure.ac): Invoke gl_FUNC_TIMES.
26903
26904 2009-12-31  Bruno Haible  <bruno@clisp.org>
26905
26906         Use AC_C_INLINE where necessary.
26907         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
26908         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26909         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26910         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
26911         * m4/mbfile.m4 (gl_MBFILE): Likewise.
26912         * m4/mbiter.m4 (gl_MBITER): Likewise.
26913         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26914         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26915         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
26916         * modules/u64 (configure.ac): Likewise.
26917
26918 2009-12-31  Bruno Haible  <bruno@clisp.org>
26919
26920         Use AC_C_INLINE instead of module 'inline' where possible.
26921         * modules/inline (Description): Clarify purpose.
26922         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
26923         * modules/count-one-bits (Depends-on): Remove inline.
26924         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
26925         * modules/openat (Depends-on): Remove inline.
26926         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
26927         instead of depending on module 'inline'.
26928         * modules/filevercmp (Depends-on, configure.ac): Likewise.
26929         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
26930         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
26931         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
26932         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
26933         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
26934         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
26935         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
26936         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
26937         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
26938         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
26939         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
26940         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
26941         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
26942         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
26943         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
26944         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
26945         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
26946         Likewise.
26947         * modules/unictype/property-ascii-hex-digit (Depends-on,
26948         configure.ac): Likewise.
26949         * modules/unictype/property-bidi-arabic-digit (Depends-on,
26950         configure.ac): Likewise.
26951         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
26952         configure.ac): Likewise.
26953         * modules/unictype/property-bidi-block-separator (Depends-on,
26954         configure.ac): Likewise.
26955         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
26956         configure.ac): Likewise.
26957         * modules/unictype/property-bidi-common-separator (Depends-on,
26958         configure.ac): Likewise.
26959         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
26960         Likewise.
26961         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
26962         configure.ac): Likewise.
26963         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
26964         configure.ac): Likewise.
26965         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
26966         configure.ac): Likewise.
26967         * modules/unictype/property-bidi-european-digit (Depends-on,
26968         configure.ac): Likewise.
26969         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
26970         configure.ac): Likewise.
26971         * modules/unictype/property-bidi-left-to-right (Depends-on,
26972         configure.ac): Likewise.
26973         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26974         configure.ac): Likewise.
26975         * modules/unictype/property-bidi-other-neutral (Depends-on,
26976         configure.ac): Likewise.
26977         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26978         Likewise.
26979         * modules/unictype/property-bidi-segment-separator (Depends-on,
26980         configure.ac): Likewise.
26981         * modules/unictype/property-bidi-whitespace (Depends-on,
26982         configure.ac): Likewise.
26983         * modules/unictype/property-combining (Depends-on, configure.ac):
26984         Likewise.
26985         * modules/unictype/property-composite (Depends-on, configure.ac):
26986         Likewise.
26987         * modules/unictype/property-currency-symbol (Depends-on,
26988         configure.ac): Likewise.
26989         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26990         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26991         Likewise.
26992         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26993         configure.ac): Likewise.
26994         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26995         Likewise.
26996         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26997         Likewise.
26998         * modules/unictype/property-extender (Depends-on, configure.ac):
26999         Likewise.
27000         * modules/unictype/property-format-control (Depends-on, configure.ac):
27001         Likewise.
27002         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
27003         Likewise.
27004         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
27005         Likewise.
27006         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
27007         Likewise.
27008         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
27009         Likewise.
27010         * modules/unictype/property-hyphen (Depends-on, configure.ac):
27011         Likewise.
27012         * modules/unictype/property-id-continue (Depends-on, configure.ac):
27013         Likewise.
27014         * modules/unictype/property-id-start (Depends-on, configure.ac):
27015         Likewise.
27016         * modules/unictype/property-ideographic (Depends-on, configure.ac):
27017         Likewise.
27018         * modules/unictype/property-ids-binary-operator (Depends-on,
27019         configure.ac): Likewise.
27020         * modules/unictype/property-ids-trinary-operator (Depends-on,
27021         configure.ac): Likewise.
27022         * modules/unictype/property-ignorable-control (Depends-on,
27023         configure.ac): Likewise.
27024         * modules/unictype/property-iso-control (Depends-on, configure.ac):
27025         Likewise.
27026         * modules/unictype/property-join-control (Depends-on, configure.ac):
27027         Likewise.
27028         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
27029         Likewise.
27030         * modules/unictype/property-line-separator (Depends-on, configure.ac):
27031         Likewise.
27032         * modules/unictype/property-logical-order-exception (Depends-on,
27033         configure.ac): Likewise.
27034         * modules/unictype/property-lowercase (Depends-on, configure.ac):
27035         Likewise.
27036         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
27037         * modules/unictype/property-non-break (Depends-on, configure.ac):
27038         Likewise.
27039         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
27040         Likewise.
27041         * modules/unictype/property-numeric (Depends-on, configure.ac):
27042         Likewise.
27043         * modules/unictype/property-other-alphabetic (Depends-on,
27044         configure.ac): Likewise.
27045         * modules/unictype/property-other-default-ignorable-code-point
27046         (Depends-on, configure.ac): Likewise.
27047         * modules/unictype/property-other-grapheme-extend (Depends-on,
27048         configure.ac): Likewise.
27049         * modules/unictype/property-other-id-continue (Depends-on,
27050         configure.ac): Likewise.
27051         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
27052         Likewise.
27053         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
27054         Likewise.
27055         * modules/unictype/property-other-math (Depends-on, configure.ac):
27056         Likewise.
27057         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
27058         Likewise.
27059         * modules/unictype/property-paired-punctuation (Depends-on,
27060         configure.ac): Likewise.
27061         * modules/unictype/property-paragraph-separator (Depends-on,
27062         configure.ac): Likewise.
27063         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
27064         Likewise.
27065         * modules/unictype/property-pattern-white-space (Depends-on,
27066         configure.ac): Likewise.
27067         * modules/unictype/property-private-use (Depends-on, configure.ac):
27068         Likewise.
27069         * modules/unictype/property-punctuation (Depends-on, configure.ac):
27070         Likewise.
27071         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
27072         Likewise.
27073         * modules/unictype/property-radical (Depends-on, configure.ac):
27074         Likewise.
27075         * modules/unictype/property-sentence-terminal (Depends-on,
27076         configure.ac): Likewise.
27077         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
27078         Likewise.
27079         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
27080         * modules/unictype/property-terminal-punctuation (Depends-on,
27081         configure.ac): Likewise.
27082         * modules/unictype/property-titlecase (Depends-on, configure.ac):
27083         Likewise.
27084         * modules/unictype/property-unassigned-code-value (Depends-on,
27085         configure.ac): Likewise.
27086         * modules/unictype/property-unified-ideograph (Depends-on,
27087         configure.ac): Likewise.
27088         * modules/unictype/property-uppercase (Depends-on, configure.ac):
27089         Likewise.
27090         * modules/unictype/property-variation-selector (Depends-on,
27091         configure.ac): Likewise.
27092         * modules/unictype/property-white-space (Depends-on, configure.ac):
27093         Likewise.
27094         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
27095         Likewise.
27096         * modules/unictype/property-xid-start (Depends-on, configure.ac):
27097         Likewise.
27098         * modules/unictype/property-zero-width (Depends-on, configure.ac):
27099         Likewise.
27100         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
27101         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
27102         Likewise.
27103
27104 2009-12-31  Bruno Haible  <bruno@clisp.org>
27105
27106         Remove unnecessary AC_C_INLINE invocation.
27107         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
27108         since 2009-08-21.
27109
27110 2009-12-31  Jim Meyering  <meyering@redhat.com>
27111
27112         maint.mk: don't require explicit gpg_key_ID in cfg.mk
27113         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
27114         With this change, we can all remove the gpg_key_ID = ... definition
27115         from our respective cfg.mk files.
27116
27117         maint.mk: create announcement template in ~/, not in /tmp
27118         * top/maint.mk (emit_upload_commands): Adjust.
27119         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
27120         Remove temporary file, .ci-msg.
27121
27122 2009-12-31  Eric Blake  <ebb9@byu.net>
27123
27124         link-warning: always build headers with link warnings
27125         * modules/arpa_inet (Makefile.am): Always build replacement
27126         header.
27127         * modules/ctype (Makefile.am): Likewise.
27128         * modules/dirent (Makefile.am): Likewise.
27129         * modules/inttypes (Makefile.am): Likewise.
27130         * modules/langinfo (Makefile.am): Likewise.
27131         * modules/locale (Makefile.am): Likewise.
27132         * modules/spawn (Makefile.am): Likewise.
27133         * modules/sys_file (Makefile.am): Likewise.
27134         * modules/sys_ioctl (Makefile.am): Likewise.
27135         * modules/sys_select (Makefile.am): Likewise.
27136         * modules/sys_socket (Makefile.am): Likewise.
27137         * modules/sys_times (Makefile.am): Likewise.
27138         * modules/sys_utsname (Makefile.am): Likewise.
27139         * modules/sys_wait (Makefile.am): Likewise.
27140         * modules/wchar (Makefile.am): Likewise.
27141         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
27142         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
27143         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
27144         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
27145         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
27146         Likewise.
27147         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27148         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27149         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
27150         Likewise.
27151         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
27152         Likewise.
27153         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
27154         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
27155         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
27156         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27157         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27158         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
27159         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
27160         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
27161         (gl_WCHAR_H_DEFAULTS): Likewise.
27162
27163 2009-12-31  Eric Blake  <ebb9@byu.net>
27164
27165         signal, spawn: use link warnings
27166         * lib/signal.in.h (sigset_t): Make unconditional.
27167         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
27168         (sigpending, sigprocmask, sigaction): Add link warnings.
27169         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
27170         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
27171         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
27172         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
27173         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
27174         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
27175         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
27176         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
27177         (posix_spawn_file_actions_destroy)
27178         (posix_spawn_file_actions_addopen)
27179         (posix_spawn_file_actions_addclose)
27180         (posix_spawn_file_actions_adddup2): Likewise.
27181         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
27182         * tests/test-signal.c (main): Enhance test.
27183
27184         spawn: improve wrapper support
27185         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
27186         (gl_SPAWN_H_DEFAULTS): New defaults.
27187         * modules/spawn (Makefile.am): Substitute them.
27188         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
27189         Only declare if missing or broken.
27190
27191         sys_times, sys_utsname: use include_next
27192         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
27193         header.
27194         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
27195         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
27196         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
27197         * modules/sys_times (Depends-on): Add include_next.
27198         (Makefile.am): Substitute additional values.
27199         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27200         * lib/sys_times.in.h (includes): Include native header, if
27201         available.
27202         * lib/sys_utsname.in.h (includes): Likewise.
27203         * tests/test-sys_times.c (main): Enhance test.
27204
27205         fdutimensat: revert prior patch
27206         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
27207         utimens.h.
27208         Reported by Bruno Haible.
27209
27210 2009-12-30  Eric Blake  <ebb9@byu.net>
27211
27212         sys_wait: drop link-warning dependency
27213         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
27214         link-warning efforts.
27215         * lib/sys_wait.in.h: Likewise.
27216
27217         fdutimensat: remove bogus dependency
27218         * modules/fdutimensat (Depends-on): Drop inline.
27219
27220         unistd: fix typo
27221         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
27222
27223 2009-12-30  Bruno Haible  <bruno@clisp.org>
27224
27225         Fix compilation error with Solaris cc.
27226         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
27227         * lib/unicase/u16-is-invariant.c: Likewise.
27228         * lib/unicase/u32-is-invariant.c: Likewise.
27229         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27230
27231 2009-12-30  Bruno Haible  <bruno@clisp.org>
27232
27233         Fix test crash.
27234         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
27235         locales.
27236         Reported by Simon Josefsson <simon@josefsson.org>.
27237
27238 2009-12-30  Bruno Haible  <bruno@clisp.org>
27239
27240         Fix compilation error on most platforms.
27241         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
27242         Reported by Simon Josefsson <simon@josefsson.org>
27243         and Nelson H. F. Beebe <beebe@math.utah.edu>.
27244
27245 2009-12-30  Eric Blake  <ebb9@byu.net>
27246
27247         futimens, utimensat: work around ntfs-3g bug
27248         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
27249         a ctime bug is present, and expand workaround to cover ntfs-3g.
27250         * lib/utimens.c (fdutimens, lutimens): Likewise.
27251         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
27252         (validate_timespec): Adjust return value.
27253         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
27254         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27255         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
27256
27257 2009-12-29  Eric Blake  <ebb9@byu.net>
27258
27259         link-warning: make usage consistent
27260         * modules/ctype (Depends-on): Add link-warning.
27261         (Makefile.am): Update rules accordingly.
27262         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27263         * modules/locale (Depends-on, Makefile.am): Likewise.
27264         * modules/sys_file (Makefile.am): Likewise.
27265         * modules/getopt-posix (Makefile.am): Delete unused link warning
27266         efforts.
27267         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
27268         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
27269         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
27270         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
27271
27272         stdio: remove unused variables
27273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
27274         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
27275         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27276
27277         tests: test more substitute headers
27278         * modules/ctype-tests: New file.
27279         * modules/dirent-tests: Likewise.
27280         * modules/spawn-tests: Likewise.
27281         * modules/sys_file-tests: Likewise.
27282         * modules/sys_ioctl-tests: Likewise.
27283         * modules/sys_wait-tests: Likewise.
27284         * tests/test-ctype.c: Likewise.
27285         * tests/test-dirent.c: Likewise.
27286         * tests/test-spawn.c: Likewise.
27287         * tests/test-sys_file.c: Likewise.
27288         * tests/test-sys_ioctl.c: Likewise.
27289         * tests/test-sys_wait.c: Likewise.
27290         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
27291         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
27292         whether or not flock is in use.
27293
27294         tests: remove License section from module
27295         * modules/arpa_inet-tests: Remove unneeded section.
27296         * modules/byteswap-tests: Likewise.
27297         * modules/ceilf-tests: Likewise.
27298         * modules/ceill-tests: Likewise.
27299         * modules/crypto/des-tests: Likewise.
27300         * modules/crypto/gc-arcfour-tests: Likewise.
27301         * modules/crypto/gc-arctwo-tests: Likewise.
27302         * modules/crypto/gc-des-tests: Likewise.
27303         * modules/crypto/gc-hmac-md5-tests: Likewise.
27304         * modules/crypto/gc-hmac-sha1-tests: Likewise.
27305         * modules/crypto/gc-md2-tests: Likewise.
27306         * modules/crypto/gc-md4-tests: Likewise.
27307         * modules/crypto/gc-md5-tests: Likewise.
27308         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
27309         * modules/crypto/gc-rijndael-tests: Likewise.
27310         * modules/crypto/gc-sha1-tests: Likewise.
27311         * modules/crypto/gc-tests: Likewise.
27312         * modules/crypto/md2-tests: Likewise.
27313         * modules/crypto/md4-tests: Likewise.
27314         * modules/fcntl-h-tests: Likewise.
27315         * modules/floorf-tests: Likewise.
27316         * modules/floorl-tests: Likewise.
27317         * modules/frexp-nolibm-tests: Likewise.
27318         * modules/frexp-tests: Likewise.
27319         * modules/frexpl-nolibm-tests: Likewise.
27320         * modules/frexpl-tests: Likewise.
27321         * modules/getaddrinfo-tests: Likewise.
27322         * modules/inttypes-tests: Likewise.
27323         * modules/isfinite-tests: Likewise.
27324         * modules/isinf-tests: Likewise.
27325         * modules/ldexpl-tests: Likewise.
27326         * modules/locale-tests: Likewise.
27327         * modules/math-tests: Likewise.
27328         * modules/netdb-tests: Likewise.
27329         * modules/netinet_in-tests: Likewise.
27330         * modules/printf-frexp-tests: Likewise.
27331         * modules/printf-frexpl-tests: Likewise.
27332         * modules/priv-set-tests: Likewise.
27333         * modules/random_r-tests: Likewise.
27334         * modules/round-tests: Likewise.
27335         * modules/roundf-tests: Likewise.
27336         * modules/roundl-tests: Likewise.
27337         * modules/search-tests: Likewise.
27338         * modules/select-tests: Likewise.
27339         * modules/signal-tests: Likewise.
27340         * modules/stdbool-tests: Likewise.
27341         * modules/stddef-tests: Likewise.
27342         * modules/stdint-tests: Likewise.
27343         * modules/stdio-tests: Likewise.
27344         * modules/stdlib-tests: Likewise.
27345         * modules/string-tests: Likewise.
27346         * modules/strings-tests: Likewise.
27347         * modules/sys_select-tests: Likewise.
27348         * modules/sys_socket-tests: Likewise.
27349         * modules/sys_stat-tests: Likewise.
27350         * modules/sys_time-tests: Likewise.
27351         * modules/sys_utsname-tests: Likewise.
27352         * modules/sysexits-tests: Likewise.
27353         * modules/time-tests: Likewise.
27354         * modules/trunc-tests: Likewise.
27355         * modules/truncf-tests: Likewise.
27356         * modules/truncl-tests: Likewise.
27357         * modules/tsearch-tests: Likewise.
27358         * modules/unistd-tests: Likewise.
27359         * modules/wchar-tests: Likewise.
27360         * modules/wctype-tests: Likewise.
27361
27362         tests: fix license on several tests
27363         * tests/test-des.c: Update to GPLv3+.
27364         * tests/test-flock.c: Likewise.
27365         * tests/test-fsync.c: Likewise.
27366         * tests/test-futimens.h: Likewise.
27367         * tests/test-gc-arcfour.c: Likewise.
27368         * tests/test-gc-arctwo.c: Likewise.
27369         * tests/test-gc-des.c: Likewise.
27370         * tests/test-gc-hmac-md5.c: Likewise.
27371         * tests/test-gc-hmac-sha1.c: Likewise.
27372         * tests/test-gc-md2.c: Likewise.
27373         * tests/test-gc-md4.c: Likewise.
27374         * tests/test-gc-md5.c: Likewise.
27375         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27376         * tests/test-gc-rijndael.c: Likewise.
27377         * tests/test-gc-sha1.c: Likewise.
27378         * tests/test-gc.c: Likewise.
27379         * tests/test-getcwd.c: Likewise.
27380         * tests/test-link.c: Likewise.
27381         * tests/test-link.h: Likewise.
27382         * tests/test-lutimens.h: Likewise.
27383         * tests/test-md2.c: Likewise.
27384         * tests/test-md4.c: Likewise.
27385         * tests/test-mkdir.h: Likewise.
27386         * tests/test-rename.c: Likewise.
27387         * tests/test-rename.h: Likewise.
27388         * tests/test-safe-alloc.c: Likewise.
27389         * tests/test-utimens-common.h: Likewise.
27390         * tests/test-utimens.h: Likewise.
27391
27392         maint: sync license texts
27393         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
27394         * doc/gpl-3.0.texi: Revert copyright year update.
27395         * doc/lgpl-3.0.texi: Likewise.
27396
27397 2009-12-29  Jim Meyering  <meyering@redhat.com>
27398
27399         update nearly all FSF copyright year lists to include 2009
27400         The files named by the following are exempted:
27401             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
27402               test -f "$dst" && { echo "$dst"; continue; }
27403               test -d "$dst" || continue
27404               echo "$dst"/$(basename "$src")
27405             done > exempt
27406             git ls-files tests/unictype >> exempt
27407         In the remaining files, convert to all-interval notation if
27408         - there is already at least one year interval like 2000-2003
27409         - the file is maintained by me
27410         - the file is in lib/uni*/, where that style already prevails
27411         Otherwise, use update-copyright's default.
27412
27413 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27414         and Eric Blake  <ebb9@byu.net>
27415
27416         tests: don't require debug system() to pass
27417         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
27418         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27419         * tests/test-unlink.h (test_unlink_func): Likewise.
27420         * tests/test-fstatat.c (main): ...into callers.
27421         * tests/test-lstat.c (main): Likewise.
27422         * tests/test-rmdir.c (main): Likewise.
27423         * tests/test-unlink.c (main): Likewise.
27424         * tests/test-unlinkat.c (main): Likewise.
27425         * tests/test-areadlink-with-size.c (main): Don't require a
27426         debug-only system call to pass, aiding cross-testing to mingw.
27427         * tests/test-areadlink.c (main): Likewise.
27428         * tests/test-areadlinkat-with-size.c (main): Likewise.
27429         * tests/test-areadlinkat.c (main): Likewise.
27430         * tests/test-canonicalize-lgpl.c (main): Likewise.
27431         * tests/test-canonicalize.c (main): Likewise.
27432         * tests/test-chown.c (main): Likewise.
27433         * tests/test-fchownat.c (main): Likewise.
27434         * tests/test-lchown.c (main): Likewise.
27435         * tests/test-fdutimensat.c (main): Likewise.
27436         * tests/test-futimens.c (main): Likewise.
27437         * tests/test-link.c (main): Likewise.
27438         * tests/test-linkat.c (main): Likewise.
27439         * tests/test-mkdir.c (main): Likewise.
27440         * tests/test-mkdirat.c (main): Likewise.
27441         * tests/test-mkfifo.c (main): Likewise.
27442         * tests/test-mkfifoat.c (main): Likewise.
27443         * tests/test-mknod.c (main): Likewise.
27444         * tests/test-readlink.c (main): Likewise.
27445         * tests/test-remove.c (main): Likewise.
27446         * tests/test-rename.c (main): Likewise.
27447         * tests/test-renameat.c (main): Likewise.
27448         * tests/test-symlink.c (main): Likewise.
27449         * tests/test-symlinkat.c (main): Likewise.
27450         * tests/test-utimens.c (main): Likewise.
27451         * tests/test-utimensat.c (main): Likewise.
27452
27453 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27454
27455         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
27456         on $(UNUSED_PARAMETER_H) to avoid build failure.
27457
27458 2009-12-28  Jim Meyering  <meyering@redhat.com>
27459
27460         update-copyright: you may specify a max. line length other than 72
27461         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27462
27463         maint: use consistent FSF copyright line syntax
27464         * lib/posixtm.c: Add missing comma in FSF copyright line.
27465         * lib/posixtm.h: Likewise.
27466         * lib/getugroups.c: Add missing ", Inc.".
27467
27468         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
27469         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
27470         FSF copyright line.  Remove trailing blanks.
27471
27472 2009-12-28  Eric Blake  <ebb9@byu.net>
27473
27474         test-dup2: reduce dependencies
27475         * modules/cloexec (Configure.ac): Set witness.
27476         * modules/dup2-tests (Depends-on): Drop cloexec.
27477         * tests/test-dup2.c (main): Skip portion of test if cloexec module
27478         not present.
27479         Suggested by Bruno Haible.
27480
27481 2009-12-26  Bruno Haible  <bruno@clisp.org>
27482
27483         Remove an unneeded dependency.
27484         * modules/fseterr (Depends-on): Remove dup2.
27485
27486 2009-12-26  Eric Blake  <ebb9@byu.net>
27487
27488         tests: use macros.h in more places
27489         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
27490         (ASSERT_STREAM): Provide default of stderr.
27491         * tests/test-dirent-safer.c: Include macros.h, using alternate
27492         stream for assertions.
27493         * tests/test-dup-safer.c: Likewise.
27494         * tests/test-freopen-safer.c: Likewise.
27495         * tests/test-getopt.c: Likewise.
27496         * tests/test-openat-safer.c: Likewise.
27497         * tests/test-pipe.c: Likewise.
27498         * tests/test-popen-safer.c: Likewise.
27499         * modules/dirent-safer-tests (Files): Include macros.h.
27500         * modules/unistd-safer-tests (Files): Likewise.
27501         * modules/freopen-safer-tests (Files): Likewise.
27502         * modules/getopt-posix-tests (Files): Likewise.
27503         * modules/openat-safer-tests (Files): Likewise.
27504         * modules/pipe-tests (Files): Likewise.
27505
27506 2009-12-26  Bruno Haible  <bruno@clisp.org>
27507
27508         javacomp: Portability fix.
27509         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
27510         that it also works on Solaris.
27511
27512 2009-12-26  Bruno Haible  <bruno@clisp.org>
27513
27514         localename: Fix storage allocation of gl_locale_name_thread's result.
27515         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
27516         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
27517         all platforms that have 'uselocale'.
27518         (gl_locale_name_thread_unsafe): New function, extracted from
27519         gl_locale_name_thread.
27520         (gl_locale_name_thread): Call struniq on all platforms that have
27521         'uselocale'.
27522         * tests/test-localename.c (test_locale_name_thread): Check that the
27523         resulting strings are permanently allocated.
27524         * modules/localename-tests (Depends-on): Add strdup.
27525
27526 2009-12-26  Bruno Haible  <bruno@clisp.org>
27527
27528         * tests/test-localename.c (categories): Fill in the strings.
27529
27530 2009-12-26  Jim Meyering  <meyering@redhat.com>
27531
27532         isdir: complete the removal of m4/isdir.m4
27533         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
27534
27535         isdir: clean up, since at least grep still uses it
27536         * lib/isdir.c: Include "isdir.h".
27537         (S_ISDIR): Remove now-unneeded definition.
27538         * modules/isdir (Files): Add lib/isdir.h.
27539         * lib/isdir.h: New file, with declaration.
27540         * m4/isdir.m4: Remove file -- unneeded.
27541
27542 2009-12-25  Bruno Haible  <bruno@clisp.org>
27543
27544         selinux-h: Make generated .h files standalone.
27545         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
27546         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
27547         * lib/se-selinux.in.h: Likewise.
27548         * modules/selinux-h (Depends-on): Add unused-parameter.
27549         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
27550         selinux/selinux.h and selinux/context.h.
27551         Suggested by Eric Blake.
27552
27553 2009-12-25  Bruno Haible  <bruno@clisp.org>
27554
27555         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
27556         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
27557         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
27558         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
27559         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
27560
27561 2009-12-24  Bruno Haible  <bruno@clisp.org>
27562
27563         openat: Fix warning.
27564         * lib/openat-proc.c: Include <unistd.h>.
27565
27566 2009-12-24  Bruno Haible  <bruno@clisp.org>
27567
27568         New module 'unused-parameter'.
27569         * build-aux/unused-parameter.h: New file, extracted from earlier
27570         gnulib-common.m4.
27571         * modules/unused-parameter: New file.
27572         * lib/unistr.h: Include unused-parameter.h.
27573         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
27574         _GL_UNUSED.
27575         * modules/unistr/base (Depends-on): Add unused-parameter.
27576
27577 2009-12-24  Bruno Haible  <bruno@clisp.org>
27578
27579         Add missing dependencies to 'extensions' module.
27580         * m4/extensions.m4: Add comment.
27581         * modules/accept4 (Depends-on): Add extensions.
27582         * modules/dup3 (Depends-on): Likewise.
27583         * modules/fcntl (Depends-on): Likewise.
27584         * modules/futimens (Depends-on): Likewise.
27585         * modules/mknod (Depends-on): Likewise.
27586         * modules/pipe2 (Depends-on): Likewise.
27587         * modules/stat-time (Depends-on): Likewise.
27588         * modules/strcasestr-simple (Depends-on): Likewise.
27589         * modules/strsignal (Depends-on): Likewise.
27590         * modules/utimensat (Depends-on): Likewise.
27591         * modules/localcharset (Depends-on): Likewise. Needed because of
27592         gl_FCNTL_O_FLAGS.
27593         * modules/wcrtomb (Depends-on): Likewise. Needed because of
27594         AC_TYPE_MBSTATE_T.
27595         * modules/wcsnrtombs (Depends-on): Likewise.
27596         * modules/wcsrtombs (Depends-on): Likewise.
27597
27598 2009-12-24  Bruno Haible  <bruno@clisp.org>
27599
27600         binary-io: Avoid gcc warning due to SET_BINARY.
27601         * lib/binary-io.h (SET_BINARY): Cast the result to void.
27602         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
27603
27604 2009-12-24  Bruno Haible  <bruno@clisp.org>
27605
27606         Avoid future namespace pollution on glibc systems.
27607         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
27608         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
27609         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
27610         glibc systems.
27611
27612 2009-12-24  Bruno Haible  <bruno@clisp.org>
27613
27614         Refactor common macros used in tests.
27615         * tests/macros.h: New file.
27616         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
27617         and/or <stdlib.h>, if appropriate.
27618         (ASSERT, SIZEOF): Remove macros.
27619         * tests/test-areadlink-with-size.c: Likewise.
27620         * tests/test-areadlinkat.c: Likewise.
27621         * tests/test-areadlinkat-with-size.c: Likewise.
27622         * tests/test-argmatch.c: Likewise.
27623         * tests/test-argv-iter.c: Likewise.
27624         * tests/test-array-mergesort.c: Likewise.
27625         * tests/test-array_list.c: Likewise.
27626         * tests/test-array_oset.c: Likewise.
27627         * tests/test-avltree_list.c: Likewise.
27628         * tests/test-avltree_oset.c: Likewise.
27629         * tests/test-avltreehash_list.c: Likewise.
27630         * tests/test-base64.c: Likewise.
27631         * tests/test-binary-io.c: Likewise.
27632         * tests/test-bitrotate.c: Likewise.
27633         * tests/test-btowc.c: Likewise.
27634         * tests/test-byteswap.c: Likewise.
27635         * tests/test-c-ctype.c: Likewise.
27636         * tests/test-c-stack.c: Likewise.
27637         * tests/test-c-strcasecmp.c: Likewise.
27638         * tests/test-c-strcasestr.c: Likewise.
27639         * tests/test-c-strncasecmp.c: Likewise.
27640         * tests/test-c-strstr.c: Likewise.
27641         * tests/test-canonicalize-lgpl.c: Likewise.
27642         * tests/test-canonicalize.c: Likewise.
27643         * tests/test-carray_list.c: Likewise.
27644         * tests/test-ceilf1.c: Likewise.
27645         * tests/test-ceilf2.c: Likewise.
27646         * tests/test-ceill.c: Likewise.
27647         * tests/test-chown.c: Likewise.
27648         * tests/test-cloexec.c: Likewise.
27649         * tests/test-copy-acl.c: Likewise.
27650         * tests/test-copy-file.c: Likewise.
27651         * tests/test-count-one-bits.c: Likewise.
27652         * tests/test-dprintf-posix.c: Likewise.
27653         * tests/test-dup2.c: Likewise.
27654         * tests/test-dup3.c: Likewise.
27655         * tests/test-duplocale.c: Likewise.
27656         * tests/test-fbufmode.c: Likewise.
27657         * tests/test-fchdir.c: Likewise.
27658         * tests/test-fchownat.c: Likewise.
27659         * tests/test-fcntl-safer.c: Likewise.
27660         * tests/test-fcntl.c: Likewise.
27661         * tests/test-fdopendir.c: Likewise.
27662         * tests/test-fdutimensat.c: Likewise.
27663         * tests/test-fflush2.c: Likewise.
27664         * tests/test-file-has-acl.c: Likewise.
27665         * tests/test-filevercmp.c: Likewise.
27666         * tests/test-flock.c: Likewise.
27667         * tests/test-floorf1.c: Likewise.
27668         * tests/test-floorf2.c: Likewise.
27669         * tests/test-floorl.c: Likewise.
27670         * tests/test-fnmatch.c: Likewise.
27671         * tests/test-fopen.h: Likewise.
27672         * tests/test-fpending.c: Likewise.
27673         * tests/test-fprintf-posix.c: Likewise.
27674         * tests/test-fpurge.c: Likewise.
27675         * tests/test-freadable.c: Likewise.
27676         * tests/test-freadahead.c: Likewise.
27677         * tests/test-freading.c: Likewise.
27678         * tests/test-freadptr.c: Likewise.
27679         * tests/test-freadptr2.c: Likewise.
27680         * tests/test-freadseek.c: Likewise.
27681         * tests/test-freopen.c: Likewise.
27682         * tests/test-frexp.c: Likewise.
27683         * tests/test-frexpl.c: Likewise.
27684         * tests/test-fseek.c: Likewise.
27685         * tests/test-fseeko.c: Likewise.
27686         * tests/test-fstatat.c: Likewise.
27687         * tests/test-fstrcmp.c: Likewise.
27688         * tests/test-fsync.c: Likewise.
27689         * tests/test-ftell.c: Likewise.
27690         * tests/test-ftello.c: Likewise.
27691         * tests/test-func.c: Likewise.
27692         * tests/test-futimens.c: Likewise.
27693         * tests/test-fwritable.c: Likewise.
27694         * tests/test-fwriting.c: Likewise.
27695         * tests/test-getcwd.c: Likewise.
27696         * tests/test-getdate.c: Likewise.
27697         * tests/test-getdelim.c: Likewise.
27698         * tests/test-getdtablesize.c: Likewise.
27699         * tests/test-getgroups.c: Likewise.
27700         * tests/test-getline.c: Likewise.
27701         * tests/test-getndelim2.c: Likewise.
27702         * tests/test-glob.c: Likewise.
27703         * tests/test-hash.c: Likewise.
27704         * tests/test-i-ring.c: Likewise.
27705         * tests/test-iconv-utf.c: Likewise.
27706         * tests/test-iconv.c: Likewise.
27707         * tests/test-idpriv-drop.c: Likewise.
27708         * tests/test-idpriv-droptemp.c: Likewise.
27709         * tests/test-inet_ntop.c: Likewise.
27710         * tests/test-inet_pton.c: Likewise.
27711         * tests/test-isblank.c: Likewise.
27712         * tests/test-isfinite.c: Likewise.
27713         * tests/test-isinf.c: Likewise.
27714         * tests/test-isnan.c: Likewise.
27715         * tests/test-isnand.h: Likewise.
27716         * tests/test-isnanf.h: Likewise.
27717         * tests/test-isnanl.h: Likewise.
27718         * tests/test-lchown.c: Likewise.
27719         * tests/test-ldexpl.c: Likewise.
27720         * tests/test-link.c: Likewise.
27721         * tests/test-linkat.c: Likewise.
27722         * tests/test-linked_list.c: Likewise.
27723         * tests/test-linkedhash_list.c: Likewise.
27724         * tests/test-localename.c: Likewise.
27725         * tests/test-lseek.c: Likewise.
27726         * tests/test-lstat.c: Likewise.
27727         * tests/test-mbmemcasecmp.c: Likewise.
27728         * tests/test-mbmemcasecoll.c: Likewise.
27729         * tests/test-mbrtowc.c: Likewise.
27730         * tests/test-mbscasecmp.c: Likewise.
27731         * tests/test-mbscasestr1.c: Likewise.
27732         * tests/test-mbscasestr2.c: Likewise.
27733         * tests/test-mbscasestr3.c: Likewise.
27734         * tests/test-mbscasestr4.c: Likewise.
27735         * tests/test-mbschr.c: Likewise.
27736         * tests/test-mbscspn.c: Likewise.
27737         * tests/test-mbsinit.c: Likewise.
27738         * tests/test-mbsncasecmp.c: Likewise.
27739         * tests/test-mbsnrtowcs.c: Likewise.
27740         * tests/test-mbspbrk.c: Likewise.
27741         * tests/test-mbspcasecmp.c: Likewise.
27742         * tests/test-mbsrchr.c: Likewise.
27743         * tests/test-mbsrtowcs.c: Likewise.
27744         * tests/test-mbsspn.c: Likewise.
27745         * tests/test-mbsstr1.c: Likewise.
27746         * tests/test-mbsstr2.c: Likewise.
27747         * tests/test-mbsstr3.c: Likewise.
27748         * tests/test-memchr.c: Likewise.
27749         * tests/test-memchr2.c: Likewise.
27750         * tests/test-memcmp.c: Likewise.
27751         * tests/test-memmem.c: Likewise.
27752         * tests/test-memrchr.c: Likewise.
27753         * tests/test-mkdir.c: Likewise.
27754         * tests/test-mkdirat.c: Likewise.
27755         * tests/test-mkfifo.c: Likewise.
27756         * tests/test-mkfifoat.c: Likewise.
27757         * tests/test-mknod.c: Likewise.
27758         * tests/test-nanosleep.c: Likewise.
27759         * tests/test-nl_langinfo.c: Likewise.
27760         * tests/test-obstack-printf.c: Likewise.
27761         * tests/test-open.c: Likewise.
27762         * tests/test-openat.c: Likewise.
27763         * tests/test-pipe-filter-gi1.c: Likewise.
27764         * tests/test-pipe-filter-gi2-main.c: Likewise.
27765         * tests/test-pipe-filter-ii1.c: Likewise.
27766         * tests/test-pipe-filter-ii2-main.c: Likewise.
27767         * tests/test-pipe2.c: Likewise.
27768         * tests/test-popen.h: Likewise.
27769         * tests/test-posixtm.c: Likewise.
27770         * tests/test-pread.c: Likewise.
27771         * tests/test-printf-frexp.c: Likewise.
27772         * tests/test-printf-frexpl.c: Likewise.
27773         * tests/test-printf-posix.c: Likewise.
27774         * tests/test-priv-set.c: Likewise.
27775         * tests/test-quotearg.c: Likewise.
27776         * tests/test-random_r.c: Likewise.
27777         * tests/test-rawmemchr.c: Likewise.
27778         * tests/test-rbtree_list.c: Likewise.
27779         * tests/test-rbtree_oset.c: Likewise.
27780         * tests/test-rbtreehash_list.c: Likewise.
27781         * tests/test-readlink.c: Likewise.
27782         * tests/test-remove.c: Likewise.
27783         * tests/test-rename.c: Likewise.
27784         * tests/test-renameat.c: Likewise.
27785         * tests/test-rmdir.c: Likewise.
27786         * tests/test-round1.c: Likewise.
27787         * tests/test-roundf1.c: Likewise.
27788         * tests/test-roundl.c: Likewise.
27789         * tests/test-safe-alloc.c: Likewise.
27790         * tests/test-sameacls.c: Likewise.
27791         * tests/test-set-mode-acl.c: Likewise.
27792         * tests/test-setenv.c: Likewise.
27793         * tests/test-sigaction.c: Likewise.
27794         * tests/test-signbit.c: Likewise.
27795         * tests/test-sleep.c: Likewise.
27796         * tests/test-snprintf-posix.c: Likewise.
27797         * tests/test-snprintf.c: Likewise.
27798         * tests/test-sprintf-posix.c: Likewise.
27799         * tests/test-stat-time.c: Likewise.
27800         * tests/test-stat.c: Likewise.
27801         * tests/test-strcasestr.c: Likewise.
27802         * tests/test-strchrnul.c: Likewise.
27803         * tests/test-strerror.c: Likewise.
27804         * tests/test-striconv.c: Likewise.
27805         * tests/test-striconveh.c: Likewise.
27806         * tests/test-striconveha.c: Likewise.
27807         * tests/test-strsignal.c: Likewise.
27808         * tests/test-strstr.c: Likewise.
27809         * tests/test-strtod.c: Likewise.
27810         * tests/test-strverscmp.c: Likewise.
27811         * tests/test-symlink.c: Likewise.
27812         * tests/test-symlinkat.c: Likewise.
27813         * tests/test-trunc1.c: Likewise.
27814         * tests/test-trunc2.c: Likewise.
27815         * tests/test-truncf1.c: Likewise.
27816         * tests/test-truncf2.c: Likewise.
27817         * tests/test-truncl.c: Likewise.
27818         * tests/test-uname.c: Likewise.
27819         * tests/test-unlink.c: Likewise.
27820         * tests/test-unlinkat.c: Likewise.
27821         * tests/test-unsetenv.c: Likewise.
27822         * tests/test-usleep.c: Likewise.
27823         * tests/test-utimens.c: Likewise.
27824         * tests/test-utimensat.c: Likewise.
27825         * tests/test-vasnprintf-posix.c: Likewise.
27826         * tests/test-vasnprintf-posix2.c: Likewise.
27827         * tests/test-vasnprintf.c: Likewise.
27828         * tests/test-vasprintf-posix.c: Likewise.
27829         * tests/test-vasprintf.c: Likewise.
27830         * tests/test-vdprintf-posix.c: Likewise.
27831         * tests/test-vfprintf-posix.c: Likewise.
27832         * tests/test-vprintf-posix.c: Likewise.
27833         * tests/test-vsnprintf-posix.c: Likewise.
27834         * tests/test-vsnprintf.c: Likewise.
27835         * tests/test-vsprintf-posix.c: Likewise.
27836         * tests/test-wcrtomb.c: Likewise.
27837         * tests/test-wcsnrtombs.c: Likewise.
27838         * tests/test-wcsrtombs.c: Likewise.
27839         * tests/test-wctype.c: Likewise.
27840         * tests/test-wcwidth.c: Likewise.
27841         * tests/test-xfprintf-posix.c: Likewise.
27842         * tests/test-xmemdup0.c: Likewise.
27843         * tests/test-xprintf-posix.c: Likewise.
27844         * tests/test-xvasprintf.c: Likewise.
27845         * tests/unicase/test-locale-language.c: Likewise.
27846         * tests/unicase/test-mapping-part1.h: Likewise.
27847         * tests/unicase/test-predicate-part1.h: Likewise.
27848         * tests/unicase/test-u8-casecmp.c: Likewise.
27849         * tests/unicase/test-u8-casecoll.c: Likewise.
27850         * tests/unicase/test-u8-casefold.c: Likewise.
27851         * tests/unicase/test-u8-is-cased.c: Likewise.
27852         * tests/unicase/test-u8-is-casefolded.c: Likewise.
27853         * tests/unicase/test-u8-is-lowercase.c: Likewise.
27854         * tests/unicase/test-u8-is-titlecase.c: Likewise.
27855         * tests/unicase/test-u8-is-uppercase.c: Likewise.
27856         * tests/unicase/test-u8-tolower.c: Likewise.
27857         * tests/unicase/test-u8-totitle.c: Likewise.
27858         * tests/unicase/test-u8-toupper.c: Likewise.
27859         * tests/unicase/test-u16-casecmp.c: Likewise.
27860         * tests/unicase/test-u16-casecoll.c: Likewise.
27861         * tests/unicase/test-u16-casefold.c: Likewise.
27862         * tests/unicase/test-u16-is-cased.c: Likewise.
27863         * tests/unicase/test-u16-is-casefolded.c: Likewise.
27864         * tests/unicase/test-u16-is-lowercase.c: Likewise.
27865         * tests/unicase/test-u16-is-titlecase.c: Likewise.
27866         * tests/unicase/test-u16-is-uppercase.c: Likewise.
27867         * tests/unicase/test-u16-tolower.c: Likewise.
27868         * tests/unicase/test-u16-totitle.c: Likewise.
27869         * tests/unicase/test-u16-toupper.c: Likewise.
27870         * tests/unicase/test-u32-casecmp.c: Likewise.
27871         * tests/unicase/test-u32-casecoll.c: Likewise.
27872         * tests/unicase/test-u32-casefold.c: Likewise.
27873         * tests/unicase/test-u32-is-cased.c: Likewise.
27874         * tests/unicase/test-u32-is-casefolded.c: Likewise.
27875         * tests/unicase/test-u32-is-lowercase.c: Likewise.
27876         * tests/unicase/test-u32-is-titlecase.c: Likewise.
27877         * tests/unicase/test-u32-is-uppercase.c: Likewise.
27878         * tests/unicase/test-u32-tolower.c: Likewise.
27879         * tests/unicase/test-u32-totitle.c: Likewise.
27880         * tests/unicase/test-u32-toupper.c: Likewise.
27881         * tests/unicase/test-ulc-casecmp.c: Likewise.
27882         * tests/unicase/test-ulc-casecoll.c: Likewise.
27883         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27884         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27885         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27886         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27887         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27888         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27889         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27890         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27891         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27892         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27893         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27894         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27895         * tests/unictype/test-bidi_byname.c: Likewise.
27896         * tests/unictype/test-bidi_name.c: Likewise.
27897         * tests/unictype/test-bidi_of.c: Likewise.
27898         * tests/unictype/test-bidi_test.c: Likewise.
27899         * tests/unictype/test-block_list.c: Likewise.
27900         * tests/unictype/test-block_of.c: Likewise.
27901         * tests/unictype/test-block_test.c: Likewise.
27902         * tests/unictype/test-categ_and.c: Likewise.
27903         * tests/unictype/test-categ_and_not.c: Likewise.
27904         * tests/unictype/test-categ_byname.c: Likewise.
27905         * tests/unictype/test-categ_name.c: Likewise.
27906         * tests/unictype/test-categ_none.c: Likewise.
27907         * tests/unictype/test-categ_of.c: Likewise.
27908         * tests/unictype/test-categ_or.c: Likewise.
27909         * tests/unictype/test-categ_test_withtable.c: Likewise.
27910         * tests/unictype/test-combining.c: Likewise.
27911         * tests/unictype/test-decdigit.c: Likewise.
27912         * tests/unictype/test-digit.c: Likewise.
27913         * tests/unictype/test-mirror.c: Likewise.
27914         * tests/unictype/test-numeric.c: Likewise.
27915         * tests/unictype/test-pr_byname.c: Likewise.
27916         * tests/unictype/test-pr_test.c: Likewise.
27917         * tests/unictype/test-predicate-part1.h: Likewise.
27918         * tests/unictype/test-scripts.c: Likewise.
27919         * tests/unictype/test-sy_c_ident.c: Likewise.
27920         * tests/unictype/test-sy_java_ident.c: Likewise.
27921         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
27922         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
27923         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
27924         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
27925         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
27926         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
27927         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
27928         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
27929         * tests/uninorm/test-canonical-decomposition.c: Likewise.
27930         * tests/uninorm/test-compat-decomposition.c: Likewise.
27931         * tests/uninorm/test-composition.c: Likewise.
27932         * tests/uninorm/test-decomposing-form.c: Likewise.
27933         * tests/uninorm/test-decomposition.c: Likewise.
27934         * tests/uninorm/test-u8-nfc.c: Likewise.
27935         * tests/uninorm/test-u8-nfd.c: Likewise.
27936         * tests/uninorm/test-u8-nfkc.c: Likewise.
27937         * tests/uninorm/test-u8-nfkd.c: Likewise.
27938         * tests/uninorm/test-u8-normcmp.c: Likewise.
27939         * tests/uninorm/test-u8-normcoll.c: Likewise.
27940         * tests/uninorm/test-u16-nfc.c: Likewise.
27941         * tests/uninorm/test-u16-nfd.c: Likewise.
27942         * tests/uninorm/test-u16-nfkc.c: Likewise.
27943         * tests/uninorm/test-u16-nfkd.c: Likewise.
27944         * tests/uninorm/test-u16-normcmp.c: Likewise.
27945         * tests/uninorm/test-u16-normcoll.c: Likewise.
27946         * tests/uninorm/test-u32-nfc.c: Likewise.
27947         * tests/uninorm/test-u32-nfd.c: Likewise.
27948         * tests/uninorm/test-u32-nfkc.c: Likewise.
27949         * tests/uninorm/test-u32-nfkd.c: Likewise.
27950         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27951         * tests/uninorm/test-u32-normcmp.c: Likewise.
27952         * tests/uninorm/test-u32-normcoll.c: Likewise.
27953         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
27954         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27955         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27956         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27957         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27958         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27959         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27960         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27961         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27962         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27963         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27964         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27965         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27966         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27967         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27968         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27969         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27970         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27971         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27972         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27973         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27974         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27975         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27976         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27977         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27978         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27979         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27980         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27981         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27982         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27983         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27984         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27985         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27986         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27987         * tests/uniwidth/test-u8-width.c: Likewise.
27988         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27989         * tests/uniwidth/test-u16-width.c: Likewise.
27990         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27991         * tests/uniwidth/test-u32-width.c: Likewise.
27992         * tests/uniwidth/test-uc_width.c: Likewise.
27993         * tests/uniwidth/test-uc_width2.c: Likewise.
27994         * modules/acl-tests (Files): Add tests/macros.h.
27995         * modules/areadlink-tests (Files): Likewise.
27996         * modules/areadlink-with-size-tests (Files): Likewise.
27997         * modules/areadlinkat-tests (Files): Likewise.
27998         * modules/areadlinkat-with-size-tests (Files): Likewise.
27999         * modules/argmatch-tests (Files): Likewise.
28000         * modules/argv-iter-tests (Files): Likewise.
28001         * modules/array-list-tests (Files): Likewise.
28002         * modules/array-mergesort-tests (Files): Likewise.
28003         * modules/array-oset-tests (Files): Likewise.
28004         * modules/avltree-list-tests (Files): Likewise.
28005         * modules/avltree-oset-tests (Files): Likewise.
28006         * modules/avltreehash-list-tests (Files): Likewise.
28007         * modules/base64-tests (Files): Likewise.
28008         * modules/binary-io-tests (Files): Likewise.
28009         * modules/bitrotate-tests (Files): Likewise.
28010         * modules/btowc-tests (Files): Likewise.
28011         * modules/byteswap-tests (Files): Likewise.
28012         * modules/c-ctype-tests (Files): Likewise.
28013         * modules/c-stack-tests (Files): Likewise.
28014         * modules/c-strcase-tests (Files): Likewise.
28015         * modules/c-strcasestr-tests (Files): Likewise.
28016         * modules/c-strstr-tests (Files): Likewise.
28017         * modules/canonicalize-lgpl-tests (Files): Likewise.
28018         * modules/canonicalize-tests (Files): Likewise.
28019         * modules/carray-list-tests (Files): Likewise.
28020         * modules/ceilf-tests (Files): Likewise.
28021         * modules/ceill-tests (Files): Likewise.
28022         * modules/chown-tests (Files): Likewise.
28023         * modules/cloexec-tests (Files): Likewise.
28024         * modules/copy-file-tests (Files): Likewise.
28025         * modules/count-one-bits-tests (Files): Likewise.
28026         * modules/dprintf-posix-tests (Files): Likewise.
28027         * modules/dup2-tests (Files): Likewise.
28028         * modules/dup3-tests (Files): Likewise.
28029         * modules/duplocale-tests (Files): Likewise.
28030         * modules/fbufmode-tests (Files): Likewise.
28031         * modules/fchdir-tests (Files): Likewise.
28032         * modules/fcntl-safer-tests (Files): Likewise.
28033         * modules/fcntl-tests (Files): Likewise.
28034         * modules/fdopendir-tests (Files): Likewise.
28035         * modules/fdutimensat-tests (Files): Likewise.
28036         * modules/fflush-tests (Files): Likewise.
28037         * modules/filevercmp-tests (Files): Likewise.
28038         * modules/flock-tests (Files): Likewise.
28039         * modules/floorf-tests (Files): Likewise.
28040         * modules/floorl-tests (Files): Likewise.
28041         * modules/fnmatch-tests (Files): Likewise.
28042         * modules/fopen-safer-tests (Files): Likewise.
28043         * modules/fopen-tests (Files): Likewise.
28044         * modules/fpending-tests (Files): Likewise.
28045         * modules/fprintf-posix-tests (Files): Likewise.
28046         * modules/fpurge-tests (Files): Likewise.
28047         * modules/freadable-tests (Files): Likewise.
28048         * modules/freadahead-tests (Files): Likewise.
28049         * modules/freading-tests (Files): Likewise.
28050         * modules/freadptr-tests (Files): Likewise.
28051         * modules/freadseek-tests (Files): Likewise.
28052         * modules/freopen-tests (Files): Likewise.
28053         * modules/frexp-nolibm-tests (Files): Likewise.
28054         * modules/frexp-tests (Files): Likewise.
28055         * modules/frexpl-nolibm-tests (Files): Likewise.
28056         * modules/frexpl-tests (Files): Likewise.
28057         * modules/fseek-tests (Files): Likewise.
28058         * modules/fseeko-tests (Files): Likewise.
28059         * modules/fstrcmp-tests (Files): Likewise.
28060         * modules/fsync-tests (Files): Likewise.
28061         * modules/ftell-tests (Files): Likewise.
28062         * modules/ftello-tests (Files): Likewise.
28063         * modules/func-tests (Files): Likewise.
28064         * modules/futimens-tests (Files): Likewise.
28065         * modules/fwritable-tests (Files): Likewise.
28066         * modules/fwriting-tests (Files): Likewise.
28067         * modules/getcwd-tests (Files): Likewise.
28068         * modules/getdate-tests (Files): Likewise.
28069         * modules/getdelim-tests (Files): Likewise.
28070         * modules/getdtablesize-tests (Files): Likewise.
28071         * modules/getgroups-tests (Files): Likewise.
28072         * modules/getline-tests (Files): Likewise.
28073         * modules/getndelim2-tests (Files): Likewise.
28074         * modules/glob-tests (Files): Likewise.
28075         * modules/hash-tests (Files): Likewise.
28076         * modules/i-ring-tests (Files): Likewise.
28077         * modules/iconv-tests (Files): Likewise.
28078         * modules/iconv_open-utf-tests (Files): Likewise.
28079         * modules/idpriv-drop-tests (Files): Likewise.
28080         * modules/idpriv-droptemp-tests (Files): Likewise.
28081         * modules/inet_ntop-tests (Files): Likewise.
28082         * modules/inet_pton-tests (Files): Likewise.
28083         * modules/isblank-tests (Files): Likewise.
28084         * modules/isfinite-tests (Files): Likewise.
28085         * modules/isinf-tests (Files): Likewise.
28086         * modules/isnan-tests (Files): Likewise.
28087         * modules/isnand-nolibm-tests (Files): Likewise.
28088         * modules/isnand-tests (Files): Likewise.
28089         * modules/isnanf-nolibm-tests (Files): Likewise.
28090         * modules/isnanf-tests (Files): Likewise.
28091         * modules/isnanl-nolibm-tests (Files): Likewise.
28092         * modules/isnanl-tests (Files): Likewise.
28093         * modules/lchown-tests (Files): Likewise.
28094         * modules/ldexpl-tests (Files): Likewise.
28095         * modules/link-tests (Files): Likewise.
28096         * modules/linkat-tests (Files): Likewise.
28097         * modules/linked-list-tests (Files): Likewise.
28098         * modules/linkedhash-list-tests (Files): Likewise.
28099         * modules/localename-tests (Files): Likewise.
28100         * modules/lseek-tests (Files): Likewise.
28101         * modules/lstat-tests (Files): Likewise.
28102         * modules/mbmemcasecmp-tests (Files): Likewise.
28103         * modules/mbmemcasecoll-tests (Files): Likewise.
28104         * modules/mbrtowc-tests (Files): Likewise.
28105         * modules/mbscasecmp-tests (Files): Likewise.
28106         * modules/mbscasestr-tests (Files): Likewise.
28107         * modules/mbschr-tests (Files): Likewise.
28108         * modules/mbscspn-tests (Files): Likewise.
28109         * modules/mbsinit-tests (Files): Likewise.
28110         * modules/mbsncasecmp-tests (Files): Likewise.
28111         * modules/mbsnrtowcs-tests (Files): Likewise.
28112         * modules/mbspbrk-tests (Files): Likewise.
28113         * modules/mbspcasecmp-tests (Files): Likewise.
28114         * modules/mbsrchr-tests (Files): Likewise.
28115         * modules/mbsrtowcs-tests (Files): Likewise.
28116         * modules/mbsspn-tests (Files): Likewise.
28117         * modules/mbsstr-tests (Files): Likewise.
28118         * modules/memchr-tests (Files): Likewise.
28119         * modules/memchr2-tests (Files): Likewise.
28120         * modules/memcmp-tests (Files): Likewise.
28121         * modules/memmem-tests (Files): Likewise.
28122         * modules/memrchr-tests (Files): Likewise.
28123         * modules/mkdir-tests (Files): Likewise.
28124         * modules/mkfifo-tests (Files): Likewise.
28125         * modules/mkfifoat-tests (Files): Likewise.
28126         * modules/mknod-tests (Files): Likewise.
28127         * modules/nanosleep-tests (Files): Likewise.
28128         * modules/nl_langinfo-tests (Files): Likewise.
28129         * modules/obstack-printf-tests (Files): Likewise.
28130         * modules/open-tests (Files): Likewise.
28131         * modules/openat-tests (Files): Likewise.
28132         * modules/pipe-filter-gi-tests (Files): Likewise.
28133         * modules/pipe-filter-ii-tests (Files): Likewise.
28134         * modules/pipe2-tests (Files): Likewise.
28135         * modules/popen-safer-tests (Files): Likewise.
28136         * modules/popen-tests (Files): Likewise.
28137         * modules/posixtm-tests (Files): Likewise.
28138         * modules/pread-tests (Files): Likewise.
28139         * modules/printf-frexp-tests (Files): Likewise.
28140         * modules/printf-frexpl-tests (Files): Likewise.
28141         * modules/printf-posix-tests (Files): Likewise.
28142         * modules/priv-set-tests (Files): Likewise.
28143         * modules/quotearg-tests (Files): Likewise.
28144         * modules/random_r-tests (Files): Likewise.
28145         * modules/rawmemchr-tests (Files): Likewise.
28146         * modules/rbtree-list-tests (Files): Likewise.
28147         * modules/rbtree-oset-tests (Files): Likewise.
28148         * modules/rbtreehash-list-tests (Files): Likewise.
28149         * modules/readlink-tests (Files): Likewise.
28150         * modules/remove-tests (Files): Likewise.
28151         * modules/rename-tests (Files): Likewise.
28152         * modules/renameat-tests (Files): Likewise.
28153         * modules/rmdir-tests (Files): Likewise.
28154         * modules/round-tests (Files): Likewise.
28155         * modules/roundf-tests (Files): Likewise.
28156         * modules/roundl-tests (Files): Likewise.
28157         * modules/safe-alloc-tests (Files): Likewise.
28158         * modules/setenv-tests (Files): Likewise.
28159         * modules/sigaction-tests (Files): Likewise.
28160         * modules/signbit-tests (Files): Likewise.
28161         * modules/sleep-tests (Files): Likewise.
28162         * modules/snprintf-posix-tests (Files): Likewise.
28163         * modules/snprintf-tests (Files): Likewise.
28164         * modules/sprintf-posix-tests (Files): Likewise.
28165         * modules/stat-tests (Files): Likewise.
28166         * modules/stat-time-tests (Files): Likewise.
28167         * modules/strcasestr-tests (Files): Likewise.
28168         * modules/strchrnul-tests (Files): Likewise.
28169         * modules/strerror-tests (Files): Likewise.
28170         * modules/striconv-tests (Files): Likewise.
28171         * modules/striconveh-tests (Files): Likewise.
28172         * modules/striconveha-tests (Files): Likewise.
28173         * modules/strsignal-tests (Files): Likewise.
28174         * modules/strstr-tests (Files): Likewise.
28175         * modules/strtod-tests (Files): Likewise.
28176         * modules/strverscmp-tests (Files): Likewise.
28177         * modules/symlink-tests (Files): Likewise.
28178         * modules/symlinkat-tests (Files): Likewise.
28179         * modules/trunc-tests (Files): Likewise.
28180         * modules/truncf-tests (Files): Likewise.
28181         * modules/truncl-tests (Files): Likewise.
28182         * modules/uname-tests (Files): Likewise.
28183         * modules/unicase/cased-tests (Files): Likewise.
28184         * modules/unicase/ignorable-tests (Files): Likewise.
28185         * modules/unicase/locale-language-tests (Files): Likewise.
28186         * modules/unicase/tolower-tests (Files): Likewise.
28187         * modules/unicase/totitle-tests (Files): Likewise.
28188         * modules/unicase/toupper-tests (Files): Likewise.
28189         * modules/unicase/u8-casecmp-tests (Files): Likewise.
28190         * modules/unicase/u8-casecoll-tests (Files): Likewise.
28191         * modules/unicase/u8-casefold-tests (Files): Likewise.
28192         * modules/unicase/u8-is-cased-tests (Files): Likewise.
28193         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
28194         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
28195         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
28196         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
28197         * modules/unicase/u8-tolower-tests (Files): Likewise.
28198         * modules/unicase/u8-totitle-tests (Files): Likewise.
28199         * modules/unicase/u8-toupper-tests (Files): Likewise.
28200         * modules/unicase/u16-casecmp-tests (Files): Likewise.
28201         * modules/unicase/u16-casecoll-tests (Files): Likewise.
28202         * modules/unicase/u16-casefold-tests (Files): Likewise.
28203         * modules/unicase/u16-is-cased-tests (Files): Likewise.
28204         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
28205         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
28206         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
28207         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
28208         * modules/unicase/u16-tolower-tests (Files): Likewise.
28209         * modules/unicase/u16-totitle-tests (Files): Likewise.
28210         * modules/unicase/u16-toupper-tests (Files): Likewise.
28211         * modules/unicase/u32-casecmp-tests (Files): Likewise.
28212         * modules/unicase/u32-casecoll-tests (Files): Likewise.
28213         * modules/unicase/u32-casefold-tests (Files): Likewise.
28214         * modules/unicase/u32-is-cased-tests (Files): Likewise.
28215         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
28216         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
28217         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
28218         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
28219         * modules/unicase/u32-tolower-tests (Files): Likewise.
28220         * modules/unicase/u32-totitle-tests (Files): Likewise.
28221         * modules/unicase/u32-toupper-tests (Files): Likewise.
28222         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
28223         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
28224         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
28225         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
28226         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
28227         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
28228         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
28229         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
28230         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
28231         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
28232         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
28233         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
28234         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
28235         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
28236         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
28237         * modules/unictype/bidicategory-name-tests (Files): Likewise.
28238         * modules/unictype/bidicategory-of-tests (Files): Likewise.
28239         * modules/unictype/bidicategory-test-tests (Files): Likewise.
28240         * modules/unictype/block-list-tests (Files): Likewise.
28241         * modules/unictype/block-of-tests (Files): Likewise.
28242         * modules/unictype/block-test-tests (Files): Likewise.
28243         * modules/unictype/category-C-tests (Files): Likewise.
28244         * modules/unictype/category-Cc-tests (Files): Likewise.
28245         * modules/unictype/category-Cf-tests (Files): Likewise.
28246         * modules/unictype/category-Cn-tests (Files): Likewise.
28247         * modules/unictype/category-Co-tests (Files): Likewise.
28248         * modules/unictype/category-Cs-tests (Files): Likewise.
28249         * modules/unictype/category-L-tests (Files): Likewise.
28250         * modules/unictype/category-Ll-tests (Files): Likewise.
28251         * modules/unictype/category-Lm-tests (Files): Likewise.
28252         * modules/unictype/category-Lo-tests (Files): Likewise.
28253         * modules/unictype/category-Lt-tests (Files): Likewise.
28254         * modules/unictype/category-Lu-tests (Files): Likewise.
28255         * modules/unictype/category-M-tests (Files): Likewise.
28256         * modules/unictype/category-Mc-tests (Files): Likewise.
28257         * modules/unictype/category-Me-tests (Files): Likewise.
28258         * modules/unictype/category-Mn-tests (Files): Likewise.
28259         * modules/unictype/category-N-tests (Files): Likewise.
28260         * modules/unictype/category-Nd-tests (Files): Likewise.
28261         * modules/unictype/category-Nl-tests (Files): Likewise.
28262         * modules/unictype/category-No-tests (Files): Likewise.
28263         * modules/unictype/category-P-tests (Files): Likewise.
28264         * modules/unictype/category-Pc-tests (Files): Likewise.
28265         * modules/unictype/category-Pd-tests (Files): Likewise.
28266         * modules/unictype/category-Pe-tests (Files): Likewise.
28267         * modules/unictype/category-Pf-tests (Files): Likewise.
28268         * modules/unictype/category-Pi-tests (Files): Likewise.
28269         * modules/unictype/category-Po-tests (Files): Likewise.
28270         * modules/unictype/category-Ps-tests (Files): Likewise.
28271         * modules/unictype/category-S-tests (Files): Likewise.
28272         * modules/unictype/category-Sc-tests (Files): Likewise.
28273         * modules/unictype/category-Sk-tests (Files): Likewise.
28274         * modules/unictype/category-Sm-tests (Files): Likewise.
28275         * modules/unictype/category-So-tests (Files): Likewise.
28276         * modules/unictype/category-Z-tests (Files): Likewise.
28277         * modules/unictype/category-Zl-tests (Files): Likewise.
28278         * modules/unictype/category-Zp-tests (Files): Likewise.
28279         * modules/unictype/category-Zs-tests (Files): Likewise.
28280         * modules/unictype/category-and-not-tests (Files): Likewise.
28281         * modules/unictype/category-and-tests (Files): Likewise.
28282         * modules/unictype/category-byname-tests (Files): Likewise.
28283         * modules/unictype/category-name-tests (Files): Likewise.
28284         * modules/unictype/category-none-tests (Files): Likewise.
28285         * modules/unictype/category-of-tests (Files): Likewise.
28286         * modules/unictype/category-or-tests (Files): Likewise.
28287         * modules/unictype/category-test-withtable-tests (Files): Likewise.
28288         * modules/unictype/combining-class-tests (Files): Likewise.
28289         * modules/unictype/ctype-alnum-tests (Files): Likewise.
28290         * modules/unictype/ctype-alpha-tests (Files): Likewise.
28291         * modules/unictype/ctype-blank-tests (Files): Likewise.
28292         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
28293         * modules/unictype/ctype-digit-tests (Files): Likewise.
28294         * modules/unictype/ctype-graph-tests (Files): Likewise.
28295         * modules/unictype/ctype-lower-tests (Files): Likewise.
28296         * modules/unictype/ctype-print-tests (Files): Likewise.
28297         * modules/unictype/ctype-punct-tests (Files): Likewise.
28298         * modules/unictype/ctype-space-tests (Files): Likewise.
28299         * modules/unictype/ctype-upper-tests (Files): Likewise.
28300         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
28301         * modules/unictype/decimal-digit-tests (Files): Likewise.
28302         * modules/unictype/digit-tests (Files): Likewise.
28303         * modules/unictype/mirror-tests (Files): Likewise.
28304         * modules/unictype/numeric-tests (Files): Likewise.
28305         * modules/unictype/property-alphabetic-tests (Files): Likewise.
28306         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
28307         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
28308         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
28309         Likewise.
28310         * modules/unictype/property-bidi-block-separator-tests (Files):
28311         Likewise.
28312         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
28313         Likewise.
28314         * modules/unictype/property-bidi-common-separator-tests (Files):
28315         Likewise.
28316         * modules/unictype/property-bidi-control-tests (Files): Likewise.
28317         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
28318         Likewise.
28319         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
28320         Likewise.
28321         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
28322         Likewise.
28323         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
28324         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
28325         Likewise.
28326         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
28327         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
28328         Likewise.
28329         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
28330         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
28331         * modules/unictype/property-bidi-segment-separator-tests (Files):
28332         Likewise.
28333         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
28334         * modules/unictype/property-byname-tests (Files): Likewise.
28335         * modules/unictype/property-combining-tests (Files): Likewise.
28336         * modules/unictype/property-composite-tests (Files): Likewise.
28337         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
28338         * modules/unictype/property-dash-tests (Files): Likewise.
28339         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
28340         * modules/unictype/property-default-ignorable-code-point-tests (Files):
28341         Likewise.
28342         * modules/unictype/property-deprecated-tests (Files): Likewise.
28343         * modules/unictype/property-diacritic-tests (Files): Likewise.
28344         * modules/unictype/property-extender-tests (Files): Likewise.
28345         * modules/unictype/property-format-control-tests (Files): Likewise.
28346         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
28347         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
28348         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
28349         * modules/unictype/property-hex-digit-tests (Files): Likewise.
28350         * modules/unictype/property-hyphen-tests (Files): Likewise.
28351         * modules/unictype/property-id-continue-tests (Files): Likewise.
28352         * modules/unictype/property-id-start-tests (Files): Likewise.
28353         * modules/unictype/property-ideographic-tests (Files): Likewise.
28354         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
28355         * modules/unictype/property-ids-trinary-operator-tests (Files):
28356         Likewise.
28357         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
28358         * modules/unictype/property-iso-control-tests (Files): Likewise.
28359         * modules/unictype/property-join-control-tests (Files): Likewise.
28360         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
28361         * modules/unictype/property-line-separator-tests (Files): Likewise.
28362         * modules/unictype/property-logical-order-exception-tests (Files):
28363         Likewise.
28364         * modules/unictype/property-lowercase-tests (Files): Likewise.
28365         * modules/unictype/property-math-tests (Files): Likewise.
28366         * modules/unictype/property-non-break-tests (Files): Likewise.
28367         * modules/unictype/property-not-a-character-tests (Files): Likewise.
28368         * modules/unictype/property-numeric-tests (Files): Likewise.
28369         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
28370         * modules/unictype/property-other-default-ignorable-code-point-tests
28371         (Files): Likewise.
28372         * modules/unictype/property-other-grapheme-extend-tests (Files):
28373         Likewise.
28374         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
28375         * modules/unictype/property-other-id-start-tests (Files): Likewise.
28376         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
28377         * modules/unictype/property-other-math-tests (Files): Likewise.
28378         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
28379         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
28380         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
28381         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
28382         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
28383         * modules/unictype/property-private-use-tests (Files): Likewise.
28384         * modules/unictype/property-punctuation-tests (Files): Likewise.
28385         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
28386         * modules/unictype/property-radical-tests (Files): Likewise.
28387         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
28388         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
28389         * modules/unictype/property-space-tests (Files): Likewise.
28390         * modules/unictype/property-terminal-punctuation-tests (Files):
28391         Likewise.
28392         * modules/unictype/property-test-tests (Files): Likewise.
28393         * modules/unictype/property-titlecase-tests (Files): Likewise.
28394         * modules/unictype/property-unassigned-code-value-tests (Files):
28395         Likewise.
28396         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
28397         * modules/unictype/property-uppercase-tests (Files): Likewise.
28398         * modules/unictype/property-variation-selector-tests (Files): Likewise.
28399         * modules/unictype/property-white-space-tests (Files): Likewise.
28400         * modules/unictype/property-xid-continue-tests (Files): Likewise.
28401         * modules/unictype/property-xid-start-tests (Files): Likewise.
28402         * modules/unictype/property-zero-width-tests (Files): Likewise.
28403         * modules/unictype/scripts-tests (Files): Likewise.
28404         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
28405         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
28406         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
28407         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
28408         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
28409         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
28410         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
28411         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
28412         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
28413         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
28414         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
28415         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
28416         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
28417         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
28418         * modules/uninorm/composition-tests (Files): Likewise.
28419         * modules/uninorm/decomposing-form-tests (Files): Likewise.
28420         * modules/uninorm/decomposition-tests (Files): Likewise.
28421         * modules/uninorm/filter-tests (Files): Likewise.
28422         * modules/uninorm/nfc-tests (Files): Likewise.
28423         * modules/uninorm/nfd-tests (Files): Likewise.
28424         * modules/uninorm/nfkc-tests (Files): Likewise.
28425         * modules/uninorm/nfkd-tests (Files): Likewise.
28426         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
28427         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
28428         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
28429         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
28430         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
28431         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
28432         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
28433         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28434         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
28435         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
28436         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
28437         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
28438         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28439         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
28440         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
28441         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
28442         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
28443         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28444         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
28445         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
28446         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
28447         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
28448         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28449         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
28450         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
28451         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
28452         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
28453         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
28454         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
28455         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
28456         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
28457         * modules/uniwidth/u8-width-tests (Files): Likewise.
28458         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
28459         * modules/uniwidth/u16-width-tests (Files): Likewise.
28460         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
28461         * modules/uniwidth/u32-width-tests (Files): Likewise.
28462         * modules/uniwidth/width-tests (Files): Likewise.
28463         * modules/unlink-tests (Files): Likewise.
28464         * modules/unsetenv-tests (Files): Likewise.
28465         * modules/usleep-tests (Files): Likewise.
28466         * modules/utimens-tests (Files): Likewise.
28467         * modules/utimensat-tests (Files): Likewise.
28468         * modules/vasnprintf-posix-tests (Files): Likewise.
28469         * modules/vasnprintf-tests (Files): Likewise.
28470         * modules/vasprintf-posix-tests (Files): Likewise.
28471         * modules/vasprintf-tests (Files): Likewise.
28472         * modules/vdprintf-posix-tests (Files): Likewise.
28473         * modules/vfprintf-posix-tests (Files): Likewise.
28474         * modules/vprintf-posix-tests (Files): Likewise.
28475         * modules/vsnprintf-posix-tests (Files): Likewise.
28476         * modules/vsnprintf-tests (Files): Likewise.
28477         * modules/vsprintf-posix-tests (Files): Likewise.
28478         * modules/wcrtomb-tests (Files): Likewise.
28479         * modules/wcsnrtombs-tests (Files): Likewise.
28480         * modules/wcsrtombs-tests (Files): Likewise.
28481         * modules/wctype-tests (Files): Likewise.
28482         * modules/wcwidth-tests (Files): Likewise.
28483         * modules/xmemdup0-tests (Files): Likewise.
28484         * modules/xprintf-posix-tests (Files): Likewise.
28485         * modules/xvasprintf-tests (Files): Likewise.
28486
28487 2009-12-24  Eric Blake  <ebb9@byu.net>
28488
28489         test-nanosleep: fix typo
28490         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
28491         patch.
28492         Reported by Bruno Haible.
28493
28494 2009-12-24  Bruno Haible  <bruno@clisp.org>
28495
28496         Reduce namespace pollution on glibc systems.
28497         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
28498         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
28499         systems.
28500         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
28501         <getopt.h> on glibc systems.
28502         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
28503         systems.
28504         * lib/fcntl.c: Include <unistd.h> here instead.
28505
28506 2009-12-24  Bruno Haible  <bruno@clisp.org>
28507
28508         * lib/stdlib.in.h (includes): Fix typo in today's commit.
28509
28510 2009-12-24  Eric Blake  <ebb9@byu.net>
28511
28512         tests: add signature checks
28513         * tests/signature.h (SIGNATURE_CHECK): New file.
28514         * modules/atexit-tests (Files): Use it.
28515         * modules/btowc-tests (Files): Likewise.
28516         * modules/canonicalize-lgpl-tests (Files): Likewise.
28517         * modules/ceilf-tests (Files): Likewise.
28518         * modules/ceill-tests (Files): Likewise.
28519         * modules/chown-tests (Files): Likewise.
28520         * modules/dprintf-posix-tests (Files): Likewise.
28521         * modules/dup2-tests (Files): Likewise.
28522         * modules/dup3-tests (Files): Likewise.
28523         * modules/duplocale-tests (Files): Likewise.
28524         * modules/fchdir-tests (Files): Likewise.
28525         * modules/fcntl-tests (Files): Likewise.
28526         * modules/fdopendir-tests (Files): Likewise.
28527         * modules/fflush-tests (Files): Likewise.
28528         * modules/flock-tests (Files): Likewise.
28529         * modules/floorf-tests (Files): Likewise.
28530         * modules/floorl-tests (Files): Likewise.
28531         * modules/fnmatch-tests (Files): Likewise.
28532         * modules/fopen-tests (Files): Likewise.
28533         * modules/fprintf-posix-tests (Files): Likewise.
28534         * modules/freopen-tests (Files): Likewise.
28535         * modules/frexp-nolibm-tests (Files): Likewise.
28536         * modules/frexp-tests (Files): Likewise.
28537         * modules/frexpl-nolibm-tests (Files): Likewise.
28538         * modules/frexpl-tests (Files): Likewise.
28539         * modules/fseek-tests (Files): Likewise.
28540         * modules/fseeko-tests (Files): Likewise.
28541         * modules/fsync-tests (Files): Likewise.
28542         * modules/ftell-tests (Files): Likewise.
28543         * modules/ftello-tests (Files): Likewise.
28544         * modules/futimens-tests (Files): Likewise.
28545         * modules/getaddrinfo-tests (Files): Likewise.
28546         * modules/getcwd-tests (Files): Likewise.
28547         * modules/getdelim-tests (Files): Likewise.
28548         * modules/getdtablesize-tests (Files): Likewise.
28549         * modules/getgroups-tests (Files): Likewise.
28550         * modules/gethostname-tests (Files): Likewise.
28551         * modules/getline-tests (Files): Likewise.
28552         * modules/getopt-posix-tests (Files): Likewise.
28553         * modules/gettimeofday-tests (Files): Likewise.
28554         * modules/glob-tests (Files): Likewise.
28555         * modules/iconv-tests (Files): Likewise.
28556         * modules/inet_ntop-tests (Files): Likewise.
28557         * modules/inet_pton-tests (Files): Likewise.
28558         * modules/isblank-tests (Files): Likewise.
28559         * modules/lchown-tests (Files): Likewise.
28560         * modules/ldexpl-tests (Files): Likewise.
28561         * modules/link-tests (Files): Likewise.
28562         * modules/linkat-tests (Files): Likewise.
28563         * modules/lseek-tests (Files): Likewise.
28564         * modules/lstat-tests (Files): Likewise.
28565         * modules/mbrtowc-tests (Files): Likewise.
28566         * modules/mbsinit-tests (Files): Likewise.
28567         * modules/mbsnrtowcs-tests (Files): Likewise.
28568         * modules/mbsrtowcs-tests (Files): Likewise.
28569         * modules/memchr-tests (Files): Likewise.
28570         * modules/memcmp-tests (Files): Likewise.
28571         * modules/memmem-tests (Files): Likewise.
28572         * modules/memrchr-tests (Files): Likewise.
28573         * modules/mkdir-tests (Files): Likewise.
28574         * modules/mkfifo-tests (Files): Likewise.
28575         * modules/mkfifoat-tests (Files): Likewise.
28576         * modules/mknod-tests (Files): Likewise.
28577         * modules/nanosleep-tests (Files): Likewise.
28578         * modules/nl_langinfo-tests (Files): Likewise.
28579         * modules/obstack-printf-tests (Files): Likewise.
28580         * modules/open-tests (Files): Likewise.
28581         * modules/openat-tests (Files): Likewise.
28582         * modules/perror-tests (Files): Likewise.
28583         * modules/pipe2-tests (Files): Likewise.
28584         * modules/poll-tests (Files): Likewise.
28585         * modules/popen-tests (Files): Likewise.
28586         * modules/posix_spawn-tests (Files): Likewise.
28587         * modules/posix_spawnp-tests (Files): Likewise.
28588         * modules/pread-tests (Files): Likewise.
28589         * modules/printf-posix-tests (Files): Likewise.
28590         * modules/pty-tests (Files): Likewise.
28591         * modules/random_r-tests (Files): Likewise.
28592         * modules/rawmemchr-tests (Files): Likewise.
28593         * modules/readlink-tests (Files): Likewise.
28594         * modules/remove-tests (Files): Likewise.
28595         * modules/rename-tests (Files): Likewise.
28596         * modules/renameat-tests (Files): Likewise.
28597         * modules/rmdir-tests (Files): Likewise.
28598         * modules/round-tests (Files): Likewise.
28599         * modules/roundf-tests (Files): Likewise.
28600         * modules/roundl-tests (Files): Likewise.
28601         * modules/select-tests (Files): Likewise.
28602         * modules/setenv-tests (Files): Likewise.
28603         * modules/sigaction-tests (Files): Likewise.
28604         * modules/sleep-tests (Files): Likewise.
28605         * modules/snprintf-posix-tests (Files): Likewise.
28606         * modules/snprintf-tests (Files): Likewise.
28607         * modules/sprintf-posix-tests (Files): Likewise.
28608         * modules/stat-tests (Files): Likewise.
28609         * modules/strcasestr-tests (Files): Likewise.
28610         * modules/strchrnul-tests (Files): Likewise.
28611         * modules/strerror-tests (Files): Likewise.
28612         * modules/strsignal-tests (Files): Likewise.
28613         * modules/strstr-tests (Files): Likewise.
28614         * modules/strtod-tests (Files): Likewise.
28615         * modules/strverscmp-tests (Files): Likewise.
28616         * modules/symlink-tests (Files): Likewise.
28617         * modules/symlinkat-tests (Files): Likewise.
28618         * modules/times-tests (Files): Likewise.
28619         * modules/trunc-tests (Files): Likewise.
28620         * modules/truncf-tests (Files): Likewise.
28621         * modules/truncl-tests (Files): Likewise.
28622         * modules/tsearch-tests (Files): Likewise.
28623         * modules/uname-tests (Files): Likewise.
28624         * modules/unlink-tests (Files): Likewise.
28625         * modules/unsetenv-tests (Files): Likewise.
28626         * modules/usleep-tests (Files): Likewise.
28627         * modules/utimensat-tests (Files): Likewise.
28628         * modules/vasprintf-tests (Files): Likewise.
28629         * modules/vdprintf-posix-tests (Files): Likewise.
28630         * modules/vfprintf-posix-tests (Files): Likewise.
28631         * modules/vprintf-posix-tests (Files): Likewise.
28632         * modules/vsnprintf-posix-tests (Files): Likewise.
28633         * modules/vsnprintf-tests (Files): Likewise.
28634         * modules/vsprintf-posix-tests (Files): Likewise.
28635         * modules/wcrtomb-tests (Files): Likewise.
28636         * modules/wcsnrtombs-tests (Files): Likewise.
28637         * modules/wcsrtombs-tests (Files): Likewise.
28638         * modules/wcwidth-tests (Files): Likewise.
28639         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
28640         * tests/test-isinf.c (isinf): Likewise.
28641         * tests/test-isnan.c (isnan): Likewise.
28642         * tests/test-signbit.c (signbit): Likewise.
28643         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
28644         declaration, either as macro or with correct signature.
28645         (select): Ensure function under test is declared with correct
28646         signature in correct header.
28647         * tests/test-atexit.c (atexit): Likewise.
28648         * tests/test-btowc.c (btowc): Likewise.
28649         * tests/test-canonicalize-lgpl.c (realpath)
28650         (canonicalize_file_name): Likewise.
28651         * tests/test-ceilf1.c (ceilf): Likewise.
28652         * tests/test-ceill.c (ceill): Likewise.
28653         * tests/test-chown.c (chown): Likewise.
28654         * tests/test-dprintf-posix.c (dprintf): Likewise.
28655         * tests/test-dup2.c (dup2): Likewise.
28656         * tests/test-dup3.c (dup3): Likewise.
28657         * tests/test-duplocale.c (duplocale): Likewise.
28658         * tests/test-fchdir.c (fchdir): Likewise.
28659         * tests/test-fchownat.c (fchownat): Likewise.
28660         * tests/test-fcntl.c (fcntl): Likewise.
28661         * tests/test-fdopendir.c (fdopendir): Likewise.
28662         * tests/test-fflush.c (fflush): Likewise.
28663         * tests/test-flock.c (flock): Likewise.
28664         * tests/test-floorf1.c (floorf): Likewise.
28665         * tests/test-floorl.c (floorl): Likewise.
28666         * tests/test-fnmatch.c (fnmatch): Likewise.
28667         * tests/test-fopen.c (fopen): Likewise.
28668         * tests/test-fprintf-posix.c (fprintf): Likewise.
28669         * tests/test-freopen.c (freopen): Likewise.
28670         * tests/test-frexp.c (frexp): Likewise.
28671         * tests/test-frexpl.c (frexpl): Likewise.
28672         * tests/test-fseek.c (fseek): Likewise.
28673         * tests/test-fseeko.c (fseeko): Likewise.
28674         * tests/test-fstatat.c (fstatat): Likewise.
28675         * tests/test-fsync.c (fsync): Likewise.
28676         * tests/test-ftell.c (ftell): Likewise.
28677         * tests/test-ftello.c (ftello): Likewise.
28678         * tests/test-futimens.c (futimens): Likewise.
28679         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
28680         (gai_strerror): Likewise.
28681         * tests/test-getcwd.c (getcwd): Likewise.
28682         * tests/test-getdelim.c (getdelim): Likewise.
28683         * tests/test-getdtablesize.c (getdtablesize): Likewise.
28684         * tests/test-getgroups.c (getgroups): Likewise.
28685         * tests/test-gethostname.c (gethostname): Likewise.
28686         * tests/test-getline.c (getline): Likewise.
28687         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
28688         Likewise.
28689         * tests/test-gettimeofday.c (gettimeofday): Likewise.
28690         * tests/test-glob.c (glob, globfree): Likewise.
28691         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
28692         * tests/test-inet_ntop.c (inet_ntop): Likewise.
28693         * tests/test-inet_pton.c (inet_pton): Likewise.
28694         * tests/test-isblank.c (isblank): Likewise.
28695         * tests/test-lchown.c (lchown): Likewise.
28696         * tests/test-ldexpl.c (ldexpl): Likewise.
28697         * tests/test-link.c (link): Likewise.
28698         * tests/test-linkat.c (linkat): Likewise.
28699         * tests/test-lseek.c (lseek): Likewise.
28700         * tests/test-lstat.c (lstat): Likewise.
28701         * tests/test-mbrtowc.c (mbrtowc): Likewise.
28702         * tests/test-mbsinit.c (mbsinit): Likewise.
28703         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
28704         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
28705         * tests/test-memchr.c (memchr): Likewise.
28706         * tests/test-memcmp.c (memcmp): Likewise.
28707         * tests/test-memmem.c (memmem): Likewise.
28708         * tests/test-memrchr.c (memrchr): Likewise.
28709         * tests/test-mkdir.c (mkdir): Likewise.
28710         * tests/test-mkdirat.c (mkdirat): Likewise.
28711         * tests/test-mkfifo.c (mkfifo): Likewise.
28712         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
28713         * tests/test-mknod.c (mknod): Likewise.
28714         * tests/test-nanosleep.c (nanosleep): Likewise.
28715         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
28716         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
28717         Likewise.
28718         * tests/test-open.c (open): Likewise.
28719         * tests/test-openat.c (openat): Likewise.
28720         * tests/test-perror.c (perror): Likewise.
28721         * tests/test-pipe2.c (pipe2): Likewise.
28722         * tests/test-poll.c (poll): Likewise.
28723         * tests/test-popen.c (popen, pclose): Likewise.
28724         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
28725         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
28726         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
28727         (posix_spawn_file_actions_destroy)
28728         (posix_spawn_file_actions_addclose)
28729         (posix_spawn_file_actions_addopen)
28730         (posix_spawn_file_actions_adddup2): Likewise.
28731         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
28732         * tests/test-pread.c (pread): Likewise.
28733         * tests/test-printf-posix.c (printf): Likewise.
28734         * tests/test-pty.c (openpty, forkpty): Likewise.
28735         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
28736         (random_r): Likewise.
28737         * tests/test-rawmemchr.c (rawmemchr): Likewise.
28738         * tests/test-readlink.c (readlink): Likewise.
28739         * tests/test-remove.c (remove): Likewise.
28740         * tests/test-rename.c (rename): Likewise.
28741         * tests/test-renameat.c (renameat): Likewise.
28742         * tests/test-rmdir.c (rmdir): Likewise.
28743         * tests/test-round1.c (round): Likewise.
28744         * tests/test-roundf1.c (roundf): Likewise.
28745         * tests/test-roundl.c (roundl): Likewise.
28746         * tests/test-setenv.c (setenv): Likewise.
28747         * tests/test-sigaction.c (sigaction): Likewise.
28748         * tests/test-sleep.c (sleep): Likewise.
28749         * tests/test-snprintf.c (snprintf): Likewise.
28750         * tests/test-sprintf-posix.c (sprintf): Likewise.
28751         * tests/test-stat.c (stat): Likewise.
28752         * tests/test-stpncpy.c (stpncpy): Likewise.
28753         * tests/test-strcasestr.c (strcasestr): Likewise.
28754         * tests/test-strchrnul.c (strchrnul): Likewise.
28755         * tests/test-strerror.c (strerror): Likewise.
28756         * tests/test-strsignal.c (strsignal): Likewise.
28757         * tests/test-strstr.c (strstr): Likewise.
28758         * tests/test-strtod.c (strtod): Likewise.
28759         * tests/test-strverscmp.c (strverscmp): Likewise.
28760         * tests/test-symlink.c (symlink): Likewise.
28761         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
28762         * tests/test-times.c (times): Likewise.
28763         * tests/test-trunc1.c (trunc): Likewise.
28764         * tests/test-truncf1.c (truncf): Likewise.
28765         * tests/test-truncl.c (truncl): Likewise.
28766         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
28767         Likewise.
28768         * tests/test-uname.c (uname): Likewise.
28769         * tests/test-unlink.c (unlink): Likewise.
28770         * tests/test-unlinkat.c (unlinkat): Likewise.
28771         * tests/test-unsetenv.c (unsetenv): Likewise.
28772         * tests/test-usleep.c (usleep): Likewise.
28773         * tests/test-utimensat.c (utimensat): Likewise.
28774         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
28775         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
28776         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
28777         * tests/test-vprintf-posix.c (vprintf): Likewise.
28778         * tests/test-vsnprintf.c (vsnprintf): Likewise.
28779         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
28780         * tests/test-wcrtomb.c (wcrtomb): Likewise.
28781         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
28782         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
28783         * tests/test-wcwidth.c (wcwidth): Likewise.
28784
28785         build: pull in conditional headers during GNULIB_POSIXCHECK
28786         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
28787         definitions from any conditionally-included headers.
28788         * lib/stdlib.in.h (includes): Likewise.
28789         * lib/unistd.in.h (includes): Likewise.
28790
28791 2009-12-24  Bruno Haible  <bruno@clisp.org>
28792
28793         * tests/test-argv-iter.c: Include header file being tested immediately
28794         after config.h.
28795         * tests/test-base64.c: Likewise.
28796         * tests/test-flock.c: Likewise.
28797         * tests/test-fsync.c: Likewise.
28798         * tests/test-getdate.c: Likewise.
28799         * tests/test-getndelim2.c: Likewise.
28800         * tests/test-isfinite.c: Likewise.
28801         * tests/test-isinf.c: Likewise.
28802         * tests/test-strerror.c: Likewise.
28803         * tests/test-strsignal.c: Likewise.
28804
28805 2009-12-23  Eric Blake  <ebb9@byu.net>
28806
28807         unistd: work around cygwin bug
28808         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
28809         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
28810         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28811
28812 2009-12-23  Bruno Haible  <bruno@clisp.org>
28813
28814         localename: More tests.
28815         * tests/test-localename.c (SIZEOF): New macro.
28816         (categories): New variable.
28817         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
28818         test_locale_name_default): Add test w.r.t. thread locale.
28819         (test_locale_name_thread): New function.
28820         (main): Invoke it.
28821
28822         localename: Make aware of thread locale.
28823         * lib/localename.h (gl_locale_name_thread): New declaration.
28824         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
28825         behaviour with respect to thread locale.
28826         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
28827         <langinfo.h>, glthread/lock.h.
28828         (SIZE_BITS): New macro.
28829         (string_hash): New function.
28830         (struct hash_node): New type.
28831         (HASH_TABLE_SIZE): New macro.
28832         (struniq_hash_table, struniq_lock): New variables.
28833         (struniq): New function.
28834         (gl_locale_name_thread): New function.
28835         (gl_locale_name): Invoke it.
28836         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
28837         * modules/localename (Depends-on): Add lock.
28838         Reported by Mike Gran <spk121@yahoo.com>.
28839
28840 2009-12-23  Eric Blake  <ebb9@byu.net>
28841
28842         va-args: new module
28843         * modules/va-args: New file.
28844         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
28845         * MODULES.html.sh (Core language properties): Mention it.
28846
28847         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
28848         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
28849         named alias for __attribute__((__unused__)).
28850         * lib/chown.c: Update client.
28851         * lib/fchmodat.c: Likewise.
28852         * lib/fts.c: Likewise.
28853         * lib/getdate.y: Likewise.
28854         * lib/getgroups.c: Likewise.
28855         * lib/getopt.c: Likewise.
28856         * lib/getugroups.c: Likewise.
28857         * lib/mkdir.c: Likewise.
28858         * lib/mkfifo.c: Likewise.
28859         * lib/mkfifoat.c: Likewise.
28860         * lib/mknod.c: Likewise.
28861         * lib/mknodat.c: Likewise.
28862         * lib/readlink.c: Likewise.
28863         * lib/se-context.in.h: Likewise.
28864         * lib/se-selinux.in.h: Likewise.
28865         * lib/sockets.c: Likewise.
28866         * lib/symlink.c: Likewise.
28867         * lib/symlinkat.c: Likewise.
28868         * lib/unicodeio.c: Likewise.
28869         * lib/unistr.h: Likewise.
28870         * tests/test-areadlink.c: Likewise.
28871         * tests/test-areadlinkat.c: Likewise.
28872         * tests/test-filenamecat.c: Likewise.
28873         * tests/test-fseeko.c: Likewise.
28874         * tests/test-ftello.c: Likewise.
28875         * tests/test-getdate.c: Likewise.
28876         * tests/test-getgroups.c: Likewise.
28877         * tests/test-gethostname.c: Likewise.
28878         * tests/test-quotearg.c: Likewise.
28879         * tests/test-version-etc.c: Likewise.
28880         * tests/test-xalloc-die.c: Likewise.
28881         * tests/test-xfprintf-posix.c: Likewise.
28882         * tests/test-xprintf-posix.c: Likewise.
28883         * tests/test-xvasprintf.c: Likewise.
28884
28885         tests: avoid compiler warnings
28886         * tests/test-fcntl.c (main): Delete unused parameters.
28887         * tests/test-freopen-safer.c (main): Likewise.
28888         * tests/test-xalloc-die.c (main): Mark unused parameters.
28889         * tests/test-fseeko.c (main): Likewise.
28890         * tests/test-ftello.c (main): Likewise.
28891         * tests/test-nanosleep.c (main): Avoid declaration warning.
28892         * tests/test-sleep.c (main): Likewise.
28893         * tests/test-unsetenv.c (main): Silence warning about string
28894         literal.
28895         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28896
28897 2009-12-23  Bruno Haible  <bruno@clisp.org>
28898
28899         * tests/test-localename.c (test_locale_name): New function, extracted
28900         from main. Also test mixed situations.
28901         (test_locale_name_posix, test_locale_name_environ,
28902         test_locale_name_default): New functions.
28903         (main): Invoke them all.
28904         * modules/localename-tests (configure.ac): Test for newlocale.
28905
28906 2009-12-23  Bruno Haible  <bruno@clisp.org>
28907
28908         unistd: Ensure getcwd gets declared before being overridden.
28909         * lib/unistd.in.h: Conditionally include <io.h>.
28910
28911 2009-12-22  Bruno Haible  <bruno@clisp.org>
28912
28913         wchar: Diagnose broken combination of glibc and gcc versions and flags.
28914         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
28915         (gl_WCHAR_H): Invoke it.
28916         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
28917         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
28918         Reported by Karl Berry <karl@freefriends.org>.
28919
28920 2009-12-22  Eric Blake  <ebb9@byu.net>
28921
28922         math, unistd: avoid redundant includes
28923         * lib/math.in.h (isnan): No need to re-include <math.h>.
28924         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
28925
28926         getsubopt: work around cygwin bug
28927         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
28928         avoid conflicting with system getsubopt.
28929         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
28930         bug.
28931
28932         getopt: synchronize from glibc
28933         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
28934         parameter order.  Adjust all callers.
28935         (_getopt_internal_r, main): Adjust quoting in error messages.
28936         Drop considerations for outdated POSIX 1003.2 error message.
28937         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
28938         callers.
28939         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
28940
28941         test-getopt: test stderr behavior
28942         * modules/getopt-posix-tests (Depends-on): Add dup2.
28943         * tests/test-getopt.c (ASSERT): Avoid stderr.
28944         (main): Move stderr to a temporary file.
28945         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
28946         Instead, add parameter to inform caller if output occurred.
28947         (test_getopt): Adjust all existing tests to expect silence, and
28948         add new tests of leading ":".
28949         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28950         glibc shortcomings with leading "-:" or "+:" in optstring.
28951         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28952         Likewise.
28953         * doc/posix-functions/getopt.texi (getopt): Likewise.
28954
28955         test-getopt: enhance test
28956         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
28957         supports optind=0.
28958         * tests/test-getopt.c (OPTIND_MIN): Move...
28959         * tests/test-getopt.h (OPTIND_MIN): ...here.
28960         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
28961         Require that optind=0 works, since modern BSD supports it in
28962         addition to optreset, and since coreutils expects it.
28963         (test_getopt_long_only): New test.
28964         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28965         glibc shortcomings with 'W;', and enforcement of optind=0.
28966         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28967         Likewise.
28968
28969 2009-12-21  Bruno Haible  <bruno@clisp.org>
28970
28971         localename: Improvements for MacOS X and Cygwin.
28972         * lib/localename.h (gl_locale_name_environ): New declaration.
28973         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28974         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28975         (gl_locale_name_posix): Invoke it.
28976         (gl_locale_name_default): Add comments. Use Windows native API also on
28977         Cygwin.
28978
28979 2009-12-21  Bruno Haible  <bruno@clisp.org>
28980
28981         Update list of Win32 locale ids.
28982         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28983         (LANG_SAMI): Renamed from LANG_SAAMI.
28984         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28985         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28986         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28987         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28988         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28989         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28990         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28991         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28992         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28993         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28994         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28995         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28996         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28997         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28998         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28999         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
29000         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
29001         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
29002         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
29003         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
29004         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
29005         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
29006         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
29007         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
29008         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
29009         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
29010         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
29011         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
29012         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
29013         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
29014         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
29015         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
29016         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
29017         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
29018         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
29019         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
29020         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
29021         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
29022         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
29023         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
29024         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
29025         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
29026         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
29027         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
29028         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
29029         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
29030         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
29031         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
29032         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
29033         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
29034         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
29035         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
29036         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
29037         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
29038         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
29039         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
29040         Add more languages and countries for Sami, Sorbian. Add more countries
29041         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
29042         for Pashto. Change country for Syriac, Tswana.
29043
29044 2009-12-21  Eric Blake  <ebb9@byu.net>
29045
29046         test-utimens: avoid spurious failure
29047         * tests/test-chown.h (nap): Factor...
29048         * tests/nap.h: ...into new file.
29049         * tests/test-lchown.h (nap): Avoid duplication.
29050         * tests/test-utimens-common.h (nap): Use shared implementation,
29051         necessary on file systems with 1-second resolution.
29052         * modules/chown-tests (Files): Include new file.
29053         * modules/fdutimensat-tests (Files): Likewise.
29054         * modules/futimens-tests (Files): Likewise.
29055         * modules/lchown-tests (Files): Likewise.
29056         * modules/openat-tests (Files): Likewise.
29057         * modules/utimens-tests (Files): Likewise.
29058         * modules/utimensat-tests (Files): Likewise.
29059
29060 2009-12-19  Eric Blake  <ebb9@byu.net>
29061
29062         futimens, utimensat: work around Linux bug
29063         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
29064         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29065         * lib/utimensat.c (rpl_utimensat): Work around it.
29066         * lib/futimens.c (rpl_futimens): Adjust comment.
29067
29068         utimens: work around Linux ctime bug
29069         * lib/utimens.c (detect_ctime_bug): New helper function.
29070         (update_timespec): Differentiate between workaround needed for
29071         this bug vs. what is needed for systems that lack utimensat.
29072         (fdutimens, lutimens): Work around bug.
29073
29074         utimens: check for ctime update
29075         * tests/test-utimens-common.h (check_ctime): Define.
29076         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
29077         * tests/test-futimens.h (test_futimens): Likewise.
29078         * tests/test-lutimens.h (test_lutimens): Likewise.
29079         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29080         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29081
29082 2009-12-19  Bruno Haible  <bruno@clisp.org>
29083
29084         dprintf-posix: Check against memory leak fixed on 2009-12-15.
29085         * tests/test-dprintf-posix2.sh: New file.
29086         * tests/test-dprintf-posix2.c: New file.
29087         * modules/dprintf-posix-tests (Files): Add them.
29088         (configure.ac): Check for getrlimit and setrlimit.
29089         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29090
29091 2009-12-19  Bruno Haible  <bruno@clisp.org>
29092
29093         fprintf-posix: Check against memory leak fixed on 2009-12-15.
29094         * tests/test-fprintf-posix3.sh: New file.
29095         * tests/test-fprintf-posix3.c: New file.
29096         * modules/fprintf-posix-tests (Files): Add them.
29097         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29098
29099 2009-12-19  Eric Blake  <ebb9@byu.net>
29100
29101         dirfd: fix prototype
29102         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
29103         * lib/dirfd.c (dirfd): Likewise.
29104
29105         canonicalize: reduce memory usage
29106         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
29107         allocation to size.
29108         Reported by Solar Designer <solar@openwall.com>.
29109
29110 2009-12-19  Bruno Haible  <bruno@clisp.org>
29111
29112         New module attribute 'Applicability'.
29113         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
29114         * gnulib-tool: New option --extract-applicability.
29115         (func_usage): Document it.
29116         (sed_extract_prog): Recognize it.
29117         (func_get_applicability): New function.
29118         (func_import): Generalize handling of 'link-warning' module.
29119         * modules/link-warning (Applicability): New section.
29120         * modules/arg-nonnull (Applicability): New section.
29121         Repoted by Simon Josefsson <simon@josefsson.org>.
29122
29123 2009-12-19  Bruno Haible  <bruno@clisp.org>
29124
29125         fflush: tweak
29126         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
29127         * lib/fseeko.c (rpl_fseeko): Likewise.
29128
29129 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
29130
29131         * lib/gl_list.h: Fix typo in comment.
29132
29133 2009-12-16  Eric Blake  <ebb9@byu.net>
29134
29135         fcntl: use to simplify other modules
29136         * modules/cloexec (Depends-on): Add fcntl.
29137         * modules/fchdir (Depends-on): Likewise.
29138         * modules/fd-safer-flag (Depends-on): Likewise.
29139         * modules/unistd-safer (Depends-on): Likewise.
29140         * modules/dup3 (configure.ac): Set module indicator.
29141         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
29142         missing.
29143         * lib/fchdir.c (_gl_register_dup): Fix comment.
29144         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
29145         * lib/dup-safer.c (dup_safer): Likewise.
29146         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
29147         * lib/dup3.c (dup3): Likewise.
29148         * tests/test-fchdir.c (main): Enhance test.
29149         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
29150
29151         fcntl: port portions of fcntl to mingw
29152         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
29153         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
29154         replacement for mingw.
29155         * modules/fcntl (Description): Update.
29156         (Depends-on): Add dup2.
29157         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
29158         * modules/fcntl-h (Makefile.am): Substitute it.
29159         * lib/fcntl.in.h (fcntl): Update declaration.
29160         (F_DUPFD, F_GETFD): New macros, when needed.
29161         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29162         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
29163         * tests/test-fcntl.c (check_flags, main): Enhance test for items
29164         we now guarantee.
29165
29166         fcntl: work around cygwin bug in F_DUPFD
29167         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
29168         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
29169         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
29170         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
29171         * doc/posix-functions/fcntl.texi (fcntl): Document it.
29172
29173         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
29174         * modules/fcntl (Files): List new files.
29175         (configure.ac): Run a test.
29176         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
29177         * lib/fcntl.c (rpl_fcntl): Likewise.
29178         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
29179         (gl_FCNTL_H): Always replace fcntl.h.
29180         * modules/fcntl-h (Makefile.am): Substitute witnesses.
29181         * lib/fcntl.in.h (fcntl): Declare replacement.
29182         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
29183         needed, plus a witness.
29184         * doc/posix-functions/fcntl.texi (fcntl): Document this.
29185         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29186         * tests/test-fcntl.c: New file.
29187         * modules/fcntl-tests: Likewise.
29188
29189         binary-io: avoid potential compilation warning
29190         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
29191         directives.
29192
29193         fflush: avoid compilation error on NetBSD
29194         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
29195         between off_t and fpos_t, since the latter is sometimes a struct.
29196         * lib/fseeko.c (rpl_fseeko): Likewise.
29197         Reported by Alexander Nasonov <alnsn@yandex.ru>.
29198
29199 2009-12-15  Eric Blake  <ebb9@byu.net>
29200
29201         fcntl-h, stdio, sys_ioctl: fix declarations
29202         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
29203         function must not take arguments.
29204         * lib/sys_ioctl.in.h (ioctl): Likewise.
29205         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
29206         (open): Add a link warning.
29207
29208 2009-12-15  Jim Meyering  <meyering@redhat.com>
29209
29210         areadlink, areadlink-with-size: relax license to LGPLv2+
29211         * modules/areadlink (License): Relax to LGPLv2+.
29212         * modules/areadlink-with-size (License): Likewise.
29213
29214 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
29215             Bruno Haible  <bruno@clisp.org>
29216
29217         *printf: Fix memory leak.
29218         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
29219         * lib/vfprintf.c (vfprintf): Likewise.
29220         * lib/dprintf.c (dprintf): Likewise.
29221         * lib/vdprintf.c (vdprintf): Likewise.
29222
29223 2009-12-14  Eric Blake  <ebb9@byu.net>
29224
29225         accept4: adjust module dependencies
29226         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
29227
29228         utimens: one more try at avoiding compiler warning
29229         * lib/utimens.c (lutimens): Lower scope of result.
29230
29231 2009-12-13  Bruno Haible  <bruno@clisp.org>
29232
29233         Move the malloc checking from module 'list' to new module 'xlist'.
29234         * modules/xlist: New file.
29235         * lib/gl_xlist.h: New file.
29236         * lib/gl_xlist.c: New file.
29237         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
29238         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
29239         gl_list_add_last, gl_list_add_before, gl_list_add_after,
29240         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
29241         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
29242         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
29243         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
29244         gl_sortedlist_nx_add): New declarations.
29245         (struct gl_list_implementation): Rename and change methods accordingly.
29246         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
29247         (gl_list_nx_create): Renamed from gl_list_create.
29248         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29249         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29250         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29251         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29252         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29253         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29254         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29255         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29256         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
29257         gl_list_create_empty.
29258         (gl_list_nx_create): Renamed from gl_list_create.
29259         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29260         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29261         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29262         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29263         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29264         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29265         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29266         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29267         * lib/gl_array_list.c: Don't include xalloc.h.
29268         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
29269         NULL upon out-of-memory.
29270         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
29271         out-of-memory.
29272         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
29273         Change return type to 'int'.
29274         (gl_array_nx_set_at): Renamed from gl_array_set_at.
29275         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
29276         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
29277         upon out-of-memory.
29278         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
29279         upon out-of-memory.
29280         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
29281         upon out-of-memory.
29282         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
29283         upon out-of-memory.
29284         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
29285         out-of-memory.
29286         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
29287         Update.
29288         (gl_array_list_implementation): Update.
29289         * lib/gl_carray_list.c: Don't include xalloc.h.
29290         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
29291         Return NULL upon out-of-memory.
29292         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
29293         out-of-memory.
29294         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
29295         Change return type to 'int'.
29296         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
29297         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
29298         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
29299         upon out-of-memory.
29300         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
29301         upon out-of-memory.
29302         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
29303         out-of-memory.
29304         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
29305         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
29306         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
29307         Update.
29308         (gl_carray_list_implementation): Update.
29309         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
29310         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
29311         gl_linked_create_empty. Return NULL upon out-of-memory.
29312         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
29313         out-of-memory.
29314         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
29315         Change return type to 'int'. Return -1 upon out-of-memory.
29316         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
29317         out-of-memory.
29318         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
29319         upon out-of-memory.
29320         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
29321         upon out-of-memory.
29322         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
29323         NULL upon out-of-memory.
29324         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
29325         upon out-of-memory.
29326         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
29327         out-of-memory.
29328         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
29329         Update.
29330         * lib/gl_linked_list.c: Don't include xalloc.h.
29331         (gl_linked_list_implementation): Update.
29332         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
29333         (add_to_bucket): Change return type to 'int'.
29334         (gl_linkedhash_list_implementation): Update.
29335         * lib/gl_anytree_list1.h (free_subtree): New function.
29336         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
29337         gl_tree_create_empty. Return NULL upon out-of-memory.
29338         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
29339         Change return type to 'int'. Return -1 upon out-of-memory.
29340         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
29341         out-of-memory.
29342         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
29343         (gl_tree_remove_node): New function, moved here from
29344         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
29345         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
29346         Update.
29347         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
29348         malloc, not xmalloc. Return NULL upon out-of-memory.
29349         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
29350         out-of-memory.
29351         (gl_tree_remove_node_from_tree): New function, extracted from
29352         gl_tree_remove_node.
29353         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
29354         upon out-of-memory.
29355         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
29356         out-of-memory.
29357         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
29358         upon out-of-memory.
29359         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
29360         upon out-of-memory.
29361         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
29362         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
29363         not xmalloc. Return NULL upon out-of-memory.
29364         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
29365         out-of-memory.
29366         (gl_tree_remove_node_from_tree): New function, extracted from
29367         gl_tree_remove_node.
29368         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
29369         upon out-of-memory.
29370         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
29371         out-of-memory.
29372         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
29373         upon out-of-memory.
29374         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
29375         upon out-of-memory.
29376         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
29377         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
29378         gl_anytree_list1.h before gl_anyavltree_list2.h.
29379         (gl_avltree_list_implementation): Update.
29380         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
29381         gl_anytree_list1.h before gl_anyavltree_list2.h.
29382         (gl_rbtree_list_implementation): Update.
29383         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
29384         Change return type to 'int'. Return -1 upon out-of-memory. Use
29385         __builtin_expect.
29386         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
29387         (gl_avltreehash_list_implementation): Update.
29388         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
29389         (gl_rbtreehash_list_implementation): Update.
29390         * modules/array-list (Depends-on): Remove xalloc.
29391         * modules/carray-list (Depends-on): Likewise.
29392         * modules/linked-list (Depends-on): Likewise.
29393         * modules/linkedhash-list (Depends-on): Likewise.
29394         * modules/avltree-list (Depends-on): Likewise.
29395         * modules/rbtree-list (Depends-on): Likewise.
29396         * modules/avltreehash-list (Depends-on): Likewise.
29397         * modules/rbtreehash-list (Depends-on): Likewise.
29398
29399         * modules/xsublist: New file.
29400         * lib/gl_xsublist.h: New file.
29401         * lib/gl_xsublist.c: New file.
29402         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
29403         (gl_sublist_nx_create): New declaration.
29404         * lib/gl_sublist.c: Don't include xalloc.h.
29405         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
29406         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
29407         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
29408         Change return type to 'int'. Return -1 upon out-of-memory.
29409         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
29410         upon out-of-memory.
29411         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
29412         NULL upon out-of-memory.
29413         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
29414         upon out-of-memory.
29415         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
29416         NULL upon out-of-memory.
29417         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
29418         NULL upon out-of-memory.
29419         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
29420         upon out-of-memory.
29421         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
29422         (gl_sublist_list_implementation): Update.
29423         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
29424         upon out-of-memory.
29425         * modules/sublist (Depends-on): Remove xalloc.
29426
29427         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
29428         * tests/test-carray_list.c: Likewise.
29429         * tests/test-linked_list.c: Likewise.
29430         * tests/test-linkedhash_list.c: Likewise.
29431         * tests/test-avltree_list.c: Likewise.
29432         * tests/test-rbtree_list.c: Likewise.
29433         * tests/test-avltreehash_list.c: Likewise.
29434         * tests/test-rbtreehash_list.c: Likewise.
29435         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
29436         * modules/carray-list-tests (Makefile.am): Likewise.
29437         * modules/linked-list-tests (Makefile.am): Likewise.
29438         * modules/linkedhash-list-tests (Makefile.am): Likewise.
29439         * modules/avltree-list-tests (Makefile.am): Likewise.
29440         * modules/rbtree-list-tests (Makefile.am): Likewise.
29441         * modules/avltreehash-list-tests (Makefile.am): Likewise.
29442         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
29443
29444         * NEWS: Mention the changes.
29445
29446         * lib/clean-temp.c: Include gl_xlist.h.
29447         * modules/clean-temp (Depends-on): Add xlist.
29448
29449         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
29450         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
29451
29452         * tests/test-array_oset.c: Include gl_xlist.h.
29453         * modules/array-oset-tests (Depends-on): Add xlist.
29454
29455         Reported by José E. Marchesi <jemarch@gnu.org>.
29456
29457 2009-12-13  Bruno Haible  <bruno@clisp.org>
29458
29459         Move the malloc checking from module 'oset' to new module 'xoset'.
29460         * modules/xoset: New file.
29461         * lib/gl_xoset.h: New file.
29462         * lib/gl_xoset.c: New file.
29463         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
29464         declarations.
29465         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
29466         (struct gl_oset_implementation): Rename and change methods accordingly.
29467         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
29468         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29469         'int'. Mark as __warn_unused_result__.
29470         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
29471         gl_oset_create_empty.
29472         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29473         'int'.
29474         * lib/gl_array_oset.c: Don't include xalloc.h.
29475         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
29476         malloc, not xmalloc.
29477         (grow): Change return type to 'int'. Don't call xalloc_die.
29478         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
29479         to 'int'.
29480         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
29481         'int'.
29482         (gl_array_oset_implementation): Update.
29483         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
29484         gl_tree_create_empty.
29485         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
29486         'int'.
29487         * lib/gl_avltree_oset.c: Don't include xalloc.h.
29488         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29489         xmalloc.
29490         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29491         not xmalloc.
29492         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29493         xmalloc.
29494         (gl_avltree_oset_implementation): Update.
29495         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
29496         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29497         xmalloc.
29498         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29499         not xmalloc.
29500         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29501         xmalloc.
29502         (gl_rbtree_oset_implementation): Update.
29503         * modules/array-oset (Depends-on): Remove xalloc.
29504         * modules/avltree-oset (Depends-on): Likewise.
29505         * modules/rbtree-oset (Depends-on): Likewise.
29506         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
29507         * tests/test-avltree_oset.c: Likewise.
29508         * tests/test-rbtree_oset.c: Likewise.
29509         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
29510         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
29511         * modules/rbtree-oset-tests (Makefile.am): Likewise.
29512         * NEWS: Mention the change.
29513
29514 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
29515
29516         maint.mk: allow a project to override release-prep commands
29517         * top/maint.mk (alpha, beta, stable): Move release-preparatory
29518         commands into a new rule.
29519         (release-prep): New rule.
29520         (release-prep-hook): New overridable variable.
29521
29522 2009-12-13  Bruno Haible  <bruno@clisp.org>
29523
29524         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
29525
29526 2009-12-13  Jim Meyering  <meyering@redhat.com>
29527
29528         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
29529         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
29530
29531 2009-12-12  Bruno Haible  <bruno@clisp.org>
29532
29533         duplocale: Tweak.
29534         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
29535
29536 2009-12-12  Karl Berry  <karl@gnu.org>
29537
29538         * config/srclist.txt (strtoll.c): tab changes, no more sync.
29539
29540 2009-12-12  Bruno Haible  <bruno@clisp.org>
29541
29542         * m4/po.m4: Undo incorrect untabification.
29543
29544 2009-12-12  Bruno Haible  <bruno@clisp.org>
29545
29546         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
29547         * modules/c-strtod (Depends-on): Add locale.
29548         * modules/c-strtold (Depends-on): Likewise.
29549
29550 2009-12-12  Bruno Haible  <bruno@clisp.org>
29551
29552         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
29553
29554 2009-12-11  Eric Blake  <ebb9@byu.net>
29555
29556         setenv: relax requirement in light of POSIX ruling
29557         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
29558         not NULL.
29559         * tests/test-setenv.c (main): Relax test.
29560         * tests/test-unsetenv.c (main): Likewise.
29561         * doc/posix-functions/setenv.texi (setenv): Document this.
29562         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29563
29564 2009-12-11  Bruno Haible  <bruno@clisp.org>
29565
29566         New module 'fd-safer-flag'.
29567         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
29568         * lib/dup-safer.c (dup_safer_flag): Remove function.
29569         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
29570         * lib/fd-safer.c (fd_safer_flag): Remove function.
29571         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
29572         * modules/cloexec (configure.ac): Drop indicator macro.
29573         * modules/fd-safer-flag: New file.
29574         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
29575         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
29576         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
29577
29578 2009-12-11  Bruno Haible  <bruno@clisp.org>
29579
29580         Tests for module 'nl_langinfo'.
29581         * modules/nl_langinfo-tests: New file.
29582         * tests/test-nl_langinfo.sh: New file.
29583         * tests/test-nl_langinfo.c: New file.
29584
29585         New module 'nl_langinfo'.
29586         * lib/nl_langinfo.c: New file.
29587         * m4/nl_langinfo.m4: New file.
29588         * modules/nl_langinfo: New file.
29589         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
29590
29591 2009-12-11  Bruno Haible  <bruno@clisp.org>
29592
29593         Tests for module 'langinfo'.
29594         * modules/langinfo-tests: New file.
29595         * tests/test-langinfo.c: New file.
29596
29597         New module 'langinfo'.
29598         * lib/langinfo.in.h: New file.
29599         * m4/langinfo_h.m4: New file.
29600         * modules/langinfo: New file.
29601         * doc/posix-headers/langinfo.texi: Mention the new module.
29602
29603 2009-12-11  Bruno Haible  <bruno@clisp.org>
29604
29605         * lib/config.charset: Untabify.
29606
29607 2009-12-11  Bruno Haible  <bruno@clisp.org>
29608
29609         * modules/unistd-safer (configure.ac): Drop indicator macro.
29610
29611 2009-12-11  Bruno Haible  <bruno@clisp.org>
29612
29613         Move pipe2-safer code to its own file.
29614         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
29615         * lib/pipe-safer.c (pipe2_safer): Remove function.
29616         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
29617         (Makefile.am): Add it to lib_SOURCES.
29618
29619 2009-12-10  Bruno Haible  <bruno@clisp.org>
29620
29621         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
29622
29623 2009-12-10  Bruno Haible  <bruno@clisp.org>
29624
29625         Declare which arguments expect non-NULL values, for GCC and clang.
29626         * build-aux/arg-nonnull.h: New file.
29627         * modules/arg-nonnull: New file.
29628         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
29629         (inet_ntop, inet_pton): Use it.
29630         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
29631         (closedir, dirfd, opendir, scandir, alphasort): Use it.
29632         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
29633         (open, openat): Use it.
29634         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
29635         (fnmatch): Use it.
29636         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
29637         (getopt, getopt_long, getopt_long_only): Use it.
29638         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
29639         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
29640         Use it.
29641         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
29642         (iconv_open): Use it.
29643         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
29644         (strtoimax, strtoumax): Use it.
29645         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
29646         (duplocale): Use it.
29647         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
29648         (frexp, frexpl): Use it.
29649         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
29650         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
29651         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
29652         (tsearch, tfind, tdelete, twalk): Use it.
29653         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
29654         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29655         sigpending): Use it.
29656         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
29657         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29658         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29659         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29660         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29661         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29662         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29663         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29664         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29665         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29666         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29667         Use it.
29668         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
29669         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
29670         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
29671         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
29672         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
29673         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
29674         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
29675         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
29676         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
29677         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
29678         strtoull, unsetenv): Use it.
29679         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
29680         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29681         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29682         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
29683         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
29684         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
29685         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
29686         (strcasecmp, strncasecmp): Use it.
29687         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
29688         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
29689         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
29690         rpl_setsockopt): Use it.
29691         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
29692         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
29693         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
29694         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
29695         (gettimeofday): Use it.
29696         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
29697         (times): Use it.
29698         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
29699         (uname): Use it.
29700         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
29701         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
29702         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
29703         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
29704         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
29705         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
29706         unlinkat, write): Use it.
29707         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
29708         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
29709         * lib/argv-iter.h: Include arg-nonnull.h.
29710         (_ATTRIBUTE_NONNULL_): Remove macro.
29711         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
29712         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
29713         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
29714         optimization.
29715         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
29716         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
29717         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
29718         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
29719         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
29720         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
29721         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
29722         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
29723         * modules/arpa_inet (Depends-on): Add arg-nonnull.
29724         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
29725         * modules/dirent (Depends-on): Add arg-nonnull.
29726         (Makefile.am): Insert arg-nonnull.h into dirent.h.
29727         * modules/fcntl-h (Depends-on): Add arg-nonnull.
29728         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
29729         * modules/fnmatch (Depends-on): Add arg-nonnull.
29730         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
29731         * modules/getopt-posix (Depends-on): Add arg-nonnull.
29732         (Makefile.am): Insert arg-nonnull.h into getopt.h.
29733         * modules/glob (Depends-on): Add arg-nonnull.
29734         (Makefile.am): Insert arg-nonnull.h into glob.h.
29735         * modules/iconv_open (Depends-on): Add arg-nonnull.
29736         (Makefile.am): Insert arg-nonnull.h into iconv.h.
29737         * modules/inttypes (Depends-on): Add arg-nonnull.
29738         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
29739         * modules/locale (Depends-on): Add arg-nonnull.
29740         (Makefile.am): Insert arg-nonnull.h into locale.h.
29741         * modules/math (Depends-on): Add arg-nonnull.
29742         (Makefile.am): Insert arg-nonnull.h into math.h.
29743         * modules/netdb (Depends-on): Add arg-nonnull.
29744         (Makefile.am): Insert arg-nonnull.h into netdb.h.
29745         * modules/search (Depends-on): Add arg-nonnull.
29746         (Makefile.am): Insert arg-nonnull.h into search.h.
29747         * modules/signal (Depends-on): Add arg-nonnull.
29748         (Makefile.am): Insert arg-nonnull.h into signal.h.
29749         * modules/spawn (Depends-on): Add arg-nonnull.
29750         (Makefile.am): Insert arg-nonnull.h into spawn.h.
29751         * modules/stdio (Depends-on): Add arg-nonnull.
29752         (Makefile.am): Insert arg-nonnull.h into stdio.h.
29753         * modules/stdlib (Depends-on): Add arg-nonnull.
29754         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
29755         * modules/string (Depends-on): Add arg-nonnull.
29756         (Makefile.am): Insert arg-nonnull.h into string.h.
29757         * modules/strings (Depends-on): Add arg-nonnull.
29758         (Makefile.am): Insert arg-nonnull.h into strings.h.
29759         * modules/sys_socket (Depends-on): Add arg-nonnull.
29760         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
29761         * modules/sys_stat (Depends-on): Add arg-nonnull.
29762         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
29763         * modules/sys_time (Depends-on): Add arg-nonnull.
29764         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
29765         * modules/sys_times (Depends-on): Add arg-nonnull.
29766         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
29767         * modules/sys_utsname (Depends-on): Add arg-nonnull.
29768         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
29769         * modules/time (Depends-on): Add arg-nonnull.
29770         (Makefile.am): Insert arg-nonnull.h into time.h.
29771         * modules/unistd (Depends-on): Add arg-nonnull.
29772         (Makefile.am): Insert arg-nonnull.h into unistd.h.
29773         * modules/wchar (Depends-on): Add arg-nonnull.
29774         (Makefile.am): Insert arg-nonnull.h into wchar.h.
29775         * modules/argv-iter (Depends-on): Add arg-nonnull.
29776         * tests/test-canonicalize.c (null_ptr): New function.
29777         (main): Use it.
29778         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
29779         (main): Use it.
29780         * tests/test-memmem.c (null_ptr): New function.
29781         (main): Use it.
29782         Reported by Jim Meyering.
29783
29784 2009-12-10  Bruno Haible  <bruno@clisp.org>
29785
29786         Use spaces for indentation, not tabs.
29787         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29788         * m4/*.m4: Untabify.
29789         * build-aux/*.h: Untabify.
29790         * tests/**/*.[hc]: Untabify.
29791         * README: New section "Indent with spaces, not TABs", based on
29792         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
29793         * NEWS: Mention the change.
29794
29795 2009-12-10  Bruno Haible  <bruno@clisp.org>
29796
29797         pty test: Fix link error.
29798         * modules/pty-tests (Makefile.am): Add the default LDADD value to
29799         test_pty_LDADD.
29800
29801 2009-12-07  Simon Josefsson  <simon@josefsson.org>
29802
29803         * modules/pty: New file.
29804         * modules/pty-tests: New file.
29805         * m4/pty.m4: New file.
29806         * tests/test-pty.c: New file.
29807         * doc/glibc-headers/pty.texi: Modified.
29808         * doc/glibc-functions/forkpty.texi: Modified.
29809         * doc/glibc-functions/openpty.texi: Modified.
29810
29811 2009-12-10  Bruno Haible  <bruno@clisp.org>
29812
29813         Avoid syntax error in C++ mode.
29814         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
29815
29816 2009-12-10  Bruno Haible  <bruno@clisp.org>
29817
29818         Use sed with option -e.
29819         * gnulib-tool (func_version, func_emit_copyright_notice,
29820         func_emit_initmacro_end, func_import, func_create_testdir): Pass
29821         option -e to sed.
29822         * modules/link-warning (Makefile.am): Likewise.
29823
29824 2009-12-10  Jim Meyering  <meyering@redhat.com>
29825
29826         mgetgroups: do not write bytes beyond end of malloc'd buffer
29827         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
29828         username, we call getgroups with a one-element-shorter buffer,
29829         but still told it the length was original, max_n_groups.
29830
29831 2009-12-09  Eric Blake  <ebb9@byu.net>
29832
29833         cloexec: relax license
29834         * modules/cloexec (Maintainer): Add myself.
29835         (License): Use LGPL, not GPL.
29836
29837         link-warning: optimize generation
29838         * modules/link-warning (Makefile.am): Reduce process usage.
29839
29840 2009-12-09  Bruno Haible  <bruno@clisp.org>
29841
29842         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
29843         workaround was added on 2009-11-17.
29844
29845 2009-12-09  Jim Meyering  <meyering@redhat.com>
29846             Bruno Haible  <bruno@clisp.org>
29847
29848         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
29849         * modules/link-warning (Makefile.am): Make the comment-removing sed
29850         command more robust in the face of bootstrap-prepended comment lines.
29851
29852 2009-12-09  Bruno Haible  <bruno@clisp.org>
29853
29854         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
29855         most one group.
29856
29857 2009-12-09  Simon Josefsson <simon@josefsson.org>
29858             Bruno Haible  <bruno@clisp.org>
29859
29860         * build-aux/link-warning.h: Add copyright notice.
29861         * modules/link-warning (Makefile.am): Generate link-warning.h from
29862         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
29863         * NEWS: Mention change in link-warning module.
29864         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
29865         * modules/dirent (Makefile.am): Add dependency to dirent.h.
29866         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
29867         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
29868         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
29869         * modules/math (Makefile.am): Add dependency to math.h.
29870         * modules/search (Makefile.am): Add dependency to search.h.
29871         * modules/signal (Makefile.am): Add dependency to signal.h.
29872         * modules/spawn (Makefile.am): Add dependency to spawn.h.
29873         * modules/stdio (Makefile.am): Add dependency to stdio.h.
29874         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
29875         * modules/string (Makefile.am): Add dependency to string.h.
29876         * modules/strings (Makefile.am): Add dependency to strings.h.
29877         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
29878         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
29879         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
29880         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
29881         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
29882         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
29883         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
29884         * modules/unistd (Makefile.am): Add dependency to unistd.h.
29885         * modules/wchar (Makefile.am): Add dependency to wchar.h.
29886
29887 2009-12-09  Bruno Haible  <bruno@clisp.org>
29888
29889         fchdir: Optimize away rpl_fstat when possible.
29890         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
29891         REPLACE_OPEN_DIRECTORY.
29892         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
29893
29894 2009-12-09  Bruno Haible  <bruno@clisp.org>
29895
29896         * lib/fchdir.c: Update comment.
29897
29898 2009-12-09  Bruno Haible  <bruno@clisp.org>
29899
29900         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
29901
29902 2009-12-08  Eric Blake  <ebb9@byu.net>
29903
29904         fchdir: avoid memory leak on re-registration.
29905         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
29906
29907 2009-12-08  Jim Meyering  <meyering@redhat.com>
29908
29909         init.sh: avoid Solaris 10 /bin/sh portability problem
29910         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
29911         sourced script:
29912           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
29913           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
29914           bar
29915         tests/init.sh relied on that, accepting a --set-path=DIR argument,
29916         and two tests used that idiom.
29917         * tests/init.sh: Update suggested usage comments.
29918         (path_prepend_): New function, to be used in place
29919         of the --src-path=DIR option.
29920         (setup_): Move PATH-prepending code into path_prepend_.
29921         * tests/test-pread.sh: Adapt to new usage.
29922         * tests/test-xalloc-die.sh: Likewise.
29923
29924 2009-12-08  Simon Josefsson  <simon@josefsson.org>
29925
29926         * doc/gnulib.texi (Glibc pty.h): Add.
29927         * doc/glibc-functions/forkpty.texi: Add.
29928         * doc/glibc-functions/openpty.texi: Add.
29929         Suggested by Bruno Haible.
29930
29931 2009-12-08  Eric Blake  <ebb9@byu.net>
29932
29933         fchdir: fix logic bugs
29934         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
29935         * tests/test-fchdir.c (main): Enhance test.
29936         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
29937         is in use.
29938
29939         dup2: fix logic bugs
29940         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
29941         REPLACE_DUP2 to decide when rpl_dup2 is needed.
29942         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
29943         exists.
29944         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
29945
29946 2009-12-07  Eric Blake  <ebb9@byu.net>
29947
29948         unlink: fix m4 detection
29949         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
29950
29951         unistd-safer: add unit test
29952         * modules/unistd-safer-tests: New file.
29953         * tests/test-dup-safer.c: Likewise.
29954         * tests/test-cloexec.c (setmode): Avoid compiler warning.
29955         * tests/test-dup2.c (setmode): Likewise.
29956         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
29957
29958         cloexec: preserve text vs. binary across dup_cloexec
29959         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
29960         mode.
29961         * modules/dup2-tests (Depends-on): Add binary-io.
29962         * modules/cloexec-tests (Depends-on): Likewise.
29963         * tests/test-dup2.c (setmode, is_mode): New helpers.
29964         (main): Add tests that translation mode is preserved.
29965         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
29966         Reported by Bruno Haible.
29967
29968         mgetgroups: reduce duplicate listings
29969         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
29970         resulting array.
29971         * tests/test-chown.h (test_chown): Simplify client.
29972         * tests/test-lchown.h (test_lchown): Likewise.
29973
29974 2009-12-06  Bruno Haible  <bruno@clisp.org>
29975
29976         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29977         value.
29978
29979 2009-12-06  Bruno Haible  <bruno@clisp.org>
29980
29981         * lib/progname.c: Include stdio.h, stdlib.h.
29982         (set_program_name): Reject a NULL argument.
29983
29984 2009-12-05  Eric Blake  <ebb9@byu.net>
29985
29986         pipe2-safer: new module
29987         * modules/pipe2-safer: New file.
29988         * lib/unistd-safer.h (pipe2_safer): New prototype.
29989         * lib/unistd--.h (pipe2): New wrapper.
29990         * lib/pipe-safer.c (pipe2_safer): New function.
29991         * modules/pipe (Depends-on): Add pipe2-safer.
29992         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29993
29994         stdlib-safer: preserve cloexec flag for mkostemp[s]
29995         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29996         fd_safer_flag.
29997
29998         unistd-safer: allow preservation of cloexec status via flag
29999         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
30000         prototypes.
30001         * lib/dup-safer.c (dup_safer_flag): New function.
30002         * lib/fd-safer.c (fd_safer_flag): Likewise.
30003         * modules/cloexec (configure.ac): Set witness.
30004
30005         test-dup2: enhance test
30006         * modules/dup2-tests (Depends-on): Add cloexec.
30007         * tests/test-dup2.c (main): Enhance test.
30008
30009         cloexec: add dup_cloexec
30010         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
30011         header and comments.
30012         * lib/cloexec.c (set_cloexec_flag): Add comments.
30013         (dup_cloexec): New function, with mingw implementation borrowed
30014         from...
30015         * lib/w32spawn.h (dup_noinherit): ...here.
30016         * modules/execute (Depends-on): Add cloexec.
30017         * modules/pipe (Depends-on): Likewise.
30018         * modules/cloexec (Depends-on): Add dup2.
30019         * modules/cloexec-tests (Files): New file.
30020         * tests/test-cloexec.c: Likewise.
30021
30022         test-xalloc-die: fix test for mingw
30023         * modules/xalloc-die-tests (Files): Add tests/init.sh.
30024         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
30025         directory and .exe suffix off argv[0] output.
30026
30027         test-fseeko: fix test for mingw
30028         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
30029         than undefining fseek, so test will pass on mingw.
30030
30031 2009-12-05  Bruno Haible  <bruno@clisp.org>
30032
30033         * lib/progname.h (set_program_name): Clarify specification.
30034         * lib/progname.c (set_program_name): Likewise.
30035         Reported by Jim Meyering.
30036
30037 2009-12-05  Jim Meyering  <meyering@redhat.com>
30038
30039         maint.mk: backslash-escape parens in default regexp
30040         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
30041         backslash-escape the literal parentheses.
30042
30043         maint.mk: news-date-check: use grep -E
30044         * top/maint.mk (today): Define a Make variable, not a...
30045         (news-date-check): ...shell variable.
30046         (news-date-regexp): Use the Make variable.
30047         Use grep's -E option.  Change the failing diagnostic to mention
30048         the variable, $(news-date-regexp).
30049
30050 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
30051
30052         maintainer-makefile: allow customization of NEWS entry format
30053         * top/maint.mk (news-date-regexp): New overridable variable.
30054         (news-date-check): Use it.
30055
30056 2009-12-04  Eric Blake  <ebb9@byu.net>
30057
30058         mgetgroups: add xgetgroups, and avoid ENOSYS failures
30059         * lib/mgetgroups.h (xgetgroups): New prototype.
30060         * lib/mgetgroups.c (xgetgroups): New wrapper.
30061         (mgetgroups): Handle ENOSYS.
30062         * modules/mgetgroups (Depends-on): Add realloc.
30063         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
30064
30065         mgetgroups: avoid argument promotion issues with -1
30066         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
30067         for invalid gid_t.
30068         * tests/test-chown.h (getegid, test_chown): Likewise.
30069         * tests/test-lchown.h (getegid, test_lchown): Likewise.
30070
30071 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
30072
30073         exclude: Fix header file problems.
30074         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
30075
30076 2009-12-01  Jim Meyering  <meyering@redhat.com>
30077
30078         fts: fts_open: do not let an empty string cause immediate failure
30079         This is required in support of GNU rm, for which the command
30080         "rm A '' B" must process and remove both A and B, in spite of
30081         the empty string argument.
30082         * lib/fts.c (fts_open): Do not let the presence of an empty string
30083         cause fts_open to fail immediately.  Most fts-using tools must be
30084         able to process all arguments, in order, and can be expected to
30085         diagnose such arguments themselves.
30086
30087 2009-11-30  Eric Blake  <ebb9@byu.net>
30088
30089         utimens: fix compilation error
30090         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
30091         Declare variable at right scope.
30092
30093 2009-11-29  Jim Meyering  <meyering@redhat.com>
30094
30095         bootstrap: handle perl-5.11's changed --version output
30096         * build-aux/bootstrap (get_version): Handle perl separately,
30097         since perl-5.11's --version output is different.
30098
30099 2009-11-28  Jim Meyering  <meyering@redhat.com>
30100
30101         userspec: depend on the inttostr module, too
30102         * modules/userspec (Depends-on): Add inttostr.
30103
30104         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
30105         * lib/userspec.c (parse_with_separator): Do not accept a user ID
30106         number of MAXUID when it evaluates to (uid_t) -1.
30107         Likewise for group ID.  Reported by Matt McCutchen in
30108         <http://savannah.gnu.org/bugs/?28113>
30109
30110         userspec: reformat to use spaces, not TABs
30111         * lib/userspec.c: Expand TABs to spaces.
30112         Add Emacs' "indent-tabs-mode: nil" hint.
30113
30114 2009-11-27  Eric Blake  <ebb9@byu.net>
30115
30116         getopt-gnu: flush out another BSD bug
30117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
30118         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
30119         flush out BSD bug.
30120         * tests/test-getopt.h (test_getopt): End lists with NULL.
30121         * tests/test-getopt_long.h (test_getopt_long): Likewise.
30122         (test_getopt_long_posix): Enhance test.
30123         * modules/getopt-posix-tests (Depends-on): Add stdbool.
30124         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
30125         getopt-gnu.
30126         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30127         Likewise.
30128
30129 2009-11-27  Simon Josefsson  <simon@josefsson.org>
30130
30131         * modules/idpriv-droptemp-tests (Notice): Fix text.
30132
30133 2009-11-27  Jim Meyering  <meyering@redhat.com>
30134
30135         test-xalloc-die: avoid spurious failure due to libtool argv difference
30136         In a libtool-enabled project, this test would fail due to a difference
30137         in the emitted program name, e.g.,
30138         -test-xalloc-die: memory exhausted
30139         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
30140         Use program to avoid that.
30141         * modules/xalloc-die-tests (Depends-on): Add progname.
30142         * tests/test-xalloc-die.c: Include progname.h".
30143         (program_name): Remove decl.
30144         (main): Call set_program_name.
30145         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
30146
30147 2009-11-26  Richard Jones  <rjones@redhat.com>
30148
30149         w32sock: leave win32 error in place.
30150         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
30151
30152 2009-11-26  Eric Blake  <ebb9@byu.net>
30153
30154         init.sh: suggest to use skip_ and fail_ functions in comments
30155         * tests/init.sh: Add a sentence.
30156
30157 2009-11-25  Bruno Haible  <bruno@clisp.org>
30158
30159         init.sh: add documentation in comments
30160         * tests/init.sh: Add some developer and user documentation.
30161
30162 2009-11-26  Jim Meyering  <meyering@redhat.com>
30163
30164         init.sh: accommodate even those who specify bogus srcdir manually
30165         * tests/init.sh: Normally, srcdir is guaranteed by automake and
30166         configure-time tests to be sanitized, so that there is no need to
30167         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
30168         (with no double quotes) suffices.  However, since tests may be
30169         invoked manually, and since you may explicitly set srcdir to the
30170         name of a directory containing spaces, do quote its uses here.
30171         * tests/test-pread.sh: Likewise.
30172         Suggested by Bruno Haible.
30173
30174         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
30175         * tests/test-pread.sh: Write no data into the pipe, because
30176         test-pread actually reads none.  This avoids a diagnostic,
30177         "bash: echo: write error: Broken pipe", that arises in the unusual
30178         event something is ignoring SIGPIPE, and might be interpreted
30179         as some sort of failure.  Reported by Bruno Haible.
30180
30181 2009-11-25  Jim Meyering  <meyering@redhat.com>
30182
30183         test-pread: cover failure with ESPIPE and EINVAL
30184         * tests/test-pread.c (main): Test for failure, too.
30185         * tests/test-pread.sh: Invoke with stdin on a pipe.
30186         Suggested by Eric Blake.
30187
30188         pread: improvement and fix
30189         * modules/pread (Depends-on): Depend on lseek, for portability to
30190         e.g., mingw.  Suggested by Eric Blake.
30191         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
30192
30193         unistd.in.h: correct declaration of pread
30194         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
30195         Reported by Richard W.M. Jones.
30196
30197         test-pread.sh: distribute the test script
30198         * modules/pread-tests (Files): Include test-pread.sh.
30199
30200         test-pread.sh: clean up
30201         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
30202         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
30203         That is unnecessary, since it's always ".".
30204         Suggestion from Eric Blake.
30205
30206         test-pread.sh: make executable
30207         * tests/test-pread.sh: Set executable bit.
30208         Reported by Eric Blake.
30209
30210         correct typo in test-pread.sh
30211         * tests/test-pread.sh: Add #! line.
30212
30213         test pread
30214         * tests/test-pread.c: New file.
30215         * tests/test-pread.sh: Likewise.
30216         * modules/pread-tests: Likewise.
30217
30218         pread: new module
30219         * modules/pread: New file.
30220         * lib/unistd.in.h (pread): Define/declare.
30221         * lib/pread.c (pread): New file.
30222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
30223         * modules/unistd (Makefile.am): Substitute witnesses.
30224         * doc/posix-functions/pread.texi (pread): Update.
30225         * MODULES.html.sh: Add pread.
30226
30227 2009-11-25  Jim Meyering  <meyering@redhat.com>
30228
30229         tests/init.sh: new file to be used via most *.sh tests
30230         * tests/init.sh: New file.
30231
30232 2009-11-25  Eric Blake  <ebb9@byu.net>
30233
30234         utimens: work around older Linux failure with symlinks
30235         * lib/utimens.c (lutimensat_works_really): New variable.
30236         (fdutimens, lutimens): Use it to manage kernels that support
30237         nanosecond times on files, but not on symlinks.
30238         Reported by OndÅ™ej Vašík.
30239
30240         utimes: fix configure grammar
30241         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
30242
30243 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
30244
30245         regex: Fix fastmap for multibyte character ranges.
30246         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
30247         characters when a multibyte character range is included.
30248
30249 2009-11-22  Andy Wingo  <wingo@pobox.com>
30250
30251         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
30252         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
30253
30254 2009-11-24  Bruno Haible  <bruno@clisp.org>
30255
30256         doc: Most *_l functions exist in MacOS X 10.5.
30257         * doc/posix-functions/duplocale.texi: Update platforms list.
30258         * doc/posix-functions/freelocale.texi: Likewise.
30259         * doc/posix-functions/newlocale.texi: Likewise.
30260         * doc/posix-functions/uselocale.texi: Likewise.
30261         * doc/posix-functions/isalnum_l.texi: Likewise.
30262         * doc/posix-functions/isalpha_l.texi: Likewise.
30263         * doc/posix-functions/isblank_l.texi: Likewise.
30264         * doc/posix-functions/iscntrl_l.texi: Likewise.
30265         * doc/posix-functions/isdigit_l.texi: Likewise.
30266         * doc/posix-functions/isgraph_l.texi: Likewise.
30267         * doc/posix-functions/islower_l.texi: Likewise.
30268         * doc/posix-functions/isprint_l.texi: Likewise.
30269         * doc/posix-functions/ispunct_l.texi: Likewise.
30270         * doc/posix-functions/isspace_l.texi: Likewise.
30271         * doc/posix-functions/isupper_l.texi: Likewise.
30272         * doc/posix-functions/iswalnum_l.texi: Likewise.
30273         * doc/posix-functions/iswalpha_l.texi: Likewise.
30274         * doc/posix-functions/iswblank_l.texi: Likewise.
30275         * doc/posix-functions/iswcntrl_l.texi: Likewise.
30276         * doc/posix-functions/iswctype_l.texi: Likewise.
30277         * doc/posix-functions/iswdigit_l.texi: Likewise.
30278         * doc/posix-functions/iswgraph_l.texi: Likewise.
30279         * doc/posix-functions/iswlower_l.texi: Likewise.
30280         * doc/posix-functions/iswprint_l.texi: Likewise.
30281         * doc/posix-functions/iswpunct_l.texi: Likewise.
30282         * doc/posix-functions/iswspace_l.texi: Likewise.
30283         * doc/posix-functions/iswupper_l.texi: Likewise.
30284         * doc/posix-functions/iswxdigit_l.texi: Likewise.
30285         * doc/posix-functions/isxdigit_l.texi: Likewise.
30286         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
30287         * doc/posix-functions/strcasecmp_l.texi: Likewise.
30288         * doc/posix-functions/strcoll_l.texi: Likewise.
30289         * doc/posix-functions/strfmon_l.texi: Likewise.
30290         * doc/posix-functions/strftime_l.texi: Likewise.
30291         * doc/posix-functions/strncasecmp_l.texi: Likewise.
30292         * doc/posix-functions/strxfrm_l.texi: Likewise.
30293         * doc/posix-functions/tolower_l.texi: Likewise.
30294         * doc/posix-functions/toupper_l.texi: Likewise.
30295         * doc/posix-functions/towctrans_l.texi: Likewise.
30296         * doc/posix-functions/towlower_l.texi: Likewise.
30297         * doc/posix-functions/towupper_l.texi: Likewise.
30298         * doc/posix-functions/wcscoll_l.texi: Likewise.
30299         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
30300         * doc/posix-functions/wctrans_l.texi: Likewise.
30301         * doc/posix-functions/wctype_l.texi: Likewise.
30302         * doc/glibc-functions/strptime_l.texi: Likewise.
30303         * doc/glibc-functions/strtod_l.texi: Likewise.
30304         * doc/glibc-functions/strtof_l.texi: Likewise.
30305         * doc/glibc-functions/strtol_l.texi: Likewise.
30306         * doc/glibc-functions/strtold_l.texi: Likewise.
30307         * doc/glibc-functions/strtoll_l.texi: Likewise.
30308         * doc/glibc-functions/strtoul_l.texi: Likewise.
30309         * doc/glibc-functions/strtoull_l.texi: Likewise.
30310         * doc/glibc-functions/wcsftime_l.texi: Likewise.
30311         * doc/glibc-functions/wcstod_l.texi: Likewise.
30312         * doc/glibc-functions/wcstof_l.texi: Likewise.
30313         * doc/glibc-functions/wcstol_l.texi: Likewise.
30314         * doc/glibc-functions/wcstold_l.texi: Likewise.
30315         * doc/glibc-functions/wcstoll_l.texi: Likewise.
30316         * doc/glibc-functions/wcstoul_l.texi: Likewise.
30317         * doc/glibc-functions/wcstoull_l.texi: Likewise.
30318
30319 2009-11-24  Bruno Haible  <bruno@clisp.org>
30320
30321         duplocale: Fix logic bug.
30322         * lib/duplocale.c: Don't include <langinfo.h>.
30323         (_NL_LOCALE_NAME): Remove macro.
30324         (rpl_duplocale): Use setlocale instead of nl_langinfo.
30325         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
30326
30327 2009-11-23  Jim Meyering  <meyering@redhat.com>
30328
30329         test-update-copyright: don't hard-code /usr/bin/perl
30330         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
30331         perl to print the current year.  Gilles Espinasse reported that
30332         the replaced use of perl was hard-coded as /usr/bin/perl.
30333
30334 2009-11-23  Bruno Haible  <bruno@clisp.org>
30335
30336         duplocale: Add support for glibc 2.3.x.
30337         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
30338
30339 2009-11-22  Bruno Haible  <bruno@clisp.org>
30340
30341         vasnprintf: Tiny optimization.
30342         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
30343         MacOS X.
30344
30345 2009-11-22  Bruno Haible  <bruno@clisp.org>
30346
30347         Tests for module 'duplocale'.
30348         * modules/duplocale-tests: New file.
30349         * tests/test-duplocale.c: New file.
30350
30351         New module 'duplocale'.
30352         * m4/duplocale.m4: New file.
30353         * lib/locale.in.h (duplocale): New declaration.
30354         * lib/duplocale.c: New file.
30355         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
30356         gl_LOCALE_H_DEFAULTS): New macros.
30357         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
30358         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
30359         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
30360         REPLACE_DUPLOCALE.
30361         * modules/duplocale: New file.
30362         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
30363
30364 2009-11-22  Bruno Haible  <bruno@clisp.org>
30365
30366         * modules/locale-tests (configure.ac): Test for newlocale function.
30367         * tests/test-locale.c: When the system has extended locale functions,
30368         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
30369
30370         locale: Make locale_t available when possible.
30371         * lib/locale.in.h: Include <xlocale.h> when it exists.
30372         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
30373         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
30374         * modules/locale (Depends-on): Add extensions.
30375         (Makefile.am): Also substitute HAVE_XLOCALE_H.
30376         * doc/posix-headers/locale.texi: Document the problem with locale_t.
30377
30378 2009-11-22  Bruno Haible  <bruno@clisp.org>
30379
30380         Add comments.
30381         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
30382         invocation.
30383         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
30384         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30385         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30386
30387 2009-11-22  Bruno Haible  <bruno@clisp.org>
30388
30389         error: account for the possibility of freopen (stdout).
30390         * lib/error.c: Include <unistd.h>.
30391         (flush_stdout): New function, extracted from error and error_at_line.
30392         Determine stdout's fd dynamically.
30393         (error, error_at_line): Invoke flush_stdout.
30394         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
30395         * modules/error (Depends-on): Add unistd.
30396
30397 2009-11-22  Bruno Haible  <bruno@clisp.org>
30398
30399         diffseq: Add comment.
30400         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
30401
30402 2009-11-22  Jim Meyering  <meyering@redhat.com>
30403
30404         c-stack: avoid defining an unused static function
30405         * lib/c-stack.c (find_stack_direction): Do not define this function
30406         when it will not be used.
30407
30408         diffseq: avoid spurious gcc warnings
30409         * lib/diffseq.h (IF_LINT2): Define.
30410         (compareseq): Use it to initialize two members of "part".
30411         This avoids two used-uninitialized warnings.
30412
30413 2009-11-21  Jim Meyering  <meyering@redhat.com>
30414
30415         c-stack: avoid "ignoring return value of `write'" warning
30416         * lib/c-stack.c: Include "ignore-value.h".
30417         (die): Explicitly ignore each write return value.
30418         * modules/c-stack (Depends-on): Add ignore-value.
30419
30420 2009-11-21  Bruno Haible  <bruno@clisp.org>
30421
30422         diffseq: reduce scope of variable 'best'.
30423         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
30424         variable, earlier used for two different purposes.
30425
30426 2009-11-21  Jim Meyering  <meyering@redhat.com>
30427
30428         diffseq: remove useless assignment to "best"
30429         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
30430         assignment.  At that point "best" is already guaranteed to be zero.
30431
30432 2009-11-20  Eric Blake  <ebb9@byu.net>
30433
30434         build: mention ftp redirector in release announcements
30435         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
30436         values that used to come from cfg.mk; mention FTP redirect URL.
30437         * build-aux/announce-gen: Mention the mirror list.
30438         Suggested by Karl Berry.
30439
30440         nanosleep: improve port to mingw
30441         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
30442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
30443         LIB_NANOSLEEP, but only when needed.
30444         * modules/select (Link): Document LIBSOCKET.
30445         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
30446         enough.
30447
30448         nanosleep: work around cygwin bug
30449         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
30450         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
30451         bug.
30452         (getnow): Delete, not needed.
30453         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
30454         LIB_CLOCK_GETTIME.
30455         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
30456         clock-time, gettime.
30457         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
30458         bug.
30459         * modules/nanosleep-tests: New test.
30460         * tests/test-nanosleep.c: New file.
30461
30462         sleep: work around cygwin bug
30463         * lib/sleep.c (rpl_sleep): Work around the bug.
30464         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
30465         (gl_PREREQ_SLEEP): Delete unused macro.
30466         * modules/sleep (Depends-on): Add verify.
30467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30468         * modules/unistd (Makefile.am): Substitute witness.
30469         * lib/unistd.in.h (sleep): Update prototype.
30470         * doc/posix-functions/sleep.texi (sleep): Document the bug.
30471         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
30472         * modules/sleep-tests (Depends-on): Check for alarm.
30473
30474 2009-11-20  Jim Meyering  <meyering@redhat.com>
30475
30476         maint.mk: improve sc_prohibit_magic_number_exit
30477         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
30478         so it does not match uses like System.exit(1).
30479         Add comments showing how to correct all offenders.
30480
30481 2009-11-19  Eric Blake  <ebb9@byu.net>
30482
30483         xalloc-die-tests: add missing library
30484         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
30485
30486         test-xvasprintf: silence compiler warnings
30487         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
30488         empty string from gcc.
30489
30490 2009-11-19  Jim Meyering  <meyering@redhat.com>
30491
30492         xfreopen: new module, from coreutils
30493         * modules/xfreopen: New module.
30494         * lib/xfreopen.c: New file.
30495         * lib/xfreopen.h: New file.
30496         * MODULES.html.sh (File stream based Input/Output"): Add it.
30497
30498 2009-11-19  Eric Blake  <ebb9@byu.net>
30499
30500         manywarnings: depend on warnings
30501         * modules/manywarnings (Depends-on): Add warnings.
30502
30503         build: avoid compiler warnings
30504         * lib/select.c (rpl_select): Delete unused variable.
30505         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
30506
30507 2009-11-18  Eric Blake  <ebb9@byu.net>
30508
30509         tests: avoid false negative with --with-packager
30510         * tests/test-version-etc.sh: Discard packager information.
30511         * tests/test-argp-version-etc-1.sh: Likewise.
30512         Reported by Mike Frysinger.
30513
30514         utimens: fix regression on Solaris
30515         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
30516         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
30517         can only change fd timestamps via futimesat.  Instead, use an
30518         additional witness macro to avoid BSD bug.
30519         Reported by Jim Meyering.
30520
30521 2009-11-17  Eric Blake  <ebb9@byu.net>
30522
30523         usleep: use it to simplify tests
30524         * modules/stat-time-tests (Depends-on): Add usleep.
30525         (configure.ac): Drop usleep check.
30526         * modules/chown-tests (Depends-on, configure.ac): Likewise.
30527         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
30528         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
30529         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
30530         * modules/openat-tests (Depends-on, configure.ac): Likewise.
30531         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
30532         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
30533         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
30534         Likewise.
30535         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
30536         * tests/test-lchown.h (nap): Likewise.
30537         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
30538         * tests/test-stat-time.c (nap): Likewise.
30539         * tests/test-utimens-common.h (nap): Update comments.
30540
30541         usleep: new module
30542         * modules/usleep: New file.
30543         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
30544         * lib/usleep.c (usleep): Likewise.
30545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30546         * modules/unistd (Makefile.am): Substitute witnesses.
30547         * lib/unistd.in.h (usleep): Add declaration.
30548         * doc/pastposix-functions/usleep.texi (usleep): Document this.
30549         * MODULES.html.sh (Date and time): Likewise.
30550         * modules/usleep-tests (Depends-on): New test.
30551         * tests/test-usleep.c: New file.
30552
30553         chown: work around OpenBSD bug
30554         * lib/chown.c (rpl_chown): Work around the bug.
30555         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
30556         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
30557         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
30558         * modules/chown (Depends-on): Add stdbool.
30559         * modules/lchown (Depends-on): Likewise.
30560         * doc/posix-functions/chown.texi (chown): Document the bug.
30561         * doc/posix-functions/lchown.texi (lchown): Likewise.
30562         * tests/test-lchown.h (test_chown): Relax test.
30563
30564         mkstemp: avoid conflict with C++ keyword template
30565         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
30566         * lib/mkostemp.c (mkostemp): Likewise.
30567         * lib/mkostemps.c (mkostemps): Likewise.
30568         * lib/mkstemp.c (mkstemp): Likewise.
30569         * lib/mkstemps.c (mkstemps): Likewise.
30570
30571         xalloc-die-tests: optimize
30572         * tests/test-xalloc-die.sh: Reduce number of processes.
30573
30574 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30575
30576         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
30577         patch from ludo@gnu.org (Ludovic Courtès).
30578
30579 2009-11-17  Jim Meyering  <meyering@redhat.com>
30580
30581         version-etc: use proper license string
30582         * modules/version-etc (License): Use LGPL, not LGPLv3+.
30583         * modules/version-etc-fsf: Likewise.
30584
30585 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30586
30587         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
30588         printed to stdout.  Deal with EOL differences.
30589
30590 2009-11-17  Eric Blake  <ebb9@byu.net>
30591
30592         unsetenv: work around Solaris bug
30593         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
30594         * lib/unsetenv.c (rpl_unsetenv): Work around it.
30595         Reported by Jim Meyering.
30596
30597         vasnprintf: avoid compiler warnings
30598         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
30599         variables.
30600         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
30601
30602 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30603
30604         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
30605         settings since xalloc-die is no longer the self test,
30606         xalloc-die.sh is.
30607
30608 2009-11-17  Jim Meyering  <meyering@redhat.com>
30609
30610         test-xalloc-die.sh: make the code agree with the commit log
30611         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
30612         at the end, just in case you happen to have a test-xalloc-die
30613         program in some other PATH directory.
30614
30615         test-xalloc-die.sh: fix a portability bug
30616         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
30617         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
30618         Otherwise, argv[0] (as often seen in diagnostics) would be too
30619         system-dependent, sometimes with, and sometimes without the leading "./".
30620
30621         version-etc-fsf: relax license to LGPLv3+
30622         * modules/version-etc-fsf (License): Relax license.
30623
30624 2009-11-16  Eric Blake  <ebb9@byu.net>
30625
30626         xalloc-die-tests: avoid printing null pointer
30627         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
30628         shell script.
30629         * tests/test-xalloc-die.c (program_name): Declare.
30630         * tests/test-xalloc-die.sh (tmpfiles): New file.
30631
30632         setenv, unsetenv: work around various bugs
30633         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
30634         (setenv) [HAVE_SETENV]: Work around bugs.
30635         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
30636         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
30637         for bugs.
30638         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
30639         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
30640         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
30641         * modules/stdlib (Makefile.am): Update substitutions.
30642         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
30643         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
30644         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30645         * modules/setenv-tests: New test.
30646         * modules/unsetenv-tests: Likewise.
30647         * tests/test-setenv.c: New file.
30648         * tests/test-unsetenv.c: Likewise.
30649
30650 2009-11-16  Jim Meyering  <meyering@redhat.com>
30651
30652         version-etc: relax license to LGPLv3+
30653         * modules/version-etc (License): Relax license.
30654
30655         better AC_REQUIRE expanded-before-required-warning avoidance
30656         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
30657         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
30658         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
30659         which is no longer needed.
30660
30661 2009-11-16  Eric Blake  <ebb9@byu.net>
30662
30663         test-freading: clean up temporary file
30664         * tests/test-freading.c (main): Remove file on success, and use
30665         ASSERT more liberally.
30666         Reported by Jim Meyering.
30667
30668 2009-11-16  Jim Meyering  <meyering@redhat.com>
30669
30670         avoid new AC_REQUIRE expanded-before-required warnings
30671         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
30672         merely using it.
30673         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
30674         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
30675
30676 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30677
30678         * tests/test-xalloc-die.c: New file.
30679         * modules/xalloc-die-tests: New file.
30680         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
30681         XFAIL_TESTS so it can be appended by modules.
30682
30683 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30684
30685         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
30686         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
30687
30688 2009-11-14  Eric Blake  <ebb9@byu.net>
30689
30690         fnmatch: avoid compiler warning
30691         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
30692         to silence compiler warning about mismatch signedness in ?:.
30693         Reported by Robert Millan.
30694
30695         intprops: add double-inclusion guard
30696         * lib/intprops.h: Allow idempotent includes.
30697         Suggested by Bruce Korb.
30698
30699         openat: detect Solaris fchownat bug
30700         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
30701         penalizing glibc chownat when only lchownat is broken.
30702         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
30703         trailing slash bugs.
30704         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
30705         * modules/openat-tests (Files): Include more files.
30706         (Depends-on): Add mgetgroups, sleep, stat-time.
30707         (configure.ac): Add additional checks.
30708         (Makefile.am): Build new test.
30709         * tests/test-fchownat.c: New file.
30710
30711         lchown: detect Solaris and FreeBSD bug
30712         * lib/lchown.c (rpl_lchown): Work around bug.
30713         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
30714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30715         * modules/unistd (Makefile.am): Populate it.
30716         * lib/unistd.in.h (lchown): Update declaration.
30717         * doc/posix-functions/lchown.texi (lchown): Document the bug.
30718         * modules/lchown-tests: New file.
30719         * tests/test-lchown.h (test_lchown): Likewise.
30720         * tests/test-lchown.c (main): Likewise.
30721
30722         chown: detect Solaris and FreeBSD bug
30723         * lib/chown.c (rpl_chown): Work around bug.
30724         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
30725         (gl_PREREQ_CHOWN): Delete.
30726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30727         * modules/unistd (Makefile.am): Populate it.
30728         * lib/unistd.in.h (chown): Update declaration.
30729         * lib/lchown.c (chown): Update client.
30730         * modules/lchown (Depends-on): Add lstat.
30731         * doc/posix-functions/chown.texi (chown): Document the bug.
30732         * doc/posix-functions/getgroups.texi (getgroups): Document
30733         getgroups pitfall.
30734         * modules/chown-tests: New file.
30735         * tests/test-chown.h (test_chown): Likewise.
30736         * tests/test-chown.c (main): Likewise.
30737
30738 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
30739
30740         gnulib-tool: correctly detect absence of m4 directories
30741         * gnulib-tool: Avoid extra newline on data passed to wc -l.
30742
30743 2009-11-14  Jim Meyering  <meyering@redhat.com>
30744
30745         maint.mk: Prohibit inclusion of "xalloc.h" without use.
30746         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30747
30748 2009-11-14  John W. Eaton  <jwe@gnu.org>
30749
30750         strftime.h: wrap funtion declaration in extern "C" block
30751         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
30752
30753 2009-11-13  Eric Blake  <ebb9@byu.net>
30754
30755         getgroups: avoid compiler warning
30756         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
30757
30758         getgroups: work around FreeBSD bug
30759         * lib/getgroups.c (rpl_getgroups): Work around the bug.
30760         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
30761         * doc/posix-functions/getgroups.texi (getgroups): Document it.
30762         * tests/test-getgroups.c (main): Fix buffer overrun.
30763
30764         getgroups: avoid compilation failure
30765         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
30766         * modules/getgroups (Depends-on): Add stdint.
30767
30768 2009-11-13  Jim Meyering  <meyering@redhat.com>
30769
30770         test-getgroups: avoid compilation failure
30771         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
30772
30773 2009-11-13  Eric Blake  <ebb9@byu.net>
30774
30775         mgetgroups: new module, taken from coreutils
30776         * modules/mgetgroups: New file.
30777         * lib/mgetgroups.h: Likewise.
30778         * lib/mgetgroups.c (mgetgroups): Likewise.
30779         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
30780         * MODULES.html.sh (Users and groups): Mention it.
30781
30782         getgroups: don't expose GETGROUPS_T to user
30783         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
30784         an element at a time if GETGROUPS_T is wrong size.
30785         * lib/getugroups.h (getugroups): Change signature.
30786         * lib/unistd.in.h (getgroups): Likewise.
30787         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
30788         signature needs fixing.
30789         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
30790         AC_TYPE_GETGROUPS.
30791         * modules/group-member (Depends-on): Add getgroups.
30792         * lib/group-member.c (group_info, get_group_info): Use gid_t.
30793         (group_member): Rely on getgroups replacement.
30794         * lib/getugroups.c (getugroups): Use gid_t.
30795         * tests/test-getgroups.c (main): Likewise.
30796         * NEWS: Mention the signature change.
30797         * doc/posix-functions/getgroups.texi (getgroups): Mention the
30798         problem with signature.
30799         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
30800         GETGROUPS_T is still useful for setgroups.
30801
30802         getgroups, getugroups: provide stubs for mingw
30803         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
30804         * lib/getugroups.c (getugroups): Likewise.
30805         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
30806         function.  Modernize replacement scheme.
30807         (gl_PREREQ_GETGROUPS): Delete.
30808         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
30809         * modules/getgroups (configure.ac): Declare witness.
30810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30811         * modules/unistd (Depends-on): Substitute witness.
30812         * lib/unistd.in.h (getgroups): Declare replacement.
30813
30814         getgroups: avoid calling exit
30815         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
30816         drop xalloc.
30817         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
30818         dependencies.
30819         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
30820         exiting, in the rare case of malloc failure.
30821
30822         getgroups: fix logic error
30823         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
30824         has more than 20 groups.
30825         * modules/getgroups-tests: New test.
30826         * tests/test-getgroups.c: New file.
30827
30828 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30829
30830         * tests/test-base64.c: Improve.
30831
30832 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30833
30834         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
30835         Blake <ebb9@byu.net>.
30836
30837 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30838
30839         * tests/test-xvasprintf.c: Add %s%s related checks.
30840
30841 2009-11-12  Eric Blake  <ebb9@byu.net>
30842
30843         version-etc: match standards.texi style
30844         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
30845         and use <> only for URLs.
30846
30847 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
30848
30849         fts: do not fail on a submount during traversal
30850         * lib/fts.c (fts_build): Read the stat info again after opening
30851         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
30852         Original report at http://bugzilla.redhat.com/501848.
30853
30854 2009-11-12  Jim Meyering  <meyering@redhat.com>
30855
30856         bootstrap: sync from coreutils
30857         * build-aux/bootstrap (bootstrap_epilogue): New function.
30858         Use git_modules_config in one more place.  This make bootstrap's
30859         --gnulib-srcdir option more useful for testing.
30860
30861         bootstrap: generalize autoheader check
30862         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
30863         AC_CONFIG_HEADERS.
30864
30865 2009-11-11  Eric Blake  <ebb9@byu.net>
30866
30867         mkfifoat: use new modules for Solaris and BSD bugs
30868         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
30869         * lib/mkfifoat.c (mknodat): Split...
30870         * lib/mknodat.c (mknodat): ...into new file.
30871         * modules/mkfifoat (Files): Ship new file.
30872         (Depends-on): Add mkfifo, mknod.
30873         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
30874         (Depends-on): Add symlink.
30875         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
30876         redundant with test_mkfifo.h.
30877         (do_mkfifoat, do_mknodat): New helpers.
30878
30879         mknod: new module
30880         * modules/mknod: New file.
30881         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
30882         * lib/mknod.c (mknod): Likewise.
30883         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30884         defaults.
30885         * modules/sys_stat (Makefile.am): Substitute them.
30886         * lib/sys_stat.in.h (mknod): Declare replacement.
30887         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30888         Document it.
30889         * doc/posix-functions/mknod.texi (mknod): Likewise.
30890         * modules/mknod-tests: New test.
30891         * tests/test-mknod.c: Likewise.
30892
30893         mkfifo: new module
30894         * modules/mkfifo: New file.
30895         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
30896         * lib/mkfifo.c (mkfifo): Likewise.
30897         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30898         defaults.
30899         * modules/sys_stat (Makefile.am): Substitute them.
30900         * lib/sys_stat.in.h (mkfifo): Declare replacement.
30901         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30902         Document it.
30903         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
30904         * modules/mkfifo-tests: New test.
30905         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
30906         from test-mkfifoat.c.
30907         * tests/test-mkfifo.c: New file.
30908
30909         readlink: detect FreeBSD bug
30910         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
30911         slash on symlink.
30912         * doc/posix-functions/readlink.texi (readlink): Document the bug.
30913         * tests/test-readlink.h (test_readlink): Enhance test.
30914
30915         symlink: detect FreeBSD bug
30916         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
30917         slash on symlink.
30918         * doc/posix-functions/symlink.texi (symlink): Document the bug.
30919         * tests/test-symlink.h (test_symlink): Enhance test.
30920
30921 2009-11-10  Eric Blake  <ebb9@byu.net>
30922
30923         link: detect FreeBSD bug
30924         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
30925         symlink.
30926         * doc/posix-functions/link.texi (link): Document the bug.
30927         * tests/test-link.h (test_link): Enhance test.
30928         * tests/test-linkat.c (main): Update caller.
30929
30930         unlink, remove: detect FreeBSD bug
30931         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
30932         slash on symlink.
30933         * doc/posix-functions/unlink.texi (unlink): Document the bug.
30934         * doc/posix-functions/remove.texi (remove): Likewise.
30935         * tests/test-unlink.h (test_unlink): Enhance test.
30936         * tests/test-remove.c (main): Likewise.
30937
30938 2009-11-09  Eric Blake  <ebb9@byu.net>
30939
30940         rename: detect FreeBSD bug
30941         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
30942         slash on symlink.
30943         * modules/renameat-tests (Depends-on): Add filenamecat.
30944         * tests/test-rename.h (test_rename): Allow one more errno.
30945         * tests/test-renameat.c (main): Likewise.
30946         * doc/posix-functions/rename.texi (rename): Document the bug.
30947
30948         open: detect FreeBSD bug
30949         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
30950         symlink.
30951         * doc/posix-functions/open.texi (open): Document the bug.
30952         * doc/posix-functions/utimes.texi (utimes): Likewise.
30953         * tests/test-open.h (test_open): Add parameters, and test symlink
30954         handling.
30955         * tests/test-open.c (main): Adjust caller.
30956         * tests/test-fcntl-safer.c (main): Likewise.
30957         * modules/open-tests (Depends-on): Add stdbool, symlink.
30958         * modules/fcntl-safer-tests (Depends-on): Likewise.
30959         * tests/test-openat.c (main): Add test-open tests.
30960
30961         stat: detect FreeBSD bug
30962         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
30963         symlink.
30964         * doc/posix-functions/stat.texi (stat): Document the bug.
30965         * tests/test-stat.h (test_stat_func): Add argument.
30966         * tests/test-stat.c (main): Adjust caller.
30967         * tests/test-fstatat.c (main): Likewise.
30968         * modules/stat-tests (Depends-on): Add stdbool, symlink.
30969         Reported by Jim Meyering.
30970
30971 2009-11-09  James Youngman  <jay@gnu.org>
30972
30973         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30974         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30975
30976 2009-11-08  Jim Meyering  <meyering@redhat.com>
30977
30978         utimens: remove invalid futimesat call
30979         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30980         It used the file descriptor of the target file as the DIR_FD
30981         parameter and NULL as the file name.  That caused failure with
30982         errno == EFAULT on FreeBSD-8.0-rc2
30983
30984 2009-11-07  Eric Blake  <ebb9@byu.net>
30985
30986         fflush, freadseek: use fseeko, not fseek
30987         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30988         (clear_ungetc_buffer): Avoid potential problems on large files.
30989         * lib/freadseek.c (freadseek): Likewise.
30990         * modules/freadseek (Depends-on): Add fseeko.
30991         * modules/fseek (configure.ac): Set a witness.
30992         * tests/test-fflush.c (main): Use fseeko.
30993         * tests/test-fpurge.c (fseek): Disable link warning.
30994         * tests/test-freadable.c (fseek): Likewise.
30995         * tests/test-freading.c (fseek): Likewise.
30996         * tests/test-fseeko.c (fseek): Likewise.
30997         * tests/test-ftell.c (fseek): Likewise.
30998         * tests/test-ftello.c (fseek): Likewise.
30999         * tests/test-fwritable.c (fseek): Likewise.
31000         * tests/test-fwriting.c (fseek): Likewise.
31001
31002 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31003
31004         * modules/memchr (Depends-on): Drop getpagesize dependency.
31005
31006 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31007
31008         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
31009         Reported by Ludovic Courtès.
31010         * build-aux/pmccabe2html: Improve example usage.
31011         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
31012
31013 2009-11-06  Jim Meyering  <meyering@redhat.com>
31014
31015         do-release-commit-and-tag: New module.
31016         Automate the release-commit and tag process.
31017         * build-aux/do-release-commit-and-tag: New script, from coreutils.
31018         * modules/do-release-commit-and-tag: New file.
31019         * MODULES.html.sh (Support for maintaining and releasing): Add it.
31020
31021 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31022
31023         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
31024         because test-select.c uses inet_pton.
31025
31026 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31027
31028         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
31029         GETADDRINFO_LIB.  Bump serial number.
31030         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
31031         Suggested by Eric Blake <ebb9@byu.net>.
31032
31033 2009-11-05  Eric Blake  <ebb9@byu.net>
31034
31035         strtod: detect darwin bug
31036         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
31037         Reported by Leo Davis.
31038
31039         freopen-safer: new module
31040         * modules/freopen-safer: New module.
31041         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
31042         * lib/freopen-safer.c (freopen_safer): New file.
31043         * lib/stdio-safer.h (freopen_safer): New declaration.
31044         * lib/stdio--.h (freopen): New override.
31045         * MODULES.html.sh (File stream based Input/Output): Mention it.
31046         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
31047         freopen-safer module.
31048         * doc/posix-functions/stderr.texi (stderr): Likewise.
31049         * doc/posix-functions/stdin.texi (stdin): Likewise.
31050         * doc/posix-functions/stdout.texi (stdout): Likewise.
31051         * modules/freopen-safer-tests: New test.
31052         * tests/test-reopen-safer.c: New file.
31053
31054 2009-11-05  Jim Meyering  <meyering@redhat.com>
31055
31056         maint.mk: Prohibit inclusion of "close-stream.h" without use.
31057         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31058
31059 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31060
31061         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
31062
31063 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31064
31065         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
31066
31067 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31068
31069         Fix link error.
31070         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31071         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31072
31073 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31074
31075         * tests/test-func.c: Also test value of __func__.
31076
31077 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31078
31079         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
31080         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
31081
31082 2009-11-05  Bruno Haible  <bruno@clisp.org>
31083
31084         Fix link error.
31085         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31086         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31087         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
31088
31089 2009-11-05  Bruno Haible  <bruno@clisp.org>
31090
31091         Tests for module 'inet_pton'.
31092         * modules/inet_pton-tests: New file.
31093         * tests/test-inet_pton.c: New file.
31094
31095 2009-11-05  Bruno Haible  <bruno@clisp.org>
31096
31097         Tests for module 'inet_ntop'.
31098         * modules/inet_ntop-tests: New file.
31099         * tests/test-inet_ntop.c: New file.
31100
31101 2009-11-04  Eric Blake  <ebb9@byu.net>
31102
31103         stdlib-safer: wrap all mkstemp variants
31104         * modules/mkostemp (configure.ac): Set witness.
31105         * modules/mkostemps (configure.ac): Likewise.
31106         * modules/mkstemps (configure.ac): Likewise.
31107         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
31108         (mkstemps_safer): Wrap more functions.
31109         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
31110         wrapping.
31111         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
31112         (mkstemps_safer): Implement the wrappers.
31113
31114         mkstemps, mkostemps: new modules
31115         * modules/mkostemps: New module.
31116         * modules/mkstemps: Likewise.
31117         * lib/mkostemps.c (mkostemps): New file.
31118         * lib/mkstemps.c (mkstemps): Likewise.
31119         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
31120         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
31121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
31122         * modules/stdlib (Makefile.am): Substitute them.
31123         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
31124         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
31125         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
31126         * doc/gnulib.texi (Glibc stdlib.h): Include them.
31127         * MODULES.html.sh (File system functions): Mention them.
31128
31129         tempname: resync from glibc
31130         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
31131         same values for __GT_FILE as glibc.  Abort even when assertions
31132         are disabled.
31133         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
31134         match its value otherwise.  Allow idempotent inclusion.
31135         * lib/mkdtemp.c (mkdtemp): Adjust caller.
31136         * lib/mkostemp.c (mkostemp): Likewise.
31137         * lib/mkstemp.c (mkstemp): Likewise.
31138         * lib/tmpfile.c (tmpfile): Likewise.
31139         * NEWS: Document this.
31140
31141         utimens: fix use of futimens on older Linux
31142         * lib/utimens.c (fdutimens): Use updated, rather than original,
31143         timespec to avoid bug in older Linux kernel.
31144         Reported by Simon Josefsson.
31145
31146 2009-11-04  Bruno Haible  <bruno@clisp.org>
31147
31148         Make num_processors more flexible and consistent.
31149         * lib/nproc.h (enum nproc_query): New type.
31150         (num_processors): Add a 'query' argument.
31151         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
31152         (num_processors): Add a 'query' argument. Test the value of the
31153         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
31154         mingw, count the number of CPUs available for the current process.
31155         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
31156         Check for sched_getaffinity and sched_getaffinity_np.
31157         * modules/nproc (Depends-on): Add c-ctype, extensions.
31158         * NEWS: Mention the change.
31159
31160 2009-11-03  Bruno Haible  <bruno@clisp.org>
31161
31162         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
31163
31164 2009-11-03  Jim Meyering  <meyering@redhat.com>
31165
31166         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
31167         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
31168         if it is defined.
31169
31170 2009-11-02  Eric Blake  <ebb9@byu.net>
31171
31172         mktime, timegm: share common declaration
31173         * lib/mktime-internal.h: New file.
31174         * lib/mktime.c: Use it rather than open-coding a declaration.
31175         * lib/timegm.c: Likewise.
31176         * modules/mktime (Files): Ship it.
31177         * modules/timegm (Files): Likewise.
31178         Suggested by Bruno Haible.
31179
31180         test-update-copyright: update test to match script changes
31181         * tests/test-update-copyright.sh: Avoid hard-coding perl
31182         location.  Don't update *.bak created by earlier runs.
31183
31184 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31185             Simon Josefsson  <simon@josefsson.org>
31186             Bruno Haible  <bruno@clisp.org>
31187
31188         Fix link error on Solaris 8.
31189         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
31190         also in libnsl. Define also INET_PTON_LIB.
31191         * modules/inet_pton (Link): New section.
31192
31193 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31194             Bruno Haible  <bruno@clisp.org>
31195
31196         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
31197         * modules/inet_ntop (Link): New section.
31198         Reported by Boyan Kasarov <bkasarov@gmail.com>.
31199
31200 2009-11-02  Eric Blake  <ebb9@byu.net>
31201
31202         maint: avoid compiler warnings in m4 macros
31203         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
31204         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
31205
31206 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31207
31208         * m4/pmccabe2html.m4: Remove file.
31209         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
31210         function.  Change maintainer.
31211         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
31212         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
31213         Courtès).
31214
31215 2009-10-31  Eric Blake  <ebb9@byu.net>
31216
31217         fseeko: fix m4 regression
31218         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
31219         regression from 2009-10-27.
31220         Reported by Ralf Wildenhues.
31221
31222 2009-10-31  Jim Meyering  <meyering@redhat.com>
31223
31224         inttostr: aesthetics and improved (compile-time) safety
31225         Define inttype_is_signed rather than inttype_is_unsigned,
31226         since the sole use is via "#if inttype_is_signed".
31227         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
31228         inttype_is_unsigned.
31229         * lib/offtostr.c (inttype_is_signed): Likewise.
31230         * lib/uinttostr.c (inttype_is_signed): Likewise.
31231         * lib/umaxtostr.c (inttype_is_signed): Likewise.
31232         * lib/inttostr.c (inttostr): Use verify to cross-check the
31233         inttype_is_signed value and the signedness of the actual type.
31234         * modules/inttostr (Depends-on): Add verify.
31235
31236 2009-10-30  Eric Blake  <ebb9@byu.net>
31237
31238         build: avoid compiler warnings
31239         * lib/fchmodat.c (lchmod): Mark unused variables.
31240         * lib/getopt.c (_getopt_initialize): Likewise.
31241         * lib/mktime.c (__mktime_internal): Provide prototype.
31242         * lib/inttostr.c (inttostr): Avoid compiler warning even with
31243         older gcc that do not understand #pragma GCC diagnostic.
31244         * lib/uinttostr.c (inttype_is_unsigned): Define.
31245         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
31246
31247 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31248
31249         stat: fix compilation on AIX
31250         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
31251         only see struct stat64.
31252
31253 2009-10-30  Eric Blake  <ebb9@byu.net>
31254
31255         exclude: make more robust
31256         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
31257         rather than masking a coding bug.
31258         Suggested by Bruno Haible.
31259
31260 2009-10-30  Jim Meyering  <meyering@redhat.com>
31261
31262         perl scripts: remove #!/usr/bin/perl in favor of more portable...
31263         Rather than putting #!/usr/bin/perl on the first line,
31264         start with a variant of what's recommended by "man perlrun" that
31265         invokes the first "perl" program from your shell's search path.
31266         * build-aux/gitlog-to-changelog: Replace #!... as above.
31267         Add a "Local Variables" perl mode setting.
31268         Prompted by a patch from Ludovic Courtès.
31269         Improved by Eric Blake.
31270         * build-aux/useless-if-before-free: Likewise.
31271         * build-aux/announce-gen: Likewise.
31272         * build-aux/update-copyright: Likewise.
31273
31274 2009-10-29  Eric Blake  <ebb9@byu.net>
31275
31276         filenamecat-lgpl: adjust clients
31277         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
31278         filenamecat.
31279         * modules/renameat (Depends-on): Likewise.
31280
31281         filenamecat: split into filenamecat-lgpl
31282         * modules/filenamecat-lgpl: New module.
31283         * modules/filenamecat (Files): Move library-safe files into
31284         filenamecat-lgpl.
31285         (Depends-on): Add filenamecat-lgpl.
31286         (configure.ac): Declare witness.
31287         * lib/filenamecat.h (file_name_concat): Only declare when using
31288         GPL module.
31289         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
31290         Move...
31291         * lib/filenamecat-lgpl.c: ...into new file.
31292         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
31293         (gl_FILE_NAME_CONCAT): Use it.
31294         * MODULES.html.sh (File system functions): Mention new module.
31295
31296         argp: avoid memory leak
31297         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
31298         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
31299         base_name, since the latter malloc()s and can call exit().
31300         Leak introduced 2006-07-03.
31301
31302         dirname-lgpl: adjust clients that don't need full dirname
31303         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
31304         * modules/filenamecat (Depends-on): Likewise.
31305         * modules/linkat (Depends-on): Likewise.
31306         * modules/mkancesdirs (Depends-on): Likewise.
31307         * modules/mkdir (Depends-on): Likewise.
31308         * modules/openat (Depends-on): Likewise.
31309         * modules/savewd (Depends-on): Likewise.
31310         * modules/rename (Depends-on): Likewise.
31311         (License): Relax license.
31312         * modules/mkdir-tests (Depends-on): Drop progname.
31313         (Makefile.am): Delete unneeded LDADD.
31314         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
31315
31316         dirname: split into dirname-lgpl
31317         * modules/dirname-lgpl: New module.
31318         * modules/dirname (Files): Move library-safe files into
31319         dirname-lgpl.
31320         (Depends-on): Add dirname-lgpl.
31321         (configure.ac): Declare witness.
31322         * modules/double-slash-root (License): Relax license.
31323         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
31324         module.
31325         * lib/dirname.c (dir_len, mdir_name): Move...
31326         * lib/dirname-lgpl.c: ...into new file.
31327         * lib/basename.c (last_component, base_len): Move...
31328         * lib/basename-lgpl.c: ...into new file.
31329         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
31330         (gl_DIRNAME): Use it.
31331         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
31332         Mention new module.
31333         * modules/dirname-tests (Depends-on): Add progname.
31334         * tests/test-dirname.c (program_name): Delete.
31335
31336         mkdir: make safe for libraries
31337         * modules/mkdir (Depends-on): Drop xalloc.
31338         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
31339         exit.
31340
31341         tests: avoid some compiler warnings
31342         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
31343         literals.
31344         * tests/test-memchr.c (main): Avoid type mismatch.
31345         * tests/test-arpa_inet.c (main): Avoid unused parameters.
31346         * tests/test-base64.c (main): Likewise.
31347         * tests/test-getdelim.c (main): Likewise.
31348         * tests/test-gethostname.c (main): Likewise.
31349         * tests/test-getline.c (main): Likewise.
31350         * tests/test-netinet_in.c (main): Likewise.
31351         * tests/test-select.c (open_server_socket, main): Likewise.
31352         * tests/test-select-stdin.c (main): Likewise.
31353         * tests/test-sockets.c (main): Likewise.
31354         * tests/test-strsignal.c (main): Likewise.
31355         * tests/test-sys_select.c (main): Likewise.
31356         * tests/test-sys_socket.c (main): Likewise.
31357         * tests/test-u64.c (main): Likewise.
31358         * tests/test-xfprintf-posix.c (main): Likewise.
31359         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
31360
31361         sockets: avoid compiler warning
31362         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
31363
31364         maint: detect usage(1) and other suspicious exits
31365         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
31366
31367 2009-10-29  Jim Meyering  <meyering@redhat.com>
31368
31369         timespec: long-to-int truncation could make timespec_cmp malfunction
31370         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
31371         a multiple of 2^32 nanoseconds as no difference.
31372
31373 2009-10-28  Jim Meyering  <meyering@redhat.com>
31374
31375         fprintftime: wrap macro code argument in "do {...} while(0)"
31376         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
31377         cpy macro must be a statement that can be followed by a semicolon.
31378         Now that the else clause contains a comment and is hence longer
31379         than one line, I require curly braces.  That in turn requires
31380         that we wrap this code block in the standard do...while(0).
31381
31382         fprintftime: remove stray semicolon from previous change
31383         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
31384
31385         fprintftime: avoid a warning about ignored fwrite return value
31386         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
31387         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
31388         that is unsafe.
31389         * modules/fprintftime (Depends-on): Add ignore-value.
31390
31391         exclude: avoid an unwarranted warning
31392         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
31393
31394 2009-10-27  Eric Blake  <ebb9@byu.net>
31395
31396         fseek: avoid compilation failure when fflush is replaced
31397         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
31398         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
31399         module is in use.
31400         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
31401         module is not in use; since REPLACE_FSEEK worked otherwise.
31402         (GNULIB_FTELLO): Likewise for ftell.
31403         Reported by Ian Beckwith and others.
31404
31405 2009-10-27  Bruno Haible  <bruno@clisp.org>
31406
31407         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
31408         Reported by Jim Meyering.
31409
31410 2009-10-27  Jim Meyering  <jim@meyering.net>
31411             Bruno Haible  <bruno@clisp.org>
31412
31413         Avoid warning despite dropping the return value of fwrite.
31414         * lib/unicodeio.c: Include ignore-value.h.
31415         (fwrite_success_callback): Explicitly ignore fwrite's return value.
31416         * modules/unicodeio (Depends-on): Add ignore-value.
31417
31418 2009-10-26  Eric Blake  <ebb9@byu.net>
31419
31420         areadlinkat: fix fallback path
31421         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
31422         pointer and zero.
31423
31424 2009-10-22  Pádraig Brady  <P@draigBrady.com>
31425
31426         Use a better IO block size for modern systems
31427         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
31428         * lib/md2.c: Likewise.
31429         * lib/md4.c: Likewise.
31430         * lib/md5.c: Likewise.
31431         * lib/sha1.c: Likewise.
31432         * lib/sha256.c: Likewise.
31433         * lib/sha512.c: Likewise.
31434
31435 2009-10-22  Eric Blake  <ebb9@byu.net>
31436
31437         tests: avoid several compiler warnings
31438         * tests/test-getcwd.c (main): Avoid buffer underflow.
31439         * tests/test-getdate.c (main): String literals are not safe with
31440         putenv, so use setenv.  Declare unused argument.
31441         * modules/getdate-tests (Depends-on): Add setenv.
31442         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
31443         problems with string literals in char *.
31444         * tests/test-hash.c (main): Avoid shadowing declaration.
31445         (insert_new): Treat string literals as char const *.
31446         * tests/test-getopt.h (test_getopt): Likewise.
31447         (getopt_loop): Alter types to minimize casting elsewhere.
31448         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
31449         (test_getopt_long_posix): Likewise.
31450         (do_getopt_long): Add wrapper to minimize casting.
31451         * tests/test-atexit.c (clear_temp_file): Use void.
31452         * tests/test-areadlink-with-size.c (main): Declare unused
31453         arguments.
31454         * tests/test-areadlink.c (main): Likewise.
31455         * tests/test-areadlinkat-with-size.c (main): Likewise.
31456         * tests/test-areadlinkat.c (main): Likewise.
31457         * tests/test-canonicalize-lgpl.c (main): Likewise.
31458         * tests/test-canonicalize.c (main): Likewise.
31459         * tests/test-dirent-safer.c (main): Likewise.
31460         * tests/test-dirname.c (main): Likewise.
31461         * tests/test-dup2.c (main): Likewise.
31462         * tests/test-fchdir.c (main): Likewise.
31463         * tests/test-fcntl-h.c (main): Likewise.
31464         * tests/test-fcntl-safer.c (main): Likewise.
31465         * tests/test-fdopendir.c (main): Likewise.
31466         * tests/test-fdutimensat.c (main): Likewise.
31467         * tests/test-fflush.c (main): Likewise.
31468         * tests/test-filenamecat.c (main): Likewise.
31469         * tests/test-filevercmp.c (main): Likewise.
31470         * tests/test-fopen-safer.c (main): Likewise.
31471         * tests/test-fopen.c (main): Likewise.
31472         * tests/test-fpending.c (main): Likewise.
31473         * tests/test-fpurge.c (main): Likewise.
31474         * tests/test-freading.c (main): Likewise.
31475         * tests/test-fstatat.c (main): Likewise.
31476         * tests/test-fsync.c (main): Likewise.
31477         * tests/test-futimens.c (main): Likewise.
31478         * tests/test-getndelim2.c (main): Likewise.
31479         * tests/test-gettimeofday.c (main): Likewise.
31480         * tests/test-getopt.c (main): Likewise.
31481         * tests/test-i-ring.c (main): Likewise.
31482         * tests/test-inttypes.c (main): Likewise.
31483         * tests/test-link.c (main): Likewise.
31484         * tests/test-lstat.c (main): Likewise.
31485         * tests/test-math.c (main): Likewise.
31486         * tests/test-md5.c (main): Likewise.
31487         * tests/test-memchr2.c (main): Likewise.
31488         * tests/test-memrchr.c (main): Likewise.
31489         * tests/test-mkdir.c (main): Likewise.
31490         * tests/test-mkdirat.c (main): Likewise.
31491         * tests/test-mkfifoat.c (main): Likewise.
31492         * tests/test-open.c (main): Likewise.
31493         * tests/test-openat-safer.c (main): Likewise.
31494         * tests/test-openat.c (main): Likewise.
31495         * tests/test-quotearg.c (main): Likewise.
31496         * tests/test-rawmemchr.c (main): Likewise.
31497         * tests/test-readlink.c (main): Likewise.
31498         * tests/test-remove.c (main): Likewise.
31499         * tests/test-rename.c (main): Likewise.
31500         * tests/test-renameat.c (main): Likewise.
31501         * tests/test-rmdir.c (main): Likewise.
31502         * tests/test-sha1.c (main): Likewise.
31503         * tests/test-signal.c (main): Likewise.
31504         * tests/test-sigaction.c (main): Likewise.
31505         * tests/test-stat.c (main): Likewise.
31506         * tests/test-stat-time.c (main): Likewise.
31507         * tests/test-stddef.c (main): Likewise.
31508         * tests/test-stdint.c (main): Likewise.
31509         * tests/test-stdio.c (main): Likewise.
31510         * tests/test-stdlib.c (main): Likewise.
31511         * tests/test-strchrnul.c (main): Likewise.
31512         * tests/test-strerror.c (main): Likewise.
31513         * tests/test-string.c (main): Likewise.
31514         * tests/test-strtod.c (main): Likewise.
31515         * tests/test-strverscmp.c (main): Likewise.
31516         * tests/test-symlink.c (main): Likewise.
31517         * tests/test-symlinkat.c (main): Likewise.
31518         * tests/test-sys_stat.c (main): Likewise.
31519         * tests/test-sys_time.c (main): Likewise.
31520         * tests/test-time.c (main): Likewise.
31521         * tests/test-unistd.c (main): Likewise.
31522         * tests/test-unlink.c (main): Likewise.
31523         * tests/test-unlinkat.c (main): Likewise.
31524         * tests/test-utimens.c (main): Likewise.
31525         * tests/test-utimensat.c (main): Likewise.
31526         * tests/test-version-etc.c (main): Likewise.
31527         * tests/test-wchar.c (main): Likewise.
31528         * tests/test-wctype.c (main): Likewise.
31529         * tests/test-xprintf-posix.c (main): Likewise.
31530         * tests/test-posixtm.c (main): Likewise.
31531         (STREQ): Delete unused macro.
31532         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
31533         shadowed variables.
31534         * tests/test-memchr.c (main): Likewise.
31535
31536 2009-10-21  Eric Blake  <ebb9@byu.net>
31537
31538         areadlinkat: avoid failure on older glibc
31539         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
31540         rather than mis-comparing 0 against FUNC_RESULT of char*.
31541
31542 2009-10-21  Bruno Haible  <bruno@clisp.org>
31543
31544         * modules/stpncpy (License): Relicense under LGPLv2+.
31545         Reported by David Lutterkort <lutter@redhat.com>.
31546
31547 2009-10-20  Eric Blake  <ebb9@byu.net>
31548
31549         utimensat: work around Solaris 9 bug
31550         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
31551         has trailing slash bugs.
31552         * tests/test-lutimens.h (test_lutimens): Enhance test.
31553         * tests/test-utimens.h (test_utimens): Likewise.
31554         * doc/posix-functions/utime.texi (utime): Enhance documentation.
31555         * doc/posix-functions/utimes.texi (utimes): Likewise.
31556         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31557         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
31558         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
31559         * doc/posix-functions/futimens.texi (futimens): Likewise.
31560
31561         fdutimensat: new module
31562         * modules/fdutimensat: New file.
31563         * lib/fdutimensat.c (fdutimensat): Likewise.
31564         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
31565         * MODULES.html.sh (File system functions): Mention module.
31566         * modules/fdutimensat-tests: New test.
31567         * tests/test-fdutimensat.c: Likewise.
31568
31569         doc: regenerate INSTALL
31570         * doc/INSTALL: Reflect recent autoconf update.
31571         * doc/INSTALL.ISO: Likewise.
31572         * doc/INSTALL.UTF-8: Likewise.
31573
31574 2009-10-20  Pádraig Brady  <P@draigBrady.com>
31575
31576         acl: warn if ACL support is not detected
31577         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
31578
31579 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
31580
31581         * lib/nproc.h: Add extern "C" block for C++.
31582
31583 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
31584             Bruno Haible  <bruno@clisp.org>
31585
31586         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
31587         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
31588         * doc/posix-functions/isalpha.texi: Likewise.
31589         * doc/posix-functions/isblank.texi: Likewise.
31590         * doc/posix-functions/iscntrl.texi: Likewise.
31591         * doc/posix-functions/isdigit.texi: Likewise.
31592         * doc/posix-functions/isgraph.texi: Likewise.
31593         * doc/posix-functions/islower.texi: Likewise.
31594         * doc/posix-functions/isprint.texi: Likewise.
31595         * doc/posix-functions/ispunct.texi: Likewise.
31596         * doc/posix-functions/isspace.texi: Likewise.
31597         * doc/posix-functions/isupper.texi: Likewise.
31598         * doc/posix-functions/isxdigit.texi: Likewise.
31599
31600 2009-10-18  Bruno Haible  <bruno@clisp.org>
31601
31602         Tests for module 'isblank'.
31603         * modules/isblank-tests: New file.
31604         * tests/test-isblank.c: New file.
31605
31606         New module 'isblank'.
31607         * lib/isblank.c: New file.
31608         * m4/isblank.m4: New file.
31609         * modules/isblank: New file.
31610         * doc/posix-functions/isblank.texi: Mention the new module.
31611
31612 2009-10-18  Bruno Haible  <bruno@clisp.org>
31613
31614         New module 'ctype'.
31615         * lib/ctype.in.h: New file.
31616         * m4/ctype.m4: New file.
31617         * modules/ctype: New file.
31618         * doc/posix-headers/ctype.texi: Mention the new module.
31619
31620 2009-10-18  Jim Meyering  <meyering@redhat.com>
31621
31622         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
31623         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
31624         right after its initialization, rather than farther down.
31625         Keeping these in close proximity makes it easier to ensure
31626         that each such variable is initialized.  E.g.,
31627
31628             LIB_CLOCK_GETTIME=
31629             AC_SUBST([LIB_CLOCK_GETTIME])
31630
31631         This change also increments these serial numbers.
31632         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
31633         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31634         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31635
31636 2009-10-18  Bruno Haible  <bruno@clisp.org>
31637
31638         Don't let environment variables perturb build.
31639         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
31640         (gl_PREREQ_GETHRXTIME): ... not here.
31641
31642 2009-10-18  Bruno Haible  <bruno@clisp.org>
31643
31644         Avoid symlink attack in localcharset module.
31645         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
31646         (O_NOFOLLOW): Define fallback.
31647         (get_charset_aliases): Don't open the file if it is a symbolic link.
31648         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
31649         gl_FCNTL_H.
31650         (gl_FCNTL_H): Require it.
31651         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
31652         * modules/localcharset (Files): Add m4/fcntl_h.m4.
31653         Reported by Fergal Glynn <fglynn@veracode.com>.
31654
31655 2009-10-18  Bruno Haible  <bruno@clisp.org>
31656
31657         Implement nproc for mingw.
31658         * lib/nproc.c: Include <windows.h>
31659         (num_processors): On native Windows platforms, try GetSystemInfo.
31660
31661 2009-10-18  Bruno Haible  <bruno@clisp.org>
31662
31663         Implement nproc for IRIX.
31664         * lib/nproc.c: Include <sys/sysmp.h>.
31665         (num_processors): On IRIX systems, try sysmp.
31666         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
31667
31668 2009-10-18  Bruno Haible  <bruno@clisp.org>
31669
31670         Implement nproc for HP-UX.
31671         * lib/nproc.c: Include <sys/pstat.h>
31672         (num_processors): On HP-UX systems, try pstat_getdynamic.
31673         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
31674         pstat_getdynamic.
31675
31676 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
31677             Bruno Haible  <bruno@clisp.org>
31678
31679         Implement nproc for NetBSD, OpenBSD.
31680         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
31681         (ARRAY_SIZE): New macro.
31682         (num_processors): On BSD systems, try sysctl of HW_NCPU.
31683         * m4/nproc.m4: New file.
31684         * modules/nproc (Files): Add m4/nproc.m4.
31685         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
31686         (Makefile.am): Instead, augment lib_SOURCES.
31687
31688 2009-10-18  Bruno Haible  <bruno@clisp.org>
31689
31690         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
31691         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
31692         sys/param.h.
31693
31694 2009-10-16  Eric Blake  <ebb9@byu.net>
31695
31696         utimensat: new module
31697         * modules/utimensat: New file.
31698         * lib/utimensat.c (utimensat): Likewise.
31699         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31700         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
31701         so we can work around Linux bugs.
31702         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31703         * modules/sys_stat (Makefile.am): Substitute them.
31704         * lib/sys_stat.in.h (utimensat): Declare it.
31705         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31706         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31707         * modules/utimensat-tests: New test.
31708         * tests/test-utimensat.c: Likewise.
31709
31710         utimens: let lutimens work on non-symlinks
31711         * lib/utimens.c (lutimens): Fall back to utimens rather than
31712         failing with ENOSYS, when file is not a symlink.
31713         (utimens): Reduce redirection.
31714         * tests/test-lutimens.h (test_lutimens): Update test to cover
31715         non-symlinks.
31716         * tests/test-utimens.h (test_utimens): Update test to cover
31717         symlinks.
31718         * tests/test-utimens.c (main): Update caller.
31719
31720         utimens: cache whether utimensat syscall works
31721         * lib/utimens.c (utimensat_works_really): New cache variable.
31722         (fdutimens, lutimens): Use it to avoid failing syscall.
31723
31724         test-stat-time, test-utimens: improve portability
31725         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
31726         ext4 on alpha, and for cygwin.
31727         * tests/test-utimens-common.h: New file.
31728         (nap): Factor delays into single function.
31729         * tests/test-lutimens.h (test_lutimens): Use new header.
31730         * tests/test-futimens.h (test_futimens): Likewise.
31731         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
31732         timestamps to occur from same machine, as was done previously for
31733         test_utimens.
31734         * modules/utimens-tests (Files): Ship new file.
31735         * modules/futimens-tests (Files): Likewise.
31736         Reported in part by Jim Meyering.
31737
31738         sys_stat: sort replacement declarations
31739         * lib/sys_stat.in.h: Sort declarations.
31740         * lib/futimens.c (futimens): Fix typo.
31741
31742 2009-10-15  Jim Meyering  <meyering@redhat.com>
31743
31744         don't let environment settings perturb build
31745         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
31746         could cause a configure-time and/or build-time malfunction.
31747         Typically, a configure-time function-in-library test is performed
31748         via code like this:
31749
31750           LIB_VAR=
31751           AC_SUBST([LIB_VAR])
31752           prefix_saved_LIBS=$LIBS
31753             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
31754                        [test "$ac_cv_search_FUNC" = "none required" ||
31755                         LIB_VAR=$ac_cv_search_FUNC])
31756           LIBS=$prefix_saved_LIBS
31757
31758         However, in each of the files affected by this change, the LIB_VAR=
31759         initialization was omitted.  Thus, when set in the environment, its
31760         value would propagate into generated Makefiles when FUNC is not found
31761         in LIB_NAME.
31762         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
31763         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31764         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31765
31766 2009-10-14  Eric Blake  <ebb9@byu.net>
31767
31768         fchdir: avoid infinite recursion in mingw
31769         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
31770         recursing.
31771
31772         test-stat-time: port to mingw
31773         * tests/test-stat-time.c (force_unlink): Return a value.
31774         (test_ctime) [W32]: Fix compilation error.
31775         (nap): Don't call usleep with too large an argument.  Use
31776         force_unlink.
31777         * doc/pastposix-functions/usleep.texi (usleep): Document the
31778         portability issue.
31779
31780 2009-10-13  Jim Meyering  <meyering@redhat.com>
31781
31782         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
31783         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
31784         * modules/pipe-filter-ii: Likewise.
31785         * modules/sys_socket-tests: Likewise.
31786         * modules/tsearch-tests: Likewise.
31787         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
31788         (check): Depend on it.
31789
31790 2009-10-12  Eric Blake  <ebb9@byu.net>
31791
31792         utimens-tests: port to NFS file systems
31793         * tests/test-utimens.h (test_utimens): Refactor utimecmp
31794         comparisons to avoid spurious failures from timestamp drift
31795         between NFS machines.
31796
31797 2009-10-12  Eric Blake  <ebb9@byu.net>
31798
31799         stat-time-tests: minor cleanups
31800         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
31801         * tests/test-stat-time.c (nap): Separate assignment from call.
31802         Suggested by Paolo Bonzini and Bruno Haible.
31803
31804         sys_stat: guarantee struct timespec
31805         * lib/sys_stat.in.h (includes): Always include <time.h>
31806         * modules/sys_stat (Depends-on): Add time.
31807         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
31808         mode_t permission values.
31809         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
31810         get at subsecond timestamps.
31811
31812 2009-10-10  Eric Blake  <ebb9@byu.net>
31813
31814         futimens: new module
31815         * modules/futimens: New file.
31816         * lib/futimens.c (futimens): Likewise.
31817         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
31818         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
31819         we can work around Linux bugs.
31820         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31821         * modules/sys_stat (Makefile.am): Substitute them.
31822         * lib/sys_stat.in.h (futimens): Declare it.
31823         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31824         * doc/posix-functions/futimens.texi (futimens): Likewise.
31825         * modules/futimens-tests: New test.
31826         * tests/test-futimens.c: Likewise.
31827
31828         utimens: introduce fdutimens
31829         * lib/utimens.h (fdutimens): New prototype.
31830         * lib/utimens.c (gl_futimens): Move guts...
31831         (fdutimens): ...to new interface.
31832         * tests/test-utimens.c (do_fdutimens): Use it.
31833
31834         utimens: add UTIME_NOW and UTIME_OMIT support
31835         * lib/utimens.c (validate_timespec, update_timespec): New helper
31836         functions.
31837         (gl_futimens, lutimens): Use them.
31838         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
31839         stdbool, sys_stat.
31840         (Link): Mention resulting library dependency.
31841         * modules/utimecmp (Link): Likewise.
31842         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
31843         (Makefile.am): Pick up library dependency.
31844         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
31845         definition.
31846         * tests/test-sys_stat.c: Test the definitions.
31847         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
31848         * NEWS: Document library dependency.
31849
31850         utimecmp: support symlink timestamps
31851         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
31852         hashing when possible.  Use pathconf when available.
31853         (SYSCALL_RESOLUTION): Recognize tighter resolution.
31854         * modules/utimecmp (Depends-on): Add lstat.
31855
31856         utimens: add lutimens interface
31857         * lib/utimens.c (lutimens): New function.
31858         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
31859         * lib/utimens.h (lutimens): Declare new interface.
31860         * tests/test-utimens.c (main): Enhance test.
31861         * tests/test-lutimens.h (test_lutimens): New file.
31862         * modules/utimens-tests (Files): Distribute it.
31863         (Depends-on): Add symlink.
31864         (configure.ac): Check for usleep.
31865
31866         utimens: validate futimens usage
31867         * lib/utimens.c (gl_futimens): Require valid fd up front, using
31868         fewer syscalls on failure later on.  Avoid compiler warning on
31869         mingw.
31870         * modules/utimens (Depends-on): Add dup2.
31871
31872         utimens: add test
31873         * modules/utimens-tests: New test.
31874         * tests/test-utimens.h: New file.
31875         * tests/test-futimens.h: Likewise.
31876         * tests/test-utimens.c: Likewise.
31877
31878         doc: mention timestamp portability issues
31879         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
31880         instead.
31881         * doc/posix-functions/utime.texi (utime): Likewise.
31882         * doc/posix-functions/utimes.texi (utimes): Likewise.
31883         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
31884         instead.
31885         * doc/posix-functions/futimens.texi (futimens): Mention utimens
31886         module.
31887         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31888         Mention weakness with symlink timestamps.
31889         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
31890         to utimensat/futimens instead.
31891         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
31892
31893         test-dup2: enhance test
31894         * tests/test-dup2.c (main): Also check AT_FDCWD.
31895
31896         test-stat-time: avoid more spurious failures
31897         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
31898         xfs; and avoid race if the two timestamps cross quantization edge.
31899
31900         relocatable: prefer 'file system' over 'filesystem'
31901         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
31902         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
31903         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
31904         * doc/relocatable.texi (Enabling Relocatability): Likewise.
31905         * lib/relocatable.c (compute_curr_prefix): Likewise.
31906
31907 2009-10-10  Jim Meyering  <meyering@redhat.com>
31908
31909         stat-time-tests: check for the usleep function
31910         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
31911
31912 2009-10-10  Bruno Haible  <bruno@clisp.org>
31913
31914         * modules/xnanosleep: Put the Link section after the Include section.
31915
31916 2009-10-09  Eric Blake  <ebb9@byu.net>
31917
31918         dup2: work around FreeBSD 6.1 bug
31919         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
31920         * doc/posix-functions/dup2.texi (dup2): Document it.
31921         Reported by Nelson H. F. Beebe and Jim Meyering.
31922
31923         test-stat-time: port to buggy NFS clients
31924         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
31925         (test_ctime): Also skip test if mtime and ctime are skewed.
31926
31927         maint: prefer 'file system' over 'filesystem'
31928         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31929         * doc/posix-functions/lstat.texi (lstat): Likewise.
31930         * lib/file-has-acl.c (file_has_acl): Likewise.
31931         * lib/fwriteerror.c [TEST]: Likewise.
31932         * tests/test-areadlink.h (test_areadlink): Likewise.
31933         * tests/test-areadlinkat-with-size.c (main): Likewise.
31934         * tests/test-areadlinkat.c (main): Likewise.
31935         * tests/test-canonicalize-lgpl.c (main): Likewise.
31936         * tests/test-canonicalize.c (main): Likewise.
31937         * tests/test-fstatat.c (main): Likewise.
31938         * tests/test-linkat.c (main): Likewise.
31939         * tests/test-lstat.h (test_lstat_func): Likewise.
31940         * tests/test-mkdir.h (test_mkdir): Likewise.
31941         * tests/test-readlink.h (test_readlink): Likewise.
31942         * tests/test-remove.c (main): Likewise.
31943         * tests/test-rename.h (test_rename): Likewise.
31944         * tests/test-renameat.c (main): Likewise.
31945         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31946         * tests/test-symlink.h (test_symlink): Likewise.
31947         * tests/test-symlinkat.c (main): Likewise.
31948         * tests/test-unlink.h (test_unlink_func): Likewise.
31949         * tests/test-unlinkat.c (main): Likewise.
31950
31951         maint: make realtime library usage explicit
31952         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
31953         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
31954         * modules/settime (Link): Likewise.
31955         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
31956
31957         test-stat-time: speed up execution
31958         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
31959         warning on mingw.
31960         (nap): New helper function.
31961         (prepare_test): Use it to reduce sleep time.
31962         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
31963         execution.
31964         * modules/stat-time-tests (configure.ac): Check for usleep.
31965
31966 2009-10-09  Jim Meyering  <meyering@redhat.com>
31967
31968         selinux-h: always use getfilecon wrappers
31969         * lib/getfilecon.c: New file.
31970         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
31971         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
31972         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
31973         (fgetfilecon): Provide a stub.
31974         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31975         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31976         file unconditionally.
31977         When <selinux/selinux.h> is found, arrange to use wrappers.
31978         * modules/selinux-h (Files): Add getfilecon.c.
31979         (Makefile.am): Substitute include-next-related bits
31980         into the now-always-generated selinux/selinux.h file.
31981         * doc/glibc-functions/lgetfilecon.texi: New file.
31982         * doc/glibc-functions/fgetfilecon.texi: New file.
31983         * doc/glibc-functions/getfilecon.texi: New file.
31984         * doc/glibc-functions/getfilecon-desc.texi: New file.
31985         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31986         which to pull in the new files.
31987         * MODULES.html.sh (Misc): Add selinux-h.
31988
31989 2009-10-08  Jim Meyering  <meyering@redhat.com>
31990
31991         unistd: fix comment typo
31992         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31993
31994 2009-10-08  Eric Blake  <ebb9@byu.net>
31995
31996         areadlink: use SIZE_MAX consistently
31997         * modules/areadlink (Depends-on): Add stdint.
31998         * modules/areadlink-with-size (Depends-on): Likewise.
31999         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
32000         gives NULL; drop sys/types, since unistd gives size_t; and add
32001         stdint for SIZE_MAX.
32002         (SIZE_MAX): Rely on headers.
32003         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
32004         and add stdint.
32005         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
32006         (SIZE_MAX): Likewise.
32007         (INITIAL_BUF_SIZE): Turn into enum.
32008         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
32009
32010 2009-10-08  Jim Meyering  <meyering@redhat.com>
32011
32012         areadlinkat: avoid compilation failure
32013         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
32014         Fix typo in comment.
32015
32016 2009-10-07  Eric Blake  <ebb9@byu.net>
32017
32018         areadlinkat-with-size: new module
32019         * modules/areadlinkat-with-size: New module.
32020         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
32021         * lib/areadlink.h (areadlinkat): Declare it.
32022         * MODULES.html.sh (File system functions): Mention it.
32023         * modules/areadlinkat-with-size-tests: New test.
32024         * tests/test-areadlinkat-with-size.c: New file.
32025
32026         xreadlinkat: new module
32027         * modules/xreadlinkat: New module.
32028         * lib/xreadlinkat.c (xreadlinkat): New file.
32029         * lib/xreadlink.h (xreadlinkat): Declare it.
32030         * MODULES.html.sh (File system functions): Mention it.
32031
32032         areadlinkat: new module
32033         * lib/at-func.c (FUNC_FAIL): New define.
32034         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
32035         * modules/areadlinkat: New module.
32036         * lib/linkat.c (areadlinkat): Move...
32037         * lib/areadlinkat.c (areadlinkat): ...to new file.
32038         * lib/areadlink.h (areadlinkat): Declare it.
32039         * modules/linkat (Depends-on): Add areadlinkat.
32040         * MODULES.html.sh (File system functions): Mention it.
32041         * modules/areadlinkat-tests: New test.
32042         * tests/test-areadlinkat.c: New file.
32043
32044         areadlink, areadlink-with-size: add tests
32045         * modules/areadlink-tests: New test.
32046         * modules/areadlink-with-size-tests: Likewise.
32047         * tests/test-areadlink.h: New file.
32048         * tests/test-areadlink.c: Likewise.
32049         * tests/test-areadlink-with-size.c: Likewise.
32050
32051         maint: minor cleanups
32052         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
32053         _UNUSED_PARAMETER_ instead.
32054         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
32055         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
32056         * modules/linkat-tests (Files): Distribute test-link.h.
32057
32058         openat, utimens: whitespace cleanup
32059         * lib/openat.c: Prefer space throughout, rather than mix of 8
32060         spaces vs. tabs.
32061         * lib/at-func.c: Likewise.
32062         * lib/utimens.c: Likewise.
32063
32064         openat: avoid using wrong fd
32065         * lib/openat.c (openat_permissive): Reject user's fd if saving the
32066         working directory chooses same fd.
32067         * lib/at-func.c (AT_FUNC_NAME): Likewise.
32068
32069         mkdir, mkdirat: fix cygwin 1.5.x bug
32070         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
32071         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
32072         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
32073         bug.
32074         (gl_PREREQ_MKDIR): Delete unused macro.
32075         * modules/mkdir (Files): Track file rename.
32076         (configure.ac): Update macro name.
32077         * modules/openat (Depends-on): Add mkdir.
32078         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
32079
32080         mkdir, mkdirat: add tests
32081         * modules/mkdir-tests: New test.
32082         * tests/test-mkdir.h: New file.
32083         * tests/test-mkdir.c: Likewise.
32084         * tests/test-mkdirat.c: Likewise.
32085         * modules/openat-tests (Files): Add new files.
32086         (Makefile.am): Run new test.
32087
32088 2009-10-06  Eric Blake  <ebb9@byu.net>
32089
32090         doc: tweak *at function documentation
32091         * doc/posix-functions/faccessat.texi (faccessat): Mention
32092         known issue with replacement.
32093         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
32094         * doc/posix-functions/linkat.texi (linkat): Likewise.
32095         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32096         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32097         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32098         * doc/posix-functions/renameat.texi (renameat): Likewise.
32099         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32100
32101         openat: fix GNU/Hurd bug in unlinkat
32102         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
32103         broken.
32104         * doc/posix-functions/unlink.texi (unlink): Document this.
32105         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
32106
32107         fdopendir: fix GNU/Hurd bug
32108         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
32109         allowing non-directory fds.
32110         * lib/fdopendir.c (rpl_fdopendir): Work around it.
32111         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32112         * modules/dirent (Makefile.am): Substitute it.
32113         * lib/dirent.in.h (fdopendir): Declare replacement.
32114         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
32115         * tests/test-fdopendir.c (main): Test something other than
32116         /dev/null, since on Hurd that behaves like a directory.
32117
32118         test-symlink: port to GNU/Hurd
32119         * tests/test-symlink.h (test_symlink): Relax expected errno.
32120
32121         doc: tweak more cygwin information
32122         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
32123         now compatible with glibc.
32124         * doc/posix-functions/getopt.texi (getopt): Likewise.
32125
32126         getopt-gnu: add another test
32127         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
32128         guarantee behavior relied on by m4.
32129         * tests/test-getopt.c (main): Use it.
32130         * modules/getopt-posix-tests (Depends-on): Add setenv.
32131         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
32132
32133         getopt: fix compilation on darwin
32134         * lib/getopt.in.h (includes): Leave breadcrumbs during system
32135         include.
32136         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
32137         Reported by Ludovic Courtès.
32138
32139 2009-10-06  Bruno Haible  <bruno@clisp.org>
32140
32141         * modules/size_max (Description): Discourage its use.
32142         Reported by Simon Josefsson.
32143
32144 2009-10-06  Jim Meyering  <meyering@redhat.com>
32145
32146         linkat: avoid compilation failure
32147         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
32148
32149 2009-10-05  Eric Blake  <ebb9@byu.net>
32150
32151         linkat: support Linux 2.6.17
32152         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
32153         linkat on Linux, but allow cache variable override.
32154         * lib/linkat.c (rpl_linkat): Define override.
32155         * modules/linkat (Depends-on): Add symlinkat.
32156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
32157         * modules/unistd (Makefile.am): Substitute it.
32158         * lib/unistd.in.h (linkat): Declare replacement.
32159         Reported by Pádraig Brady.
32160
32161         quotearg: port test to systems with C.UTF-8 locale
32162         * tests/test-quotearg.c (struct result_strings): Add another
32163         member, differentiating between C.ASCII and C.UTF-8 handling.
32164         (compare_strings): Add parameter.
32165         (main): Adjust all callers.
32166
32167         getopt: avoid clash with FreeBSD _getopt_internal
32168         * lib/getopt.in.h (_getopt_internal): Override the name.
32169         * lib/getopt_int.h (includes): Pick up any overrides.
32170         Reported by Reuben Thomas.
32171
32172         hash: allow C89 compilation
32173         * lib/hash.c (check_tuning): Move declaration before statement.
32174         Reported by Reuben Thomas.
32175
32176 2009-10-05  Karl Berry  <karl@gnu.org>
32177
32178         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
32179
32180 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
32181             Bruno Haible  <bruno@clisp.org>
32182
32183         * lib/uname.c (uname): Use a table-driven algorithm to compute
32184         Windows NT versions.
32185
32186 2009-10-04  Bruno Haible  <bruno@clisp.org>
32187
32188         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
32189         program_invocation_short_name.
32190         * modules/progname (configure.ac): Test for presence of
32191         program_invocation_short_name.
32192         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32193
32194 2009-10-04  Bruno Haible  <bruno@clisp.org>
32195
32196         * lib/progname.c (set_program_name): Fix comment.
32197         Reported by Jim Meyering.
32198
32199 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32200             Bruno Haible  <bruno@clisp.org>
32201
32202         * lib/uname.c: Include <string.h>.
32203         (uname): Do only one call to GetVersionEx in the common case.
32204
32205 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32206             Bruno Haible  <bruno@clisp.org>
32207
32208         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
32209         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
32210         (uname): Add support for Windows CE and various non-x86 CPU types.
32211
32212 2009-10-03  Bruno Haible  <bruno@clisp.org>
32213
32214         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
32215         invocation to tests/configure.ac.
32216         Reported by Ian Beckwith <ianb@erislabs.net>.
32217
32218 2009-10-02  Eric Blake  <ebb9@byu.net>
32219
32220         fchdir: avoid compiler warning
32221         * lib/fchdir.c (canonicalize_file_name)
32222         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
32223
32224         test-open: support mingw errno values
32225         * tests/test-open.h (test_open): Relax test.
32226         * tests/test-fopen.h (test_fopen): Likewise.
32227         * tests/test-openat-safer.c (main): Likewise.
32228
32229         open: fix opening directory on mingw
32230         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
32231
32232         test-open: on GNU/Hurd, /dev/null is a directory
32233         * tests/test-fopen.h (main): Rename...
32234         (test_fopen): ...to this.  Use a guaranteed non-directory when
32235         confirming open behavior on trailing slash.
32236         * tests/test-openat-safer.c (main): Likewise.
32237         * tests/test-open.h (main): Likewise....
32238         (test_open): ...to this.
32239         * tests/test-fopen.c (main): Adjust caller.
32240         * tests/test-fopen-safer.c (main): Likewise.
32241         * tests/test-open.c (main): Likewise.
32242         * tests/test-fcntl-safer.c (main): Likewise.
32243         Reported by Samuel Thibault.
32244
32245         rename, fchdir: don't ignore chdir failure
32246         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
32247         * lib/rename.c (rpl_rename) [W32]: Likewise.
32248         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
32249         an empty destination directory if source cannot be renamed,
32250         although there is still possibility for failure.
32251         * doc/posix-functions/rename.texi (rename): Document the race.
32252         Reported by Jim Meyering.
32253
32254         maint: cleanup whitespace in recent commits
32255         * lib/rename.c (rpl_rename): Remove tabs.
32256         * tests/test-link.h (test_link): Likewise.
32257         * lib/fchdir.c (get_name): Likewise.
32258         Reported by Jim Meyering.
32259
32260 2009-10-02  Ben Pfaff  <blp@gnu.org>
32261
32262         relocatable-prog-wrapper: Add missing dependency on
32263         double-slash-root.
32264         * modules/relocatable-prog-wrapper: Add dependency.
32265         Reported by Ian Beckwith <ianb@erislabs.net>.
32266
32267 2009-10-02  Eric Blake  <ebb9@byu.net>
32268
32269         renameat: fix Solaris bugs
32270         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
32271         needed fixing.
32272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
32273         * modules/stdio (Makefile.am): Substitute it.
32274         * lib/stdio.in.h (renameat): Declare replacement.
32275         * lib/renameat.c (rpl_renameat): Implement fix.
32276
32277         renameat: new module
32278         * modules/renameat: New file.
32279         * lib/renameat.c (renameat): Likewise.
32280         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
32281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32282         * modules/stdio (Makefile.am): Substitute them.
32283         * lib/stdio.in.h (renameat): Declare it.
32284         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32285         * doc/posix-functions/renameat.texi (renameat): Likewise.
32286         * modules/renameat-tests: New test.
32287         * tests/test-renameat.c: Likewise.
32288
32289         rename: fix mingw bugs
32290         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
32291         directory overwrite bugs.
32292
32293         rename: fix another cygwin 1.5 bug
32294         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
32295         checks.
32296         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
32297         unnecessary cygwin workarounds.  Also work around bug with moving
32298         full directory onto an empty one.
32299         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
32300
32301         rename-dest-slash: merge into rename module
32302         * modules/rename-dest-slash (Status): Mark obsolete.
32303         (Depends-on): Add rename.
32304         (Files): Let rename do it all.
32305         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
32306         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
32307         * m4/rename-dest-slash.m4: ...so this file can be deleted.
32308         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
32309         * lib/rename.c (rpl_rename): Update comments.
32310
32311         rename: fix cygwin 1.5.x bugs
32312         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
32313         * lib/rename.c (rpl_rename): Work around them.
32314         * modules/rename (Depends-on): Add same-inode.
32315
32316         rename: fix Solaris 10 bug
32317         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
32318         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
32319         was the only bug.
32320
32321         rename: fix Solaris 9 bug
32322         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
32323         on non-directory.  Avoid calling exit.
32324         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
32325         strdup.
32326         * modules/rename-tests (Depends-on): Drop lstat.
32327         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
32328         (gl_PREREQ_RENAME): Delete unused macro.
32329
32330         rename-dest-slash: fix NetBSD bug
32331         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
32332         links.
32333         * modules/rename-dest-slash (Depends-on): Add same-inode.
32334
32335         rename-tests: new test, exposes several platform bugs
32336         * modules/rename-tests: New file.
32337         * tests/test-rename.h: Likewise.
32338         * tests/test-rename.c: Likewise.
32339         * doc/posix-functions/rename.texi (rename): Improve documentation,
32340         including bugs that will eventually be fixed in gnulib.
32341
32342 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
32343
32344         * lib/uname.c: Include <stdlib.h>
32345         (uname): Assume version info is available.
32346
32347 2009-10-02  Jim Meyering  <meyering@redhat.com>
32348
32349         gnu-web-doc-update: correct --help output
32350         * build-aux/gnu-web-doc-update: Make --help output relevant.
32351
32352         gnu-web-doc-update: add standard options
32353         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
32354
32355         gnu-web-doc-update: New module.
32356         Use this script to automatically update the on-line web documentation
32357         for your GNU project at http://www.gnu.org/software/$pkg/manual/
32358         * modules/gnu-web-doc-update: New file, from coreutils.
32359         * build-aux/gnu-web-doc-update: New script.
32360
32361 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
32362
32363         link: LoadLibrary is not needed.
32364         * lib/link.c: Use GetModuleHandle.
32365
32366 2009-10-01  Eric Blake  <ebb9@byu.net>
32367
32368         getopt: bump serial number
32369         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
32370         change.
32371
32372         tests: tighten link, rmdir, and remove tests
32373         * tests/test-link.h (includes): No need to use <config.h> here.
32374         Clean up if directory hard link was created, otherwise test for
32375         trailing '.'.
32376         * tests/test-linkat.c (main): Simplify.
32377         * tests/test-remove.c (main): Enhance test for trailing '.'.
32378         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32379
32380 2009-10-01  Jim Meyering  <meyering@redhat.com>
32381
32382         maint.mk: requiring "make major" was annoying, for a "minor" release.
32383         What is intended is "stable", to contrast with alpha and beta,
32384         so require "make stable", not "make major".
32385         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
32386         (get_tool_versions): Likewise.
32387         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
32388
32389 2009-09-30  Ben Pfaff  <blp@gnu.org>
32390
32391         Fix broken build of replacement for Windows tmpfile().
32392         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
32393         flags argument added along with the 'mkostemp' module.
32394
32395 2009-09-28  Bruno Haible  <bruno@clisp.org>
32396
32397         Avoid identifier clash with POSIX function 'remove' defined as a macro.
32398         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
32399         to 'remove_elt'.
32400         (gl_list_remove): Update.
32401         * lib/gl_list.c (gl_list_remove): Update.
32402         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
32403         to 'remove_elt'.
32404         (gl_oset_remove): Update.
32405         * lib/gl_list.c (gl_oset_remove): Update.
32406         Reported by Eric Blake.
32407
32408 2009-09-28  Eric Blake  <ebb9@byu.net>
32409
32410         doc: mention yet more cygwin 1.7 status
32411         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
32412         cygwin.
32413         * doc/glibc-functions/execvpe.texi (execvpe): New file.
32414         * doc/gnulib.texi (Glibc unistd.h): Mention it.
32415
32416         argp: fix test failure
32417         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
32418         that are not upper-case.  Pass correct range to tolower.
32419
32420 2009-09-27  Jim Meyering  <meyering@redhat.com>
32421
32422         test-yesno: work around sparc-dash here-document infelicity
32423         Without this change, the literal \177 byte in a here document
32424         would make dash 0.5.5.1-3 access uninitialized memory.
32425         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
32426         Instead, use a marker, "@", and filter through tr to create the desired
32427         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
32428
32429 2009-09-27  Bruno Haible  <bruno@clisp.org>
32430
32431         Disable untested support for new flavours of ACLs on AIX.
32432         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
32433         progress.
32434         * lib/set-mode-acl.c (qset_acl): Likewise.
32435
32436 2008-12-07  Bruno Haible  <bruno@clisp.org>
32437
32438         Add support for new flavours of ACLs on AIX. (Untested.)
32439         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
32440         (file_has_acl): Add support for newer AIX.
32441         * lib/set-mode-acl.c (qset_acl): Likewise.
32442         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
32443         Rainer Tammer <tammer@tammer.net>.
32444
32445 2009-09-26  Eric Blake  <ebb9@byu.net>
32446
32447         argp: fix compilation of getopt
32448         * lib/getopt.in.h (includes): Use different guard than glibc.
32449         Reported by Sergey Poznyakoff.
32450
32451         doc: mention more cygwin 1.7 status
32452         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
32453         bug.
32454         * doc/posix-functions/execl.texi (execl): Likewise.
32455         * doc/posix-functions/execle.texi (execle): Likewise.
32456         * doc/posix-functions/execlp.texi (execlp): Likewise.
32457         * doc/posix-functions/execv.texi (execv): Likewise.
32458         * doc/posix-functions/execve.texi (execve): Likewise.
32459         * doc/posix-functions/execvp.texi (execvp): Likewise.
32460         * doc/glibc-functions/canonicalize_file_name.texi
32461         (canonicalize_file_name): Cygwin 1.7 now provides this.
32462         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
32463         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
32464         on AT_SYMLINK_NOFOLLOW.
32465
32466 2009-09-24  Eric Blake  <ebb9@byu.net>
32467
32468         test-linkat: make test more robust
32469         * tests/test-linkat.c (main): Avoid collision with EEXIST.
32470
32471         getopt: fix inclusion guards for cygwin
32472         * modules/getopt-posix (Depends-on): Add include-next.
32473         (Makefile.am): Substitute more items in replacement header.
32474         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
32475         <getopt.h>.
32476         * lib/getopt.in.h (includes): Use split inclusion guard, and
32477         prefer <getopt.h> over include <unistd.h> when one is present.
32478         (option): Also override name of 'struct option'.
32479
32480         same-inode: revert prior change; it is not yet ready
32481         * NEWS: Undo mention of this change.
32482         * lib/same-inode.h (same-inode.h): Undo tri-state change.
32483         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32484         * lib/cycle-check.c (cycle_check): Likewise.
32485         * lib/same.c (same_name): Likewise.
32486         * lib/at-func2.c (at_func2): Likewise.
32487
32488 2009-09-23  Eric Blake  <ebb9@byu.net>
32489
32490         linkat: new module
32491         * modules/linkat: New file.
32492         * lib/at-func2.c (at_func2): Likewise.
32493         * lib/linkat.c (linkat): Likewise.
32494         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
32495         * lib/openat-priv.h (at_func2): Add declaration.
32496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32497         * modules/unistd (Makefile.am): Substitute them.
32498         * lib/unistd.in.h (linkat): Declare it.
32499         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32500         * doc/posix-functions/linkat.texi (linkat): Likewise.
32501         * doc/posix-functions/link.texi (link): Tweak wording.
32502         * tests/test-link.c (main): Move guts...
32503         * tests/test-link.h (test_link): ...into new file.
32504         * modules/linkat-tests: New test.
32505         * tests/test-linkat.c: Likewise.
32506         * modules/link-tests (Files): Ship new file.
32507         (Depends-on): Add stdbool.
32508
32509         dirname: add library-safe mdir_name
32510         * lib/dirname.h (mdir_name): New prototype.
32511         * lib/dirname.c (dir_name): Move guts...
32512         (mdir_name): ...to new function that avoids xalloc_die.
32513
32514         fchdir: another mingw fix
32515         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
32516         * lib/fchdir.c (get_name): New helper method; skips canonicalize
32517         on mingw (where it has not yet been ported), and make it optional
32518         elsewhere.
32519         (_gl_register_fd): Use it.
32520
32521         same-inode: make SAME_INODE tri-state, to port to mingw
32522         * NEWS: Mention this change.
32523         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
32524         st_ino always being 0.
32525         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32526         * lib/cycle-check.c (cycle_check): Likewise.
32527         * lib/same.c (same_name): Likewise.
32528
32529         lstat: avoid mingw compilation error
32530         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
32531         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
32532         lstat ourselves.
32533         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
32534         was adequate.
32535         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
32536         the checks for lstat.
32537         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
32538
32539         link: fix test failure on Solaris 9
32540         * lib/link.c (rpl_link): Don't assume link will catch bogus
32541         trailing slash on source.
32542
32543         test-symlinkat: enhance test
32544         * tests/test-readlink.c (main): Move guts...
32545         * tests/test-readlink.h (test_readlink): ...into new file.
32546         * tests/test-symlink.c (main): Move guts...
32547         * tests/test-symlink.h (test_symlink): ...into new file.
32548         * tests/test-symlinkat.c (main): Use new files for further
32549         coverage.
32550         (do_symlink, do_readlink): New helper functions.
32551         * modules/symlink-tests (Files): Ship new file.
32552         (Depends-on): Add stdbool.
32553         * modules/readlink-tests (Files): Ship new file.
32554         (Depends-on): Add stdbool.
32555         * modules/symlinkat-tests (Files): Use new files.
32556
32557 2009-09-23  Eric Blake  <ebb9@byu.net>
32558
32559         readlink: document portability issue with symlink length
32560         * doc/posix-functions/lstat.texi (lstat): Mention that some file
32561         systems have bogus st_size on symlinks, and mention the
32562         areadlink-with-size module.
32563         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32564         * doc/posix-functions/readlink.texi (readlink): Mention the
32565         areadlink module, and ERANGE failure.
32566         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32567         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
32568
32569         readlink: fix Solaris 9 bug with trailing slash
32570         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
32571         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
32572         * doc/posix-functions/readlink.texi (readlink): Document this.
32573         * modules/readlink-tests: New test.
32574         * tests/test-readlink.c: Likewise.
32575
32576         readlink: fix cygwin 1.5.x bug with return type
32577         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
32578         * lib/unistd.in.h (readlink): Use ssize_t.
32579         * lib/readlink.c (readlink): Likewise.
32580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32581         * modules/unistd (Makefile.am): Substitute it.
32582         * lib/unistd.in.h (readlink): Declare replacement.
32583         * doc/posix-functions/readlink.texi (readlink): Document this.
32584
32585         symlink: use throughout gnulib
32586         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
32587         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
32588         symlink is not used.
32589         * modules/symlinkat (Depends-on): Add symlink.
32590         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32591         * modules/canonicalize-tests (Depends-on): Likewise.
32592         * modules/lstat-tests (Depends-on): Likewise.
32593         * modules/openat-tests (Depends-on): Likewise.
32594         * modules/remove-tests (Depends-on): Likewise.
32595         * modules/rmdir-tests (Depends-on): Likewise.
32596         * modules/unlink-tests (Depends-on): Likewise.
32597         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
32598         * tests/test-canonicalize.c (symlink): Likewise.
32599         * tests/test-fstatat.c (symlink): Likewise.
32600         * tests/test-lstat.c (symlink): Likewise.
32601         * tests/test-remove.c (symlink): Likewise.
32602         * tests/test-rmdir.c (symlink): Likewise.
32603         * tests/test-unlink.c (symlink): Likewise.
32604         * tests/test-unlinkat.c (symlink): Likewise.
32605
32606         symlink: new module, for Solaris 9 bug
32607         * modules/symlink: New file.
32608         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
32609         * lib/symlink.c: Likewise.
32610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32611         * modules/unistd (Makefile.am): Substitute them.
32612         * lib/unistd.in.h (symlink): Declare replacement.
32613         * MODULES.html.sh (File system functions): Mention it.
32614         * doc/posix-functions/symlink.texi (symlink): Likewise.
32615         * modules/symlink-tests: New test.
32616         * tests/test-symlink.c: Likewise.
32617
32618 2009-09-23  Bruno Haible  <bruno@clisp.org>
32619
32620         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
32621         when needed.
32622         Test case: gnulib-tool --import --with-tests atexit inttypes.
32623         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
32624
32625 2009-09-23  Bruno Haible  <bruno@clisp.org>
32626
32627         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
32628         subcommand, not in a subshell.
32629
32630 2009-09-22  Eric Blake  <ebb9@byu.net>
32631
32632         unistd: sort replacement declarations
32633         * lib/unistd.in.h: Sort declarations.
32634
32635         open, openat: minor optimization
32636         * lib/open.c (open): If open succeeded, len is non-zero.
32637         * lib/openat.c (rpl_openat): Likewise.
32638
32639         link-follow: ensure correct result
32640         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
32641         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
32642         distinguish between possible failures.
32643
32644 2009-09-21  Eric Blake  <ebb9@byu.net>
32645
32646         fts: avoid compiler warning
32647         * lib/fts.c (dirent_inode_sort_may_be_useful)
32648         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
32649
32650 2009-09-19  Bruno Haible  <bruno@clisp.org>
32651
32652         * lib/progreloc.c (canonicalize_file_name): New declaration.
32653
32654 2009-09-19  Eric Blake  <ebb9@byu.net>
32655
32656         link: fix quoting
32657         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
32658
32659         openat: fix openat bugs on Solaris 9
32660         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
32661         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
32662         * modules/openat (Depends-on): Add open.
32663         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
32664         * modules/fcntl-h (Makefile.am): Substitute it.
32665         * lib/fcntl.in.h (openat): Declare replacement.
32666         * doc/posix-functions/openat.texi (openat): Document this.
32667
32668         openat: move fstatat and unlinkat into correct files
32669         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
32670         compiled.
32671         * lib/openat.c (fstatat, unlinkat): Move...
32672         * lib/fstatat.c (fstatat): ...into correct files.
32673         * lib/unlinkat.c (unlinkat): Likewise.
32674
32675         openat: fix unlinkat bugs on Solaris 9
32676         * lib/unlinkat.c (unlinkat): New file.
32677         * modules/openat (Depends-on): Add unlink.
32678         (Files): Distribute it.
32679         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
32680         trailing slash behavior is broken.
32681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32682         * modules/unistd (Makefile.am): Substitute it.
32683         * lib/unistd.in.h (unlinkat): Declare replacement.
32684         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
32685
32686         openat: fix fstatat bugs on Solaris 9
32687         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
32688         stat.
32689         * doc/posix-functions/fstatat.texi (fstatat): Document this.
32690
32691         test-unlinkat: enhance test, to expose Solaris 9 bug
32692         * tests/test-unlink.c (main): Factor guts...
32693         * tests/test-unlink.h (test_rmdir_func): ...into new file.
32694         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
32695         * tests/test-rmdir.c (main): Adjust caller.
32696         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
32697         (unlinker): New helper function.
32698         (rmdirat): Enhance check.
32699         * modules/rmdir-tests (Depends-on): Add stdbool.
32700         * modules/unlink-tests (Depends-on): Likewise.
32701         (Files): Add test-unlink.h.
32702         * modules/openat-tests (Files): Likewise.
32703         (Depends-on): Add unlinkdir.
32704
32705         test-fstatat: new test, to expose Solaris 9 bugs
32706         * tests/test-stat.c (main): Factor guts...
32707         * tests/test-stat.h (test_stat_func): ...into new file.
32708         * tests/test-lstat.c (main): Factor guts...
32709         * tests/test-lstat.h (test_lstat_func): ...into new file.
32710         * tests/test-fstatat.c: New file.
32711         * modules/stat-tests (Files): Add test-stat.h.
32712         * modules/lstat-tests (Files): Add test-lstat.h.
32713         (Depends-on): Add stdbool.
32714         * modules/openat-tests (Depends-on): Add pathmax.
32715         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
32716         (Makefile.am): Run new test.
32717
32718         remove: new module, for mingw and Solaris 9 bugs
32719         * modules/remove: New file.
32720         * lib/remove.c: Likewise.
32721         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
32722         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32723         * modules/stdio (Makefile.am): Use them.
32724         * lib/stdio.in.h (remove): Declare replacement.
32725         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32726         * doc/posix-functions/remove.texi (remove): Likewise.
32727         * modules/remove-tests: New test.
32728         * tests/test-remove.c: Likewise.
32729
32730         unlink: new module, for Solaris 9 bug
32731         * modules/unlink: New file.
32732         * lib/unlink.c: Likewise.
32733         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
32734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32735         * modules/unistd (Makefile.am): Use them.
32736         * lib/unistd.in.h (stat): Declare replacement.
32737         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32738         * doc/posix-functions/unlink.texi (unlink): Likewise.
32739         * modules/unlink-tests: New test.
32740         * tests/test-unlink.c: Likewise.
32741
32742         lstat: fix Solaris 9 bug
32743         * lib/lstat.c (lstat): Also check for trailing slash on
32744         non-symlink, non-directories.  Use stat module to simplify logic.
32745         * doc/posix-functions/lstat.texi (lstat): Document it.
32746         * modules/lstat-tests (Depends-on): Add errno, same-inode.
32747         (configure.ac): Check for symlink.
32748         * tests/test-lstat.c (main): Add more tests.
32749
32750         stat: add as dependency to other modules
32751         * modules/chown (Depends-on): Add stat.
32752         * modules/euidaccess (Depends-on): Likewise.
32753         * modules/fchdir (Depends-on): Likewise.
32754         * modules/isdir (Depends-on): Likewise.
32755         * modules/link (Depends-on): Likewise.
32756         * modules/lstat (Depends-on): Likewise.
32757         * modules/mkdir-p (Depends-on): Likewise.
32758         * modules/modechange (Depends-on): Likewise.
32759         * modules/open (Depends-on): Likewise.
32760         * modules/readlink (Depends-on): Likewise.
32761         * modules/same (Depends-on): Likewise.
32762
32763         stat: fix Solaris 9 bug
32764         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
32765         slash.
32766         * lib/stat.c (rpl_stat): Work around it.
32767         * doc/posix-functions/stat.texi (stat): Update documentation.
32768
32769         stat: new module, for mingw bug
32770         * modules/stat: New file.
32771         * lib/stat.c: Likewise.
32772         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32773         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32774         * modules/sys_stat (Makefile.am): Use them.
32775         * lib/sys_stat.in.h (stat): Declare replacement.
32776         * lib/openat.c (fstatat): Deal with lstat and stat being function
32777         macros.
32778         * modules/openat (Depends-on): Add inline.
32779         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32780         * doc/posix-functions/stat.texi (stat): Likewise.
32781         * modules/stat-tests: New test.
32782         * tests/test-stat.c: Likewise.
32783
32784 2009-09-19  Jim Meyering  <meyering@redhat.com>
32785
32786         syntax-check: detect unnecessary inclusion of canonicalize.h
32787         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
32788
32789 2009-09-19  Eric Blake  <ebb9@byu.net>
32790
32791         canonicalize-lgpl: adjust clients to use correct header
32792         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32793         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
32794         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
32795         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
32796         * lib/progreloc.c (includes): Likewise.
32797
32798 2009-09-19  Jim Meyering  <meyering@redhat.com>
32799
32800         test-posixtm.c: correct a comment
32801         * tests/test-posixtm.c: Correct first-line comment.
32802         Spotted by Eric Blake.
32803
32804 2009-09-16  Jim Meyering  <meyering@redhat.com>
32805
32806         posixtm-tests: make T const-correct; add a test case
32807         * tests/test-posixtm.c (T): Declare const.
32808         Add a test for -(2^31+1).
32809         Remove useless can-succeed-only-in-2002 test.
32810
32811         posixtm-tests: adjust the sole failing test
32812         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
32813         expected output matches what mktime now produces.  Cross-checked via
32814         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
32815
32816         posixtm: move #ifdef'd tests into a new module
32817         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
32818         * tests/test-posixtm.c: ... this new file.
32819         * modules/posixtm-tests: New module.
32820
32821 2009-09-19  Eric Blake  <ebb9@byu.net>
32822
32823         openat: simplify use of at-func.c
32824         * lib/at-func.c (includes): Include prerequisites here, to
32825         simplify requirements on client files.
32826         * lib/openat-priv.h: Add double-inclusion guard.
32827         * lib/faccessat.c (includes): Simplify.
32828         * lib/fchmodat.c (includes): Likewise.
32829         * lib/fchownat.c (includes): Likewise.
32830         * lib/mkdirat.c (includes): Likewise.
32831         * lib/mkfifoat.c (includes): Likewise.
32832         * lib/symlinkat.c (includes): Likewise.
32833
32834         openat: allow return of fd 0
32835         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
32836         * modules/save-cwd (Depends-on): Replace fcntl-safer with
32837         unistd-safer.
32838         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
32839         <fcntl.h>; this module does not leak fds.
32840         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
32841         must be allowed to return 0, leaving openat_safer to add the
32842         safety.
32843         (openat_permissive): Avoid writing to just-opened fd 2 if
32844         restoring the current directory fails.
32845         * lib/openat-die.c (openat_restore_fail): Add comment.
32846         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
32847         (save_cwd): Guarantee safe fd, but without use of open_safer.
32848         * tests/test-openat.c: New test.
32849         * modules/openat-tests (Files, Makefile.am): Distribute and build
32850         new file.
32851
32852         relocatable-prog-wrapper: fix build
32853         * modules/relocatable-prog-wrapper (Files): Update name of
32854         canonicalize m4 file, broken on 2009-09-17.
32855         Reported by emad hajjar <aleppos@hotmail.com>.
32856
32857 2009-09-19  Bruno Haible  <bruno@clisp.org>
32858
32859         * lib/safe-alloc.h: Use the standard header with GPL copyright.
32860         * lib/safe-alloc.c: Likewise.
32861         Reported by Ian Beckwith <ianb@erislabs.net>.
32862
32863 2009-09-18  Bruno Haible  <bruno@clisp.org>
32864
32865         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
32866         Reported by <erobles@sensacd.com.mx>.
32867
32868 2009-09-17  Eric Blake  <ebb9@byu.net>
32869
32870         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
32871         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
32872         slashes when checking if last component is missing.
32873         * tests/test-canonicalize.c (main): Test this.
32874
32875         canonicalize, canonicalize-lgpl: honor // if distinct from /
32876         * modules/canonicalize (Files): Add double-slash-root.m4.
32877         * modules/canonicalize-lgpl (Files): Likewise.
32878         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32879         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
32880         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
32881         fallback definition.
32882         (canonicalize_filename_mode): Use it to protect //.
32883         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
32884         (__realpath): Likewise.
32885         * tests/test-canonicalize.c (main): Test this.
32886         * tests/test-canonicalize-lgpl.c (main): Likewise.
32887         * modules/canonicalize-tests (Depends-on): Add same-inode.
32888         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32889
32890         canonicalize-lgpl: fix glibc bug with trailing slash
32891         * m4/canonicalize-lgpl.m4: Move contents...
32892         * m4/canonicalize.m4: ...here.
32893         (gl_CANONICALIZE_LGPL): Factor realpath check...
32894         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
32895         glibc 2.3.5 bug, fixed 2005-04-27.
32896         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
32897         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
32898         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
32899         * modules/canonicalize-lgpl (Files): Manage file rename.
32900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32901         * modules/stdlib (Makefile.am): Substitute witness.
32902         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
32903         is needed.
32904         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
32905         replacement is required.
32906         * lib/canonicalize.c (canonicalize_file_name): Likewise.
32907         * doc/glibc-functions/canonicalize_file_name.texi
32908         (canonicalize_file_name): Document this.
32909         * doc/posix-functions/realpath.texi (realpath): Likewise.
32910
32911         canonicalize-lgpl: reject non-directory with trailing slash
32912         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
32913         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
32914         catches failures in glibc 2.3.5.
32915         * tests/test-canonicalize.c (main): Likewise.
32916
32917         canonicalize-lgpl: use native realpath if it works
32918         * lib/canonicalize-lgpl.c (realpath): Guard with
32919         FUNC_REALPATH_WORKS.
32920         * lib/stdlib.in.h (realpath): Make declaration optional based on
32921         HAVE_REALPATH.
32922         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
32923         native realpath works.
32924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32925         * modules/stdlib (Makefile.am): Substitute witness.
32926
32927         canonicalize, canonicalize-lgpl: use <stdlib.h>
32928         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
32929         (Include): Mention <stdlib.h>.
32930         (configure.ac): Mention functions we provide.
32931         * modules/canonicalize (configure.ac): Likewise.
32932         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
32933         realpath if canonicalize_file_name is missing.
32934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
32935         * modules/stdlib (Makefile.am): Substitute witnesses.
32936         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
32937         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
32938         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
32939         * NEWS: Document this.
32940         * doc/glibc-functions/canonicalize_file_name.texi
32941         (canonicalize_file_name): Likewise.
32942         * doc/posix-functions/realpath.texi (realpath): Likewise.
32943         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
32944
32945         test-canonicalize: consolidate into single C program
32946         * tests/test-canonicalize.sh: Delete; move setup into...
32947         * tests/test-canonicalize.c (main): ...the program, making it
32948         easier to run in debugger.  Add some tests.
32949         * modules/canonicalize-tests (Files): Remove unused file.
32950         (Depends-on): Add progname.
32951         (configure.ac, Makefile.am): Simplify.
32952
32953         test-canonicalize-lgpl: consolidate into single C program
32954         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
32955         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
32956         easier to run in debugger.  Add some tests.
32957         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
32958         (configure.ac, Makefile.am): Simplify.
32959
32960         canonicalize: avoid resolvepath
32961         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
32962         unnecessary checks.
32963         * lib/canonicalize.c (includes): Simplify.
32964         (canonicalize_file_name): Drop resolvepath implementation.
32965         * modules/canonicalize (Depends-on): Drop filenamecat.
32966
32967         canonicalize: don't lose errno
32968         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
32969         over calls to free.
32970
32971         canonicalize: simplify errno handling
32972         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
32973         assignment.
32974
32975         canonicalize, canonicalize-lgpl: update module dependencies
32976         * modules/canonicalize (Depends-on): Add extensions, lstat,
32977         pathmax, stdlib.
32978         (Files): Drop pathmax.h.
32979         (configure.ac): Adjust macro name.
32980         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32981         lstat, stdlib, sys_stat.
32982         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32983         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32984         extensions.
32985         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32986         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32987         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32988         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32989         declaration, if available.
32990         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32991         we can rely on the readlink module.
32992         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32993         (includes): Use <unistd.h> unconditionally.
32994
32995 2009-09-17  Eric Blake  <ebb9@byu.net>
32996
32997         maint: make Include sections of modules consistent
32998         * modules/alloca: Use only header name; no need to list #include.
32999         * modules/alloca-opt: Likewise.
33000         * modules/arpa_inet: Likewise.
33001         * modules/canon-host: Likewise.
33002         * modules/configmake: Likewise.
33003         * modules/dirent: Likewise.
33004         * modules/eealloc: Likewise.
33005         * modules/environ: Likewise.
33006         * modules/fchdir: Likewise.
33007         * modules/fcntl: Likewise.
33008         * modules/fcntl-h: Likewise.
33009         * modules/gethrxtime: Likewise.
33010         * modules/gettime: Likewise.
33011         * modules/ignore-value: Likewise.
33012         * modules/inet_ntop: Likewise.
33013         * modules/inet_pton: Likewise.
33014         * modules/inttypes: Likewise.
33015         * modules/isnand-nolibm: Likewise.
33016         * modules/isnanf-nolibm: Likewise.
33017         * modules/mbchar: Likewise.
33018         * modules/mbfile: Likewise.
33019         * modules/mbiter: Likewise.
33020         * modules/mbuiter: Likewise.
33021         * modules/netdb: Likewise.
33022         * modules/netinet_in: Likewise.
33023         * modules/nproc: Likewise.
33024         * modules/pagealign_alloc: Likewise.
33025         * modules/poll: Likewise.
33026         * modules/printf-frexp: Likewise.
33027         * modules/pthread: Likewise.
33028         * modules/putenv: Likewise.
33029         * modules/random_r: Likewise.
33030         * modules/relocatable-prog: Likewise.
33031         * modules/search: Likewise.
33032         * modules/select: Likewise.
33033         * modules/selinux-h: Likewise.
33034         * modules/settime: Likewise.
33035         * modules/signal: Likewise.
33036         * modules/size_max: Likewise.
33037         * modules/socklen: Likewise.
33038         * modules/ssize_t: Likewise.
33039         * modules/stdarg: Likewise.
33040         * modules/stdbool: Likewise.
33041         * modules/stddef: Likewise.
33042         * modules/stdint: Likewise.
33043         * modules/stdio: Likewise.
33044         * modules/stdlib: Likewise.
33045         * modules/string: Likewise.
33046         * modules/strings: Likewise.
33047         * modules/sys_file: Likewise.
33048         * modules/sys_ioctl: Likewise.
33049         * modules/sys_select: Likewise.
33050         * modules/sys_socket: Likewise.
33051         * modules/sys_stat: Likewise.
33052         * modules/sys_time: Likewise.
33053         * modules/sys_times: Likewise.
33054         * modules/sys_utsname: Likewise.
33055         * modules/sys_wait: Likewise.
33056         * modules/sysexits: Likewise.
33057         * modules/time: Likewise.
33058         * modules/times: Likewise.
33059         * modules/tmpfile: Likewise.
33060         * modules/trim: Likewise.
33061         * modules/unistd: Likewise.
33062         * modules/wchar: Likewise.
33063         * modules/wctype: Likewise.
33064
33065 2009-09-17  Bruno Haible  <bruno@clisp.org>
33066
33067         Make getdate.y compile on QNX and NetBSD 5 / i386.
33068         * m4/getdate.m4 (gl_GETDATE): Conditionally define
33069         TIME_T_FITS_IN_LONG_INT.
33070         * lib/getdate.y (long_time_t): New type.
33071         (relative_time): Change type of 'seconds' field to long_time_t.
33072         (get_date): Update types of local variables. Check against overflow
33073         during conversion from long_time_t to time_t.
33074         Reported by Matt Kraai <kraai@ftbfs.org>
33075         and Hasso Tepper <hasso@netbsd.org>.
33076
33077 2009-09-17  Bruno Haible  <bruno@clisp.org>
33078
33079         * modules/COPYING: Update copyright years.
33080         * modules/README: Likeiwse.
33081         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
33082         Reported by Ian Beckwith <ianb@erislabs.net>.
33083
33084 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33085
33086         * users.txt: Update references for gnuit package.
33087
33088 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33089
33090         * m4/getdelim.m4: Fix typo in copyright line.
33091
33092 2009-09-17  Bruno Haible  <bruno@clisp.org>
33093
33094         * lib/atoll.c: Use the standard header with GPL copyright.
33095         * lib/argz.in.h: Likewise.
33096         * lib/glob.c: Likewise.
33097         * lib/glob-libc.h: Likewise.
33098         * lib/random_r.c: Likewise.
33099         * lib/siglist.h: Likewise.
33100         * lib/strsignal.c: Likewise.
33101         Reported by Ian Beckwith <ianb@erislabs.net>.
33102
33103 2009-09-17  Eric Blake  <ebb9@byu.net>
33104
33105         rmdir: ensure correct dependency order
33106         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
33107
33108 2009-09-17  Bruno Haible  <bruno@clisp.org>
33109
33110         Disable assertion that fails on NetBSD 5 / i386.
33111         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
33112         Reported by Sam Steingold <sds@gnu.org>
33113         and Hasso Tepper <hasso@netbsd.org>.
33114
33115 2009-09-16  Eric Blake  <ebb9@byu.net>
33116
33117         unlinkdir: port to mingw
33118         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
33119         on which no one can unlink a directory.
33120
33121         stdlib: sort witness names
33122         * modules/stdlib (Makefile.am): Sort replacements.
33123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
33124         * lib/stdlib.in.h: Likewise.
33125
33126         parse-duration-tests: avoid link failure
33127         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
33128         LIBINTL.
33129         Reported by Tom G. Christensen.
33130
33131         openat-tests: ensure unlinkat behaves like rmdir
33132         * tests/test-rmdir.c (main): Factor guts...
33133         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
33134         * modules/rmdir-tests (Files): Ship new file.
33135         * modules/openat-tests: New test.
33136         * tests/test-unlinkat.c: Likewise.
33137
33138         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
33139         * modules/rmdir-errno (Status, Notice): Now obsolete.
33140
33141         rmdir: work around cygwin 1.5.x and mingw bugs
33142         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
33143         * lib/rmdir.c (rmdir): Work around it.
33144         * modules/rmdir (Status, Notice): No longer obsolete.
33145         (Files): Add dos.m4.
33146         (Depends-on): Add unistd.
33147         (configure.ac): Set witnesses.
33148         (License): Relax to LGPLv2+.
33149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
33150         * modules/unistd (Makefile.am): Substitute witnesses.
33151         * lib/unistd.in.h (rmdir): Declare replacement.
33152         * doc/posix-functions/rmdir.texi (rmdir): Document this.
33153         * modules/rmdir-tests: New tests.
33154         * tests/test-rmdir.c: Likewise.
33155
33156 2009-09-15  Eric Blake  <ebb9@byu.net>
33157
33158         fchdir: improve use of replacement functions
33159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
33160         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
33161         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
33162         REPLACE_CLOSEDIR.
33163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
33164         * modules/sys_stat (Makefile.am): Substitute correct witness.
33165         * modules/dirent (Makefile.am): Likewise.
33166         * modules/unistd (Makefile.am): Likewise.
33167         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
33168         * lib/unistd.in.h (dup): Likewise.
33169         * lib/sys_stat.in.h (fstat): Likewise.
33170
33171         maint: ignore gnulib-tool temp files
33172         * .gitignore: Ignore files created during gnulib-tool --test.
33173
33174 2009-09-13  Jim Meyering  <meyering@redhat.com>
33175
33176         posixtm: don't reject a time that specify "60" as the number of seconds
33177         * lib/posixtm.c (posixtime): The code to reject invalid dates
33178         would also reject a time specified with the .60 suffix.
33179         But POSIX allows that, in order to accommodate leap seconds.
33180         So don't reject it.
33181         (main): Adjust tests accordingly.
33182         * modules/posixtm (Depends-on): Add stpcpy.
33183
33184 2009-09-11  Jim Meyering  <meyering@redhat.com>
33185
33186         announce-gen: include [$release_type] in emitted Subject:
33187         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
33188         e.g., [stable] in the emitted Subject: line.
33189
33190 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33191
33192         Remove obsolete macros from several modules.
33193         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
33194         obsolete Autoconf macros with their modern counterparts.
33195         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
33196         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
33197         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
33198         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
33199         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
33200         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33201         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33202         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33203         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
33204         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
33205         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33206         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33207         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
33208         * m4/sockets.m4 (gl_SOCKETS): Likewise.
33209         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
33210         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
33211         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33212         * m4/time_r.m4 (gl_TIME_R): Likewise.
33213         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
33214         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
33215         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33216
33217         Fix copyright header in build-aux scripts.
33218         * build-aux/git-version-gen: Fix copyright header to match GPLv3
33219         recommendation.
33220         * build-aux/ncftpput-ftp: Likewise.
33221         * build-aux/update-copyright: Likewise.
33222
33223 2009-09-09  Eric Blake  <ebb9@byu.net>
33224
33225         test-link: allow Linux choice of errno
33226         * tests/test-link.c (main): Relax test for alternate error.
33227
33228         strndup: fix improper m4 caching
33229         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
33230         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
33231         (gl_PREREQ_STRNDUP): Delete.
33232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
33233         * modules/string (Makefile.am): Substitute it.
33234         * lib/string.in.h (strndup): Modernize prototype.
33235
33236         getcwd: port to mingw
33237         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
33238         different from the POSIX assumptions made throughout the getcwd
33239         module; fortunately, the mingw getcwd does not need replacement.
33240         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
33241         * modules/getcwd-tests: New test.
33242         * tests/test-getcwd.c: Likewise.
33243
33244         link: fix platform bugs
33245         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
33246         * lib/link.c (link): Work around them.  Fix related mingw bug.
33247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
33248         * modules/unistd (Makefile.am): Substitute it.
33249         * lib/unistd.in.h (link): Declare replacement.
33250         * doc/posix-functions/link.texi (link): Document this.
33251         * modules/link (Depends-on): Add strdup-posix, sys_stat.
33252
33253         test-link: consolidate into single C program, test more cases
33254         * tests/test-link.sh: Delete.
33255         * tests/test-link.c: Test more error conditions.  Exposes bugs on
33256         at least Cygwin and Solaris.
33257         * modules/link-tests (Files): Remove unused file.
33258         (Depends-on): Add errno, sys_stat.
33259         (Makefile.am): Simplify.
33260
33261 2009-09-08  Bruno Haible  <bruno@clisp.org>
33262
33263         Work around towlower, towupper bug on mingw.
33264         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
33265         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
33266         * doc/posix-functions/towlower.texi: Mention the mingw bug.
33267         * doc/posix-functions/towupper.texi: Likewise.
33268         Reported by Eric Blake.
33269
33270 2009-09-08  Jim Meyering  <meyering@redhat.com>
33271
33272         build: don't try to run autoheader if we don't use it
33273         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
33274         is not used in configure.ac.
33275
33276 2009-09-08  Eric Blake  <ebb9@byu.net>
33277
33278         euidaccess: fix compilation error
33279         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
33280
33281         rawmemchr: relax license
33282         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
33283         okay.
33284         Reported by Jim Meyering.
33285
33286         mkfifoat: new module
33287         * modules/mkfifoat: New file.
33288         * lib/mkfifoat.c: Likewise.
33289         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
33290         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33291         * modules/sys_stat (Makefile.am): Use them.
33292         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
33293         * MODULES.html.sh (File system functions): Mention module.
33294         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33295         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33296         * modules/mkfifoat-tests: New test.
33297         * tests/test-mkfifoat.c: Likewise.
33298
33299         strchrnul: relax license
33300         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
33301         okay.
33302         Reported by Jim Meyering.
33303
33304 2009-09-08  Eric Blake  <ebb9@byu.net>
33305
33306         fstatat: fix compilation on Solaris
33307         * lib/fstatat.c (includes): Add fcntl.h.
33308         Reported by Pádraig Brady.
33309
33310 2009-09-07  Eric Blake  <ebb9@byu.net>
33311
33312         rename: modernize replacement
33313         * modules/rename (Depends-on): Add stdio.
33314         (configure.ac): Declare witness.
33315         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
33316         stdio take care of replacement.
33317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
33318         * modules/stdio (Makefile.am): Substitute them.
33319         * lib/stdio.in.h (rename): Declare replacement.
33320         * lib/rename.c (includes): Allow cross-compilation to non-windows
33321         machines.
33322         * doc/posix-functions/rename.texi (rename): Improve
33323         documentation.
33324
33325         stdio: sort witness names
33326         * modules/stdio (Makefile.am): Sort replacements.
33327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33328         * lib/stdio.in.h: Likewise.
33329
33330         getcwd: minor cleanups
33331         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
33332         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
33333
33334         openat: provide more convenience names
33335         * modules/faccessat (configure.ac): Add C witness.
33336         * lib/unistd.in.h (readlinkat): Fix typo.
33337         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
33338         convenience wrappers.
33339         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
33340         wrappers in syntax checks.
33341
33342 2009-09-06  Eric Blake  <ebb9@byu.net>
33343
33344         doc: fix comments in recent patches
33345         * lib/faccessat.c: Mention correct function.
33346         * lib/fchmodat.c: Likewise.
33347         * lib/fchownat.c: Likewise.
33348         * lib/symlinkat.c: Likewise.
33349         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
33350         constants.
33351
33352         faccessat, symlinkat: continue cleanup of previous patch
33353         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
33354         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33355         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
33356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
33357         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
33358         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
33359         set.
33360
33361 2009-09-06  Bruno Haible  <bruno@clisp.org>
33362
33363         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
33364         (fstatat): Declare if GNULIB_FSTATAT is set.
33365         (mkdirat): Declare if GNULIB_MKDIRAT is set.
33366         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
33367         (unlinkat): Declare if GNULIB_UNLINKAT is set.
33368         * modules/fcntl-h (Files): Remove m4/openat.m4.
33369         * modules/sys_stat (Files): Remove m4/openat.m4.
33370         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
33371         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
33372         * modules/unistd (Files): Remove m4/openat.m4.
33373         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
33374         GNULIB_OPENAT.
33375         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
33376         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
33377         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
33378         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
33379         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
33380         gl_OPENAT_DEFAULTS.
33381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
33382         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
33383         Don't require gl_OPENAT_DEFAULTS.
33384         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
33385         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
33386         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
33387         (gl_OPENAT_DEFAULTS): Remove macro.
33388
33389 2009-09-06  Bruno Haible  <bruno@clisp.org>
33390
33391         * modules/openat (configure.ac): Remove unneeded witness.
33392
33393 2009-09-06  Bruno Haible  <bruno@clisp.org>
33394
33395         Set errno to ENOSYS when a function is entirely unsupported.
33396         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
33397         EOPNOTSUPP.
33398         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33399         * modules/chown (Depends-on): Remove errno.
33400
33401 2009-09-06  Bruno Haible  <bruno@clisp.org>
33402
33403         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
33404
33405 2009-09-06  Bruno Haible  <bruno@clisp.org>
33406
33407         * lib/sys_stat.in.h: Fix preprocessor command indentation.
33408
33409 2009-09-06  Ben Pfaff  <blp@gnu.org>
33410             Bruno Haible  <bruno@clisp.org>
33411
33412         Work around a glibc bug in strtok_r.
33413         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
33414         Undefine if UNDEFINE_STRTOK_R is set.
33415         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
33416         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33417         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
33418         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
33419         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
33420         UNDEFINE_STRTOK_R.
33421         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
33422
33423 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33424
33425         exclude: minor fix
33426         * lib/exclude.c: Include wctype.h
33427
33428 2009-09-06  Akim Demaille  <demaille@gostai.com>
33429
33430         bootstrap: improve error message
33431         * build-aux/bootstrap (find_tool): Upon failure, report the list
33432         of candidates.
33433         Honor the initial value of the envvar.
33434
33435 2009-09-05  Eric Blake  <ebb9@byu.net>
33436
33437         symlinkat: new module
33438         * modules/symlinkat: New file.
33439         * lib/symlinkat.c: Likewise.
33440         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
33441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33442         * modules/unistd (Makefile.am): Use them.
33443         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
33444         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
33445         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
33446         * MODULES.html.sh (File system functions): Mention module.
33447         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33448         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33449         * modules/symlinkat-tests: New test.
33450         * tests/test-symlinkat.c: Likewise.
33451
33452         test-openat-safer: add more checks
33453         * tests/test-openat-safer.c (main): Check more code paths.
33454
33455 2009-09-05  Jim Meyering  <meyering@redhat.com>
33456
33457         syntax-check: detect unnecessary inclusion of openat.h
33458         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
33459
33460 2009-09-05  Bruno Haible  <bruno@clisp.org>
33461
33462         Support towlower, towupper.
33463         * doc/posix-functions/towlower.texi: Mention module wctype.
33464         * doc/posix-functions/towupper.texi: Likewise.
33465         * lib/wctype.in.h (towlower, towupper): New functions.
33466         * tests/test-wctype.c: Include stdio.h, stdlib.h.
33467         (ASSERT): New macro.
33468         (e): New variable.
33469         (main): Test also towlower, towupper. Test WEOF argument.
33470         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33471
33472 2009-09-05  Bruno Haible  <bruno@clisp.org>
33473
33474         Fix conversion behaviour when the input is invalid.
33475         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
33476         mark occurring in first pass of indirect conversion.
33477         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
33478         input.
33479         Found by clang's static analyzer.
33480
33481 2009-09-05  Bruno Haible  <bruno@clisp.org>
33482
33483         * tests/test-striconveh.c (main): Test indirect conversion on platforms
33484         where direct conversion is possible.
33485
33486 2009-09-04  Eric Blake  <ebb9@byu.net>
33487
33488         openat: fail with ENOENT on empty name
33489         * lib/openat-proc.c (openat_proc_name): Special-case the empty
33490         buffer.
33491
33492         link-follow: fix logic bug in prior patch
33493         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
33494         reversed sense of yes and no in prior patch.  Avoid confusing
33495         compilation failure with desired semantics.
33496
33497         link-follow: accomodate mingw and cross-compilation
33498         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
33499         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
33500         cross-compilation results to -1, to make linkat easier to
33501         implement when cross-compiling.  Trivially support mingw.
33502         * modules/link-follow (configure.ac): Call new name.
33503         * NEWS: Mention this.
33504
33505 2009-09-03  Eric Blake  <ebb9@byu.net>
33506
33507         faccessat: compile replacement
33508         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
33509         needed.
33510
33511         fts: fix compilation error
33512         * lib/fts.c (includes): Re-add "openat.h", for
33513         openat_needs_fchdir.
33514
33515         faccessat: new module
33516         * modules/faccessat: New file.
33517         * lib/faccessat.c: Likewise.
33518         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33520         * modules/unistd (Makefile.am): Use it.
33521         * lib/unistd.in.h (faccessat): Declare it.
33522         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
33523         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
33524         * MODULES.html.sh (File system functions): Mention it.
33525         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
33526         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33527
33528         euidaccess: prefer POSIX over non-standard implementation
33529         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
33530         * lib/euidaccess.c (euidaccess): Use it if available.
33531
33532         openat: make template easier to use
33533         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
33534         AT_FUNC_F2 to be undefined.
33535         (VALIDATE_FLAG): New macro; use it to reject bad flags.
33536         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
33537         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
33538         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
33539         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
33540         Likewise.
33541         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
33542         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
33543         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
33544         Likewise.
33545
33546         openat: declare in POSIX headers
33547         * NEWS: Mention this.
33548         * modules/openat (configure.ac): Declare witnesses.
33549         (Depends-on): Add fcntl-h, sys_stat, unistd.
33550         (Include): Mention correct headers.
33551         * modules/fcntl-h (Depends-on): Add link-warning.
33552         (Files): Add openat.m4.
33553         (Makefile.am): Substitute witnesses.
33554         * modules/sys_stat (Files, Makefile.am): Likewise.
33555         * modules/unistd (Files, Makefile.am): Likewise.
33556         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
33557         (gl_OPENAT_DEFAULTS): New macro.
33558         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
33559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
33560         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
33561         (SYS_STAT_H): Remove unused variable.
33562         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
33563         * lib/fcntl--.h (includes): Remove unneeded header.
33564         * lib/openat-safer.c (includes): Likewise.
33565         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
33566         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
33567         appropriate headers.
33568         (__OPENAT_PREFIX): Delete.
33569         * lib/fcntl.in.h (openat): Provide declaration.
33570         (AT_FDCWD): Fix Solaris bug.
33571         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
33572         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
33573         * lib/fchmodat.c (includes):  Adjust to find declaration.
33574         * lib/fchownat.c (includes): Likewise.
33575         * lib/mkdirat.c (includes): Likewise.
33576         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
33577         still visible.
33578
33579 2009-09-02  Eric Blake  <ebb9@byu.net>
33580
33581         errno: use consistently
33582         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
33583         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
33584         * lib/canonicalize.c (ELOOP): Likewise.
33585         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
33586         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
33587         * lib/lchown.c (EOPNOTSUPP): Likewise.
33588         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
33589         * lib/savewd.c (ESTALE): Likewise.
33590         * lib/settime.c (ENOSYS): Likewise.
33591         * lib/utimens.c (ENOSYS): Likewise.
33592         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
33593         * lib/chdir-safer.c (ELOOP): Likewise.
33594         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
33595         * modules/c-stack (Depends-on): Add errno.
33596         * modules/canonicalize (Depends-on): Likewise.
33597         * modules/chdir-safer (Depends-on): Likewise.
33598         * modules/fdopendir (Depends-on): Likewise.
33599         * modules/inet_ntop (Depends-on): Likewise.
33600         * modules/inet_pton (Depends-on): Likewise.
33601         * modules/lchown (Depends-on): Likewise.
33602         * modules/openat (Depends-on): Likewise.
33603         * modules/savewd (Depends-on): Likewise.
33604         * modules/settime (Depends-on): Likewise.
33605         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
33606
33607         fts: avoid leaking fds
33608         * modules/fts (Depends-on): Add cloexec.
33609         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
33610         flag.
33611
33612         fts: make directory fds more robust
33613         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
33614         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
33615
33616         backupfile, chdir-long, fts, savedir: make safer
33617         * lib/backupfile.c (includes): Use "dirent--.h", since
33618         numbered_backup can write to stderr during readdir.
33619         * lib/savedir.c (includes): Likewise.
33620         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
33621         emulation can write to stderr on failure.
33622         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
33623         * lib/getcwd.c: Document why opendir_safer is unused.
33624         * lib/glob.c: Likewise.
33625         * lib/scandir.c: Likewise.
33626         * lib/openat-proc.c: Likewise, for open_safer.
33627         * modules/backupfile (Depends-on): Add dirent-safer.
33628         * modules/savedir (Depends-on): Likewise.
33629         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
33630         * modules/chdir-long (Depends-on): Add openat-safer.
33631
33632         openat-safer: new module
33633         * modules/openat-safer: New file.
33634         * lib/openat-safer.c: Likewise.
33635         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
33636         * lib/fcntl-safer.h (openat_safer): Declare.
33637         * lib/fcntl--.h (openat): Override.
33638         * MODULES.html.sh (File descriptor based I/O): Mention it.
33639         * lib/openat.h: Add double-inclusion guards.
33640         * lib/openat.c (includes): Only include "fcntl-safer.h", not
33641         "fcntl--.h", so we can implement openat.
33642         * modules/openat-safer-tests: New test.
33643         * tests/test-openat-safer.c: New file.
33644
33645         dirent-safer: new module
33646         * modules/dirent-safer: New file.
33647         * lib/dirent--.h: Likewise.
33648         * lib/dirent-safer.h: Likewise.
33649         * lib/opendir-safer.c: Likewise.
33650         * m4/dirent-safer.m4: Likewise.
33651         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
33652         * modules/dirent-safer-tests: New test.
33653         * tests/test-dirent-safer.c: New file.
33654         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
33655
33656         fdopendir: optimize on mingw
33657         * lib/unistd.in.h (_gl_directory_name): New prototype.
33658         * lib/fchdir.c (_gl_directory_name): Implement it.
33659         (fchdir): Use it to simplify implementation.
33660         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
33661         fchdir, when available, to avoid calling [f]chdir().
33662
33663         fdopendir: split into its own module
33664         * lib/openat.c (fdopendir): Move...
33665         * lib/fdopendir.c: ...into new file.
33666         * modules/fdopendir: New module.
33667         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
33668         * modules/openat (Depends-on): Add fdopendir.
33669         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
33670         fdopendir here.
33671         * modules/savedir (Depends-on): Only need fdopendir, not full
33672         openat.
33673         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
33674         * lib/openat.h (fdopendir): Drop prototype.
33675         * lib/dirent.in.h (fdopendir): Provide prototype.
33676         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
33677         * modules/dirent (Makefile.am): Substitute them.
33678         * MODULES.html.sh (File system functions): Mention it.
33679         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
33680         * modules/fdopendir-tests: New file.
33681         * tests/test-fdopendir.c: Likewise.
33682
33683         fchdir: use more consistent macro convention
33684         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
33685         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
33686         REPLACE_FCHDIR, rather than relying on config.h macros.
33687         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
33688         inside a single make-time REPLACE_FCHDIR block, rather than using
33689         the config.h FCHDIR_REPLACEMENT.
33690         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
33691         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
33692         Manage fstat replacement.
33693         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
33694         REPLACE_FCHDIR.
33695         * modules/sys_stat (Files): Add m4/unistd_h.m4.
33696         (Makefile.am): Substitute REPLACE_FCHDIR.
33697         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
33698         FCHDIR_REPLACEMENT.
33699         * lib/dup-safer.c (dup_safer): Likewise.
33700         * lib/dup2.c (rpl_dup2): Likewise.
33701         * lib/dup3.c (rpl_dup3): Likewise.
33702         * lib/open.c (rpl_open): Likewise.
33703
33704         fchdir: simplify error handling, and support dup3
33705         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
33706         stdbool, malloc-posix, realloc-posix.
33707         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
33708         (ensure_dirs_slot): Return false on allocation failure.
33709         (rpl_dup2): Delete.
33710         (_gl_register_dup): New function.
33711         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
33712         (_gl_register_fd): Close fd on allocation failure.
33713         * lib/fcntl.in.h (_gl_register_fd): Update signature.
33714         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
33715         prototype.
33716         (rpl_dup2_fchdir): Delete prototype.
33717         * lib/open.c (open): Update caller.
33718         * lib/dup2.c (dup2): Track fchdir metadata.
33719         * lib/dup3.c (dup3): Likewise.
33720         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
33721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
33722
33723 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33724
33725         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
33726         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
33727         don't pass arguments to AC_OUTPUT.
33728
33729 2009-09-02  Bruno Haible  <bruno@clisp.org>
33730
33731         * modules/mkdtemp (License): Relicense under LGPLv2+.
33732         Reported by Paolo Bonzini.
33733
33734 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33735
33736         Replace uses of obsolete autoconf macros in Jim's modules.
33737         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
33738         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
33739         can evoke a warning from autoconf when run with -Wobsolete
33740         enabled.  They were declared obsolete for good reasons (see
33741         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
33742         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
33743         should not continue using the deprecated macros.
33744         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
33745         obsolete Autoconf macros with modern counterparts.
33746         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33747         * m4/dos.m4 (gl_AC_DOS): Likewise.
33748         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
33749         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
33750         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
33751         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
33752         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
33753         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
33754         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
33755         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
33756         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
33757         Likewise.
33758         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
33759         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
33760         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
33761         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
33762         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33763         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
33764
33765 2009-09-01  Eric Blake  <ebb9@byu.net>
33766
33767         fchdir: fix off-by-one bug in previous patch
33768         * lib/fchdir.c (rpl_fstat): Use correct bounds.
33769         (_gl_unregister_fd): Delete useless if.
33770
33771 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
33772
33773         maint.mk: sort the list of syntax-check rules
33774         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
33775         easier to get a sense of progress when the rules are run sequentially
33776         and take a long time.
33777
33778 2009-09-01  Simon Josefsson  <simon@josefsson.org>
33779
33780         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
33781         * modules/netinet_in: Likewise.
33782         * modules/sys_file: Likewise.
33783         * modules/sys_ioctl: Likewise.
33784         * modules/sys_select: Likewise.
33785         * modules/sys_socket: Likewise.
33786         * modules/sys_stat: Likewise.
33787         * modules/sys_time: Likewise.
33788         * modules/sys_times: Likewise.
33789         * modules/sys_utsname: Likewise.
33790         * modules/sys_wait: Likewise.
33791
33792 2009-09-01  Jim Meyering  <meyering@redhat.com>
33793
33794         fts: help ensure that return values are not ignored
33795         * lib/fts_.h (__GNUC_PREREQ): Define.
33796         (__attribute_warn_unused_result__): Define.
33797         (fts_children, fts_close, fts_open, fts_read): Declare with
33798         __attribute_warn_unused_result__.
33799
33800         fts: fts_close now fails also when closing a dir file descriptor fails
33801         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
33802         and propagate to caller, along with errno.
33803
33804         announce-gen: correct formatting in --help output
33805         * build-aux/announce-gen (usage): Move the one-line description in
33806         --help output "up", to where it belongs, just after Usage:.
33807
33808 2009-08-31  Eric Blake  <ebb9@byu.net>
33809
33810         fchdir: port to mingw
33811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
33812         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
33813         opened, then use a substitute.
33814         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
33815         replacement.
33816         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
33817         (_gl_register_fd): No need to check stat if open already filters
33818         all directories.
33819         (fchdir): Fix error condition to match POSIX.
33820         * modules/fchdir (Depends-on): Add sys_stat.
33821         * doc/posix-functions/open.texi (open): Document the limitation.
33822         * modules/fchdir-tests: New file.
33823         * tests/test-fchdir.c: Likewise.
33824
33825         canonicalize: allow cross-testing from cygwin to mingw
33826         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
33827         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
33828         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
33829         Likewise.
33830         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
33831         target does not support symlinks.
33832         * tests/test-canonicalize-lgpl.sh: Likewise.
33833
33834         chown: avoid compilation warning on mingw
33835         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
33836         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
33837         mingw.
33838         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33839         * modules/chown (Depends-on): Add errno.
33840
33841 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
33842
33843         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
33844         command.
33845
33846 2009-08-31  Jim Meyering  <meyering@redhat.com>
33847
33848         canonicalize: remove useless initialization
33849         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
33850         initialization of local, "end".
33851
33852 2009-08-30  Bruno Haible  <bruno@clisp.org>
33853
33854         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
33855         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
33856         ENOSYS.
33857
33858 2009-08-30  Bruno Haible  <bruno@clisp.org>
33859
33860         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
33861         /usr/xpg4/bin/tr when it exists.
33862         * tests/test-pipe-filter-gi1.sh: Likewise.
33863
33864 2009-08-30  Bruno Haible  <bruno@clisp.org>
33865
33866         Work around deficient /usr/bin/id program on Solaris.
33867         * tests/test-file-has-acl.sh (ID): New variable.
33868         * tests/test-set-mode-acl.sh (ID): Likewise.
33869         * tests/test-copy-acl.sh (ID): Likewise.
33870         * tests/test-copy-file.sh (ID): Likewise.
33871
33872 2009-08-30  Bruno Haible  <bruno@clisp.org>
33873
33874         New module 'xstriconveh'.
33875         * lib/xstriconveh.h: New file.
33876         * lib/xstriconveh.c: New file.
33877         * modules/xstriconveh: New file.
33878
33879 2009-08-30  Bruno Haible  <bruno@clisp.org>
33880
33881         Make it easier to use mem_cd_iconveh.
33882         * lib/striconveh.h (iconveh_t): New type.
33883         (iconveh_open, iconveh_close): New declarations.
33884         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33885         with a single 'const iconveh_t *' argument.
33886         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
33887         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33888         with a single 'const iconveh_t *' argument.
33889         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
33890         * tests/test-striconveh.c (main): Update.
33891         * NEWS: Mention the change.
33892
33893 2009-08-30  Bruno Haible  <bruno@clisp.org>
33894
33895         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
33896         problem.
33897
33898 2009-08-30  Bruno Haible  <bruno@clisp.org>
33899
33900         Work around iconv_open problem on Solaris.
33901         * lib/iconv_open-solaris.gperf: New file.
33902         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
33903         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
33904         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
33905         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
33906         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
33907         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
33908
33909 2009-08-29  Jim Meyering  <meyering@redhat.com>
33910
33911         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
33912         * top/maint.mk (cvs-check): Remove target; it was just an alias
33913         to the better-named vc-diff-check.
33914         (maintainer-distcheck): Remove rule.  It was used only from
33915         the (alpha/beta/major) target, and all of its commands but one
33916         were coreutils-specific.
33917         (vc-dist): Remove rule.
33918         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
33919         Run vc-diff-check, not vc-dist.
33920         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
33921
33922 2009-08-27  Bruno Haible  <bruno@clisp.org>
33923
33924         * tests/test-bitrotate.c (main): Remove test that uses a shift count
33925         of 0.
33926
33927 2009-08-27  Bruno Haible  <bruno@clisp.org>
33928
33929         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
33930         compilers.
33931         * doc/func.texi: Document the SunPRO C bug.
33932
33933 2009-08-27  Bruno Haible  <bruno@clisp.org>
33934
33935         Fix link error on Solaris.
33936         * tests/test-parse-duration.c (xstrdup): Remove function.
33937
33938 2009-08-26  Pádraig Brady  <P@draigbrady.com>
33939
33940         ignore-value: handle pointer types, too
33941         * lib/ignore-value.h (__attribute__): Remove definition.
33942         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
33943         of a more concise and more-often effective "(void) i" statement.
33944         (ignore_ptr): New function to suppress warnings from functions that
33945         return pointers, and to make it explicit that one function doesn't
33946         handle all cases.
33947
33948 2009-08-25  Bruno Haible  <bruno@clisp.org>
33949
33950         dup2: work around a Linux bug.
33951         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
33952         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
33953         * doc/posix-functions/dup2.texi: Mention the Linux bug.
33954         Reported by Simon Josefsson.
33955
33956 2009-08-25  Jim Meyering  <meyering@redhat.com>
33957
33958         libguestfs uses gnulib
33959         * users.txt: Add libguestfs.
33960
33961 2009-08-24  Eric Blake  <ebb9@byu.net>
33962
33963         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
33964         * lib/pipe2.c (includes): Add binary-io.h.
33965         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
33966
33967 2009-08-24  Bruno Haible  <bruno@clisp.org>
33968
33969         Tolerate declared but missing accept4 syscall.
33970         * lib/accept4.c (accept4): Invoke original accept4 function first, if
33971         available.
33972         * lib/sys_socket.in.h (accept4): If the function is already present,
33973         override it.
33974         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33975         * modules/accept4 (Makefile.am): Compile accept4.c always.
33976         Reported by Paolo Bonzini and Eric Blake.
33977
33978 2009-08-23  Bruno Haible  <bruno@clisp.org>
33979
33980         New module 'accept4'.
33981         * lib/sys_socket.in.h (accept4): New declaration.
33982         * lib/accept4.c: New file.
33983         * m4/accept4.m4: New file.
33984         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33985         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33986         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33987         HAVE_ACCEPT4.
33988         * modules/accept4: New file.
33989         * doc/glibc-functions/accept4.texi: Mention the new module.
33990
33991 2009-08-24  Jim Meyering  <meyering@redhat.com>
33992
33993         progname: also set global program_invocation_name, when possible
33994         Before this change, a libtool-enabled program that calls glibc's
33995         error function would report the program name as
33996         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33997         * modules/progname (configure.ac): Check for a declaration of
33998         program_invocation_name.
33999         * lib/progname.c:  Include <errno.h>.
34000         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
34001         Set program_invocation_name.
34002
34003 2009-08-23  Bruno Haible  <bruno@clisp.org>
34004
34005         * lib/dup3.c: Include <string.h>.
34006
34007 2009-08-23  Bruno Haible  <bruno@clisp.org>
34008
34009         * lib/dup3.c (dup3): Test only once whether the system actually exists.
34010         * lib/pipe2.c (pipe2): Likewise.
34011         Suggested by Eric Blake.
34012
34013 2009-08-23  Bruno Haible  <bruno@clisp.org>
34014
34015         Tolerate declared but missing dup3 syscall.
34016         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
34017         * lib/unistd.in.h (dup3): If the function is already present,
34018         override it.
34019         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
34020         * modules/dup3 (Makefile.am): Compile dup3.c always.
34021         Reported by Paolo Bonzini.
34022
34023 2009-08-23  Bruno Haible  <bruno@clisp.org>
34024
34025         Tolerate declared but missing pipe2 syscall.
34026         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
34027         available.
34028         * lib/unistd.in.h (pipe2): If the function is already present,
34029         override it.
34030         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
34031         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
34032         Reported by Paolo Bonzini.
34033
34034 2009-08-23  Bruno Haible  <bruno@clisp.org>
34035
34036         * lib/pipe2.c (pipe2): Move #ifs inside function.
34037
34038 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34039
34040         quotearg: document limitations of quote_these_too
34041         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
34042         those limitations are created.
34043         * lib/quotearg.h (set_char_quoting): Document that digits and
34044         letters that are special after backslash are not permitted.
34045         (quotearg_char): Cross-reference set_char_quoting documentation.
34046
34047 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
34048
34049         quotearg: implement custom_quoting_style
34050         * lib/quotearg.c: (struct quoting_options): Add left_quote and
34051         right_quote fields.
34052         (set_custom_quoting): New public function.
34053         (quotearg_buffer_restyled): Add left_quote and right_quote
34054         arguments, handle them very much like locale quoting, and update
34055         all uses.
34056         (quotearg_n_custom): New public function.
34057         (quotearg_n_custom_mem): New public function.
34058         (quotearg_custom): New public function.
34059         (quotearg_custom_mem): New public function.
34060         * lib/quotearg.h: Prototype and document new public functions.
34061         (enum quoting_style): For escape_quoting_style and
34062         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
34063         ignored even though they're otherwise like c_quoting_style.
34064         Add custom_quoting_style member and document with comparison to
34065         clocale_quoting_style.
34066         * tests/test-quotearg.c (custom_quotes): New array.
34067         (custom_results): New array.
34068         (main): Extend to test custom quoting.
34069
34070 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34071
34072         quotearg: fix right quote escaping when it's in quote_these_too
34073         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
34074         quote, be sure to prepend only one backslash.
34075         * tests/test-quotearg.c (use_quote_double_quotes): New function.
34076         (main): Test it.
34077
34078 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34079
34080         quotearg-tests: test escaping of embedded locale quotes
34081         * tests/test-quotearg.c (struct result_strings): Add member for
34082         new input.
34083         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
34084         (inputs): Add new input.
34085         (results_g): Add expected results.
34086         (flag_results): Likewise.
34087         (locale_results): Likewise.
34088         (compare_strings): Check those.
34089
34090 2009-08-23  Bruno Haible  <bruno@clisp.org>
34091
34092         Tests for module 'dup3'.
34093         * modules/dup3-tests: New file.
34094         * tests/test-dup3.c: New file.
34095
34096         New module 'dup3'.
34097         * lib/unistd.in.h (dup3): New declaration.
34098         * lib/dup3.c: New file.
34099         * m4/dup3.m4: New file.
34100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
34101         HAVE_DUP3.
34102         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
34103         * modules/dup3: New file.
34104         * doc/glibc-functions/dup3.texi: Mention the new module.
34105
34106 2009-08-23  Bruno Haible  <bruno@clisp.org>
34107
34108         Tweak the dup2 test.
34109         * tests/test-dup2.c (main): Create the test file empty. Verify that an
34110         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
34111         the test file is still empty. Fix argument order of lseek.
34112
34113 2009-08-23  Bruno Haible  <bruno@clisp.org>
34114
34115         Avoid test link errors when the modules getopt-gnu, gettext are used.
34116         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
34117         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34118
34119 2009-08-23  Bruno Haible  <bruno@clisp.org>
34120
34121         Fix getdtablesize() on mingw.
34122         * lib/getdtablesize.c (getdtablesize): Implement differently.
34123         * lib/unistd.in.h (getdtablesize): Improve comment.
34124
34125 2009-08-23  Bruno Haible  <bruno@clisp.org>
34126
34127         New module 'mkostemp'.
34128         Based on Ulrich Drepper's 2007-08-10 change in glibc.
34129         * lib/stdlib.in.h (mksotemp): New declaration.
34130         * lib/mkostemp.c: New file, from glibc with modifications.
34131         * lib/tempname.h (GT_FILE): Remove outdated comment.
34132         (gen_tempname): Add flags argument.
34133         * lib/tempname.c (__GT_BIGFILE): Remove macro.
34134         (__GT_FILE): Map to 1.
34135         (small_open, large_open): Remove macros.
34136         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
34137         * lib/mkstemp.c (mkstemp): Update.
34138         * lib/mkdtemp.c (mkdtemp): Likewise.
34139         * m4/mkostemp.m4: New file.
34140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
34141         HAVE_MKOSTEMP.
34142         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
34143         HAVE_MKOSTEMP.
34144         * modules/mkostemp: New file, based on modules/mkstemp.
34145         * doc/glibc-functions/mkostemp.texi: Mention the new module.
34146         * NEWS: Mention the change.
34147
34148 2009-08-23  Bruno Haible  <bruno@clisp.org>
34149
34150         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
34151         Reported by Eric Blake.
34152
34153 2009-08-23  Bruno Haible  <bruno@clisp.org>
34154
34155         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
34156         Reported by Eric Blake.
34157
34158 2009-08-23  Bruno Haible  <bruno@clisp.org>
34159
34160         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
34161         * modules/pipe2 (Depends-on): Likewise.
34162
34163 2009-08-23  Eric Blake  <ebb9@byu.net>
34164
34165         fcntl-h: add O_TTY_INIT support
34166         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
34167         * tests/test-fcntl-h.c (o): Test it.
34168         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34169
34170         fcntl-h: rename from fcntl, in preparation for fcntl(2)
34171         * modules/fcntl: Move <fcntl.h> header replacement...
34172         * modules/fcntl-h: ...to new name, so as not to collide with
34173         like-named function.
34174         * tests/test-fcntl.c: Rename...
34175         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
34176         * modules/fcntl-tests: Rename...
34177         * modules/fcntl-h-tests: ...to this.  Update test file name.
34178         * modules/chdir-long (Depends-on): Update clients.
34179         * modules/chdir-safer (Depends-on): Likewise.
34180         * modules/fcntl-safer (Depends-on): Likewise.
34181         * modules/fts (Depends-on): Likewise.
34182         * modules/mkancesdirs (Depends-on): Likewise.
34183         * modules/mkdir-p (Depends-on): Likewise.
34184         * modules/open (Depends-on): Likewise.
34185         * modules/savewd (Depends-on): Likewise.
34186         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
34187         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34188
34189 2009-08-22  Bruno Haible  <bruno@clisp.org>
34190
34191         * modules/binary-io (License): Relicense under LGPL.
34192         * modules/pipe2 (License): Likewise.
34193
34194 2009-08-22  Bruno Haible  <bruno@clisp.org>
34195
34196         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
34197         return value.
34198         * lib/pipe-filter-gi.c (filter_init): Likewise.
34199         Reported by Eric Blake.
34200
34201 2009-08-22  Bruno Haible  <bruno@clisp.org>
34202
34203         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
34204         * modules/pipe (Depends-on): Add pipe2.
34205
34206 2009-08-22  Bruno Haible  <bruno@clisp.org>
34207
34208         Tests for module 'pipe2'.
34209         * modules/pipe2-tests: New file.
34210         * tests/test-pipe2.c: New file.
34211
34212         New module 'pipe2'.
34213         * lib/unistd.in.h (pipe2): New declaration.
34214         * lib/pipe2.c: New file.
34215         * m4/pipe2.m4: New file.
34216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
34217         HAVE_PIPE2.
34218         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
34219         * modules/pipe2: New file.
34220         * doc/glibc-functions/pipe2.texi: Mention the new module.
34221
34222 2009-08-22  Bruno Haible  <bruno@clisp.org>
34223
34224         Reference some new glibc functions.
34225         * doc/glibc-functions/accept4.texi: New file.
34226         * doc/glibc-functions/dup3.texi: New file.
34227         * doc/glibc-functions/mkostemp.texi: New file.
34228         * doc/glibc-functions/pipe2.texi: New file.
34229         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
34230         (Glibc sys/socket.h): Refer to accept4.
34231         (Glibc unistd.h): Refer to dup3, pipe2.
34232         Reported by Eric Blake.
34233
34234 2009-08-22  Jim Meyering  <meyering@redhat.com>
34235             Bruno Haible  <bruno@clisp.org>
34236
34237         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
34238         This makes it so packages using automake-1.11's silent-rules option
34239         can print e.g., a single "GEN    configmake.h" line, rather than
34240         the 30+ statements that perform the job.  If you want to see the
34241         actual commands, you can still run "make V=1".
34242         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
34243         so that make output is abbreviated when those variables are defined
34244         appropriately.
34245         * modules/argz: Likewise.
34246         * modules/arpa_inet: Likewise.
34247         * modules/byteswap: Likewise.
34248         * modules/configmake: Likewise.
34249         * modules/dirent: Likewise.
34250         * modules/errno: Likewise.
34251         * modules/fcntl: Likewise.
34252         * modules/float: Likewise.
34253         * modules/fnmatch: Likewise.
34254         * modules/getopt-posix: Likewise.
34255         * modules/glob: Likewise.
34256         * modules/iconv_open: Likewise.
34257         * modules/inttypes: Likewise.
34258         * modules/localcharset: Likewise.
34259         * modules/locale: Likewise.
34260         * modules/math: Likewise.
34261         * modules/netdb: Likewise.
34262         * modules/netinet_in: Likewise.
34263         * modules/poll: Likewise.
34264         * modules/posix_spawnp-tests: Likewise.
34265         * modules/sched: Likewise.
34266         * modules/search: Likewise.
34267         * modules/selinux-h: Likewise.
34268         * modules/signal: Likewise.
34269         * modules/spawn: Likewise.
34270         * modules/stdarg: Likewise.
34271         * modules/stdbool: Likewise.
34272         * modules/stddef: Likewise.
34273         * modules/stdint: Likewise.
34274         * modules/stdio: Likewise.
34275         * modules/stdlib: Likewise.
34276         * modules/string: Likewise.
34277         * modules/strings: Likewise.
34278         * modules/sys_file: Likewise.
34279         * modules/sys_ioctl: Likewise.
34280         * modules/sys_select: Likewise.
34281         * modules/sys_socket: Likewise.
34282         * modules/sys_stat: Likewise.
34283         * modules/sys_time: Likewise.
34284         * modules/sys_times: Likewise.
34285         * modules/sys_utsname: Likewise.
34286         * modules/sys_wait: Likewise.
34287         * modules/sysexits: Likewise.
34288         * modules/time: Likewise.
34289         * modules/unistd: Likewise.
34290         * modules/wchar: Likewise.
34291         * modules/wctype: Likewise.
34292
34293 2009-08-22  Jim Meyering  <meyering@redhat.com>
34294
34295         announce-gen: detect write failure
34296         * build-aux/announce-gen: Add Coda at end.
34297         Remove equivalent-but-more-verbose block at top.
34298
34299 2009-08-19  Akim Demaille  <demaille@gostai.com>
34300
34301         bootstrap: --help to stdout.
34302         * bootstrap (usage): Don't send --help to stderr.
34303         Use a here doc instead of a long string.
34304
34305 2009-08-21  Eric Blake  <ebb9@byu.net>
34306
34307         test-popen-safer: split from test-popen
34308         * tests/test-popen.c (main): Move...
34309         * tests/test-popen.h: ...into new file.
34310         * tests/test-popen-safer2.c: New file.
34311         * modules/popen-tests (Files): Add test-popen.h.
34312         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
34313         Suggested by Bruno Haible.
34314
34315         test-fcntl-safer: split from test-open
34316         * tests/test-open.c (main): Move...
34317         * tests/test-open.h: ...into new file.
34318         * tests/test-fcntl-safer.c: New file.
34319         * modules/open-tests (Files): Add test-open.h.
34320         * modules/fcntl-safer-tests: New file.
34321         Suggested by Bruno Haible.
34322
34323         test-fopen-safer: split from test-fopen
34324         * tests/test-fopen.c (main): Move...
34325         * tests/test-fopen.h: ...into new file.
34326         * tests/test-fopen-safer.c: New file.
34327         * modules/fopen-tests (Files): Add test-fopen.h.
34328         * modules/fopen-safer-tests: New file.
34329         Suggested by Bruno Haible.
34330
34331 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
34332
34333         popen-safer: test O_CLOEXEC at run-time.
34334         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
34335
34336 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
34337
34338         fcntl: move more flags to the header
34339         * lib/cloexec.c: Do not define FD_CLOEXEC here.
34340         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
34341         * lib/fcntl.in.h: Do both things here.
34342
34343 2009-08-21  Jim Meyering  <meyering@redhat.com>
34344
34345         consistently remove $@-t before redirecting to it
34346         * modules/argz: Remove $@-t and $@ before redirecting to the former.
34347         * modules/alloca-opt: Likewise.
34348         * modules/byteswap: Likewise.
34349         * modules/fnmatch: Likewise.
34350         * modules/getopt-posix: Likewise.
34351         * modules/glob: Likewise.
34352         * modules/poll: Likewise.
34353         * modules/posix_spawnp-tests: Likewise.
34354         * modules/sys_socket: Likewise.
34355         * modules/sysexits: Likewise.
34356
34357 2009-08-21  Eric Blake  <ebb9@byu.net>
34358
34359         popen: simplify access to original popen
34360         * lib/popen.c (rpl_popen): No need to worry about popen being a
34361         macro.
34362         Reported by Bruno Haible.
34363
34364 2009-08-20  Eric Blake  <ebb9@byu.net>
34365
34366         build: avoid some compiler warnings
34367         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
34368         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
34369         type.
34370         (new_exclude_segment, excluded_file_pattern_p)
34371         (excluded_file_name_p): Reduce scope.
34372         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
34373         old-style declaration.
34374
34375 2009-08-20  Simon Josefsson  <simon@josefsson.org>
34376
34377         * tests/test-exclude1.sh: Handle Windows EOL.
34378         * tests/test-exclude2.sh: Likewise.
34379         * tests/test-exclude3.sh: Likewise.
34380         * tests/test-exclude4.sh: Likewise.
34381         * tests/test-exclude5.sh: Likewise.
34382         * tests/test-exclude6.sh: Likewise.
34383         * tests/test-exclude7.sh: Likewise.
34384
34385 2009-08-19  Akim Demaille  <demaille@gostai.com>
34386
34387         bootstrap: find sha1sum when named gsha1sum.
34388         * bootstrap (find_tool): New.
34389         ($SHA1SUM): New.
34390         Use it.
34391
34392 2009-08-20  Jim Meyering  <meyering@redhat.com>
34393
34394         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
34395         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
34396         expression that converts "." in a file name to "\." in the resulting
34397         regexp.  Start with a dummy statement, so that prior shell variable
34398         definitions are expanded portably.  Reported by Simon Josefsson.
34399
34400 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
34401
34402         Fix polling for writeability of a screen buffer.
34403         * lib/poll.c: Distinguish input and screen buffers for the
34404         Win32 implementation.
34405         * lib/select.c: Likewise.
34406
34407 2009-08-19  Eric Blake  <ebb9@byu.net>
34408
34409         popen-safer: prevent popen from clobbering std descriptors
34410         * modules/popen-safer: New file.
34411         * lib/popen-safer.c: Likewise.
34412         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
34413         * lib/stdio--.h (popen): Provide override.
34414         * lib/stdio-safer.h (popen_safer): Provide declaration.
34415         * tests/test-popen.c (includes): Partially test this.
34416         * modules/popen-safer-tests: New file, for more tests.
34417         * tests/test-popen-safer.c: Likewise.
34418         * MODULES.html.sh (file stream based Input/Output): Mention it.
34419
34420         tests: test some of the *-safer modules
34421         * modules/fopen-safer (Depends-on): Add fopen.
34422         * modules/fcntl-safer (Depends-on): Add fcntl.
34423         * modules/stdlib-safer (Depends-on): Add stdlib.
34424         (configure.ac): Set indicator.
34425         * modules/unistd-safer (configure.ac): Likewise.
34426         * modules/tmpfile-safer (configure.ac): Likewise.
34427         (Depends-on): Add tmpfile.
34428         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
34429         active.
34430         * tests/test-fopen.c (includes): Test safer versions when they are
34431         in use.
34432         * tests/test-open.c (includes): Likewise.
34433
34434         popen: fix cygwin 1.5 bug when stdin closed
34435         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
34436         * modules/popen: New file.
34437         * modules/popen-tests: Likewise.
34438         * tests/test-popen.c: Likewise.
34439         * m4/popen.m4: Likewise.
34440         * lib/popen.c: Likewise.
34441         * lib/stdio.in.h (popen): New declaration.
34442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
34443         * modules/stdio (Makefile.am): Likewise.
34444         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
34445
34446 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
34447
34448         maint.mk: give full control over update-copyright exclusions
34449         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
34450         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
34451         (update-copyright): Don't force inclusion of top-level
34452         ChangeLog.  Don't force exclusion of all COPYING files, but make
34453         them the default exclusion instead.
34454
34455 2009-08-16  Bruno Haible  <bruno@clisp.org>
34456
34457         Fix test failures on Solaris 10.
34458         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
34459         tests when Solaris iconv() is used.
34460         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34461         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34462         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34463         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34464         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34465
34466 2009-08-16  Bruno Haible  <bruno@clisp.org>
34467
34468         Fix test failures on Solaris 10.
34469         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
34470         'tr' program and pass it as first argument.
34471         * tests/test-pipe-filter-gi1.sh: Likewise.
34472         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
34473         program as first argument.
34474         * tests/test-pipe-filter-gi1.c (main): Likewise.
34475
34476 2009-08-16  Eric Blake  <ebb9@byu.net>
34477
34478         fpurge: fix previous commits
34479         * modules/fpurge (Makefile.am): Make replacement conditional,
34480         partially reverting 2007-04-29 change; missed in previous
34481         attempt.
34482         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
34483         is missing.
34484
34485 2009-08-16  Bruno Haible  <bruno@clisp.org>
34486
34487         Clarify fpurge's effect on the file position.
34488         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
34489         * tests/test-fpurge.c (main): Make a second pass for checking the file
34490         position.
34491
34492 2009-08-16  Bruno Haible  <bruno@clisp.org>
34493
34494         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
34495         declaration of fpurge is missing.
34496         * tests/test-fpurge.c (main): Check that the file has not more contents
34497         than expected. Close the file before removing it.
34498
34499 2009-08-15  Eric Blake  <ebb9@byu.net>
34500
34501         fpurge: don't wrap working cygwin implementation
34502         * lib/fpurge.c (fpurge): Fix comment typo.
34503         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
34504         1.7 to avoid replacement.
34505         * tests/test-fpurge.c (main): Enhance test.
34506
34507 2009-08-15  Eric Blake  <ebb9@byu.net>
34508         and Jim Meyering  <meyering@redhat.com>
34509
34510         test-update-copyright: skip if perl is insufficient
34511         * tests/test-update-copyright.sh: Failure to run maintainer tool
34512         should not cause testsuite failure on cygwin 1.5.
34513
34514 2009-08-14  Eric Blake  <ebb9@byu.net>
34515
34516         doc: mention more functions added in cygwin 1.7.0
34517         * doc/posix-headers/limits.texi (limits.h): Update for recent
34518         cygwin additions.
34519         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
34520         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
34521         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
34522         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
34523         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
34524
34525 2009-08-14  Eric Blake  <ebb9@byu.net>
34526
34527         maint.mk: simplify update-copyright rule
34528         * top/maint.mk (update-copyright-local): Delete, and document how
34529         to do it in cfg.mk instead.
34530         (update-copyright-exclude-regexp): Delete, and document how to do
34531         it in .x-update-copyright instead.
34532         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
34533         exclude ChangeLog.
34534
34535 2009-08-14  Bruno Haible  <bruno@clisp.org>
34536
34537         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
34538
34539 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34540
34541         maint.mk: support update-copyright-env
34542         * top/maint.mk (update-copyright-env): Define place-holder.
34543         (update-copyright): Expand $(update-copyright-env) before
34544         invoking update-copyright.
34545
34546 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34547
34548         update-copyright: implement forced reformatting
34549         * build-aux/update-copyright: Implement and document
34550         UPDATE_COPYRIGHT_FORCE.
34551         * tests/test-update-copyright.sh: Test it.
34552
34553 2009-08-14  Eric Blake  <ebb9@byu.net>
34554         and Bruno Haible  <bruno@clisp.org>
34555
34556         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
34557         * tests/test-locale.c: Revert previous patch related to NULL.
34558         * tests/test-stdio.c: Likewise.
34559         * tests/test-stdlib.c: Likewise.
34560         * tests/test-string.c: Likewise.
34561         * tests/test-unistd.c: Likewise.
34562         * modules/time-tests (Depends-on): Add verify.
34563         * modules/wchar-tests (Depends-on): Likewise.
34564         * tests/test-time.c: Test for NULL compliance.
34565         * tests/test-wchar.c: Likewise.
34566         * modules/locale (Depends-on): Add stddef.
34567         * modules/stdio (Depends-on): Likewise.
34568         * modules/stdlib (Depends-on): Likewise.
34569         * modules/string (Depends-on): Likewise.
34570         * modules/time (Depends-on): Likewise.
34571         * modules/unistd (Depends-on): Likewise.
34572         * modules/wchar (Depends-on): Likewise.
34573         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
34574         * lib/stdlib.in.h (includes): Likewise.
34575         * lib/string.in.h (includes): Likewise.
34576         * lib/time.in.h (includes): Likewise.
34577         * lib/unistd.in.h (includes): Likewise.
34578         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
34579         replaced.
34580         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34581         * m4/stddef_h.m4: New file.
34582         * modules/stddef: Likewise.
34583         * lib/stddef.in.h: Likewise.
34584         * modules/stddef-tests: Likewise.
34585         * tests/test-stddef.c: Likewise.
34586         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
34587         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
34588         * doc/posix-headers/locale.texi (locale.h): Likewise.
34589         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
34590         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
34591         * doc/posix-headers/string.texi (string.h): Likewise.
34592         * doc/posix-headers/time.texi (time.h): Likewise.
34593         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
34594         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
34595
34596 2009-08-14  Eric Blake  <ebb9@byu.net>
34597
34598         doc: improve git diff of texinfo files
34599         * .gitattributes: Add rule for *.texi files, with hint on how to
34600         use it.
34601         Copied from m4, and based on a report by Bruno Haible.
34602
34603 2009-08-14  Bruno Haible  <bruno@clisp.org>
34604
34605         Disable multithread support by default on Cygwin 1.5.x for real.
34606         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
34607
34608 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34609
34610         update-copyright: much ado about intervals
34611         * build-aux/update-copyright: Implement and document
34612         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
34613         of copyright year intervals.
34614         Also, document UPDATE_COPYRIGHT_YEAR.
34615         * tests/test-update-copyright.sh: Test it.
34616
34617         update-copyright: convert 2-digit to 4-digit years
34618         * build-aux/update-copyright: Implement and document.
34619         * tests/test-update-copyright.sh: Update.
34620
34621 2009-08-14  Jim Meyering  <meyering@redhat.com>
34622
34623         test-exclude: avoid coreutils "make check" failure
34624         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
34625         just as in test-argmatch.c.
34626
34627 2009-08-13  Eric Blake  <ebb9@byu.net>
34628
34629         test-dup2: fix bad assumption
34630         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
34631         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
34632
34633         test-version-etc: fix CRLF portability issue
34634         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
34635         recognize \r.
34636         * tests/test-argp-version-etc-1.sh: Likewise.
34637
34638         getopt: update client modules
34639         * modules/argp (Depends-on): Use getopt-gnu.
34640         * modules/git-merge-changelog (Depends-on): Likewise.
34641         * modules/long-options (Depends-on): Likewise.
34642         * modules/xstrtol (Depends-on): Likewise.
34643
34644 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34645
34646         * tests/test-version-etc.sh: Don't fail on different
34647         project/version.  Don't fail on CRLF differences.  Rewrite to use
34648         multiple -e instead of multiple sed forks, suggested by Eric Blake
34649         <ebb9@byu.net>.
34650         * tests/test-argp-version-etc-1.sh: Likewise.
34651
34652 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34653
34654         * tests/test-version-etc.sh: Don't fail on different
34655         project/version.
34656
34657 2009-08-12  Bruno Haible  <bruno@clisp.org>
34658
34659         Tests for modules 'getopt-posix', 'getopt-gnu'.
34660         * modules/getopt-posix-tests: New file.
34661         * tests/test-getopt.c: New file.
34662         * tests/test-getopt.h: New file.
34663         * tests/test-getopt_long.h: New file.
34664
34665         New modules 'getopt-posix', 'getopt-gnu'.
34666         * modules/getopt-gnu: New file, renamed from modules/getopt.
34667         * modules/getopt-posix: New file.
34668         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
34669         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
34670         (gl_GETOPT): Remove macro.
34671         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
34672         Disable the test against BSD systems that declare optreset. Test
34673         against mingw bug. Test against lack of support of optional arguments
34674         on many platforms.
34675         * doc/glibc-headers/getopt.texi: Update module name and list of
34676         relevant platforms.
34677         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
34678         'getopt-gnu' and more portability problems.
34679         * NEWS: Mention the changes.
34680
34681 2009-08-12  Bruno Haible  <bruno@clisp.org>
34682
34683         Ensure that optarg etc. get declared by <unistd.h>.
34684         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
34685         AC_USE_SYSTEM_EXTENSIONS.
34686         * modules/getopt (Depends-on): Add 'extensions'.
34687
34688 2009-08-12  Bruno Haible  <bruno@clisp.org>
34689
34690         Avoid test link errors.
34691         * modules/pipe-filter-ii-tests (Makefile.am): Define
34692         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
34693         * modules/pipe-filter-gi-tests (Makefile.am): Define
34694         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
34695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34696
34697 2009-08-12  Bruno Haible  <bruno@clisp.org>
34698
34699         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
34700         gl_GETOPT_SUBSTITUTE before.
34701         (gl_GETOPT): Use it.
34702         * m4/argp.m4 (gl_ARGP): Update.
34703         Reported by Sergey Poznyakoff.
34704
34705         * m4/getopt.m4: Reorder macros.
34706         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
34707         (gl_GETOPT_SUBSTITUTE): Remove macro.
34708
34709 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34710
34711         Minor improvement in gitlog-to-changelog
34712
34713         * build-aux/gitlog-to-changelog: New option `--format' makes
34714         output format string configurable.
34715
34716 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34717
34718         Optimize exclude: use hash tables for non-wildcard patterns.
34719
34720         * lib/exclude.c: Include hash.h and mbuiter.h
34721         (struct exclude_pattern, exclude_segment): New data types.
34722         (struct exclude): Rewrite.
34723         (fnmatch_pattern_has_wildcards): New function.
34724         (new_exclude_segment, free_exclude_segment): New functions.
34725         (excluded_file_pattern_p, excluded_file_name_p): New functions.
34726         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
34727         * lib/exclude.h (is_fnmatch_pattern): New prototype.
34728         * modules/exclude: Depend on hash and mbuiter.
34729
34730         * modules/exclude-tests: New file.
34731         * tests/test-exclude.c: New file.
34732         * tests/test-exclude1.sh: New file.
34733         * tests/test-exclude2.sh: New file.
34734         * tests/test-exclude3.sh: New file.
34735         * tests/test-exclude4.sh: New file.
34736         * tests/test-exclude5.sh: New file.
34737         * tests/test-exclude6.sh: New file.
34738         * tests/test-exclude7.sh: New file.
34739
34740 2009-08-12  Bruno Haible  <bruno@clisp.org>
34741
34742         Ensure that getopt() gets declared by <unistd.h>.
34743         * lib/unistd.in.h: Conditionally include getopt.h.
34744         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
34745         Set GNULIB_UNISTD_H_GETOPT.
34746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34747         GNULIB_UNISTD_H_GETOPT.
34748         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
34749
34750 2009-08-12  Bruno Haible  <bruno@clisp.org>
34751
34752         Clarify logic.
34753         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
34754         gl_replace_getopt instead of GETOPT_H.
34755
34756 2009-08-12  Bruno Haible  <bruno@clisp.org>
34757
34758         * m4/getopt.m4: Add comments.
34759
34760 2009-08-12  Bruno Haible  <bruno@clisp.org>
34761
34762         Disable multithread support by default on Cygwin 1.5.x.
34763         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
34764         set gl_use_threads=no if not specified otherwise.
34765
34766 2009-08-11  Bruno Haible  <bruno@clisp.org>
34767
34768         Avoid compilation error on NetBSD 5.0.
34769         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
34770         * tests/test-stdio.c: Likewise.
34771         * tests/test-stdlib.c: Likewise.
34772         * tests/test-string.c: Likewise.
34773         * tests/test-unistd.c: Likewise.
34774         Reported by Greg Troxel <gdt@ir.bbn.com>
34775         at <https://savannah.gnu.org/support/?106973>.
34776
34777 2009-08-11  Bruno Haible  <bruno@clisp.org>
34778
34779         * modules/dup2-tests (Depends-on): Remove close.
34780
34781         Undo 2009-07-19 commit.
34782         * modules/acl-tests (Depends-on): Remove close.
34783         * modules/binary-io-tests (Depends-on): Likewise.
34784         * modules/closein-tests (Depends-on): Likewise.
34785         * modules/flock-tests (Depends-on): Likewise.
34786         * modules/fsync-tests (Depends-on): Likewise.
34787         * modules/lseek-tests (Depends-on): Likewise.
34788         * modules/pipe-tests (Depends-on): Likewise.
34789         * modules/posix_spawn-tests (Depends-on): Likewise.
34790         * modules/posix_spawnp-tests (Depends-on): Likewise.
34791         * modules/stat-time-tests (Depends-on): Likewise.
34792         * modules/yesno-tests (Depends-on): Likewise.
34793
34794 2009-08-10  Bruno Haible  <bruno@clisp.org>
34795
34796         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
34797
34798 2009-08-10  Bruno Haible  <bruno@clisp.org>
34799
34800         Fix a gcc warning.
34801         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
34802
34803 2009-08-10  Bruno Haible  <bruno@clisp.org>
34804
34805         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
34806         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
34807         not only the first time.
34808         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
34809         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
34810         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
34811         is 1, not only the the first time.
34812
34813 2009-08-10  Bruno Haible  <bruno@clisp.org>
34814
34815         Make it possible to use module 'gethostname' without module 'close'.
34816         * lib/unistd.in.h (close): Evoke a link error only if
34817         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34819         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34820         * modules/unistd (Makefile.am): Substitute
34821         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34822         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
34823         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34824         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34825         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34826         * modules/sys_ioctl (Makefile.am): Substitute
34827         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34828         * modules/socket (configure.ac): On native Windows, set
34829         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
34830         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34831         Reported by Sam Steingold <sds@gnu.org>.
34832
34833 2009-08-10  Bruno Haible  <bruno@clisp.org>
34834
34835         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
34836         * modules/ioctl (configure.ac): Likewise.
34837
34838 2009-08-10  Bruno Haible  <bruno@clisp.org>
34839
34840         Avoid collision between gnulib wrapper and libintl wrapper.
34841         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
34842         already defined in intl/printf.c.
34843         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
34844         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
34845
34846 2009-08-09  Bruno Haible  <bruno@clisp.org>
34847
34848         Make <sys/select.h> really self-contained, also on Solaris 10.
34849         * lib/sys_select.in.h: Include <string.h>.
34850         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
34851         Solaris 10 problem.
34852         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
34853         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
34854         Reported by Jim Meyering.
34855
34856 2009-08-09  Bruno Haible  <bruno@clisp.org>
34857
34858         Avoid warnings from 'aclocal' that are due to a use of macro name
34859         AM_XGETTEXT_OPTION that is not defined in automake.
34860         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
34861         automake.
34862         * modules/error (configure.ac): Likewise.
34863         * modules/propername (configure.ac): Likewise.
34864         * modules/vasprintf (configure.ac): Likewise.
34865         * modules/verror (configure.ac): Likewise.
34866         * modules/xprintf (configure.ac): Likewise.
34867         * modules/xvasprintf (configure.ac): Likewise.
34868
34869 2009-08-08  Bruno Haible  <bruno@clisp.org>
34870
34871         Avoid compilation error in C++ mode.
34872         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
34873         Reported by Sam Steingold <sds@gnu.org>.
34874
34875 2009-08-08  Bruno Haible  <bruno@clisp.org>
34876
34877         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
34878         for the various Unix platforms.
34879         * doc/posix-headers/limits.texi: Update platforms list regarding
34880         HOST_NAME_MAX.
34881         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34882
34883 2009-08-07  Jim Meyering  <meyering@redhat.com>
34884
34885         selinux-at: fix typo in a comment
34886         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
34887         Spotted by Paolo Bonzini.
34888
34889         selinux-at: remove redundant m4 code, add documentation
34890         * modules/selinux-at (configure.ac): Remove redundant code.
34891         LIB_SELINUX is already set via the dependent module, selinux-h.
34892         (Include): Add quotes around selinux-at.h.
34893         * lib/selinux-at.h: Add documentation.
34894         Reported by Bruno Haible in
34895         http://marc.info/?l=gnulib-bug&m=124958988300749
34896
34897 2009-08-07  Bruno Haible  <bruno@clisp.org>
34898
34899         Avoid link error on MacOS X 10.3 and 10.4.
34900         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
34901         on non-ELF systems.
34902         * lib/argp-pv.c (argp_program_version): Likewise.
34903         Reported by Simon Josefsson.
34904
34905 2009-08-07  Simon Josefsson  <simon@josefsson.org>
34906
34907         * tests/test-version-etc.sh: Use $EXEEXT.
34908
34909 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
34910
34911         update-copyright: update documentation to point to maint.mk
34912         * build-aux/update-copyright: Here.
34913
34914 2009-08-06  Jim Meyering  <meyering@redhat.com>
34915
34916         maint.mk: support update-copyright-local
34917         * top/maint.mk (update-copyright-local): Define place-holder.
34918         (update-copyright): Depend on $(update-copyright-local).
34919
34920 2009-08-06  Jim Meyering  <meyering@redhat.com>
34921
34922         selinux-at: new module
34923         Initially written for coreutils, this module will soon be
34924         used by findutils, too.
34925         * MODULES.html.sh [Misc]: Add selinux-at.
34926         * lib/selinux-at.h: New file, from coreutils.
34927         * lib/selinux-at.c: Likewise.
34928         * modules/selinux-at: Likewise.
34929         (License): Change from LGPL to GPL, since it depends
34930         on the GPL'd openat module.
34931
34932         doc: update README
34933         * README: Remove references to cogito.
34934         Remove cvs-repo-updating instructions from 2007.
34935         Don't imply that CVS is better if you have limited disk space.
34936
34937 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34938
34939         update-copyright: support C-style comments
34940         * build-aux/update-copyright: Implement and document.
34941         * tests/test-update-copyright.sh: Test.
34942
34943 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34944
34945         update-copyright: support omitted "(C)"
34946         * build-aux/update-copyright: Implement and document.  Also,
34947         allow variable whitespace before "(C)".
34948         * tests/test-update-copyright.sh: Test.
34949
34950 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34951
34952         update-copyright: don't trip on non-FSF copyright statements
34953         * build-aux/update-copyright: Fix so that the first correctly
34954         formatted FSF copyright statement is recognized no matter what
34955         appears before it.  Update documentation.
34956         * tests/test-update-copyright.sh: Test that.
34957
34958 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34959
34960         update-copyright: clean up code a little
34961         * build-aux/update-copyright: Append "_re" to the name of any
34962         variable holding a regular expression.
34963         Replace "old" and "new" with "stmt" in variable names.
34964         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
34965         handled correctly.
34966         Format code more consistently.
34967
34968 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34969
34970         update-copyright-tests: improve portability
34971         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
34972         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
34973
34974 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34975
34976         update-copyright: support @copyright{} and &copy;
34977         * build-aux/update-copyright: Implement and document.
34978         * tests/test-update-copyright.sh: Test.
34979
34980 2009-08-04  Jim Meyering  <meyering@redhat.com>
34981
34982         update-copyright-tests: correctly test EOL=\r\n handling
34983         * tests/test-update-copyright.sh: Put \r at the end of some lines
34984         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34985
34986         maint.mk: make update-copyright exclusion list more configurable
34987         * top/maint.mk (update-copyright): Default to excluding COPYING,
34988         but allow an override, in case someone does want to update that file.
34989
34990         maint.mk: don't update copyright date in COPYING
34991         * top/maint.mk (update-copyright): Exclude COPYING.
34992
34993         maint.mk: add a copyright-updating rule
34994         * top/maint.mk (update-copyright): New rule.
34995         Derived from coreutils/Makefile.am.
34996
34997         update-copyright: rename some variables
34998         * build-aux/update-copyright: Rename a few variables for clarity.
34999         Tweak syntax.  List Joel E. Denny as coauthor.
35000
35001 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35002
35003         update-copyright: fix bug for 2-digit last year and add tests
35004         * build-aux/update-copyright: Fix bug.
35005         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
35006         specified.
35007         * modules/update-copyright-tests: New
35008         * tests/test-update-copyright.sh: New.
35009
35010 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35011
35012         update-copyright: handle leading tabs in line prefix
35013         * build-aux/update-copyright: Count leading tabs as 8 spaces
35014         when computing margin.  This helps with the formatting of
35015         ChangeLogs, for example.
35016         Fix documentation a little.
35017
35018 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35019
35020         update-copyright: support EOL=\r\n
35021         * build-aux/update-copyright: Implement that.
35022
35023 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35024
35025         update-copyright: automatically format copyright statements
35026         * build-aux/update-copyright: Implement that.
35027         Also, be a little more predictable and safer by always failing
35028         when the full copyright format is not perfectly recognized as an
35029         unbroken whole.  Discussed at
35030         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
35031         Rewrite documentation.
35032
35033 2009-08-03  Bruno Haible  <bruno@clisp.org>
35034
35035         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
35036
35037 2009-08-02  Bruno Haible  <bruno@clisp.org>
35038
35039         Tests for module 'uname'.
35040         * modules/uname-tests: New file.
35041         * tests/test-uname.c: New file.
35042
35043         New module 'uname'.
35044         * lib/uname.c: New file.
35045         * m4/uname.m4: New file.
35046         * modules/uname: New file.
35047         * doc/posix-functions/uname.texi: Mention the new module.
35048
35049 2009-08-02  Bruno Haible  <bruno@clisp.org>
35050
35051         Tests for module 'sys_utsname'.
35052         * modules/sys_utsname-tests: New file.
35053         * tests/test-sys_utsname.c: New file.
35054
35055         New module 'sys_utsname'.
35056         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
35057         * m4/sys_utsname_h.m4: New file.
35058         * modules/sys_utsname: New file.
35059         * doc/posix-headers/sys_utsname.texi: Mention the new module.
35060
35061 2009-08-02  Bruno Haible  <bruno@clisp.org>
35062
35063         Implicitly initialize the sockets library.
35064         * lib/gethostname.c: Include sockets.h.
35065         (rpl_gethostname): Invoke gl_sockets_startup.
35066         * lib/socket.c: Include sockets.h.
35067         (rpl_socket): Invoke gl_sockets_startup.
35068         * modules/gethostname (Depends-on): Add sockets.
35069         * modules/socket (Depends-on): Likewise.
35070         * tests/test-poll.c: Don't include sockets.h.
35071         (main): Don't invoke gl_sockets_startup.
35072         * tests/test-select.c: Don't include sockets.h.
35073         (main): Don't invoke gl_sockets_startup.
35074
35075 2009-08-02  Bruno Haible  <bruno@clisp.org>
35076
35077         Allow multiple calls to gl_sockets_startup.
35078         * lib/sockets.c (initialized_sockets_version): New variable.
35079         (gl_sockets_startup): Do nothing if already called for this or a higher
35080         version.
35081         (gl_sockets_cleanup): Reset initialized_sockets_version.
35082
35083 2009-08-03  Simon Josefsson  <simon@josefsson.org>
35084
35085         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
35086         different project/version.
35087
35088 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
35089             Bruno Haible  <bruno@clisp.org>
35090
35091         Tests for module 'pipe-filter-gi'.
35092         * modules/pipe-filter-gi-tests: New file.
35093         * tests/test-pipe-filter-gi1.sh: New file.
35094         * tests/test-pipe-filter-gi1.c: New file.
35095         * tests/test-pipe-filter-gi2.sh: New file.
35096         * tests/test-pipe-filter-gi2-main.c: New file.
35097         * tests/test-pipe-filter-gi2-child.c: New file.
35098
35099         New module 'pipe-filter-gi'.
35100         * lib/pipe-filter-gi.c: New file.
35101         * modules/pipe-filter-gi: New file.
35102
35103 2009-08-02  Bruno Haible  <bruno@clisp.org>
35104             Paolo Bonzini  <bonzini@gnu.org>
35105
35106         Tests for module 'pipe-filter-ii'.
35107         * modules/pipe-filter-ii-tests: New file.
35108         * tests/test-pipe-filter-ii1.sh: New file.
35109         * tests/test-pipe-filter-ii1.c: New file.
35110         * tests/test-pipe-filter-ii2.sh: New file.
35111         * tests/test-pipe-filter-ii2-main.c: New file.
35112         * tests/test-pipe-filter-ii2-child.c: New file.
35113
35114         New module 'pipe-filter-ii'.
35115         * lib/pipe-filter.h: New file.
35116         * lib/pipe-filter-ii.c: New file.
35117         * lib/pipe-filter-aux.h: New file.
35118         * modules/pipe-filter-ii: New file.
35119
35120 2009-08-02  Simon Josefsson  <simon@josefsson.org>
35121
35122         * lib/gc-libgcrypt.c: Change copyright to FSF.
35123         * lib/gc-gnulib.c: Likewise.
35124
35125 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
35126
35127         * lib/gethostname.c: Include limits.h.
35128
35129 2009-08-02  Simon Josefsson  <simon@josefsson.org>
35130             Bruno Haible  <bruno@clisp.org>
35131
35132         Ensure HOST_NAME_MAX as part of the gethostname module.
35133         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
35134         define also HOST_NAME_MAX.
35135         * tests/test-gethostname.c: Include <limits.h>.
35136         (main): Check also HOST_NAME_MAX.
35137         * doc/posix-headers/limits.texi: Document the mingw problem.
35138
35139 2009-08-02  Bruno Haible  <bruno@clisp.org>
35140
35141         * lib/gethostname.c (gethostname): Fix handling of large len argument.
35142         Add comments.
35143
35144 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35145
35146         * lib/gethostname.c: Add Windows wrapper.
35147         * m4/gethostname.m4: Look for gethostname in -lws2_32.
35148         * modules/gethostname: Depend on sys_socket & errno, for also
35149         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
35150         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
35151
35152 2009-07-31  Jim Meyering  <meyering@redhat.com>
35153
35154         getloadavg: fix symbol name in comment
35155         * lib/getloadavg.c: Correct a typo I introduced when adding
35156         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
35157         Matt Kraai spotted the problem.
35158
35159 2009-07-29  Matt Kraai  <mkraai@beckman.com>
35160
35161         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
35162         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
35163         code also if ! defined N_NAME_POINTER.
35164         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
35165         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
35166         but the n_name member is a 12-byte array.
35167
35168 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
35169
35170         update-copyright: generalize comment handling
35171         * build-aux/update-copyright: Handle copyright statements
35172         within more comment styles.
35173         Document usage.
35174         Report any file with an external copyright holder or parse failure.
35175
35176 2009-07-29  Jim Meyering  <meyering@redhat.com>
35177
35178         mktime: correct setting of REPLACE_MKTIME
35179         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
35180
35181         update-copyright: new module
35182         * modules/update-copyright: New file.
35183         * build-aux/update-copyright: New file.
35184         * MODULES.html.sh (maint+release support): Add update-copyright.
35185
35186 2009-07-27  Bruno Haible  <bruno@clisp.org>
35187
35188         Fix compilation error when <ctime> is used and mktime is replaced.
35189         * lib/time.in.h (mktime): New declaration.
35190         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
35191         REPLACE_MKTIME instead of defining mktime in config.h.
35192         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
35193         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
35194         Reported by Ross McFarland <rwmcfa1@neces.com>.
35195
35196 2009-07-27  Bruno Haible  <bruno@clisp.org>
35197
35198         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
35199         Reported by Matt Kraai <mkraai@beckman.com>.
35200
35201 2009-07-25  Jim Meyering  <meyering@redhat.com>
35202
35203         maint.mk: avoid warnings about missing files
35204         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
35205         diagnostic when .prev-version does not exist.
35206         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
35207         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
35208         nonexistent cfg.mk.
35209         Suggestions from Simon Josefsson.
35210
35211 2009-07-25  Bruno Haible  <bruno@clisp.org>
35212
35213         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
35214         defined as macros. Needed on QNX 6.4.1.
35215         Reported by Matt Kraai <mkraai@beckman.com>.
35216
35217 2009-07-23  Jim Meyering  <meyering@redhat.com>
35218
35219         maint.mk: invoke "make dist" with a working value of XZ_OPT
35220         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
35221
35222 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
35223
35224         Make fseeko.c compile on QNX.
35225         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
35226
35227 2009-07-22  Peter Simons  <simons@cryp.to>
35228
35229         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
35230         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
35231         * lib/md4.h: Likewise.
35232         * lib/md5.h: Likewise.
35233         * lib/sha1.h: Likewise.
35234         * lib/sha256.h: Likewise.
35235         * lib/sha512.h: Likewise.
35236
35237         tests-sha1: don't assign literal string to 'char *' variable
35238         * tests/test-sha1.c (main): Declare locals with "const" to match
35239         attributes of the right hand side.
35240
35241 2009-07-21  Eric Blake  <ebb9@byu.net>
35242
35243         dup2: fix more mingw problems
35244         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
35245         fd to itself.
35246         * doc/posix-functions/dup2.texi (dup2): Document the bug.
35247         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
35248         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
35249         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
35250         care of mingw bugs.
35251
35252 2009-07-21  Jim Meyering  <meyering@redhat.com>
35253
35254         vc-list-files: avoid failure when /bin/sh is dash
35255         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
35256         On some Debian based systems, /bin/sh is a symlink to dash, and running
35257         this command would omit the "/" following each 'tests' prefix:
35258           dash -x build-aux/vc-list-files -C . tests
35259         That is because bash and dash work differently:
35260           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
35261           bash ok
35262           dash odd
35263
35264 2009-07-21  Eric Blake  <ebb9@byu.net>
35265
35266         dup2-tests: test previous patch
35267         * modules/dup2-tests: New file.
35268         * tests/test-dup2.c: Likewise.
35269         * tests/test-open.c (main): Avoid unspecified behavior.
35270         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
35271         test.
35272
35273         dup2: work around mingw and cygwin 1.5 bug
35274         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
35275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35276         * modules/unistd (Makefile.am): Substitute it.
35277         * lib/unistd.in.h (dup2): Declare the replacement.
35278         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
35279         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
35280         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
35281         * modules/execute (Depends-on): Add dup2.
35282         * modules/fseterr (Depends-on): Likewise.
35283         * modules/pipe (Depends-on): Likewise.
35284         * modules/posix_spawn-internal (Depends-on): Likewise.
35285
35286 2009-07-21  Bruno Haible  <bruno@clisp.org>
35287
35288         * modules/.gitattributes: New file.
35289
35290 2009-07-20  Bruno Haible  <bruno@clisp.org>
35291
35292         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
35293         (main): Use it.
35294
35295 2009-07-20  Eric Blake  <ebb9@byu.net>
35296
35297         test-pipe: make a bit more robust.
35298         * tests/test-pipe.c (myerr): Allow error messages regardless of
35299         what we do to stderr.
35300         (test_pipe): Rearrange to avoid deadlock.
35301         (child_main): Try a larger read, to ensure we avoided deadlock.
35302         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
35303         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
35304         if misused.
35305
35306 2009-07-19  Jim Meyering  <meyering@redhat.com>
35307
35308         fts: avoid false-positive cycle-detection
35309         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
35310         for each new command line argument.
35311
35312 2009-07-19  Bruno Haible  <bruno@clisp.org>
35313
35314         Fix build error on mingw with the modules sys_select and unistd.
35315         * modules/acl-tests (Depends-on): Add close.
35316         * modules/binary-io-tests (Depends-on): Likewise.
35317         * modules/closein-tests (Depends-on): Likewise.
35318         * modules/flock-tests (Depends-on): Likewise.
35319         * modules/fsync-tests (Depends-on): Likewise.
35320         * modules/lseek-tests (Depends-on): Likewise.
35321         * modules/pipe-tests (Depends-on): Likewise.
35322         * modules/posix_spawn-tests (Depends-on): Likewise.
35323         * modules/posix_spawnp-tests (Depends-on): Likewise.
35324         * modules/stat-time-tests (Depends-on): Likewise.
35325         * modules/yesno-tests (Depends-on): Likewise.
35326
35327 2009-07-19  Bruno Haible  <bruno@clisp.org>
35328
35329         Unify conditionals.
35330         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
35331         macros, not at the compiler macros.
35332         * lib/pipe.c: Likewise.
35333         * lib/execute.c: Likewise.
35334         * lib/spawni.c: Likewise.
35335
35336 2009-07-19  Bruno Haible  <bruno@clisp.org>
35337
35338         Fix handling of closed stdin/stdout/stderr on mingw.
35339         * lib/w32spawn.h: Include unistd.h.
35340         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
35341         file descriptor with O_NOINHERIT flag.
35342         (fd_safer_noinherit): New function, based on fd-safer.c.
35343         (dup_safer_noinherit): New function, based on dup-safer.c.
35344         (undup_safer_noinherit): New function.
35345         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
35346         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
35347         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
35348         instead of fd_safer.
35349         * tests/test-pipe.c: Include <windows.h>.
35350         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
35351         result.
35352
35353         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
35354         from main.
35355         (test_pipe): Pass an extra argument for disambiguation.
35356         (main): Invoke parent_main or child_main.
35357
35358         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
35359         consistently.
35360
35361 2009-07-18  Eric Blake  <ebb9@byu.net>
35362
35363         test-pipe: fix mingw build
35364         * tests/test-pipe.c (main): Avoid fcntl on mingw.
35365
35366 2009-07-18  Bruno Haible  <bruno@clisp.org>
35367
35368         * modules/pipe-tests (Makefile.am): Fix typo.
35369
35370 2009-07-18  Eric Blake  <ebb9@byu.net>
35371
35372         error: fix mingw build
35373         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
35374         Reported by Bruno Haible.
35375
35376         error: avoid undefined use of stdout
35377         * lib/error.c (error, error_at_line): Check that fd 1 is open
35378         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
35379         is handling faults and the close_stdout module wants to report the
35380         detection of closed stdout as an error.
35381
35382 2009-07-17  Eric Blake  <ebb9@byu.net>
35383
35384         pipe: be robust in face of closed fds
35385         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
35386         should cause child to misbehave.
35387         * modules/pipe-tests: New module.
35388         * tests/test-pipe.c: New file.
35389         * tests/test-pipe.sh: New file.
35390         Reported by Akim Demaille.
35391
35392 2009-07-14  Bruno Haible  <bruno@clisp.org>
35393
35394         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
35395         Reported by anonymous kc.
35396
35397 2009-07-07  Jim Meyering  <meyering@redhat.com>
35398
35399         maint.mk: don't look for translatable strings in *.m4 or *.mk
35400         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
35401         when searching for translatable strings.
35402
35403 2009-07-05  Jim Meyering  <meyering@redhat.com>
35404
35405         remove superfluous parentheses in STREQ definition
35406         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
35407         * lib/getugroups.c (STREQ): Likewise.
35408         * lib/fnmatch.c (STREQ): Likewise.
35409         Spotted by Bruno Haible.
35410
35411 2009-07-04  Jim Meyering  <meyering@redhat.com>
35412
35413         argv-iter: new module
35414         * MODULES.html.sh: Add argv-iter.
35415         * lib/argv-iter.c, lib/argv-iter.h: New files.
35416         * modules/argv-iter: New file.
35417         * modules/argv-iter-tests: New file.
35418         * tests/test-argv-iter.c: Test it.
35419
35420 2009-07-04  Bruno Haible  <bruno@clisp.org>
35421
35422         Fix assertion.
35423         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
35424         contains more exact copies of a given entry than file2, leave the extra
35425         copies unpaired rather than aborting.
35426         Reported by Eric Blake.
35427
35428 2009-07-02  Bruno Haible  <bruno@clisp.org>
35429
35430         Speedup git-merge-changelog for git cherry-pick.
35431         * lib/git-merge-changelog.c (struct entries_mapping): New type.
35432         (entries_mapping_get): New function, extracted from compute_mapping.
35433         (entries_mapping_reverse_get): New function.
35434         (compute_mapping): Add a 'full' argument. Return the result in a
35435         'struct entries_mapping'.
35436         (main): Update. Access the mappings through entries_mapping_get.
35437         Reported by Eric Blake.
35438
35439 2009-07-02  Bruno Haible  <bruno@clisp.org>
35440
35441         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
35442         best_i.
35443
35444 2009-07-02  Bruno Haible  <bruno@clisp.org>
35445
35446         Speed up approximate search for matching ChangeLog entries.
35447         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
35448         argument. Call fstrcmp_bounded instead of fstrcmp.
35449         (compute_mapping, try_split_merged_entry, main): Update callers.
35450
35451 2009-07-02  Bruno Haible  <bruno@clisp.org>
35452
35453         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
35454
35455 2009-06-30  Bruno Haible  <bruno@clisp.org>
35456
35457         Reduce the number of uc_is_cased calls.
35458         * lib/unicase.h (casing_suffix_context_t): Add
35459         'first_char_except_ignorable' field.
35460         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
35461         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
35462         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
35463         Update initializer.
35464         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
35465         case-ignorable characters.
35466         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
35467         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
35468         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
35469         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
35470         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
35471
35472 2009-06-30  Bruno Haible  <bruno@clisp.org>
35473
35474         Tests for module 'unicase/ignorable'.
35475         * modules/unicase/ignorable-tests: New file.
35476         * tests/unicase/test-ignorable.c: New file, generated by
35477         gen-uni-tables.
35478
35479         Tests for module 'unicase/cased'.
35480         * modules/unicase/cased-tests: New file.
35481         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
35482         * tests/unicase/test-predicate-part1.h: New file, derived from
35483         tests/unictype/test-predicate-part1.h.
35484         * tests/unicase/test-predicate-part2.h: New file, same as
35485         tests/unictype/test-predicate-part2.h.
35486
35487         Fix evaluation of "Before C" condition of FINAL_SIGMA.
35488         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
35489         (output_casing_properties): New function.
35490         (main): Call it.
35491         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
35492         * lib/unicase/cased.c: Include unictype/bitmap.h.
35493         (uc_is_cased): Define through a bitmap lookup.
35494         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
35495         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
35496         (uc_is_case_ignorable): Define through a bitmap lookup.
35497         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
35498         lib/unictype/bitmap.h.
35499         (Depends-on): Add inline. Clean up.
35500         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
35501         lib/unictype/bitmap.h.
35502         (Depends-on): Add inline. Clean up.
35503         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
35504         recognition.
35505         * tests/unicase/test-u16-tolower.c (main): Likewise.
35506         * tests/unicase/test-u32-tolower.c (main): Likewise.
35507
35508 2009-06-30  Bruno Haible  <bruno@clisp.org>
35509
35510         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
35511         * lib/unicase/u16-casemap.c: Likewise.
35512         * lib/unicase/u32-casemap.c: Likewise.
35513
35514 2009-06-29  Bruno Haible  <bruno@clisp.org>
35515
35516         Define u32_casefold as a wrapper around u32_ct_casefold.
35517         * lib/unicase/u32-casefold.c: Update.
35518         * modules/unicase/u32-casefold (Depends-on): Add
35519         unicase/u32-ct-casefold, unicase/empty-prefix-context,
35520         unicase/empty-suffix-context. Clean up.
35521
35522         Define u16_casefold as a wrapper around u16_ct_casefold.
35523         * lib/unicase/u16-casefold.c: Update.
35524         * modules/unicase/u16-casefold (Depends-on): Add
35525         unicase/u16-ct-casefold, unicase/empty-prefix-context,
35526         unicase/empty-suffix-context. Clean up.
35527
35528         Define u8_casefold as a wrapper around u8_ct_casefold.
35529         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
35530         * lib/unicase/u8-casefold.c: Update.
35531         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
35532         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35533
35534         Define u32_totitle as a wrapper around u32_ct_totitle.
35535         * lib/unicase/u32-totitle.c: Update.
35536         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
35537         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35538
35539         Define u16_totitle as a wrapper around u16_ct_totitle.
35540         * lib/unicase/u16-totitle.c: Update.
35541         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
35542         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35543
35544         Define u8_totitle as a wrapper around u8_ct_totitle.
35545         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
35546         functions.
35547         (FUNC): Delegate to U_CT_TOTITLE.
35548         * lib/unicase/u8-totitle.c: Update.
35549         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
35550         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35551
35552         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
35553         invocation.
35554         * modules/unicase/u32-tolower (Depends-on): Add
35555         unicase/empty-prefix-context, unicase/empty-suffix-context.
35556
35557         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
35558         invocation.
35559         * modules/unicase/u16-tolower (Depends-on): Add
35560         unicase/empty-prefix-context, unicase/empty-suffix-context.
35561
35562         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
35563         * modules/unicase/u8-tolower (Depends-on): Add
35564         unicase/empty-prefix-context, unicase/empty-suffix-context.
35565
35566         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
35567         invocation.
35568         * modules/unicase/u32-toupper (Depends-on): Add
35569         unicase/empty-prefix-context, unicase/empty-suffix-context.
35570
35571         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
35572         invocation.
35573         * modules/unicase/u16-toupper (Depends-on): Add
35574         unicase/empty-prefix-context, unicase/empty-suffix-context.
35575
35576         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
35577         * modules/unicase/u8-toupper (Depends-on): Add
35578         unicase/empty-prefix-context, unicase/empty-suffix-context.
35579
35580         New module 'unicase/u32-ct-casefold'.
35581         * lib/unicase/u32-ct-casefold.c: New file.
35582         * modules/unicase/u32-ct-casefold: New file.
35583
35584         New module 'unicase/u16-ct-casefold'.
35585         * lib/unicase/u16-ct-casefold.c: New file.
35586         * modules/unicase/u16-ct-casefold: New file.
35587
35588         New module 'unicase/u8-ct-casefold'.
35589         * lib/unicase/u8-ct-casefold.c: New file.
35590         * lib/unicase/u-ct-casefold.h: New file, derived from
35591         lib/unicase/u-casefold.h.
35592         * modules/unicase/u8-ct-casefold: New file.
35593
35594         New module 'unicase/u32-ct-totitle'.
35595         * lib/unicase/u32-ct-totitle.c: New file.
35596         * modules/unicase/u32-ct-totitle: New file.
35597
35598         New module 'unicase/u16-ct-totitle'.
35599         * lib/unicase/u16-ct-totitle.c: New file.
35600         * modules/unicase/u16-ct-totitle: New file.
35601
35602         New module 'unicase/u8-ct-totitle'.
35603         * lib/unicase/u8-ct-totitle.c: New file.
35604         * lib/unicase/u-ct-totitle.h: New file, derived from
35605         lib/unicase/u-totitle.h.
35606         * modules/unicase/u8-ct-totitle: New file.
35607
35608         New module 'unicase/u32-ct-tolower'.
35609         * lib/unicase/u32-ct-tolower.c: New file.
35610         * modules/unicase/u32-ct-tolower: New file.
35611
35612         New module 'unicase/u16-ct-tolower'.
35613         * lib/unicase/u16-ct-tolower.c: New file.
35614         * modules/unicase/u16-ct-tolower: New file.
35615
35616         New module 'unicase/u8-ct-tolower'.
35617         * lib/unicase/u8-ct-tolower.c: New file.
35618         * modules/unicase/u8-ct-tolower: New file.
35619
35620         New module 'unicase/u32-ct-toupper'.
35621         * lib/unicase/u32-ct-toupper.c: New file.
35622         * modules/unicase/u32-ct-toupper: New file.
35623
35624         New module 'unicase/u16-ct-toupper'.
35625         * lib/unicase/u16-ct-toupper.c: New file.
35626         * modules/unicase/u16-ct-toupper: New file.
35627
35628         New module 'unicase/u8-ct-toupper'.
35629         * lib/unicase/u8-ct-toupper.c: New file.
35630         * modules/unicase/u8-ct-toupper: New file.
35631
35632         Add context arguments to u*_casemap functions.
35633         * lib/unicase/unicasemap.h: Include unicase.h.
35634         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
35635         suffix_context arguments.
35636         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
35637         functions.
35638         (FUNC): Add prefix_context and suffix_context arguments. Use
35639         uc_is_cased and uc_is_case_ignorable.
35640         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
35641         * lib/unicase/u16-casemap.c: Likewise.
35642         * lib/unicase/u32-casemap.c: Likewise.
35643         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
35644         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35645         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
35646         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35647         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
35648         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35649
35650         New module 'unicase/u32-suffix-context'.
35651         * lib/unicase/u32-suffix-context.c: New file.
35652         * modules/unicase/u32-suffix-context: New file.
35653
35654         New module 'unicase/u16-suffix-context'.
35655         * lib/unicase/u16-suffix-context.c: New file.
35656         * modules/unicase/u16-suffix-context: New file.
35657
35658         New module 'unicase/u8-suffix-context'.
35659         * lib/unicase/u8-suffix-context.c: New file.
35660         * lib/unicase/u-suffix-context.h: New file.
35661         * modules/unicase/u8-suffix-context: New file.
35662
35663         New module 'unicase/empty-suffix-context'.
35664         * lib/unicase/empty-suffix-context.c: New file.
35665         * modules/unicase/empty-suffix-context: New file.
35666
35667         New module 'unicase/u32-prefix-context'.
35668         * lib/unicase/u32-prefix-context.c: New file.
35669         * modules/unicase/u32-prefix-context: New file.
35670
35671         New module 'unicase/u16-prefix-context'.
35672         * lib/unicase/u16-prefix-context.c: New file.
35673         * modules/unicase/u16-prefix-context: New file.
35674
35675         New module 'unicase/u8-prefix-context'.
35676         * lib/unicase/u8-prefix-context.c: New file.
35677         * lib/unicase/u-prefix-context.h: New file.
35678         * lib/unicase/context.h: New file.
35679         * modules/unicase/u8-prefix-context: New file.
35680
35681         New module 'unicase/empty-prefix-context'.
35682         * lib/unicase/empty-prefix-context.c: New file.
35683         * modules/unicase/empty-prefix-context: New file.
35684
35685         New module 'unicase/ignorable'.
35686         * lib/unicase/ignorable.c: New file.
35687         * modules/unicase/ignorable: New file.
35688
35689         New module 'unicase/cased'.
35690         * lib/unicase/caseprop.h: New file.
35691         * lib/unicase/cased.c: New file.
35692         * modules/unicase/cased: New file.
35693
35694         New functions for case mapping of substrings.
35695         * lib/unicase.h (casing_prefix_context_t): New type.
35696         (unicase_empty_prefix_context): New variable.
35697         (u8_casing_prefix_context, u16_casing_prefix_context,
35698         u32_casing_prefix_context, u8_casing_prefixes_context,
35699         u16_casing_prefixes_context, u32_casing_prefixes_context): New
35700         declarations.
35701         (casing_suffix_context_t): New type.
35702         (unicase_empty_suffix_context): New variable.
35703         (u8_casing_suffix_context, u16_casing_suffix_context,
35704         u32_casing_suffix_context, u8_casing_suffixes_context,
35705         u16_casing_suffixes_context, u32_casing_suffixes_context,
35706         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
35707         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
35708         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
35709         declarations.
35710
35711 2009-06-28  Jim Meyering  <meyering@redhat.com>
35712
35713         boostrap: indent only with spaces
35714         * build-aux/bootstrap: Indent only with spaces, never TABs.
35715
35716         bootstrap: split long lines
35717         * build-aux/bootstrap: Keep line length < 80.
35718
35719         bootstrap: sync from coreutils
35720         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
35721         just as autoreconf does.  Verify a list of prerequisite
35722         package-name,version-number pairs if defined in bootstrap.conf.
35723         Refer to README-prereq, if prerequisites are not satisfied.
35724
35725 2009-06-27  Eric Blake  <ebb9@byu.net>
35726
35727         tests: add test for bogus NULL definition
35728         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
35729         * tests/test-stdlib.c: Likewise.
35730         * tests/test-string.c: Likewise.
35731         * tests/test-locale.c: Likewise.
35732         * tests/test-unistd.c: Likewise.
35733         * modules/stdio-tests (Depends-on): Add verify.
35734         * modules/stdlib-tests (Depends-on): Likewise.
35735         * modules/string-tests (Depends-on): Likewise.
35736         * modules/locale-tests (Depends-on): Likewise.
35737         * modules/unistd-tests (Depends-on): Likewise.
35738
35739 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
35740
35741         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
35742         self-explaining comment.
35743         * m4/selinux-selinux-h: Update serial.
35744         (gl_LIBSELINUX): New macro, adding a warning for missing development
35745         packages to code extracted from...
35746         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
35747         Add warning for missing development packages here, too.
35748
35749 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
35750
35751         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
35752
35753 2009-06-25  Eric Blake  <ebb9@byu.net>
35754
35755         version-etc: fix regression
35756         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
35757         gcc.
35758         (version_etc): Use it, to catch bugs with trailing NULL.
35759         * lib/version-etc.c (version_etc_arn): Delete unused argument.
35760         (version_etc_va): Fix logic bug.
35761         * modules/version-etc-tests: Add test.
35762         * tests/test-version-etc.c: New file.
35763         * tests/test-version-etc.sh: Likewise.
35764
35765 2009-06-25  Sam Steingold  <sds@gnu.org>
35766
35767         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
35768         mbtowc declaration.
35769
35770 2009-06-25  Eric Blake  <ebb9@byu.net>
35771
35772         fpurge: migrate into <stdio.h>
35773         * lib/fpurge.h: Delete...
35774         * lib/stdio.in.h (fpurge): ...and declare here, instead.
35775         * lib/fpurge.c (fpurge): Change declaring header.
35776         * modules/fpurge (Files): Drop deleted file.
35777         (Depends-on): Add stdio.
35778         (configure.ac): Set witness.
35779         * modules/stdio (Makefile.am): Support fpurge macros.
35780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35781         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
35782         * lib/fflush.c: Update client.
35783         * tests/test-fpurge.c: Likewise.
35784         * NEWS: Mention the change.
35785
35786 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35787
35788         * lib/argp-version-etc.c (program_authors): Add const
35789         qualifier.
35790         * lib/version-etc.c: Fix typos in the comments.
35791         * modules/argp-version-etc: Depends on version-etc.
35792
35793 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35794
35795         argp-version-etc: new module.
35796
35797         * lib/argp-version-etc.c: New file.
35798         * lib/argp-version-etc.h: New file.
35799         * modules/argp-version-etc: New file.
35800         * modules/argp-version-etc-tests: New file.
35801         * tests/test-argp-version-etc.c: New test.
35802         * tests/test-argp-version-etc-1.sh: New test.
35803
35804 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35805
35806         Provide additional interfaces and documentation for version-etc
35807         module.
35808
35809         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
35810         interfaces.
35811         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
35812         prototypes.
35813
35814 2009-06-24  Bruno Haible  <bruno@clisp.org>
35815
35816         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
35817         HAVE_LIB${NAME} macro.
35818         Reported by Sam Steingold <sds@gnu.org>.
35819
35820 2009-06-23  Simon Josefsson  <simon@josefsson.org>
35821
35822         * modules/hash-tests (test_hash_LDADD): Link to libintl when
35823         needed.
35824
35825 2009-06-21  Bruno Haible  <bruno@clisp.org>
35826
35827         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
35828         work.
35829         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
35830         together with LIB${NAME}, LTLIB${NAME}.
35831         Reported by Sam Steingold <sds@gnu.org>.
35832
35833 2009-06-20  Jim Meyering  <meyering@redhat.com>
35834
35835         tests: make sc_require_test_exit_idiom more generic
35836         * top/maint.mk (Exit_witness_file): New overridable variable.
35837         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
35838         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
35839
35840 2009-06-19  Jim Meyering  <meyering@redhat.com>
35841
35842         hash: reverse order of src/dst parameters in an internal interface
35843         * lib/hash.c (transfer_entries): Reverse order of parameters to
35844         put DST before SRC.  Adjust callers.
35845
35846         tests: test-hash: avoid wholesale duplication
35847         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
35848         Instead, use a loop and add a single conditional.
35849
35850         tests: test-hash: allow seed selection via a command line argument
35851         * tests/test-hash.c (get_seed): New function.
35852         (main): Use it.
35853
35854 2009-06-19  Eric Blake  <ebb9@byu.net>
35855
35856         hash: avoid memory leak on allocation failure
35857         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
35858         failure.  Factor repeated algorithm...
35859         (transfer_entries): ...into new helper routine.
35860         (hash_delete): React to hash_rehash return value.
35861
35862         hash: reduce memory pressure in hash_rehash no-op case
35863         * lib/hash.c (next_prime): Avoid overflow.
35864         (hash_initialize): Factor bucket size computation...
35865         (compute_bucket_size): ...into new helper function.
35866         (hash_rehash): Use new function and open coding to reduce memory
35867         pressure, and avoid a memory leak in USE_OBSTACK code.
35868         Reported by Jim Meyering.
35869
35870 2009-06-18  Eric Blake  <ebb9@byu.net>
35871
35872         hash: make rotation more obvious
35873         * modules/hash (Depends-on): Add bitrotate and stdint.
35874         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
35875         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
35876         (SIZE_MAX): Rely on headers for definition.
35877         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
35878         (raw_hasher): Use rotr_sz.
35879         Suggested by Jim Meyering.
35880
35881         hash: fix memory leak in last patch
35882         * lib/hash.c (hash_rehash): Avoid memory leak.
35883
35884         hash: avoid no-op rehashing
35885         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
35886
35887         hash: provide default callback functions
35888         * lib/hash.c (raw_hasher, raw_comparator): New functions.
35889         (hash_initialize): Use them as defaults.
35890         * tests/test-hash.c (main): Test this.
35891
35892         hash: minor optimization
35893         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
35894         when possible.
35895         (hash_initialize): Document this promise.
35896         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
35897         * tests/test-hash.c (hash_compare_strings): Test this.
35898
35899 2009-06-18  Bruno Haible  <bruno@clisp.org>
35900
35901         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
35902         going to be replaced anyway.
35903
35904 2009-06-18  Bruno Haible  <bruno@clisp.org>
35905
35906         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
35907         in one place.
35908         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
35909         be replaced anyway.
35910
35911 2009-06-18  Eric Blake  <ebb9@byu.net>
35912
35913         hash: check for resize before insertion
35914         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
35915         threshold before insertion, so that a pathological hash_rehash
35916         that fills every bucket can still trigger another rehash.
35917
35918 2009-06-18  Jim Meyering  <meyering@redhat.com>
35919
35920         hash-tests: add a loop around the small tests
35921         * tests/test-hash.c (main): Repeat small tests with selected
35922         small initial table sizes.
35923
35924 2009-06-17  Eric Blake  <ebb9@byu.net>
35925
35926         hash: minor cleanups
35927         * lib/hash.h (hash_entry): Make opaque, by moving...
35928         * lib/hash.c (hash_entry): ...here.
35929         (hash_insert): Clarify restrictions on what can be inserted.
35930         (hash_get_next): Clarify when it is safe to remove an element
35931         during traversal.
35932         (check_tuning): Skip verification when tuning is known safe.
35933         (hash_initialize): Clarify restrictions on tuning.
35934
35935 2009-06-17  Jim Meyering  <jim@meyering.net>
35936         and Eric Blake  <ebb9@byu.net>
35937
35938         hash-tests: new module
35939         * modules/hash-tests: New file.
35940         * tests/test-hash.c: New file.
35941
35942 2009-06-17  Eric Blake  <ebb9@byu.net>
35943
35944         strstr-simple: document new module
35945         * MODULES.html.sh: Document new module.
35946
35947         strstr, strcasestr: replace on platforms with broken memchr
35948         * modules/strstr: Split into...
35949         * modules/strstr-simple: ...new module that does not care about
35950         performance, but does care about glibc bug.
35951         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
35952         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
35953         if platform memchr is broken, per Debian bug 521737.
35954         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
35955         memchr.
35956         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
35957         * doc/posix-functions/strstr.texi (strstr): Document the fix.
35958         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35959         * modules/mountlist (Depends-on): Add strstr-simple.
35960         * modules/gen-uni-tables (Depends-on): Likewise.
35961         * modules/argz (Depends-on): Add strstr.
35962
35963 2009-06-17  Bruno Haible  <bruno@clisp.org>
35964
35965         * modules/posix_spawn-internal (Depends-on): Add errno.
35966
35967 2009-06-17  Bruno Haible  <bruno@clisp.org>
35968
35969         Define missing ESTALE on Interix 3.5.
35970         * lib/errno.in.h (ESTALE): Assign a value if missing.
35971         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
35972         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
35973         missing.
35974         * doc/posix-headers/errno.texi: Mention the Interix bug.
35975         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35976
35977 2009-06-15  Eric Blake  <ebb9@byu.net>
35978
35979         memchr, memchr2: add valgrind exception
35980         * lib/memchr.valgrind: New file.
35981         * lib/memchr2.valgrind: New file.
35982         * modules/memchr (Files): Distribute valgrind file.
35983         * modules/memchr2 (Files): Likewise.
35984
35985         docs: memchr is no longer obsolete
35986         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35987         * lib/string.in.h (memchr): Simplify logic.
35988
35989 2009-06-14  Jim Meyering  <meyering@redhat.com>
35990
35991         link-follow: fix the "checking..." message to not mention trailing slash
35992         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35993         never considered trailing slashes.
35994
35995 2009-06-14  Bruno Haible  <bruno@clisp.org>
35996
35997         * m4/memchr.m4: Mention also the bug on IA-64.
35998         * doc/posix-functions/memchr.texi: Likewise.
35999
36000 2009-06-12  Eric Blake  <ebb9@byu.net>
36001
36002         memchr: detect broken x86_64 and alpha implementations
36003         * modules/memchr-tests (Depends-on): Move mmap detection...
36004         * modules/memchr (Depends-on): ...here.
36005         (configure.ac): Set indicator.
36006         * lib/string.in.h (memchr): Declare replacement.
36007         * modules/string (Makefile.am): Trigger replacement.
36008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36009         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
36010         bugs.
36011         * doc/posix-functions/memchr.texi (memchr): Document the bug.
36012         * modules/getpagesize (License): Relax license.
36013
36014 2009-06-11  Bruno Haible  <bruno@clisp.org>
36015
36016         * lib/idpriv.h: Add more references.
36017
36018 2009-06-08  Bruno Haible  <bruno@clisp.org>
36019
36020         Tests for module 'idpriv-droptemp'.
36021         * modules/idpriv-droptemp-tests: New file.
36022         * tests/test-idpriv-droptemp.sh: New file.
36023         * tests/test-idpriv-droptemp.su.sh: New file.
36024         * tests/test-idpriv-droptemp.c: New file.
36025
36026         New module 'idpriv-droptemp'.
36027         * lib/idpriv-droptemp.c: New file.
36028         * modules/idpriv-droptemp: New file.
36029
36030 2009-06-08  Bruno Haible  <bruno@clisp.org>
36031
36032         Tests for module 'idpriv-drop'.
36033         * modules/idpriv-drop-tests: New file.
36034         * tests/test-idpriv-drop.sh: New file.
36035         * tests/test-idpriv-drop.su.sh: New file.
36036         * tests/test-idpriv-drop.c: New file.
36037
36038         New module 'idpriv-drop'.
36039         * lib/idpriv.h: New file.
36040         * lib-idpriv-drop.c: New file.
36041         * m4/idpriv.m4: New file.
36042         * modules/idpriv-drop: New file.
36043
36044 2009-06-08  Bruno Haible  <bruno@clisp.org>
36045
36046         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
36047         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36048         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36049         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36050         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36051         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36052         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36053
36054 2009-06-08  Eric Blake  <ebb9@byu.net>
36055
36056         test-strstr: use memory fence, when possible
36057         * tests/test-strstr.c (main): Use memory fence, in order to be
36058         more likely to trigger Debian bug 521737.
36059         * modules/strstr-tests (Files): Pull in additional files.
36060
36061         memchr: no longer obsolete, for wider field testing
36062         * modules/memchr (Status, Notice): Delete, this module is no
36063         longer obsolete.
36064         * modules/vasnprintf (Depends-on): Add memchr.
36065
36066 2009-06-07  Jim Meyering  <meyering@redhat.com>
36067
36068         hash: declare some functions with the warn_unused_result attribute
36069         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
36070
36071 2009-06-07  Bruno Haible  <bruno@clisp.org>
36072
36073         * tests/test-alignof.c: Don't test int64_t if it does not exist.
36074         Reported by Eric Blake.
36075
36076 2009-06-06  Eric Blake  <ebb9@byu.net>
36077
36078         test-alignof: fix typo with long double
36079         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
36080         compiler error.
36081
36082 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
36083
36084         Escape non-texinfo { and }s.
36085         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
36086         markup error.
36087
36088 2009-06-04  Jim Meyering  <meyering@redhat.com>
36089
36090         gitlog-to-changelog: don't infloop on an empty commit log
36091         * build-aux/gitlog-to-changelog: Warn about an empty log message.
36092         Reported by Boris Petersen <transacid@centerim.org>.
36093
36094 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
36095
36096         version-etc: extend for packagers
36097         Add three new configure options, intended for packagers:
36098           --with-packager="packager name"
36099           --with-packager-version="packager-specific version"
36100           --with-packager-bug-reports="packager bug reporting"
36101         An example with coreutils:
36102           $ ./configure \
36103             --with-packager=Gentoo \
36104             --with-packager-bug-report=http://bugs.gentoo.org/ \
36105             --with-packager-version="patchset 1.6"
36106           $ ./src/ls --version | head -n2
36107           ls (GNU coreutils) 7.1-dirty
36108           Packaged by Gentoo (patchset 1.6)
36109         Note that the bug reporting info via --help doesn't show up because
36110         coreutils uses its own custom emit_bug_reporting_address() implementation
36111         in src/system.h.  If it didn't, it'd look like:
36112           $ ./src/ls --help | tail -n4
36113           Report bugs to <bug-coreutils@gnu.org>.
36114           Report Gentoo bugs to <http://bugs.gentoo.org/>.
36115           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
36116           General help using GNU software: <http://www.gnu.org/gethelp/>.
36117         * lib/version-etc.c: Print new information, if provided.
36118         * m4/version-etc.m4: New file.
36119         * modules/version-etc (Files): Add m4/version-etc.m4.
36120         (configure.ac): Add gl_VERSION_ETC.
36121
36122 2009-05-31  Bruno Haible  <bruno@clisp.org>
36123
36124         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
36125         and 'int64_t'.
36126         * modules/alignof-tests (Dependencies): Add stdint.
36127         Reported by Eric Blake.
36128
36129 2009-05-31  Bruno Haible  <bruno@clisp.org>
36130
36131         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
36132         restriction due to compiler bugs.
36133         Reported by Eric Blake.
36134
36135 2009-05-31  Simon Josefsson  <simon@josefsson.org>
36136             Bruno Haible  <bruno@clisp.org>
36137
36138         Fix test-alignof failure.
36139         * lib/alignof.h (alignof_slot): New macro.
36140         (alignof_type): New macro, with the same semantics as the previous
36141         'alignof'.
36142         (alignof): Alias to alignof_slot.
36143         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
36144         check that the results are usable as constant expressions.
36145
36146 2009-05-31  Bruno Haible  <bruno@clisp.org>
36147
36148         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
36149         * tests/test-memchr.c (main): Check that memchr does not read past the
36150         first occurrence of the byte.
36151         * tests/test-strstr.c (main): Update comment.
36152         Suggested by Eric Blake.
36153
36154 2009-05-30  Bruno Haible  <bruno@clisp.org>
36155
36156         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
36157         detail how to use dumpbin.
36158         Reported by David Byron <dbyron@dbyron.com>.
36159
36160 2009-06-02  Simon Josefsson  <simon@josefsson.org>
36161
36162         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
36163
36164 2009-06-02  Simon Josefsson  <simon@josefsson.org>
36165
36166         * m4/manywarnings.m4: Add GCC 4.4 warnings.
36167
36168 2009-05-28  Bruno Haible  <bruno@clisp.org>
36169
36170         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
36171         build-aux/ files.
36172
36173 2009-05-28  Simon Josefsson  <simon@josefsson.org>
36174
36175         * gnulib-tool (func_import): Transform license on build-aux/ files too.
36176
36177 2009-05-27  Simon Josefsson  <simon@josefsson.org>
36178
36179         * gnulib-tool (sed_transform_main_lib_file)
36180         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
36181         regexps.
36182
36183 2009-05-26  Simon Josefsson  <simon@josefsson.org>
36184
36185         * tests/test-strstr.c: Add another self-test.
36186         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
36187         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
36188
36189 2009-05-23  Bruno Haible  <bruno@clisp.org>
36190
36191         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
36192         change.
36193
36194 2009-05-21  Bruno Haible  <bruno@clisp.org>
36195
36196         Simplify use of mode_t varargs.
36197         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
36198         uses 'mode_t' or 'int'.
36199         * lib/openat.c (openat): Likewise.
36200         * lib/open-safer.c (open_safer): Likewise.
36201         * m4/mode_t.m4: New file.
36202         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
36203         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
36204         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
36205         * modules/open (Files): Add m4/mode_t.m4.
36206         * modules/openat (Files): Likewise.
36207         * modules/fcntl-safer (Files): Likewise.
36208         Suggested by Eric Blake.
36209
36210 2009-05-21  Pádraig Brady  <P@draigbrady.com>
36211
36212         * doc/glibc-functions/fallocate.texi: New file.
36213         * doc/gnulib.texi: Include it.
36214
36215 2009-05-21  Eric Blake  <ebb9@byu.net>
36216             Bruno Haible  <bruno@clisp.org>
36217
36218         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
36219         invocations.
36220         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36221
36222 2009-05-21  Eric Blake  <ebb9@byu.net>
36223             Bruno Haible  <bruno@clisp.org>
36224
36225         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
36226         include_next. Fix of 2008-11-20 commit.
36227         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
36228         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
36229         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
36230         NEXT_MATH_H.
36231         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
36232         instead of NEXT_MATH_H.
36233
36234 2009-05-21  Bruno Haible  <bruno@clisp.org>
36235
36236         Avoid redefinition warnings for SIZE_MAX.
36237         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
36238         Reported by Simon Josefsson.
36239
36240 2009-05-21  Bruno Haible  <bruno@clisp.org>
36241
36242         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
36243         AC_CACHE_VAL.
36244
36245 2009-05-20  Bruno Haible  <bruno@clisp.org>
36246
36247         Make zeroptr.h work on mingw.
36248         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
36249         mprotect.
36250         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
36251         * modules/memchr2-tests (configure.ac): Likewise.
36252         * modules/memcmp-tests (configure.ac): Likewise.
36253         * modules/memmem-tests (configure.ac): Likewise.
36254         * modules/memrchr-tests (configure.ac): Likewise.
36255         Reported by Simon Josefsson.
36256
36257 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36258
36259         * tests/test-glob.c: Include string.h for strcmp prototype.
36260
36261 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36262
36263         * modules/getdelim (Depends-on): Add explicit stdint, although it
36264         was implicitly already pulled in via realloc-posix.
36265         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
36266
36267 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36268
36269         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
36270         G. Christensen" <tgc@jupiterrise.com>.
36271         * m4/sys_socket_h.m4: Check for sa_family_t.
36272         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
36273         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
36274         * tests/test-sys_socket.c: Check that sa_family_t works.
36275
36276 2009-05-18  Eric Blake  <ebb9@byu.net>
36277
36278         maint.mk: allow gnulib_dir in VPATH build
36279         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
36280
36281 2009-05-15  Jim Meyering  <meyering@redhat.com>
36282
36283         maint.mk: Give gnulib_dir a default definition.
36284         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
36285         Thus, most packages no longer need to specify this variable in cfg.mk
36286
36287 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
36288
36289         rename.m4: fix typos that would make non-mingw cross-configure fail
36290         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
36291
36292 2009-05-13  Eric Blake  <ebb9@byu.net>
36293
36294         mmap-anon: avoid out-of-order autoconf expansion
36295         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
36296         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
36297         * modules/memchr-tests (Depends-on): Add extensions.
36298         * modules/memchr2-tests (Depends-on): Add extensions.
36299         * modules/memcmp-tests (Depends-on): Add extensions.
36300         * modules/memmem-tests (Depends-on): Add extensions.
36301         * modules/memrchr-tests (Depends-on): Add extensions.
36302
36303 2009-05-13  Bruno Haible  <bruno@clisp.org>
36304
36305         Make some tests ISO C 99 compliant.
36306         * tests/zerosize-ptr.h: New file.
36307         * tests/test-memchr.c: Include zerosize-ptr.h.
36308         (main): Use a zero-size object pointer instead of NULL.
36309         * tests/test-memchr2.c: Include zerosize-ptr.h.
36310         (main): Use a zero-size object pointer instead of NULL.
36311         * tests/test-memcmp.c: Include zerosize-ptr.h.
36312         (main): Use a zero-size object pointer instead of NULL.
36313         * tests/test-memmem.c: Include zerosize-ptr.h.
36314         (main): Use a zero-size object pointer instead of NULL.
36315         * tests/test-memrchr.c: Include zerosize-ptr.h.
36316         (main): Use a zero-size object pointer instead of NULL.
36317         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
36318         m4/mmap-anon.m4.
36319         (Depends-on): Add getpagesize.
36320         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36321         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
36322         m4/mmap-anon.m4.
36323         (Depends-on): Add getpagesize.
36324         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36325         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
36326         m4/mmap-anon.m4.
36327         (Depends-on): Add getpagesize.
36328         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36329         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
36330         m4/mmap-anon.m4.
36331         (Depends-on): Add getpagesize.
36332         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36333         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
36334         m4/mmap-anon.m4.
36335         (Depends-on): Add getpagesize.
36336         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36337
36338 2009-05-12  Bruno Haible  <bruno@clisp.org>
36339
36340         Tests for module 'alignof'.
36341         * modules/alignof-tests: New file.
36342         * tests/test-alignof.c: New file.
36343
36344 2009-05-12  Bruno Haible  <bruno@clisp.org>
36345
36346         Fix alignof macro.
36347         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
36348         vendor compilers that are always correct.
36349
36350 2009-05-12  Bruno Haible  <bruno@clisp.org>
36351
36352         Make the MAP_ANONYMOUS detection work on HP-UX 11.
36353         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
36354         not whether its fully works.
36355
36356 2009-05-12  Bruno Haible  <bruno@clisp.org>
36357
36358         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
36359
36360 2009-05-12  Jim Meyering  <meyering@redhat.com>
36361
36362         * top/maint.mk: Adjust backslash alignment.
36363
36364 2009-05-11  Simon Josefsson  <simon@josefsson.org>
36365
36366         * top/maint.mk: Make $(srcdir)/build-aux configurable.
36367
36368 2009-05-11  Eric Blake  <ebb9@byu.net>
36369
36370         argp: avoid undefined behavior
36371         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
36372         macros.
36373
36374 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36375
36376         * tests/test-vc-list-files-git.sh: Do git config of user.email and
36377         user.name to prevent git commit from complaining.
36378
36379 2009-05-10  Bruno Haible  <bruno@clisp.org>
36380
36381         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
36382         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
36383         it rewrites every file name only once.
36384         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
36385
36386 2009-05-08  Bruno Haible  <bruno@clisp.org>
36387
36388         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
36389         instead of 'max'.
36390
36391 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36392
36393         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
36394         sockaddr_storage test.
36395
36396 2009-05-07  Simon Josefsson  <simon@josefsson.org>
36397
36398         * modules/sys_socket (Makefile.am): Substitute
36399         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
36400         * m4/sys_socket_h.m4: Check for sockaddr_storage.
36401         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
36402         * tests/test-sys_socket.c: Check sockaddr_storage.
36403
36404 2009-05-08  Bruno Haible  <bruno@clisp.org>
36405
36406         New module 'alignof'.
36407         * lib/alignof.h: New file.
36408         * modules/alignof: New file.
36409
36410 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36411             Bruno Haible  <bruno@clisp.org>
36412
36413         Fix test-file-has-acl on FreeBSD.
36414         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
36415         mask is implicitly added.
36416         * tests/test-file-has-acl.c: Include <signal.h>.
36417         (main): Terminate the test after 5 seconds.
36418         * modules/acl-tests (configure.ac): Check for alarm function.
36419
36420 2009-05-04  Bruno Haible  <bruno@clisp.org>
36421
36422         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
36423         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
36424         * modules/errno (configure.ac): Drop AC_REQUIRE.
36425         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
36426         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
36427
36428 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36429
36430         * modules/glob-tests: New module.
36431         * tests/test-glob.c: Add.
36432
36433 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36434
36435         * modules/fnmatch-tests: New module.
36436         * tests/test-fnmatch.c: Add.
36437
36438 2009-05-04  Eric Blake  <ebb9@byu.net>
36439
36440         maint: make the new no-submodule-changes rule VPATH-safe
36441         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
36442
36443 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36444             Bruno Haible  <bruno@clisp.org>
36445
36446         acl: Fix infinite loop on FreeBSD.
36447         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
36448         of return value from acl_get_entry.
36449         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
36450         Likewise.
36451
36452 2009-05-03  Bruno Haible  <bruno@clisp.org>
36453
36454         * lib/acl-internal.h (acl_entries): Clarify return value.
36455         * lib/acl_entries.c (acl_entries): Likewise.
36456
36457 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36458
36459         Bug fix in acl module.
36460         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
36461
36462 2009-05-03  Bruno Haible  <bruno@clisp.org>
36463
36464         Create gperf-generated file in the source dir, not in the build dir.
36465         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
36466         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
36467         * modules/unicase/locale-language (unicase/locale-languages.h):
36468         Likewise.
36469         * modules/unicase/special-casing (unicase/special-casing-table.h):
36470         Likewise.
36471         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
36472         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
36473         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
36474         Reported by Ralf Wildenhues.
36475
36476 2009-05-03  Bruno Haible  <bruno@clisp.org>
36477
36478         * modules/fnmatch (Description, configure.ac): Taken from
36479         fnmatch-posix.
36480         * modules/fnmatch-posix: Turn into a symbolic reference to the
36481         'fnmatch' module, and deprecate.
36482         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
36483
36484 2009-05-03  Bruno Haible  <bruno@clisp.org>
36485
36486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
36487         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
36488         Reported by Ralf Wildenhues.
36489
36490 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36491
36492         * m4/fnmatch.m4: Fix fnmatch re-define.
36493
36494 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36495
36496         priv-set: new module and tests; adapt write-any-file
36497         * lib/priv-set.c: New file.
36498         * lib/priv-set.h: New file.
36499         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
36500         * lib/write-any-file.c: Simplify by using priv-set module.
36501         * m4/priv-set.m4: New file.
36502         * modules/priv-set: New file.
36503         * modules/unlinkdir: Add dependency on priv-set module.
36504         * modules/write-any-file: Likewise.
36505
36506         Tests for module 'priv-set'.
36507         * modules/priv-set-tests: New file.
36508         * tests/test-priv-set.c: New file.
36509
36510 2009-05-03  Jim Meyering  <meyering@redhat.com>
36511             Bruno Haible  <bruno@clisp.org>
36512
36513         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
36514         use the converted UTF-8 variant of the name instead.
36515
36516 2009-05-03  Jim Meyering  <meyering@redhat.com>
36517
36518         tests: tighten some getdate tests
36519         * tests/test-getdate.c (main): Tighten tests: require equality,
36520         not just greater than.  Set TZ envvar to UTC0.
36521
36522 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
36523
36524         getdate: correctly interpret "next monday" when run on a Monday
36525         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
36526         that e.g., "next tues" (when run on a tuesday) results in a date
36527         that is one week in the future, and not today's date.
36528         I.e., add a week when the wday is the same as the current one.
36529         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
36530         and earlier by Martin Bernreuther and Jan Minář.
36531         * tests/test-getdate.c (main): Check that "next DAY" is always in
36532         the future and that "last DAY" is always in the past.
36533
36534 2009-05-02  Jim Meyering  <meyering@redhat.com>
36535
36536         build: ensure that a release build fails when a submodule is unclean
36537         * top/maint.mk (no-submodule-changes): New rule.
36538         (alpha beta major): Depend on it.
36539
36540 2009-05-02  Bruno Haible  <bruno@clisp.org>
36541
36542         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
36543         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
36544         shell variable gl_fnmatch_required to detect which variant is
36545         requested.
36546         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
36547         gl_FUNC_FNMATCH_POSIX.
36548         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
36549         exclude fnmatch-posix.
36550
36551 2009-05-02  Bruno Haible  <bruno@clisp.org>
36552
36553         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
36554         * modules/mbsrtowcs (License): Change to LGPLv2+.
36555         * modules/strnlen1 (License): Likewise.
36556         Reported by Simon Josefsson.
36557
36558 2009-05-02  Bruno Haible  <bruno@clisp.org>
36559
36560         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
36561         "cross".
36562         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
36563         gnulib-tool was called with option --source-base=lib.
36564
36565 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36566
36567         Use automake *-local hooks without commands, for extensibility.
36568         * modules/localcharset (Makefile.am): Rename install-exec-local
36569         rule to install-exec-localcharset, and make it a prerequisite of
36570         install-exec-local.  Likewise, rename the uninstall-local rule to
36571         uninstall-localcharset, and make it a prerequisite of the former.
36572
36573 2009-05-01  Bruno Haible  <bruno@clisp.org>
36574
36575         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
36576         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36577         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
36578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
36579         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
36580         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36581         m4/locale-zh.m4, m4/codeset.m4.
36582
36583         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36584         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
36585         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36586         m4/locale-zh.m4.
36587
36588         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
36589         REPLACE_WCRTOMB if mbstate_t must be replaced.
36590         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
36591         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
36592
36593 2009-05-01  Bruno Haible  <bruno@clisp.org>
36594
36595         Avoid compiler warnings when redefining macros defined by <libintl.h>.
36596         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
36597         dngettext, dcngettext, textdomain, bindtextdomain,
36598         bind_textdomain_codeset): Undefine before redefining.
36599
36600 2009-04-30  Bruno Haible  <bruno@clisp.org>
36601
36602         Fix bug introduced on 2009-04-25.
36603         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
36604         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
36605         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
36606         is defined.
36607         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
36608         is defined.
36609         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
36610         is defined.
36611         Reported by Elbert_Pol <elbert.pol@gmail.com>.
36612
36613 2009-04-28  Bruno Haible  <bruno@clisp.org>
36614
36615         Comment tweaks.
36616         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
36617         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
36618         * lib/unicase.h (u*_casexfrm): Likewise.
36619         Reported by Paolo Bonzini.
36620
36621 2009-04-28  Bruno Haible  <bruno@clisp.org>
36622
36623         Fix a compilation error.
36624         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
36625         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36626         Reported by Jim Meyering.
36627
36628 2009-04-27  Bruno Haible  <bruno@clisp.org>
36629
36630         New module 'libunistring'.
36631         * modules/libunistring: New file.
36632         * m4/libunistring.m4: New file.
36633         * MODULES.html.sh (Unicode string functions): Add it.
36634
36635 2009-04-27  Eric Blake  <ebb9@byu.net>
36636
36637         maint.mk: allow package-specific header to provide <config.h>
36638         * top/maint.mk (sc_require_config_h): New variable.
36639         (sc_require_config_h, sc_require_config_h_first): Use it.
36640
36641 2009-04-27  Simon Josefsson  <simon@josefsson.org>
36642
36643         * top/maint.mk (sc_avoid_if_before_free): Except
36644         useless-if-before-free script.
36645
36646 2009-04-27  Eric Blake  <ebb9@byu.net>
36647
36648         maintainer-makefile: depend on all required helper scripts
36649         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
36650         useless-if-before-free.
36651         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
36652         version, rather than assuming gnulib checkout is available.
36653         Reported by Simen Josefsson.
36654
36655 2009-04-26  Bruno Haible  <bruno@clisp.org>
36656
36657         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
36658         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
36659         "../" or "..".
36660
36661 2009-04-26  Bruno Haible  <bruno@clisp.org>
36662
36663         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
36664         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
36665         AC_LIB_HAVE_LINKFLAGS.
36666
36667 2009-04-26  Bruno Haible  <bruno@clisp.org>
36668
36669         Simplify calling convention of u*_conv_from_encoding.
36670         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
36671         u32_conv_from_encoding): Expect a resultbuf argument and return the
36672         result directly as a pointer.
36673         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
36674         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
36675         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
36676         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
36677         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
36678         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36679         Update.
36680         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
36681         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
36682         * lib/vasnprintf.c (VASNPRINTF): Update.
36683         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
36684         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
36685         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
36686         * NEWS: Mention the change.
36687
36688 2009-04-26  Bruno Haible  <bruno@clisp.org>
36689
36690         Simplify calling convention of u*_conv_to_encoding.
36691         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
36692         u32_conv_to_encoding): Expect a resultbuf argument and return the
36693         result directly as a pointer.
36694         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36695         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
36696         freeing scaled_offsets if mem_iconveha failed.
36697         * lib/unicase/u-casexfrm.h (FUNC): Update.
36698         * lib/uninorm/u-normxfrm.h (FUNC): Update.
36699         * lib/vasnprintf.c (VASNPRINTF): Update.
36700         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
36701         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
36702         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
36703         * NEWS: Mention the change.
36704
36705 2009-04-26  Bruno Haible  <bruno@clisp.org>
36706
36707         Avoid test failures on AIX and OSF/1.
36708         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
36709         malloc(0).
36710         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36711         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36712         Likewise.
36713         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
36714         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
36715         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
36716         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
36717         * doc/posix-functions/malloc.texi: Document the portability problem
36718         related to malloc(0).
36719
36720 2009-04-26  Bruno Haible  <bruno@clisp.org>
36721
36722         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
36723         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
36724         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
36725
36726 2009-04-25  Bruno Haible  <bruno@clisp.org>
36727
36728         Avoid link error when creating a namespace clean library.
36729         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
36730         as macro with arguments if already defined as an alias.
36731         * lib/signbitf.c (gl_signbitf): Don't undefine.
36732         * lib/signbitd.c (gl_signbitd): Don't undefine.
36733         * lib/signbitl.c (gl_signbitl): Don't undefine.
36734
36735 2009-04-25  Jim Meyering  <meyering@redhat.com>
36736
36737         vc-list-files: fix another quoting bug
36738         * build-aux/vc-list-files: Avoid sed backslash expansion
36739         of pathological directory names.
36740
36741 2009-04-25  Eric Blake  <ebb9@byu.net>
36742
36743         vc-list-files: fix shell quoting error
36744         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
36745         timestamp.
36746
36747 2009-04-25  Jim Meyering  <meyering@redhat.com>
36748
36749         vc-list-files: restore lost functionality with subdir argument
36750         * build-aux/vc-list-files: When given a non-"." sub-directory
36751         argument, substitute the $dir/ prefix back onto each resulting name.
36752         Otherwise, coreutils' root_tests check would fail.
36753
36754 2009-04-24  Eric Blake  <ebb9@byu.net>
36755
36756         vc-list-files: ignore git symlinks
36757         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
36758         than ls-files, to ignore git symlinks.
36759
36760         maint.mk: import improvements from m4
36761         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
36762         (move_if_change): Delete unused macro.
36763         (news-date-check, vc-diff-check): Support VPATH builds.
36764         (announcement): Likewise.  Split --bootstrap-tools list...
36765         (boostrap-tools): ...into separate list, which can be overridden
36766         in cfg.mk.
36767         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
36768         requiring dependency on useless-if-before-free module.
36769         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
36770         Support VPATH builds.
36771
36772 2009-04-24  Jim Meyering  <meyering@redhat.com>
36773
36774         maint.mk: remove coreutils-specific rules and variables
36775         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
36776         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
36777         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
36778
36779         maint.mk: remove obsolete rule
36780         * top/maint.mk (rel-check): Remove rule.
36781         (WGET, WGETFLAGS): Remove now-unused variables.
36782
36783 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36784
36785         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
36786         consistency.
36787
36788         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
36789         '$(PATH_SEPARATOR)' instead of ':'.
36790
36791 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36792
36793         * lib/getopt1.c (main): Use 'const' for static array.
36794
36795 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36796
36797         * top/maint.mk: Sync with coreutils.
36798         * NEWS: Explain incompatibilities.
36799
36800 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36801             Bruno Haible  <bruno@clisp.org>
36802
36803         Fix cross-compilation results.
36804         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
36805         statement, as third argument of AC_TRY_RUN.
36806         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
36807         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
36808         Likewise.
36809         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
36810         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
36811         Likewise.
36812         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
36813         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
36814         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
36815
36816 2009-04-20  Bruno Haible  <bruno@clisp.org>
36817
36818         Avoid test failure on mingw.
36819         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
36820
36821 2009-04-20  Bruno Haible  <bruno@clisp.org>
36822
36823         Avoid compilation error on mingw.
36824         * modules/localename-tests (Depends-on): Add locale.
36825
36826 2009-04-19  Bruno Haible  <bruno@clisp.org>
36827
36828         Support for building a shared library on Windows platforms.
36829         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
36830         (main): Test the presence of UNINORM_NFC here.
36831         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
36832         (main): Test the presence of UNINORM_NFD here.
36833         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
36834         (main): Test the presence of UNINORM_NFKC here.
36835         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
36836         (main): Test the presence of UNINORM_NFKD here.
36837
36838 2009-04-19  Bruno Haible  <bruno@clisp.org>
36839
36840         Avoid a compiler warning.
36841         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
36842         Change type of variable 'sequence'.
36843
36844 2009-04-19  Bruno Haible  <bruno@clisp.org>
36845
36846         * modules/configmake (Makefile.am): When the contents of configmake.h
36847         does not change, arrange to preserve its modification time.
36848
36849 2009-04-17  Simon Josefsson  <simon@josefsson.org>
36850
36851         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
36852         gettext domain.
36853
36854 2009-04-16  Jim Meyering  <meyering@redhat.com>
36855
36856         useless-if-before-free: improve conversion code
36857         * build-aux/useless-if-before-free: Adjust code-in-comment to match
36858         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
36859
36860 2009-04-14  Bruno Haible  <bruno@clisp.org>
36861
36862         * modules/fcntl (Depends-on): Add extensions.
36863         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
36864
36865 2009-04-12  Ben Pfaff  <blp@gnu.org>
36866
36867         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
36868         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
36869
36870 2009-03-20  Ben Pfaff  <blp@gnu.org>
36871
36872         Make rename replace existing destinations on Windows.
36873         * m4/rename.m4: Add test for Mingw.
36874         * lib/rename.c: Add rename replacement that uses MoveFileEx with
36875         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
36876         * doc/posix-functions/rename.texi: Document.
36877
36878 2009-04-10  Bruno Haible  <bruno@clisp.org>
36879
36880         New include file "iconveh.h".
36881         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
36882         * lib/striconveh.h: Include it.
36883         (enum iconv_ilseq_handler): Remove definition.
36884         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
36885         striconveh.h.
36886         * lib/striconveha.c: Include striconveh.h.
36887         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
36888         * modules/striconveh (Files): Add lib/iconveh.h.
36889         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
36890         lib/striconveh.h.
36891
36892 2009-04-10  Bruno Haible  <bruno@clisp.org>
36893
36894         * lib/uniconv.h: Update comment.
36895
36896 2009-04-10  Bruno Haible  <bruno@clisp.org>
36897
36898         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
36899         always.
36900         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36901         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36902         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36903         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
36904         "unistring-notinline.h", so that the function gets defined always.
36905         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36906         * lib/unistr/u8-uctomb.c: Likewise.
36907         * lib/unistr/u16-mbtouc.c: Likewise.
36908         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36909         * lib/unistr/u16-uctomb.c: Likewise.
36910         * lib/unistr/u32-mbtouc.c: Likewise.
36911         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36912         * lib/unistr/u32-uctomb.c: Likewise.
36913
36914 2009-04-10  Bruno Haible  <bruno@clisp.org>
36915
36916         Mark 'utime' obsolete.
36917         * modules/utime (Status, Notice): New sections.
36918         Suggested by Jim Meyering.
36919
36920         Fix cross-compile guess for utime test.
36921         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
36922         autoconf.
36923         * doc/posix-functions/utime.texi: Give more precisions.
36924         Reported by Jan <ipif@ymail.com>.
36925
36926 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
36927
36928         filevercmp: correct today's change
36929         * lib/filevercmp.c: Also handle coreutils' test inputs.
36930         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
36931
36932         Fix regression in 'filevercmp' module. Thanks Sven Joachim
36933         for reporting it.
36934         * lib/filevercmp.c: Special handle for "", "." and "..".
36935         * tests/test-filevercmp.c: Enlarge the set suite.
36936
36937 2009-04-07  Jim Meyering  <meyering@redhat.com>
36938
36939         useless-if-before-free: show how to remove braced useless free, too
36940         * build-aux/useless-if-before-free: still only in a comment, though.
36941
36942 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
36943
36944         maint.mk: import changes to syntax-check macros from coreutils
36945         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
36946         Use them in the relevant macros.
36947
36948 2009-04-06  Bruno Haible  <bruno@clisp.org>
36949
36950         Fix unportable use of bit-fields.
36951         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
36952         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
36953         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
36954
36955 2009-04-06  Bruno Haible  <bruno@clisp.org>
36956
36957         Avoid test failures on AIX and OSF/1.
36958         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
36959         that malloc(0) = NULL.
36960         * tests/unicase/test-u8-tolower.c (check): Likewise.
36961         * tests/unicase/test-u8-totitle.c (check): Likewise.
36962         * tests/unicase/test-u8-toupper.c (check): Likewise.
36963         * tests/unicase/test-u16-casefold.c (check): Likewise.
36964         * tests/unicase/test-u16-tolower.c (check): Likewise.
36965         * tests/unicase/test-u16-totitle.c (check): Likewise.
36966         * tests/unicase/test-u16-toupper.c (check): Likewise.
36967         * tests/unicase/test-u32-casefold.c (check): Likewise.
36968         * tests/unicase/test-u32-tolower.c (check): Likewise.
36969         * tests/unicase/test-u32-totitle.c (check): Likewise.
36970         * tests/unicase/test-u32-toupper.c (check): Likewise.
36971         * tests/uninorm/test-u8-nfc.c (check): Likewise.
36972         * tests/uninorm/test-u8-nfd.c (check): Likewise.
36973         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36974         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36975         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36976         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36977         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36978         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36979         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36980         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36981         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36982         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36983
36984 2009-04-05  Bruno Haible  <bruno@clisp.org>
36985
36986         Work around an autoconf limitation.
36987         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36988         comment line if it would be longer than 3 KB.
36989
36990 2009-04-05  Bruno Haible  <bruno@clisp.org>
36991
36992         Avoid test failure with libiconv-1.13.
36993         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36994         of the expected test results.
36995
36996 2009-04-05  Bruno Haible  <bruno@clisp.org>
36997
36998         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36999         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
37000         that it should be installed.
37001
37002 2009-04-05  Bruno Haible  <bruno@clisp.org>
37003
37004         * gnulib-tool: New option --copy-file.
37005         (func_usage): Document it.
37006         (func_dest_tmpfilename): Moved out of func_import.
37007         (func_add_file, func_update_file): New functions, extracted from
37008         func_import.
37009         (func_import): Update.
37010
37011 2009-04-05  Karl Berry  <karl@gnu.org>
37012
37013         * README: prominently mention gnulib-tool.
37014         Rearrange sections so getting the code is near the top.
37015
37016 2009-04-05  Bruno Haible  <bruno@clisp.org>
37017
37018         * lib/unicase.h: Mention u*_cmp2.
37019         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37020         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
37021         * lib/unicase/ulc-casecmp.c: Likewise.
37022         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
37023         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
37024         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
37025         unistr/u8-cmp.
37026         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
37027         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
37028         unistr/u16-cmp.
37029         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
37030         unistr/u32-cmp.
37031
37032         * lib/uninorm.h: Mention u*_cmp2.
37033         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37034         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
37035         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
37036         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
37037         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
37038         unistr/u8-cmp.
37039         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
37040         unistr/u16-cmp.
37041         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
37042         unistr/u32-cmp.
37043
37044         New module 'unistr/u32-cmp2'.
37045         * lib/unistr/u32-cmp2.c: New file.
37046         * modules/unistr/u32-cmp2: New file.
37047
37048         New module 'unistr/u16-cmp2'.
37049         * lib/unistr/u16-cmp2.c: New file.
37050         * modules/unistr/u16-cmp2: New file.
37051
37052         New module 'unistr/u8-cmp2'.
37053         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
37054         * lib/unistr/u8-cmp2.c: New file.
37055         * lib/unistr/u-cmp2.h: New file.
37056         * modules/unistr/u8-cmp2: New file.
37057
37058 2009-04-05  Bruno Haible  <bruno@clisp.org>
37059
37060         * lib/unictype.h (uc_property_is_valid): New macro.
37061         * tests/unictype/test-pr_byname.c (main): Use it.
37062
37063         * lib/unistr.h: Doc fixes.
37064         * lib/uniconv.h: Doc fixes.
37065         * lib/unictype.h: Doc fixes.
37066
37067 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
37068
37069         Port coreutils 7.2 to Solaris 8.
37070
37071         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
37072         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
37073         for Solaris 8.  This is a bit of a hack, as it means it's the
37074         caller's responsibility to add -lnsl if needed, but most likely it
37075         won't be needed since only getaddrinfo uses this and getaddrinfo
37076         isn't needed on Solaris 8.
37077
37078         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
37079         problem to Solaris 8 encountered with coreutils 7.2, which
37080         resulted in a message "fnmatch.c:292: warning: passing argument 4
37081         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
37082         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
37083
37084 2009-04-03  Simon Josefsson  <simon@josefsson.org>
37085
37086         * m4/ld-version-script.m4: Add FIXME comment.
37087
37088 2009-04-02  Simon Josefsson  <simon@josefsson.org>
37089
37090         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
37091         SOVERSION variable.
37092
37093 2009-04-02  Bruno Haible  <bruno@clisp.org>
37094
37095         * Makefile (info, html, dvi, pdf): Combine the rules.
37096         Suggested by Jim Meyering.
37097
37098 2009-04-01  Bruno Haible  <bruno@clisp.org>
37099
37100         * Makefile (info, html, dvi, pdf): New targets.
37101         Reported by Reuben Thomas <rrt@sc3d.org>.
37102
37103 2009-04-01  Bruno Haible  <bruno@clisp.org>
37104
37105         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
37106         can be put into PATH.
37107         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
37108
37109 2009-04-01  Bruno Haible  <bruno@clisp.org>
37110
37111         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
37112
37113 2009-04-01  Bruno Haible  <bruno@clisp.org>
37114
37115         Rename module 'visibility'.
37116         * modules/lib-symbol-visibility: Renamed from modules/visibility.
37117         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
37118         * doc/gnulib.texi: Update.
37119         * MODULES.html.sh (Misc): Update.
37120         * NEWS: Mention the change.
37121
37122 2009-04-01  Simon Josefsson  <simon@josefsson.org>
37123
37124         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
37125         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
37126         Eric Blake <ebb9@byu.net> for review.
37127         * MODULES.html.sh: Add lib-msvc-compat.
37128         * doc/gnulib.texi: Link to new section.
37129         * m4/ld-output-def.m4: New file.
37130         * doc/ld-output-def.texi: New file.
37131
37132 2009-04-01  Simon Josefsson  <simon@josefsson.org>
37133
37134         Rename ld-version-script to lib-symbol-versions.  Suggested by
37135         Bruno Haible <bruno@clisp.org>.
37136         * modules/ld-version-script: Renamed to lib-symbol-versions.
37137         * doc/ld-version-script.texi: Fix module name.
37138         * MODULES.html.sh: Add lib-symbol-versions.
37139
37140 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37141
37142         * modules/u64-tests: New file.
37143         * tests/test-u64.c: New file.
37144
37145 2009-03-04  Simon Josefsson  <simon@josefsson.org>
37146
37147         * MODULES.html.sh: Mention u64.
37148         * modules/u64: New module.
37149         * modules/crypto/sha512: Depend on u64 module instead of providing
37150         u64.h.
37151
37152 2009-03-27  Eric Blake  <ebb9@byu.net>
37153
37154         test-strerror: make debugging EAI_SYSTEM easier
37155         * modules/getaddrinfo-tests (Depends-on): Add strerror.
37156         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
37157         failure was EAI_SYSTEM.
37158
37159 2009-03-25  Bruno Haible  <bruno@clisp.org>
37160
37161         Fix a problem with --enable-relocatable on Solaris 7.
37162         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
37163         since 2008-02-24.
37164
37165 2009-03-25  Eric Blake  <ebb9@byu.net>
37166
37167         test-sockets: avoid gcc warning
37168         * tests/test-sockets.c (main): Silence compiler warning.
37169
37170 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
37171
37172         New modules nproc, pthread, contributed by Glen Lenker.
37173
37174         * MODULES.html.sh: Add pthread, nproc.
37175         * lib/nproc.c: New file.
37176         * lib/nproc.h: New file.
37177         * lib/pthread.in.h: New file.
37178         * m4/pthread.m4: New file.
37179         * modules/nproc: New file.
37180         * modules/pthread: New file.
37181
37182 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37183
37184         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
37185         New variable.
37186
37187 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
37188
37189         filevercmp: handle simple~ and numbered.~3~ backup suffixes
37190         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
37191         * tests/test-filevercmp.c: Add tests for backup suffixes.
37192
37193 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37194
37195         * modules/stdlib (Depends-on): Add stdint, needed when defining
37196         struct random_data on, for example, HP-UX 10.20.  Reported by
37197         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37198
37199 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37200
37201         * lib/readline.c (readline): Call fflush on stdout after printing
37202         prompt.
37203
37204 2009-03-20  Bruno Haible  <bruno@clisp.org>
37205
37206         Remove dependency from 'close' module to -lws2_32 on native Windows.
37207         * lib/close-hook.h: New file.
37208         * lib/close-hook.c: New file.
37209         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
37210         w32sock.h.
37211         (_gl_close_fd_maybe_socket): Remove function.
37212         (rpl_close): Invoke execute_all_close_hooks instead of
37213         _gl_close_fd_maybe_socket.
37214         * lib/sockets.c: Include close-hook.h, w32sock.h.
37215         (close_fd_maybe_socket): New function, essentially from lib/close.c.
37216         (close_sockets_hook): New variable.
37217         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
37218         (gl_sockets_cleanup): Unregister it.
37219         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
37220         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
37221         * modules/close-hook: New file.
37222         * modules/close (Files): Remove lib/w32sock.h.
37223         (Depends-on): Add close-hook.
37224         (Link): Remove section.
37225         * modules/sockets (Files): Add lib/w32sock.h.
37226         (Depends-on): Add close-hook.
37227         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
37228         invocation.
37229         * NEWS: Mention that LIB_CLOSE is gone.
37230
37231 2009-03-23  Eric Blake  <ebb9@byu.net>
37232
37233         signal-tests: test previous patch
37234         * tests/test-signal.c: New file.
37235         * modules/signal-tests: Likewise.
37236
37237         signal.h: always support 'volatile sig_atomic_t'
37238         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
37239         (gl_SIGNAL_H_DEFAULTS): Add a default.
37240         * modules/signal (Makefile.am): Substitute if needed.
37241         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
37242         users can blindly add volatile.
37243         * doc/posix-headers/signal.texi (signal.h): Document it.
37244         Reported by Matthew Woehlke.
37245
37246 2009-03-23  Jim Meyering  <meyering@redhat.com>
37247
37248         pathmax: PATH_MAX: use pathconf only when available
37249         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
37250         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
37251         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
37252         This avoids a link failure in a PSP cross-compilation environment
37253         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
37254
37255         * lib/vasnprintf.c (divide): Fix typo in comment.
37256
37257 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37258
37259         * gnulib-tool (func_filter_filelist): Fix comment.
37260
37261 2009-03-20  Bruno Haible  <bruno@clisp.org>
37262
37263         Make sockets.h self-contained.
37264         * lib/sockets.c: Include sockets.h first.
37265         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
37266
37267 2009-03-19  Eric Blake  <ebb9@byu.net>
37268
37269         doc: mention more functions added in cygwin 1.7.0
37270         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
37271         addition.
37272         * doc/posix-functions/log2f.texi: Likewise.
37273
37274 2009-03-19  Jim Meyering  <meyering@redhat.com>
37275
37276         fsusage: avoid syntax error due to statement-before-declaration
37277         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
37278         after all declarations.  Reported by Matthew Woehlke in
37279         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
37280
37281 2009-03-18  Eric Blake  <ebb9@byu.net>
37282
37283         build-aux/compile: sync from automake
37284         * build-aux/compile: New file, from automake.
37285         * config/srclist.txt: Mention build-aux/compile.
37286
37287 2009-03-17  Bruno Haible  <bruno@clisp.org>
37288
37289         * lib/git-merge-changelog.c: Fix typo in comment.
37290         Reported by Reuben Thomas <rrt@sc3d.org>.
37291
37292 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
37293
37294         * m4/regex.m4: update and improve help for
37295         --without-included-regex.
37296
37297 2009-03-17  Simon Josefsson  <simon@josefsson.org>
37298
37299         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
37300         failure on missing include files.
37301
37302 2009-03-17  Eric Blake  <ebb9@byu.net>
37303
37304         doc: mention more functions added in cygwin 1.7.0
37305         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
37306         addition.
37307         * doc/posix-functions/fwscanf.texi: Likewise.
37308         * doc/posix-functions/swprintf.texi: Likewise.
37309         * doc/posix-functions/swscanf.texi: Likewise.
37310         * doc/posix-functions/vfwprintf.texi: Likewise.
37311         * doc/posix-functions/vfwscanf.texi: Likewise.
37312         * doc/posix-functions/vswprintf.texi: Likewise.
37313         * doc/posix-functions/vswscanf.texi: Likewise.
37314         * doc/posix-functions/vwprintf.texi: Likewise.
37315         * doc/posix-functions/vwscanf.texi: Likewise.
37316         * doc/posix-functions/wcscasecmp.texi: Likewise.
37317         * doc/posix-functions/wcsdup.texi: Likewise.
37318         * doc/posix-functions/wcsftime.texi: Likewise.
37319         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37320         * doc/posix-functions/wprintf.texi: Likewise.
37321         * doc/posix-functions/wscanf.texi: Likewise.
37322         * doc/glibc-functions/gethostbyname2.texi: Likewise.
37323
37324 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37325
37326         maint.mk: really add $(AM_MAKEFLAGS)
37327         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
37328         was inadvertently omitted in the last commit.
37329         Spotted by Bruno Haible.
37330
37331         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
37332         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
37333         $(AM_MAKEFLAGS)' rather than plain `make'.
37334
37335         gnulib-tool: execute $MAKE not make
37336         * gnulib-tool: Default $MAKE to 'make'.
37337         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
37338         than make.  Initialize $MAKE in the do-autobuild script.
37339
37340         gnulib-tool: use $MAKE not make in generated files
37341         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
37342         make, in generated files.  Initialize $MAKE in the do-autobuild
37343         script.
37344
37345         * top/GNUmakefile (_have-git-version-gen): Fix typo.
37346
37347         GNUmakefile: disable parallelism only for multiple, recursive targets
37348         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
37349         additions in the Makefile.
37350         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
37351         by Automake.
37352         (.NOTPARALLEL): Only disable parallel builds if multiple targets
37353         are listed on the command line and at least one of them is
37354         listed in $(ALL_RECURSIVE_TARGETS).
37355
37356 2009-03-14  Bruno Haible  <bruno@clisp.org>
37357
37358         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
37359         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
37360         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
37361         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
37362         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
37363         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
37364         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
37365         unistr/u8-uctomb.
37366         * modules/unistr/u8-strchr (Depends-on): Likewise.
37367         * modules/unistr/u8-strrchr (Depends-on): Likewise.
37368         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
37369         unistr/u16-uctomb.
37370         * modules/unistr/u16-strchr (Depends-on): Likewise.
37371         * modules/unistr/u16-strrchr (Depends-on): Likewise.
37372
37373 2009-03-12  Bruno Haible  <bruno@clisp.org>
37374
37375         Work around select() bug on Interix 3.5.
37376         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
37377         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
37378         * m4/select.m4: New file.
37379         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
37380         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
37381         * modules/select (Files): Add m4/select.m4.
37382         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
37383         * modules/nanosleep (Depends-on): Add select.
37384         * modules/poll (Depends-on): Likewise.
37385         * doc/posix-functions/select.texi: Mention the Interix bug.
37386         Reported by Markus Duft <mduft@gentoo.org>.
37387
37388         * lib/select.c: Renamed from lib/winsock-select.c.
37389         * modules/select (Files): Add lib/select.c, remove
37390         lib/winsock-select.c.
37391         (configure.ac): Update.
37392
37393 2009-03-12  Jim Meyering  <meyering@redhat.com>
37394
37395         avoid gcc warnings about unused macro definitions
37396         * lib/readtokens.c (STREQ): Remove unused definition.
37397         * lib/xmalloc.c (SIZE_MAX): Likewise.
37398         * lib/openat-die.c (N_): Likewise.
37399         * lib/mountlist.c (SIZE_MAX): Remove definition.
37400         Instead, include <stdint.h>.
37401         * lib/readutmp.c: Likewise.
37402         * modules/readutmp (Depends-on): Add stdint.
37403         * modules/mountlist (Depends-on): Add stdint.
37404         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
37405
37406 2009-03-10  Bruno Haible  <bruno@clisp.org>
37407
37408         Tests for module 'mbmemcasecoll'.
37409         * modules/mbmemcasecoll-tests: New file.
37410         * tests/test-mbmemcasecoll1.sh: New file.
37411         * tests/test-mbmemcasecoll2.sh: New file.
37412         * tests/test-mbmemcasecoll3.sh: New file.
37413         * tests/test-mbmemcasecoll.c: New file.
37414
37415         New module 'mbmemcasecoll'.
37416         * lib/mbmemcasecoll.h: New file.
37417         * lib/mbmemcasecoll.c: New file.
37418         * modules/mbmemcasecoll: New file.
37419
37420         * tests/test-mbmemcasecmp.h: New file, extracted from
37421         tests/test-mbmemcasecmp.c.
37422         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
37423         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
37424         (main): Update.
37425         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
37426
37427 2009-03-09  Bruno Haible  <bruno@clisp.org>
37428
37429         Tests for module 'mbmemcasecmp'.
37430         * modules/mbmemcasecmp-tests: New file.
37431         * tests/test-mbmemcasecmp1.sh: New file.
37432         * tests/test-mbmemcasecmp2.sh: New file.
37433         * tests/test-mbmemcasecmp3.sh: New file.
37434         * tests/test-mbmemcasecmp.c: New file.
37435
37436         New module 'mbmemcasecmp'.
37437         * lib/mbmemcasecmp.h: New file.
37438         * lib/mbmemcasecmp.c: New file.
37439         * modules/mbmemcasecmp: New file.
37440
37441 2009-03-09  Bruno Haible  <bruno@clisp.org>
37442
37443         Tests for module 'unicase/ulc-casecoll'.
37444         * modules/unicase/ulc-casecoll-tests: New file.
37445         * tests/unicase/test-ulc-casecoll1.sh: New file.
37446         * tests/unicase/test-ulc-casecoll2.sh: New file.
37447         * tests/unicase/test-ulc-casecoll.c: New file.
37448
37449         New module 'unicase/ulc-casecoll'.
37450         * lib/unicase.h (ulc_casecoll): New declaration.
37451         * lib/unicase/ulc-casecoll.c: New file.
37452         * modules/unicase/ulc-casecoll: New file.
37453
37454         New module 'unicase/ulc-casexfrm'.
37455         * lib/unicase.h (ulc_casexfrm): New declaration.
37456         * lib/unicase/ulc-casexfrm.c: New file.
37457         * modules/unicase/ulc-casexfrm: New file.
37458
37459 2009-03-09  Bruno Haible  <bruno@clisp.org>
37460
37461         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
37462         invocations.
37463
37464         * m4/mbscasecmp.m4: Remove file.
37465         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
37466         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
37467
37468         * m4/mbscasestr.m4: Remove file.
37469         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
37470         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
37471
37472         * m4/mbschr.m4: Remove file.
37473         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
37474         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
37475
37476         * m4/mbscspn.m4: Remove file.
37477         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
37478         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
37479
37480         * m4/mbslen.m4: Remove file.
37481         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
37482         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
37483
37484         * m4/mbsncasecmp.m4: Remove file.
37485         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
37486         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
37487
37488         * m4/mbsnlen.m4: Remove file.
37489         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
37490         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
37491
37492         * m4/mbspbrk.m4: Remove file.
37493         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
37494         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
37495
37496         * m4/mbspcasecmp.m4: Remove file.
37497         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
37498         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
37499
37500         * m4/mbsrchr.m4: Remove file.
37501         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
37502         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
37503
37504         * m4/mbssep.m4: Remove file.
37505         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
37506         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
37507
37508         * m4/mbsspn.m4: Remove file.
37509         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
37510         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
37511
37512         * m4/mbsstr.m4: Remove file.
37513         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
37514         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
37515
37516         * m4/mbstok_r.m4: Remove file.
37517         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
37518         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
37519
37520         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
37521
37522         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
37523         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
37524
37525         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
37526
37527 2009-03-08  Bruno Haible  <bruno@clisp.org>
37528
37529         Tests for module 'unicase/ulc-casecmp'.
37530         * modules/unicase/ulc-casecmp-tests: New file.
37531         * tests/unicase/test-ulc-casecmp1.sh: New file.
37532         * tests/unicase/test-ulc-casecmp2.sh: New file.
37533         * tests/unicase/test-ulc-casecmp.c: New file.
37534
37535         New module 'unicase/ulc-casecmp'.
37536         * lib/unicase.h (ulc_casecmp): New declaration.
37537         * lib/unicase/ulc-casecmp.c: New file.
37538         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
37539         'const SRC_UNIT *'.
37540         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
37541         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
37542         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
37543         * modules/unicase/ulc-casecmp: New file.
37544
37545         Tests for module 'unicase/u32-is-cased'.
37546         * modules/unicase/u32-is-cased-tests: New file.
37547         * tests/unicase/test-u32-is-cased.c: New file.
37548
37549         Tests for module 'unicase/u16-is-cased'.
37550         * modules/unicase/u16-is-cased-tests: New file.
37551         * tests/unicase/test-u16-is-cased.c: New file.
37552
37553         Tests for module 'unicase/u8-is-cased'.
37554         * modules/unicase/u8-is-cased-tests: New file.
37555         * tests/unicase/test-u8-is-cased.c: New file.
37556         * tests/unicase/test-is-cased.h: New file.
37557
37558         New module 'unicase/u32-is-cased'.
37559         * lib/unicase/u32-is-cased.c: New file.
37560         * modules/unicase/u32-is-cased: New file.
37561
37562         New module 'unicase/u16-is-cased'.
37563         * lib/unicase/u16-is-cased.c: New file.
37564         * modules/unicase/u16-is-cased: New file.
37565
37566         New module 'unicase/u8-is-cased'.
37567         * lib/unicase/u8-is-cased.c: New file.
37568         * lib/unicase/u-is-cased.h: New file.
37569         * modules/unicase/u8-is-cased: New file.
37570
37571         Tests for module 'unicase/u32-is-casefolded'.
37572         * modules/unicase/u32-is-casefolded-tests: New file.
37573         * tests/unicase/test-u32-is-casefolded.c: New file.
37574
37575         Tests for module 'unicase/u16-is-casefolded'.
37576         * modules/unicase/u16-is-casefolded-tests: New file.
37577         * tests/unicase/test-u16-is-casefolded.c: New file.
37578
37579         Tests for module 'unicase/u8-is-casefolded'.
37580         * modules/unicase/u8-is-casefolded-tests: New file.
37581         * tests/unicase/test-u8-is-casefolded.c: New file.
37582         * tests/unicase/test-is-casefolded.h: New file.
37583
37584         New module 'unicase/u32-is-casefolded'.
37585         * lib/unicase/u32-is-casefolded.c: New file.
37586         * modules/unicase/u32-is-casefolded: New file.
37587
37588         New module 'unicase/u16-is-casefolded'.
37589         * lib/unicase/u16-is-casefolded.c: New file.
37590         * modules/unicase/u16-is-casefolded: New file.
37591
37592         New module 'unicase/u8-is-casefolded'.
37593         * lib/unicase/u8-is-casefolded.c: New file.
37594         * modules/unicase/u8-is-casefolded: New file.
37595
37596         Tests for module 'unicase/u32-is-titlecase'.
37597         * modules/unicase/u32-is-titlecase-tests: New file.
37598         * tests/unicase/test-u32-is-titlecase.c: New file.
37599
37600         Tests for module 'unicase/u16-is-titlecase'.
37601         * modules/unicase/u16-is-titlecase-tests: New file.
37602         * tests/unicase/test-u16-is-titlecase.c: New file.
37603
37604         Tests for module 'unicase/u8-is-titlecase'.
37605         * modules/unicase/u8-is-titlecase-tests: New file.
37606         * tests/unicase/test-u8-is-titlecase.c: New file.
37607         * tests/unicase/test-is-titlecase.h: New file.
37608
37609         New module 'unicase/u32-is-titlecase'.
37610         * lib/unicase/u32-is-titlecase.c: New file.
37611         * modules/unicase/u32-is-titlecase: New file.
37612
37613         New module 'unicase/u16-is-titlecase'.
37614         * lib/unicase/u16-is-titlecase.c: New file.
37615         * modules/unicase/u16-is-titlecase: New file.
37616
37617         New module 'unicase/u8-is-titlecase'.
37618         * lib/unicase/u8-is-titlecase.c: New file.
37619         * modules/unicase/u8-is-titlecase: New file.
37620
37621         Tests for module 'unicase/u32-is-lowercase'.
37622         * modules/unicase/u32-is-lowercase-tests: New file.
37623         * tests/unicase/test-u32-is-lowercase.c: New file.
37624
37625         Tests for module 'unicase/u16-is-lowercase'.
37626         * modules/unicase/u16-is-lowercase-tests: New file.
37627         * tests/unicase/test-u16-is-lowercase.c: New file.
37628
37629         Tests for module 'unicase/u8-is-lowercase'.
37630         * modules/unicase/u8-is-lowercase-tests: New file.
37631         * tests/unicase/test-u8-is-lowercase.c: New file.
37632         * tests/unicase/test-is-lowercase.h: New file.
37633
37634         New module 'unicase/u32-is-lowercase'.
37635         * lib/unicase/u32-is-lowercase.c: New file.
37636         * modules/unicase/u32-is-lowercase: New file.
37637
37638         New module 'unicase/u16-is-lowercase'.
37639         * lib/unicase/u16-is-lowercase.c: New file.
37640         * modules/unicase/u16-is-lowercase: New file.
37641
37642         New module 'unicase/u8-is-lowercase'.
37643         * lib/unicase/u8-is-lowercase.c: New file.
37644         * modules/unicase/u8-is-lowercase: New file.
37645
37646         Tests for module 'unicase/u32-is-uppercase'.
37647         * modules/unicase/u32-is-uppercase-tests: New file.
37648         * tests/unicase/test-u32-is-uppercase.c: New file.
37649
37650         Tests for module 'unicase/u16-is-uppercase'.
37651         * modules/unicase/u16-is-uppercase-tests: New file.
37652         * tests/unicase/test-u16-is-uppercase.c: New file.
37653
37654         Tests for module 'unicase/u8-is-uppercase'.
37655         * modules/unicase/u8-is-uppercase-tests: New file.
37656         * tests/unicase/test-u8-is-uppercase.c: New file.
37657         * tests/unicase/test-is-uppercase.h: New file.
37658
37659         New module 'unicase/u32-is-uppercase'.
37660         * lib/unicase/u32-is-uppercase.c: New file.
37661         * modules/unicase/u32-is-uppercase: New file.
37662
37663         New module 'unicase/u16-is-uppercase'.
37664         * lib/unicase/u16-is-uppercase.c: New file.
37665         * modules/unicase/u16-is-uppercase: New file.
37666
37667         New module 'unicase/u8-is-uppercase'.
37668         * lib/unicase/u8-is-uppercase.c: New file.
37669         * modules/unicase/u8-is-uppercase: New file.
37670
37671         New module 'unicase/u32-is-invariant'.
37672         * lib/unicase/u32-is-invariant.c: New file.
37673         * modules/unicase/u32-is-invariant: New file.
37674
37675         New module 'unicase/u16-is-invariant'.
37676         * lib/unicase/u16-is-invariant.c: New file.
37677         * modules/unicase/u16-is-invariant: New file.
37678
37679         New module 'unicase/u8-is-invariant'.
37680         * lib/unicase/u8-is-invariant.c: New file.
37681         * lib/unicase/invariant.h: New file.
37682         * lib/unicase/u-is-invariant.h: New file.
37683         * modules/unicase/u8-is-invariant: New file.
37684
37685         Tests for module 'unicase/u32-casecoll'.
37686         * modules/unicase/u32-casecoll-tests: New file.
37687         * tests/unicase/test-u32-casecoll.c: New file.
37688
37689         Tests for module 'unicase/u16-casecoll'.
37690         * modules/unicase/u16-casecoll-tests: New file.
37691         * tests/unicase/test-u16-casecoll.c: New file.
37692
37693         Tests for module 'unicase/u8-casecoll'.
37694         * modules/unicase/u8-casecoll-tests: New file.
37695         * tests/unicase/test-u8-casecoll.c: New file.
37696
37697         New module 'unicase/u32-casecoll'.
37698         * lib/unicase/u32-casecoll.c: New file.
37699         * modules/unicase/u32-casecoll: New file.
37700
37701         New module 'unicase/u16-casecoll'.
37702         * lib/unicase/u16-casecoll.c: New file.
37703         * modules/unicase/u16-casecoll: New file.
37704
37705         New module 'unicase/u8-casecoll'.
37706         * lib/unicase/u8-casecoll.c: New file.
37707         * lib/unicase/u-casecoll.h: New file.
37708         * modules/unicase/u8-casecoll: New file.
37709
37710         New module 'unicase/u32-casexfrm'.
37711         * lib/unicase/u32-casexfrm.c: New file.
37712         * modules/unicase/u32-casexfrm: New file.
37713
37714         New module 'unicase/u16-casexfrm'.
37715         * lib/unicase/u16-casexfrm.c: New file.
37716         * modules/unicase/u16-casexfrm: New file.
37717
37718         New module 'unicase/u8-casexfrm'.
37719         * lib/unicase/u8-casexfrm.c: New file.
37720         * lib/unicase/u-casexfrm.h: New file.
37721         * modules/unicase/u8-casexfrm: New file.
37722
37723         Tests for module 'unicase/u32-casecmp'.
37724         * modules/unicase/u32-casecmp-tests: New file.
37725         * tests/unicase/test-u32-casecmp.c: New file.
37726
37727         Tests for module 'unicase/u16-casecmp'.
37728         * modules/unicase/u16-casecmp-tests: New file.
37729         * tests/unicase/test-u16-casecmp.c: New file.
37730
37731         Tests for module 'unicase/u8-casecmp'.
37732         * modules/unicase/u8-casecmp-tests: New file.
37733         * tests/unicase/test-u8-casecmp.c: New file.
37734         * tests/unicase/test-casecmp.h: New file.
37735
37736         New module 'unicase/u32-casecmp'.
37737         * lib/unicase/u32-casecmp.c: New file.
37738         * modules/unicase/u32-casecmp: New file.
37739
37740         New module 'unicase/u16-casecmp'.
37741         * lib/unicase/u16-casecmp.c: New file.
37742         * modules/unicase/u16-casecmp: New file.
37743
37744         New module 'unicase/u8-casecmp'.
37745         * lib/unicase/u8-casecmp.c: New file.
37746         * lib/unicase/u-casecmp.h: New file.
37747         * modules/unicase/u8-casecmp: New file.
37748
37749         Tests for module 'unicase/u32-casefold'.
37750         * modules/unicase/u32-casefold-tests: New file.
37751         * tests/unicase/test-u32-casefold.c: New file.
37752
37753         Tests for module 'unicase/u16-casefold'.
37754         * modules/unicase/u16-casefold-tests: New file.
37755         * tests/unicase/test-u16-casefold.c: New file.
37756
37757         Tests for module 'unicase/u8-casefold'.
37758         * modules/unicase/u8-casefold-tests: New file.
37759         * tests/unicase/test-u8-casefold.c: New file.
37760
37761         New module 'unicase/u32-casefold'.
37762         * lib/unicase/u32-casefold.c: New file.
37763         * modules/unicase/u32-casefold: New file.
37764
37765         New module 'unicase/u16-casefold'.
37766         * lib/unicase/u16-casefold.c: New file.
37767         * modules/unicase/u16-casefold: New file.
37768
37769         New module 'unicase/u8-casefold'.
37770         * lib/unicase/u8-casefold.c: New file.
37771         * lib/unicase/u-casefold.h: New file.
37772         * modules/unicase/u8-casefold: New file.
37773
37774         New module 'unicase/tocasefold'.
37775         * lib/unicase/casefold.h: New file.
37776         * lib/unicase/tocasefold.c: New file.
37777         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
37778         * modules/unicase/tocasefold: New file.
37779
37780         Tests for module 'unicase/u32-totitle'.
37781         * modules/unicase/u32-totitle-tests: New file.
37782         * tests/unicase/test-u32-totitle.c: New file.
37783
37784         Tests for module 'unicase/u16-totitle'.
37785         * modules/unicase/u16-totitle-tests: New file.
37786         * tests/unicase/test-u16-totitle.c: New file.
37787
37788         Tests for module 'unicase/u8-totitle'.
37789         * modules/unicase/u8-totitle-tests: New file.
37790         * tests/unicase/test-u8-totitle.c: New file.
37791
37792         New module 'unicase/u32-totitle'.
37793         * lib/unicase/u32-totitle.c: New file.
37794         * modules/unicase/u32-totitle: New file.
37795
37796         New module 'unicase/u16-totitle'.
37797         * lib/unicase/u16-totitle.c: New file.
37798         * modules/unicase/u16-totitle: New file.
37799
37800         New module 'unicase/u8-totitle'.
37801         * lib/unicase/u8-totitle.c: New file.
37802         * lib/unicase/u-totitle.h: New file.
37803         * modules/unicase/u8-totitle: New file.
37804
37805         Tests for module 'unicase/u32-tolower'.
37806         * modules/unicase/u32-tolower-tests: New file.
37807         * tests/unicase/test-u32-tolower.c: New file.
37808
37809         Tests for module 'unicase/u16-tolower'.
37810         * modules/unicase/u16-tolower-tests: New file.
37811         * tests/unicase/test-u16-tolower.c: New file.
37812
37813         Tests for module 'unicase/u8-tolower'.
37814         * modules/unicase/u8-tolower-tests: New file.
37815         * tests/unicase/test-u8-tolower.c: New file.
37816
37817         New module 'unicase/u32-tolower'.
37818         * lib/unicase/u32-tolower.c: New file.
37819         * modules/unicase/u32-tolower: New file.
37820
37821         New module 'unicase/u16-tolower'.
37822         * lib/unicase/u16-tolower.c: New file.
37823         * modules/unicase/u16-tolower: New file.
37824
37825         New module 'unicase/u8-tolower'.
37826         * lib/unicase/u8-tolower.c: New file.
37827         * modules/unicase/u8-tolower: New file.
37828
37829         Tests for module 'unicase/u32-toupper'.
37830         * modules/unicase/u32-toupper-tests: New file.
37831         * tests/unicase/test-u32-toupper.c: New file.
37832
37833         Tests for module 'unicase/u16-toupper'.
37834         * modules/unicase/u16-toupper-tests: New file.
37835         * tests/unicase/test-u16-toupper.c: New file.
37836
37837         Tests for module 'unicase/u8-toupper'.
37838         * modules/unicase/u8-toupper-tests: New file.
37839         * tests/unicase/test-u8-toupper.c: New file.
37840
37841         New module 'unicase/u32-toupper'.
37842         * lib/unicase/u32-toupper.c: New file.
37843         * modules/unicase/u32-toupper: New file.
37844
37845         New module 'unicase/u16-toupper'.
37846         * lib/unicase/u16-toupper.c: New file.
37847         * modules/unicase/u16-toupper: New file.
37848
37849         New module 'unicase/u8-toupper'.
37850         * lib/unicase/u8-toupper.c: New file.
37851         * modules/unicase/u8-toupper: New file.
37852
37853         New module 'unicase/u32-casemap'.
37854         * lib/unicase/u32-casemap.c: New file.
37855         * modules/unicase/u32-casemap: New file.
37856
37857         New module 'unicase/u16-casemap'.
37858         * lib/unicase/u16-casemap.c: New file.
37859         * modules/unicase/u16-casemap: New file.
37860
37861         New module 'unicase/u8-casemap'.
37862         * lib/unicase/unicasemap.h: New file.
37863         * lib/unicase/u8-casemap.c: New file.
37864         * lib/unicase/u-casemap.h: New file.
37865         * modules/unicase/u8-casemap: New file.
37866
37867         New module 'unicase/special-casing'.
37868         * lib/unicase/special-casing.h: New file.
37869         * lib/unicase/special-casing.c: New file.
37870         * lib/unicase/special-casing-table.gperf: New file, generated by
37871         gen-uni-tables.c.
37872         * modules/unicase/special-casing: New file.
37873
37874         Tests for module 'unicase/locale-language'.
37875         * modules/unicase/locale-language-tests: New file.
37876         * tests/unicase/test-locale-language.sh: New file.
37877         * tests/unicase/test-locale-language.c: New file.
37878
37879         New module 'unicase/locale-language'.
37880         * lib/unicase/locale-language.c: New file.
37881         * lib/unicase/locale-languages.gperf: New file.
37882         * modules/unicase/locale-language: New file.
37883
37884         Generate more tables for case conversion and case folding.
37885         * lib/gen-uni-tables.c (SCC_*): New enum items.
37886         (struct special_casing_rule): New type.
37887         (casing_rules, num_casing_rules, allocated_casing_rules): New
37888         variables.
37889         (add_casing_rule, fill_casing_rules): New functions.
37890         (struct casefold_rule): New type.
37891         (casefolding_rules, num_casefolding_rules,
37892         allocated_casefolding_rules): New variables.
37893         (fill_casefolding_rules): New function.
37894         (unicode_casefold): New variable.
37895         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
37896         sort_casing_rules, output_casing_rules): New functions.
37897         (main): Accept to more arguments: SpecialCasing.txt and
37898         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
37899         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
37900         Output mapping for casefolding.
37901
37902         * lib/unicase.h: Include stdbool.h, uninorm.h.
37903         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
37904         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
37905         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
37906         arguments.
37907         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
37908         resultp arguments.
37909         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
37910         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
37911         resultp arguments.
37912         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
37913         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
37914         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
37915         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
37916         declarations.
37917         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
37918
37919 2009-03-08  Bruno Haible  <bruno@clisp.org>
37920
37921         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37922         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
37923         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
37924         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37925
37926 2009-03-07  Bruno Haible  <bruno@clisp.org>
37927
37928         Adjust u*_normcmp, u*_normcoll API.
37929         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37930         u16_normcoll, u32_normcoll): Change failure conventions.
37931         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
37932         errno and return -1.
37933         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37934
37935 2009-03-07  Bruno Haible  <bruno@clisp.org>
37936
37937         Tests for module 'uninorm/u32-normcoll'.
37938         * modules/uninorm/u32-normcoll-tests: New file.
37939         * tests/uninorm/test-u32-normcoll.c: New file.
37940
37941         Tests for module 'uninorm/u16-normcoll'.
37942         * modules/uninorm/u16-normcoll-tests: New file.
37943         * tests/uninorm/test-u16-normcoll.c: New file.
37944
37945         Tests for module 'uninorm/u8-normcoll'.
37946         * modules/uninorm/u8-normcoll-tests: New file.
37947         * tests/uninorm/test-u8-normcoll.c: New file.
37948
37949 2009-03-07  Bruno Haible  <bruno@clisp.org>
37950
37951         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
37952         tests/uninorm/test-u32-normcmp.c.
37953         * tests/uninorm/test-u32-normcmp.c: Include it.
37954         (test_nonascii): New function, extracted from main. Add some more
37955         tests.
37956         (main): Invoke test_ascii and test_nonascii.
37957         * modules/uninorm/u32-normcmp-tests (Files): Add
37958         tests/uninorm/test-u32-normcmp.h.
37959         (Depends-on): Remove uninorm/u32-normcmp.
37960
37961         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
37962         tests/uninorm/test-u16-normcmp.c.
37963         * tests/uninorm/test-u16-normcmp.c: Include it.
37964         (test_nonascii): New function, extracted from main. Add some more
37965         tests.
37966         (main): Invoke test_ascii and test_nonascii.
37967         * modules/uninorm/u16-normcmp-tests (Files): Add
37968         tests/uninorm/test-u16-normcmp.h.
37969         (Depends-on): Remove uninorm/u16-normcmp.
37970
37971         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
37972         tests/uninorm/test-u8-normcmp.c.
37973         * tests/uninorm/test-u8-normcmp.c: Include it.
37974         (test_nonascii): New function, extracted from main. Add some more
37975         tests.
37976         (main): Invoke test_ascii and test_nonascii.
37977         * modules/uninorm/u8-normcmp-tests (Files): Add
37978         tests/uninorm/test-u8-normcmp.h.
37979         (Depends-on): Remove uninorm/u8-normcmp.
37980
37981 2009-03-07  Bruno Haible  <bruno@clisp.org>
37982
37983         New module 'uninorm/u32-normcoll'.
37984         * lib/uninorm/u32-normcoll.c: New file.
37985         * modules/uninorm/u32-normcoll: New file.
37986
37987         New module 'uninorm/u16-normcoll'.
37988         * lib/uninorm/u16-normcoll.c: New file.
37989         * modules/uninorm/u16-normcoll: New file.
37990
37991         New module 'uninorm/u8-normcoll'.
37992         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37993         declarations.
37994         * lib/uninorm/u8-normcoll.c: New file.
37995         * lib/uninorm/u-normcoll.h: New file.
37996         * modules/uninorm/u8-normcoll: New file.
37997
37998         New module 'uninorm/u32-normxfrm'.
37999         * lib/uninorm/u32-normxfrm.c: New file.
38000         * modules/uninorm/u32-normxfrm: New file.
38001
38002         New module 'uninorm/u16-normxfrm'.
38003         * lib/uninorm/u16-normxfrm.c: New file.
38004         * modules/uninorm/u16-normxfrm: New file.
38005
38006         New module 'uninorm/u8-normxfrm'.
38007         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
38008         declarations.
38009         * lib/uninorm/u8-normxfrm.c: New file.
38010         * lib/uninorm/u-normxfrm.h: New file.
38011         * modules/uninorm/u8-normxfrm: New file.
38012
38013 2009-03-07  Bruno Haible  <bruno@clisp.org>
38014
38015         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
38016         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
38017         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
38018
38019 2009-03-07  Bruno Haible  <bruno@clisp.org>
38020
38021         New module 'memxfrm'.
38022         * lib/memxfrm.h: New file.
38023         * lib/memxfrm.c: New file.
38024         * modules/memxfrm: New file.
38025
38026 2009-03-07  Bruno Haible  <bruno@clisp.org>
38027
38028         New module 'memcmp2'.
38029         * lib/memcmp2.h: New file.
38030         * lib/memcmp2.c: New file.
38031         * modules/memcmp2: New file.
38032
38033 2009-03-07  Bruno Haible  <bruno@clisp.org>
38034
38035         Tests for module 'uninorm/decomposing-form'.
38036         * modules/uninorm/decomposing-form-tests: New file.
38037         * tests/uninorm/test-decomposing-form.c: New file.
38038
38039         New module 'uninorm/decomposing-form'.
38040         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
38041         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
38042         Add 'decomposing_variant' field.
38043         * lib/uninorm/decomposing-form.c: New file.
38044         * lib/uninorm/nfc.c (uninorm_nfc): Update.
38045         * lib/uninorm/nfd.c (uninorm_nfd): Update.
38046         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
38047         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
38048         * modules/uninorm/decomposing-form: New file.
38049         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
38050         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
38051
38052 2009-03-07  Bruno Haible  <bruno@clisp.org>
38053
38054         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
38055         strings.
38056
38057 2009-03-06  Bruno Haible  <bruno@clisp.org>
38058
38059         Tests for module 'uninorm/u32-normcmp'.
38060         * tests/uninorm/test-u32-normcmp.c: New file.
38061         * modules/uninorm/u32-normcmp-tests: New file.
38062
38063         Tests for module 'uninorm/u16-normcmp'.
38064         * tests/uninorm/test-u16-normcmp.c: New file.
38065         * modules/uninorm/u16-normcmp-tests: New file.
38066
38067         Tests for module 'uninorm/u8-normcmp'.
38068         * tests/uninorm/test-u8-normcmp.c: New file.
38069         * modules/uninorm/u8-normcmp-tests: New file.
38070
38071         New module 'uninorm/u32-normcmp'.
38072         * lib/uninorm/u32-normcmp.c: New file.
38073         * modules/uninorm/u32-normcmp: New file.
38074
38075         New module 'uninorm/u16-normcmp'.
38076         * lib/uninorm/u16-normcmp.c: New file.
38077         * modules/uninorm/u16-normcmp: New file.
38078
38079         New module 'uninorm/u8-normcmp'.
38080         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
38081         declarations.
38082         * lib/uninorm/u8-normcmp.c: New file.
38083         * lib/uninorm/u-normcmp.h: New file.
38084         * modules/uninorm/u8-normcmp: New file.
38085
38086 2009-03-06  Bruno Haible  <bruno@clisp.org>
38087
38088         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
38089         Reported by Eric Blake.
38090
38091 2009-03-06  Eric Blake  <ebb9@byu.net>
38092             Bruno Haible  <bruno@clisp.org>
38093
38094         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
38095         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
38096         condition.
38097         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38098         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
38099         condition.
38100         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38101
38102 2009-03-06  Eric Blake  <ebb9@byu.net>
38103
38104         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
38105         to avoid compiler warnings.
38106         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
38107
38108 2009-03-05  Bruno Haible  <bruno@clisp.org>
38109
38110         * tests/test-ftell.c (main): Disable test beyond end of file on
38111         FreeMiNT.
38112         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38113
38114 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
38115
38116         * lib/filevercmp.c: Move hidden files up in ordering.
38117         * tests/test-filevercmp.c: Add tests for hidden files.
38118
38119 2009-03-04  Bruno Haible  <bruno@clisp.org>
38120
38121         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
38122         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
38123         AM_CFLAGS.
38124         Reported by Simon Josefsson.
38125
38126 2009-03-03  Bruno Haible  <bruno@clisp.org>
38127
38128         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
38129         Reported by Simon Josefsson.
38130
38131         * doc/ld-version-script.texi: Update node reference.
38132
38133 2009-03-03  Bruno Haible  <bruno@clisp.org>
38134
38135         * modules/visibility (License): Change to 'unlimited'.
38136         Suggested by Simon Josefsson.
38137
38138 2009-03-03  Jim Meyering  <meyering@redhat.com>
38139
38140         unlinkdir: cannot_unlink_dir may modify process state
38141         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
38142         it's neither thread-safe nor appropriate for use in a library.
38143
38144 2009-03-03  Eric Blake  <ebb9@byu.net>
38145
38146         test-closein: silence test under Darwin
38147         * tests/test-closein.sh: Ignore stderr from cat, since we don't
38148         care if it dies from EPIPE or EBADF.
38149
38150 2009-03-03  Bruno Haible  <bruno@clisp.org>
38151
38152         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
38153         earlier.
38154         * doc/visibility.texi: Fix @node and @section.
38155
38156 2009-03-03  Simon Josefsson  <simon@josefsson.org>
38157
38158         * doc/gnulib.texi: Link to sections for ld version script and
38159         visibility.
38160         * doc/visibility.texi: Add @node and @section.
38161         * modules/ld-version-script: New module.
38162         * m4/ld-version-script.m4: New file.
38163         * doc/ld-version-script.texi: New file.
38164
38165 2009-03-02  David Lutterkort  <lutter@redhat.com>
38166
38167         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
38168         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38169
38170 2009-03-02  Bruno Haible  <bruno@clisp.org>
38171
38172         * doc/visibility.texi: Mention libtool's -export-symbols option.
38173
38174 2009-03-02  Jim Meyering  <meyering@redhat.com>
38175
38176         announce-gen: new option: --no-print-checksums
38177         * build-aux/announce-gen (usage): Describe it.
38178         (print_checksums): Print a newline here, not in the [*] footnote.
38179         (main): Honor it.
38180
38181 2009-03-01  Bruno Haible  <bruno@clisp.org>
38182
38183         Use socklen_t in the native Windows replacements prototypes.
38184         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
38185         instead of 'int'.
38186         * lib/getsockopt.c (rpl_getsockopt): Likewise.
38187         * lib/setsockopt.c (rpl_setsockopt): Likewise.
38188         * modules/getsockopt (Depends-on): Add socklen.
38189         * modules/setsockopt (Depends-on): Add socklen.
38190
38191 2009-03-01  Bruno Haible  <bruno@clisp.org>
38192
38193         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
38194         least 4.2.
38195
38196 2009-03-01  Eric Blake  <ebb9@byu.net>
38197             Bruno Haible  <bruno@clisp.org>
38198
38199         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
38200         error messages.
38201         * lib/wait-process.c (wait_subprocess): Omit error message about
38202         deadly signal sent to the child of termsigp != NULL.
38203
38204 2009-03-01  Eric Blake  <ebb9@byu.net>
38205
38206         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
38207
38208 2009-03-01  Bruno Haible  <bruno@clisp.org>
38209
38210         Avoid a gcc warning.
38211         * tests/test-sched.c (b): Make global.
38212         Reported by Eric Blake.
38213
38214 2009-01-19  Martin Lambers  <marlam@marlam.de>
38215
38216         Provide POSIX semantics for socket timeout options on W32.
38217         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
38218         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
38219         * modules/setsockopt: Depend on sys_time module for struct timeval.
38220         * modules/getsockopt: Depend on sys_time module for struct timeval.
38221
38222 2009-03-01  Simon Josefsson  <simon@josefsson.org>
38223
38224         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
38225         __USE_GNU, for consistency with netdb.in.h.
38226         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38227
38228 2009-03-01  Bruno Haible  <bruno@clisp.org>
38229
38230         More support for FreeMiNT.
38231         * lib/fseeko.c (rpl_fseeko): Complete last commit.
38232         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38233
38234 2009-03-01  Bruno Haible  <bruno@clisp.org>
38235
38236         More support for FreeMiNT.
38237         * lib/fpurge.c (fpurge): Correct last commit.
38238         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38239
38240 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38241
38242         Fix unportable awk script in vc-list-files.
38243         * build-aux/vc-list-files: In the replacement awk script, use
38244         substr with a second argument of 1, not zero.
38245         Report by Simon Josefsson.
38246
38247 2009-02-28  Bruno Haible  <bruno@clisp.org>
38248
38249         More support for FreeMiNT.
38250         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
38251         to FreeMiNT today.
38252         * lib/fwriting.c (fwriting): Likewise.
38253         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
38254
38255 2009-02-28  Bruno Haible  <bruno@clisp.org>
38256
38257         * tests/test-freadseek.c (main): Disable test beyond end of file on
38258         FreeMiNT.
38259         * tests/test-ftello.c (main): Likewise.
38260         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38261
38262 2009-02-28  Bruno Haible  <bruno@clisp.org>
38263
38264         Add tentative support for FreeMiNT.
38265         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
38266         * lib/fpurge.c (fpurge): Likewise.
38267         * lib/freadable.c (freadable): Likewise.
38268         * lib/freading.c (freading): Likewise.
38269         * lib/freadptr.c (freadptr): Likewise.
38270         * lib/freadseek.c (freadptrinc): Likewise.
38271         * lib/fseeko.c (rpl_fseeko): Likewise.
38272         * lib/fseterr.c (fseterr): Likewise.
38273         * lib/fwritable.c (fwritable): Likewise.
38274         * lib/fwriting.c (fwriting): Likewise.
38275         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
38276         Hourihane.
38277         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38278
38279 2009-02-28  Bruno Haible  <bruno@clisp.org>
38280
38281         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
38282         SIGCHLD.
38283         Reported by Jim Meyering.
38284
38285 2009-02-28  Bruno Haible  <bruno@clisp.org>
38286
38287         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
38288         Mention the results of these tests on various platforms.
38289         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
38290         order.
38291         * doc/posix-functions/printf.texi: Likewise.
38292         * doc/posix-functions/snprintf.texi: Likewise.
38293         * doc/posix-functions/sprintf.texi: Likewise.
38294         * doc/posix-functions/vfprintf.texi: Likewise.
38295         * doc/posix-functions/vprintf.texi: Likewise.
38296         * doc/posix-functions/vsnprintf.texi: Likewise.
38297         * doc/posix-functions/vsprintf.texi: Likewise.
38298         * doc/glibc-functions/obstack_printf.texi: Likewise.
38299         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
38300
38301 2009-02-28  Bruno Haible  <bruno@clisp.org>
38302
38303         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
38304         Reported by Loïc Minier <lool@dooz.org>.
38305
38306 2009-02-27  Bruno Haible  <bruno@clisp.org>
38307
38308         * gnulib-tool (func_import): Make the sed expression used to create the
38309         sed script for updating the .gitignore file POSIX compliant.
38310         Reported by Eric Blake.
38311
38312 2009-02-27  Bruno Haible  <bruno@clisp.org>
38313
38314         * gnulib-tool (sed): Don't alias as "sed --posix".
38315         Reported by Eric Blake.
38316
38317 2009-02-27  Bruno Haible  <bruno@clisp.org>
38318
38319         Avoid test link errors.
38320         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
38321         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
38322         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
38323         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
38324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38325
38326 2009-02-27  Bruno Haible  <bruno@clisp.org>
38327
38328         Avoid spurious "(cached)" in configure output.
38329         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
38330         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
38331         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
38332         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
38333         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
38334         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
38335         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
38336         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
38337         Reported by Eric Blake.
38338
38339 2009-02-27  Eric Blake  <ebb9@byu.net>
38340
38341         printf: fix regression in previous patch
38342         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
38343
38344 2009-02-27  Bruno Haible  <bruno@clisp.org>
38345
38346         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
38347         value.
38348         * lib/stdint.in.h: Likewise.
38349         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
38350
38351 2009-02-27  Eric Blake  <ebb9@byu.net>
38352
38353         doc: mention more functions added in cygwin 1.7.0
38354         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
38355         addition.
38356         * doc/posix-functions/open_wmemstream.texi: Likewise.
38357         * doc/posix-functions/wcsnlen.texi: Likewise.
38358         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38359         * doc/posix-functions/wcstod.texi: Likewise.
38360         * doc/posix-functions/wcstof.texi: Likewise.
38361         * doc/posix-functions/wcstoimax.texi: Likewise.
38362         * doc/posix-functions/wcstok.texi: Likewise.
38363         * doc/posix-functions/wcstoumax.texi: Likewise.
38364
38365         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
38366         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
38367         * doc/posix-functions/fprintf.texi: Update.
38368         * doc/posix-functions/printf.texi: Update.
38369         * doc/posix-functions/snprintf.texi: Update.
38370         * doc/posix-functions/sprintf.texi: Update.
38371         * doc/posix-functions/vfprintf.texi: Update.
38372         * doc/posix-functions/vprintf.texi: Update.
38373         * doc/posix-functions/vsnprintf.texi: Update.
38374         * doc/posix-functions/vsprintf.texi: Update.
38375         * doc/glibc-functions/obstack_printf.texi: Update.
38376         * doc/glibc-functions/obstack_vprintf.texi: Update.
38377
38378 2009-02-26  Eric Blake  <ebb9@byu.net>
38379
38380         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
38381         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
38382         compilation bug by using runtime conversion.
38383         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
38384         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
38385         * modules/ceill-tests (Files): Use nan.h.
38386         * modules/floorl-tests (Files): Likewise.
38387         * modules/frexpl-tests (Files): Likewise.
38388         * modules/isnanl-tests (Files): Likewise.
38389         * modules/ldexpl-tests (Files): Likewise.
38390         * modules/roundl-tests (Files): Likewise.
38391         * modules/truncl-tests (Files): Likewise.
38392         * tests/test-ceill.c (main): Use a working NaN.
38393         * tests/test-floorl.c (main): Likewise.
38394         * tests/test-frexpl.c (main): Likewise.
38395         * tests/test-isnan.c (test_long_double): Likewise.
38396         * tests/test-isnanl.h (main): Likewise.
38397         * tests/test-ldexpl.h (main): Likewise.
38398         * tests/test-roundl.h (main): Likewise.
38399         * tests/test-truncl.h (main): Likewise.
38400         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
38401
38402 2009-02-26  Eric Blake  <ebb9@byu.net>
38403             Bruno Haible  <bruno@clisp.org>
38404
38405         Work around a *printf bug with %ls on Solaris.
38406         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
38407         precision is specified, sprintf stops converting the wide string
38408         argument when the number of bytes that have been produced by this
38409         conversion equals or exceeds the precision.
38410         * doc/posix-functions/fprintf.texi: Update.
38411         * doc/posix-functions/printf.texi: Update.
38412         * doc/posix-functions/snprintf.texi: Update.
38413         * doc/posix-functions/sprintf.texi: Update.
38414         * doc/posix-functions/vfprintf.texi: Update.
38415         * doc/posix-functions/vprintf.texi: Update.
38416         * doc/posix-functions/vsnprintf.texi: Update.
38417         * doc/posix-functions/vsprintf.texi: Update.
38418         * doc/glibc-functions/obstack_printf.texi: Update.
38419         * doc/glibc-functions/obstack_vprintf.texi: Update.
38420
38421 2009-02-26  Eric Blake  <ebb9@byu.net>
38422
38423         stdlib: favor compiler check of random.h
38424         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
38425         to avoid an ObjC random.h installed by Swarm.
38426
38427 2009-02-26  Bruno Haible  <bruno@clisp.org>
38428
38429         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
38430         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
38431         Reported by Gary V. Vaughan <gary@gnu.org>.
38432
38433 2009-02-26  Bruno Haible  <bruno@clisp.org>
38434
38435         Fix *printf behaviour regarding the %ls directive.
38436         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
38437         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
38438         NEED_PRINTF_DIRECTIVE_LS.
38439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
38440         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38441         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38442         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
38443         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
38444         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
38445         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38446         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38447         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38448         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38449         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38450         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
38451         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38452         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38453         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38454         * doc/posix-functions/fprintf.texi: Update.
38455         * doc/posix-functions/printf.texi: Update.
38456         * doc/posix-functions/snprintf.texi: Update.
38457         * doc/posix-functions/sprintf.texi: Update.
38458         * doc/posix-functions/vfprintf.texi: Update.
38459         * doc/posix-functions/vprintf.texi: Update.
38460         * doc/posix-functions/vsnprintf.texi: Update.
38461         * doc/posix-functions/vsprintf.texi: Update.
38462         * doc/glibc-functions/obstack_printf.texi: Update.
38463         * doc/glibc-functions/obstack_vprintf.texi: Update.
38464         Reported by Eric Blake.
38465
38466 2009-02-25  Bruno Haible  <bruno@clisp.org>
38467
38468         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
38469         with known value.
38470         Reported by Gary V. Vaughan <gary@gnu.org>.
38471
38472 2009-02-25  Bruno Haible  <bruno@clisp.org>
38473
38474         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
38475         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
38476         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
38477         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
38478         Reported by Gary V. Vaughan <gary@gnu.org>.
38479
38480 2009-02-25  Bruno Haible  <bruno@clisp.org>
38481
38482         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
38483         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
38484         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
38485         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
38486         Reported by Gary V. Vaughan <gary@gnu.org>.
38487
38488 2009-02-25  Eric Blake  <ebb9@byu.net>
38489
38490         tests: skip fseek/ftell tests if ungetc is broken
38491         * m4/ungetc.m4: New file.
38492         * modules/fseek-tests: Split test, so ungetc dependency is
38493         separate from rest of test.
38494         * modules/fseeko-tests: Likewise.
38495         * modules/ftell-tests: Likewise.
38496         * modules/ftello-tests: Likewise.
38497         * tests/test-fseek.c (main): Isolate ungetc dependency.
38498         * tests/test-fseeko.c (main): Likewise.
38499         * tests/test-ftell.c (main): Likewise.
38500         * tests/test-ftello.c (main): Likewise.
38501         * tests/test-fseek2.sh: New file.
38502         * tests/test-fseeko2.sh: Likewise.
38503         * tests/test-ftell2.sh: Likewise.
38504         * tests/test-ftello2.sh: Likewise.
38505
38506 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
38507
38508         test-getaddrinfo: fix usage of skip return code 77
38509         * tests/test-gettaddrinfo.c: Return skip code 77 only
38510         for first occurance of skip (4x77 is not 77)
38511
38512 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
38513
38514         strtod: avoid C99 decl-after-statement
38515         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
38516
38517 2009-02-24  Eric Blake  <ebb9@byu.net>
38518
38519         strtod: detect HP-UX 11.31 bug
38520         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
38521         Reported by Gary V. Vaughan.
38522
38523 2009-02-23  Bruno Haible  <bruno@clisp.org>
38524
38525         Fix invalid read past end of memory block.
38526         * lib/vasnprintf.c (DCHAR_SET): Define.
38527         (local_wcslen): Define only when needed.
38528         (local_strnlen, local_wcsnlen): New functions.
38529         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
38530         directives that involve a conversion ourselves.
38531         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
38532         wcsnlen, mbrtowc, wcrtomb.
38533         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
38534         * tests/test-vasprintf-posix.c (test_function): Likewise.
38535         * tests/test-snprintf-posix.h (test_function): Likewise.
38536         * tests/test-sprintf-posix.h (test_function): Likewise.
38537         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38538
38539 2009-02-22  Bruno Haible  <bruno@clisp.org>
38540
38541         Implement new clarified decomposition of Hangul syllables.
38542         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
38543         of type LTV, return only a pairwise decomposition.
38544         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
38545         Likewise.
38546         * tests/uninorm/test-decomposition.c (main): Updated expected result.
38547         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
38548         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
38549
38550 2009-02-22  Bruno Haible  <bruno@clisp.org>
38551
38552         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
38553         zero-length results and shrink excess allocated memory.
38554         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
38555         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
38556         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
38557         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
38558         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
38559         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
38560         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
38561         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
38562         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
38563         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
38564         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
38565         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
38566
38567 2009-02-21  Bruno Haible  <bruno@clisp.org>
38568
38569         * doc/gnulib.texi: Include safe-alloc.texi earlier.
38570         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
38571         spaces after a period. Put a space between a macro name and its
38572         argument list. Trivial rewordings.
38573         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
38574         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
38575         (main): Return 0 explicitly.
38576
38577 2009-02-21  Bruno Haible  <bruno@clisp.org>
38578
38579         Tests for module 'uninorm/filter'.
38580         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
38581         * modules/uninorm/filter-tests: New file.
38582
38583         New module 'uninorm/filter'.
38584         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
38585         uninorm_filter_flush, uninorm_filter_free): New declarations.
38586         * lib/uninorm/uninorm-filter.c: New file.
38587         * modules/uninorm/filter: New file.
38588
38589 2009-02-21  Bruno Haible  <bruno@clisp.org>
38590
38591         Tests for module 'uninorm/nfkc'.
38592         * tests/uninorm/test-nfkc.c: New file.
38593         * tests/uninorm/test-u8-nfkc.c: New file.
38594         * tests/uninorm/test-u16-nfkc.c: New file.
38595         * tests/uninorm/test-u32-nfkc.c: New file.
38596         * tests/uninorm/test-u32-nfkc-big.sh: New file.
38597         * tests/uninorm/test-u32-nfkc-big.c: New file.
38598         * modules/uninorm/nfkc-tests: New file.
38599
38600         New module 'uninorm/nfkc'.
38601         * lib/uninorm/nfkc.c: New file.
38602         * modules/uninorm/nfkc: New file.
38603
38604         Tests for module 'uninorm/nfkd'.
38605         * tests/uninorm/test-nfkd.c: New file.
38606         * tests/uninorm/test-u8-nfkd.c: New file.
38607         * tests/uninorm/test-u16-nfkd.c: New file.
38608         * tests/uninorm/test-u32-nfkd.c: New file.
38609         * tests/uninorm/test-u32-nfkd-big.sh: New file.
38610         * tests/uninorm/test-u32-nfkd-big.c: New file.
38611         * modules/uninorm/nfkd-tests: New file.
38612
38613         New module 'uninorm/nfkd'.
38614         * lib/uninorm/nfkd.c: New file.
38615         * modules/uninorm/nfkd: New file.
38616
38617         Tests for module 'uninorm/nfc'.
38618         * tests/uninorm/test-nfc.c: New file.
38619         * tests/uninorm/test-u8-nfc.c: New file.
38620         * tests/uninorm/test-u16-nfc.c: New file.
38621         * tests/uninorm/test-u32-nfc.c: New file.
38622         * tests/uninorm/test-u32-nfc-big.sh: New file.
38623         * tests/uninorm/test-u32-nfc-big.c: New file.
38624         * modules/uninorm/nfc-tests: New file.
38625
38626         New module 'uninorm/nfc'.
38627         * lib/uninorm/nfc.c: New file.
38628         * modules/uninorm/nfc: New file.
38629
38630         Tests for module 'uninorm/nfd'.
38631         * tests/uninorm/test-nfd.c: New file.
38632         * tests/uninorm/test-u8-nfd.c: New file.
38633         * tests/uninorm/test-u16-nfd.c: New file.
38634         * tests/uninorm/test-u32-nfd.c: New file.
38635         * tests/uninorm/test-u32-nfd-big.sh: New file.
38636         * tests/uninorm/test-u32-nfd-big.c: New file.
38637         * tests/uninorm/test-u32-normalize-big.h: New file.
38638         * tests/uninorm/test-u32-normalize-big.c: New file.
38639         * tests/uninorm/NormalizationTest.txt: New file, created from
38640         Unicode 5.1.0 NormalizationTest.txt.
38641         * modules/uninorm/nfd-tests: New file.
38642
38643         New module 'uninorm/nfd'.
38644         * lib/uninorm/nfd.c: New file.
38645         * modules/uninorm/nfd: New file.
38646
38647         New module 'uninorm/u32-normalize'.
38648         * lib/uninorm/u32-normalize.c: New file.
38649         * modules/uninorm/u32-normalize: New file.
38650
38651         New module 'uninorm/u16-normalize'.
38652         * lib/uninorm/u16-normalize.c: New file.
38653         * modules/uninorm/u16-normalize: New file.
38654
38655         New module 'uninorm/u8-normalize'.
38656         * lib/uninorm/u8-normalize.c: New file.
38657         * lib/uninorm/normalize-internal.h: New file.
38658         * lib/uninorm/u-normalize-internal.h: New file.
38659         * modules/uninorm/u8-normalize: New file.
38660
38661         New module 'uninorm/decompose-internal'.
38662         * lib/uninorm/decompose-internal.c: New file.
38663         * modules/uninorm/decompose-internal: New file.
38664
38665         Tests for module 'uninorm/composition'.
38666         * tests/uninorm/test-composition.c: New file.
38667         * modules/uninorm/composition-tests: New file.
38668
38669         New module 'uninorm/composition'.
38670         * lib/uninorm/composition.c: New file.
38671         * lib/uninorm/composition-table.gperf: New file, generated by
38672         gen-uni-tables.
38673         * modules/uninorm/composition: New file.
38674
38675         Tests for module 'uninorm/compat-decomposition'.
38676         * tests/uninorm/test-compat-decomposition.c: New file.
38677         * modules/uninorm/compat-decomposition-tests: New file.
38678
38679         New module 'uninorm/compat-decomposition'.
38680         * lib/uninorm/decompose-internal.h: New file.
38681         * lib/uninorm/compat-decomposition.c: New file.
38682         * modules/uninorm/compat-decomposition: New file.
38683
38684         Tests for module 'uninorm/canonical-decomposition'.
38685         * tests/uninorm/test-canonical-decomposition.c: New file.
38686         * modules/uninorm/canonical-decomposition-tests: New file.
38687
38688         New module 'uninorm/canonical-decomposition'.
38689         * lib/uninorm/canonical-decomposition.c: New file.
38690         * modules/uninorm/canonical-decomposition: New file.
38691
38692         Tests for module 'uninorm/decomposition'.
38693         * tests/uninorm/test-decomposition.c: New file.
38694         * modules/uninorm/decomposition-tests: New file.
38695
38696         New module 'uninorm/decomposition'.
38697         * lib/uninorm/decomposition.c: New file.
38698         * modules/uninorm/decomposition: New file.
38699
38700         New module 'uninorm/decomposition-table'.
38701         * lib/uninorm/decomposition-table.h: New file.
38702         * lib/uninorm/decomposition-table.c: New file.
38703         * lib/uninorm/decomposition-table1.h: New file, generated by
38704         gen-uni-tables.
38705         * lib/uninorm/decomposition-table2.h: New file, generated by
38706         gen-uni-tables.
38707         * modules/uninorm/decomposition-table: New file.
38708
38709         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
38710         (UC_DECOMP_*): New enumeration items.
38711         (get_decomposition): New function.
38712         (struct decomp_table): New type.
38713         (output_decomposition, output_decomposition_tables): New functions.
38714         (unicode_composition_exclusions): New variable.
38715         (fill_composition_exclusions, debug_output_composition_tables): New
38716         functions.
38717         (main): Accept one more argument. Invoke fill_composition_exclusions.
38718         Output decomposition and composition tables.
38719
38720         New module 'uninorm/base'.
38721         * lib/uninorm.h: New file.
38722         * lib/unictype.h: Update comment.
38723         * modules/uninorm/base: New file.
38724
38725 2009-02-21  David Lutterkort  <lutter@redhat.com>
38726
38727         Tests for module 'safe-alloc'.
38728         * tests/test-safe-alloc.c: New file.
38729         * modules/safe-alloc-tests: New file.
38730
38731         New module 'safe-alloc'.
38732         * lib/safe-alloc.h: New file.
38733         * lib/safe-alloc.c: New file.
38734         * m4/safe-alloc.m4: New file.
38735         * modules/safe-alloc: New file.
38736         * doc/safe-alloc.texi: New file.
38737         * doc/gnulib.texi: Include it.
38738         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
38739         safe-alloc.
38740
38741 2009-02-18  Bruno Haible  <bruno@clisp.org>
38742
38743         Fix link error on non-glibc systems.
38744         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
38745         variable.
38746         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38747
38748 2009-02-18  Jim Meyering  <meyering@redhat.com>
38749
38750         fts: avoid used-uninitialized error due to recent change
38751         * lib/fts.c (fts_read): Guard uses of the new member,
38752         parent->fts_n_dirs_remaining, since it's not relevant for
38753         the parent of a directory specified on the command-line.
38754
38755 2009-02-17  James Youngman  <jay@gnu.org>
38756             Bruno Haible  <bruno@clisp.org>
38757
38758         * m4/include_next.m4: Reformulate comment.
38759
38760 2009-02-16  Jim Meyering  <meyering@redhat.com>
38761
38762         fts: add #if guards so that the fts_lgpl module still builds
38763         * lib/fts.c: Guard just-added hash-table-using parts with
38764         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
38765         Reported by Simon Josefsson.
38766
38767 2009-02-15  Bruno Haible  <bruno@clisp.org>
38768
38769         * modules/array-mergesort-tests: New file.
38770         * tests/test-array-mergesort.c: New file.
38771
38772         New module 'array-mergesort'.
38773         * modules/array-mergesort: New file.
38774         * lib/array-mergesort.h: New file.
38775
38776 2009-02-15  Bruno Haible  <bruno@clisp.org>
38777
38778         Fix 2009-02-07 commit.
38779         * lib/gen-uni-tables.c (output_predicate, output_category,
38780         output_combclass, output_bidi_category, output_decimal_digit,
38781         output_digit, output_numeric, output_mirror, output_scripts,
38782         output_ident_category, output_simple_mapping): Fix format directives.
38783         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
38784
38785 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
38786
38787         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
38788         fixes are available from IBM.
38789
38790 2009-02-13  Jim Meyering  <meyering@redhat.com>
38791
38792         fts: arrange not to stat non-directories in more cases
38793         This makes GNU find (when it doesn't need to stat each file)
38794         *much* more efficient at traversing reiserfs file systems.
38795         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
38796         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
38797         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
38798         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
38799         (leaf_optimization_applies): New function.
38800         (LCO_hash, LCO_compare): New helper functions.
38801         (link_count_optimize_ok): New function.
38802         (fts_stat): Initialize new member (if dir).
38803         (fts_read): Decrement parent's fts_n_dirs_remaining count if
38804         we've just stat'ed a directory.  Skip the stat call when possible.
38805         ---
38806         Note this AFS-related exchange:
38807         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
38808         and note find's pioctl call in find/fstype.c.
38809         But that is necessary only if you want to enable the
38810         optimization for AFS, and for now, I don't.
38811
38812         fts: move a function definition "up" (no semantic change)
38813         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
38814         "up" to precede upcoming use of a related function.
38815
38816 2009-02-11  Jim Meyering  <meyering@redhat.com>
38817
38818         fts: correct internal computation of nlinks (optimization-related)
38819         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
38820         whether the current entry is a directory, so don't test it.
38821
38822 2009-02-10  Bruno Haible  <bruno@clisp.org>
38823
38824         Tests for module 'uniwbrk/ulc-wordbreaks'.
38825         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
38826         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
38827         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
38828
38829         Tests for module 'uniwbrk/u32-wordbreaks'.
38830         * modules/uniwbrk/u32-wordbreaks-tests: New file.
38831         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
38832
38833         Tests for module 'uniwbrk/u16-wordbreaks'.
38834         * modules/uniwbrk/u16-wordbreaks-tests: New file.
38835         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
38836
38837         Tests for module 'uniwbrk/u8-wordbreaks'.
38838         * modules/uniwbrk/u8-wordbreaks-tests: New file.
38839         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
38840
38841 2009-02-10  Bruno Haible  <bruno@clisp.org>
38842
38843         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
38844         property.
38845         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
38846         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
38847         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
38848
38849 2009-02-10  Simon Josefsson  <simon@josefsson.org>
38850
38851         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
38852         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
38853
38854 2009-02-10  Bruno Haible  <bruno@clisp.org>
38855
38856         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
38857         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
38858         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
38859         * lib/unilbrk/u8-possible-linebreaks.c: Update.
38860         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
38861         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
38862
38863 2009-02-09  Simon Josefsson  <simon@josefsson.org>
38864
38865         * lib/sockets.h (gl_fd_to_handle): New function.
38866
38867         * tests/test-sockets.c: Call gl_fd_to_handle.
38868
38869 2009-02-09  Bruno Haible  <bruno@clisp.org>
38870
38871         * doc/havelib.texi: Document the conventions on bi-arch systems.
38872
38873 2009-02-08  Bruno Haible  <bruno@clisp.org>
38874
38875         Document the AC_LIB_LINKFLAGS macro.
38876         * doc/havelib.texi: New file, mostly written on 2005-05-24.
38877         * doc/gnulib.texi: Include it.
38878
38879 2009-02-08  Bruno Haible  <bruno@clisp.org>
38880
38881         Fix wrong order of sections, compared to TOC.
38882         * doc/gnulib.texi: Include relocatable-maint.texi after the
38883         "Regular expressions" node, not before.
38884
38885 2009-02-08  Bruno Haible  <bruno@clisp.org>
38886
38887         Tests for module 'unicase/totitle'.
38888         * modules/unicase/totitle-tests: New file.
38889
38890         Tests for module 'unicase/tolower'.
38891         * modules/unicase/tolower-tests: New file.
38892
38893         Tests for module 'unicase/toupper'.
38894         * modules/unicase/toupper-tests: New file.
38895         * tests/unicase/test-mapping-part1.h: New file.
38896         * tests/unicase/test-mapping-part2.h: New file.
38897
38898         New module 'unicase/totitle'.
38899         * modules/unicase/totitle: New file.
38900         * lib/unicase/totitle.c: New file.
38901
38902         New module 'unicase/tolower'.
38903         * modules/unicase/tolower: New file.
38904         * lib/unicase/tolower.c: New file.
38905
38906         New module 'unicase/toupper'.
38907         * modules/unicase/toupper: New file.
38908         * lib/unicase/toupper.c: New file.
38909         * lib/unicase/simple-mapping.h: New file.
38910
38911         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
38912         (mapping_table): New structure.
38913         (output_simple_mapping): New function.
38914         (main): Invoke output_simple_mapping_test and output_simple_mapping.
38915         * modules/gen-uni-tables (Description): Update.
38916         * lib/unicase/toupper.h: New file, automatically generated by
38917         gen-uni-tables.
38918         * lib/unicase/tolower.h: New file, automatically generated by
38919         gen-uni-tables.
38920         * lib/unicase/totitle.h: New file, automatically generated by
38921         gen-uni-tables.
38922         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
38923         gen-uni-tables.
38924         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
38925         gen-uni-tables.
38926         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
38927         gen-uni-tables.
38928
38929         New module 'unicase/base'.
38930         * modules/unicase/base: New file.
38931         * lib/unicase.h: New file.
38932
38933 2009-02-08  Bruno Haible  <bruno@clisp.org>
38934
38935         New module 'uniwbrk/ulc-wordbreaks'.
38936         * modules/uniwbrk/ulc-wordbreaks: New file.
38937         * lib/uniwbrk/ulc-wordbreaks.c: New file.
38938
38939         New module 'uniwbrk/u32-wordbreaks'.
38940         * modules/uniwbrk/u32-wordbreaks: New file.
38941         * lib/uniwbrk/u32-wordbreaks.c: New file.
38942
38943         New module 'uniwbrk/u16-wordbreaks'.
38944         * modules/uniwbrk/u16-wordbreaks: New file.
38945         * lib/uniwbrk/u16-wordbreaks.c: New file.
38946
38947         New module 'uniwbrk/u8-wordbreaks'.
38948         * modules/uniwbrk/u8-wordbreaks: New file.
38949         * lib/uniwbrk/u8-wordbreaks.c: New file.
38950         * lib/uniwbrk/u-wordbreaks.h: New file.
38951
38952         New module 'uniwbrk/table'.
38953         * modules/uniwbrk/table: New file.
38954         * lib/uniwbrk/wbrktable.h: New file.
38955         * lib/uniwbrk/wbrktable.c: New file.
38956
38957         New module 'uniwbrk/wordbreak-property'.
38958         * modules/uniwbrk/wordbreak-property: New file.
38959         * lib/uniwbrk/wordbreak-property.c: New file.
38960
38961         * lib/gen-uni-tables.c (WBP_*): New enum items.
38962         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
38963         (unicode_org_wbp): New variable.
38964         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
38965         New functions.
38966         (wbp_table): New structure.
38967         (output_wbp, output_wbrk_tables): New functions.
38968         (main): Accept additional argument. Invoke fill_org_wbp,
38969         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
38970         output_wbrk_tables.
38971         * modules/gen-uni-tables (Description): Update.
38972         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
38973         gen-uni-tables.
38974
38975         New module 'uniwbrk/base'.
38976         * modules/uniwbrk/base: New file.
38977         * lib/uniwbrk.h: New file.
38978
38979 2009-02-08  Bruno Haible  <bruno@clisp.org>
38980
38981         Update to Unicode 5.1.0.
38982         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38983         U+2185..U+2188.
38984         (is_property_default_ignorable_code_point): Don't include characters
38985         of category Cc or Cs and not-a-characters.
38986         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38987         U+0D79, U+109E, U+109F, U+A60C.
38988         * lib/unictype/bidi_of.h: Regenerated.
38989         * lib/unictype/blocks.h: Regenerated.
38990         * lib/unictype/categ_C.h: Regenerated.
38991         * lib/unictype/categ_Cf.h: Regenerated.
38992         * lib/unictype/categ_Cn.h: Regenerated.
38993         * lib/unictype/categ_L.h: Regenerated.
38994         * lib/unictype/categ_Ll.h: Regenerated.
38995         * lib/unictype/categ_Lm.h: Regenerated.
38996         * lib/unictype/categ_Lo.h: Regenerated.
38997         * lib/unictype/categ_Lu.h: Regenerated.
38998         * lib/unictype/categ_M.h: Regenerated.
38999         * lib/unictype/categ_Mc.h: Regenerated.
39000         * lib/unictype/categ_Me.h: Regenerated.
39001         * lib/unictype/categ_Mn.h: Regenerated.
39002         * lib/unictype/categ_N.h: Regenerated.
39003         * lib/unictype/categ_Nd.h: Regenerated.
39004         * lib/unictype/categ_Nl.h: Regenerated.
39005         * lib/unictype/categ_No.h: Regenerated.
39006         * lib/unictype/categ_P.h: Regenerated.
39007         * lib/unictype/categ_Pd.h: Regenerated.
39008         * lib/unictype/categ_Pe.h: Regenerated.
39009         * lib/unictype/categ_Pf.h: Regenerated.
39010         * lib/unictype/categ_Pi.h: Regenerated.
39011         * lib/unictype/categ_Po.h: Regenerated.
39012         * lib/unictype/categ_Ps.h: Regenerated.
39013         * lib/unictype/categ_S.h: Regenerated.
39014         * lib/unictype/categ_Sk.h: Regenerated.
39015         * lib/unictype/categ_Sm.h: Regenerated.
39016         * lib/unictype/categ_So.h: Regenerated.
39017         * lib/unictype/categ_of.h: Regenerated.
39018         * lib/unictype/combining.h: Regenerated.
39019         * lib/unictype/ctype_alnum.h: Regenerated.
39020         * lib/unictype/ctype_alpha.h: Regenerated.
39021         * lib/unictype/ctype_graph.h: Regenerated.
39022         * lib/unictype/ctype_lower.h: Regenerated.
39023         * lib/unictype/ctype_print.h: Regenerated.
39024         * lib/unictype/ctype_punct.h: Regenerated.
39025         * lib/unictype/ctype_upper.h: Regenerated.
39026         * lib/unictype/decdigit.h: Regenerated.
39027         * lib/unictype/digit.h: Regenerated.
39028         * lib/unictype/mirror.h: Regenerated.
39029         * lib/unictype/numeric.h: Regenerated.
39030         * lib/unictype/pr_alphabetic.h: Regenerated.
39031         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
39032         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
39033         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
39034         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
39035         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
39036         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
39037         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
39038         * lib/unictype/pr_combining.h: Regenerated.
39039         * lib/unictype/pr_dash.h: Regenerated.
39040         * lib/unictype/pr_decimal_digit.h: Regenerated.
39041         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
39042         * lib/unictype/pr_deprecated.h: Regenerated.
39043         * lib/unictype/pr_diacritic.h: Regenerated.
39044         * lib/unictype/pr_extender.h: Regenerated.
39045         * lib/unictype/pr_format_control.h: Regenerated.
39046         * lib/unictype/pr_grapheme_base.h: Regenerated.
39047         * lib/unictype/pr_grapheme_extend.h: Regenerated.
39048         * lib/unictype/pr_grapheme_link.h: Regenerated.
39049         * lib/unictype/pr_id_continue.h: Regenerated.
39050         * lib/unictype/pr_id_start.h: Regenerated.
39051         * lib/unictype/pr_ideographic.h: Regenerated.
39052         * lib/unictype/pr_ignorable_control.h: Regenerated.
39053         * lib/unictype/pr_lowercase.h: Regenerated.
39054         * lib/unictype/pr_math.h: Regenerated.
39055         * lib/unictype/pr_numeric.h: Regenerated.
39056         * lib/unictype/pr_other_alphabetic.h: Regenerated.
39057         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
39058         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
39059         * lib/unictype/pr_other_id_continue.h: Regenerated.
39060         * lib/unictype/pr_other_lowercase.h: Regenerated.
39061         * lib/unictype/pr_other_math.h: Regenerated.
39062         * lib/unictype/pr_punctuation.h: Regenerated.
39063         * lib/unictype/pr_sentence_terminal.h: Regenerated.
39064         * lib/unictype/pr_soft_dotted.h: Regenerated.
39065         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
39066         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
39067         * lib/unictype/pr_unified_ideograph.h: Regenerated.
39068         * lib/unictype/pr_uppercase.h: Regenerated.
39069         * lib/unictype/pr_xid_continue.h: Regenerated.
39070         * lib/unictype/pr_xid_start.h: Regenerated.
39071         * lib/unictype/pr_zero_width.h: Regenerated.
39072         * lib/unictype/scripts.h: Regenerated.
39073         * lib/unictype/scripts_byname.gperf: Regenerated.
39074         * lib/unictype/sy_java_ident.h: Regenerated.
39075         * lib/unilbrk/lbrkprop1.h: Regenerated.
39076         * lib/unilbrk/lbrkprop2.h: Regenerated.
39077         * tests/unictype/test-categ_C.c: Regenerated.
39078         * tests/unictype/test-categ_Cf.c: Regenerated.
39079         * tests/unictype/test-categ_Cn.c: Regenerated.
39080         * tests/unictype/test-categ_L.c: Regenerated.
39081         * tests/unictype/test-categ_Ll.c: Regenerated.
39082         * tests/unictype/test-categ_Lm.c: Regenerated.
39083         * tests/unictype/test-categ_Lo.c: Regenerated.
39084         * tests/unictype/test-categ_Lu.c: Regenerated.
39085         * tests/unictype/test-categ_M.c: Regenerated.
39086         * tests/unictype/test-categ_Mc.c: Regenerated.
39087         * tests/unictype/test-categ_Me.c: Regenerated.
39088         * tests/unictype/test-categ_Mn.c: Regenerated.
39089         * tests/unictype/test-categ_N.c: Regenerated.
39090         * tests/unictype/test-categ_Nd.c: Regenerated.
39091         * tests/unictype/test-categ_Nl.c: Regenerated.
39092         * tests/unictype/test-categ_No.c: Regenerated.
39093         * tests/unictype/test-categ_P.c: Regenerated.
39094         * tests/unictype/test-categ_Pd.c: Regenerated.
39095         * tests/unictype/test-categ_Pe.c: Regenerated.
39096         * tests/unictype/test-categ_Pf.c: Regenerated.
39097         * tests/unictype/test-categ_Pi.c: Regenerated.
39098         * tests/unictype/test-categ_Po.c: Regenerated.
39099         * tests/unictype/test-categ_Ps.c: Regenerated.
39100         * tests/unictype/test-categ_S.c: Regenerated.
39101         * tests/unictype/test-categ_Sk.c: Regenerated.
39102         * tests/unictype/test-categ_Sm.c: Regenerated.
39103         * tests/unictype/test-categ_So.c: Regenerated.
39104         * tests/unictype/test-ctype_alnum.c: Regenerated.
39105         * tests/unictype/test-ctype_alpha.c: Regenerated.
39106         * tests/unictype/test-ctype_graph.c: Regenerated.
39107         * tests/unictype/test-ctype_lower.c: Regenerated.
39108         * tests/unictype/test-ctype_print.c: Regenerated.
39109         * tests/unictype/test-ctype_punct.c: Regenerated.
39110         * tests/unictype/test-ctype_upper.c: Regenerated.
39111         * tests/unictype/test-decdigit.h: Regenerated.
39112         * tests/unictype/test-digit.h: Regenerated.
39113         * tests/unictype/test-numeric.h: Regenerated.
39114         * tests/unictype/test-pr_alphabetic.c: Regenerated.
39115         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
39116         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
39117         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
39118         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
39119         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
39120         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
39121         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
39122         * tests/unictype/test-pr_combining.c: Regenerated.
39123         * tests/unictype/test-pr_dash.c: Regenerated.
39124         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
39125         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
39126         * tests/unictype/test-pr_deprecated.c: Regenerated.
39127         * tests/unictype/test-pr_diacritic.c: Regenerated.
39128         * tests/unictype/test-pr_extender.c: Regenerated.
39129         * tests/unictype/test-pr_format_control.c: Regenerated.
39130         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
39131         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
39132         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
39133         * tests/unictype/test-pr_id_continue.c: Regenerated.
39134         * tests/unictype/test-pr_id_start.c: Regenerated.
39135         * tests/unictype/test-pr_ideographic.c: Regenerated.
39136         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
39137         * tests/unictype/test-pr_lowercase.c: Regenerated.
39138         * tests/unictype/test-pr_math.c: Regenerated.
39139         * tests/unictype/test-pr_numeric.c: Regenerated.
39140         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
39141         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
39142         Regenerated.
39143         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
39144         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
39145         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
39146         * tests/unictype/test-pr_other_math.c: Regenerated.
39147         * tests/unictype/test-pr_punctuation.c: Regenerated.
39148         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
39149         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
39150         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
39151         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
39152         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
39153         * tests/unictype/test-pr_uppercase.c: Regenerated.
39154         * tests/unictype/test-pr_xid_continue.c: Regenerated.
39155         * tests/unictype/test-pr_xid_start.c: Regenerated.
39156         * tests/unictype/test-pr_zero_width.c: Regenerated.
39157
39158         Update to Unicode 5.1.0.
39159         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
39160         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
39161         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
39162         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
39163         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
39164         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
39165         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
39166         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
39167         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
39168         (nonspacing_table_ind): Update.
39169         * tests/uniwidth/test-uc_width2.sh: Update expected result.
39170
39171         Update to Unicode 5.1.0.
39172         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
39173         code transform.
39174         * lib/uniname/uniname.c (unicode_character_name,
39175         unicode_name_character): Add the range 0x1Fxxx to the code transform.
39176         * lib/uniname/uninames.h: Regenerated.
39177         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
39178
39179 2009-02-07  Bruno Haible  <bruno@clisp.org>
39180
39181         Merge gen-ctype and gen-lbrk into a single program.
39182         * lib/gen-uni-tables.c: New file, incorporating
39183         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
39184         Add directory prefixes to the names of the generated files.
39185         * lib/unictype/gen-ctype.c: Remove file.
39186         * lib/unilbrk/gen-lbrk.c: Remove file.
39187         * modules/gen-uni-tables: New file.
39188         * modules/unictype/gen-ctype: Remove file.
39189         * modules/unilbrk/gen-lbrk: Remove file.
39190
39191 2009-02-07  Bruno Haible  <bruno@clisp.org>
39192
39193         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
39194
39195         New module 'unistr/u32-strcoll'.
39196         * modules/unistr/u32-strcoll: New file.
39197         * lib/unistr/u32-strcoll.c: New file.
39198
39199         New module 'unistr/u16-strcoll'.
39200         * modules/unistr/u16-strcoll: New file.
39201         * lib/unistr/u16-strcoll.c: New file.
39202
39203         New module 'unistr/u8-strcoll'.
39204         * modules/unistr/u8-strcoll: New file.
39205         * lib/unistr/u8-strcoll.c: New file.
39206         * lib/unistr/u-strcoll.h: New file.
39207
39208 2009-02-07  Bruno Haible  <bruno@clisp.org>
39209
39210         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
39211         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39212         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39213         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
39214         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
39215         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
39216
39217 2009-02-07  Bruno Haible  <bruno@clisp.org>
39218
39219         Make 64-bit clean.
39220         * lib/unictype/gen-ctype.c (output_predicate, output_category,
39221         output_combclass, output_bidi_category, output_decimal_digit,
39222         output_digit, output_numeric, output_mirror, output_scripts,
39223         output_ident_category): Use proper width specifier in format strings.
39224
39225 2009-02-07  Bruno Haible  <bruno@clisp.org>
39226
39227         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
39228         failure behaviour.
39229
39230 2009-02-07  Jim Meyering  <meyering@redhat.com>
39231
39232         regex: avoid compilation failure with upcoming gcc-4.4
39233         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
39234         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
39235         "... error: integer overflow in preprocessor expression".
39236
39237 2009-02-05  Ben Pfaff  <blp@gnu.org>
39238
39239         Fix link errors on Windows when close module is used.
39240         * modules/close: Add $(LIB_CLOSE) to Link section.
39241         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
39242         $(LIB_CLOSE) on Windows.
39243
39244 2009-02-05  Jim Meyering  <meyering@redhat.com>
39245
39246         still avoid unused-parameter warnings, but do it cleanly
39247         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
39248         (get_fs_usage): Cast to void instead.
39249         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
39250         (dev_from_mount_options, read_file_system_list): Cast to void.
39251         Prompted by Bruno Haible.
39252
39253 2009-02-04  Jim Meyering  <meyering@redhat.com>
39254
39255         fsusage.c: correct copyright year
39256         * lib/fsusage.c: Reflect year in which the change is pushed into
39257
39258         avoid misc. warnings
39259         * lib/fsusage.c (UNUSED_PARAM): Define.
39260         (get_fs_usage): Mark parameter "disk" as unused.
39261         * lib/getugroups.c (getgrent): Use "void" in prototype.
39262         * lib/mountlist.c: Mark unused parameters.
39263         (read_file_system_list): Declare a local with "const".
39264         * lib/nanosleep.c (getnow): Declare static.
39265         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
39266
39267         dirfd: set errno upon failure
39268         * lib/dirfd.c: Include <errno.h>.
39269         Set errno to ENOTSUP when returning -1.
39270         * modules/dirfd (Depends-on): Add errno.
39271         Suggested by John Kodis <kodis@comcast.net>.
39272
39273 2009-02-01  Bruno Haible  <bruno@clisp.org>
39274
39275         Don't assume sizeof (long) >= sizeof (void *).
39276         * lib/memcmp.c: Include stdint.h.
39277         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
39278         srcp2 to 'const byte *'.
39279         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
39280         types to uintptr_t.
39281         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
39282         * modules/memcmp (Depends-on): Add stdint.
39283         Reported by Ozkan Sezer <sezeroz@gmail.com>.
39284
39285 2009-01-30  Eric Blake  <ebb9@byu.net>
39286
39287         fix more require-before-expand issues
39288         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
39289         expand, AC_PROG_AWK.
39290         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
39291
39292 2009-01-28  Eric Blake  <ebb9@byu.net>
39293
39294         version-etc: use consistent URL formatting
39295         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
39296         Improve formatting.  Use fputs for string without %.
39297
39298 2009-01-28  Jim Meyering  <meyering@redhat.com>
39299
39300         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
39301         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
39302         "underquoted definition of NAME" from autoconf-2.59.
39303
39304 2009-01-28  Bruno Haible  <bruno@clisp.org>
39305
39306         * doc/gnulib.texi: Add "Obsolete modules" to index.
39307
39308 2009-01-28  Jim Meyering  <meyering@redhat.com>
39309
39310         useless-if-before-free: recognize more variants
39311         * build-aux/useless-if-before-free: Also recognize e.g.,
39312         if (NULL != p) free (p);
39313
39314 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
39315
39316         test-getaddrinfo: skip (don't fail) this test when there's no network
39317         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
39318         on the presumption that it means you lack network access.
39319
39320 2009-01-26  Jim Meyering  <meyering@redhat.com>
39321
39322         fflush: avoid warnings on modern systems
39323         * lib/fflush.c (rpl_fflush): Move declarations of locals,
39324         pos and result, into scopes where they're used.
39325
39326 2009-01-26  Eric Blake  <ebb9@byu.net>
39327
39328         Silence warning reintroduced by recent extensions patch.
39329         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
39330         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
39331         autoconf.
39332
39333         Backport improved autoconf semantics of AC_DEFUN_ONCE.
39334         * m4/00gnulib.m4: New file.
39335         * gnulib-tool (func_get_filelist): Always use it.
39336         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
39337         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
39338
39339 2009-01-25  Bruno Haible  <bruno@clisp.org>
39340
39341         Make test-quotearg work on MacOS X and AIX.
39342         * tests/test-quotearg.sh: New file.
39343         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
39344         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
39345         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
39346         include <libintl.h>.
39347         (fake_locale): Remove variable.
39348         (gettext, dgettext, dcgettext): Remove functions.
39349         (main): Instead of setting a fake locale, set a real locale. Call
39350         textdomain and bindtextdomain.
39351         * modules/quotearg-tests (Files): Add the new files.
39352         (Depends-on): Add gettext, setenv, unsetenv.
39353         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
39354         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
39355         Augment TESTS_ENVIRONMENT.
39356
39357 2009-01-25  Bruno Haible  <bruno@clisp.org>
39358
39359         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
39360         fr_FR.ISO8859-1 locale on MacOS X.
39361         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
39362         ja_JP.eucJP locale on MacOS X.
39363         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
39364         zh_CN.GB18030 locale on MacOS X.
39365
39366 2009-01-25  Bruno Haible  <bruno@clisp.org>
39367
39368         Avoid link errors on MacOS X 10.3.
39369         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
39370         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39371
39372 2009-01-25  Bruno Haible  <bruno@clisp.org>
39373
39374         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39375         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
39376         * modules/pipe (Files): Remove m4/posix_spawn.m4.
39377         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39378         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
39379         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39380         posix_spawnattr_init, posix_spawnattr_setsigmask,
39381         posix_spawnattr_setflags, posix_spawnattr_destroy.
39382
39383         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39384         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
39385         * modules/execute (Files): Remove m4/posix_spawn.m4.
39386         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39387         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39388         posix_spawnattr_init, posix_spawnattr_setsigmask,
39389         posix_spawnattr_setflags, posix_spawnattr_destroy.
39390
39391 2009-01-25  Bruno Haible  <bruno@clisp.org>
39392
39393         * lib/glthread/threadlib.c: Include <stdlib.h>.
39394
39395 2009-01-25  Bruno Haible  <bruno@clisp.org>
39396
39397         * lib/glthread/threadlib.c (dummy): New declaration.
39398
39399 2009-01-25  Bruno Haible  <bruno@clisp.org>
39400
39401         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
39402         multibyte characters also for the GB18030 encoding. Don't crash when
39403         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
39404
39405 2009-01-25  Bruno Haible  <bruno@clisp.org>
39406
39407         Avoid redefining 'struct random_data' on OSF/1 5.1.
39408         * lib/stdlib.in.h: Include <random.h> if it exists.
39409         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
39410         HAVE_RANDOM_H. Include <random.h> when testing whether
39411         'struct random_data' exists.
39412         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
39413
39414 2009-01-25  Bruno Haible  <bruno@clisp.org>
39415
39416         Don't install charset.alias on MacOS X >= 10.3.
39417         * lib/localcharset.c (DARWIN7): New macro.
39418         (get_charset_aliases): Hardcode the result for Darwin7.
39419         * modules/localcharset (install-exec-local): Don't install
39420         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
39421
39422 2009-01-25  Bruno Haible  <bruno@clisp.org>
39423
39424         Don't install charset.alias on mingw and Cygwin.
39425         * modules/localcharset (install-exec-local): Don't install
39426         charset.alias on mingw and Cygwin, if the file does not yet exist.
39427         The result for these platforms is hardcoded in localcharset.c.
39428
39429 2009-01-25  Bruno Haible  <bruno@clisp.org>
39430
39431         Make it possible again to use AC_GNU_SOURCE together with gnulib.
39432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
39433         before requiring AC_USE_SYSTEM_EXTENSIONS.
39434
39435 2009-01-25  Jim Meyering  <meyering@redhat.com>
39436
39437         c-strtod: avoid warnings
39438         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
39439         "assignment discards qualifiers from pointer target type" warnings.
39440
39441 2009-01-24  Bruno Haible  <bruno@clisp.org>
39442
39443         Add support for non-UTF-8 locales on MacOS X.
39444         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
39445         canonical encodings. For Darwin 7 and newer, don't map traditional
39446         encodings to UTF-8.
39447         Reported by Vincent Lefevre <vincent@vinc17.org>
39448         at <http://savannah.gnu.org/bugs/?25235>.
39449
39450 2009-01-24  Bruno Haible  <bruno@clisp.org>
39451
39452         * doc/gnulib.texi (Obsolete modules): New section.
39453         Reported by Mike Frysinger <vapier@gentoo.org>.
39454
39455 2009-01-24  Bruno Haible  <bruno@clisp.org>
39456
39457         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
39458         (%.dvi): New rule.
39459
39460 2009-01-24  Bruno Haible  <bruno@clisp.org>
39461
39462         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
39463         Reported by Eric Blake.
39464
39465 2009-01-24  Bruno Haible  <bruno@clisp.org>
39466
39467         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
39468         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
39469         Reported by Gary V. Vaughan <gary@gnu.org>.
39470
39471 2009-01-24  Bruno Haible  <bruno@clisp.org>
39472
39473         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
39474
39475 2009-01-23  Bruno Haible  <bruno@clisp.org>
39476
39477         Make c-strtod, c-strtold usable in libraries.
39478         * lib/c-strtod.c: Include string.h instead of xalloc.h.
39479         (C_STRTOD): Call strdup instead of xstrdup.
39480         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
39481         * modules/c-strtold (Depends-on): Likewise.
39482         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
39483         * NEWS: Mention the change.
39484         Reported by Michael Gold <mgold@ncf.ca>.
39485
39486 2009-01-23  Jim Meyering  <meyering@redhat.com>
39487
39488         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
39489         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
39490         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
39491
39492 2009-01-23  Simon Josefsson  <simon@josefsson.org>
39493
39494         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
39495         GNU CoreUtils.
39496         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
39497         * modules/version-etc (Description): Update.
39498
39499 2009-01-22  Bruno Haible  <bruno@clisp.org>
39500
39501         Cache the C locale object.
39502         * lib/c-strtod.c (c_locale_cache): New variable.
39503         (c_locale): New function.
39504         (C_STRTOD): Use it, and don't call freelocale.
39505         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
39506         Suggested by Paolo Bonzini.
39507
39508 2009-01-21  Bruno Haible  <bruno@clisp.org>
39509
39510         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
39511         conditions other than overflow.
39512
39513 2009-01-21  Bruno Haible  <bruno@clisp.org>
39514
39515         * lib/c-strtod.c: Include errno.h.
39516         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
39517         value from STRTOD_L and STRTOD.
39518
39519 2009-01-21  Bruno Haible  <bruno@clisp.org>
39520         and Jim Meyering  <meyering@redhat.com>
39521
39522         nanosleep: skip configure test (fail it) for apple universal builds
39523         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
39524         universal builds, assume that nanosleep does not work.
39525         * modules/nanosleep (Depends-on): Add multiarch.
39526
39527         mktime: skip configure test (fail it) for apple universal builds
39528         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
39529         universal builds, assume that mktime does not work.
39530         * modules/mktime (Depends-on): Add multiarch.
39531
39532 2009-01-21  Eric Blake  <ebb9@byu.net>
39533
39534         multiarch: avoid expand-before-require warning
39535         * modules/multiarch (configure.ac): Require, rather than expand,
39536         gl_MULTIARCH.
39537         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
39538         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
39539         enforce that all clients require it.  Partial reversion of
39540         2008-12-29 patch.
39541
39542         error: avoid expand-before-require warning
39543         * modules/errno (configure.ac): Require, rather than expand,
39544         gl_HEADER_ERRNO_H.
39545         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
39546         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
39547         enforce that all clients require it.
39548
39549         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
39550         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
39551         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
39552         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
39553
39554 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
39555
39556         Revert:
39557         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39558
39559         regex: do not depend on obsolete modules.
39560         * modules/regex: Remove memcmp and memmove.
39561
39562 2009-01-20  Bruno Haible  <bruno@clisp.org>
39563
39564         Make the 'link' module link on Windows NT 4.
39565         * lib/link.c (_WIN32_WINNT): Don't define.
39566         (CreateHardLinkFuncType): New type.
39567         (CreateHardLinkFunc, initialized): New variables.
39568         (initialize): New function.
39569         (link): Invoke CreateHardLink indirectly through the function pointer.
39570
39571 2009-01-20  Bruno Haible  <bruno@clisp.org>
39572
39573         Fix compilation failure on mingw.
39574         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
39575
39576 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
39577
39578         * doc/c-strtod.texi: Mention a couple of restrictions.
39579
39580 2009-01-20  Jim Meyering  <meyering@redhat.com>
39581
39582         gettimeofday: move more declarations out of functions
39583         * lib/gettimeofday.c: Move extern declarations of tzset and
39584         gmtime out of containing functions.  Prompted by Bruno Haible.
39585
39586 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39587
39588         regex: do not depend on obsolete modules.
39589         * modules/regex: Remove memcmp and memmove.
39590
39591 2009-01-19  Bruno Haible  <bruno@clisp.org>
39592
39593         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39594         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
39595         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39596         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
39597         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
39598
39599 2009-01-19  Bruno Haible  <bruno@clisp.org>
39600
39601         * tests/test-link.c: Include <errno.h>.
39602         (main): Exit with code 77 when a hard link cannot be created due to
39603         the file system.
39604         * tests/test-link.sh: Skip test when a hard link cannot be created due
39605         to the file system.
39606         Suggested by Eric Blake.
39607
39608 2009-01-19  Martin Lambers  <marlam@marlam.de>
39609
39610         * modules/link-tests: New file.
39611         * tests/test-link.sh: New file.
39612         * tests/test-link.c: New file.
39613
39614 2009-01-19  Eric Blake  <ebb9@byu.net>
39615
39616         doc: mention another function added in cygwin 1.7.0
39617         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
39618         Another new function in cygwin 1.7.
39619
39620 2009-01-19  Bruno Haible  <bruno@clisp.org>
39621
39622         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39623         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
39624         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
39625         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39626         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39627         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
39628         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
39629         * m4/md4.m4 (gl_MD4): Likewise.
39630         * m4/md5.m4 (gl_MD5): Likewise.
39631         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
39632         * m4/sha1.m4 (gl_SHA1): Likewise.
39633         * m4/sha256.m4 (gl_SHA256): Likewise.
39634         * m4/sha512.m4 (gl_SHA512): Likewise.
39635
39636 2009-01-19  Bruno Haible  <bruno@clisp.org>
39637
39638         * modules/uniname/uniname-tests (Depends-on): Add progname.
39639         * tests/uniname/test-uninames.c: Include progname.h.
39640         (main): Call set_program_name.
39641
39642         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
39643         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
39644         (main): Call set_program_name.
39645
39646         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
39647         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
39648         (main): Call set_program_name.
39649
39650         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
39651         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
39652         (main): Call set_program_name.
39653
39654         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
39655         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
39656         (main): Call set_program_name.
39657
39658         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
39659         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
39660         (main): Call set_program_name.
39661
39662         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
39663         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
39664         (main): Call set_program_name.
39665
39666         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
39667         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
39668         (main): Call set_program_name.
39669
39670         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
39671         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
39672         (main): Call set_program_name.
39673
39674 2009-01-19  Eric Blake  <ebb9@byu.net>
39675
39676         test-unistd: test previous patch
39677         * tests/test-unistd.c: Test *_FILENO macros.
39678
39679         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
39680         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39681         Guarantee a definition.
39682         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
39683         * modules/unistd-safer (Depends-on): Add dependency on unistd.
39684         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
39685         * lib/dup-safer.c (STDERR_FILENO): Likewise.
39686         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39687         Likewise.
39688         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
39689         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
39690         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39691         Likewise.
39692         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
39693         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
39694         (STDERR_FILENO): Likewise.
39695         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
39696         (STDERR_FILENO): Likewise.
39697         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
39698         (STDERR_FILENO): Likewise.
39699         Reported by Elbert Pol.
39700
39701 2009-01-19  Eric Blake  <ebb9@byu.net>
39702
39703         doc: mention more functions added in cygwin 1.7.0
39704         * doc/posix-functions/abort.texi (abort): Update wording related
39705         to cygwin.
39706         * doc/posix-functions/daylight.texi (daylight): Likewise.
39707         * doc/posix-functions/optarg.texi (optarg): Likewise.
39708         * doc/posix-functions/optarg.texi (opterr): Likewise.
39709         * doc/posix-functions/optarg.texi (optind): Likewise.
39710         * doc/posix-functions/optarg.texi (optopt): Likewise.
39711         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
39712         worked in 1.5.x, and was withdrawn in 1.7.
39713         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
39714         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
39715         cygwin versions.
39716         * doc/posix-functions/perror.texi (perror): Likewise.
39717         * doc/posix-functions/printf.texi (printf): Likewise.
39718         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
39719         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
39720         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39721         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39722         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
39723         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
39724         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39725         Likewise.
39726         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39727         Likewise.
39728         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
39729         this function.
39730         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
39731         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
39732         Likewise.
39733         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
39734         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
39735         * doc/posix-functions/confstr.texi (confstr): Likewise.
39736         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
39737         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
39738         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
39739         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
39740         * doc/posix-functions/fputws.texi (fputws): Likewise.
39741         * doc/posix-functions/fwide.texi (fwide): Likewise.
39742         * doc/posix-functions/getwc.texi (getwc): Likewise.
39743         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
39744         * doc/posix-functions/putwc.texi (putwc): Likewise.
39745         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
39746         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
39747         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
39748         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
39749         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
39750         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
39751         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
39752         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
39753         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
39754         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
39755         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
39756
39757 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39758
39759         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
39760         * lib/ioctl.c: Include <sys/ioctl.h>.
39761
39762 2009-01-19  Simon Josefsson  <simon@josefsson.org>
39763
39764         * modules/getdate-tests (Depends-on): Add progname.
39765         * tests/test-getdate.c: Use progname module, to avoid link errors
39766         on non-glibc systems.
39767
39768 2009-01-18  Simon Josefsson  <simon@josefsson.org>
39769
39770         * modules/filenamecat-tests (Depends-on): Add progname.
39771         * modules/fstrcmp-tests (Depends-on): Likewise.
39772
39773         * tests/test-filenamecat.c: Use progname module, to avoid link
39774         errors on non-glibc systems.
39775         * tests/test-fstrcmp.c: Likewise.
39776
39777 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39778
39779         gettimeofday: avoid warning: nested extern declaration of 'localtime'
39780         * lib/gettimeofday.c: Move extern declaration out of function.
39781
39782 2009-01-18  Bruno Haible  <bruno@clisp.org>
39783
39784         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
39785         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
39786         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
39787
39788 2009-01-18  Bruno Haible  <bruno@clisp.org>
39789
39790         * lib/strftime.c (MEMPCPY): Remove unused macro.
39791         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
39792
39793 2009-01-18  Martin Lambers  <marlam@marlam.de>
39794
39795         New module 'link'.
39796         * lib/unistd.in.h (link): New declaration.
39797         * lib/link.c: New file.
39798         * m4/link.m4: New file.
39799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
39800         HAVE_LINK.
39801         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
39802         * modules/link: New file.
39803         * doc/posix-functions/link.texi: Mention the new module.
39804
39805 2009-01-18  Bruno Haible  <bruno@clisp.org>
39806
39807         * tests/test-avltree_list.c (main): Call set_program_name.
39808         * tests/test-avltree_oset.c (main): Likewise.
39809         * tests/test-obstack-printf.c: Include progname.h.
39810         (main): Call set_program_name.
39811         * tests/test-quotearg.c: Include progname.h.
39812         (main): Call set_program_name.
39813         * tests/test-xmemdup0.c: Include progname.h.
39814         (main): Call set_program_name.
39815
39816 2009-01-18  Bruno Haible  <bruno@clisp.org>
39817
39818         New module 'alphasort'.
39819         * lib/dirent.in.h (alphasort): New declaration.
39820         * lib/alphasort.c: New file, from glibc with modifications.
39821         * m4/alphasort.m4: New file.
39822         * modules/alphasort: New file.
39823         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
39824         HAVE_ALPHASORT.
39825         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
39826         HAVE_ALPHASORT.
39827         * doc/posix-functions/alphasort.texi: Mention the new module and the
39828         portability problems.
39829
39830 2009-01-18  Bruno Haible  <bruno@clisp.org>
39831
39832         New module 'scandir'.
39833         * lib/dirent.in.h (scandir): New declaration.
39834         * lib/scandir.c: New file, from glibc with modifications.
39835         * m4/scandir.m4: New file.
39836         * modules/scandir: New file.
39837         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
39838         HAVE_SCANDIR.
39839         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
39840         HAVE_SCANDIR.
39841         * doc/posix-functions/scandir.texi: Mention the new module and the
39842         portability problems.
39843
39844 2009-01-17  Bruno Haible  <bruno@clisp.org>
39845
39846         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
39847         Update documentation.
39848         (func_remove_suffix): Escape all dots in the suffix. Update
39849         documentation.
39850         (func_filter_filelist): Update documentation.
39851         Reported by Ralf Wildenhues.
39852
39853 2009-01-17  Bruno Haible  <bruno@clisp.org>
39854
39855         * modules/dprintf-posix-tests: New file.
39856         * tests/test-dprintf-posix.sh: New file.
39857         * tests/test-dprintf-posix.c: New file.
39858
39859         New modules 'dprintf', 'dprintf-posix'.
39860         * lib/stdio.in.h (dprintf): New declaration.
39861         * lib/dprintf.c: New file.
39862         * m4/dprintf.m4: New file.
39863         * m4/dprintf-posix.m4: New file.
39864         * modules/dprintf: New file.
39865         * modules/dprintf-posix: New file.
39866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
39867         HAVE_DPRINTF, REPLACE_DPRINTF.
39868         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
39869         HAVE_DPRINTF, REPLACE_DPRINTF.
39870         * doc/posix-functions/dprintf.texi: Mention the new modules.
39871
39872 2009-01-17  Bruno Haible  <bruno@clisp.org>
39873
39874         * modules/vdprintf-posix-tests: New file.
39875         * tests/test-vdprintf-posix.sh: New file.
39876         * tests/test-vdprintf-posix.c: New file.
39877
39878         New modules 'vdprintf', 'vdprintf-posix'.
39879         * lib/stdio.in.h (vdprintf): New declaration.
39880         * lib/vdprintf.c: New file.
39881         * m4/vdprintf.m4: New file.
39882         * m4/vdprintf-posix.m4: New file.
39883         * modules/vdprintf: New file.
39884         * modules/vdprintf-posix: New file.
39885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
39886         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39887         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
39888         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39889         * doc/posix-functions/vdprintf.texi: Mention the new modules.
39890
39891 2009-01-17  Bruno Haible  <bruno@clisp.org>
39892
39893         Fix replacement of fopen on mingw.
39894         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
39895         mingw.
39896
39897 2009-01-17  Bruno Haible  <bruno@clisp.org>
39898
39899         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
39900         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
39901
39902 2009-01-17  Bruno Haible  <bruno@clisp.org>
39903
39904         Avoid test-fflush2.sh failure on mingw.
39905         * tests/test-fflush2.c: Include binary-io.h.
39906         (main): Put standard input into binary mode.
39907         * modules/fflush-tests (Depends-on): Add binary-io.
39908
39909 2009-01-17  Bruno Haible  <bruno@clisp.org>
39910
39911         * lib/wchar.in.h: In another particular situation, include only the
39912         system's <wchar.h> file.
39913         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
39914         Reported by Albert Chin-A-Young <china@thewrittenword.com>
39915         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
39916
39917 2009-01-17  Bruno Haible  <bruno@clisp.org>
39918
39919         Support for stripping executables in --enable-relocatable.
39920         * build-aux/install-reloc: Expect one more argument, or an environment
39921         variable RELOC_STRIP_PROG. If set, strip the destination program and
39922         its wrapper.
39923         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
39924         RELOC_STRIP_PROG.
39925         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
39926         to set RELOCATABLE_STRIP.
39927         * NEWS: Mention the new Makefile requirement.
39928
39929 2009-01-17  Bruno Haible  <bruno@clisp.org>
39930
39931         * build-aux/install-reloc: Remove debugging information left over by
39932         C compiler on MacOS X.
39933
39934 2009-01-17  Bruno Haible  <bruno@clisp.org>
39935
39936         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
39937         * lib/progreloc.c (find_executable): Fix type of pointer passed to
39938         _NSGetExecutablePath.
39939
39940 2009-01-16  Jim Meyering  <meyering@redhat.com>
39941
39942         strerror: avoid warnings about discarding "const"
39943         * lib/strerror.c (rpl_strerror): Instead of returning a const
39944         string from each and every "case", use a variable, and add a single
39945         cast after the switch.
39946
39947 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
39948
39949         * lib/arpa_inet.in.h: Add extern "C" block for C++.
39950
39951 2009-01-16  Bruno Haible  <bruno@clisp.org>
39952
39953         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
39954         array initializer syntax that also works in C++ mode.
39955         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39956
39957 2009-01-16  Jim Meyering  <meyering@redhat.com>
39958
39959         poll: suppress a warning
39960         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
39961         to ignore "...unsigned expression < 0 is always false" warnings.
39962
39963 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
39964
39965         poll: remove declarations of unused variables
39966         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
39967         sockbuf and optlen.
39968
39969 2009-01-15  Bruno Haible  <bruno@clisp.org>
39970
39971         Make fflush-after-ungetc POSIX compliant on BSD systems.
39972         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
39973         (clear_ungetc_buffer): Implement also for other systems.
39974         (rpl_fflush): On glibc systems, invoke
39975         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39976         clear_ungetc_buffer after fetching the stream's position, not before.
39977
39978 2009-01-15  Bruno Haible  <bruno@clisp.org>
39979
39980         Make fflush-after-ungetc POSIX compliant on glibc systems.
39981         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39982         after ungetc.
39983         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39984         (rpl_fflush): On glibc systems, simply call the system's fflush
39985         function after clearing the ungetc buffer.
39986         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39987         Instead, lseek only to the end of file, then use the system's fseeko
39988         for the rest. On glibc systems, reset the EOF indicator bit.
39989
39990 2009-01-15  Jim Meyering  <meyering@redhat.com>
39991
39992         openmp.m4: revert quote-adding change, for portability to older autoconf
39993         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39994         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39995         Simon Josefsson noticed the problem when using autoconf-2.61.
39996
39997 2009-01-15  Bruno Haible  <bruno@clisp.org>
39998
39999         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
40000         * tests/test-fflush2.c (ASSERT): Always fail.
40001         (main): Add two tests for fflush() after ungetc(), taking into account
40002         the Austin Group's clarification.
40003         Suggested by Eric Blake.
40004
40005 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
40006
40007         mktime.m4: remove K&R-style function prototypes
40008         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
40009         for the Sun C++ compiler.
40010
40011 2009-01-14  Bruno Haible  <bruno@clisp.org>
40012
40013         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
40014         while including <wchar.h>.
40015         * lib/wchar.in.h: In two particular situations on HP-UX, include only
40016         the system's <wchar.h> file.
40017         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40018
40019 2009-01-14  Bruno Haible  <bruno@clisp.org>
40020
40021         * m4/csharp.m4: Don't mention gettext on the serial number line.
40022         * m4/csharpexec.m4: Likewise.
40023         * m4/eaccess.m4: Likewise.
40024         * m4/javaexec.m4: Likewise.
40025         * m4/sig_atomic_t.m4: Likewise.
40026         * m4/tmpdir.m4: Likewise.
40027         * m4/intldir.m4: Bump gettext version.
40028         * m4/lib-ld.m4: Likewise.
40029
40030 2009-01-14  Bruno Haible  <bruno@clisp.org>
40031
40032         * lib/progname.c (set_program_name): Add more comments.
40033         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40034
40035 2009-01-14  Simon Josefsson  <simon@josefsson.org>
40036
40037         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
40038         were sys/stat.h does not define it.
40039
40040 2009-01-14  Jim Meyering  <meyering@redhat.com>
40041
40042         many *.m4 files: improve m4 quoting
40043         99% of this change was performed by running the following commands:
40044         git ls-files | grep '\.m4$' | xargs perl -pi \
40045           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
40046           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40047           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40048           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
40049         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
40050         The remainder were to add Copyright dates, increment serial numbers,
40051         undo some changes in comments, exclude m4/intl.m4, and add quotes
40052         around the "1" in ",1" where the unusual spacing prohibited the
40053         above regexps from doing the job.  For more details, see
40054         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
40055         * m4/acl.m4: Modified.
40056         * m4/afs.m4: Likewise.
40057         * m4/alloca.m4: Likewise.
40058         * m4/argp.m4: Likewise.
40059         * m4/argz.m4: Likewise.
40060         * m4/atexit.m4: Likewise.
40061         * m4/bison-i18n.m4: Likewise.
40062         * m4/bison.m4: Likewise.
40063         * m4/byteswap.m4: Likewise.
40064         * m4/c-stack.m4: Likewise.
40065         * m4/c-strtod.m4: Likewise.
40066         * m4/calloc.m4: Likewise.
40067         * m4/canonicalize-lgpl.m4: Likewise.
40068         * m4/chown.m4: Likewise.
40069         * m4/clock_time.m4: Likewise.
40070         * m4/codeset.m4: Likewise.
40071         * m4/copy-file.m4: Likewise.
40072         * m4/csharp.m4: Likewise.
40073         * m4/csharpcomp.m4: Likewise.
40074         * m4/csharpexec.m4: Likewise.
40075         * m4/d-ino.m4: Likewise.
40076         * m4/d-type.m4: Likewise.
40077         * m4/dirfd.m4: Likewise.
40078         * m4/double-slash-root.m4: Likewise.
40079         * m4/eaccess.m4: Likewise.
40080         * m4/eealloc.m4: Likewise.
40081         * m4/environ.m4: Likewise.
40082         * m4/errno_h.m4: Likewise.
40083         * m4/euidaccess.m4: Likewise.
40084         * m4/execute.m4: Likewise.
40085         * m4/fatal-signal.m4: Likewise.
40086         * m4/fchdir.m4: Likewise.
40087         * m4/fcntl_h.m4: Likewise.
40088         * m4/fileblocks.m4: Likewise.
40089         * m4/filenamecat.m4: Likewise.
40090         * m4/findprog.m4: Likewise.
40091         * m4/flexmember.m4: Likewise.
40092         * m4/fnmatch.m4: Likewise.
40093         * m4/fopen.m4: Likewise.
40094         * m4/fpending.m4: Likewise.
40095         * m4/fprintf-posix.m4: Likewise.
40096         * m4/free.m4: Likewise.
40097         * m4/frexp.m4: Likewise.
40098         * m4/frexpl.m4: Likewise.
40099         * m4/fsusage.m4: Likewise.
40100         * m4/ftruncate.m4: Likewise.
40101         * m4/gc-camellia.m4: Likewise.
40102         * m4/gc-random.m4: Likewise.
40103         * m4/gc.m4: Likewise.
40104         * m4/getaddrinfo.m4: Likewise.
40105         * m4/getcwd-abort-bug.m4: Likewise.
40106         * m4/getcwd-path-max.m4: Likewise.
40107         * m4/getdate.m4: Likewise.
40108         * m4/getdomainname.m4: Likewise.
40109         * m4/getgroups.m4: Likewise.
40110         * m4/gethostname.m4: Likewise.
40111         * m4/gethrxtime.m4: Likewise.
40112         * m4/getline.m4: Likewise.
40113         * m4/getloadavg.m4: Likewise.
40114         * m4/getndelim2.m4: Likewise.
40115         * m4/getpass.m4: Likewise.
40116         * m4/gettext.m4: Likewise.
40117         * m4/gettime.m4: Likewise.
40118         * m4/gettimeofday.m4: Likewise.
40119         * m4/gnulib-common.m4: Likewise.
40120         * m4/group-member.m4: Likewise.
40121         * m4/host-os.m4: Likewise.
40122         * m4/iconv.m4: Likewise.
40123         * m4/iconv_open.m4: Likewise.
40124         * m4/inet_ntop.m4: Likewise.
40125         * m4/inet_pton.m4: Likewise.
40126         * m4/inline.m4: Likewise.
40127         * m4/intldir.m4: Likewise.
40128         * m4/intlmacosx.m4: Likewise.
40129         * m4/intmax.m4: Likewise.
40130         * m4/intmax_t.m4: Likewise.
40131         * m4/inttypes.m4: Likewise.
40132         * m4/inttypes_h.m4: Likewise.
40133         * m4/inttypes-pri.m4: Likewise.
40134         * m4/isapipe.m4: Likewise.
40135         * m4/isnand.m4: Likewise.
40136         * m4/isnanf.m4: Likewise.
40137         * m4/isnanl.m4: Likewise.
40138         * m4/javacomp.m4: Likewise.
40139         * m4/javaexec.m4: Likewise.
40140         * m4/jm-winsz1.m4: Likewise.
40141         * m4/jm-winsz2.m4: Likewise.
40142         * m4/lchown.m4: Likewise.
40143         * m4/lcmessage.m4: Likewise.
40144         * m4/ldexpl.m4: Likewise.
40145         * m4/lib-ld.m4: Likewise.
40146         * m4/lib-link.m4: Likewise.
40147         * m4/libsigsegv.m4: Likewise.
40148         * m4/link-follow.m4: Likewise.
40149         * m4/localcharset.m4: Likewise.
40150         * m4/locale-fr.m4: Likewise.
40151         * m4/locale-ja.m4: Likewise.
40152         * m4/locale-tr.m4: Likewise.
40153         * m4/locale-zh.m4: Likewise.
40154         * m4/lock.m4: Likewise.
40155         * m4/longlong.m4: Likewise.
40156         * m4/ls-mntd-fs.m4: Likewise.
40157         * m4/lstat.m4: Likewise.
40158         * m4/malloc.m4: Likewise.
40159         * m4/mathl.m4: Likewise.
40160         * m4/mbrtowc.m4: Likewise.
40161         * m4/mbstate_t.m4: Likewise.
40162         * m4/mbswidth.m4: Likewise.
40163         * m4/memchr.m4: Likewise.
40164         * m4/memcmp.m4: Likewise.
40165         * m4/memcpy.m4: Likewise.
40166         * m4/memmem.m4: Likewise.
40167         * m4/memmove.m4: Likewise.
40168         * m4/mempcpy.m4: Likewise.
40169         * m4/memrchr.m4: Likewise.
40170         * m4/memset.m4: Likewise.
40171         * m4/minmax.m4: Likewise.
40172         * m4/mkdir-slash.m4: Likewise.
40173         * m4/mkdtemp.m4: Likewise.
40174         * m4/mktime.m4: Likewise.
40175         * m4/mmap-anon.m4: Likewise.
40176         * m4/mountlist.m4: Likewise.
40177         * m4/nanosleep.m4: Likewise.
40178         * m4/nls.m4: Likewise.
40179         * m4/nocrash.m4: Likewise.
40180         * m4/open.m4: Likewise.
40181         * m4/openat.m4: Likewise.
40182         * m4/openmp.m4: Likewise.
40183         * m4/pathmax.m4: Likewise.
40184         * m4/perl.m4: Likewise.
40185         * m4/physmem.m4: Likewise.
40186         * m4/pipe.m4: Likewise.
40187         * m4/po.m4: Likewise.
40188         * m4/poll.m4: Likewise.
40189         * m4/posixtm.m4: Likewise.
40190         * m4/posixver.m4: Likewise.
40191         * m4/printf-frexp.m4: Likewise.
40192         * m4/printf-frexpl.m4: Likewise.
40193         * m4/printf-posix.m4: Likewise.
40194         * m4/printf-posix-rpl.m4: Likewise.
40195         * m4/printf.m4: Likewise.
40196         * m4/progtest.m4: Likewise.
40197         * m4/putenv.m4: Likewise.
40198         * m4/readline.m4: Likewise.
40199         * m4/readlink.m4: Likewise.
40200         * m4/readutmp.m4: Likewise.
40201         * m4/realloc.m4: Likewise.
40202         * m4/regex.m4: Likewise.
40203         * m4/relocatable.m4: Likewise.
40204         * m4/relocatable-lib.m4: Likewise.
40205         * m4/rename-dest-slash.m4: Likewise.
40206         * m4/rename.m4: Likewise.
40207         * m4/rmdir-errno.m4: Likewise.
40208         * m4/rmdir.m4: Likewise.
40209         * m4/roundf.m4: Likewise.
40210         * m4/roundl.m4: Likewise.
40211         * m4/rpmatch.m4: Likewise.
40212         * m4/save-cwd.m4: Likewise.
40213         * m4/selinux-selinux-h.m4: Likewise.
40214         * m4/setenv.m4: Likewise.
40215         * m4/settime.m4: Likewise.
40216         * m4/sig2str.m4: Likewise.
40217         * m4/sig_atomic_t.m4: Likewise.
40218         * m4/signalblocking.m4: Likewise.
40219         * m4/signbit.m4: Likewise.
40220         * m4/sigpipe.m4: Likewise.
40221         * m4/sockets.m4: Likewise.
40222         * m4/sockpfaf.m4: Likewise.
40223         * m4/st_dm_mode.m4: Likewise.
40224         * m4/stat-time.m4: Likewise.
40225         * m4/stdbool.m4: Likewise.
40226         * m4/stdint.m4: Likewise.
40227         * m4/stdint_h.m4: Likewise.
40228         * m4/stpcpy.m4: Likewise.
40229         * m4/stpncpy.m4: Likewise.
40230         * m4/strcase.m4: Likewise.
40231         * m4/strchrnul.m4: Likewise.
40232         * m4/strcspn.m4: Likewise.
40233         * m4/strdup.m4: Likewise.
40234         * m4/strftime.m4: Likewise.
40235         * m4/strndup.m4: Likewise.
40236         * m4/strnlen.m4: Likewise.
40237         * m4/strpbrk.m4: Likewise.
40238         * m4/strptime.m4: Likewise.
40239         * m4/strsep.m4: Likewise.
40240         * m4/strtod.m4: Likewise.
40241         * m4/strtoimax.m4: Likewise.
40242         * m4/strtok_r.m4: Likewise.
40243         * m4/strtol.m4: Likewise.
40244         * m4/strtoll.m4: Likewise.
40245         * m4/strtoul.m4: Likewise.
40246         * m4/strtoull.m4: Likewise.
40247         * m4/strtoumax.m4: Likewise.
40248         * m4/strverscmp.m4: Likewise.
40249         * m4/threadlib.m4: Likewise.
40250         * m4/timegm.m4: Likewise.
40251         * m4/tm_gmtoff.m4: Likewise.
40252         * m4/tmpdir.m4: Likewise.
40253         * m4/tmpfile.m4: Likewise.
40254         * m4/tzset.m4: Likewise.
40255         * m4/uintmax_t.m4: Likewise.
40256         * m4/unlinkdir.m4: Likewise.
40257         * m4/unlocked-io.m4: Likewise.
40258         * m4/uptime.m4: Likewise.
40259         * m4/userspec.m4: Likewise.
40260         * m4/utimbuf.m4: Likewise.
40261         * m4/utime.m4: Likewise.
40262         * m4/utimes-null.m4: Likewise.
40263         * m4/utimes.m4: Likewise.
40264         * m4/vararrays.m4: Likewise.
40265         * m4/vasnprintf.m4: Likewise.
40266         * m4/vfprintf-posix.m4: Likewise.
40267         * m4/vprintf-posix.m4: Likewise.
40268         * m4/wait-process.m4: Likewise.
40269         * m4/wchar_t.m4: Likewise.
40270         * m4/wint_t.m4: Likewise.
40271         * m4/write-any-file.m4: Likewise.
40272         * m4/yield.m4: Likewise.
40273
40274 2009-01-13  Bruno Haible  <bruno@clisp.org>
40275
40276         Avoid test-copy-file.sh failures when ACL support insufficient.
40277         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
40278         TESTS_ENVIRONMENT.
40279         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
40280         Reported by Jim Meyering.
40281
40282 2009-01-13  Bruno Haible  <bruno@clisp.org>
40283
40284         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
40285         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
40286         * modules/unistdio/u8-printf-parse (Files): Likewise.
40287         * modules/unistdio/u32-printf-parse (Files): Likewise.
40288         * modules/unistdio/ulc-printf-parse (Files): Likewise.
40289
40290 2009-01-13  Simon Josefsson  <simon@josefsson.org>
40291
40292         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
40293         and m4/inttypes_h.m4 too.
40294
40295 2009-01-12  Eric Blake  <ebb9@byu.net>
40296
40297         tests: IRIX 6.2 cc can't compile -0.0 into .data
40298         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
40299         rather than at compile-time.
40300         * tests/test-floorl.c (minus_zero): Likewise.
40301         * tests/test-frexpl.c (minus_zero): Likewise.
40302         * tests/test-isnan.c (minus_zerol): Likewise.
40303         * tests/test-isnanl.h (minus_zero): Likewise.
40304         * tests/test-ldexpl.c (minus_zero): Likewise.
40305         * tests/test-roundl.c (minus_zero): Likewise.
40306         * tests/test-signbit.c (minus_zerol): Likewise.
40307         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40308         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40309         * tests/test-truncl.c (minus_zero): Likewise.
40310         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40311         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40312         Reported by Tom G. Christensen and Nelson H. F. Beebe.
40313
40314 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40315
40316         regex: fix glibc bug 9697
40317         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
40318         handling.
40319
40320 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40321
40322         regex: fix glibc bug 697
40323         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
40324         being NULL also if there are no backreferences.
40325
40326 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40327
40328         regex: merge glibc changes
40329         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
40330         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
40331         re_string_skip_chars, re_string_reconstruct): Likewise.
40332         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
40333
40334 2009-01-07  Jim Meyering  <meyering@redhat.com>
40335
40336         poll: filter through cppi
40337         * lib/poll.c: Indent cpp directives to reflect nesting.
40338
40339 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
40340
40341         poll: don't return uninitialized
40342         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
40343
40344 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
40345
40346         avoid compile failure on AIX 6.1
40347         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
40348         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
40349
40350 2009-01-04  Jim Meyering  <meyering@redhat.com>
40351
40352         remove duplicate inclusion of <stdio.h>
40353         * tests/test-fprintf-posix.c: Likewise.
40354         * tests/test-printf-posix.c: Likewise.
40355         * tests/test-snprintf-posix.c: Likewise.
40356         * tests/test-sprintf-posix.c: Likewise.
40357         * tests/test-vasprintf-posix.c: Likewise.
40358         * tests/test-vfprintf-posix.c: Likewise.
40359         * tests/test-vprintf-posix.c: Likewise.
40360         * tests/test-vsnprintf-posix.c: Likewise.
40361         * tests/test-vsprintf-posix.c: Likewise.
40362
40363 2009-01-03  Jim Meyering  <meyering@redhat.com>
40364
40365         gnulib-tool: fix sed-based filtering
40366         * gnulib-tool (func_filter_filelist): Remove extra backslash
40367         in sed_fff_filter definition.
40368
40369 2009-01-02  Jim Meyering  <meyering@redhat.com>
40370
40371         strftime: avoid compilation failure on Solaris 2.6
40372         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
40373         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
40374         Don't #define mbrlen or mbsinit, since now they're guaranteed to
40375         be available.  Reported by Tom G. Christensen.  Details in
40376         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
40377
40378 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40379             Bruno Haible  <bruno@clisp.org>
40380
40381         Speed up gnulib-tool by doing more string processing through shell
40382         built-ins.
40383         * gnulib-tool (fast_func_append): New variable.
40384         (func_remove_prefix, func_remove_suffix): New functions.
40385         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
40386         (func_filter_filelist): New function.
40387         (func_get_dependencies): Use func_remove_suffix instead of sed.
40388         (func_get_automake_snippet): Use func_filter_filelist instead of a
40389         subshell and sed invocation.
40390
40391 2009-01-01  Bruno Haible  <bruno@clisp.org>
40392
40393         Fix a security bug.
40394         * gnulib-tool (func_import, import, update): Don't allow the characters
40395         '"', '$', '`', '\' in macro arguments that become part of commands that
40396         are evaluated.
40397
40398 2009-01-01  Bruno Haible  <bruno@clisp.org>
40399
40400         * gnulib-tool (func_reset_sigpipe): Add more comments.
40401
40402 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40403
40404         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
40405         func_emit_tests_Makefile_am, func_import): Abort loops early if we
40406         already know the answer.
40407
40408 2009-01-01  Jim Meyering  <meyering@redhat.com>
40409
40410         * lib/version-etc.c (version_etc_va): Update copyright year.
40411
40412 2008-12-30  Bruno Haible  <bruno@clisp.org>
40413
40414         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
40415         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
40416         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
40417
40418 2008-12-29  Eric Blake  <ebb9@byu.net>
40419
40420         multiarch: avoid autoconf AC_REQUIRE bug
40421         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
40422         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
40423         2.63 and older.
40424         Reported by Bruno Haible, and analyzed in
40425         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
40426
40427 2008-12-29  Bruno Haible  <bruno@clisp.org>
40428
40429         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
40430         files in subdirectories correctly.
40431         Reported by Ralf Wildenhues.
40432
40433 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40434
40435         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
40436         rather than 'join FILE -', for Solaris join.
40437
40438 2008-12-29  Bruno Haible  <bruno@clisp.org>
40439
40440         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
40441         quoting.
40442         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40443         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
40444         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
40445         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
40446         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
40447         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
40448         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
40449         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
40450         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40451         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
40452         * m4/nls.m4 (AM_NLS): Likewise.
40453         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
40454         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
40455         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40456         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
40457         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
40458         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
40459         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
40460         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
40461         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
40462         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40463         * m4/xsize.m4 (gl_XSIZE): Likewise.
40464         Suggested by Jim Meyering.
40465
40466 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40467
40468         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
40469         * lib/parse-duration.c: use a switch instead of cascading if's.
40470
40471 2008-12-29  Eric Blake  <ebb9@byu.net>
40472
40473         wchar.h: supply WEOF on Irix 5.3
40474         * lib/wchar.in.h (wint_t): Also supply WEOF.
40475         * lib/wctype.in.h (wint_t): Likewise.
40476         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
40477         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
40478         Reported by Tom G. Christensen.
40479
40480 2008-12-26  Bruno Haible  <bruno@clisp.org>
40481
40482         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
40483         i486, i586, i686.
40484
40485 2008-12-26  Bruno Haible  <bruno@clisp.org>
40486
40487         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
40488
40489 2008-12-26  Bruno Haible  <bruno@clisp.org>
40490
40491         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
40492         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
40493         not __STDC_CONSTANT_MACROS.
40494         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40495
40496 2008-12-25  Bruno Haible  <bruno@clisp.org>
40497
40498         Add support for universal builds to vasnprintf.
40499         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
40500         universal builds, guess no.
40501         * modules/vasnprintf-posix (Depends-on): Add multiarch.
40502         * modules/vasprintf-posix (Depends-on): Likewise.
40503         * modules/fprintf-posix (Depends-on): Likewise.
40504         * modules/vfprintf-posix (Depends-on): Likewise.
40505         * modules/snprintf-posix (Depends-on): Likewise.
40506         * modules/vsnprintf-posix (Depends-on): Likewise.
40507         * modules/sprintf-posix (Depends-on): Likewise.
40508         * modules/vsprintf-posix (Depends-on): Likewise.
40509         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40510         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40511         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40512         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40513         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40514         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40515         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40516
40517         Add support for universal builds to <inttypes.h>.
40518         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
40519         _SCNu64_PREFIX): In Apple
40520         universal builds, define directly, using _LP64.
40521         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
40522         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
40523         * modules/inttypes (Depends-on): Add multiarch.
40524         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40525
40526         Add support for universal builds to <stdint.h>.
40527         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
40528         universal builds, define directly, using _LP64.
40529         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
40530         Apple universal builds, don't test for the size and suffix of ptrdiff_t
40531         and size_t.
40532         * modules/stdint (Depends-on): Add multiarch.
40533         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40534
40535         New module 'multiarch'.
40536         * modules/multiarch: New file.
40537         * m4/multiarch.m4: New file.
40538
40539 2008-12-25  Bruno Haible  <bruno@clisp.org>
40540
40541         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
40542
40543 2008-12-25  Bruno Haible  <bruno@clisp.org>
40544
40545         * modules/btowc (License): Relicense under LGPLv2+.
40546         * modules/mbsinit (License): Likewise.
40547         * modules/mbrtowc (License): Likewise.
40548         * modules/wcrtomb (License): Likewise.
40549         * modules/streq (License): Likewise.
40550         Reported by David Lutterkort <lutter@redhat.com>.
40551
40552 2008-12-23  Bruno Haible  <bruno@clisp.org>
40553
40554         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
40555
40556 2008-12-23  Bruno Haible  <bruno@clisp.org>
40557
40558         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
40559         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
40560         GETADDRINFO_LIB, not in LIBS.
40561         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
40562         * modules/canon-host (Link): Likewise.
40563         * NEWS: Mention the change.
40564         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
40565         GETADDRINFO_LIB.
40566
40567 2008-12-22  Bruno Haible  <bruno@clisp.org>
40568
40569         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
40570         * doc/posix-functions/iswalpha_l.texi: Likewise.
40571         * doc/posix-functions/iswblank_l.texi: Likewise.
40572         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40573         * doc/posix-functions/iswctype_l.texi: Likewise.
40574         * doc/posix-functions/iswdigit_l.texi: Likewise.
40575         * doc/posix-functions/iswgraph_l.texi: Likewise.
40576         * doc/posix-functions/iswlower_l.texi: Likewise.
40577         * doc/posix-functions/iswprint_l.texi: Likewise.
40578         * doc/posix-functions/iswpunct_l.texi: Likewise.
40579         * doc/posix-functions/iswspace_l.texi: Likewise.
40580         * doc/posix-functions/iswupper_l.texi: Likewise.
40581         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40582         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
40583         * doc/posix-functions/open_wmemstream.texi: Likewise.
40584         * doc/posix-functions/swscanf.texi: Likewise.
40585         * doc/posix-functions/towctrans_l.texi: Likewise.
40586         * doc/posix-functions/towlower.texi: Likewise.
40587         * doc/posix-functions/towlower_l.texi: Likewise.
40588         * doc/posix-functions/towupper.texi: Likewise.
40589         * doc/posix-functions/towupper_l.texi: Likewise.
40590         * doc/posix-functions/vfwprintf.texi: Likewise.
40591         * doc/posix-functions/vfwscanf.texi: Likewise.
40592         * doc/posix-functions/vswscanf.texi: Likewise.
40593         * doc/posix-functions/vwprintf.texi: Likewise.
40594         * doc/posix-functions/vwscanf.texi: Likewise.
40595         * doc/posix-functions/wcpcpy.texi: Likewise.
40596         * doc/posix-functions/wcpncpy.texi: Likewise.
40597         * doc/posix-functions/wcscasecmp.texi: Likewise.
40598         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
40599         * doc/posix-functions/wcscoll_l.texi: Likewise.
40600         * doc/posix-functions/wcsdup.texi: Likewise.
40601         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40602         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
40603         * doc/posix-functions/wcsnlen.texi: Likewise.
40604         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40605         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40606         * doc/posix-functions/wctrans_l.texi: Likewise.
40607         * doc/posix-functions/wctype_l.texi: Likewise.
40608         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
40609         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
40610         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
40611         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
40612         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
40613         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
40614         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
40615         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
40616         * doc/glibc-functions/wcschrnul.texi: Likewise.
40617         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40618         * doc/glibc-functions/wcstod_l.texi: Likewise.
40619         * doc/glibc-functions/wcstof_l.texi: Likewise.
40620         * doc/glibc-functions/wcstol_l.texi: Likewise.
40621         * doc/glibc-functions/wcstold_l.texi: Likewise.
40622         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40623         * doc/glibc-functions/wcstoq.texi: Likewise.
40624         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40625         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40626         * doc/glibc-functions/wcstouq.texi: Likewise.
40627         * doc/glibc-functions/wmempcpy.texi: Likewise.
40628
40629 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
40630             Eric Blake  <ebb9@byu.net>
40631             Paolo Bonzini  <bonzini@gnu.org>
40632             Bruno Haible  <bruno@clisp.org>
40633
40634         Make c-stack work on Haiku.
40635         * lib/c-stack.c (SA_ONSTACK): Define fallback.
40636         (c_stack_action): Use SA_ONSTACK flag.
40637
40638 2008-12-22  Bruno Haible  <bruno@clisp.org>
40639
40640         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
40641
40642 2008-12-22  Bruno Haible  <bruno@clisp.org>
40643
40644         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
40645         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
40646         being overridden.
40647         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
40648         New macros.
40649         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
40650         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
40651         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
40652         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
40653
40654 2008-12-22  Bruno Haible  <bruno@clisp.org>
40655
40656         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
40657         from test code.
40658
40659 2008-12-22  Eric Blake  <ebb9@byu.net>
40660
40661         Avoid gcc warnings on cygwin.
40662         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
40663         Avoid unused variable.
40664         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
40665         Likewise.
40666
40667 2008-12-22  Bruno Haible  <bruno@clisp.org>
40668
40669         Remove HAVE_MBRTOWC conditionals.
40670         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
40671         (mbscasecmp): Assume mbrtowc function.
40672         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
40673         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
40674         * lib/mbschr.c: Include mbuiter.h unconditionally.
40675         (mbschr): Assume mbrtowc function.
40676         * lib/mbscspn.c: Include mbuiter.h unconditionally.
40677         (mbscspn): Assume mbrtowc function.
40678         * lib/mbslen.c: Include mbuiter.h unconditionally.
40679         (mbslen): Assume mbrtowc function.
40680         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
40681         (mbsncasecmp): Assume mbrtowc function.
40682         * lib/mbsnlen.c: Include mbiter.h unconditionally.
40683         (mbsnlen): Assume mbrtowc function.
40684         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
40685         (mbspbrk): Assume mbrtowc function.
40686         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
40687         (mbspcasecmp): Assume mbrtowc function.
40688         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
40689         (mbsrchr): Assume mbrtowc function.
40690         * lib/mbssep.c: Include mbuiter.h unconditionally.
40691         (mbssep): Assume mbrtowc function.
40692         * lib/mbsspn.c: Include mbuiter.h unconditionally.
40693         (mbsspn): Assume mbrtowc function.
40694         * lib/mbsstr.c: Include mbuiter.h unconditionally.
40695         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
40696         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
40697         (mbstok_r): Assume mbrtowc function.
40698         * lib/propername.c: Include mbuiter.h unconditionally.
40699         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
40700         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
40701         (trim2): Assume mbrtowc function.
40702         * lib/mbswidth.c (mbsinit): Remove fallback definition.
40703         (mbsnwidth): Assume mbrtowc function.
40704         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
40705         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
40706         fallback definitions.
40707         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
40708
40709 2008-12-22  Bruno Haible  <bruno@clisp.org>
40710
40711         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
40712
40713 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
40714
40715         * modules/regex: Request emulations for the mb*/wc* functions we need.
40716         * m4/regex.m4: Don't look for those functions here.
40717         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
40718
40719 2008-12-22  Bruno Haible  <bruno@clisp.org>
40720
40721         * modules/fnmatch (Depends-on): Remove duplicated dependency.
40722
40723 2008-12-21  Bruno Haible  <bruno@clisp.org>
40724
40725         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
40726         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
40727         (Include): Remove conditionalization.
40728         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
40729         (Include): Remove conditionalization.
40730         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
40731         (Include): Remove conditionalization.
40732         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
40733         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40734         * NEWS: Mention the change.
40735         Reported by Alan Hourihane <alanh@fairlite.co.uk>
40736         via Sergey Poznyakoff <gray@gnu.org.ua>.
40737
40738 2008-12-21  Bruno Haible  <bruno@clisp.org>
40739
40740         * MODULES.html.sh (Extended multibyte and wide character utilities
40741         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
40742         wcrtomb, wcsrtombs.
40743         (Support for systems lacking POSIX:2008): Add accept, bind, close,
40744         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
40745         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
40746         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
40747
40748 2008-12-21  Bruno Haible  <bruno@clisp.org>
40749
40750         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
40751
40752 2008-12-21  Bruno Haible  <bruno@clisp.org>
40753
40754         * modules/wcsnrtombs-tests: New file.
40755         * tests/test-wcsnrtombs1.sh: New file.
40756         * tests/test-wcsnrtombs2.sh: New file.
40757         * tests/test-wcsnrtombs3.sh: New file.
40758         * tests/test-wcsnrtombs4.sh: New file.
40759         * tests/test-wcsnrtombs.c: New file.
40760
40761         New module 'wcsnrtombs'.
40762         * lib/wchar.in.h (wcsnrtombs): New declaration.
40763         * lib/wcsnrtombs.c: New file.
40764         * lib/wcsrtombs-state.c: New file.
40765         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
40766         (internal_state): Remove variable.
40767         * m4/wcsnrtombs.m4: New file.
40768         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
40769         compilation units.
40770         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
40771         HAVE_WCSNRTOMBS.
40772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
40773         HAVE_WCSNRTOMBS.
40774         * modules/wcsnrtombs: New file.
40775         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
40776         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
40777
40778 2008-12-21  Bruno Haible  <bruno@clisp.org>
40779
40780         * modules/wcsrtombs-tests: New file.
40781         * tests/test-wcsrtombs1.sh: New file.
40782         * tests/test-wcsrtombs2.sh: New file.
40783         * tests/test-wcsrtombs3.sh: New file.
40784         * tests/test-wcsrtombs4.sh: New file.
40785         * tests/test-wcsrtombs.c: New file.
40786
40787         New module 'wcsrtombs'.
40788         * lib/wchar.in.h (wcsrtombs): New declaration.
40789         * lib/wcsrtombs.c: New file.
40790         * m4/wcsrtombs.m4: New file.
40791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
40792         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40793         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
40794         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40795         * modules/wcsrtombs: New file.
40796         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
40797         bugs.
40798
40799 2008-12-21  Bruno Haible  <bruno@clisp.org>
40800
40801         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
40802         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
40803         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
40804         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
40805         if not correct.
40806         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
40807         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
40808         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40809         m4/locale-zh.m4, m4/codeset.m4.
40810         * doc/posix-functions/wcrtomb.texi: Document the bug.
40811
40812 2008-12-21  Bruno Haible  <bruno@clisp.org>
40813
40814         Work around a btowc() bug on IRIX 6.5.
40815         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
40816         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
40817         REPLACE_WTOBC if not.
40818         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
40819         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
40820         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
40821
40822 2008-12-21  Bruno Haible  <bruno@clisp.org>
40823
40824         * modules/wcrtomb-tests: New file.
40825         * tests/test-wcrtomb.sh: New file.
40826         * tests/test-wcrtomb.c: New file.
40827
40828         New module 'wcrtomb'.
40829         * lib/wchar.in.h (wcrtomb): New declaration.
40830         * lib/wcrtomb.c: New file.
40831         * m4/wcrtomb.m4: New file.
40832         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
40833         HAVE_WCRTOMB.
40834         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
40835         HAVE_WCRTOMB.
40836         * modules/wcrtomb: New file.
40837         * doc/posix-functions/wcrtomb.texi: Mention the new module.
40838
40839 2008-12-21  Bruno Haible  <bruno@clisp.org>
40840
40841         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
40842         * modules/mbsrtowcs (Files): Likewise.
40843         * modules/wctob (Files): Likewise.
40844         * modules/c-strcase-tests (Files): Likewise.
40845         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40846         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40847         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40848         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40849         * modules/vasnprintf-posix-tests (Files): Likewise.
40850
40851 2008-12-21  William Pursell  <bill.pursell@gmail.com>
40852
40853         gitlog-to-changelog: pass all command-line arguments to git-log
40854         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
40855         it is sometimes convenient to filter the commits in various ways.
40856         gitlog-to-changelog only allows --since to specify a start date,
40857         but git-log itself supports many other filtering mechanisms.
40858         At the moment, I want to filter by branch name.  Rather than
40859         adding a --branch option to gitlog-to-changelog, it seems more
40860         flexible to simply pass all options directly to git-log and let
40861         git do the work.  Notice that this effectively makes --since a
40862         redundant option for gitlog-to-changelog, but removing it would
40863         require current usage to change since calls would then require
40864         an additional '--'.
40865
40866 2008-12-21  Bruno Haible  <bruno@clisp.org>
40867
40868         * modules/mbsnrtowcs-tests: New file.
40869         * tests/test-mbsnrtowcs1.sh: New file.
40870         * tests/test-mbsnrtowcs2.sh: New file.
40871         * tests/test-mbsnrtowcs3.sh: New file.
40872         * tests/test-mbsnrtowcs4.sh: New file.
40873         * tests/test-mbsnrtowcs.c: New file.
40874
40875         New module 'mbsnrtowcs'.
40876         * lib/wchar.in.h (mbsnrtowcs): New declaration.
40877         * lib/mbsnrtowcs.c: New file.
40878         * lib/mbsrtowcs-state.c: New file.
40879         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
40880         (internal_state): Remove variable.
40881         * m4/mbsnrtowcs.m4: New file.
40882         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
40883         compilation units.
40884         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
40885         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40886         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
40887         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40888         * modules/mbsnrtowcs: New file.
40889         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
40890         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
40891         portability problem.
40892
40893 2008-12-21  Bruno Haible  <bruno@clisp.org>
40894
40895         Work around mbsrtowcs bug.
40896         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
40897         (gl_FUNC_MBSRTOWCS): Invoke it.
40898         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40899         m4/locale-zh.m4.
40900         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
40901
40902 2008-12-21  Bruno Haible  <bruno@clisp.org>
40903
40904         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
40905
40906 2008-12-21  Bruno Haible  <bruno@clisp.org>
40907
40908         Update doc for AIX.
40909         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
40910         16-bit wchar_t type.
40911         * doc/posix-functions/btowc.texi: Likewise.
40912         * doc/posix-functions/fgetwc.texi: Likewise.
40913         * doc/posix-functions/fgetws.texi: Likewise.
40914         * doc/posix-functions/fputwc.texi: Likewise.
40915         * doc/posix-functions/fputws.texi: Likewise.
40916         * doc/posix-functions/fwide.texi: Likewise.
40917         * doc/posix-functions/fwprintf.texi: Likewise.
40918         * doc/posix-functions/fwscanf.texi: Likewise.
40919         * doc/posix-functions/getwchar.texi: Likewise.
40920         * doc/posix-functions/getwc.texi: Likewise.
40921         * doc/posix-functions/iswalnum.texi: Likewise.
40922         * doc/posix-functions/iswalpha.texi: Likewise.
40923         * doc/posix-functions/iswblank.texi: Likewise.
40924         * doc/posix-functions/iswcntrl.texi: Likewise.
40925         * doc/posix-functions/iswctype.texi: Likewise.
40926         * doc/posix-functions/iswdigit.texi: Likewise.
40927         * doc/posix-functions/iswgraph.texi: Likewise.
40928         * doc/posix-functions/iswlower.texi: Likewise.
40929         * doc/posix-functions/iswprint.texi: Likewise.
40930         * doc/posix-functions/iswpunct.texi: Likewise.
40931         * doc/posix-functions/iswspace.texi: Likewise.
40932         * doc/posix-functions/iswupper.texi: Likewise.
40933         * doc/posix-functions/iswxdigit.texi: Likewise.
40934         * doc/posix-functions/mbrtowc.texi: Likewise.
40935         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40936         * doc/posix-functions/mbstowcs.texi: Likewise.
40937         * doc/posix-functions/mbtowc.texi: Likewise.
40938         * doc/posix-functions/putwchar.texi: Likewise.
40939         * doc/posix-functions/putwc.texi: Likewise.
40940         * doc/posix-functions/swprintf.texi: Likewise.
40941         * doc/posix-functions/tolower.texi: Likewise.
40942         * doc/posix-functions/toupper.texi: Likewise.
40943         * doc/posix-functions/towctrans.texi: Likewise.
40944         * doc/posix-functions/ungetwc.texi: Likewise.
40945         * doc/posix-functions/vswprintf.texi: Likewise.
40946         * doc/posix-functions/wcrtomb.texi: Likewise.
40947         * doc/posix-functions/wcscat.texi: Likewise.
40948         * doc/posix-functions/wcschr.texi: Likewise.
40949         * doc/posix-functions/wcscmp.texi: Likewise.
40950         * doc/posix-functions/wcscoll.texi: Likewise.
40951         * doc/posix-functions/wcscpy.texi: Likewise.
40952         * doc/posix-functions/wcscspn.texi: Likewise.
40953         * doc/posix-functions/wcsftime.texi: Likewise.
40954         * doc/posix-functions/wcslen.texi: Likewise.
40955         * doc/posix-functions/wcsncat.texi: Likewise.
40956         * doc/posix-functions/wcsncmp.texi: Likewise.
40957         * doc/posix-functions/wcsncpy.texi: Likewise.
40958         * doc/posix-functions/wcspbrk.texi: Likewise.
40959         * doc/posix-functions/wcsrchr.texi: Likewise.
40960         * doc/posix-functions/wcsrtombs.texi: Likewise.
40961         * doc/posix-functions/wcsspn.texi: Likewise.
40962         * doc/posix-functions/wcsstr.texi: Likewise.
40963         * doc/posix-functions/wcstod.texi: Likewise.
40964         * doc/posix-functions/wcstof.texi: Likewise.
40965         * doc/posix-functions/wcstoimax.texi: Likewise.
40966         * doc/posix-functions/wcstok.texi: Likewise.
40967         * doc/posix-functions/wcstold.texi: Likewise.
40968         * doc/posix-functions/wcstoll.texi: Likewise.
40969         * doc/posix-functions/wcstol.texi: Likewise.
40970         * doc/posix-functions/wcstombs.texi: Likewise.
40971         * doc/posix-functions/wcstoull.texi: Likewise.
40972         * doc/posix-functions/wcstoul.texi: Likewise.
40973         * doc/posix-functions/wcstoumax.texi: Likewise.
40974         * doc/posix-functions/wcswidth.texi: Likewise.
40975         * doc/posix-functions/wcsxfrm.texi: Likewise.
40976         * doc/posix-functions/wctob.texi: Likewise.
40977         * doc/posix-functions/wctomb.texi: Likewise.
40978         * doc/posix-functions/wctrans.texi: Likewise.
40979         * doc/posix-functions/wctype.texi: Likewise.
40980         * doc/posix-functions/wcwidth.texi: Likewise.
40981         * doc/posix-functions/wmemchr.texi: Likewise.
40982         * doc/posix-functions/wmemcmp.texi: Likewise.
40983         * doc/posix-functions/wmemcpy.texi: Likewise.
40984         * doc/posix-functions/wmemmove.texi: Likewise.
40985         * doc/posix-functions/wmemset.texi: Likewise.
40986         * doc/posix-functions/wprintf.texi: Likewise.
40987         * doc/posix-functions/wscanf.texi: Likewise.
40988
40989 2008-12-21  Bruno Haible  <bruno@clisp.org>
40990
40991         Update doc for HP-UX 11.11.
40992         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40993         in HP-UX version 11.00, not in all versions of HP-UX 11.
40994         * doc/posix-functions/fwide.texi: Likewise.
40995         * doc/posix-functions/fwprintf.texi: Likewise.
40996         * doc/posix-functions/fwscanf.texi: Likewise.
40997         * doc/posix-functions/inet_ntop.texi: Likewise.
40998         * doc/posix-functions/inet_pton.texi: Likewise.
40999         * doc/posix-functions/mbrlen.texi: Likewise.
41000         * doc/posix-functions/mbrtowc.texi: Likewise.
41001         * doc/posix-functions/mbsinit.texi: Likewise.
41002         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41003         * doc/posix-functions/swprintf.texi: Likewise.
41004         * doc/posix-functions/swscanf.texi: Likewise.
41005         * doc/posix-functions/towctrans.texi: Likewise.
41006         * doc/posix-functions/vfwprintf.texi: Likewise.
41007         * doc/posix-functions/vswprintf.texi: Likewise.
41008         * doc/posix-functions/vwprintf.texi: Likewise.
41009         * doc/posix-functions/wcrtomb.texi: Likewise.
41010         * doc/posix-functions/wcsrtombs.texi: Likewise.
41011         * doc/posix-functions/wcsstr.texi: Likewise.
41012         * doc/posix-functions/wctob.texi: Likewise.
41013         * doc/posix-functions/wctrans.texi: Likewise.
41014         * doc/posix-functions/wmemchr.texi: Likewise.
41015         * doc/posix-functions/wmemcmp.texi: Likewise.
41016         * doc/posix-functions/wmemcpy.texi: Likewise.
41017         * doc/posix-functions/wmemmove.texi: Likewise.
41018         * doc/posix-functions/wmemset.texi: Likewise.
41019         * doc/posix-functions/wprintf.texi: Likewise.
41020         * doc/posix-functions/wscanf.texi: Likewise.
41021
41022 2008-12-21  Bruno Haible  <bruno@clisp.org>
41023
41024         Work around a portability problem.
41025         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
41026         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
41027
41028 2008-12-20  Bruno Haible  <bruno@clisp.org>
41029
41030         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
41031         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
41032         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
41033         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
41034         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
41035
41036         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
41037         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
41038         set.
41039         (GNULIB_defined_mbstate_t): New macro.
41040         (mbsinit): Redefine if REPLACE_MBSINIT is set.
41041         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
41042         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
41043         reuses the system's mbrtowc function but works around the bugs.
41044         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
41045         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
41046         macros.
41047         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
41048         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
41049         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
41050         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
41051         REPLACE_MBSINIT if mbsinit needs to be overridden.
41052         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
41053         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41054         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
41055         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41056         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41057         m4/locale-zh.m4.
41058         (Depends): Add mbsinit.
41059         * modules/mbsinit (Depends): Add mbrtowc.
41060         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
41061
41062 2008-12-20  Bruno Haible  <bruno@clisp.org>
41063
41064         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
41065         so that there are no conversion errors on AIX.
41066         * tests/test-mbsrtowcs.c (main): LIkewise.
41067
41068 2008-12-20  Bruno Haible  <bruno@clisp.org>
41069
41070         Work around wctob bug on Solaris <= 9.
41071         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
41072         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
41073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
41074         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
41075         * modules/wctob (Files): Add m4/locale-fr.m4.
41076         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
41077
41078 2008-12-20  Bruno Haible  <bruno@clisp.org>
41079
41080         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
41081         /dev/null.
41082         * tests/test-select-in.sh: Likewise.
41083         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41084
41085 2008-12-20  Bruno Haible  <bruno@clisp.org>
41086
41087         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
41088         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
41089         Cygwin 1.5.x.
41090
41091 2008-12-20  Bruno Haible  <bruno@clisp.org>
41092
41093         Ensure mbstate_t is defined on HP-UX 11.11.
41094         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
41095         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
41096         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
41097         AC_USE_SYSTEM_EXTENSIONS.
41098         * modules/fnmatch (Depends-on): Add extensions.
41099         * modules/mbrlen (Depends-on): Likewise.
41100         * modules/mbrtowc (Depends-on): Likewise.
41101         * modules/mbsinit (Depends-on): Likewise.
41102         * modules/mbsrtowcs (Depends-on): Likewise.
41103         * modules/mbswidth (Depends-on): Likewise.
41104         * modules/quotearg (Depends-on): Likewise.
41105         * modules/strftime (Depends-on): Likewise.
41106
41107 2008-12-20  Bruno Haible  <bruno@clisp.org>
41108
41109         Ensure wctob is declared on IRIX 6.5.
41110         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
41111         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
41112         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
41113         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
41114         of HAVE_WCTOB.
41115         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
41116         HAVE_WCTOB.
41117         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
41118
41119 2008-12-19  Bruno Haible  <bruno@clisp.org>
41120
41121         * modules/mbsrtowcs-tests: New file.
41122         * tests/test-mbsrtowcs1.sh: New file.
41123         * tests/test-mbsrtowcs2.sh: New file.
41124         * tests/test-mbsrtowcs3.sh: New file.
41125         * tests/test-mbsrtowcs4.sh: New file.
41126         * tests/test-mbsrtowcs.c: New file.
41127
41128         New module 'mbsrtowcs'.
41129         * lib/wchar.in.h (mbsrtowcs): New declaration.
41130         * lib/mbsrtowcs.c: New file.
41131         * m4/mbsrtowcs.m4: New file.
41132         * modules/mbsrtowcs: New file.
41133         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
41134         HAVE_MBSRTOWCS.
41135         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
41136         HAVE_MBSRTOWCS.
41137         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
41138
41139 2008-12-19  Bruno Haible  <bruno@clisp.org>
41140
41141         New module 'mbrlen'.
41142         * lib/wchar.in.h (mbrlen): New declaration.
41143         * lib/mbrlen.c: New file.
41144         * m4/mbrlen.m4: New file.
41145         * modules/mbrlen: New file.
41146         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
41147         HAVE_MBRLEN.
41148         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
41149         HAVE_MBRLEN.
41150         * doc/posix-functions/mbrlen.texi: Document the new module.
41151
41152 2008-12-19  Bruno Haible  <bruno@clisp.org>
41153
41154         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
41155         * modules/mbrtowc (Depends-on): Add verify.
41156         Suggested by Paul Eggert.
41157
41158 2008-12-18  Bruno Haible  <bruno@clisp.org>
41159
41160         * modules/mbsinit-tests: New file.
41161         * tests/test-mbsinit.sh: New file.
41162         * tests/test-mbsinit.c: New file.
41163
41164 2008-12-18  Bruno Haible  <bruno@clisp.org>
41165
41166         * modules/mbrtowc-tests: New file.
41167         * tests/test-mbrtowc1.sh: New file.
41168         * tests/test-mbrtowc2.sh: New file.
41169         * tests/test-mbrtowc3.sh: New file.
41170         * tests/test-mbrtowc4.sh: New file.
41171         * tests/test-mbrtowc.c: New file.
41172
41173         New module 'mbrtowc'.
41174         * lib/wchar.in.h (mbstate_t): Override when the system does not have
41175         mbsinit and mbrtowc.
41176         (mbrtowc): New declaration.
41177         * lib/mbrtowc.c: New file.
41178         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
41179         * modules/mbrtowc: New file.
41180         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
41181         HAVE_MBRTOWC.
41182         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
41183         HAVE_MBRTOWC.
41184         * doc/posix-functions/mbrtowc.texi: Document the new module.
41185
41186 2008-12-18  Bruno Haible  <bruno@clisp.org>
41187
41188         New module 'wctob'.
41189         * lib/wchar.in.h (wctob): New declaration.
41190         * lib/wctob.c: New file.
41191         * m4/wctob.m4: New file.
41192         * modules/wctob: New file.
41193         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
41194         HAVE_WCTOB.
41195         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
41196         * doc/posix-functions/wctob.texi: Document the new module.
41197
41198 2008-12-18  Bruno Haible  <bruno@clisp.org>
41199
41200         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
41201         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
41202
41203 2008-12-18  Simon Josefsson  <simon@josefsson.org>
41204
41205         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
41206         G. Christensen" <tgc@jupiterrise.com>.
41207
41208         * lib/flock.c: Need to include errno.h.  Reported by "Tom
41209         G. Christensen" <tgc@jupiterrise.com>.
41210
41211         * lib/flock.c: Need to include string.h.  Reported by "Tom
41212         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
41213         <ebb9@byu.net>.
41214
41215 2008-12-18  Bruno Haible  <bruno@clisp.org>
41216
41217         * m4/locale-ja.m4: New file, from GNU gettext.
41218
41219 2008-12-17  Bruno Haible  <bruno@clisp.org>
41220
41221         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
41222         Suggested by Eric Blake.
41223
41224 2008-12-17  Bruno Haible  <bruno@clisp.org>
41225
41226         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
41227
41228 2008-12-17  Bruno Haible  <bruno@clisp.org>
41229
41230         * lib/mbsinit.c: Include verify.h. Verify an assumption.
41231         * modules/mbsinit (Depends-on): Add verify.
41232         Suggested by Paul Eggert.
41233
41234 2008-12-17  Bruno Haible  <bruno@clisp.org>
41235
41236         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
41237         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
41238         gl_FUNC_MBRTOWC.
41239         * m4/mbiter.m4 (gl_MBITER): LIkewise.
41240         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
41241         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
41242         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
41243         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
41244         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
41245         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
41246         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
41247         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
41248         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
41249         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
41250         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
41251         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
41252         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
41253         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
41254         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41255         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
41256         * modules/trim (configure.ac): Likewise.
41257
41258 2008-12-17  Bruno Haible  <bruno@clisp.org>
41259
41260         * modules/btowc-tests: New file.
41261         * tests/test-btowc1.sh: New file.
41262         * tests/test-btowc2.sh: New file.
41263         * tests/test-btowc.c: New file.
41264
41265         New module 'btowc'.
41266         * lib/wchar.in.h (btowc): New declaration.
41267         * lib/btowc.c: New file.
41268         * m4/btowc.m4: New file.
41269         * modules/btowc: New file.
41270         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
41271         HAVE_BTOWC.
41272         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
41273         * doc/posix-functions/btowc.texi: Document the new module.
41274
41275 2008-12-17  Bruno Haible  <bruno@clisp.org>
41276
41277         New module 'mbsinit'.
41278         * lib/wchar.in.h (mbsinit): New declaration.
41279         * lib/mbsinit.c: New file.
41280         * m4/mbsinit.m4: New file.
41281         * modules/mbsinit: New file.
41282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
41283         HAVE_MBSINIT.
41284         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
41285         HAVE_MBSINIT.
41286         * doc/posix-functions/mbsinit.texi: Document the new module.
41287
41288 2008-12-16  Bruno Haible  <bruno@clisp.org>
41289
41290         * lib/unistd.in.h: Add comment.
41291         * tests/test-environ.c: Don't include <stdlib.h>.
41292
41293 2008-12-16  Bruno Haible  <bruno@clisp.org>
41294
41295         * lib/parse-duration.h (parse_duration): Document return value
41296         convention.
41297         * lib/parse-duration.c: Include specification header first. Add
41298         comments.
41299         (_): Remove macro.
41300         (parse_year_month_day, parse_hour_minute_second): Move side effects
41301         outside of strchr call.
41302         (parse_non_iso8601): Move side effects outside of isspace call.
41303         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
41304         call.
41305
41306 2008-12-16  Bruno Haible  <bruno@clisp.org>
41307
41308         * tests/test-parse-duration.sh: Produce no output when the test
41309         succeeds.
41310
41311 2008-12-16  Bruno Haible  <bruno@clisp.org>
41312
41313         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
41314         expressions.
41315
41316 2008-12-15  Bruno Haible  <bruno@clisp.org>
41317
41318         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
41319         * doc/glibc-functions/flistxattr.texi: Likewise.
41320         * doc/glibc-functions/fopencookie.texi: Likewise.
41321         * doc/glibc-functions/fremovexattr.texi: Likewise.
41322         * doc/glibc-functions/fsetxattr.texi: Likewise.
41323         * doc/glibc-functions/getxattr.texi: Likewise.
41324         * doc/glibc-functions/lgetxattr.texi: Likewise.
41325         * doc/glibc-functions/listxattr.texi: Likewise.
41326         * doc/glibc-functions/llistxattr.texi: Likewise.
41327         * doc/glibc-functions/lremovexattr.texi: Likewise.
41328         * doc/glibc-functions/lsetxattr.texi: Likewise.
41329         * doc/glibc-functions/removexattr.texi: Likewise.
41330         * doc/glibc-functions/setxattr.texi: Likewise.
41331         * doc/posix-functions/open_memstream.texi: Likewise.
41332
41333 2008-12-15  Eric Blake  <ebb9@byu.net>
41334
41335         Update doc for cygwin 1.7.
41336         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
41337         functions.
41338         * doc/posix-functions/fchmodat.texi: Likewise.
41339         * doc/posix-functions/fchownat.texi: Likewise.
41340         * doc/posix-functions/fdopendir.texi: Likewise.
41341         * doc/posix-functions/fmemopen.texi: Likewise.
41342         * doc/posix-functions/freeaddrinfo.texi: Likewise.
41343         * doc/posix-functions/fstatat.texi: Likewise.
41344         * doc/posix-functions/futimens.texi: Likewise.
41345         * doc/posix-functions/gai_strerror.texi: Likewise.
41346         * doc/posix-functions/getaddrinfo.texi: Likewise.
41347         * doc/posix-functions/getnameinfo.texi: Likewise.
41348         * doc/posix-functions/if_freenameindex.texi: Likewise.
41349         * doc/posix-functions/if_indextoname.texi: Likewise.
41350         * doc/posix-functions/if_nameindex.texi: Likewise.
41351         * doc/posix-functions/if_nametoindex.texi: Likewise.
41352         * doc/posix-functions/insque.texi: Likewise.
41353         * doc/posix-functions/linkat.texi: Likewise.
41354         * doc/posix-functions/llrint.texi: Likewise.
41355         * doc/posix-functions/llrintf.texi: Likewise.
41356         * doc/posix-functions/llrintl.texi: Likewise.
41357         * doc/posix-functions/lockf.texi: Likewise.
41358         * doc/posix-functions/lrintl.texi: Likewise.
41359         * doc/posix-functions/mkdirat.texi: Likewise.
41360         * doc/posix-functions/mkfifoat.texi: Likewise.
41361         * doc/posix-functions/mknodat.texi: Likewise.
41362         * doc/posix-functions/mq_close.texi: Likewise.
41363         * doc/posix-functions/mq_getattr.texi: Likewise.
41364         * doc/posix-functions/mq_notify.texi: Likewise.
41365         * doc/posix-functions/mq_open.texi: Likewise.
41366         * doc/posix-functions/mq_receive.texi: Likewise.
41367         * doc/posix-functions/mq_send.texi: Likewise.
41368         * doc/posix-functions/mq_setattr.texi: Likewise.
41369         * doc/posix-functions/mq_timedreceive.texi: Likewise.
41370         * doc/posix-functions/mq_timedsend.texi: Likewise.
41371         * doc/posix-functions/mq_unlink.texi: Likewise.
41372         * doc/posix-functions/open_memstream.texi: Likewise.
41373         * doc/posix-functions/openat.texi: Likewise.
41374         * doc/posix-functions/posix_fadvise.texi: Likewise.
41375         * doc/posix-functions/posix_fallocate.texi: Likewise.
41376         * doc/posix-functions/posix_madvise.texi: Likewise.
41377         * doc/posix-functions/posix_memalign.texi: Likewise.
41378         * doc/posix-functions/posix_openpt.texi: Likewise.
41379         * doc/posix-functions/readlinkat.texi: Likewise.
41380         * doc/posix-functions/remque.texi: Likewise.
41381         * doc/posix-functions/renameat.texi: Likewise.
41382         * doc/posix-functions/rintl.texi: Likewise.
41383         * doc/posix-functions/sem_unlink.texi: Likewise.
41384         * doc/posix-functions/shm_open.texi: Likewise.
41385         * doc/posix-functions/shm_unlink.texi: Likewise.
41386         * doc/posix-functions/signgam.texi: Likewise.
41387         * doc/posix-functions/sigset.texi: Likewise.
41388         * doc/posix-functions/stpcpy.texi: Likewise.
41389         * doc/posix-functions/stpncpy.texi: Likewise.
41390         * doc/posix-functions/strerror.texi: Likewise.
41391         * doc/posix-functions/strtod.texi: Likewise.
41392         * doc/posix-functions/symlinkat.texi: Likewise.
41393         * doc/posix-functions/unlinkat.texi: Likewise.
41394         * doc/posix-functions/utimensat.texi: Likewise.
41395         * doc/glibc-functions/bindresvport.texi: Likewise.
41396         * doc/glibc-functions/dn_expand.texi: Likewise.
41397         * doc/glibc-functions/exp10.texi: Likewise.
41398         * doc/glibc-functions/exp10f.texi: Likewise.
41399         * doc/glibc-functions/fgetxattr.texi: Likewise.
41400         * doc/glibc-functions/flistxattr.texi: Likewise.
41401         * doc/glibc-functions/fopencookie.texi: Likewise.
41402         * doc/glibc-functions/freeifaddrs.texi: Likewise.
41403         * doc/glibc-functions/fremovexattr.texi: Likewise.
41404         * doc/glibc-functions/fsetxattr.texi: Likewise.
41405         * doc/glibc-functions/getifaddrs.texi: Likewise.
41406         * doc/glibc-functions/getxattr.texi: Likewise.
41407         * doc/glibc-functions/lgetxattr.texi: Likewise.
41408         * doc/glibc-functions/listxattr.texi: Likewise.
41409         * doc/glibc-functions/llistxattr.texi: Likewise.
41410         * doc/glibc-functions/lremovexattr.texi: Likewise.
41411         * doc/glibc-functions/lsetxattr.texi: Likewise.
41412         * doc/glibc-functions/pow10.texi: Likewise.
41413         * doc/glibc-functions/pow10f.texi: Likewise.
41414         * doc/glibc-functions/rcmd_af.texi: Likewise.
41415         * doc/glibc-functions/removexattr.texi: Likewise.
41416         * doc/glibc-functions/res_init.texi: Likewise.
41417         * doc/glibc-functions/res_mkquery.texi: Likewise.
41418         * doc/glibc-functions/res_query.texi: Likewise.
41419         * doc/glibc-functions/res_querydomain.texi: Likewise.
41420         * doc/glibc-functions/res_send.texi: Likewise.
41421         * doc/glibc-functions/rresvport_af.texi: Likewise.
41422         * doc/glibc-functions/setxattr.texi: Likewise.
41423         * doc/glibc-functions/strcasestr.texi: Likewise.
41424
41425 2008-12-15  Bruno Haible  <bruno@clisp.org>
41426
41427         Fix compilation error on OSF/1 4.0.
41428         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
41429         <sys/time.h>, simply delegate to the system header.
41430         Reported by Daniel Richard G. <oss@teragram.com>.
41431
41432 2008-12-15  Bruno Haible  <bruno@clisp.org>
41433
41434         * doc/posix-functions/openat.texi: Mention the 'openat' module.
41435         * doc/posix-functions/fchmodat.texi: Likewise.
41436         * doc/posix-functions/fchownat.texi: Likewise.
41437         * doc/posix-functions/fdopendir.texi: Likewise.
41438         * doc/posix-functions/fstatat.texi: Likewise.
41439         * doc/posix-functions/mkdirat.texi: Likewise.
41440         * doc/posix-functions/unlinkat.texi: Likewise.
41441
41442 2008-12-14  Bruno Haible  <bruno@clisp.org>
41443
41444         Update doc for POSIX:2008.
41445         * doc/posix-functions/faccessat.texi: New file.
41446         * doc/posix-functions/fchmodat.texi: New file.
41447         * doc/posix-functions/fchownat.texi: New file.
41448         * doc/posix-functions/fdopendir.texi: New file.
41449         * doc/posix-functions/fstatat.texi: New file.
41450         * doc/posix-functions/futimens.texi: New file.
41451         * doc/posix-functions/linkat.texi: New file.
41452         * doc/posix-functions/mkdirat.texi: New file.
41453         * doc/posix-functions/mkfifoat.texi: New file.
41454         * doc/posix-functions/mknodat.texi: New file.
41455         * doc/posix-functions/open_wmemstream.texi: New file.
41456         * doc/posix-functions/openat.texi: New file.
41457         * doc/posix-functions/psiginfo.texi: New file.
41458         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
41459         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
41460         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
41461         * doc/posix-functions/readlinkat.texi: New file.
41462         * doc/posix-functions/renameat.texi: New file.
41463         * doc/posix-functions/strerror_l.texi: New file.
41464         * doc/posix-functions/symlinkat.texi: New file.
41465         * doc/posix-functions/unlinkat.texi: New file.
41466         * doc/posix-functions/utimensat.texi: New file.
41467         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41468
41469 2008-12-14  Bruno Haible  <bruno@clisp.org>
41470
41471         Update doc for POSIX:2008.
41472         * doc/posix-functions/alphasort.texi: Renamed from
41473         doc/glibc-functions/alphasort.texi.
41474         * doc/posix-functions/dirfd.texi: Renamed from
41475         doc/glibc-functions/dirfd.texi.
41476         * doc/posix-functions/dprintf.texi: Renamed from
41477         doc/glibc-functions/dprintf.texi.
41478         * doc/posix-functions/duplocale.texi: Renamed from
41479         doc/glibc-functions/duplocale.texi.
41480         * doc/posix-functions/fexecve.texi: Renamed from
41481         doc/glibc-functions/fexecve.texi.
41482         * doc/posix-functions/fmemopen.texi: Renamed from
41483         doc/glibc-functions/fmemopen.texi.
41484         * doc/posix-functions/freelocale.texi: Renamed from
41485         doc/glibc-functions/freelocale.texi.
41486         * doc/posix-functions/getdate_err.texi: Renamed from
41487         doc/glibc-functions/getdate_err.texi.
41488         * doc/posix-functions/isalnum_l.texi: Renamed from
41489         doc/glibc-functions/isalnum_l.texi.
41490         * doc/posix-functions/isalpha_l.texi: Renamed from
41491         doc/glibc-functions/isalpha_l.texi.
41492         * doc/posix-functions/isblank_l.texi: Renamed from
41493         doc/glibc-functions/isblank_l.texi.
41494         * doc/posix-functions/iscntrl_l.texi: Renamed from
41495         doc/glibc-functions/iscntrl_l.texi.
41496         * doc/posix-functions/isdigit_l.texi: Renamed from
41497         doc/glibc-functions/isdigit_l.texi.
41498         * doc/posix-functions/isgraph_l.texi: Renamed from
41499         doc/glibc-functions/isgraph_l.texi.
41500         * doc/posix-functions/islower_l.texi: Renamed from
41501         doc/glibc-functions/islower_l.texi.
41502         * doc/posix-functions/isprint_l.texi: Renamed from
41503         doc/glibc-functions/isprint_l.texi.
41504         * doc/posix-functions/ispunct_l.texi: Renamed from
41505         doc/glibc-functions/ispunct_l.texi.
41506         * doc/posix-functions/isspace_l.texi: Renamed from
41507         doc/glibc-functions/isspace_l.texi.
41508         * doc/posix-functions/isupper_l.texi: Renamed from
41509         doc/glibc-functions/isupper_l.texi.
41510         * doc/posix-functions/iswalnum_l.texi: Renamed from
41511         doc/glibc-functions/iswalnum_l.texi.
41512         * doc/posix-functions/iswalpha_l.texi: Renamed from
41513         doc/glibc-functions/iswalpha_l.texi.
41514         * doc/posix-functions/iswblank_l.texi: Renamed from
41515         doc/glibc-functions/iswblank_l.texi.
41516         * doc/posix-functions/iswcntrl_l.texi: Renamed from
41517         doc/glibc-functions/iswcntrl_l.texi.
41518         * doc/posix-functions/iswctype_l.texi: Renamed from
41519         doc/glibc-functions/iswctype_l.texi.
41520         * doc/posix-functions/iswdigit_l.texi: Renamed from
41521         doc/glibc-functions/iswdigit_l.texi.
41522         * doc/posix-functions/iswgraph_l.texi: Renamed from
41523         doc/glibc-functions/iswgraph_l.texi.
41524         * doc/posix-functions/iswlower_l.texi: Renamed from
41525         doc/glibc-functions/iswlower_l.texi.
41526         * doc/posix-functions/iswprint_l.texi: Renamed from
41527         doc/glibc-functions/iswprint_l.texi.
41528         * doc/posix-functions/iswpunct_l.texi: Renamed from
41529         doc/glibc-functions/iswpunct_l.texi.
41530         * doc/posix-functions/iswspace_l.texi: Renamed from
41531         doc/glibc-functions/iswspace_l.texi.
41532         * doc/posix-functions/iswupper_l.texi: Renamed from
41533         doc/glibc-functions/iswupper_l.texi.
41534         * doc/posix-functions/iswxdigit_l.texi: Renamed from
41535         doc/glibc-functions/iswxdigit_l.texi.
41536         * doc/posix-functions/isxdigit_l.texi: Renamed from
41537         doc/glibc-functions/isxdigit_l.texi.
41538         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
41539         doc/glibc-functions/mbsnrtowcs.texi.
41540         * doc/posix-functions/mkdtemp.texi: Renamed from
41541         doc/glibc-functions/mkdtemp.texi.
41542         * doc/posix-functions/newlocale.texi: Renamed from
41543         doc/glibc-functions/newlocale.texi.
41544         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
41545         doc/glibc-functions/nl_langinfo_l.texi.
41546         * doc/posix-functions/open_memstream.texi: Renamed from
41547         doc/glibc-functions/open_memstream.texi.
41548         * doc/posix-functions/opterr.texi: Renamed from
41549         doc/glibc-functions/opterr.texi.
41550         * doc/posix-functions/optind.texi: Renamed from
41551         doc/glibc-functions/optind.texi.
41552         * doc/posix-functions/optopt.texi: Renamed from
41553         doc/glibc-functions/optopt.texi.
41554         * doc/posix-functions/psignal.texi: Renamed from
41555         doc/glibc-functions/psignal.texi.
41556         * doc/posix-functions/scandir.texi: Renamed from
41557         doc/glibc-functions/scandir.texi.
41558         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
41559         doc/glibc-functions/sched_get_priority_min.texi.
41560         * doc/posix-functions/signgam.texi: Renamed from
41561         doc/glibc-functions/signgam.texi.
41562         * doc/posix-functions/stpcpy.texi: Renamed from
41563         doc/glibc-functions/stpcpy.texi.
41564         * doc/posix-functions/stpncpy.texi: Renamed from
41565         doc/glibc-functions/stpncpy.texi.
41566         * doc/posix-functions/strcasecmp_l.texi: Renamed from
41567         doc/glibc-functions/strcasecmp_l.texi.
41568         * doc/posix-functions/strcoll_l.texi: Renamed from
41569         doc/glibc-functions/strcoll_l.texi.
41570         * doc/posix-functions/strfmon_l.texi: Renamed from
41571         doc/glibc-functions/strfmon_l.texi.
41572         * doc/posix-functions/strftime_l.texi: Renamed from
41573         doc/glibc-functions/strftime_l.texi.
41574         * doc/posix-functions/strncasecmp_l.texi: Renamed from
41575         doc/glibc-functions/strncasecmp_l.texi.
41576         * doc/posix-functions/strndup.texi: Renamed from
41577         doc/glibc-functions/strndup.texi.
41578         * doc/posix-functions/strnlen.texi: Renamed from
41579         doc/glibc-functions/strnlen.texi.
41580         * doc/posix-functions/strsignal.texi: Renamed from
41581         doc/glibc-functions/strsignal.texi.
41582         * doc/posix-functions/strxfrm_l.texi: Renamed from
41583         doc/glibc-functions/strxfrm_l.texi.
41584         * doc/posix-functions/timer_gettime.texi: Renamed from
41585         doc/glibc-functions/timer_gettime.texi.
41586         * doc/posix-functions/tolower_l.texi: Renamed from
41587         doc/glibc-functions/tolower_l.texi.
41588         * doc/posix-functions/toupper_l.texi: Renamed from
41589         doc/glibc-functions/toupper_l.texi.
41590         * doc/posix-functions/towctrans_l.texi: Renamed from
41591         doc/glibc-functions/towctrans_l.texi.
41592         * doc/posix-functions/towlower_l.texi: Renamed from
41593         doc/glibc-functions/towlower_l.texi.
41594         * doc/posix-functions/towupper_l.texi: Renamed from
41595         doc/glibc-functions/towupper_l.texi.
41596         * doc/posix-functions/uselocale.texi: Renamed from
41597         doc/glibc-functions/uselocale.texi.
41598         * doc/posix-functions/vdprintf.texi: Renamed from
41599         doc/glibc-functions/vdprintf.texi.
41600         * doc/posix-functions/wcpcpy.texi:
41601         Renamed from doc/glibc-functions/wcpcpy.texi.
41602         * doc/posix-functions/wcpncpy.texi: Renamed from
41603         doc/glibc-functions/wcpncpy.texi.
41604         * doc/posix-functions/wcscasecmp.texi: Renamed from
41605         doc/glibc-functions/wcscasecmp.texi.
41606         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
41607         doc/glibc-functions/wcscasecmp_l.texi.
41608         * doc/posix-functions/wcscoll_l.texi: Renamed from
41609         doc/glibc-functions/wcscoll_l.texi.
41610         * doc/posix-functions/wcsdup.texi: Renamed from
41611         doc/glibc-functions/wcsdup.texi.
41612         * doc/posix-functions/wcsncasecmp.texi: Renamed from
41613         doc/glibc-functions/wcsncasecmp.texi.
41614         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
41615         doc/glibc-functions/wcsncasecmp_l.texi.
41616         * doc/posix-functions/wcsnlen.texi: Renamed from
41617         doc/glibc-functions/wcsnlen.texi.
41618         * doc/posix-functions/wcsnrtombs.texi: Renamed from
41619         doc/glibc-functions/wcsnrtombs.texi.
41620         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
41621         doc/glibc-functions/wcsxfrm_l.texi.
41622         * doc/posix-functions/wctrans_l.texi: Renamed from
41623         doc/glibc-functions/wctrans_l.texi.
41624         * doc/posix-functions/wctype_l.texi: Renamed from
41625         doc/glibc-functions/wctype_l.texi.
41626         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41627         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
41628         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
41629         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
41630         these subsections.
41631         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
41632         Remove sections.
41633
41634 2008-12-14  Bruno Haible  <bruno@clisp.org>
41635
41636         Update doc for POSIX:2008.
41637         * doc/posix-functions/*.texi: Update URL of POSIX specification.
41638
41639 2008-12-14  Bruno Haible  <bruno@clisp.org>
41640
41641         Update doc for POSIX:2008.
41642         * doc/pastposix-functions/bcmp.texi: Renamed from
41643         doc/posix-functions/bcmp.texi.
41644         * doc/pastposix-functions/bcopy.texi: Renamed from
41645         doc/posix-functions/bcopy.texi.
41646         * doc/pastposix-functions/bsd_signal.texi: Renamed from
41647         doc/posix-functions/bsd_signal.texi.
41648         * doc/pastposix-functions/bzero.texi: Renamed from
41649         doc/posix-functions/bzero.texi.
41650         * doc/pastposix-functions/ecvt.texi: Renamed from
41651         doc/posix-functions/ecvt.texi.
41652         * doc/pastposix-functions/fcvt.texi: Renamed from
41653         doc/posix-functions/fcvt.texi.
41654         * doc/pastposix-functions/ftime.texi: Renamed from
41655         doc/posix-functions/ftime.texi.
41656         * doc/pastposix-functions/gcvt.texi: Renamed from
41657         doc/posix-functions/gcvt.texi.
41658         * doc/pastposix-functions/getcontext.texi: Renamed from
41659         doc/posix-functions/getcontext.texi.
41660         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
41661         doc/posix-functions/gethostbyaddr.texi.
41662         * doc/pastposix-functions/gethostbyname.texi: Renamed from
41663         doc/posix-functions/gethostbyname.texi.
41664         * doc/pastposix-functions/getwd.texi: Renamed from
41665         doc/posix-functions/getwd.texi.
41666         * doc/pastposix-functions/h_errno.texi: Renamed from
41667         doc/posix-functions/h_errno.texi.
41668         * doc/pastposix-functions/index.texi: Renamed from
41669         doc/posix-functions/index.texi.
41670         * doc/pastposix-functions/makecontext.texi: Renamed from
41671         doc/posix-functions/makecontext.texi.
41672         * doc/pastposix-functions/mktemp.texi: Renamed from
41673         doc/posix-functions/mktemp.texi.
41674         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
41675         doc/posix-functions/pthread_attr_getstackaddr.texi.
41676         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
41677         doc/posix-functions/pthread_attr_setstackaddr.texi.
41678         * doc/pastposix-functions/rindex.texi: Renamed from
41679         doc/posix-functions/rindex.texi.
41680         * doc/pastposix-functions/scalb.texi: Renamed from
41681         doc/posix-functions/scalb.texi.
41682         * doc/pastposix-functions/setcontext.texi: Renamed from
41683         doc/posix-functions/setcontext.texi.
41684         * doc/pastposix-functions/swapcontext.texi: Renamed from
41685         doc/posix-functions/swapcontext.texi.
41686         * doc/pastposix-functions/ualarm.texi: Renamed from
41687         doc/posix-functions/ualarm.texi.
41688         * doc/pastposix-functions/usleep.texi: Renamed from
41689         doc/posix-functions/usleep.texi.
41690         * doc/pastposix-functions/vfork.texi: Renamed from
41691         doc/posix-functions/vfork.texi.
41692         * doc/pastposix-functions/wcswcs.texi: Renamed from
41693         doc/posix-functions/wcswcs.texi.
41694         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
41695         (Function Substitutes): Update.
41696
41697 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41698
41699         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
41700         m4/strerror.m4.
41701
41702 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41703             Bruno Haible  <bruno@clisp.org>
41704
41705         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
41706
41707 2008-12-13  Bruno Haible  <bruno@clisp.org>
41708
41709         * modules/strtoull (Depends-on): Remove unistd.
41710
41711 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41712
41713         * modules/strtoull (Depends-on): Add stdlib.
41714
41715 2008-12-11  Simon Josefsson  <simon@josefsson.org>
41716
41717         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
41718
41719 2008-12-10  Jim Meyering  <meyering@redhat.com>
41720
41721         gl_ASSERT: don't say assertions are disabled when they're not
41722         * m4/assert.m4 (gl_ASSERT): Do not make configure report
41723         "checking whether to enable assertions... no", when they are in
41724         fact enabled.  This is solely a bug in the output of configure.
41725         In spite of saying "no", NDEBUG was not defined in that case.
41726         Also, as noted by Eric Blake, leave assertions enabled upon
41727         --enable-assert=INVALID.
41728
41729 2008-12-10  Bruno Haible  <bruno@clisp.org>
41730
41731         Change MODULES.html to refer to POSIX:2008 where possible.
41732         * MODULES.html.sh (POSIX2008_URL): New variable.
41733         (posix_headers): Remove sys/timeb, ucontext.
41734         (posix2001_headers): New variable.
41735         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
41736         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
41737         index, makecontext, mktemp, pthread_attr_getstackaddr,
41738         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
41739         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
41740         (posix2001_functions): New variable.
41741         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
41742         otherwise.
41743
41744 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41745
41746         add missing include to parse-duration.c
41747         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
41748         * modules/parse-duration (Depends-on): Add xalloc.
41749
41750         fix sed script reading maint.mk
41751         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
41752         (syntax-check-rules): Use it.
41753
41754 2008-12-09  Bruno Haible  <bruno@clisp.org>
41755
41756         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
41757         MacOS X 10.4/PowerPC.
41758         Reported by Simon Josefsson.
41759
41760 2008-12-08  Jim Meyering  <meyering@redhat.com>
41761
41762         work around mingw's lack of some S_IF definitions
41763         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
41764         Reported by Simon Josefsson.
41765
41766 2008-12-08  Bruno Haible  <bruno@clisp.org>
41767
41768         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
41769         applied to variables. Needed on MacOS X 10.4/PowerPC.
41770         Reported by Simon Josefsson.
41771
41772 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
41773         and Eric Blake  <ebb9@byu.net>
41774
41775         assert: honor --enable-assert
41776         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
41777         order to honor --enable-assert, rather than treating it as a
41778         synonym for --disable-assert.
41779
41780 2008-12-08  Jim Meyering  <meyering@redhat.com>
41781
41782         * lib/posixtm.c: Remove now-useless declaration of mktime.
41783
41784         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
41785
41786 2008-12-07  Bruno Haible  <bruno@clisp.org>
41787
41788         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
41789         test_once): Mark functions as static.
41790         * tests/test-tls.c (test_tls): Likewise.
41791
41792 2008-12-07  Bruno Haible  <bruno@clisp.org>
41793
41794         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
41795         iconv_register_autodetect.
41796
41797 2008-12-07  Jim Meyering  <meyering@redhat.com>
41798
41799         posixtm.c: avoid a warning
41800         * lib/posixtm.c (posixtime): Don't initialize tm0.
41801         It's no longer needed to placate gcc4's -Wuninitialized,
41802         and the attempt to placate would elicit a new warning.
41803
41804         unicodeio.c: mark unused parameters
41805         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41806         (fallback_failure_callback): Likewise.
41807
41808 2008-12-07  Bruno Haible  <bruno@clisp.org>
41809
41810         * gnulib-tool (func_create_testdir): When building the tests
41811         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
41812         Reported by Simon Josefsson.
41813
41814 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41815
41816         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
41817
41818 2008-12-06  Bruno Haible  <bruno@clisp.org>
41819
41820         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
41821         Suggested by Eric Blake.
41822
41823 2008-12-06  Bruno Haible  <bruno@clisp.org>
41824
41825         Fix a c-stack test failure on MacOS X.
41826         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
41827         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
41828         handler for SIGBUS as well.
41829         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
41830         install a signal handler for SIGBUS as well.
41831         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
41832
41833 2008-12-06  Bruno Haible  <bruno@clisp.org>
41834
41835         Advocacy documentation.
41836         * doc/gnulib-intro.texi (Benefits): New section.
41837         * doc/gnulib.texi: Update.
41838
41839 2008-12-06  Bruno Haible  <bruno@clisp.org>
41840
41841         Document the 'manywarnings' module.
41842         * doc/manywarnings.texi: New file.
41843         * doc/gnulib.texi: Include it.
41844
41845 2008-12-05  Eric Blake  <ebb9@byu.net>
41846
41847         tests: silence some gcc warnings
41848         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
41849         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
41850         type mismatches.
41851
41852 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41853             Bruno Haible  <bruno@clisp.org>
41854
41855         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
41856
41857 2008-11-29  Jim Meyering  <meyering@redhat.com>
41858
41859         unicodeio.c: mark unused parameters
41860         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41861         (fallback_failure_callback): Likewise.
41862
41863         fts: fix a thinko
41864         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
41865         (set_stat_type): Return S_IF*-valued "type" directly.
41866         Prompted by James Youngman's spotting a related bug.
41867         Confirmed by further testing through find.
41868
41869         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
41870         * lib/fts.c (D_TYPE): Define.
41871         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
41872         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
41873         (s_ifmt_shift_bits): New function.
41874         (set_stat_type): New function.
41875         (fts_build): When not calling fts_stat, call set_stat_type
41876         to propagate dirent.d_type info to fts_read caller.
41877         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
41878         fts_statp->st_mode type information may be valid.
41879
41880 2008-11-28  Simon Josefsson  <simon@josefsson.org>
41881
41882         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
41883         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
41884         <sds@gnu.org>.
41885
41886 2008-11-20  Bruno Haible  <bruno@clisp.org>
41887
41888         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
41889         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
41890         INCLUDE_NEXT.
41891         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
41892         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
41893         * modules/math (Makefile.am): Substitute
41894         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
41895         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41896
41897 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
41898             Bruno Haible  <bruno@clisp.org>
41899
41900         * lib/stdint.in.h: Define all type macros so that their expansion is
41901         a single typedef'ed token. Fixes a compilation failure in Boost which
41902         does "using ::int8_t;".
41903
41904 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41905
41906         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
41907         gl_MANYWARN_ALL_GCC.
41908         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
41909         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
41910         * modules/manywarnings: New file.
41911         * MODULES.html.sh: Mention manywarnings module.
41912
41913 2008-11-18  Bruno Haible  <bruno@clisp.org>
41914
41915         * doc/gnulib-tool.texi (Unit tests): New section.
41916
41917 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41918
41919         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
41920         paths like 'lib/po/foo.po'.
41921
41922 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41923
41924         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
41925         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
41926
41927 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41928
41929         * m4/warnings.m4: Use CPPFLAGS to really check whether the
41930         parameter works.
41931
41932 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41933
41934         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
41935
41936 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41937
41938         * modules/parse-duration-tests: New file.
41939         * tests/test-parse-duration.sh: New file.
41940         * tests/test-parse-duration.c: New file.
41941
41942         New module 'parse-duration'.
41943         * lib/parse-duration.h: New file.
41944         * lib/parse-duration.c: New file.
41945         * modules/parse-duration: New file.
41946
41947 2008-11-17  Bruno Haible  <bruno@clisp.org>
41948
41949         * tests/test-select-out.sh: Comment out the first pipe test.
41950         Reported by Simon Josefsson.
41951
41952 2008-11-17  Bruno Haible  <bruno@clisp.org>
41953
41954         * modules/getaddrinfo (Depends-on): Add servent, hostent.
41955         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
41956         gl_HOSTENT.
41957
41958 2008-11-17  Bruno Haible  <bruno@clisp.org>
41959
41960         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
41961         -lnetwork and -lnet. Needed for Haiku and BeOS.
41962
41963 2008-11-16  Bruno Haible  <bruno@clisp.org>
41964
41965         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41966
41967 2008-11-16  Bruno Haible  <bruno@clisp.org>
41968
41969         Avoid test failure on Haiku.
41970         * tests/test-fsync.c: Include <errno.h>.
41971         (main): Don't require that fsync (0) fails.
41972
41973 2008-11-15  Bruno Haible  <bruno@clisp.org>
41974
41975         New module 'hostent'.
41976         * modules/hostent: New file.
41977         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41978
41979 2008-11-15  Bruno Haible  <bruno@clisp.org>
41980
41981         New module 'servent'.
41982         * modules/servent: New file.
41983         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41984
41985 2008-11-15  Bruno Haible  <bruno@clisp.org>
41986
41987         Avoid generating same test program with two different rules.
41988         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41989         test-frexp to test-frexp-nolibm.
41990         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41991         test-frexpl to test-frexpl-nolibm.
41992
41993 2008-11-15  Bruno Haible  <bruno@clisp.org>
41994
41995         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41996         $(FREXPL_LIBM).
41997
41998 2008-11-15  Bruno Haible  <bruno@clisp.org>
41999
42000         * lib/netdb.in.h: Activate the definitions also when the system's
42001         <netdb.h> has 'struct addrinfo'.
42002         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
42003         EAI_OVERFLOW or AI_NUMERICSERV.
42004         * doc/posix-headers/netdb.texi: Document the problem.
42005
42006 2008-11-15  Bruno Haible  <bruno@clisp.org>
42007
42008         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
42009
42010         Make the 'sched' module work on platforms where <sched.h> exists but
42011         is incomplete (such as Haiku).
42012         * lib/sched.in.h; Include the system's <sched.h> if it exists.
42013         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
42014         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
42015         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
42016         HAVE_STRUCT_SCHED_PARAM.
42017         * modules/sched (Depends-on): Add include_next.
42018         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
42019         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
42020         * doc/posix-headers/sched.texi: Document the issue.
42021
42022 2008-11-13  Jim Meyering  <meyering@redhat.com>
42023
42024         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
42025         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
42026         test would fail due to the difference in the Report bugs to ...
42027         line.  The expected address is empty, "<>", while the actual
42028         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
42029
42030 2008-11-12  Bruno Haible  <bruno@clisp.org>
42031
42032         lstat: don't compile lstat.c on systems lacking lstat
42033         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
42034         which don't have lstat; this is handled by lib/sys_stat.in.h already.
42035         Reported by Daniel P. Berrange via Jim Meyering.
42036
42037 2008-11-12  Jim Meyering  <meyering@redhat.com>
42038
42039         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
42040
42041 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42042
42043         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
42044         instead.
42045
42046 2008-11-12  Bruno Haible  <bruno@clisp.org>
42047
42048         * lib/unicodeio.c: Include unistr.h.
42049         (utf8_wctomb): Remove function.
42050         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
42051
42052 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42053
42054         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
42055         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
42056         <bruno@clisp.org>.
42057         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
42058
42059 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42060
42061         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
42062         * doc/gnulib.texi: Add section for warnings.
42063
42064 2008-11-11  Bruno Haible  <bruno@clisp.org>
42065
42066         * lib/sockets.h: Add a comment.
42067
42068 2008-11-11  Karl Berry  <karl@gnu.org>
42069
42070         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
42071
42072 2008-11-11  Eric Blake  <ebb9@byu.net>
42073
42074         fdl.texi: avoid git symlinks
42075         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
42076
42077 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42078
42079         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
42080
42081 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42082
42083         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
42084         (gl_WARN_ADD): Substitute $2 if literal.
42085
42086 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42087
42088         * m4/warning.m4: Remove.
42089
42090 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42091
42092         * m4/warnings.m4: Almost complete rewrite. :-)
42093
42094 2008-11-10  Simon Josefsson  <simon@josefsson.org>
42095
42096         * modules/warnings: New module.
42097         * m4/warnings.m4: New file.
42098         * MODULES.html.sh: Mention warnings module.
42099         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
42100         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42101
42102 2008-11-10  Eric Blake  <ebb9@byu.net>
42103
42104         fdl.texi: make a symlink to the latest version
42105         * doc/standards.texi: Revert today's earlier change.
42106         * doc/fdl-1.2.texi: Rename from old fdl.texi...
42107         * doc/fdl.texi: ...and replace this with a symlink to the newer
42108         fdl-1.3.texi.
42109
42110 2008-11-10  Bruno Haible  <bruno@clisp.org>
42111
42112         * tests/test-select-fd.c (main): Accept the result file name as fourth
42113         argument.
42114         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
42115         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
42116
42117 2008-11-10  Bruno Haible  <bruno@clisp.org>
42118
42119         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
42120         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
42121         as autoconf-substituted macros.
42122         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
42123         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
42124         gl_NETDB_H_DEFAULTS. Set these variables.
42125         * modules/netdb (Makefile.am): Substitute these variables.
42126
42127 2008-11-10  Eric Blake  <ebb9@byu.net>
42128
42129         standards.texi: include correct file for FDL 1.3
42130         * doc/standards.texi (GNU Free Documentation License): Change
42131         include file to pull in FDL 1.3, not 1.2.
42132
42133         fdl.texi: revert accidental change to license
42134         * doc/fdl.texi: This is FDL 1.2, not 1.3.
42135
42136 2008-11-10  Bruno Haible  <bruno@clisp.org>
42137
42138         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
42139         cross-compiling guesses also when the native compile gives no result.
42140
42141 2008-11-10  Bruno Haible  <bruno@clisp.org>
42142
42143         * lib/spawni.c (__spawni): Force variable into the stack.
42144
42145 2008-11-10  Bruno Haible  <bruno@clisp.org>
42146
42147         Add support for Haiku.
42148         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
42149         glibc and BeOS, but also on Haiku.
42150         * lib/fpurge.c (fpurge): Likewise.
42151         * lib/freadable.c (freadable): Likewise.
42152         * lib/freadahead.c (freadahead): Likewise.
42153         * lib/freading.c (freading): Likewise.
42154         * lib/freadptr.c (freadptr): Likewise.
42155         * lib/freadseek.c (freadptrinc): Likewise.
42156         * lib/fseeko.c (rpl_fseeko): Likewise.
42157         * lib/fseterr.c (fseterr): Likewise.
42158         * lib/fwritable.c (fwritable): Likewise.
42159         * lib/fwriting.c (fwriting): Likewise.
42160         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
42161
42162 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
42163
42164         * lib/config.charset: Treat Haiku like BeOS.
42165
42166 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
42167
42168         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
42169         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
42170
42171 2008-11-08  Bruno Haible  <bruno@clisp.org>
42172
42173         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
42174         AC_CACHE_CHECK.
42175
42176 2008-11-08  Bruno Haible  <bruno@clisp.org>
42177
42178         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
42179
42180 2008-11-08  Bruno Haible  <bruno@clisp.org>
42181
42182         * tests/test-select-fd.c: New file.
42183         * tests/test-select-in.sh: New file.
42184         * tests/test-select-out.sh: New file.
42185         * tests/test-select-stdin.c: New file.
42186         * modules/select-tests (Files): Add the new files.
42187         (Depends-on): Add gettimeofday.
42188         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
42189         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
42190         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
42191
42192 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
42193             Bruno Haible  <bruno@clisp.org>
42194
42195         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
42196
42197 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
42198
42199         * build-aux/pmccabe2html: Added support for C++ source files.
42200
42201 2008-11-05  Ben Pfaff  <blp@gnu.org>
42202
42203         Fix lib/close.c build on Windows.
42204         * modules/close (Files): Add lib/w32sock.h.
42205
42206 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
42207
42208         Accept Bison's NEWS format.
42209         * build-aux/announce-gen (print_news_deltas): Tweak
42210         $re_prefix.
42211
42212 2008-11-04  Bruno Haible  <bruno@clisp.org>
42213
42214         * modules/random_r (Maintainer): Add glibc.
42215
42216 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42217
42218         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
42219         by karl@freefriends.org (Karl Berry).
42220         * doc/alloca.texi: Likewise.
42221         * doc/c-ctype.texi: Likewise.
42222         * doc/c-strcase.texi: Likewise.
42223         * doc/c-strcaseeq.texi: Likewise.
42224         * doc/c-strcasestr.texi: Likewise.
42225         * doc/c-strstr.texi: Likewise.
42226         * doc/c-strtod.texi: Likewise.
42227         * doc/c-strtold.texi: Likewise.
42228         * doc/ctime.texi: Likewise.
42229         * doc/error.texi: Likewise.
42230         * doc/fdl.texi: Likewise.
42231         * doc/gcd.texi: Likewise.
42232         * doc/getdate.texi: Likewise.
42233         * doc/gnulib-intro.texi: Likewise.
42234         * doc/gnulib-tool.texi: Likewise.
42235         * doc/gnulib.texi: Likewise.
42236         * doc/inet_ntoa.texi: Likewise.
42237         * doc/maintain.texi: Likewise.
42238         * doc/make-stds.texi: Likewise.
42239         * doc/quote.texi: Likewise.
42240         * doc/regexprops-generic.texi: Likewise.
42241         * doc/standards.texi: Likewise.
42242         * doc/verify.texi: Likewise.
42243         * doc/visibility.texi: Likewise.
42244         * doc/gnulib.texi (GNU Free Documentation License): Include
42245         fdl-1.3.texi instead of fdl.texi.
42246
42247 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42248
42249         * doc/fdl-1.3.texi: New file, from
42250         <http://www.gnu.org/licenses/fdl-1.3.texi>.
42251         * modules/fdl-1.3: Add.
42252         * MODULES.html.sh: Add fdl-1.3.
42253
42254 2008-11-03  Bruno Haible  <bruno@clisp.org>
42255
42256         Make determination of absolute name of header file work with AIX xlc.
42257         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
42258         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
42259         preprocessing.
42260         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42261         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42262
42263 2008-11-03  Simon Josefsson  <simon@josefsson.org>
42264
42265         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
42266         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
42267         <ludo@gnu.org>.
42268
42269 2008-11-02  Bruno Haible  <bruno@clisp.org>
42270
42271         Mark 'strpbrk' obsolete.
42272         * modules/strpbrk (Status, Notice): New sections.
42273         * modules/strtok_r (Depends-on): Add strpbrk.
42274
42275 2008-11-02  Bruno Haible  <bruno@clisp.org>
42276
42277         Mark 'strdup' obsolete.
42278         * modules/strdup (Status, Notice): New sections.
42279         * modules/findprog (Depends-on): Add strdup.
42280         * modules/getaddrinfo (Depends-on): Likewise.
42281         * modules/localename (Depends-on): Likewise.
42282         * modules/relocatable-lib (Depends-on): Likewise.
42283         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
42284         * modules/relocatable-prog (Depends-on): Likewise.
42285         * modules/trim (Depends-on): Likewise.
42286         * modules/unictype/gen-ctype (Depends-on): Likewise.
42287         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
42288
42289 2008-11-02  Bruno Haible  <bruno@clisp.org>
42290
42291         Mark 'strcspn' obsolete.
42292         * modules/strcspn (Status, Notice): New sections.
42293
42294 2008-11-02  Bruno Haible  <bruno@clisp.org>
42295
42296         Mark 'rmdir' obsolete.
42297         * modules/rmdir (Status, Notice): New sections.
42298         * modules/clean-temp (Depends-on): Add rmdir.
42299         * modules/openat (Depends-on): Likewise.
42300
42301 2008-11-02  Bruno Haible  <bruno@clisp.org>
42302
42303         Mark 'raise' obsolete.
42304         * modules/raise (Status, Notice): New sections.
42305         (Include): Specify <signal.h>.
42306         * modules/stdio (Depends-on): Add raise.
42307         * modules/write (Depends-on): Likewise.
42308
42309 2008-11-02  Bruno Haible  <bruno@clisp.org>
42310
42311         Mark 'memset' obsolete.
42312         * modules/memset (Status, Notice): New sections.
42313
42314 2008-11-02  Bruno Haible  <bruno@clisp.org>
42315
42316         Mark 'memmove' obsolete.
42317         * modules/memmove (Status, Notice): New sections.
42318         * modules/argp (Depends-on): Add memmove.
42319         * modules/argz (Depends-on): Likewise.
42320         * modules/canonicalize (Depends-on): Likewise.
42321         * modules/canonicalize-lgpl (Depends-on): Likewise.
42322         * modules/fts (Depends-on): Likewise.
42323         * modules/getcwd (Depends-on): Likewise.
42324         * modules/human (Depends-on): Likewise.
42325         * modules/regex (Depends-on): Likewise.
42326         * modules/striconveh (Depends-on): Likewise.
42327         * modules/trim (Depends-on): Likewise.
42328         * modules/unistr/u8-move (Depends-on): Likewise.
42329         * modules/unistr/u16-move (Depends-on): Likewise.
42330         * modules/unistr/u32-move (Depends-on): Likewise.
42331
42332 2008-11-02  Bruno Haible  <bruno@clisp.org>
42333
42334         Mark 'memcpy' obsolete.
42335         * modules/memcpy (Status, Notice): New sections.
42336
42337 2008-11-02  Bruno Haible  <bruno@clisp.org>
42338
42339         Mark 'memcmp' obsolete.
42340         * modules/memcmp (Status, Notice): New sections.
42341         * modules/argmatch (Depends-on): Add memchr.
42342         * modules/backupfile (Depends-on): Likewise.
42343         * modules/c-strcasestr (Depends-on): Likewise.
42344         * modules/crypto/des (Depends-on): Likewise.
42345         * modules/csharpcomp (Depends-on): Likewise.
42346         * modules/fnmatch (Depends-on): Likewise.
42347         * modules/git-merge-changelog (Depends-on): Likewise.
42348         * modules/isnand (Depends-on): Likewise.
42349         * modules/isnand-nolibm (Depends-on): Likewise.
42350         * modules/isnanf (Depends-on): Likewise.
42351         * modules/isnanf-nolibm (Depends-on): Likewise.
42352         * modules/isnanl (Depends-on): Likewise.
42353         * modules/isnanl-nolibm (Depends-on): Likewise.
42354         * modules/mbchar (Depends-on): Likewise.
42355         * modules/memcoll (Depends-on): Likewise.
42356         * modules/quotearg (Depends-on): Likewise.
42357         * modules/regex (Depends-on): Likewise.
42358         * modules/relocatable-prog (Depends-on): Likewise.
42359         * modules/same (Depends-on): Likewise.
42360         * modules/signbit (Depends-on): Likewise.
42361         * modules/strcasestr-simple (Depends-on): Likewise.
42362         * modules/unictype/gen-ctype (Depends-on): Likewise.
42363         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
42364         * modules/uniname/uniname (Depends-on): Likewise.
42365         * modules/unistr/u8-cmp (Depends-on): Likewise.
42366
42367 2008-11-02  Bruno Haible  <bruno@clisp.org>
42368
42369         Mark 'memchr' obsolete.
42370         * modules/memchr (Status, Notice): New sections.
42371         * modules/argp (Depends-on): Add memchr.
42372         * modules/base64 (Depends-on): Likewise.
42373         * modules/c-strcasestr (Depends-on): Likewise.
42374         * modules/chdir-long (Depends-on): Likewise.
42375         * modules/fnmatch (Depends-on): Likewise.
42376         * modules/getsubopt (Depends-on): Likewise.
42377         * modules/git-merge-changelog (Depends-on): Likewise.
42378         * modules/glob (Depends-on): Likewise.
42379         * modules/strcasestr-simple (Depends-on): Likewise.
42380         * modules/strnlen (Depends-on): Likewise.
42381
42382 2008-11-02  Bruno Haible  <bruno@clisp.org>
42383
42384         Mark 'atexit' obsolete.
42385         * modules/atexit (Status, Notice): New sections.
42386         * modules/chdir-long (Depends-on): Add atexit.
42387         * modules/wait-process (Depends-on): Likewise.
42388
42389 2008-11-02  Bruno Haible  <bruno@clisp.org>
42390
42391         * gnulib-tool: New option --with-obsolete.
42392         (func_usage): Document it.
42393         (func_modules_transitive_closure): Drop obsolete dependencies if
42394         incobsolete is not true.
42395         (func_import): Read and save the incobsolete variable to the cache.
42396
42397 2008-11-02  Bruno Haible  <bruno@clisp.org>
42398
42399         * modules/TEMPLATE-EXTENDED: New field 'Status'.
42400         * gnulib-tool: New option --extract-status.
42401         (func_usage): Document it.
42402         (sed_extract_prog): Recognize it.
42403         (func_get_status): New function.
42404
42405 2008-10-30  Simon Josefsson  <simon@josefsson.org>
42406
42407         * modules/sockets (License): Change from LGPL to LGPLv2+.
42408
42409 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42410
42411         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
42412
42413 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42414
42415         * MODULES.html.sh (Support for systems lacking POSIX:2001):
42416         Mention times and sys_times.
42417         * modules/sys_times, modules/sys_times-tests: New modules.
42418         * modules/times, modules/times-tests: Likewise
42419         * m4/sys_times_h.m4: New file.
42420         * lib/sys_times.in.h: Likewise
42421         * lib/times.c: Likewise.
42422         * tests/test-sys_times.c: Likewise.
42423         * tests/test-times.c: Likewise.
42424         * doc/posix-headers/sys_times.texi: Update.
42425         * doc/posix-functions/times.texi: Update.
42426
42427 2008-10-28  Jim Meyering  <meyering@redhat.com>
42428
42429         * modules/tempname (Depends-on): Add lstat.
42430
42431         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
42432
42433 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42434
42435         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
42436         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
42437         using idiom used elsewhere in gnulib.
42438
42439 2008-10-27  Jim Meyering  <meyering@redhat.com>
42440
42441         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
42442
42443 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42444
42445         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
42446         TESTS_ENVIRONMENT, for shell scripts that needs to call built
42447         programs.
42448         * tests/test-argp-2.sh: Use $EXEEXT when needed.
42449
42450 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42451
42452         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
42453
42454 2008-10-27  Bruno Haible  <bruno@clisp.org>
42455
42456         * tests/test-lstat.c: Include <stdio.h>.
42457
42458 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42459
42460         * modules/lstat-tests: New module.
42461         * tests/test-lstat.c: New file.
42462
42463 2008-10-26  Jim Meyering  <meyering@redhat.com>
42464
42465         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
42466
42467 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42468             Bruno Haible  <bruno@clisp.org>
42469
42470         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
42471         * modules/configmake (Include): Add a note that the include must come
42472         after all system headers.
42473         * lib/javaversion.c: Include configmake.h after all other includes.
42474
42475 2008-10-26  Bruno Haible  <bruno@clisp.org>
42476
42477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
42478         HAVE_STRUCT_RANDOM_DATA to 1.
42479         (gl_STDLIB_H): Simplify.
42480
42481 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42482
42483         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
42484         substitute HAVE_STRUCT_RANDOM_DATA.
42485         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
42486         random_data.
42487         * modules/stdlib (Makefile.am): Substitute
42488         HAVE_STRUCT_RANDOM_DATA.
42489
42490 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42491
42492         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
42493         * doc/gnulib-intro.texi (Copyright): Likewise.
42494
42495 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42496
42497         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
42498         findings.
42499
42500 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
42501             Bruno Haible  <bruno@clisp.org>
42502
42503         * lib/unistd.in.h: Include <winsock2.h>.
42504         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
42505         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
42506         Provide dummy declarations.
42507         (gethostname): Override.
42508         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
42509         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
42510         gl_PREREQ_SYS_H_WINSOCK2.
42511         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
42512         * doc/posix-functions/gethostname.texi: More details.
42513
42514 2008-10-25  Bruno Haible  <bruno@clisp.org>
42515
42516         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42517         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
42518         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
42519
42520         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
42521         here ...
42522         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
42523         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
42524         gl_UNISTD_H_DEFAULTS.
42525
42526 2008-10-25  Eric Blake  <ebb9@byu.net>
42527
42528         signbit: avoid spurious compiler failure
42529         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
42530         declarations inside function.
42531
42532 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42533             Bruno Haible  <bruno@clisp.org>
42534
42535         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
42536         * modules/random_r (Depends-on): Add stdint.
42537
42538 2008-10-24  Bruno Haible  <bruno@clisp.org>
42539
42540         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
42541         Eggert.
42542         * modules/strerror (License): Likewise.
42543
42544 2008-10-24  Jim Meyering  <meyering@redhat.com>
42545
42546         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
42547         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
42548
42549 2008-10-24  Eric Blake  <ebb9@byu.net>
42550
42551         getgroups: fix compilation when getgroups is available
42552         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
42553         but with <config.h> override of getgroups disabled.
42554
42555 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42556
42557         * doc/gnulib.texi (Header files): Add note about C++ problems.
42558         Explained by Bruno Haible <bruno@clisp.org>.
42559
42560 2008-10-23  Bruno Haible  <bruno@clisp.org>
42561
42562         Define a dummy SA_NODEFER macro on Interix.
42563         * lib/signal.in.h (SA_NODEFER): Define fallback.
42564         Reported by Aleksey Cheusov <cheusov@tut.by> via
42565         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
42566
42567 2008-10-23  Bruno Haible  <bruno@clisp.org>
42568
42569         * modules/freadahead (License): Change to LGPLv2+.
42570         Suggested by Simon Josefsson.
42571
42572 2008-10-23  Jim Meyering  <meyering@redhat.com>
42573
42574         random_r: new module
42575         * modules/random_r: New file.
42576         * m4/random_r.m4: New file.
42577         * lib/random_r.c: New file, from glibc.
42578         * modules/random_r-tests: New file.
42579         * tests/test-random_r.c: New file.
42580         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
42581          Declare.
42582         (RAND_MAX): Define.
42583         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
42584         * modules/stdlib: Substitute them, too.
42585         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
42586         * doc/glibc-functions/initstate_r.texi: Mention the new module.
42587         * doc/glibc-functions/random_r.texi: Likewise.
42588         * doc/glibc-functions/setstate_r.texi: Likewise.
42589         * doc/glibc-functions/srandom_r.texi: Likewise.
42590         * config/srclist.txt: Mention it.
42591
42592 2008-10-23  David Lutterkort  <lutter@redhat.com>
42593
42594         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
42595         link requirement
42596
42597 2008-10-23  Jim Meyering  <meyering@redhat.com>
42598
42599         selinux-h: mark parameters of stub functions as intentionally unused
42600         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
42601         * lib/se-context.in.h: Likewise.
42602
42603 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42604
42605         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
42606
42607 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42608
42609         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
42610
42611 2008-10-22  Eric Blake  <ebb9@byu.net>
42612
42613         glthread/thread: avoid compiler warning
42614         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
42615         Add unreachable abort to silence compiler.
42616
42617 2008-10-22  Eric Blake  <ebb9@byu.net>
42618
42619         netdb: also supply struct addrinfo for cygwin 1.5.x
42620         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
42621         older cygwin.
42622         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
42623         cygwin.
42624         * doc/posix-headers/netdb.texi (netdb.h): Document this.
42625
42626 2008-10-22  Bruno Haible  <bruno@clisp.org>
42627
42628         * users.txt: Update entry about pspp.
42629
42630 2008-10-21  Bruno Haible  <bruno@clisp.org>
42631
42632         Simplification.
42633         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
42634         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
42635
42636         Simplification.
42637         * lib/ioctl.c (ioctl): Don't undefine.
42638         * lib/socket.c (socket): Don't undefine.
42639
42640         Remove unused module indicator macros.
42641         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
42642         GNULIB_$1 as a C macro.
42643
42644         * doc/posix-functions/close.texi: Undo last change.
42645         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
42646         Windows platforms.
42647
42648 2008-10-21  Bruno Haible  <bruno@clisp.org>
42649
42650         Add gethostname() declaration to <unistd.h>.
42651         * lib/unistd.in.h (gethostname): New declaration.
42652         * lib/gethostname.c: Include <unistd.h>.
42653         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
42654         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
42655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
42656         and HAVE_GETHOSTNAME.
42657         * modules/gethostname (Depends-on): Add unistd.
42658         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42659         (Include): Specify <unistd.h>.
42660         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
42661         HAVE_GETHOSTNAME.
42662         * tests/test-gethostname.c: Include <unistd.h> first.
42663
42664 2008-10-21  Bruno Haible  <bruno@clisp.org>
42665
42666         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
42667         * modules/select-tests (Depends-on): Likewise.
42668         Reported by Simon Josefsson.
42669
42670 2008-10-21  Simon Josefsson  <simon@josefsson.org>
42671
42672         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
42673         * lib/accept.c: New file, based on winsock.c.
42674         * lib/bind.c: New file, based on winsock.c.
42675         * lib/connect.c: New file, based on winsock.c.
42676         * lib/getpeername.c: New file, based on winsock.c.
42677         * lib/getsockname.c: New file, based on winsock.c.
42678         * lib/getsockopt.c: New file, based on winsock.c.
42679         * lib/ioctl.c: New file, based on winsock.c.
42680         * lib/listen.c: New file, based on winsock.c.
42681         * lib/recv.c: New file, based on winsock.c.
42682         * lib/recvfrom.c: New file, based on winsock.c.
42683         * lib/send.c: New file, based on winsock.c.
42684         * lib/sendto.c: New file, based on winsock.c.
42685         * lib/setsockopt.c: New file, based on winsock.c.
42686         * lib/shutdown.c: New file, based on winsock.c.
42687         * lib/socket.c: New file, based on winsock.c.
42688         * lib/w32sock.h: New file, based on winsock.c.
42689         * lib/winsock.c: Remove file.
42690         * modules/accept: Likewise.
42691         * modules/bind: Likewise.
42692         * modules/connect: Likewise.
42693         * modules/getpeername: Likewise.
42694         * modules/getsockname: Likewise.
42695         * modules/getsockopt: Likewise.
42696         * modules/ioctl: Likewise.
42697         * modules/listen: Likewise.
42698         * modules/recv: Likewise.
42699         * modules/recvfrom: Likewise.
42700         * modules/send: Likewise.
42701         * modules/sendto: Likewise.
42702         * modules/setsockopt: Likewise.
42703         * modules/shutdown: Likewise.
42704         * modules/socket: Use socket.c instead of winsock.c.
42705         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
42706         * doc/posix-functions/accept.texi: Doc fix.
42707         * doc/posix-functions/bind.texi: Doc fix.
42708         * doc/posix-functions/close.texi: Doc fix.
42709         * doc/posix-functions/connect.texi: Doc fix.
42710         * doc/posix-functions/getpeername.texi: Doc fix.
42711         * doc/posix-functions/getsockname.texi: Doc fix.
42712         * doc/posix-functions/getsockopt.texi: Doc fix.
42713         * doc/posix-functions/ioctl.texi: Doc fix.
42714         * doc/posix-functions/listen.texi: Doc fix.
42715         * doc/posix-functions/recv.texi: Doc fix.
42716         * doc/posix-functions/recvfrom.texi: Doc fix.
42717         * doc/posix-functions/send.texi: Doc fix.
42718         * doc/posix-functions/sendto.texi: Doc fix.
42719         * doc/posix-functions/setsockopt.texi: Doc fix.
42720         * doc/posix-functions/shutdown.texi: Doc fix.
42721         * doc/posix-functions/socket.texi: Doc fix.
42722
42723 2008-10-20  Bruno Haible  <bruno@clisp.org>
42724
42725         Take into account the role of SIGABRT_COMPAT on Windows 2008.
42726         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
42727         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
42728         as an alias for SIGABRT.
42729         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
42730         (sigaction): Map it to SIGABRT.
42731         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
42732
42733 2008-10-20  Bruno Haible  <bruno@clisp.org>
42734
42735         * lib/fts.c: Don't include lstat.h.
42736         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
42737
42738         Move the lstat() declaration to <sys/stat.h>.
42739         * lib/lstat.h: Remove file.
42740         * lib/sys_stat.in.h: Add special invocation convention.
42741         (lstat): New declaration.
42742         * lib/lstat.c (orig_lstat): New function.
42743         (rpl_lstat): Use orig_lstat instead of lstat.
42744         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
42745         AC_C_INLINE. Set REPLACE_LSTAT.
42746         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
42747         and REPLACE_LSTAT.
42748         * modules/lstat (Files): Remove lib/lstat.h.
42749         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42750         (Include): Specify <sys/stat.h> instead of lstat.h.
42751         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
42752         REPLACE_LSTAT.
42753         * NEWS: Mention the change.
42754
42755 2008-10-20  Bruno Haible  <bruno@clisp.org>
42756
42757         * modules/posix_spawn-tests: New file.
42758         * tests/test-posix_spawn3.c: New file.
42759
42760 2008-10-20  Bruno Haible  <bruno@clisp.org>
42761
42762         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
42763         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42764         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
42765         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42766         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
42767
42768 2008-10-20  Bruno Haible  <bruno@clisp.org>
42769
42770         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
42771         of posix_spawn on AIX 5.3.
42772
42773 2008-10-20  Bruno Haible  <bruno@clisp.org>
42774
42775         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
42776
42777 2008-10-20  Bruno Haible  <bruno@clisp.org>
42778
42779         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
42780         of AC_LANG_PROGRAM.
42781
42782 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42783
42784         * lib/netdb.in.h: Don't define GNU specific constants until they
42785         are supported or needed.  Reported by Bruno Haible
42786         <bruno@clisp.org>.
42787
42788 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42789
42790         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
42791
42792 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42793
42794         * lib/getaddrinfo.h: Remove file.
42795         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
42796         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
42797         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
42798         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
42799         * modules/netdb: Substitute GNULIB_GETADDRINFO.
42800         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
42801         * tests/test-getaddrinfo.c: Likewise.
42802         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
42803         * NEWS: Mention change.
42804
42805 2008-10-19  Bruno Haible  <bruno@clisp.org>
42806
42807         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
42808
42809 2008-10-19  Bruno Haible  <bruno@clisp.org>
42810
42811         * lib/wait-process.c: Include simply <sys/wait.h>.
42812         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
42813         WIFSTOPPED): Remove fallback definitions.
42814         * modules/wait-process (Depends-on): Add sys_wait.
42815
42816         New module 'sys_wait'.
42817         * modules/sys_wait: New file.
42818         * lib/sys_wait.in.h: New file, partially copied from
42819         lib/wait-process.c.
42820         * m4/sys_wait_h.m4: New file.
42821         * doc/posix-headers/sys_wait.texi: Mention the new module.
42822
42823 2008-10-19  Bruno Haible  <bruno@clisp.org>
42824
42825         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
42826
42827 2008-10-19  Bruno Haible  <bruno@clisp.org>
42828
42829         Assume that waitpid() fills an 'int' status, not a 'union wait'.
42830         * lib/wait-process.c (WAIT_T): Remove type.
42831         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
42832         (wait_subprocess): Update.
42833
42834 2008-10-19  Bruno Haible  <bruno@clisp.org>
42835
42836         New module 'atoll'.
42837         * modules/atoll: New file.
42838         * lib/stdlib.in.h (atoll): New declaration.
42839         * lib/atoll.c: New file, from glibc with modifications.
42840         * m4/atoll.m4: New file.
42841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
42842         HAVE_ATOLL.
42843         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
42844         * doc/posix-functions/atoll.texi: Mention the new module.
42845
42846 2008-10-19  Bruno Haible  <bruno@clisp.org>
42847
42848         Add strtoull() declaration to <stdlib.h>.
42849         * lib/stdlib.in.h (strtoull): New declaration.
42850         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42851         Set HAVE_STRTOULL.
42852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
42853         HAVE_STRTOULL.
42854         * modules/strtoull (Depends-on): Add stdlib.
42855         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42856         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
42857         HAVE_STRTOULL.
42858
42859 2008-10-19  Bruno Haible  <bruno@clisp.org>
42860
42861         Add strtoll() declaration to <stdlib.h>.
42862         * lib/stdlib.in.h (strtoll): New declaration.
42863         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42864         Set HAVE_STRTOLL.
42865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
42866         HAVE_STRTOLL.
42867         * modules/strtoll (Depends-on): Add stdlib.
42868         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42869         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
42870
42871 2008-10-19  Bruno Haible  <bruno@clisp.org>
42872
42873         * modules/bcopy (Depends-on): Add strings.
42874         (Include): Specify <strings.h>.
42875
42876 2008-10-19  Bruno Haible  <bruno@clisp.org>
42877
42878         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
42879
42880 2008-10-19  Bruno Haible  <bruno@clisp.org>
42881
42882         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
42883         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
42884         mingw.
42885
42886 2008-10-19  Bruno Haible  <bruno@clisp.org>
42887
42888         * lib/atanl.c: Don't include isnanl.h.
42889         * lib/cosl.c: Likewise.
42890         * lib/ldexpl.c: Likewise.
42891         * lib/logl.c: Likewise.
42892         * lib/sinl.c: Likewise.
42893         * lib/sqrtl.c: Likewise.
42894         * lib/tanl.c: Likewise.
42895
42896         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
42897         * lib/isnanf.h: Remove file.
42898         * lib/isnand.h: Remove file.
42899         * lib/isnanl.h: Remove file.
42900         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
42901         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
42902         macros.
42903         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
42904         HAVE_ISNANF, don't define it as a C macro.
42905         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
42906         HAVE_ISNAND, don't define it as a C macro.
42907         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
42908         HAVE_ISNANL, don't define it as a C macro.
42909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
42910         HAVE_ISNAN[FDL].
42911         * modules/isnanf (Files): Remove lib/isnanf.h.
42912         (Depends-on): Add math.
42913         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42914         (Include): Specify <math.h> instead of isnanf.h.
42915         * modules/isnand (Files): Remove lib/isnand.h.
42916         (Depends-on): Add math.
42917         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42918         (Include): Specify <math.h> instead of isnand.h.
42919         * modules/isnanl (Files): Remove lib/isnanl.h.
42920         (Depends-on): Add math.
42921         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42922         (Include): Specify <math.h> instead of isnanl.h.
42923         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
42924         HAVE_ISNAN[FDL].
42925         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
42926         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
42927         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
42928         * NEWS: Mention the change.
42929
42930 2008-10-18  Bruno Haible  <bruno@clisp.org>
42931
42932         Add getusershell(), setusershell(), endusershell() declarations to
42933         <unistd.h>.
42934         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
42935         declarations.
42936         * lib/getusershell.c: Include unistd.h.
42937         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
42938         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42939         HAVE_GETUSERSHELL.
42940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
42941         and HAVE_GETUSERSHELL.
42942         * modules/getusershell (Depends-on): Add unistd, extensions.
42943         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42944         (Include): Specify <unistd.h>.
42945         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
42946         HAVE_GETUSERSHELL.
42947
42948 2008-10-18  Bruno Haible  <bruno@clisp.org>
42949
42950         Add a getloadavg() declaration to <stdlib.h>.
42951         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
42952         getloadavg declaration.
42953         (getloadavg): New declaration.
42954         * lib/getloadavg.c: Include <stdlib.h> first.
42955         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
42956         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
42957         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
42958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
42959         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42960         * modules/getloadavg (Depends-on): Add stdlib, extensions.
42961         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42962         (Include): Specify <stdlib.h>.
42963         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
42964         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42965
42966 2008-10-18  Bruno Haible  <bruno@clisp.org>
42967
42968         * lib/dirchownmod.c: Don't include lchmod.h.
42969
42970         Move the lchmod() declaration to <sys/stat.h>.
42971         * lib/lchmod.h: Remove file.
42972         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
42973         (lchmod): New declaration, moved here from lib/lchown.h.
42974         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42975         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42976         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42977         and HAVE_LCHMOD.
42978         * modules/lchmod (Files): Remove lib/lchmod.h.
42979         (Depends-on): Add sys_stat, extensions.
42980         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42981         (Include): Specify <sys/stat.h> instead of lchmod.h.
42982         * modules/sys_stat (Depends-on): Add link-warning.
42983         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42984         definition of GL_LINK_WARNING.
42985         * NEWS: Mention the change.
42986
42987 2008-10-18  Bruno Haible  <bruno@clisp.org>
42988
42989         * lib/fchdir.c: Don't include dirfd.h.
42990         * lib/fts.c: Likewise.
42991         * lib/getcwd.c: Likewise.
42992         * lib/glob.c: Likewise.
42993
42994         Move the dirfd() declaration to <dirent.h>.
42995         * lib/dirfd.h: Remove file.
42996         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42997         (dirfd): New declaration.
42998         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42999         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
43000         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
43001         HAVE_DECL_DIRFD.
43002         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
43003         HAVE_DECL_DIRFD.
43004         * modules/dirfd (Files): Remove lib/dirfd.h.
43005         (Depends-on): Add dirent, extensions.
43006         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
43007         (Include): Specify <dirent.h> instead of dirfd.h.
43008         * modules/dirent (Depends-on): Add link-warning.
43009         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
43010         definition of GL_LINK_WARNING.
43011         * NEWS: Mention the change.
43012
43013 2008-10-18  Bruno Haible  <bruno@clisp.org>
43014
43015         Move the euidaccess() declaration to <unistd.h>.
43016         * lib/euidaccess.h: Remove file.
43017         * lib/unistd.in.h (euidaccess): New declaration.
43018         * lib/euidaccess.c: Don't include euidaccess.h.
43019         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
43020         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
43021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
43022         and HAVE_EUIDACCESS.
43023         * modules/euidaccess (Files): Remove lib/euidaccess.h.
43024         (Depends-on): Add unistd.
43025         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43026         (Include): Specify <unistd.h> instead of euidaccess.h.
43027         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
43028         HAVE_EUIDACCESS.
43029         * NEWS: Mention the change.
43030
43031 2008-10-18  Bruno Haible  <bruno@clisp.org>
43032
43033         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
43034
43035         Move the getdomainname() declaration to <unistd.h>.
43036         * lib/getdomainname.h: Remove file.
43037         * lib/unistd.in.h (getdomainname): New declaration.
43038         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
43039         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
43040         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43041         HAVE_GETDOMAINNAME.
43042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43043         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
43044         * modules/getdomainname (Files): Remove lib/getdomainname.h.
43045         (Depends-on): Add unistd, extensions.
43046         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43047         (Includes): Specify <unistd.h> instead of getdomainname.h.
43048         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
43049         HAVE_GETDOMAINNAME.
43050         * NEWS: Mention the change.
43051
43052 2008-10-18  Bruno Haible  <bruno@clisp.org>
43053
43054         * modules/dirent: New file.
43055         * m4/dirent_h.m4: New file.
43056         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
43057         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
43058         * modules/fchdir (Files): Remove lib/dirent.in.h.
43059         (Depends-on): Add dirent.
43060         (Makefile.am): Move rules to modules/dirent.
43061         * doc/posix-headers/dirent.texi: Mention the new module.
43062
43063 2008-10-18  Bruno Haible  <bruno@clisp.org>
43064
43065         Avoid -Wunused-parameter warnings in public gnulib header files.
43066         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
43067         macro.
43068         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
43069
43070 2008-10-18  Bruno Haible  <bruno@clisp.org>
43071
43072         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
43073         * doc/glibc-functions/error.texi: Mention the module 'error'.
43074         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
43075         * doc/glibc-functions/getdomainname.texi: Mention the module
43076         'getdomainname'.
43077         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
43078         * doc/glibc-functions/getpagesize.texi: Mention the module
43079         'getpagesize'.
43080         * doc/glibc-functions/getusershell.texi: Mention the module
43081         'getusershell'.
43082         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
43083         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
43084         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
43085         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
43086         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
43087         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
43088         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
43089         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
43090         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
43091         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
43092         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
43093         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
43094         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
43095         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
43096
43097 2008-10-17  Bruno Haible  <bruno@clisp.org>
43098
43099         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
43100         HP-UX and IRIX, use -0.0L.
43101         * tests/test-ceill.c (minus_zero): Likewise.
43102         * tests/test-floorl.c (minus_zero): Likewise.
43103         * tests/test-frexpl.c (minus_zero): Likewise.
43104         * tests/test-isnan.c (minus_zerol): Likewise.
43105         * tests/test-isnanl.h (minus_zero): Likewise.
43106         * tests/test-ldexpl.c (minus_zero): Likewise.
43107         * tests/test-roundl.c (minus_zero): Likewise.
43108         * tests/test-signbit.c (minus_zerol): Likewise.
43109         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43110         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43111         * tests/test-truncl.c (minus_zero): Likewise.
43112         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43113         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43114         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
43115         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43116
43117 2008-10-17  Bruno Haible  <bruno@clisp.org>
43118
43119         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
43120         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
43121         that it gets activated only for gcc >= 3.0.
43122         * lib/dirent.in.h: Likewise.
43123         * lib/errno.in.h: Likewise.
43124         * lib/fcntl.in.h: Likewise.
43125         * lib/float.in.h: Likewise.
43126         * lib/iconv.in.h: Likewise.
43127         * lib/inttypes.in.h: Likewise.
43128         * lib/locale.in.h: Likewise.
43129         * lib/math.in.h: Likewise.
43130         * lib/netdb.in.h: Likewise.
43131         * lib/netinet_in.in.h: Likewise.
43132         * lib/search.in.h: Likewise.
43133         * lib/signal.in.h: Likewise.
43134         * lib/spawn.in.h: Likewise.
43135         * lib/stdarg.in.h: Likewise.
43136         * lib/stdint.in.h: Likewise.
43137         * lib/stdio.in.h: Likewise.
43138         * lib/stdlib.in.h: Likewise.
43139         * lib/string.in.h: Likewise.
43140         * lib/strings.in.h: Likewise.
43141         * lib/sys_file.in.h: Likewise.
43142         * lib/sys_ioctl.in.h: Likewise.
43143         * lib/sys_select.in.h: Likewise.
43144         * lib/sys_socket.in.h: Likewise.
43145         * lib/sys_stat.in.h: Likewise.
43146         * lib/sys_time.in.h: Likewise.
43147         * lib/sysexits.in.h: Likewise.
43148         * lib/time.in.h: Likewise.
43149         * lib/unistd.in.h: Likewise.
43150         * lib/wchar.in.h: Likewise.
43151         * lib/wctype.in.h: Likewise.
43152         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43153
43154 2008-10-17  Jim Meyering  <meyering@redhat.com>
43155
43156         ignore-value: don't depend on inline module
43157         * modules/ignore-value (Depends-on): Remove 'inline'.
43158         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
43159         Suggestion from Bruno Haible.
43160
43161 2008-10-17  Bruno Haible  <bruno@clisp.org>
43162
43163         New implementation of condition variables for Win32.
43164         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
43165         (gl_linked_waitqueue_t): New type.
43166         (gl_cond_t): Use it.
43167         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
43168         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
43169         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
43170         (glthread_cond_init_func, glthread_cond_wait_func,
43171         glthread_cond_timedwait_func, glthread_cond_signal_func,
43172         glthread_cond_broadcast_func, glthread_cond_destroy_func):
43173         Reimplemented on the basis of gl_linked_waitqueue_t.
43174         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
43175         gl_waitqueue_t.
43176         (gl_rwlock_t): Update.
43177         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
43178
43179 2008-10-17  Simon Josefsson  <simon@josefsson.org>
43180
43181         * modules/recvfrom (Depends-on): Add dependency on getpeername.
43182         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43183
43184 2008-10-17  Jim Meyering  <meyering@redhat.com>
43185
43186         ignore-value: new module
43187         * modules/ignore-value: New file.
43188         * lib/ignore-value.h: New file.
43189         * MODULES.html.sh (Compiler warning management): New section,
43190         just for this module.  More to come.
43191
43192 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43193
43194         open-safer.c: avoid 'signed and unsigned in conditional...' warning
43195         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
43196         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
43197
43198 2008-10-16  Jim Meyering  <meyering@redhat.com>
43199
43200         openat-die.c: avoid 'no previous prototype' warning
43201         * lib/openat-die.c: Include "openat.h".
43202         Reported by Reuben Thomas <rrt@sc3d.org>.
43203
43204 2008-10-16  Simon Josefsson  <simon@josefsson.org>
43205
43206         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
43207         * lib/netdb.in.h: Fix typo.
43208         Reported by Bruno Haible  <bruno@clisp.org>
43209
43210         * lib/netdb.in.h: Include sys/socket.h for platforms without
43211         netdb.h, to get structures like hostent on MinGW.
43212         * modules/netdb (Depends-on): Add sys_socket.
43213
43214 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43215
43216         * modules/netdb, modules/netdb-tests: New file.
43217         * m4/netdb_h.m4: New file.
43218         * lib/netdb.in.h: Add, currently just an empty file pending
43219         definitions.
43220         * tests/test-netdb.c: New file.
43221         * doc/posix-headers/netdb.texi: Mention that we replace it if
43222         needed.
43223         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43224         netdb.
43225
43226 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43227
43228         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
43229         with code.
43230
43231 2008-10-13  Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/glthread/cond.c (glthread_cond_wait_func,
43234         glthread_cond_timedwait_func): Add a comment.
43235
43236 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43237
43238         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
43239         * tests/test-select.c: Likewise,
43240
43241 2008-10-13  Bruno Haible  <bruno@clisp.org>
43242
43243         * lib/glthread/cond.c (glthread_cond_wait_func,
43244         glthread_cond_timedwait_func): Fix variable name.
43245         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43246
43247 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
43248
43249         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
43250         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
43251         struct sockaddr.sa_len.
43252         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
43253
43254 2008-10-13  Simon Josefsson  <simon@josefsson.org>
43255
43256         * build-aux/pmccabe2html: Add css and css_url parameters.
43257
43258 2008-10-12  Bruno Haible  <bruno@clisp.org>
43259
43260         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
43261         calling aclx_get.
43262         Reported by Rainer Tammer <tammer@tammer.net>.
43263
43264 2008-10-12  Bruno Haible  <bruno@clisp.org>
43265
43266         Use msvcrt aware primitives for creation/termination of Win32 threads.
43267         * lib/glthread/thread.c: Include <process.h>.
43268         (glthread_create_func): Use _beginthreadex instead of CreateThread.
43269         (wrapper_func): Update signature.
43270         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
43271
43272 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43273             Bruno Haible  <bruno@clisp.org>
43274
43275         Provide a Win32 implementation of the 'cond' module.
43276         * lib/glthread/cond.h [USE_WIN32]: New implementation.
43277         * lib/glthread/cond.c (glthread_cond_init_func,
43278         glthread_cond_wait_func, glthread_cond_timedwait_func,
43279         glthread_cond_signal_func, glthread_cond_broadcast_func,
43280         glthread_cond_destroy_func) [USE_WIN32]: New functions.
43281         * modules/cond (Dependencies): Add gettimeofday.
43282
43283 2008-10-11  Bruno Haible  <bruno@clisp.org>
43284
43285         Make sleep work on older versions of mingw.
43286         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
43287         only whether it exists.
43288         * doc/posix-functions/sleep.texi: Mention the problem with older
43289         versions of mingw.
43290
43291 2008-10-11  Bruno Haible  <bruno@clisp.org>
43292
43293         New module 'shutdown'.
43294         * modules/shutdown: New file.
43295         * lib/sys_socket.in.h (shutdown): New declaration.
43296         * lib/winsock.c (shutdown): New function.
43297         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43298         GNULIB_SHUTDOWN.
43299         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
43300         * doc/posix-functions/shutdown.texi: Document the new module.
43301
43302 2008-10-11  Jim Meyering  <meyering@redhat.com>
43303
43304         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
43305
43306 2008-10-11  Bruno Haible  <bruno@clisp.org>
43307
43308         New module 'fclose'.
43309         * modules/fclose: New file.
43310         * lib/stdio.in.h (fclose): New declaration.
43311         * lib/fclose.c: New file.
43312         * m4/fclose.m4: New file.
43313         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
43314         REPLACE_FCLOSE.
43315         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
43316         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
43317         REPLACE_FCLOSE.
43318         * modules/close (Depends-on): fclose.
43319         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
43320
43321 2008-10-11  Bruno Haible  <bruno@clisp.org>
43322
43323         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
43324         set errno and don't call _close.
43325
43326 2008-10-10  Bruno Haible  <bruno@clisp.org>
43327
43328         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
43329         ACL, not afterwards. Fixes test failure on Cygwin.
43330
43331 2008-10-09  Ben Pfaff  <blp@gnu.org>
43332
43333         * build-aux/announce-gen: Fix gnulib version related part of usage
43334         message.  Die with a useful error message if no tarballs are
43335         found.
43336
43337 2008-10-10  Jim Meyering  <meyering@redhat.com>
43338
43339         bootstrap: use git's --depth=N option only if it's supported
43340         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
43341         recognize the --depth option.  Reported by Pádraig Brady.
43342
43343 2008-10-09  Bruno Haible  <bruno@clisp.org>
43344
43345         New module 'ioctl'.
43346         * modules/ioctl: New file.
43347         * lib/sys_socket.in.h (ioctl): Remove declaration.
43348         * lib/winsock.c: Include <sys/ioctl.h>.
43349         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
43350         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43351         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
43352         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
43353         * doc/posix-functions/ioctl.texi: Mention the new module.
43354
43355 2008-10-09  Bruno Haible  <bruno@clisp.org>
43356
43357         New module 'sys_ioctl'.
43358         * lib/sys_ioctl.in.h: New file.
43359         * m4/sys_ioctl_h.m4: New file.
43360         * modules/sys_ioctl: New file.
43361         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
43362
43363 2008-10-09  Bruno Haible  <bruno@clisp.org>
43364
43365         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
43366         * lib/winsock.c: Include <stdarg.h>.
43367         (rpl_ioctl): Change to second argument 'int' and then varargs.
43368
43369 2008-10-09  Bruno Haible  <bruno@clisp.org>
43370
43371         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
43372         when the sys_socket module is present and the system has <winsock2.h>.
43373
43374 2008-10-09  Bruno Haible  <bruno@clisp.org>
43375
43376         * doc/posix-functions/close.texi: Mention module 'close' instead of
43377         module 'sys_socket'.
43378
43379 2008-10-09  Bruno Haible  <bruno@clisp.org>
43380
43381         * doc/glibc-headers/sys_ioctl.texi: New file.
43382         * doc/gnulib.texi: Include it.
43383
43384 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43385             Bruno Haible  <bruno@clisp.org>
43386
43387         Combine the two replacements of 'close'.
43388         * lib/sys_socket.in.h (close): Define to a reminder to include
43389         <unistd.h>.
43390         (_gl_close_fd_maybe_socket): New declaration.
43391         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
43392         * lib/winsock.c (close): Remove undefinition.
43393         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
43394         needed for the gnulib module 'close'.
43395         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
43396         define to an error symbol or to a warning, if suitable.
43397         * lib/close.c: Include <sys/socket.h>.
43398         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
43399         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
43400         UNISTD_H_HAVE_WINSOCK2_H.
43401         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
43402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43403         UNISTD_H_HAVE_WINSOCK2_H.
43404         * modules/sys_socket (Files): Add m4/unistd_h.m4.
43405         (configure.ac): Set a module indicator.
43406         (Makefile.am): Substitute GNULIB_CLOSE.
43407         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
43408         * modules/poll-tests (Depends-on): Add close.
43409         * modules/select-tests (Depends-on): Likewise.
43410
43411 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43412             Bruno Haible  <bruno@clisp.org>
43413
43414         New module 'close'.
43415         * modules/close: New file.
43416         * lib/unistd.in.h (close): Move declaration out of the
43417         FCHDIR_REPLACEMENT scope.
43418         (_gl_unregister_fd): New declaration.
43419         * lib/close.c: New file.
43420         * lib/fchdir.c (rpl_close): Remove function.
43421         * m4/close.m4: New file.
43422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43423         close.
43424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
43425         REPLACE_CLOSE.
43426         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
43427         REPLACE_CLOSE.
43428         * modules/fchdir (Depends-on): Add close.
43429
43430 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43431             Bruno Haible  <bruno@clisp.org>
43432
43433         * lib/fcntl.in.h (open): Simplify conditionals.
43434         (_gl_register_fd): New declaration.
43435         * lib/fchdir.c (rpl_open): Remove function.
43436         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
43437         also.
43438         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
43439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43440         open.
43441
43442 2008-10-09  Jim Meyering  <meyering@redhat.com>
43443
43444         GNUmakefile: use the more name-space-friendly "_version"
43445         * top/GNUmakefile (_dummy): Update.
43446         (_version): Rename from "version".
43447
43448 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43449             Bruno Haible  <bruno@clisp.org>
43450
43451         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
43452         rpl_close.
43453         (_gl_register_fd): New function, extracted from rpl_open.
43454         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
43455         (rpl_open, rpl_opendir): Use _gl_register_fd.
43456
43457 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43458
43459         Fix organization of 'open' replacement.
43460         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
43461         (gl_FUNC_OPEN): Use it.
43462         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
43463
43464 2008-10-08  Bruno Haible  <bruno@clisp.org>
43465
43466         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
43467
43468 2008-10-08  Simon Josefsson  <simon@josefsson.org>
43469
43470         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
43471         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
43472         listen).
43473
43474 2008-10-08  Eric Blake  <ebb9@byu.net>
43475
43476         GNUmakefile: add 'make version' target
43477         * top/GNUmakefile (_curr-ver): Split version update rules...
43478         (version): ...into a target.
43479
43480 2008-10-07  Bruno Haible  <bruno@clisp.org>
43481
43482         Use a more portable replacement expression for -0.0L.
43483         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
43484         instead of -0.0L. Fix m4 quotation.
43485
43486         * tests/test-signbit.c: Include <float.h>.
43487         (minus_zero): New variable.
43488         (test_signbitl): Use minus_zero instead of -zero.
43489         * modules/signbit-tests (Depends-on): Add float.
43490
43491         * tests/test-ceill.c: Include <float.h>.
43492         (zero): Remove variable.
43493         (minus_zero): New variable.
43494         (main): Use minus_zero instead of -zero.
43495         * modules/ceill-tests (Depends-on): Add float.
43496
43497         * tests/test-floorl.c: Include <float.h>.
43498         (zero): Remove variable.
43499         (minus_zero): New variable.
43500         (main): Use minus_zero instead of -zero.
43501         * modules/floorl-tests (Depends-on): Add float.
43502
43503         * tests/test-roundl.c: Include <float.h>.
43504         (zero): Remove variable.
43505         (minus_zero): New variable.
43506         (main): Use minus_zero instead of -zero.
43507         * modules/roundl-tests (Depends-on): Add float.
43508
43509         * tests/test-truncl.c: Include <float.h>.
43510         (zero): Remove variable.
43511         (minus_zero): New variable.
43512         (main): Use minus_zero instead of -zero.
43513         * modules/truncl-tests (Depends-on): Add float.
43514
43515         * tests/test-frexpl.c (zero): Remove variable.
43516         (minus_zero): New variable.
43517         (main): Use minus_zero instead of -zero.
43518         * modules/frexpl-tests (Depends-on): Add float.
43519
43520         * tests/test-isnan.c (zerol): Remove variable.
43521         (minus_zerol): New variable.
43522         (test_long_double): Use minus_zerol instead of -zerol.
43523         * modules/isnan-tests (Depends-on): Add float.
43524
43525         * tests/test-isnanl.h (zero): Remove variable.
43526         (minus_zero): New variable.
43527         (main): Use minus_zero instead of -zero.
43528         * modules/isnanl-nolibm-tests (Depends-on): Add float.
43529         * modules/isnanl-tests (Depends-on): Add float.
43530
43531         * tests/test-ldexpl.c (zero): Remove variable.
43532         (minus_zero): New variable.
43533         (main): Use minus_zero instead of -zero.
43534         * modules/ldexpl-tests (Depends-on): Add float.
43535
43536         * tests/test-snprintf-posix.h (zerol): Remove variable.
43537         (minus_zerol): New variable.
43538         (test_function): Use minus_zerol instead of -zerol.
43539         * modules/snprintf-posix-tests (Depends-on): Add float.
43540         * modules/vsnprintf-posix-tests (Depends-on): Add float.
43541
43542         * tests/test-sprintf-posix.h (zerol): Remove variable.
43543         (minus_zerol): New variable.
43544         (test_function): Use minus_zerol instead of -zerol.
43545         * modules/sprintf-posix-tests (Depends-on): Add float.
43546         * modules/vsprintf-posix-tests (Depends-on): Add float.
43547
43548         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
43549         (minus_zerol): New variable.
43550         (test_function): Use minus_zerol instead of -zerol.
43551         * modules/vasnprintf-posix-tests (Depends-on): Add float.
43552
43553         * tests/test-vasprintf-posix.c (zerol): Remove variable.
43554         (minus_zerol): New variable.
43555         (test_function): Use minus_zerol instead of -zerol.
43556         * modules/vasprintf-posix-tests (Depends-on): Add float.
43557
43558 2008-10-07  Simon Josefsson  <simon@josefsson.org>
43559
43560         * MODULES.html.sh (Support for building documentation): Mention
43561         pmccabe2html.  Sort entries.
43562
43563         Add pmccabe2html module, from gnupdf.
43564         * build-aux/pmccabe.css: New file.
43565         * build-aux/pmccabe2html: New file.
43566         * m4/pmccabe2html.m4: New file.
43567         * modules/pmccabe2html: New file.
43568
43569 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
43570
43571         flock: new module
43572         * MODULES.html.sh: Add to list of modules.
43573         * lib/flock.c: flock implementation for Windows and Unix systems
43574         which have fcntl.
43575         * doc/glibc-functions/flock.texi: Update documentation.
43576         * lib/sys_file.in.h: <sys/file.h> header file.
43577         * m4/flock.m4: M4 macros.
43578         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
43579         * modules/flock: flock module.
43580         * modules/flock-tests: flock tests module.
43581         * modules/sys_file: sys/file.h module.
43582         * tests/test-flock.c: test suite for flock.
43583
43584 2008-10-06  Jim Meyering  <meyering@redhat.com>
43585
43586         bootstrap: check for LT_INIT more portably still ;-)
43587         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
43588         Spotted by Bruno Haible.
43589
43590 2008-10-06  Eric Blake  <ebb9@byu.net>
43591
43592         test-signbit: avoid tripping Irix cc bug on -0.0L
43593         * tests/test-signbit.c (minus_zerol): Delete, and replace with
43594         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
43595         entire testsuite consistent and avoids an Irix 6.2 bug.
43596
43597 2008-10-05  Bruno Haible  <bruno@clisp.org>
43598             Jim Meyering  <jim@meyering.net>
43599
43600         Add an option for ignoring EPIPE during close_stdout.
43601         * lib/closeout.h: Include <stdbool.h>.
43602         (close_stdout_set_ignore_EPIPE): New declaration.
43603         * lib/closeout.c: Include <stdbool.h>.
43604         (ignore_EPIPE): New variable.
43605         (close_stdout_set_ignore_EPIPE): New function.
43606         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
43607         * lib/close-stream.c (close_stream): Mention the possible EPIPE
43608         failure.
43609         * modules/closeout (Depends-on): Add stdbool.
43610
43611 2008-10-05  Bruno Haible  <bruno@clisp.org>
43612
43613         * modules/accept: New file.
43614         * modules/bind: New file.
43615         * modules/connect: New file.
43616         * modules/getpeername: New file.
43617         * modules/getsockname: New file.
43618         * modules/getsockopt: New file.
43619         * modules/listen: New file.
43620         * modules/recv: New file.
43621         * modules/recvfrom: New file.
43622         * modules/send: New file.
43623         * modules/sendto: New file.
43624         * modules/setsockopt: New file.
43625         * modules/socket: New file.
43626         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
43627         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
43628         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
43629         the particular module is requested. Add a link warning when the
43630         particular module is not requested.
43631         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
43632         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
43633         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
43634         the particular module is requested.
43635         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
43636         gl_SYS_SOCKET_H_DEFAULTS): New macros.
43637         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
43638         * modules/sys_socket (Depends-on): Add link-warning.
43639         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
43640         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
43641         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
43642         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
43643         GL_LINK_WARNING.
43644         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
43645         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
43646         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
43647         * doc/posix-functions/getpeername.texi: Mention the new module
43648         'getpeername'.
43649         * doc/posix-functions/getsockname.texi: Mention the new module
43650         'getsockname'.
43651         * doc/posix-functions/getsockopt.texi: Mention the new module
43652         'getsockopt'.
43653         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
43654         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
43655         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
43656         * doc/posix-functions/send.texi: Mention the new module 'send'.
43657         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
43658         * doc/posix-functions/setsockopt.texi: Mention the new module
43659         'setsockopt'.
43660         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
43661         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
43662         listen, connect, accept.
43663         * modules/select-tests (Depends-on): Likewise.
43664
43665 2008-10-05  Bruno Haible  <bruno@clisp.org>
43666
43667         * lib/winsock.c (strerror): Remove unused #undef.
43668         (rpl_close): Remove unused local variable.
43669
43670         * modules/sys_socket (Depends-on); Add errno.
43671
43672 2008-10-05  Bruno Haible  <bruno@clisp.org>
43673
43674         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
43675         (select): Add a link warning when the 'select' module is not used.
43676         * modules/sys_select (Depends-on): Add link-warning.
43677         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
43678         Suggested by Paolo Bonzini.
43679
43680 2008-10-05  Jim Meyering  <meyering@redhat.com>
43681
43682         bootstrap: check for LT_INIT more portably
43683         * build-aux/bootstrap: Avoid using grep -E, since it's not
43684         portable enough.  Suggestion from Bruno Haible.
43685
43686 2008-10-05  Bruno Haible  <bruno@clisp.org>
43687
43688         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
43689         as being fixed by gnulib.
43690
43691 2008-10-05  Bruno Haible  <bruno@clisp.org>
43692
43693         * modules/select-tests: New file, mostly copied from
43694         modules/sys_select-tests.
43695         * tests/test-select.c: New file, mostly copied from
43696         tests/test-sys_select.c.
43697         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
43698         * modules/sys_select-tests (Depends-on): Remove all dependencies.
43699         (Makefile.am): Remove test_sys_select_LDADD.
43700
43701         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
43702         to an undefined symbol, for an error message.
43703         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
43704         (gl_SYS_SELECT_H_DEFAULTS): New macro.
43705         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
43706         winsock-select.c here.
43707         * modules/sys_select (Files): Remove lib/winsock-select.c.
43708         (Depends-on): Remove alloca.
43709         (Makefile.am): Substitute GNULIB_SELECT.
43710         * modules/select: New file.
43711         * doc/posix-functions/select.texi: Update.
43712
43713 2008-10-05  Bruno Haible  <bruno@clisp.org>
43714
43715         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
43716         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
43717         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
43718         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
43719         getdtablesize.
43720         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
43721         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
43722
43723 2008-10-05  Bruno Haible  <bruno@clisp.org>
43724
43725         * modules/getdtablesize-tests: New file.
43726         * tests/test-getdtablesize.c: New file.
43727
43728         New module 'getdtablesize'.
43729         * lib/unistd.in.h (getdtablesize): New declaration.
43730         * lib/getdtablesize.c: New file.
43731         * m4/getdtablesize.m4: New file.
43732         * modules/getdtablesize: New file.
43733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43734         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
43735         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
43736         HAVE_GETDTABLESIZE.
43737         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
43738
43739 2008-10-05  Bruno Haible  <bruno@clisp.org>
43740
43741         * modules/sched (Makefile.am): Fix typo.
43742         Reported by Simon Josefsson.
43743
43744 2008-10-05  Jim Meyering  <meyering@redhat.com>
43745
43746         bootstrap: check for LT_INIT, too
43747         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
43748         are deprecated.  Suggestion from Ralf Wildenhues.
43749
43750 2008-10-05  Bruno Haible  <bruno@clisp.org>
43751
43752         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
43753         overriding them by ours.
43754         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
43755
43756 2008-10-05  Jim Meyering  <meyering@redhat.com>
43757
43758         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
43759         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
43760         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
43761
43762 2008-10-04  Bruno Haible  <bruno@clisp.org>
43763
43764         * modules/dup2 (License): Change to LGPLv2+.
43765         * modules/sleep (License): Likewise.
43766         * modules/perror (License): Likewise.
43767         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
43768         Blake.
43769         * modules/signal (License): Likewise.
43770         * modules/sigprocmask (License): Likewise.
43771         * modules/raise (License): Change to LGPLv2+, with approval by Jim
43772         Meyering.
43773
43774 2008-10-04  Bruno Haible  <bruno@clisp.org>
43775
43776         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
43777         Reported by Rainer Tammer <tammer@tammer.net>.
43778
43779 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
43780             Bruno Haible  <bruno@clisp.org>
43781
43782         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
43783         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
43784         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
43785
43786 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
43787
43788         filevercmp: new module
43789         * lib/filevercmp.h: New function filevercmp comparing version strings.
43790         * lib/filevercmp.c: Implementation of filevercmp function.
43791         * modules/filevercmp: Module metadata.
43792         * tests/test-filevercmp.c: Unit test for new module.
43793         * modules/filevercmp-tests: Unit test metadata.
43794         * MODULES.html.sh: Add filevercmp module.
43795
43796 2008-10-03  Bruno Haible  <bruno@clisp.org>
43797
43798         * lib/c-ctype.h: Add comment.
43799         Reported by Jim Meyering.
43800
43801 2008-10-02  Bruno Haible  <bruno@clisp.org>
43802
43803         * modules/posix_spawn-internal (Depends-on): Add 'open'.
43804
43805 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43806
43807         * build-aux/bootstrap: Allow renaming bootstrap, and change the
43808         name of bootstrap.conf accordingly.
43809
43810 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43811
43812         * build-aux/bootstrap: Install git-merge-changelog configuration
43813         items into .gitconfig if needed.
43814
43815 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43816
43817         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
43818         git repository, and initialize/update it accordingly.
43819
43820 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
43821
43822         * modules/fsync-tests: New file.
43823         * tests/test-fsync.c: New file.
43824
43825         New module 'fsync'.
43826         * lib/fsync.c: New file.
43827         * m4/fsync.m4: New file.
43828         * modules/fsync: New file.
43829         * lib/unistd.in.h (fsync): New declaration.
43830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
43831         GNULIB_FSYNC and HAVE_FSYNC.
43832         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
43833         * MODULES.html.sh (posix_functions): Add fsync.
43834         * doc/posix-functions/fsync.texi: Mention the new module.
43835
43836 2008-10-02  Jim Meyering  <meyering@redhat.com>
43837
43838         fts.c: sync with similar code from coreutils' remove.c
43839         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
43840         Guard also with "#if defined __linux__", since for now at least,
43841         this code is Linux-kernel-specific.
43842
43843 2008-10-02  Jim Meyering  <meyering@redhat.com>
43844
43845         fts: bug fixes
43846         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
43847         Include <sys/vfs.h>, not <sys/statfs.h>.
43848
43849         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
43850         Include <sys/vfs.h>, not <sys/statfs.h>.
43851
43852 2008-10-01  Bruno Haible  <bruno@clisp.org>
43853
43854         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
43855         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
43856         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
43857         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
43858         * doc/posix-functions/posix_spawnp.texi: Likewise.
43859         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
43860         whether posix_spawn actually works.
43861         * m4/pipe.m4 (gl_PIPE): Likewise.
43862         * modules/execute (Files): Add m4/posix_spawn.m4.
43863         * modules/pipe (Files): Add m4/posix_spawn.m4.
43864         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
43865
43866 2008-10-01  Jim Meyering  <meyering@redhat.com>
43867
43868         remove trailing spaces
43869         * NEWS: Likewise.
43870         * lib/poll.c (poll): Likewise.
43871         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
43872         * lib/winsock.c (rpl_close): Likewise.
43873         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
43874         * modules/yield: Likewise.
43875         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
43876         * tests/test-sys_select.c (connect_to_socket): Likewise.
43877
43878         fts.c: adjust a new interface to be more generally useful
43879         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
43880         (fts_build): Adjust caller.
43881
43882 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43883
43884         * modules/cond-tests: New file.
43885         * tests/test-cond.c: New file.
43886
43887 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43888             Bruno Haible  <bruno@clisp.org>
43889
43890         * modules/cond (Dependencies): Add errno, time.
43891         * lib/glthread/cond.h: Include <time.h>.
43892         (gl_cond_define, gl_cond_define_initialized): Use the same definition
43893         across platforms.
43894
43895 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43896             Bruno Haible  <bruno@clisp.org>
43897
43898         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
43899
43900 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43901             Bruno Haible  <bruno@clisp.org>
43902
43903         * modules/tls-tests (Depends-on): Add thread, yield.
43904         (configure.ac): Remove all checks.
43905         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
43906         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43907         gl_thread_self): Remove definitions. Include glthread/thread.h and
43908         glthread/yield.h instead.
43909         (test_tls): Pass an additional NULL argument to gl_thread_join.
43910
43911 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43912             Bruno Haible  <bruno@clisp.org>
43913
43914         * modules/lock-tests (Depends-on): Add thread, yield.
43915         (configure.ac): Remove all checks.
43916         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
43917         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43918         gl_thread_self): Remove definitions. Include glthread/thread.h and
43919         glthread/yield.h instead.
43920         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
43921         additional NULL argument to gl_thread_join.
43922
43923 2008-09-30  Bruno Haible  <bruno@clisp.org>
43924
43925         Fix the Win32 implementation of the 'thread' module.
43926         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
43927         pointer type.
43928         (gl_thread_self): Invoke gl_thread_self_func.
43929         (gl_thread_self_func): New declaration.
43930         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
43931         (do_init_self_key, init_self_key): New functions.
43932         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
43933         Remove some fields.
43934         (running_threads, running_lock): Remove variables.
43935         (get_current_thread_handle): New function.
43936         (gl_thread_self_func, wrapper_func, glthread_create_func,
43937         glthread_join_func, gl_thread_exit_func): Largely rewritten and
43938         simplified.
43939
43940 2008-09-30  Bruno Haible  <bruno@clisp.org>
43941
43942         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
43943         files.
43944
43945 2008-09-30  Jim Meyering  <meyering@redhat.com>
43946
43947         fts.m4: correct the test for statfs.f_type
43948         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
43949         when checking for statfs.f_type.
43950
43951 2008-09-15  Simon Josefsson  <simon@josefsson.org>
43952
43953         tests: avoid some compiler warnings
43954         * tests/test-memchr.c (main): Pass NULL indirectly.
43955         * tests/test-getdate.c (main): Remove unused variable 'ret'.
43956
43957 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
43958
43959         getdate.y: disallow countable dayshifts like "4 yesterday ago"
43960         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
43961         exactly specified dayshifts.
43962         (dayshift): New rule.
43963         (rel): Add dayshift.
43964         (relative_time_table) [tomorrow, yesterday, today, now]:
43965         Use tDAY_SHIFT in place of tDAY_UNIT.
43966         * tests/test-getdate.c: Add tests for now-disallowed countable
43967         dayshifts, e.g., "4 yesterday ago".
43968
43969 2008-09-29  Bruno Haible  <bruno@clisp.org>
43970
43971         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
43972         * tests/test-posix_spawn1.in.sh: Renamed from
43973         tests/test-posix_spawn.in.sh.
43974         * tests/test-posix_spawn2.c: New file.
43975         * tests/test-posix_spawn2.in.sh: New file.
43976         * modules/posix_spawnp-tests (Files): Update.
43977         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43978
43979 2008-09-29  Bruno Haible  <bruno@clisp.org>
43980
43981         Propagate effects of putenv/setenv/unsetenv to child processes.
43982         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43983         * lib/pipe.c (create_pipe): Likewise.
43984
43985 2008-09-29  Bruno Haible  <bruno@clisp.org>
43986
43987         Enable use of shell scripts as executables in mingw.
43988         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43989         run the program as a shell script.
43990         * lib/pipe.c (create_pipe): Likewise.
43991         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43992         resulting array.
43993
43994 2008-09-29  Eric Blake  <ebb9@byu.net>
43995
43996         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43997
43998 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43999
44000         * doc/posix-functions/accept.texi: Update mingw problems.
44001         * doc/posix-functions/bind.texi: Update mingw problems.
44002         * doc/posix-functions/close.texi: Update mingw problems.
44003         * doc/posix-functions/connect.texi: Update mingw problems.
44004         * doc/posix-functions/getpeername.texi: Update mingw problems.
44005         * doc/posix-functions/getsockname.texi: Update mingw problems.
44006         * doc/posix-functions/getsockopt.texi: Update mingw problems.
44007         * doc/posix-functions/ioctl.texi: Update mingw problems.
44008         * doc/posix-functions/listen.texi: Update mingw problems.
44009         * doc/posix-functions/recv.texi: Update mingw problems.
44010         * doc/posix-functions/recvfrom.texi: Update mingw problems.
44011         * doc/posix-functions/select.texi: Update mingw problems.
44012         * doc/posix-functions/send.texi: Update mingw problems.
44013         * doc/posix-functions/sendto.texi: Update mingw problems.
44014         * doc/posix-functions/setsockopt.texi: Update mingw problems.
44015         * doc/posix-functions/socket.texi: Update mingw problems.
44016
44017 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
44018             Bruno Haible  <bruno@clisp.org>
44019
44020         * lib/sys_select.in.h: Include sys/time.h.
44021         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
44022         * modules/sys_select: Depend on sys_time.
44023         * tests/test-sys_select.c: Test that sys/select.h defines struct
44024         timeval fully.
44025
44026 2008-09-29  Bruno Haible  <bruno@clisp.org>
44027
44028         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
44029         * lib/sys_select.in.h: Likewise.
44030
44031 2008-09-29  Bruno Haible  <bruno@clisp.org>
44032
44033         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
44034
44035 2008-09-29  Bruno Haible  <bruno@clisp.org>
44036
44037         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
44038         Set LIBSOCKET instead of augmenting LIBS.
44039         * modules/sockets (Link): New section.
44040         * modules/sockets-tests (test_sockets_LDADD): New variable.
44041         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
44042         * modules/poll-tests (test_poll_LDADD): New variable.
44043         * NEWS: Document the change.
44044
44045 2008-09-29  Bruno Haible  <bruno@clisp.org>
44046
44047         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
44048         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
44049         ARPA_INET_H directly.
44050         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44051
44052 2008-09-28  Bruno Haible  <bruno@clisp.org>
44053
44054         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
44055         from gl_HEADER_SYS_SOCKET.
44056         (gl_HEADER_SYS_SOCKET): Invoke it.
44057         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44058
44059 2008-09-28  Bruno Haible  <bruno@clisp.org>
44060
44061         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
44062         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
44063         Needed on OSF/1 4.0.
44064
44065 2008-09-28  Bruno Haible  <bruno@clisp.org>
44066
44067         Override open more carefully.
44068         * lib/open.c (orig_open): New function.
44069         (rpl_open): Use orig_open instead of open.
44070         * lib/fcntl.in.h: Add special invocation convention.
44071         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
44072         (gl_FUNC_OPEN): Invoke it.
44073
44074         Override freopen more carefully.
44075         * lib/freopen.c (orig_freopen): New function.
44076         (rpl_freopen): Use orig_freopen instead of freopen.
44077         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
44078         (gl_FUNC_FREOPEN): Invoke it.
44079
44080         Override fopen more carefully.
44081         * lib/fopen.c (orig_fopen): New function.
44082         (rpl_fopen): Use orig_fopen instead of fopen.
44083         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
44084         (gl_FUNC_FOPEN): Invoke it.
44085         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
44086
44087 2008-09-28  Bruno Haible  <bruno@clisp.org>
44088
44089         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
44090         SIGPIPE.
44091
44092 2008-09-28  Bruno Haible  <bruno@clisp.org>
44093
44094         * tests/test-sigaction.c (handler, main): Disable the check whether
44095         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
44096         glibc systems with LinuxThreads.
44097
44098 2008-09-28  Bruno Haible  <bruno@clisp.org>
44099
44100         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
44101
44102         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
44103         with AIX xlc.
44104         * lib/fcntl.in.h (open): Likewise.
44105         Reported by Rainer Tammer <tammer@tammer.net>.
44106
44107 2008-09-28  Bruno Haible  <bruno@clisp.org>
44108
44109         * modules/posix_spawnp-tests: New file.
44110         * tests/test-posix_spawn.c: New file.
44111         * tests/test-posix_spawn.in.sh: New file.
44112
44113         New module 'posix_spawnp'.
44114         * modules/posix_spawnp: New file.
44115         * lib/spawnp.c: New file, from GNU libc with modifications.
44116         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
44117
44118         New module 'posix_spawn'.
44119         * modules/posix_spawn: New file.
44120         * lib/spawn.c: New file, from GNU libc with modifications.
44121         * doc/posix-functions/posix_spawn.texi: Mention the new module.
44122
44123         New module 'posix_spawnattr_destroy'.
44124         * modules/posix_spawnattr_destroy: New file.
44125         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
44126         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
44127         module.
44128
44129         New module 'posix_spawnattr_setsigmask'.
44130         * modules/posix_spawnattr_setsigmask: New file.
44131         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
44132         modifications.
44133         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
44134         new module.
44135
44136         New module 'posix_spawnattr_getsigmask'.
44137         * modules/posix_spawnattr_getsigmask: New file.
44138         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
44139         modifications.
44140         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
44141         new module.
44142
44143         New module 'posix_spawnattr_setsigdefault'.
44144         * modules/posix_spawnattr_setsigdefault: New file.
44145         * lib/spawnattr_setdefault.c: New file, from GNU libc with
44146         modifications.
44147         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
44148         new module.
44149
44150         New module 'posix_spawnattr_getsigdefault'.
44151         * modules/posix_spawnattr_getsigdefault: New file.
44152         * lib/spawnattr_getdefault.c: New file, from GNU libc with
44153         modifications.
44154         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
44155         new module.
44156
44157         New module 'posix_spawnattr_setschedpolicy'.
44158         * modules/posix_spawnattr_setschedpolicy: New file.
44159         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
44160         modifications.
44161         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
44162         new module.
44163
44164         New module 'posix_spawnattr_getschedpolicy'.
44165         * modules/posix_spawnattr_getschedpolicy: New file.
44166         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
44167         modifications.
44168         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
44169         new module.
44170
44171         New module 'posix_spawnattr_setschedparam'.
44172         * modules/posix_spawnattr_setschedparam: New file.
44173         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
44174         modifications.
44175         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
44176         new module.
44177
44178         New module 'posix_spawnattr_getschedparam'.
44179         * modules/posix_spawnattr_getschedparam: New file.
44180         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
44181         modifications.
44182         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
44183         new module.
44184
44185         New module 'posix_spawnattr_setpgroup'.
44186         * modules/posix_spawnattr_setpgroup: New file.
44187         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
44188         modifications.
44189         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
44190         module.
44191
44192         New module 'posix_spawnattr_getpgroup'.
44193         * modules/posix_spawnattr_getpgroup: New file.
44194         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
44195         modifications.
44196         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
44197         module.
44198
44199         New module 'posix_spawnattr_setflags'.
44200         * modules/posix_spawnattr_setflags: New file.
44201         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
44202         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
44203         module.
44204
44205         New module 'posix_spawnattr_getflags'.
44206         * modules/posix_spawnattr_getflags: New file.
44207         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
44208         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
44209         module.
44210
44211         New module 'posix_spawnattr_init'.
44212         * modules/posix_spawnattr_init: New file.
44213         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
44214         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
44215         module.
44216
44217         New module 'posix_spawn_file_actions_destroy'.
44218         * modules/posix_spawn_file_actions_destroy: New file.
44219         * lib/spawn_faction_destroy.c: New file, from GNU libc with
44220         modifications.
44221         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
44222         the new module.
44223
44224         New module 'posix_spawn_file_actions_addopen'.
44225         * modules/posix_spawn_file_actions_addopen: New file.
44226         * lib/spawn_faction_addopen.c: New file, from GNU libc with
44227         modifications.
44228         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44229         the new module.
44230
44231         New module 'posix_spawn_file_actions_adddup2'.
44232         * modules/posix_spawn_file_actions_adddup2: New file.
44233         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
44234         modifications.
44235         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44236         the new module.
44237
44238         New module 'posix_spawn_file_actions_addclose'.
44239         * modules/posix_spawn_file_actions_addclose: New file.
44240         * lib/spawn_faction_addclose.c: New file, from GNU libc with
44241         modifications.
44242         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44243         the new module.
44244
44245         New module 'posix_spawn_file_actions_init'.
44246         * modules/posix_spawn_file_actions_init: New file.
44247         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
44248         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
44249         new module.
44250
44251         New module 'posix_spawn-internal'.
44252         * modules/posix_spawn-internal: New file.
44253         * lib/spawn_int.h: New file, from GNU libc with modifications.
44254         * lib/spawni.c: New file, from GNU libc with modifications.
44255         * m4/posix_spawn.m4: New file.
44256
44257         New module 'spawn'.
44258         * modules/spawn: New file.
44259         * lib/spawn.in.h: New file, from GNU libc with modifications.
44260         * m4/spawn_h.m4: New file.
44261         * doc/posix-headers/spawn.texi: Mention the new module.
44262
44263 2008-09-28  Bruno Haible  <bruno@clisp.org>
44264
44265         * modules/sched-tests: New file.
44266         * tests/test-sched.c: New file.
44267
44268         New module 'sched'.
44269         * modules/sched: New file.
44270         * lib/sched.in.h: New file.
44271         * m4/sched_h.m4: New file.
44272         * doc/posix-headers/sched.texi: Mention the new module.
44273
44274 2008-09-27  Eric Blake  <ebb9@byu.net>
44275
44276         Fix previous patch, and tweak references to $0.
44277         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
44278         (func_version, func_gnulib_dir): Don't call this program
44279         gnulib-tool.
44280         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
44281         with using $0 in function.
44282         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
44283         (func_fatal_error): Reuse the name the user invoked us with.
44284
44285 2008-09-27  Bruno Haible  <bruno@clisp.org>
44286
44287         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
44288         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
44289         (gl_ICONV_H): Not here.
44290         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
44291         instead of assigning ICONV_H directly.
44292
44293         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
44294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
44295         WCHAR_H directly.
44296
44297 2008-09-27  Bruno Haible  <bruno@clisp.org>
44298
44299         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
44300         * modules/arpa_inet (Depends-on): Add link-warning.
44301         (Makefile.am): Insert the definition of GL_LINK-WARNING.
44302         * modules/unistd (Makefile.am): Likewise.
44303
44304 2008-09-26  Bruno Haible  <bruno@clisp.org>
44305
44306         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
44307         variables.
44308         (func_version): Essentially copied from gnulib-tool.
44309         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
44310         func_readlink): Copied from gnulib-tool.
44311
44312 2008-09-26  Bruno Haible  <bruno@clisp.org>
44313
44314         * gnulib-tool (func_version): Change directory to $gnulib_dir before
44315         invoking git-version-gen.
44316
44317 2008-09-26  Bruno Haible  <bruno@clisp.org>
44318
44319         * posix-modules: Update to directory names changed on 2008-01-19.
44320         Remove commas in output before splitting into words. No more need to
44321         avoid 'ftruncate' since 2007-02-19.
44322
44323 2008-09-26  Bruno Haible  <bruno@clisp.org>
44324
44325         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
44326
44327 2008-09-26  Bruno Haible  <bruno@clisp.org>
44328
44329         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
44330         * modules/fwriteerror (Depends-on): Add errno.
44331
44332 2008-09-26  Bruno Haible  <bruno@clisp.org>
44333
44334         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
44335         * tests/test-vc-list-files-cvs.sh: Likewise.
44336
44337 2008-09-26  Bruno Haible  <bruno@clisp.org>
44338
44339         * doc/posix-headers/sys_resource.texi: Reorder items.
44340
44341 2008-09-26  Jim Meyering  <meyering@redhat.com>
44342
44343         fts: tweak inode comparison function
44344         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
44345         inode numbers, as documented.
44346
44347         fts: sort dirent entries on inode number before traversing
44348         This avoids a quadratic, seek-related performance penalty when
44349         operating on a directory containing many entries (measurable at 10k;
44350         3.5 hours at 2 million entries with a cold cache) on certain types
44351         of file systems, including ext3 and ext4, but not tmpfs.
44352         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
44353         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
44354         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
44355         (fs_handles_readdir_ordered_dirents_efficiently): New function.
44356         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
44357         (fts_build): Set the stat.st_ino member from D_INO.
44358         If it is likely to be useful, sort dirent entries on inode number.
44359
44360         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
44361         and the struct statfs.f_type member.
44362         * modules/fts (Depends-on): Add d-ino.
44363
44364 2008-09-26  Bruno Haible  <bruno@clisp.org>
44365
44366         * modules/sigpipe-die (Depends-on): Add sigpipe.
44367
44368         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
44369         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
44370         and GNULIB_STDIO_H_SIGPIPE are set.
44371         * lib/stdio-write.c: New file.
44372         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
44373         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44374         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44375         REPLACE_STDIO_WRITE_FUNCS.
44376         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
44377         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44378         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44379         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44380         * modules/stdio (Files): Add lib/stdio-write.c.
44381         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
44382         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44383         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44384         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44385         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
44386         REPLACE_FPRINTF_POSIX.
44387         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
44388         REPLACE_PRINTF_POSIX.
44389         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
44390         REPLACE_VFPRINTF_POSIX.
44391         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
44392         REPLACE_VPRINTF_POSIX.
44393         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
44394         SIGPIPE issue.
44395         * doc/posix-functions/fputc.texi: Likewise.
44396         * doc/posix-functions/fputs.texi: Likewise.
44397         * doc/posix-functions/fwrite.texi: Likewise.
44398         * doc/posix-functions/printf.texi: Likewise.
44399         * doc/posix-functions/putc.texi: Likewise.
44400         * doc/posix-functions/putchar.texi: Likewise.
44401         * doc/posix-functions/puts.texi: Likewise.
44402         * doc/posix-functions/vfprintf.texi: Likewise.
44403         * doc/posix-functions/vprintf.texi: Likewise.
44404
44405         * modules/safe-write (Depends-on): Add write.
44406
44407         * modules/sigpipe-tests: New file.
44408         * tests/test-sigpipe.c: New file.
44409         * tests/test-sigpipe.sh: New file.
44410
44411         * modules/write: New file.
44412         * lib/unistd.in.h: Include <sys/types.h>.
44413         (write): New declaration.
44414         * lib/write.c: New file.
44415         * m4/write.m4: New file.
44416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44417         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
44418         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
44419         GNULIB_WRITE, REPLACE_WRITE.
44420         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
44421         and the SIGPIPE issue.
44422
44423         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
44424         (raise): New declaration.
44425         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
44426         (ext_signal): New function.
44427         (rpl_raise): New function.
44428         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
44429         GNULIB_SIGNAL_H_SIGPIPE.
44430         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
44431         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
44432
44433         * modules/sigpipe: New file.
44434         * m4/sigpipe.m4: New file.
44435
44436 2008-09-25  Derek Price  <derek@ximbiot.com>
44437             Bruno Haible  <bruno@clisp.org>
44438
44439         * gnulib-tool (func_import): Report all license incompatibilities, not
44440         just the first one.
44441
44442 2008-09-25  Bruno Haible  <bruno@clisp.org>
44443
44444         * gnulib-tool (func_import): When computing the edits, consider not
44445         only the Makefile.ams that exist but also those that will be generated.
44446
44447 2008-09-25  Simon Josefsson  <simon@josefsson.org>
44448
44449         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
44450         fixes gnulib-tool --test warning about duplicate dependency.
44451
44452 2008-09-25  Bruno Haible  <bruno@clisp.org>
44453
44454         * gnulib-tool: Don't ask the user to perform edits in the generated
44455         Makefile.ams.
44456         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
44457         apply to the Makefile.am being generated.
44458         (func_emit_tests_Makefile_am): Execute edits that apply to the
44459         Makefile.am being generated.
44460         (func_import): Setup list of Makefile.am edits before emitting the
44461         Makefile.ams, not at the end.
44462         (func_create_testdir): Update.
44463         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44464
44465 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44466
44467         * gnulib-tool (func_import): Store the --tests-base option in the
44468         comment in gnulib-cache.m4.
44469
44470 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
44471
44472         * NEWS: Document increased portability that sys_select now provides.
44473
44474         * lib/sys_select.in.h: Install select wrapper.
44475         * lib/sys_socket.in.h: Use more descriptive name when there is no
44476         select wrapper.
44477         * lib/winsock-select.c: New.
44478         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
44479         Require gl_HEADER_SYS_SOCKET.
44480         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
44481         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
44482         * tests/test-sys_select.c: Add functional tests.
44483
44484 2008-09-24  Eric Blake  <ebb9@byu.net>
44485
44486         open, fopen: close fd leak in last patch
44487         * lib/open.c (rpl_open): Close fd before returning error.
44488         * lib/fopen.c (rpl_fopen): Close fd before returning error.
44489         * doc/posix-functions/open.texi (open): Document that Irix also
44490         has the bug.
44491         * doc/posix-functions/fopen.texi (fopen): Likewise.
44492         Reported by Paolo Bonzini.
44493
44494 2008-09-24  Bruno Haible  <bruno@clisp.org>
44495
44496         Ensure that a filename ending in a slash cannot be used to access a
44497         non-directory.
44498         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
44499         to check whether it's really a directory.
44500         * lib/fopen.c: Include fcntl.h, unistd.h.
44501         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
44502         and fdopen().
44503         * modules/fopen (Depends-on): Add unistd.
44504         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
44505         * tests/test-fopen.c (main): Likewise.
44506         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
44507         * doc/posix-functions/fopen.texi: Likewise.
44508         Reported by Eric Blake.
44509
44510 2008-09-23  Eric Blake  <ebb9@byu.net>
44511
44512         c-stack: avoid compiler optimizations when provoking overflow
44513         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
44514         recursion harder to optimize, to ensure a stack overflow occurs.
44515         * tests/test-c-stack.c (recurse): Likewise.
44516         Borrowed from libsigsegv.
44517
44518         c-stack: work around Irix sigaltstack bug
44519         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
44520         whether sigaltstack uses wrong end of stack_t (copied in part from
44521         libsigsegv).
44522         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
44523         Irix bug, without requiring an over-allocation.
44524         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
44525         bug.
44526
44527         fopen: document mingw bug on directories
44528         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
44529         not allowing a stream visiting a directory, even though reading
44530         from such a stream is not portable.
44531
44532 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44533
44534         * lib/poll.c: Rewrite.
44535         * modules/poll: Depend on alloca.
44536
44537 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44538
44539         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
44540         instead define prototypes for a full set of wrappers.  Ensure
44541         that Cygwin does not use the compatibility code, which is only
44542         for MinGW.
44543         * lib/winsock.c: New.
44544         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
44545         * modules/sys_socket: Add lib/winsock.c.
44546
44547         * modules/poll-tests: Add errno and perror.
44548         * tests/test-poll.c: Use ioctl, not ioctlsocket.
44549
44550 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44551
44552         * tests/test-poll.c: Downgrade minimum needed Winsock version.
44553
44554 2008-09-23  Bruno Haible  <bruno@clisp.org>
44555
44556         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
44557         * doc/glibc-functions/*: Likewise.
44558
44559 2008-09-23  Simon Josefsson  <simon@josefsson.org>
44560
44561         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
44562         success.
44563
44564 2008-09-22  Eric Blake  <ebb9@byu.net>
44565             Bruno Haible  <bruno@clisp.org>
44566
44567         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
44568         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
44569         supply %A but mishandle pseudo-NaN.
44570         Reported by Simon Josefsson.
44571
44572 2008-09-21  Bruno Haible  <bruno@clisp.org>
44573
44574         * tests/test-lock.c (main): Tweak skip message.
44575         * tests/test-tls.c (main): Likewise.
44576
44577 2008-09-21  Bruno Haible  <bruno@clisp.org>
44578
44579         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
44580         whether 'struct sigaction' has sa_sigaction here...
44581         (gl_PREREQ_SIG_HANDLER_H): ... not here.
44582         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
44583
44584 2008-09-21  Bruno Haible  <bruno@clisp.org>
44585
44586         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
44587         section.
44588         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
44589         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
44590         the new section.
44591         (Support for obsolete systems lacking POSIX:2001): New section.
44592         (String handling <string.h>): Move strdup to the new section.
44593         Suggested by Simon Josefsson and Paolo Bonzini.
44594
44595 2008-09-21  Bruno Haible  <bruno@clisp.org>
44596
44597         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
44598         exponents in %e and %g results on 'long double'. Needed for mingw's
44599         improved *printf functions.
44600         * tests/test-vasprintf-posix.c (test_function): Likewise.
44601         * tests/test-snprintf-posix.h (test_function): Likewise.
44602         * tests/test-sprintf-posix.h (test_function): Likewise.
44603         Reported by Eric Blake.
44604
44605 2008-09-21  Bruno Haible  <bruno@clisp.org>
44606
44607         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
44608         * tests/test-sprintf-posix.h (test_function): Likewise.
44609
44610 2008-09-21  Bruno Haible  <bruno@clisp.org>
44611
44612         * modules/getpass (Depends-on): Add strdup-posix.
44613
44614         New module 'strdup-posix'.
44615         * modules/strdup-posix: New file.
44616         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
44617         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
44618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44619         REPLACE_STRDUP.
44620         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
44621         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
44622         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44623         strdup-posix.
44624
44625         * modules/strdup (Depends-on): Remove malloc-posix.
44626
44627 2008-09-20  Bruno Haible  <bruno@clisp.org>
44628
44629         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
44630         Wildenhues.
44631
44632 2008-09-20  Bruno Haible  <bruno@clisp.org>
44633
44634         Ensure that wint_t gets defined on IRIX 5.3.
44635         * lib/wchar.in.h (wint_t): Define if not defined by the system.
44636         * lib/wctype.in.h (wint_t): Likewise.
44637         (__wctype_wint_t): Remove type.
44638         (isw*): Use wint_t instead of __wctype_wint_t.
44639         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
44640         * modules/wchar (Files): Add m4/wint_t.m4.
44641         (Makefile.am): Substitute HAVE_WINT_T.
44642         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
44643         * tests/test-wctype.c: Check that wint_t is defined.
44644         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
44645         * doc/posix-headers/wctype.texi: Likewise.
44646         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44647
44648 2008-09-18  Bruno Haible  <bruno@clisp.org>
44649
44650         * gnulib-tool (func_exit): Update comment.
44651
44652 2008-09-18  Simon Josefsson  <simon@josefsson.org>
44653
44654         * modules/getaddrinfo (Depends-on): Remove strdup, this module
44655         assumes strdup exists and does not depend on strdup to return
44656         ENOMEM on out of memory conditions.
44657
44658 2008-09-18  Bruno Haible  <bruno@clisp.org>
44659
44660         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
44661         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
44662         digits for the exponent.
44663
44664 2008-09-18  Jim Meyering  <meyering@redhat.com>
44665             Bruno Haible  <bruno@clisp.org>
44666
44667         * lib/vasnprintf.c (decimal_point_char): Define also if
44668         NEED_PRINTF_INFINITE_LONG_DOUBLE.
44669
44670 2008-09-16  Bruno Haible  <bruno@clisp.org>
44671         and Eric Blake  <ebb9@byu.net>
44672
44673         vasnprintf: support Irix 5.3
44674         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
44675         that mishandle long double infinity.
44676         Reported by Tom G. Christensen.
44677
44678 2008-09-16  Bruno Haible  <bruno@clisp.org>
44679
44680         * doc/glibc-functions/scandir.texi: Mention the function is missing on
44681         Solaris 9.
44682         * doc/glibc-functions/alphasort.texi: Likewise.
44683         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
44684
44685 2008-09-16  Jim Meyering  <meyering@redhat.com>
44686
44687         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
44688         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
44689         a umask modification leak out of a subshell.  Otherwise, the
44690         opensolaris /bin/sh would be accepted and thus cause unwarranted
44691         failures in the coreutils test suite.
44692
44693 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
44694
44695         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
44696         to succeed.
44697
44698 2008-09-16  Jim Meyering  <meyering@redhat.com>
44699
44700         avoid spurious test failure when library is built without ACL support
44701         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
44702         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
44703         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
44704         * tests/test-copy-acl.sh: Likewise.
44705
44706 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44707
44708         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
44709         based on character occurrence counts.
44710
44711 2008-09-15  Eric Blake  <ebb9@byu.net>
44712
44713         tests: avoid some compiler warnings
44714         * tests/test-memchr.c (main): Pass NULL indirectly.
44715         * tests/test-closein.c (main): Avoid unused variable.
44716
44717 2008-09-15  Bruno Haible  <bruno@clisp.org>
44718
44719         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
44720         are missing on OpenBSD 4.0 individually.
44721         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44722
44723 2008-09-15  Bruno Haible  <bruno@clisp.org>
44724
44725         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
44726         * doc/posix-functions/strerror.texi: Mention also Cygwin.
44727         * doc/posix-functions/perror.texi: Likewise.
44728         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
44729         is missing.
44730         Reported by Eric Blake.
44731
44732         * lib/errno.in.h: Use replacement values >= 2000.
44733         Reported by Eric Blake.
44734
44735 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44736
44737         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
44738         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
44739         limit.
44740         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
44741         compareseq was aborted.
44742
44743 2008-09-14  Bruno Haible  <bruno@clisp.org>
44744
44745         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
44746         yvec_edit_count.
44747         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
44748         (fstrcmp_bounded): Simplify result computation accordingly.
44749
44750 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44751
44752         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
44753         (fstrcmp): Define in terms of fstrcmp_bounded.
44754         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
44755         lower_bound argument.
44756         Return quickly if the result is certainly < lower_bound.
44757         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
44758
44759 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44760
44761         * lib/diffseq.h (EARLY_ABORT): New macro.
44762         (compareseq): Change return type to bool. Return true when EARLY_ABORT
44763         evaluates to true.
44764
44765 2008-09-14  Bruno Haible  <bruno@clisp.org>
44766
44767         * modules/perror-tests: New file.
44768         * tests/test-perror.sh: New file.
44769         * tests/test-perror.c: New file.
44770
44771         New module 'perror'.
44772         * lib/stdio.in.h (perror): New declaration.
44773         * lib/perror.c: New file.
44774         * m4/perror.m4: New file.
44775         * modules/perror: New file.
44776         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
44777         * doc/posix-functions/perror.texi: Mention the perror module.
44778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
44779         REPLACE_PERROR.
44780         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
44781         REPLACE_PERROR.
44782
44783 2008-09-14  Bruno Haible  <bruno@clisp.org>
44784
44785         * modules/stdio (Makefile.am): Reorder to match the order in
44786         lib/stdio.in.h.
44787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44788
44789 2008-09-13  Bruno Haible  <bruno@clisp.org>
44790
44791         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
44792
44793 2008-09-13  Bruno Haible  <bruno@clisp.org>
44794
44795         Extend strerror to cover the added errno values.
44796         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
44797         (rpl_strerror): Provide error messages for the added errno values and
44798         for the WSA* values.
44799         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
44800         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
44801         strerror.
44802         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
44803         * modules/strerror (Depends-on): Add errno.
44804         * doc/posix-functions/strerror.texi: Document the change.
44805         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
44806         and EOVERFLOW.
44807
44808 2008-09-13  Bruno Haible  <bruno@clisp.org>
44809
44810         * modules/EOVERFLOW: Remove file.
44811         * m4/eoverflow.m4: Remove file.
44812         * modules/EOVERFLOW-tests: Remove file.
44813         * tests/test-EOVERFLOW.c: Remove file.
44814         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
44815         * modules/ftell (Depends-on): Likewise.
44816         * modules/getdelim (Depends-on): Likewise.
44817         * modules/getugroups (Depends-on): Likewise.
44818         * modules/poll (Depends-on): Likewise.
44819         * modules/snprintf (Depends-on): Likewise.
44820         * modules/sprintf-posix (Depends-on): Likewise.
44821         * modules/vasnprintf (Depends-on): Likewise.
44822         * modules/vasprintf (Depends-on): Likewise.
44823         * modules/vfprintf-posix (Depends-on): Likewise.
44824         * modules/vsnprintf (Depends-on): Likewise.
44825         * modules/vsprintf-posix (Depends-on): Likewise.
44826         * modules/xvasprintf (Depends-on): Likewise.
44827         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44828         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
44829         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
44830         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
44831         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44832         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
44833         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
44834         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
44835         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44836         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
44837         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
44838         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
44839         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44840         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
44841         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
44842         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
44843         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44844         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
44845         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
44846         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
44847         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44848         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
44849         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
44850         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
44851         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
44852         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44853         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
44854         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
44855         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
44856         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
44857         * MODULES.html.sh: Remove EOVERFLOW.
44858         * NEWS: Mention the change.
44859
44860 2008-09-13  Bruno Haible  <bruno@clisp.org>
44861
44862         * modules/errno-tests: New file.
44863         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
44864
44865         * lib/errno.in.h: New file.
44866         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
44867         * modules/errno: New file.
44868         * doc/posix-headers/errno.texi: Update documentation.
44869         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
44870
44871 2008-09-13  Bruno Haible  <bruno@clisp.org>
44872
44873         * tests/test-poll.c: Use #if for native Windows, rather than testing
44874         __MSVCRT__.
44875
44876 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44877             Bruno Haible  <bruno@clisp.org>
44878
44879         * lib/glob.c: Don't include <pwd.h> on native Windows.
44880         (WINDOWS32): New macro.
44881         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
44882
44883 2008-09-13  Bruno Haible  <bruno@clisp.org>
44884
44885         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
44886         (ETIMEDOUT): Remove macro.
44887         (glthread_cond_timedwait_multithreaded): New declaration.
44888         (glthread_cond_timedwait): Use it.
44889         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
44890         (glthread_cond_timedwait_multithreaded): New function.
44891
44892 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44893
44894         * modules/poll-tests: Do not check for io.h.
44895         * tests/test-poll.c: Check for __MSVCRT__ instead.
44896
44897 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44898
44899         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
44900         * modules/poll-tests: Add inet_pton, stdbool, sockets.
44901         * tests/test-poll.c: Use them.  Use _pipe on Windows.
44902
44903 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44904
44905         * modules/poll-tests: New.
44906         * tests/test-poll.c: New.
44907
44908 2008-09-12  Eric Blake  <ebb9@byu.net>
44909
44910         frexp: test for NetBSD failure on -0.0
44911         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
44912         not all, bugs from NetBSD 3.0 have been fixed.
44913         * doc/posix-functions/frexp.texi (frexp): Document bug.
44914         Reported by Thomas Klausner.
44915
44916         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
44917         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
44918         literal -0.0.
44919         Reported by Jonathan C. Patschke <jp@centtech.com>.
44920
44921 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44922
44923         * lib/glthread/cond.h: Use dummy implementation also if
44924         USE_WIN32_THREADS.
44925
44926 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44927
44928         * modules/fnmatch-posix (License): Change to LGPLv2+.
44929         * modules/fnmatch-gnu (License): Likewise.
44930
44931 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44932
44933         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
44934
44935 2008-09-11  Jim Meyering  <meyering@redhat.com>
44936
44937         * users.txt: Add gtk-vnc.
44938
44939 2008-09-08  Simon Josefsson  <simon@josefsson.org>
44940
44941         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
44942         rotate amounts.
44943
44944         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
44945         required for 16-bit and 8-bit rotates.
44946         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
44947         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
44948         UINT8_MAX instead of hard-coded constants.
44949         Suggested by Paul Eggert.
44950
44951 2008-09-07  Bruno Haible  <bruno@clisp.org>
44952
44953         * tests/test-striconveh.c (main): Check behaviour when converting from
44954         UTF-7.
44955
44956         Make striconveh work better with stateful encodings.
44957         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
44958         that iconv does not increment the inptr when returning -1/EINVAL.
44959
44960 2008-09-07  Bruno Haible  <bruno@clisp.org>
44961
44962         * build-aux/config.rpath: Update according to libtool-2.2.6.
44963         * build-aux/config.libpath: Likewise.
44964
44965 2008-09-06  Bruno Haible  <bruno@clisp.org>
44966
44967         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
44968         * lib/freadptr.c (freadptr): Likewise.
44969         * lib/freadseek.c (freadptrinc): Likewise.
44970         Reported by Simon Josefsson.
44971
44972 2008-09-06  Bruno Haible  <bruno@clisp.org>
44973
44974         * modules/freadptr (License): Change to LGPLv2+.
44975         * modules/freadseek (License): Likewise.
44976         Suggested by Eric Blake.
44977
44978         * modules/memchr2 (License): Change to LGPLv2+.
44979         Approved by Eric Blake.
44980
44981 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44982             Bruno Haible  <bruno@clisp.org>
44983
44984         Make gnulib-tool work with native 'sed' on AIX.
44985         * gnulib-tool (sed_noop): New variable.
44986         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44987         func_add_or_update, func_create_testdir): Use it to initialize sed
44988         script variables.
44989         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44990
44991 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44992             Bruno Haible  <bruno@clisp.org>
44993
44994         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44995         also works after #include directives.
44996
44997 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44998
44999         getdate.y: reject an out-of-range timezone value
45000         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
45001         the range [-24...+24].  When specified with only one or two digits,
45002         * tests/test-getdate.c: Tests for the fix.
45003         * doc/getdate.texi: Document this change.
45004
45005 2008-09-03  Bruno Haible  <bruno@clisp.org>
45006
45007         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
45008
45009 2008-09-02  Simon Josefsson  <simon@josefsson.org>
45010
45011         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
45012         <bruce.korb@gmail.com> with ideas from Ben Pfaff
45013         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
45014         Blake <ebb9@byu.net>.
45015
45016         * tests/test-bitrotate.c: Add more test vectors.
45017
45018 2008-09-02  Eric Blake  <ebb9@byu.net>
45019
45020         vasnprintf-posix: handle large precision via %.*d
45021         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
45022         when handling it ourselves.
45023         * tests/test-vasnprintf-posix.c (test_function): Add test.
45024         * tests/test-snprintf-posix.h (test_function): Likewise.
45025         * tests/test-sprintf-posix.h (test_function): Likewise.
45026         * tests/test-vasprintf-posix.c (test_function): Likewise.
45027         Reported by Alain Guibert.
45028
45029 2008-09-01  Eric Blake  <ebb9@byu.net>
45030
45031         c-stack: make configure-time check more robust
45032         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
45033         successful sigaction call.
45034         Reported by Tom G. Christensen.
45035
45036 2008-09-01  Bruno Haible  <bruno@clisp.org>
45037
45038         New module 'findprog-lgpl'.
45039         * modules/findprog-lgpl: New file.
45040         * lib/findprog-lgpl.c: New file.
45041         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
45042         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
45043         to decide whether to use strdup or xstrdup, concatenated_filename or
45044         xconcatenated_filename.
45045
45046 2008-09-01  Bruno Haible  <bruno@clisp.org>
45047
45048         Split module 'concat-filename' into 'concat-filename' (LGPL) and
45049         'xconcat-filename' (GPL).
45050         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
45051         (License): Change to LGPLv2+.
45052         * modules/xconcat-filename: New file.
45053         * lib/concat-filename.h (concatenated_filename): Change specification.
45054         (xconcatenated_filename): New declaration.
45055         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
45056         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
45057         memory situations.
45058         * lib/xconcat-filename.c: New file.
45059         * NEWS: Mention the change.
45060         * lib/findprog.c: Include concat-filename.h, not filename.h.
45061         (find_in_path): Use xconcatenated_filename instead of
45062         concatenated_filename.
45063         * lib/javacomp.c: Include concat-filename.h, not filename.h.
45064         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45065         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45066         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45067         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
45068         instead of concatenated_filename.
45069         * lib/javaexec.c: Include concat-filename.h, not filename.h.
45070         (execute_java_class): Use xconcatenated_filename instead of
45071         concatenated_filename.
45072         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
45073         * modules/javacomp (Depends-on): Likewise.
45074         * modules/javaexec (Depends-on): Likewise.
45075
45076 2008-09-01  Bruno Haible  <bruno@clisp.org>
45077
45078         Split module 'filename' into 'filename' and 'concat-filename'.
45079         * modules/filename: Keep only lib/filename.h.
45080         (License): Change to LGPLv2+.
45081         * modules/concat-filename: New file, extracted from modules/filename.
45082         * lib/filename.h (concatenated_filename): Remove declaration.
45083         * lib/concat-filename.h: New file, extracted from lib/filename.h.
45084         * lib/concat-filename.c: Include concat-filename.h.
45085         * NEWS: Mention the change.
45086
45087 2008-09-01  Simon Josefsson  <simon@josefsson.org>
45088
45089         * lib/bitrotate.h (rotl8, rotr8): Add.
45090
45091         * modules/bitrotate (configure.ac): Need
45092         AC_REQUIRE([AC_C_INLINE]).
45093         (Description): Mention stdint.h.  Reported by Bruno Haible
45094         <bruno@clisp.org>.
45095
45096         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
45097         Paolo Bonzini <bonzini@gnu.org>.
45098
45099 2008-08-31  Bruno Haible  <bruno@clisp.org>
45100
45101         Assume Solaris specific bi-arch conventions on Solaris systems.
45102         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
45103         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
45104         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
45105         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
45106         like acl_libdirstem.
45107         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
45108         acl_libdirstem.
45109         * NEWS: Mention the change.
45110         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
45111
45112 2008-08-31  Jim Meyering  <meyering@redhat.com>
45113
45114         * lib/strftime.h: Add comments describing the two added arguments.
45115
45116         remove duplicate #include directives
45117         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
45118         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
45119
45120 2008-08-31  Bruno Haible  <bruno@clisp.org>
45121
45122         New module 'sigpipe-die'.
45123         * modules/sigpipe-die: New file.
45124         * lib/sigpipe-die.h: New file.
45125         * lib/sigpipe-die.c: New file.
45126         * MODULES.html.sh (Signal handling): Add sigpipe-die.
45127
45128 2008-08-31  Bruno Haible  <bruno@clisp.org>
45129
45130         Don't override previously installed signal handlers.
45131         * lib/fatal-signal.c (saved_sigactions): New variable.
45132         (uninstall_handlers): Reset the signal to the saved handler, not
45133         to SIG_DFL (except when ignored).
45134         (install_handlers): Save the previous handlers.
45135
45136 2008-08-30  Bruno Haible  <bruno@clisp.org>
45137
45138         * gnulib-tool (func_reset_sigpipe): New function.
45139         (func_get_automake_snippet, func_modules_transitive_closure,
45140         func_import): Invoke it before a join command that reads from stdin,
45141         to avoid "echo: write error: Broken pipe" error messages on stderr.
45142         Reported by Sam Steingold <sds@gnu.org>.
45143
45144 2008-08-30  Bruno Haible  <bruno@clisp.org>
45145
45146         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
45147         Code copied from m4/open.m4.
45148         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
45149         access and the filename ends in a slash. Code copied from lib/open.c.
45150         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
45151         * tests/test-fopen.c (main): Check against bug with trailing slash.
45152
45153 2008-08-29  Bruno Haible  <bruno@clisp.org>
45154
45155         Avoid some "gcc -pedantic" warnings.
45156         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
45157         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
45158         * lib/dirent.in.h: Likewise.
45159         * lib/fcntl.in.h: Likewise.
45160         * lib/float.in.h: Likewise.
45161         * lib/iconv.in.h: Likewise.
45162         * lib/inttypes.in.h: Likewise.
45163         * lib/locale.in.h: Likewise.
45164         * lib/math.in.h: Likewise.
45165         * lib/netinet_in.in.h: Likewise.
45166         * lib/search.in.h: Likewise.
45167         * lib/signal.in.h: Likewise.
45168         * lib/stdarg.in.h: Likewise.
45169         * lib/stdint.in.h: Likewise.
45170         * lib/stdio.in.h: Likewise.
45171         * lib/stdlib.in.h: Likewise.
45172         * lib/string.in.h: Likewise.
45173         * lib/strings.in.h: Likewise.
45174         * lib/sys_select.in.h: Likewise.
45175         * lib/sys_socket.in.h: Likewise.
45176         * lib/sys_stat.in.h: Likewise.
45177         * lib/sys_time.in.h: Likewise.
45178         * lib/sysexits.in.h: Likewise.
45179         * lib/time.in.h: Likewise.
45180         * lib/unistd.in.h: Likewise.
45181         * lib/wchar.in.h: Likewise.
45182         * lib/wctype.in.h: Likewise.
45183         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
45184         * modules/fchdir (Makefile.am): Likewise.
45185         * modules/fcntl (Makefile.am): Likewise.
45186         * modules/float (Makefile.am): Likewise.
45187         * modules/iconv_open (Makefile.am): Likewise.
45188         * modules/inttypes (Makefile.am): Likewise.
45189         * modules/locale (Makefile.am): Likewise.
45190         * modules/math (Makefile.am): Likewise.
45191         * modules/netinet_in (Makefile.am): Likewise.
45192         * modules/search (Makefile.am): Likewise.
45193         * modules/signal (Makefile.am): Likewise.
45194         * modules/stdarg (Makefile.am): Likewise.
45195         * modules/stdint (Makefile.am): Likewise.
45196         * modules/stdio (Makefile.am): Likewise.
45197         * modules/stdlib (Makefile.am): Likewise.
45198         * modules/string (Makefile.am): Likewise.
45199         * modules/strings (Makefile.am): Likewise.
45200         * modules/sys_select (Makefile.am): Likewise.
45201         * modules/sys_socket (Makefile.am): Likewise.
45202         * modules/sys_stat (Makefile.am): Likewise.
45203         * modules/sys_time (Makefile.am): Likewise.
45204         * modules/sysexits (Makefile.am): Likewise.
45205         * modules/time (Makefile.am): Likewise.
45206         * modules/unistd (Makefile.am): Likewise.
45207         * modules/wchar (Makefile.am): Likewise.
45208         * modules/wctype (Makefile.am): Likewise.
45209         Reported by Reuben Thomas <rrt@sc3d.org>.
45210
45211 2008-08-29  Bruno Haible  <bruno@clisp.org>
45212
45213         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
45214         any more.
45215
45216 2008-08-29  Simon Josefsson  <simon@josefsson.org>
45217
45218         * MODULES.html.sh (Misc): Add bitrotate.
45219
45220         * modules/bitrotate: New file.
45221
45222         * lib/bitrotate.h: New file.
45223
45224         * modules/bitrotate-tests: New file.
45225
45226         * tests/test-bitrotate.c: New file.
45227
45228         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
45229         on the bitrotate module.
45230
45231         * lib/arctwo.c: Use new bitrotate module.
45232
45233 2008-08-29  Jim Meyering  <meyering@redhat.com>
45234
45235         bootstrap: merge changes from coreutils
45236         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
45237         of copied files.  Remove a kludge, now that this is fixed.
45238         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
45239         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
45240         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
45241
45242 2008-08-29  Bruno Haible  <bruno@clisp.org>
45243
45244         * MODULES.html.sh: Remove --cvs-urls option.
45245
45246 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
45247
45248         maint.mk: adjust to file name change
45249         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
45250
45251 2008-08-28  Jim Meyering  <meyering@redhat.com>
45252
45253         * modules/getndelim2 (License): Relicense to LGPLv2+.
45254         Approved by Richard Stallman for the version of 1995, and by
45255         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
45256
45257 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
45258
45259         * lib/getdelim.c (flockfile, funlockfile): Make all of them
45260         dummy if one is not available.  Do not touch them if
45261         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
45262         (getc_maybe_unlocked): New.
45263         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
45264
45265 2008-08-26  Eric Blake  <ebb9@byu.net>
45266
45267         doc/INSTALL: resync from autoconf
45268         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
45269         (INSTALL_PRELUDE): Delete; this is done more efficiently by
45270         moving...
45271         * install.texi [!autoconf]: ...here.  Resync from autoconf.
45272         * INSTALL: Regenerate.
45273         * INSTALL.ISO: New file.
45274         * INSTALL.UTF-8: Likewise.
45275
45276 2008-08-26  Jim Meyering  <meyering@redhat.com>
45277
45278         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
45279         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
45280         these definitions conditional, so that they may be overridden, too.
45281
45282 2008-08-26  Bruno Haible  <bruno@clisp.org>
45283
45284         Generate INSTALL file variants with prettier quotes.
45285         * doc/Makefile (INSTALL_PRELUDE): New macro.
45286         (INSTALL): Use it.
45287         (INSTALL.ISO, INSTALL.UTF-8): New rules.
45288
45289 2008-08-26  Bruno Haible  <bruno@clisp.org>
45290
45291         Run makeinfo in an English locale.
45292         * doc/Makefile (MAKEINFO): New variable.
45293
45294 2008-08-26  Bruno Haible  <bruno@clisp.org>
45295
45296         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
45297         Suggested by Eric Blake.
45298
45299 2008-08-25  Bruno Haible  <bruno@clisp.org>
45300
45301         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
45302
45303 2008-08-25  Eric Blake  <ebb9@byu.net>
45304
45305         c-stack: test that stack overflow can be caught
45306         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
45307         that platform allows handling stack overflow; at least OS/2 EMX
45308         has sigaltstack, but crashes before transferring control to
45309         handler on stack overflow.
45310         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
45311         check for HAVE_STACK_OVERFLOW_HANDLING.
45312         Reported by Elbert Pol.
45313
45314 2008-08-25  Bruno Haible  <bruno@clisp.org>
45315
45316         * doc/posix-functions/strftime.texi: Fix description of strftime
45317         module.
45318
45319 2008-08-24  Bruno Haible  <bruno@clisp.org>
45320
45321         * tests/uniwidth/test-uc_width2.c: New file.
45322         * tests/uniwidth/test-uc_width2.sh: New file.
45323         * modules/uniwidth/width-tests (Files): Add the new files.
45324         (TESTS): Add uniwidth/test-uc_width2.sh.
45325         (TESTS_ENVIRONMENT): New variable.
45326         (check_PROGRAMS): Add test-uc_width2.
45327         (test_uc_width2_SOURCES): New variable.
45328
45329         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
45330         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
45331         not 0x00AB.
45332         Reported by Alexander V. Lukyanov <lav@netis.ru>.
45333
45334 2008-08-22  Eric Blake  <ebb9@byu.net>
45335
45336         test-lock, test-tls: mention why a test is skipped
45337         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
45338         skipped.
45339         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
45340
45341         count-one-bits: relax license
45342         * modules/count-one-bits (License): Relicense to LGPLv2+.
45343         Suggested by Ludovic Courtès, approved by Ben Pfaff.
45344
45345 2008-08-22  Andreas Schwab  <schwab@suse.de>
45346
45347         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
45348         Remove spurious space in assignment.
45349
45350 2008-08-21  Simon Josefsson  <simon@josefsson.org>
45351
45352         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
45353         Paul Eggert <eggert@CS.UCLA.EDU>.
45354
45355 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
45356
45357         * modules/gettext: Add m4/threadlib.m4.
45358
45359 2008-08-19  Eric Blake  <ebb9@byu.net>
45360
45361         test-c-stack: fix compilation failure on FreeBSD 5.0
45362         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
45363         headers before <sys/resource.h>.
45364         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
45365         the bug.
45366         Reported by Nelson H. F. Beebe.
45367
45368         strverscmp: migrate from "strverscmp.h" to <string.h>
45369         * modules/string (Makefile.am): Add new hooks.
45370         * modules/strverscmp (Files): Remove strverscmp.h.
45371         (Depends-on): Add string.
45372         (configure.ac): Add indicator.
45373         (Include): Mention new header.
45374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
45375         defaults.
45376         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
45377         results.
45378         * lib/strverscmp.h: Delete.
45379         * lib/string.in.h (strverscmp): Provide declaration, when needed.
45380         * tests/test-strverscmp.c (includes): Adjust client.
45381         * lib/check-version.c (includes): Likewise.
45382         * NEWS: Document the change.
45383
45384         strverscmp: add unit test
45385         * modules/strverscmp-tests: New file.
45386         * tests/test-strverscmp.c: Likewise.
45387
45388 2008-08-19  Simon Josefsson  <simon@josefsson.org>
45389
45390         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
45391         regarding Windows crypto stuff, from Mono.
45392
45393 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
45394
45395         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
45396         if present, for intel RND.  Return error on failures.
45397
45398 2008-08-18  Ben Pfaff  <blp@gnu.org>
45399
45400         gitlog-to-changelog: give better diagnostic for failed pipe-open
45401         * build-aux/gitlog-to-changelog: Improve error message: suggest
45402         that the version of Git may be too old.
45403
45404 2008-08-18  Simon Josefsson  <simon@josefsson.org>
45405
45406         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
45407         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
45408
45409 2008-08-18  Bruno Haible  <bruno@clisp.org>
45410
45411         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
45412         pthread_in_use().
45413
45414 2008-08-18  Bruno Haible  <bruno@clisp.org>
45415
45416         * lib/glthread/threadlib.c: Include <pthread.h>.
45417
45418 2008-08-18  Bruno Haible  <bruno@clisp.org>
45419
45420         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
45421         glthread_recursive_lock_* macros.
45422         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
45423         Fix syntax error.
45424
45425 2008-08-18  Bruno Haible  <bruno@clisp.org>
45426
45427         * lib/glthread/thread.c: Avoid forcing a context switch right after
45428         thread creation.
45429
45430 2008-08-17  Bruno Haible  <bruno@clisp.org>
45431
45432         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
45433         * lib/glthread/thread.h: Provide Win32 specific implementation.
45434         * modules/thread (Files): Add lib/glthread/thread.c.
45435         (Depends-on): Add lock.
45436         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
45437
45438 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45439
45440         New module 'yield'.
45441         * modules/yield: New file.
45442         * lib/glthread/yield.h: New file.
45443         * m4/yield.m4: New file.
45444         * MODULES.html.sh (Multithreading): Add yield.
45445
45446 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45447
45448         New module 'thread'.
45449         * modules/thread: New file.
45450         * lib/glthread/thread.h: New file.
45451         * m4/thread.m4: New file.
45452         * MODULES.html.sh (Multithreading): Add thread.
45453
45454 2008-08-17  Bruno Haible  <bruno@clisp.org>
45455
45456         * lib/glthread/lock.h: Include <stdlib.h> always.
45457         * lib/glthread/tls.h: Likewise.
45458         * lib/glthread/cond.h: Likewise.
45459
45460 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45461
45462         New module 'cond'.
45463         * modules/cond: New file.
45464         * lib/glthread/cond.h: New file.
45465         * lib/glthread/cond.c: New file.
45466         * m4/cond.m4: New file.
45467         * MODULES.html.sh (Multithreading): Add cond.
45468
45469 2008-08-16  Eric Blake  <ebb9@byu.net>
45470
45471         c-stack: fix regression on Irix 5.3 from 2008-06-21
45472         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
45473         sa_sigaction...
45474         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
45475         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
45476         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
45477         * modules/signal (Makefile.am): Use the value.
45478         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
45479         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
45480         * doc/posix-headers/signal.texi (signal.h): Document this
45481         portability issue.
45482         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
45483         Reported by Tom G. Christensen.
45484
45485 2008-08-17  Bruno Haible  <bruno@clisp.org>
45486
45487         New module 'threadlib'.
45488         * modules/threadlib: New file.
45489         * lib/glthread/threadlib.c: New file, extracted from
45490         lib/glthread/lock.c.
45491         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
45492         functions.
45493         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
45494         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
45495         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
45496         macros.
45497         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
45498         (gl_DISABLE_THREADS): Remove macro.
45499         * modules/lock (Files): Remove build-aux/config.rpath.
45500         (Depends-on): Remove havelib. Add threadlib.
45501         (configure.ac-early): Remove section.
45502         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
45503         * modules/tls (Depends-on): Remove lock. Add threadlib.
45504         (Link): New section, copied from threadlib.
45505         * MODULES.html.sh (Multithreading): Add threadlib.
45506
45507 2008-08-14  Bruno Haible  <bruno@clisp.org>
45508
45509         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
45510         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
45511         glthread_rwlock_unlock, glthread_rwlock_destroy,
45512         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
45513         glthread_recursive_lock_destroy): Define as macros always.
45514         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
45515         glthread_lock_lock.
45516         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
45517         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
45518         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
45519         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
45520         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
45521         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
45522         (glthread_recursive_lock_lock_func): Renamed from
45523         glthread_recursive_lock_lock.
45524         (glthread_recursive_lock_unlock_func): Renamed from
45525         glthread_recursive_lock_unlock.
45526         (glthread_recursive_lock_destroy_func): Renamed from
45527         glthread_recursive_lock_destroy.
45528
45529 2008-08-14  Bruno Haible  <bruno@clisp.org>
45530
45531         * lib/glthread/lock.h: Renamed from lib/lock.h.
45532         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
45533         * lib/glthread/tls.h: Renamed from lib/tls.h.
45534         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
45535         * lib/fstrcmp.c: Update includes.
45536         * lib/strsignal.c: Update includes.
45537         * modules/lock (Files, Makefile.am): Update.
45538         (Include): Change to "glthread/lock.h".
45539         * modules/tls (Files, Makefile.am): Update.
45540         (Include): Change to "glthread/tls.h".
45541         * tests/test-lock.c: Update includes.
45542         * tests/test-tls.c: Update includes.
45543         * NEWS: Mention the renamed header files.
45544
45545 2008-08-11  Jim Meyering  <meyering@redhat.com>
45546
45547         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
45548
45549 2008-08-11  Eric Blake  <ebb9@byu.net>
45550
45551         test-c-stack: avoid C99-ism
45552         * tests/test-c-stack.c (main): Fix whitespace, move declaration
45553         before statement.
45554         Reported by Alain Guibert.
45555
45556 2008-08-10  Jim Meyering  <meyering@redhat.com>
45557
45558         ensure that return value of uinttostr et al are not ignored
45559         * lib/inttostr.h (__GNUC_PREREQ): Define.
45560         (__attribute_warn_unused_result__): Define.
45561         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
45562
45563 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
45564
45565         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
45566         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
45567
45568 2008-08-07  Jim Meyering  <meyering@redhat.com>
45569
45570         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
45571
45572         * modules/mkstemp (License): Relicense under LGPLv2+.
45573         * modules/tempname (License): Likewise.
45574
45575 2008-08-06  Bruno Haible  <bruno@clisp.org>
45576
45577         * lib/poll.c (poll): Further micro-optimization.
45578
45579 2008-08-06  Jim Meyering  <meyering@redhat.com>
45580
45581         inet_pton.c: use locale-independent tolower
45582         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
45583         (inet_pton6): Use c_tolower rather than tolower.
45584         * modules/inet_pton (Depends-on): Add c-ctype.
45585
45586 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
45587
45588         * lib/poll.c (poll): Avoid division when timeout is 0, cache
45589         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
45590
45591 2008-08-06  Jim Meyering  <meyering@redhat.com>
45592
45593         * modules/inet_pton (License): Relicense under LGPLv2+.
45594
45595 2008-08-03  Bruno Haible  <bruno@clisp.org>
45596
45597         Additional non-aborting API for lock and tls.
45598         * lib/lock.h: Include <errno.h>.
45599         (glthread_lock_init): New macro/function.
45600         (gl_lock_init): Define as wrapper around glthread_lock_init.
45601         (glthread_lock_lock): New macro/function.
45602         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
45603         (glthread_lock_unlock): New macro/function.
45604         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
45605         (glthread_lock_destroy): New macro/function.
45606         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
45607         (glthread_rwlock_init): New macro/function.
45608         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
45609         (glthread_rwlock_rdlock): New macro/function.
45610         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
45611         (glthread_rwlock_wrlock): New macro/function.
45612         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
45613         (glthread_rwlock_unlock): New macro/function.
45614         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
45615         (glthread_rwlock_destroy): New macro/function.
45616         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
45617         (glthread_recursive_lock_init): New macro/function.
45618         (gl_recursive_lock_init): Define as wrapper around
45619         glthread_recursive_lock_init.
45620         (glthread_recursive_lock_lock): New macro/function.
45621         (gl_recursive_lock_lock): Define as wrapper around
45622         glthread_recursive_lock_lock.
45623         (glthread_recursive_lock_unlock): New macro/function.
45624         (gl_recursive_lock_unlock): Define as wrapper around
45625         glthread_recursive_lock_unlock.
45626         (glthread_recursive_lock_destroy): New macro/function.
45627         (gl_recursive_lock_destroy): Define as wrapper around
45628         glthread_recursive_lock_destroy.
45629         (glthread_once): New macro/function.
45630         (gl_once): Define as wrapper around glthread_once.
45631         Update function declarations.
45632         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
45633         glthread_rwlock_init. Return error code.
45634         (glthread_rwlock_rdlock_multithreaded): Renamed from
45635         glthread_rwlock_rdlock. Return error code.
45636         (glthread_rwlock_wrlock_multithreaded): Renamed from
45637         glthread_rwlock_wrlock. Return error code.
45638         (glthread_rwlock_unlock_multithreaded): Renamed from
45639         glthread_rwlock_unlock. Return error code.
45640         (glthread_rwlock_destroy_multithreaded): Renamed from
45641         glthread_rwlock_destroy. Return error code.
45642         (glthread_recursive_lock_init_multithreaded): Renamed from
45643         glthread_recursive_lock_init. Return error code.
45644         (glthread_recursive_lock_lock_multithreaded): Renamed from
45645         glthread_recursive_lock_lock. Return error code.
45646         (glthread_recursive_lock_unlock_multithreaded): Renamed from
45647         glthread_recursive_lock_unlock. Return error code.
45648         (glthread_recursive_lock_destroy_multithreaded): Renamed from
45649         glthread_recursive_lock_destroy. Return error code.
45650         (glthread_once_call): Make static.
45651         (glthread_once_multithreaded): Renamed from glthread_once.
45652         * lib/tls.h: Include <errno.h>.
45653         (glthread_tls_key_init): New macro/function.
45654         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
45655         (glthread_tls_set): New macro/function.
45656         (gl_tls_set): Define as wrapper around glthread_tls_set.
45657         (glthread_tls_key_destroy): New macro/function.
45658         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
45659         Update function declarations.
45660         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
45661         glthread_tls_get.
45662         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45663
45664 2008-08-04  Eric Blake  <ebb9@byu.net>
45665
45666         gnumakefile: use space, not TAB, outside of targets
45667         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
45668
45669 2008-08-02  Jim Meyering  <meyering@redhat.com>
45670
45671         getdate.y: avoid locale-dependent date parsing failure
45672         In Turkish locales, getdate would fail to recognize keywords
45673         containing a lowercase "i".  The solution is not to rely on
45674         locale-sensitive case-conversion.
45675         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
45676         (lookup_word): Use c_toupper in place of toupper.
45677         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
45678         Reported by Vefa Bicakci <bicave@superonline.com> in
45679         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
45680         * modules/getdate (Depends-on): Add c-ctype.
45681
45682 2008-08-02  Bruno Haible  <bruno@clisp.org>
45683
45684         * gnulib-tool (func_import): When updating or creating a .gitignore
45685         file, prepend each added line with a slash, and ignore leading slashes
45686         from the existing lines.
45687         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45688
45689 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45690
45691         Portability fix for GNU make 3.79.1.
45692         * top/GNUmakefile: Avoid 'else COND', which older GNU make
45693         versions do not understand.
45694
45695 2008-08-01  Bruno Haible  <bruno@clisp.org>
45696
45697         Work around bug of HP-UX 10.20 cc with -0.0 literal.
45698         * tests/test-isnanf.h (zero): New variable.
45699         (main): Avoid literal -0.0f.
45700         * tests/test-isnand.h (zero): New variable.
45701         (main): Avoid literal -0.0.
45702         * tests/test-isnanl.h (zero): New variable.
45703         (main): Avoid literal -0.0L.
45704         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
45705         (test_float, test_double, test_long_double): Avoid literals -0.0f,
45706         -0.0, -0.0L.
45707         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
45708         (test_signbitd): Avoid literal -0.0.
45709         (test_signbitl): Avoid literal -0.0L.
45710         * tests/test-ceilf1.c (zero): New variable.
45711         (main): Avoid literal -0.0f.
45712         * tests/test-ceill.c (zero): New variable.
45713         (main): Avoid literal -0.0L.
45714         * tests/test-floorf1.c (zero): New variable.
45715         (main): Avoid literal -0.0f.
45716         * tests/test-floorl.c (zero): New variable.
45717         (main): Avoid literal -0.0L.
45718         * tests/test-roundf1.c (zero): New variable.
45719         (main): Avoid literal -0.0f.
45720         * tests/test-round1.c (zero): New variable.
45721         (main): Avoid literal -0.0.
45722         * tests/test-roundl.c (zero): New variable.
45723         (main): Avoid literal -0.0L.
45724         * tests/test-truncf1.c (zero): New variable.
45725         (main): Avoid literal -0.0f.
45726         * tests/test-trunc1.c (zero): New variable.
45727         (main): Avoid literal -0.0.
45728         * tests/test-truncl.c (zero): New variable.
45729         (main): Avoid literal -0.0L.
45730         * tests/test-frexp.c (zero): New variable.
45731         (main): Avoid literal -0.0.
45732         * tests/test-frexpl.c (zero): New variable.
45733         (main): Avoid literal -0.0L.
45734         * tests/test-ldexpl.c (zero): New variable.
45735         (main): Avoid literal -0.0L.
45736         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45737         (zerod, zerol): New variables.
45738         (test_function): Avoid literals -0.0, -0.0L.
45739         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45740         (zerod, zerol): New variables.
45741         (test_function): Avoid literals -0.0, -0.0L.
45742         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45743         (zerod, zerol): New variables.
45744         (test_function): Avoid literals -0.0, -0.0L.
45745         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45746         (zerod, zerol): New variables.
45747         (test_function): Avoid literals -0.0, -0.0L.
45748         * tests/test-strtod.c (zero): New variable.
45749         (main): Avoid literal -0.0.
45750         Reported by Jonathan C. Patschke <jp@centtech.com>.
45751
45752 2008-07-31  Jim Meyering  <meyering@redhat.com>
45753
45754         sha256.h: correct definition of SHA224_DIGEST_SIZE
45755         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
45756         Reported by Paulie Pena IV <paulie4@gmail.com>.
45757         Define as 224 / 8, rather than as a literal.
45758         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
45759         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
45760         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
45761
45762 2008-07-31  Bruno Haible  <bruno@clisp.org>
45763
45764         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
45765         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
45766         Reported by Jonathan Patschke <jp@centtech.com>.
45767
45768 2008-07-31  Bruno Haible  <bruno@clisp.org>
45769
45770         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
45771         Reported by Paolo Bonzini <bonzini@gnu.org>.
45772
45773 2008-07-30  Eric Blake  <ebb9@byu.net>
45774
45775         test-strtod: allow compilation without -lm
45776         * tests/test-strtod.c (main): Avoid link dependence on fabs.
45777         Reported by Dennis Clarke <blastwave@gmail.com>.
45778
45779 2008-07-28  Jim Meyering  <meyering@redhat.com>
45780
45781         bootstrap: work also when there are no .po files in po/
45782         * build-aux/bootstrap (update_po_files): Complete the change
45783         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
45784
45785 2008-07-27  Jim Meyering  <meyering@redhat.com>
45786
45787         * users.txt: Add zile.
45788
45789 2008-07-26  Ben Pfaff  <blp@gnu.org>
45790
45791         Add missing dependencies on new m4/exponent[fdl].m4 files.
45792         * modules/isnanf-nolibm: Add m4/exponentf.m4.
45793         * modules/isnand-nolibm: Add m4/exponentd.m4.
45794         * modules/isnanl-nolibm: Add m4/exponentl.m4.
45795         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
45796         m4/isnan[fdl].m4, because the macros actually used moved.
45797         Reported by Jim Meyering.
45798
45799 2008-07-14  Ben Pfaff  <blp@gnu.org>
45800
45801         Add isinf module.
45802         * lib/isinf.c: New file.
45803         * lib/math.in.h: Define isinf macro if we have decided to replace
45804         it.
45805         * m4/isinf.m4: New file.
45806         * m4/math_h.m4: Initialize and substitute variables for isinf
45807         module.
45808         * modules/isinf: New file.
45809         * modules/isinf-tests: New file.
45810         * modules/math: Add substitutions for new module.
45811         * tests/test-isinf.c: New file.
45812         * doc/posix-functions/isinf.texi: Mention new module.
45813         * MODULES.html.sh: Mention new module.
45814
45815 2008-07-14  Ben Pfaff  <blp@gnu.org>
45816
45817         Factor out some macros for use by additional modules.
45818         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
45819         exponentf.m4.
45820         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
45821         exponentd.m4.
45822         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
45823         file exponentl.m4.
45824         * m4/exponentf.m4: New file.
45825         * m4/exponentd.m4: New file.
45826         * m4/exponentl.m4: New file.
45827         * modules/isnanf: Use new file m4/exponentf.m4.
45828         * modules/isnand: Use new file m4/exponentd.m4.
45829         * modules/isnanl: Use new file m4/exponentl.m4.
45830
45831 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
45832
45833         mktime.c: normalize tp->tm_isdst value to -1/0/1.
45834         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
45835         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
45836         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
45837
45838         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
45839         readlink on platforms without PATH_MAX.
45840
45841 2008-07-21  Eric Blake  <ebb9@byu.net>
45842
45843         Warn, not fail, on stale version.
45844         * top/GNUmakefile (_curr-ver): Tone down previous patch.
45845
45846         Don't allow installation with stale devel version number.
45847         * top/GNUmakefile (_is-install-target): New macro.
45848         (_curr-ver): Forbid installation with stale version number.
45849
45850 2008-07-20  Bruno Haible  <bruno@clisp.org>
45851
45852         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
45853         TESTS_ENVIRONMENT.
45854         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
45855
45856 2008-07-20  Bruno Haible  <bruno@clisp.org>
45857
45858         * lib/c-stack.h (c_stack_action): Add documentation.
45859         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
45860
45861 2008-07-20  Bruno Haible  <bruno@clisp.org>
45862
45863         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
45864         * modules/readlink (License): Likewise.
45865
45866 2008-07-17  Eric Blake  <ebb9@byu.net>
45867
45868         * modules/c-stack (Link): Fix typo.
45869
45870         Make c-stack use libsigsegv, when available.
45871         * modules/c-stack (Depends-on): Add libsigsegv.
45872         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
45873         needed.
45874         * lib/c-stack.c (SIGSTKSZ): Define fallback.
45875         (segv_handler, overflow_handler, c_stack_action)
45876         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
45877         implementation when libsigsegv is available, but only when using
45878         the library is necessary.
45879         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
45880         comment, explaining why XSI check fails on Linux.
45881         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
45882         * tests/test-c-stack2.sh: Tweak skip message.
45883         * NEWS: Document new link-time requirements.
45884
45885 2008-07-16  Eric Blake  <ebb9@byu.net>
45886
45887         c-stack: Expose false positives when not using libsigsegv.
45888         * modules/c-stack-tests (Files): Expand test.
45889         * tests/test-c-stack.c (main): Add means to conditionally trigger
45890         non-overflow SIGSEGV.
45891         * tests/test-c-stack2.sh: New file.
45892
45893 2008-07-14  Bruno Haible  <bruno@clisp.org>
45894
45895         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
45896         Reported by Eric Blake.
45897
45898 2008-07-14  Sam Steingold  <sds@gnu.org>
45899             Bruno Haible  <bruno@clisp.org>
45900
45901         New module libsigsegv.
45902         * modules/libsigsegv: New file.
45903         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
45904         modifications.
45905         * MODULES.html.sh (Signal handling): New section.
45906
45907 2008-07-14  Bruno Haible  <bruno@clisp.org>
45908
45909         * modules/unictype/ctype-* (Description): Add the word "function".
45910         Improves the resulting doc in MODULES.html.
45911
45912 2008-07-12  Ben Pfaff  <blp@gnu.org>
45913
45914         Add longlong module.
45915         * modules/longlong: New file.
45916
45917 2008-07-12  Bruno Haible  <bruno@clisp.org>
45918
45919         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
45920         to empty.
45921
45922 2008-07-10  Ben Pfaff  <blp@gnu.org>
45923
45924         Add isnan module.
45925         * doc/posix-functions/isnan.texi: Mention new module.
45926         * lib/math.in.h: Define isnan macro if we have decided to replace
45927         it.
45928         * m4/isnan.m4: New file.
45929         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
45930         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
45931         also.
45932         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
45933         redundancy.
45934         * m4/math_h.m4: Initialize and substitute variables for isnan
45935         module.
45936         * modules/isnan: New file.
45937         * modules/isnan-tests: New file.
45938         * modules/math: Add substitutions for new module.
45939         * tests/test-isnan.c: New file.
45940         * MODULES.html.sh: Mention new module.
45941
45942 2008-07-10  Ben Pfaff  <blp@gnu.org>
45943
45944         Add isnanf module.
45945         * lib/isnanf.m4: New file.
45946         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
45947         (gl_HAVE_ISNANF_IN_LIBM): New macro.
45948         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
45949         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
45950         * modules/isnanf: New file.
45951         * modules/isnanf-tests: New file.
45952         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
45953         files.
45954         * tests/test-isnanf-nolibm.c: factored most of its contents into
45955         new file tests/test-isnanf.h.
45956         * tests/test-isnanf.h: New file.
45957         * tests/test-isnanf.c: New file.
45958         * MODULES.html.sh: Mention new module.
45959         * doc/glibc-functions/isnanf.texi: Mention new module.
45960
45961 2008-07-10  Ben Pfaff  <blp@gnu.org>
45962
45963         Add isnand module.
45964         * lib/isnand.h: New file.
45965         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
45966         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
45967         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
45968         functionality also.
45969         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
45970         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
45971         (gl_HAVE_ISNAND_IN_LIBM): New macro.
45972         * modules/isnand: New file.
45973         * modules/isnand-tests: New file.
45974         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45975         files.
45976         * tests/test-isnand-nolibm.c: factored most of its contents into
45977         new file tests/test-isnand.h.
45978         * tests/test-isnand.h: New file.
45979         * tests/test-isnand.c: New file.
45980         * MODULES.html.sh: Mention new module.
45981
45982 2008-07-10  Ben Pfaff  <blp@gnu.org>
45983
45984         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45985         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45986         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45987         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45988         * modules/isnanf-nolibm: Update references to renamed files.
45989         * modules/isnand-nolibm: Likewise.
45990         * modules/isnanf-nolibm-tests: Likewise.
45991         * modules/isnand-nolibm-tests: Likewise.
45992         * lib/frexp.c: Likewise.
45993         * lib/isfinite.c: Likewise.
45994         * lib/signbitd.c: Likewise.
45995         * lib/signbitf.c: Likewise.
45996         * lib/vasnprintf.c: Likewise.
45997         * tests/test-ceilf1.c: Likewise.
45998         * tests/test-ceilf2.c: Likewise.
45999         * tests/test-floorf1.c: Likewise.
46000         * tests/test-floorf2.c: Likewise.
46001         * tests/test-frexp.c: Likewise.
46002         * tests/test-round1.c: Likewise.
46003         * tests/test-round2.c: Likewise.
46004         * tests/test-roundf1.c: Likewise.
46005         * tests/test-strtod.c: Likewise.
46006         * tests/test-trunc1.c: Likewise.
46007         * tests/test-trunc2.c: Likewise.
46008         * tests/test-truncf1.c: Likewise.
46009         * tests/test-truncf2.c: Likewise.
46010         * NEWS: Mention the renamed header files.
46011
46012 2008-07-11  Jim Meyering  <meyering@redhat.com>
46013
46014         vc-list-files: make the last-resort awk code more portable
46015         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
46016         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
46017         does not support it.
46018
46019 2008-07-10  Eric Blake  <ebb9@byu.net>
46020
46021         Work with tar's bootstrap.
46022         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
46023         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
46024         an m4 comment.
46025
46026 2008-07-09  Jim Meyering  <meyering@redhat.com>
46027
46028         posix-shell.m4: fix typo that made this test malfunction
46029         * m4/posix-shell.m4: Remove capitalization in variable name.
46030
46031 2008-07-08  Bruno Haible  <bruno@clisp.org>
46032
46033         * m4/onceonly.m4: Update comments.
46034         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46035
46036 2008-07-04  Jim Meyering  <meyering@redhat.com>
46037
46038         * users.txt: Add vc-dwim.
46039         (bison, coreutils): Use the gitweb URL.
46040
46041 2008-07-03  Jim Meyering  <meyering@redhat.com>
46042
46043         * users.txt: Add libffcall.  From Sam Steingold.
46044
46045 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
46046
46047         getdate.y: do not ignore TZ with relative day, month or year offset
46048         * lib/getdate.y (get_date): Move the tz-handling block to follow the
46049         relative-date-handling, since otherwise, the latter would clobber the
46050         sole output (an updated Start value) of the tz-handling block.
46051         * tests/test-getdate.c: Tests for the fix
46052
46053 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46054
46055         Recognize 'foo_LIBRARIES += libgnu.a'.
46056         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
46057         makefile snippet has already specified an installation location,
46058         also using '+='.
46059
46060 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
46061
46062         getdate.y: factor out common actions
46063         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
46064         Use them in place of open-coded actions.
46065
46066 2008-07-01  Simon Josefsson  <simon@josefsson.org>
46067
46068         Add self-test for getdate module.
46069         * modules/getdate-tests: New file.
46070         * tests/test-getdate.c: New file.
46071
46072 2008-06-29  Bruno Haible  <bruno@clisp.org>
46073
46074         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
46075         .gitignore.
46076         Reported by Sylvain Beucler <beuc@beuc.net>.
46077
46078 2008-06-29  Bruno Haible  <bruno@clisp.org>
46079
46080         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
46081         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
46082
46083 2008-06-29  Bruno Haible  <bruno@clisp.org>
46084
46085         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
46086         EXTRA_DIST.
46087         Reported by Sylvain Beucler <beuc@beuc.net>.
46088
46089 2008-06-26  Jim Meyering  <meyering@redhat.com>
46090
46091         make several modules depend on the "open" module
46092         This provides slightly increased consistency when opening-for-write
46093         the name of a non-directory spelled with a trailing slash.
46094         * modules/chdir-safer: Likewise.
46095         * modules/chown: Likewise.
46096         * modules/clean-temp: Likewise.
46097         * modules/copy-file: Likewise.
46098         * modules/fchdir: Likewise.
46099         * modules/fcntl-safer: Likewise.
46100         * modules/pipe: Likewise.
46101         * modules/utime: Likewise.
46102         Prompted by Eric Blake and Bruno Haible.
46103
46104 2008-06-24  Andreas Schwab  <schwab@suse.de>
46105
46106         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
46107         literals can be used as initializers for global variables.
46108
46109 2008-06-23  Eric Blake  <ebb9@byu.net>
46110
46111         Make gnulib-cache.m4 easier to diff.
46112         * gnulib-tool (func_import): Allow newlines when reading cached
46113         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
46114
46115 2008-06-23  Bruno Haible  <bruno@clisp.org>
46116
46117         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
46118         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
46119         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
46120         m4/signalblocking.m4.
46121         (gl_PREREQ_SIGACTION): Don't invoke it.
46122         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
46123         gl_PREREQ_SIG_HANDLER_H.
46124         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
46125         Don't check for sigaction here.
46126
46127 2008-06-23  Bruno Haible  <bruno@clisp.org>
46128
46129         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
46130         (install_handlers): Don't set the SA_RESETHAND flag.
46131
46132 2008-06-23  Bruno Haible  <bruno@clisp.org>
46133
46134         * m4/sigaction.m4: Comment fixes.
46135         * lib/signal.in.h: Likewise.
46136
46137 2008-06-23  Eric Blake  <ebb9@byu.net>
46138
46139         Fix typo.
46140         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
46141
46142         Avoid SA_ namespace.
46143         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
46144         Reported by Ralf Wildenhues.
46145
46146         Avoid test failure due to SA_RESTORER.
46147         * tests/test-sigaction.c (SA_MASK): New macro.
46148         (main): Avoid failing due to extension flags being set.
46149         Reported by Jim Meyering.
46150
46151         Revert use of sig-handler.h in sigprocmask.c.
46152         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
46153         it requires the existence of struct sigaction.
46154         * lib/sigprocmask.c (handler_t): Restore typedef.
46155         (rpl_signal, old_handlers): Use local type.
46156
46157 2008-06-22  Bruno Haible  <bruno@clisp.org>
46158
46159         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
46160         conditionally.
46161         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46162
46163 2008-06-22  Bruno Haible  <bruno@clisp.org>
46164
46165         * doc/posix-functions/siginterrupt.texi: Move note.
46166
46167         * lib/signal.in.h (SA_RESTART): New macro.
46168         * lib/sigaction.c: Update comment.
46169
46170         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
46171
46172         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
46173         (gl_PREREQ_SIGPROCMASK): Invoke it.
46174         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
46175
46176         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
46177
46178         * lib/sigprocmask.c: Update a comment.
46179
46180 2008-06-21  Eric Blake  <ebb9@byu.net>
46181
46182         Use sigaction module rather than signal().
46183         * modules/c-stack (Depends-on): Add sigaction.
46184         * modules/fatal-signal (Depends-on): Likewise.
46185         * modules/nanosleep (Depends-on): Likewise.
46186         * modules/sigprocmask (Files): Add sig-handler.h.
46187         * modules/sigaction (Files): Likewise.
46188         * lib/sig-handler.h (get_handler): New file, suggested by Paul
46189         Eggert.
46190         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
46191         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
46192         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
46193         (init_fatal_signals): Likewise.
46194         * lib/nanosleep.c (rpl_nanosleep): Likewise.
46195         (siginterrupt): Delete fallback.
46196         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
46197         instead.
46198         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
46199         siginterrupt.
46200
46201         New module sigaction, for mingw.
46202         * modules/sigaction: New module...
46203         * modules/sigaction-tests: ...and its test.
46204         * m4/sigaction.m4: New file.
46205         * lib/sigaction.c: Likewise.
46206         * tests/test-sigaction.c: Likewise.
46207         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
46208         * modules/signal (Makefile.am): Likewise.
46209         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
46210         needed.
46211         * doc/posix-headers/signal.texi (signal.h): Mention provided
46212         types.
46213         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
46214         that sigaction is preferable.
46215         * doc/posix-functions/sigaction.texi (sigaction): Mention new
46216         module.
46217         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46218         sigaction.
46219
46220         Improve robustness of sigprocmask by overriding signal.
46221         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
46222         is in use.
46223         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
46224         (SIGKILL, SIGSTOP): Provide fallbacks.
46225         (rpl_signal): Implement.
46226         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
46227         signal can be called inside handlers.
46228
46229         Fix nanosleep module on mingw.
46230         * modules/nanosleep (Depends-on): Add sys_select.
46231         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
46232
46233         Fix licensing of sigprocmask.
46234         * modules/raise (License): Relicense as LGPL.
46235
46236 2008-06-21  Bruno Haible  <bruno@clisp.org>
46237
46238         * lib/propername.c (proper_name_utf8): Don't use the transliterated
46239         result if it contains question marks.
46240         Reported by Michael Geng <linux@michaelgeng.de>.
46241
46242 2008-06-19  Bruno Haible  <bruno@clisp.org>
46243
46244         Fix CVS-ism.
46245         * doc/gnulib.texi: Include updated-stamp.texi.
46246         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
46247         (updated-stamp.texi): New rule.
46248         (gnulib.info): Depend on it.
46249         * doc/.gitignore: Add updated-stamp.texi.
46250         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
46251
46252 2008-06-19  Bruno Haible  <bruno@clisp.org>
46253
46254         * doc/Makefile (gnulib.info): Update and simplify dependencies.
46255         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46256
46257 2008-06-19  Eric Blake  <ebb9@byu.net>
46258
46259         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
46260         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
46261         Reported by Stepan Kasal.
46262
46263 2008-06-18  Bruno Haible  <bruno@clisp.org>
46264
46265         * lib/fatal-signal.c (init_fatal_signals): Add comment.
46266         Reported by Eric Blake.
46267
46268 2008-06-18  Eric Blake  <ebb9@byu.net>
46269
46270         Work around cygwin 1.5.25 strsignal bug.
46271         * tests/test-strsignal.c: Allow for const char *.
46272         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
46273
46274 2008-06-18  Simon Josefsson  <simon@josefsson.org>
46275
46276         * users.txt: Update URL to article and add author/date
46277         information.
46278
46279 2008-06-17  Bruno Haible  <bruno@clisp.org>
46280
46281         New macro gl_DISABLE_THREADS.
46282         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
46283         if the user did not pass --enable-threads or --disable-threads option.
46284         (gl_DISABLE_THREADS): New macro.
46285         Reported by Eric Blake <ebb9@byu.net>.
46286
46287 2008-06-17  Bruno Haible  <bruno@clisp.org>
46288
46289         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
46290         when the macro ignores it.
46291         Based on a patch by Eric Blake <ebb9@byu.net>.
46292
46293 2008-06-17  Bruno Haible  <bruno@clisp.org>
46294
46295         * modules/tls (License): Change to LGPLv2+.
46296         Reported by Eric Blake.
46297
46298 2008-06-17  Eric Blake  <ebb9@byu.net>
46299
46300         Simplify c-stack prerequisites.
46301         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
46302         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
46303         no longer requires <ucontext.h> to exist.  Optimize setrlimit
46304         check.
46305         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
46306         <sys/resource.h>.
46307
46308         Move c-stack test into testsuite.
46309         * modules/c-stack-tests: New file.
46310         * lib/c-stack.c [DEBUG]: Move test program...
46311         * tests/test-c-stack.c: ...into this new file.  Skip rather than
46312         fail test if sigaltstack is lacking.
46313         * tests/test-c-stack.sh: New driver file.
46314
46315 2008-06-16  Eric Blake  <ebb9@byu.net>
46316
46317         Use raise module consistently.
46318         * modules/fatal-signal (Depends-on): Add raise.
46319         * modules/sigprocmask (Depends-on): Likewise.
46320         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
46321         * lib/sigprocmask.c (sigprocmask): Likewise.
46322         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
46323         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
46324
46325         Fix compliance bug in sigpending.
46326         * lib/sigprocmask.c (sigpending): Return pending array via
46327         parameter, not return value.
46328
46329 2008-06-14  Eric Blake  <ebb9@byu.net>
46330
46331         Improve obstack-printf test code.
46332         * tests/test-obstack-printf.c (test_function): Fix comment, and
46333         simplify usage of obstack_* in macros.  Add a test for coverage.
46334         Reported by Bruno Haible.
46335
46336 2008-06-14  Bruno Haible  <bruno@clisp.org>
46337
46338         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
46339         array size as a constant, not as a const variable.
46340         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
46341         AC_USE_SYSTEM_EXTENSIONS.
46342         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46343         Test whether the obstack_printf function actually exists.
46344         * modules/obstack-printf (Depends-on): Add extensions.
46345         (Include): Remove obstack.h.
46346         * modules/obstack-printf-posix (Depends-on): Add extensions.
46347         (Include): Remove obstack.h.
46348
46349 2008-06-13  Eric Blake  <ebb9@byu.net>
46350
46351         Add obstack-printf and obstack-printf-posix modules.
46352         * modules/obstack-printf: New file.
46353         * modules/obstack-printf-posix: Likewise.
46354         * MODULES.html.sh (Misc): Mention them.
46355         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46356         Likewise.
46357         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46358         Likewise.
46359         * modules/stdio (Makefile.am): Accomodate new modules.
46360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46361         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
46362         Declare.
46363         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
46364         functions.
46365         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
46366         (gl_REPLACE_OBSTACK_PRINTF): New macros
46367         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
46368         * tests/test-obstack-printf.c: New file.
46369         * modules/obstack-printf-tests: Likewise.
46370         * modules/obstack-printf-posix-tests: Likewise.
46371
46372 2008-06-11  Bruno Haible  <bruno@clisp.org>
46373
46374         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
46375         * lib/open.c: Include errno.h.
46376         (open): Fail when attempting to write to a file that has a trailing
46377         slash.
46378         * tests/test-open.c (main): Test against trailing slash bug.
46379         * doc/posix-functions/open.texi: Mention the trailing slash bug.
46380
46381 2008-06-10  Bruno Haible  <bruno@clisp.org>
46382
46383         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
46384         for $? to work inside the trap command, with various /bin/sh-s.
46385         * tests/test-vc-list-files-cvs.sh: Likewise.
46386
46387 2008-06-10  Bruno Haible  <bruno@clisp.org>
46388
46389         * lib/acl-internal.h: Don't include gettext.h here.
46390         * lib/set-mode-acl.c: Include gettext.h here.
46391         * lib/copy-acl.c: Likewise.
46392
46393 2008-06-10  Bruno Haible  <bruno@clisp.org>
46394
46395         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
46396         * lib/wait-process.c (wait_subprocess): Likewise.
46397         * lib/execute.h (execute): Add termsigp argument.
46398         * lib/execute.c (execute): Likewise.
46399         * lib/csharpcomp.c (compile_csharp_using_pnet,
46400         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
46401         * lib/csharpexec.c (execute_csharp_using_pnet,
46402         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
46403         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
46404         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
46405         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
46406         is_jikes_present): Update.
46407         * lib/javaexec.c (execute_java_class): Update.
46408         * lib/javaversion.c (execute_and_read_line): Update.
46409         * NEWS: Document the changes.
46410         Reported by Eric Blake.
46411
46412 2008-06-10  Eric Blake  <ebb9@byu.net>
46413
46414         Add missing include.
46415         * tests/test-strstr.c (includes): Add <signal.h>.
46416         * tests/test-strcasestr.c (includes): Likewise.
46417         * tests/test-memmem.c (includes): Likewise.
46418
46419 2008-06-10  Bruno Haible  <bruno@clisp.org>
46420
46421         * lib/wait-process.c (wait_subprocess): Add an assertion.
46422
46423 2008-06-10  Bruno Haible  <bruno@clisp.org>
46424
46425         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
46426
46427 2008-06-10  Bruno Haible  <bruno@clisp.org>
46428
46429         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
46430         using alarm().
46431         * tests/test-strcasestr.c (main): Likewise.
46432         * tests/test-strstr.c (main): Likewise.
46433
46434 2008-06-09  Bruno Haible  <bruno@clisp.org>
46435
46436         Work around the Solaris 10 ACE ACLs ABI change.
46437         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
46438         declare if ACL_NO_TRIVIAL is present.
46439         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
46440         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
46441         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
46442         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
46443         define if ACL_NO_TRIVIAL is present.
46444         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
46445         and use the current ABI.
46446         (file_has_acl): Use same #if condition as elsewhere.
46447         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
46448         in use, and use the current ABI.
46449         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
46450         Reported by Jim Meyering.
46451
46452 2008-06-09  Eric Blake  <ebb9@byu.net>
46453
46454         Work around environments that (stupidly) ignore SIGALRM.
46455         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
46456         before using alarm().
46457         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46458         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46459         Reported by Ian Beckwith <ianb@erislabs.net>.
46460
46461         Produce autobuild blurb earlier in log.
46462         * modules/autobuild (configure.ac-early): Move AB_INIT here.
46463
46464 2008-06-09  Jim Meyering  <meyering@redhat.com>
46465         and OndÅ™ej Vašík  <ovasik@redhat.com>
46466
46467         utimens.c: correct kernel bug work-around
46468         OndÅ™ej Vašík found that the invalid return value of 280 indicates
46469         failure, not success, and the kernel bug we're trying to work
46470         around affects not just the utimensat call, but also the fallback
46471         futimens call.
46472         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
46473         not success.
46474         [HAVE_FUTIMENS]: Use the same work-around, here.
46475
46476 2008-06-09  Jim Meyering  <meyering@redhat.com>
46477
46478         add more guards around definition of ACE_-related code
46479         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
46480         ALLOW and ACE_OWNER are also defined.
46481
46482 2008-06-08  Bruno Haible  <bruno@clisp.org>
46483
46484         * lib/acl-internal.h: Add me as co-author.
46485         * lib/file-has-acl.c: Likewise.
46486         * lib/set-mode-acl.c: Likewise.
46487         * lib/copy-acl.c: Likewise.
46488
46489 2008-06-08  Bruno Haible  <bruno@clisp.org>
46490
46491         Add support for AIX ACLs.
46492         * lib/acl-internal.h (acl_nontrivial): New declaration.
46493         * lib/file-has-acl.c (acl_nontrivial): New function.
46494         (file_has_acl): Add implementation using AIX 4 ACL API.
46495         * lib/set-mode-acl.c (qset_acl): Likewise.
46496         * lib/copy-acl.c (qcopy_acl): Likewise.
46497
46498 2008-06-08  Bruno Haible  <bruno@clisp.org>
46499
46500         Add support for HP-UX ACLs.
46501         * lib/acl-internal.h (acl_nontrivial): New declaration.
46502         * lib/file-has-acl.c (acl_nontrivial): New function.
46503         (file_has_acl): Add implementation using HP-UX 11 ACL API.
46504         * lib/set-mode-acl.c (qset_acl): Likewise.
46505         * lib/copy-acl.c (qcopy_acl): Likewise.
46506
46507 2008-06-08  Bruno Haible  <bruno@clisp.org>
46508
46509         Add support for Cygwin ACLs.
46510         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
46511         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
46512         the chmod_or_fchmod call.
46513         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
46514
46515 2008-06-08  Bruno Haible  <bruno@clisp.org>
46516
46517         Fix bug with setuid modes in Solaris 10+ code.
46518         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
46519         succeeded, when the mode contains some special bits.
46520
46521 2008-06-08  Bruno Haible  <bruno@clisp.org>
46522
46523         Add support for Solaris 7..10 ACLs.
46524         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
46525         declarations.
46526         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
46527         functions.
46528         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
46529         * lib/set-mode-acl.c (qset_acl): Likewise.
46530         * lib/copy-acl.c (qcopy_acl): Likewise.
46531
46532 2008-06-08  Bruno Haible  <bruno@clisp.org>
46533
46534         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
46535         declaration.
46536         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
46537         (acl_access_nontrivial): Remove MacOS X case.
46538         (file_has_acl): Use acl_extended_nontrivial.
46539         * lib/copy-acl.c (qcopy_acl): Likewise.
46540
46541 2008-06-08  Bruno Haible  <bruno@clisp.org>
46542
46543         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
46544
46545 2008-06-08  Jim Meyering  <meyering@redhat.com>
46546
46547         * modules/acl (Maintainer): Add Bruno Haible.
46548
46549 2008-06-07  Bruno Haible  <bruno@clisp.org>
46550
46551         Improve support for Tru64 ACLs.
46552         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
46553         ACL on OSF/1.
46554
46555 2008-06-07  Bruno Haible  <bruno@clisp.org>
46556
46557         Add support for MacOS X ACLs.
46558         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
46559         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
46560         * lib/set-mode-acl.c (qset_acl): Likewise.
46561         * lib/copy-acl.c (qcopy_acl): Likewise.
46562
46563 2008-06-07  Bruno Haible  <bruno@clisp.org>
46564
46565         Fix memory leak introduced on 2008-05-22.
46566         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
46567         use.
46568
46569 2008-06-07  Bruno Haible  <bruno@clisp.org>
46570
46571         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
46572         to construct an empty ACL.
46573
46574 2008-06-07  Bruno Haible  <bruno@clisp.org>
46575
46576         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
46577         precisely.
46578         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
46579
46580 2008-06-07  Bruno Haible  <bruno@clisp.org>
46581
46582         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
46583         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
46584
46585 2008-06-07  Bruno Haible  <bruno@clisp.org>
46586
46587         * doc/posix-functions/_setjmp.texi: Explain the use of this function
46588         regardless of POSIX.
46589         * doc/posix-functions/_longjmp.texi: Likewise.
46590         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
46591         SystemV platform in this case.
46592
46593 2008-06-06  Eric Blake  <ebb9@byu.net>
46594
46595         Document abort() bugs.
46596         * doc/posix-functions/abort.texi (abort): Mention anomalies.
46597
46598         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
46599         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
46600         sigsetjmp.
46601         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
46602         siglongjmp, but only as a macro.
46603         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
46604         is obsolete.
46605         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
46606
46607         Tweak documentation to cover cygwin argz bugs.
46608         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
46609         argz bug fix; no code change needed since no cygwin releases
46610         occurred between the last fix and the bug being tested.
46611         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
46612         module and recently fixed cygwin bugs.
46613         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
46614         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
46615         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
46616         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
46617         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
46618         Likewise.
46619         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
46620         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
46621         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
46622         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
46623         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
46624         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
46625         Likewise.
46626
46627         Avoid gcc warning on cygwin.
46628         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
46629         !ACL_NO_TRIVIAL]: Avoid unused variable.
46630
46631 2008-06-05  Eric Blake  <ebb9@byu.net>
46632
46633         Be tolerant of UNKNOWN version in gnulib-tool test dir.
46634         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
46635         git-version-gen fails to come up with a version.
46636         Reported by Simon Josefsson.
46637
46638 2008-06-05  Jim Meyering  <meyering@redhat.com>
46639             Paul Eggert  <eggert@cs.ucla.edu>
46640
46641         utimens.c: work around a probable Linux kernel bug
46642         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
46643         appears to be a kernel bug that causes utimensat to return 280
46644         instead of 0, indicating success.
46645
46646 2008-06-04  Bruno Haible  <bruno@clisp.org>
46647
46648         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
46649         2008-06-01 commit.
46650
46651 2008-06-04  Bruno Haible  <bruno@clisp.org>
46652
46653         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
46654         * lib/file-has-acl.c (acl_access_nontrivial): New function.
46655         (file_has_acl): Use it. Save errno afterwards.
46656         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
46657
46658 2008-06-03  Bruno Haible  <bruno@clisp.org>
46659
46660         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
46661         draft code. Simplify #ifs.
46662         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
46663         Put Solaris code after POSIX-draft code. Fix comments regarding
46664         Solaris 10, HP-UX. Mention Cygwin.
46665         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
46666
46667 2008-06-03  Eric Blake  <ebb9@byu.net>
46668
46669         Provide fallback for older kernels.
46670         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
46671         Provide runtime fallback if kernel lacks support.
46672         Reported by Mike Frysinger.
46673
46674 2008-06-02  Bruno Haible  <bruno@clisp.org>
46675
46676         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
46677         it exists.
46678
46679 2008-06-02  Bruno Haible  <bruno@clisp.org>
46680
46681         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
46682         * lib/copy-acl.c (qcopy_acl): Update comment.
46683
46684 2008-06-02  Bruno Haible  <bruno@clisp.org>
46685
46686         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
46687         like ACL APIs.
46688
46689 2008-06-02  Bruno Haible  <bruno@clisp.org>
46690
46691         * tests/test-file-has-acl.sh: Use different code for Cygwin.
46692         * tests/test-set-mode-acl.sh: Likewise.
46693         * tests/test-copy-acl.sh: Likewise.
46694         * tests/test-copy-file.sh: Likewise.
46695
46696 2008-06-02  Bruno Haible  <bruno@clisp.org>
46697
46698         * tests/test-file-has-acl.sh: Remove unused code.
46699
46700 2008-06-01  Bruno Haible  <bruno@clisp.org>
46701
46702         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
46703         (copy_acl): Just a wrapper around qcopy_acl that emits the error
46704         messages.
46705         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
46706
46707 2008-06-01  Bruno Haible  <bruno@clisp.org>
46708
46709         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
46710         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
46711         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
46712         APIs.
46713         * modules/acl-tests (configure.ac): Remove tests now contained in
46714         m4/acl.m4.
46715
46716 2008-06-02  Jim Meyering  <meyering@redhat.com>
46717
46718         announce-gen: use a better key-server host name
46719         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
46720         it may be more consistently reliable.  Suggested by Werner Koch
46721         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
46722
46723 2008-06-01  Bruno Haible  <bruno@clisp.org>
46724
46725         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
46726         Reported by Voroskoi Andras <voroskoi@gmail.com>.
46727
46728 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
46729
46730         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
46731
46732 2008-06-01  Bruno Haible  <bruno@clisp.org>
46733
46734         New ACL tests.
46735         * tests/test-file-has-acl.sh: New file.
46736         * tests/test-file-has-acl.c: New file.
46737         * tests/test-set-mode-acl.sh: New file.
46738         * tests/test-set-mode-acl.c: New file.
46739         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
46740         * tests/test-copy-acl.c: New file.
46741         * modules/acl-tests: New file, based on modules/copy-file-tests.
46742         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
46743         (Depends-on): Add acl-tests.
46744         (configure.ac): Remove checks.
46745         (Makefile.am): Don't create test-sameacls program here any more.
46746
46747 2008-06-01  Bruno Haible  <bruno@clisp.org>
46748
46749         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
46750         * tests/test-sameacls.c: Include progname.h.
46751         (main): Invoke set_program_name. Portability fixes for MacOS X,
46752         Solaris, HP-UX.
46753
46754 2008-06-01  Bruno Haible  <bruno@clisp.org>
46755
46756         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
46757         function.
46758         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
46759
46760 2008-06-01  Bruno Haible  <bruno@clisp.org>
46761
46762         * modules/rpmatch (Depends-on): Add strdup.
46763
46764 2008-06-01  Bruno Haible  <bruno@clisp.org>
46765
46766         * lib/pipe.c: Include unistd-safer.h.
46767         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
46768         * modules/pipe (Depends-on): Add unistd-safer.
46769
46770 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46771
46772         * modules/autobuild (configure.ac): Call AB_INIT.
46773
46774 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46775
46776         * tests/test-getaddrinfo.c: Don't print debug messages by default.
46777         Suggested by Bruno Haible <bruno@clisp.org>.
46778
46779 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46780
46781         * tests/test-base64.c: Cast size_t to unsigned long when invoking
46782         printf.  Use %lu instead of %d.  Reported by Bruno Haible
46783         <bruno@clisp.org>.
46784
46785 2008-05-29  Eric Blake  <ebb9@byu.net>
46786
46787         Prefer new POSIX 200x interfaces over futimesat.
46788         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
46789         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
46790         when available.
46791         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
46792
46793 2008-05-28  Bruno Haible  <bruno@clisp.org>
46794
46795         * modules/stpcpy (License): Change to LGPLv2+.
46796         Requested by David Lutterkort <dlutter@redhat.com>.
46797
46798 2008-05-27  Bruno Haible  <bruno@clisp.org>
46799
46800         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
46801         current mingw.
46802         Reported by Jose E. Marchesi <jemarch@gnu.org>.
46803
46804 2008-05-27  Bruno Haible  <bruno@clisp.org>
46805
46806         * modules/iconv_open (Link): New section, from module 'iconv'.
46807         * modules/striconv (Link): Likewise.
46808         * modules/striconveh (Link): Likewise.
46809         * modules/xstriconv (Link): Likewise.
46810         * modules/unicodeio (Link): Likewise.
46811         * modules/propername (Link): Likewise.
46812         Reported by Jim Meyering.
46813
46814 2008-05-26  Jim Meyering  <meyering@redhat.com>
46815
46816         sha256: do not artificially restrict buffer length to be < 2^32
46817         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
46818         uint32_t to size_t.
46819         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
46820         to match.
46821
46822         avoid unaligned access errors, e.g., on sparc
46823         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
46824         direct access through a possibly-unaligned uint64* pointer.
46825         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
46826         direct access through a possibly-unaligned uint32* pointer.
46827         Prompted by this patch from Tom "spot" Callaway:
46828         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
46829
46830         sha512.c: fix typo in comment
46831         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
46832
46833 2008-05-25  Bruno Haible  <bruno@clisp.org>
46834
46835         * lib/set-mode-acl.c: Renamed from lib/acl.c.
46836         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
46837         (Makefile.am): Update lib_SOURCES.
46838
46839 2008-05-25  Bruno Haible  <bruno@clisp.org>
46840
46841         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
46842
46843 2008-05-25  Jim Meyering  <meyering@redhat.com>
46844
46845         useless-if-before-free: freed expr may have white-space differences
46846         * build-aux/useless-if-before-free: Recognize cases in which the
46847         freed expression differs from the tested one in embedded white
46848         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
46849         $1 was used, so we can't make any regexp shy.  Improved tests now
46850         detect this.
46851
46852         useless-if-before-free: accept white space in the expression.
46853         * build-aux/useless-if-before-free: For now, any white space
46854         in the expression must be identical in the free argument.
46855
46856         useless-if-before-free: efficiency tweak
46857         * build-aux/useless-if-before-free: Make the expression-matching
46858         regexp "shy".
46859         Make the *outer* regexp shy, not the expr-matching one.
46860
46861         update code-in-comment to accept cast of free arg
46862         * build-aux/useless-if-before-free: Update regexp.
46863
46864 2008-05-25  Bruno Haible  <bruno@clisp.org>
46865
46866         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
46867         * modules/copy-file-tests (Files, Makefile.am): Update.
46868         * tests/test-copy-file.c (func_test_copy): Update.
46869
46870 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
46871
46872         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
46873
46874 2008-05-23  Bruno Haible  <bruno@clisp.org>
46875
46876         Improve support for ACLs on OSF/1.
46877         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
46878         Remove fallback for unknown flavors of ACLs.
46879
46880 2008-05-22  Bruno Haible  <bruno@clisp.org>
46881
46882         Add support for ACLs on OSF/1.
46883         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
46884         replacements.
46885         (acl_free_text): New macro fallback.
46886         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
46887         acl_free.
46888         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
46889         acl_free_text function. Require AC_C_INLINE.
46890
46891 2008-05-22  Bruno Haible  <bruno@clisp.org>
46892
46893         Make copy_acl work on MacOS X 10.5.
46894         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
46895         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
46896         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
46897         If MODE_INSIDE_ACL, don't assume that every system has the same text
46898         representation for ACLs as FreeBSD.
46899         * lib/copy-acl.c (copy_acl): Add support for platforms with
46900         !MODE_INSIDE_ACL.
46901         * lib/file-has-acl.c (file_has_acl): Likewise.
46902         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
46903         FreeBSD, MacOS X, or IRIX, respectively.
46904
46905 2008-05-22  Bruno Haible  <bruno@clisp.org>
46906
46907         * lib/acl.h: Don't include <sys/acl.h>.
46908         (GETACLCNT): Move fallback to lib/acl-internal.h.
46909         * lib/acl-internal.h: Include <sys/acl.h> here.
46910         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
46911
46912 2008-05-22  Bruno Haible  <bruno@clisp.org>
46913
46914         Split off copy_acl function to separate file.
46915         * lib/copy-acl.c: New file, extracted from lib/acl.c.
46916         * lib/acl.c (copy_acl): Moved function to separate file.
46917         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
46918         * modules/acl (Files): Add lib/copy-acl.c.
46919         (Makefiles.am): Augment lib_SOURCES.
46920
46921 2008-05-22  Bruno Haible  <bruno@clisp.org>
46922
46923         * modules/copy-file-tests: New file.
46924         * tests/test-copy-file.sh: New file.
46925         * tests/test-copy-file.c: New file.
46926         * tests/test-copy-file-sameacls.c: New file.
46927
46928 2008-05-22  Eric Blake  <ebb9@byu.net>
46929
46930         Avoid gcc warning.
46931         * tests/test-memcmp.c (main): Pass NULL indirectly.
46932
46933 2008-05-21  Bruno Haible  <bruno@clisp.org>
46934
46935         Add reference doc about ACLs.
46936         * doc/acl-resources.txt: New file.
46937         * doc/acl-cygwin.txt: New file.
46938
46939 2008-05-21  Bruno Haible  <bruno@clisp.org>
46940
46941         Avoid one more warning from gcc.
46942         * lib/vasnprintf.c (IF_LINT): Update comments.
46943         (VASNPRINTF): Use it also for the 'prefix' array initializer.
46944
46945 2008-05-21  Jim Meyering  <meyering@redhat.com>
46946
46947         avoid a warning from gcc
46948         * lib/vasnprintf.c (IF_LINT): Define.
46949         (scale10_round_decimal_long_double):
46950         Use it to avoid a "may be used uninitialized" warning.
46951         (scale10_round_decimal_double): Likewise.
46952
46953 2008-05-21  Simon Josefsson  <simon@josefsson.org>
46954
46955         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
46956         declared.
46957
46958 2008-05-20  Bruno Haible  <bruno@clisp.org>
46959
46960         * tests/test-memcmp.c (main): Test also the sign of the result. Test
46961         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
46962
46963 2008-05-20  Simon Josefsson  <simon@josefsson.org>
46964
46965         * modules/memcmp-tests: New file.
46966         * tests/test-memcmp.c: New file.
46967
46968 2008-05-19  Bruno Haible  <bruno@clisp.org>
46969
46970         * modules/propername (Notice, configure.ac): Put quoted "..." into
46971         --keyword option.
46972         * lib/propername.h: Update comments accordingly.
46973         Reported by Eric Blake.
46974
46975 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46976
46977         * modules/getpass-gnu (Depends-on): Add fseeko.
46978
46979 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46980
46981         * modules/base64-tests: New file.
46982
46983 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46984
46985         * lib/base64.c (base64_decode_ctx): If a decode context structure
46986         was passed in use it to ignore newlines.  If a context structure
46987         was _not_ passed in, continue to treat newlines as garbage (this
46988         is the historical behavior).  Formerly base64_decode.
46989         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46990         takes a decode context structure.
46991         * lib/base64.h (base64_decode): Macro for four-argument calls.
46992         (base64_decode_alloc): Likewise.
46993         * lib/base64.c (base64_decode_ctx): If a decode context structure
46994         was passed in use it to ignore newlines.  If a context structure
46995         was _not_ passed in, continue to treat newlines as garbage (this
46996         is the historical behavior).  Formerly base64_decode.
46997         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46998         takes a decode context structure.
46999         * lib/base64.h (base64_decode): Macro for four-argument calls.
47000         (base64_decode_alloc): Likewise.
47001
47002 2008-05-19  Jim Meyering  <meyering@redhat.com>
47003
47004         avoid a warning from gcc
47005         * lib/trim.c (IF_LINT): Define.
47006         (trim2): Use it to avoid a "may be used uninitialized" warning.
47007
47008         Fix doc typo.
47009         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
47010
47011 2008-05-19  Bruno Haible  <bruno@clisp.org>
47012
47013         * doc/glibc-functions/getpass.texi: Document limits of other
47014         implementations.
47015
47016 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47017             Bruno Haible <bruno@clisp.org>
47018
47019         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
47020
47021 2008-05-18  Bruno Haible  <bruno@clisp.org>
47022
47023         * modules/propername: New file, from GNU gettext.
47024         * lib/propername.h: New file, from GNU gettext.
47025         * lib/propername.c: New file, from GNU gettext.
47026         * MODULES.html.sh (Internationalization functions): Add propername.
47027
47028 2008-05-16  Jim Meyering  <meyering@redhat.com>
47029             Bruno Haible  <bruno@clisp.org>
47030
47031         Avoid some warnings from "gcc -Wshadow".
47032         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
47033
47034 2008-05-15  Eric Blake  <ebb9@byu.net>
47035
47036         Extend previous patch to cygwin 1.7.0.
47037         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
47038         fast implementation in cygwin >= 1.7.0.
47039         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47040         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47041
47042 2008-05-15  Bruno Haible  <bruno@clisp.org>
47043
47044         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
47045         implementation in glibc >= 2.9.
47046         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47047         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47048
47049 2008-05-15  Bruno Haible  <bruno@clisp.org>
47050
47051         * MODULES.html.sh (Internationalization functions): Remove linebreak.
47052         (Unicode string functions): Add unilbrk/*.
47053         Reported by Karl Berry.
47054
47055 2008-05-15  Eric Blake  <ebb9@byu.net>
47056
47057         Fix violation of <stdbool.h> replacement in regex.
47058         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
47059         * lib/regexec.c (re_search_internal): Likewise.
47060         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
47061
47062 2008-05-15  Jim Meyering  <meyering@redhat.com>
47063
47064         avoid distracting test output when git or cvs is not found
47065         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
47066         * tests/test-vc-list-files-git.sh: Likewise.
47067
47068 2008-05-15  Eric Blake  <ebb9@byu.net>
47069
47070         Glibc finally accepted the memmem speedup code, bugzilla #5514.
47071         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
47072         glibc version.
47073         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47074         * doc/posix-functions/strstr.texi (strstr): Likewise.
47075         * lib/str-two-way.h (MAX): Sychronize with glibc.
47076
47077 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
47078
47079         * lib/regcomp.c (optimize_utf8): Add a note on why we test
47080         opr.ctx_type.
47081         (calc_first): Initialize constraint field.
47082         (duplicate_node_closure): Use it instead of special casing ANCHORS.
47083         Fix grammar.
47084         (duplicate_node): Merge constraint field for all node types.
47085         (calc_eclosure_iter): Look at constraint field for all node types.
47086         * lib/regex_internal.c (create_cd_newstate): Don't look at
47087         opr.ctx_type.
47088
47089 2008-05-14  Bruno Haible  <bruno@clisp.org>
47090
47091         Help GCC to do better code generation.
47092         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
47093         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47094         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
47095         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
47096         Declare with attribute 'malloc' if supported.
47097
47098 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
47099
47100         use "echo STR|wc -c" rather than unportable "expr length STR"
47101         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
47102         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
47103
47104 2008-05-14  Jim Meyering  <meyering@redhat.com>
47105
47106         use dd ibs=$n count=1 ... rather than less-portable head -c$n
47107         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
47108         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
47109         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
47110         via Collin Lasse.
47111
47112 2008-05-14  Eric Blake  <ebb9@byu.net>
47113
47114         Avoid quadratic growth in gl_LIBSOURCES.
47115         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
47116         Suggested by Bruno Haible.
47117
47118         Test xmemdup0.
47119         * modules/xmemdup0-tests: New file.
47120         * tests/test-xmemdup0.c: Likewise.
47121
47122 2008-05-13  Eric Blake  <ebb9@byu.net>
47123
47124         Split xmemdup0 into its own module.
47125         * modules/xmemdup0: New file.
47126         * lib/xmemdup0.h: Likewise.
47127         * lib/xmemdup0.c: Likewise.
47128         * MODULES.html.sh (Memory management functions): Add xmemdup0.
47129         * lib/xalloc.h (xmemdup0): Remove.
47130         * lib/xmalloc.c (xmemdup0): Likewise.
47131
47132 2008-05-13  Eric Blake  <ebb9@byu.net>
47133             Bruno Haible  <bruno@clisp.org>
47134
47135         Reduce number of forks required during autoconf.
47136         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
47137         and gl_LIBSOURCES_DIR.
47138         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
47139         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
47140         m4_syscmd per file.
47141         <m4_foreach_w>: Move...
47142         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
47143
47144 2008-05-13  Eric Blake  <ebb9@byu.net>
47145
47146         * gnulib-tool: Fix various comment typos.
47147
47148 2008-05-12  Bruno Haible  <bruno@clisp.org>
47149
47150         Tailor the linebreaking algorithm.
47151         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
47152
47153 2008-05-12  Bruno Haible  <bruno@clisp.org>
47154
47155         Update to Unicode 5.0.0.
47156         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
47157         LBP_JV, LBP_JT. Redistribute values.
47158         (unilbrk_table): Change size.
47159         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
47160         Unicode TR#14 rev. 22.
47161         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
47162         LBP_JV, LBP_JT. Redistribute values.
47163         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
47164         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
47165         Update.
47166         * lib/unilbrk/lbrkprop1.h: Regenerated.
47167         * lib/unilbrk/lbrkprop2.h: Regenerated.
47168         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
47169         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
47170         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
47171         Likewise.
47172         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
47173         Likewise.
47174         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
47175         result.
47176         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
47177         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
47178         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
47179         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
47180         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
47181         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
47182
47183 2008-05-11  Bruno Haible  <bruno@clisp.org>
47184
47185         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
47186
47187 2008-05-11  Bruno Haible  <bruno@clisp.org>
47188
47189         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
47190         * modules/unilbrk/gen-lbrk: New file.
47191
47192 2008-05-11  Bruno Haible  <bruno@clisp.org>
47193
47194         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
47195         * m4/sha512.m4 (gl_SHA512): Likewise.
47196
47197 2008-05-11  Jim Meyering  <meyering@redhat.com>
47198
47199         New modules: crypto/sha256, crypto/sha512 (from coreutils)
47200         * modules/crypto/sha256: New file.
47201         * modules/crypto/sha512: Likewise.
47202         * lib/sha256.c: Likewise.
47203         * lib/sha256.h: Likewise.
47204         * lib/sha512.c: Likewise.
47205         * lib/sha512.h: Likewise.
47206         * lib/u64.h: Likewise.
47207         * m4/sha256.m4: Likewise.
47208         * m4/sha512.m4: Likewise.
47209         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
47210
47211 2008-05-10  Bruno Haible  <bruno@clisp.org>
47212
47213         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
47214         (Input/Output <stdio.h>): Add xprintf.
47215         (Signal handling <signal.h>): Add strsignal.
47216         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
47217         (Core language properties): Add func.
47218         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
47219         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
47220         strings.
47221         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
47222         (Input/output): New section.
47223         (File system functions): Add openat-die, stat-macros.
47224         (Networking functions): Add sockets.
47225         (Unicode string functions): Add unictype/*.
47226         (Support for building libraries and executables): Add gperf.
47227         (Support for building documentation): Add agpl-3.0.
47228         (Misc): Add nocrash.
47229
47230 2008-05-10  Bruno Haible  <bruno@clisp.org>
47231
47232         * modules/unictype/gen-ctype: New file.
47233
47234 2008-05-10  Jim Meyering  <meyering@redhat.com>
47235
47236         Make chdir-safer.c more efficient on a system with no symlinks.
47237         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
47238         also if ELOOP is zero.  Suggested by Bruno Haible.
47239
47240         Make chdir-safer.c slightly safer.
47241         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
47242         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
47243
47244         Avoid compile failure on systems without ELOOP (like mingw).
47245         * lib/chdir-safer.c (ELOOP): Define if not already defined.
47246         Reported by Bruno Haible.
47247
47248 2008-05-10  Bruno Haible  <bruno@clisp.org>
47249
47250         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
47251         (is_utf8_encoding): Use a case-insensitive comparison.
47252         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
47253         streq.
47254
47255 2008-05-10  Bruno Haible  <bruno@clisp.org>
47256
47257         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
47258         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
47259         * lib/unilbrk/ulc-common.h (iconv_string_length,
47260         iconv_string_keeping_offsets): Remove declarations.
47261         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
47262         Don't include <iconv.h>, streq.h, xsize.h.
47263         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
47264         conversion.
47265         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
47266         <iconv.h>, streq.h, xsize.h.
47267         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
47268         conversion.
47269         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
47270         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
47271         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
47272         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
47273
47274 2008-05-10  Bruno Haible  <bruno@clisp.org>
47275
47276         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
47277         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
47278
47279         * modules/unilbrk/u32-width-linebreaks-tests: New file.
47280         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
47281
47282         * modules/unilbrk/u16-width-linebreaks-tests: New file.
47283         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
47284
47285         * modules/unilbrk/u8-width-linebreaks-tests: New file.
47286         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
47287
47288         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
47289         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
47290
47291         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
47292         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
47293
47294         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
47295         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
47296
47297         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
47298         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
47299
47300 2008-05-10  Bruno Haible  <bruno@clisp.org>
47301
47302         Split up 'linebreak' module.
47303         * lib/unilbrk.h: New file, based on lib/linebreak.h.
47304         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
47305         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
47306         modifications.
47307         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
47308         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
47309         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
47310         lib/linebreak.c.
47311         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
47312         lib/linebreak.c.
47313         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
47314         lib/linebreak.c.
47315         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
47316         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
47317         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
47318         lib/linebreak.c.
47319         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
47320         lib/linebreak.c.
47321         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
47322         lib/linebreak.c.
47323         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
47324         lib/linebreak.c.
47325         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
47326         lib/linebreak.c.
47327         * modules/unilbrk/base: New file.
47328         * modules/unilbrk/tables: New file.
47329         * modules/unilbrk/u8-possible-linebreaks: New file.
47330         * modules/unilbrk/u16-possible-linebreaks: New file.
47331         * modules/unilbrk/u32-possible-linebreaks: New file.
47332         * modules/unilbrk/ulc-common: New file.
47333         * modules/unilbrk/ulc-possible-linebreaks: New file.
47334         * modules/unilbrk/u8-width-linebreaks: New file.
47335         * modules/unilbrk/u16-width-linebreaks: New file.
47336         * modules/unilbrk/u32-width-linebreaks: New file.
47337         * modules/unilbrk/ulc-width-linebreaks: New file.
47338         * lib/linebreak.h: Remove file.
47339         * lib/linebreak.c: Remove file.
47340         * m4/linebreak.m4: Remove file.
47341         * modules/linebreak: Remove file.
47342         * NEWS: Mention the changes.
47343
47344 2008-05-09  Eric Blake  <ebb9@byu.net>
47345
47346         Add xmemdup0.
47347         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
47348         implementation.
47349         * lib/xmalloc.c (xmemdup0): New C implementation.
47350
47351 2008-05-08  Bruno Haible  <bruno@clisp.org>
47352
47353         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
47354
47355 2008-05-07  Eric Blake  <ebb9@byu.net>
47356
47357         Support cross-compilation of <wctype.h>.
47358         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
47359         AC_CACHE_CHECK.
47360
47361 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
47362
47363         * build-aux/vc-list-files: Add support for bzr.
47364
47365 2008-05-03  Jim Meyering  <meyering@redhat.com>
47366
47367         avoid failed assertion with tight malloc
47368         * tests/test-getndelim2.c: Correct an off-by-one assertion.
47369
47370 2008-05-03  Simon Josefsson  <simon@josefsson.org>
47371
47372         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
47373         are needed from arpa/inet.h.
47374         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
47375         Reported by Bruno Haible.
47376
47377 2008-05-02  Jim Meyering  <meyering@redhat.com>
47378
47379         avoid compilation error on FreeBSD 6
47380         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
47381
47382 2008-05-01  Jim Meyering  <meyering@redhat.com>
47383
47384         useless-if-before-free: correct --help's exit status description
47385         * build-aux/useless-if-before-free (usage): Like grep, exit 0
47386         for one or more matches, etc.  Reported by Bruno Haible.
47387
47388         vc-list-files: make the stand-alone gnulib test work
47389         * modules/vc-list-files-tests (configure.ac):
47390         Define and AC_SUBST abs_aux_dir.
47391         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
47392         $(abs_top_srcdir) to each script and having each of them
47393         duplicate the work of setting PATH, set PATH here, using
47394         the new variable, abs_aux_dir instead.
47395         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
47396         * tests/test-vc-list-files-git.sh: Likewise.
47397         Reported by Bruno Haible.
47398
47399 2008-05-01  Bruno Haible  <bruno@clisp.org>
47400
47401         * lib/getndelim2.c (getndelim2): Fix newsize computation during
47402         reallocation. Rename 'done' to 'found_delimiter'.
47403
47404 2008-05-01  Jim Meyering  <meyering@redhat.com>
47405
47406         vc-list-files: accommodate /bin/sh like the one from Solaris 10
47407         * build-aux/vc-list-files: Use `...`, not $(...).
47408
47409 2008-04-30  Jim Meyering  <meyering@redhat.com>
47410
47411         add tests for vc-list-files
47412         * modules/vc-list-files-tests: New module.
47413         * tests/test-vc-list-files-cvs.sh: New file.
47414         * tests/test-vc-list-files-git.sh: New file.
47415
47416         avoid a warning from gcc
47417         * lib/getndelim2.c (IF_LINT): Define.
47418         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
47419
47420         vc-list-files: work properly with build-aux/cvsu, too
47421         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
47422         to all cvs-based clauses.
47423
47424         vc-list-files: work properly in the CVS+awk case, too
47425         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
47426
47427         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
47428         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
47429         take more than one file argument, so .  Add quotes, just in case $dir
47430         ever contains a shell meta-character.  Prompted by Soren Hansen in
47431         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
47432
47433 2008-04-29  Eric Blake  <ebb9@byu.net>
47434
47435         Optimize getndelim2 to use block operations when possible.
47436         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
47437         freadseek, and memchr2.
47438         * lib/getndelim2.c (getndelim2): Use them for block reads.
47439
47440 2008-04-29  Bruno Haible  <bruno@clisp.org>
47441
47442         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
47443         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47444         * modules/inet_ntop (Depends-on): Add extensions.
47445         * modules/inet_pton (Depends-on): Likewise.
47446         Reported by Simon Josefsson.
47447
47448 2008-04-29  Jim Meyering  <meyering@redhat.com>
47449
47450         When the is more than one match in a block, match all of them.
47451         * build-aux/useless-if-before-free: Iterate through each block
47452         until there are no more matches.
47453
47454         Fix broken useless-if-before-free script.
47455         * build-aux/useless-if-before-free: Fix typo: missing "?" after
47456         the expression to match cast of argument to free-like function.
47457
47458 2008-04-29  Eric Blake  <ebb9@byu.net>
47459
47460         Use new header.
47461         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
47462
47463 2008-04-29  Jim Meyering  <meyering@redhat.com>
47464
47465         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
47466         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
47467         by gnulib to exist and to declare e.g., inet_ntop.
47468         Don't include "inet_ntop.h", now removed.
47469
47470         * m4/arpa_inet_h.m4: Remove trailing blanks.
47471
47472 2008-04-29  Eric Blake  <ebb9@byu.net>
47473
47474         Silence valgrind on safe reads beyond potential array bounds.
47475         * lib/rawmemchr.valgrind: New file.
47476         * lib/strchrnul.valgrind: Likewise.
47477         * modules/rawmemchr (Files): Distribute new file.
47478         * modules/strchrnul (Files): Likewise.
47479         Suggested by Bruno Haible.
47480
47481 2008-04-29  Bruno Haible  <bruno@clisp.org>
47482
47483         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
47484         (inet_ntop, inet_pton): Change portability warning's wording.
47485         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
47486         Invoke gl_CHECK_NEXT_HEADERS.
47487         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
47488         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
47489         set ARPA_INET_H.
47490         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47491         * modules/arpa_inet (Description): No longer only for systems that
47492         lack it.
47493         (Depends-on): Add include_next.
47494         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
47495         HAVE_ARPA_INET_H.
47496
47497 2008-04-29  Jim Meyering  <meyering@redhat.com>
47498
47499         * modules/mkdir (License): Re-license as LGPLv2+.
47500
47501 2008-04-29  Bruno Haible  <bruno@clisp.org>
47502
47503         * modules/rawmemchr (Maintainer): Set to Eric.
47504         * modules/strchrnul (Maintainer): Likewise.
47505
47506 2008-04-29  Simon Josefsson  <simon@josefsson.org>
47507
47508         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
47509         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
47510
47511         * modules/arpa_inet (arpa/inet.h): Use them.
47512
47513 2008-04-28  Eric Blake  <ebb9@byu.net>
47514
47515         Test getndelim2.
47516         * modules/getndelim2-tests: New file.
47517         * tests/test-getndelim2.c: Likewise.
47518         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
47519         stream.
47520         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
47521
47522         * MODULES.html.sh: Document new module.
47523
47524 2008-04-20  Bruno Haible  <bruno@clisp.org>
47525
47526         * lib/c-stack.c (die): Use raise.
47527         * modules/c-stack (Depends-on): Add raise.
47528
47529 2008-04-28  Bruno Haible  <bruno@clisp.org>
47530
47531         Expect rpmatch to be declared.
47532         * lib/yesno.c (rpmatch): Remove declaration.
47533
47534         Declare rpmatch.
47535         * lib/stdlib.in.h (rpmatch): New declaration.
47536         * lib/rpmatch.c: Include <stdlib.h> first.
47537         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
47538         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
47539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
47540         HAVE_RPMATCH.
47541         * modules/rpmatch (Depends-on): Add stdlib, extensions.
47542         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47543         (Include): Set to <stdlib.h>.
47544         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
47545         HAVE_RPMATCH.
47546         * NEWS: Document the change.
47547
47548 2008-04-28  Bruno Haible  <bruno@clisp.org>
47549
47550         Change rpmatch to use nl_langinfo when appropriate.
47551         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
47552         (N_): New macro.
47553         (localized_pattern): New function/macro.
47554         (try): Remove match, nomatch arguments. Copy the pattern into safe
47555         memory before caching it.
47556         (rpmatch): Use localized_pattern. Add translator comments.
47557         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
47558         Suggested by Eric Blake.
47559         * modules/rpmatch (Depends-on): Add stdbool.
47560
47561 2008-04-28  Eric Blake  <ebb9@byu.net>
47562
47563         Add rawmemchr module, matching glibc.
47564         * modules/string (Makefile.am): New indicator.
47565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
47566         * lib/string.in.h (rawmemchr): Declare when appropriate.
47567         * modules/rawmemchr: New file.
47568         * m4/rawmemchr.m4: Likewise.
47569         * lib/rawmemchr.c: Likewise.
47570         * modules/rawmemchr-tests: Likewise.
47571         * tests/test-rawmemchr.c: Likewise.
47572         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
47573         module.
47574         * modules/strchrnul (Depends-on): Add rawmemchr.
47575         * lib/strchrnul.c (strchrnul): Optimize a corner case.
47576
47577         Whitespace cleanup.
47578         * tests/test-strchrnul.c: Reindent.
47579         * lib/strchrnul.c: Likewise.
47580
47581         Optimize and test strchrnul.
47582         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
47583         * modules/strchrnul-tests: New file.
47584         * tests/test-strchrnul.c: Likewise.
47585
47586         Remove intprops dependency.
47587         * modules/memchr (Depends-on): Remove intprops.
47588         * modules/memrchr (Depends-on): Likewise.
47589         * modules/memchr2 (Depends-on): Likewise.
47590         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
47591         * lib/memrchr.c (__memrchr): Likewise.
47592         * lib/memrchr2.c (memchr2): Likewise.
47593         Reported by Simon Josefsson.
47594
47595 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47596
47597         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
47598         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47599
47600 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47601
47602         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
47603
47604         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
47605
47606         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
47607
47608         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
47609         declarations.
47610         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
47611
47612         * m4/inet_pton.m4: Don't check for header files.
47613
47614         * m4/inet_ntop.m4: Don't check for header files.
47615
47616 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47617
47618         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
47619         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
47620         trigger for cygwin).
47621         Reported by Bruno Haible  <bruno@clisp.org>.
47622
47623 2008-04-28  Bruno Haible  <bruno@clisp.org>
47624
47625         * doc/posix-functions/strdup.texi: Mention mingw problem.
47626
47627 2008-04-27  Bruno Haible  <bruno@clisp.org>
47628
47629         * modules/stat-time-tests (Depends-on): Add sleep.
47630         * tests/test-stat-time.c (force_unlink): New function.
47631         (cleanup): Use it.
47632         (test_mtime): Remove the ctime related tests.
47633         (test_ctime): New function, containing the ctime related tests.
47634         (main): Call test_ctime, except on native Windows platforms.
47635
47636 2008-04-27  Bruno Haible  <bruno@clisp.org>
47637
47638         * lib/rpmatch.c (rpmatch): Add some comments.
47639         Reported by James Youngman <jay@gnu.org>.
47640
47641 2008-04-27  Bruno Haible  <bruno@clisp.org>
47642
47643         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
47644         quiet NaNs.
47645
47646 2008-04-27  Bruno Haible  <bruno@clisp.org>
47647
47648         Make test-yesno.sh work on mingw.
47649         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
47650         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
47651         (main): Set stdin to binary mode.
47652         * modules/yesno-tests (Depends-on): Add binary-io.
47653
47654 2008-04-27  Bruno Haible  <bruno@clisp.org>
47655
47656         Fix 'isfinite' on x86, x86_64, ia64 platforms.
47657         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
47658         argument that lie outside the IEEE 854 domain.
47659         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
47660         (gl_ISFINITE): Use it.
47661         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
47662
47663 2008-04-27  Bruno Haible  <bruno@clisp.org>
47664
47665         Allow local renaming in config.h.
47666         * lib/memrchr.c (memrchr): Don't undefine outside libc.
47667
47668 2008-04-27  Bruno Haible  <bruno@clisp.org>
47669
47670         * lib/memchr.c (__memchr): Change type of 'i'.
47671         * lib/memchr2.c (memchr2): Likewise.
47672
47673 2008-04-26  Eric Blake  <ebb9@byu.net>
47674         and Bruno Haible  <bruno@clisp.org>
47675
47676         Optimize and test memrchr.
47677         * modules/memrchr (Depends-on): Add intprops.
47678         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
47679         * modules/memrchr-tests: New file.
47680         * tests/test-memrchr.c: New file.
47681
47682 2008-04-26  Bruno Haible  <bruno@clisp.org>
47683
47684         Add tentative support for DragonFly BSD.
47685         * lib/stdio-impl.h: Add macros for DragonFly BSD.
47686         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
47687         fp.
47688         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47689         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
47690         * lib/fpurge.c (fpurge): Likewise.
47691         * lib/freadable.c (freaadable): Likewise.
47692         * lib/freadahead.c (freadahead): Likewise.
47693         * lib/freading.c (freading): Likewise.
47694         * lib/freadptr.c (freadptr): Likewise.
47695         * lib/freadseek.c (freadptrinc): Likewise.
47696         * lib/fseeko.c (fseeko): Likewise.
47697         * lib/fseterr.c (fseterr): Likewise.
47698         * lib/fwritable.c (fwritable): Likewise.
47699         * lib/fwriting.c (fwriting): Likewise.
47700
47701 2008-04-26  Bruno Haible  <bruno@clisp.org>
47702
47703         * lib/stdio-impl.h: New file.
47704         * lib/fbufmode.c: Include stdio-impl.h.
47705         (fbufmode): Use fp_, remove redundant #defines.
47706         * lib/fflush.c: Include stdio-impl.h.
47707         (clear_ungetc_buffer): Remove redundant #defines.
47708         * lib/fpurge.c: Include stdio-impl.h.
47709         (fpurge): Remove redundant #defines.
47710         * lib/freadable.c: Include stdio-impl.h.
47711         (freadable): Remove redundant #defines.
47712         * lib/freadahead.c: Include stdio-impl.h.
47713         (freadahead): Remove redundant #defines.
47714         * lib/freading.c: Include stdio-impl.h.
47715         (freading): Remove redundant #defines.
47716         * lib/freadptr.c: Include stdio-impl.h.
47717         (freadptr): Remove redundant #defines.
47718         * lib/freadseek.c: Include stdio-impl.h.
47719         (freadptrinc): Remove redundant #defines.
47720         * lib/fseeko.c: Include stdio-impl.h.
47721         (rpl_fseeko): Remove redundant #defines.
47722         * lib/fseterr.c: Include stdio-impl.h.
47723         (fseterr): Remove redundant #defines.
47724         * lib/fwritable.c: Include stdio-impl.h.
47725         (fwritable: Remove redundant #defines.
47726         * lib/fwriting.c: Include stdio-impl.h.
47727         (fwriting): Remove redundant #defines.
47728         * modules/fbufmode (Files): Add lib/stdio-impl.h.
47729         * modules/fflush (Files): Likewise.
47730         * modules/fpurge (Files): Likewise.
47731         * modules/freadable (Files): Likewise.
47732         * modules/freadahead (Files): Likewise.
47733         * modules/freading (Files): Likewise.
47734         * modules/freadptr (Files): Likewise.
47735         * modules/freadseek (Files): Likewise.
47736         * modules/fseeko (Files): Likewise.
47737         * modules/fseterr (Files): Likewise.
47738         * modules/fwritable (Files): Likewise.
47739         * modules/fwriting (Files): Likewise.
47740
47741 2008-04-26  Bruno Haible  <bruno@clisp.org>
47742
47743         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47744         restore_seek_optimization, update_fpos_cache): New functions, extracted
47745         from rpl_fflush.
47746         (rpl_fflush): Use them.
47747         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
47748         (gl_REPLACE_FFLUSH): Use it.
47749
47750 2008-04-26  Bruno Haible  <bruno@clisp.org>
47751
47752         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
47753         on Solaris.
47754         * tests/test-xstrtoimax.sh: Likewise.
47755         * tests/test-xstrtoumax.sh: Likewise.
47756         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47757
47758 2008-04-26  Bruno Haible  <bruno@clisp.org>
47759
47760         * modules/memchr-tests: New file.
47761         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
47762
47763 2008-04-26  Eric Blake  <ebb9@byu.net>
47764             Bruno Haible  <bruno@clisp.org>
47765
47766         * lib/memchr.c: Include intprops.h.
47767         (__memchr): Optimize parallel detection of matching bytes. Rename local
47768         variables. Add explanatory comments.
47769
47770 2008-04-26  Bruno Haible  <bruno@clisp.org>
47771
47772         Fix module 'memchr', broken since 2000-10-28.
47773         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
47774
47775 2008-04-26  Bruno Haible  <bruno@clisp.org>
47776
47777         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
47778         comments.
47779
47780 2008-04-25  Eric Blake  <ebb9@byu.net>
47781
47782         Use native fstatat on cygwin 1.7.0.
47783         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
47784         first.
47785
47786 2008-04-23  Eric Blake  <ebb9@byu.net>
47787
47788         Improve memchr2 performance.
47789         * lib/memchr2.c (memchr2): Further optimize parallel detection of
47790         NUL bytes.
47791         * modules/memchr2 (Depends-on): Use intprops.h.
47792
47793 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47794
47795         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
47796         an inline function instead of a CPP macro.  Patch by Ben Pfaff
47797         <blp@cs.stanford.edu>.
47798
47799 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47800
47801         * lib/arpa_inet.in.h: New file.
47802
47803         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
47804         (Makefile.am): Sed in substitute header file.
47805
47806         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
47807         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
47808
47809         * modules/inet_ntop (configure.ac): Use
47810         gl_ARPA_INET_MODULE_INDICATOR.
47811
47812         * modules/inet_pton (configure.ac): Use
47813         gl_ARPA_INET_MODULE_INDICATOR.
47814
47815 2008-04-22  Jim Meyering  <meyering@redhat.com>
47816
47817         * modules/verify (License): Re-license as LGPLv2+.
47818
47819 2008-04-22  Simon Josefsson  <simon@josefsson.org>
47820
47821         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
47822         parameter to void* as per POSIX standard (MinGW uses char*).
47823
47824 2008-04-21  Bruno Haible  <bruno@clisp.org>
47825
47826         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
47827         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
47828         Define to replacements if REPLACE_ISWCNTRL is 1.
47829         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
47830         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
47831         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
47832         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
47833         what it fixes.
47834         * doc/posix-functions/iswalpha.texi: Likewise.
47835         * doc/posix-functions/iswblank.texi: Likewise.
47836         * doc/posix-functions/iswcntrl.texi: Likewise.
47837         * doc/posix-functions/iswdigit.texi: Likewise.
47838         * doc/posix-functions/iswgraph.texi: Likewise.
47839         * doc/posix-functions/iswlower.texi: Likewise.
47840         * doc/posix-functions/iswprint.texi: Likewise.
47841         * doc/posix-functions/iswpunct.texi: Likewise.
47842         * doc/posix-functions/iswspace.texi: Likewise.
47843         * doc/posix-functions/iswupper.texi: Likewise.
47844         * doc/posix-functions/iswxdigit.texi: Likewise.
47845         Reported by Alain Guibert.
47846
47847 2008-04-21  Bruno Haible  <bruno@clisp.org>
47848
47849         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
47850         Patch by Alain Guibert.
47851
47852 2008-04-21  Bruno Haible  <bruno@clisp.org>
47853
47854         Fix test failures on mingw.
47855         * tests/test-xstrtol.c (print_no_progname): New function.
47856         (main): Install it in error_print_progname hook.
47857         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
47858         * tests/test-xstrtoimax.sh: Likewise.
47859         * tests/test-xstrtoumax.sh: Likewise.
47860
47861 2008-04-21  Bruno Haible  <bruno@clisp.org>
47862
47863         Fix test failure on mingw.
47864         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
47865
47866 2008-04-21  Bruno Haible  <bruno@clisp.org>
47867
47868         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
47869         Actually assign a value.
47870
47871 2008-04-20  Bruno Haible  <bruno@clisp.org>
47872
47873         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
47874         take 2.
47875         * lib/canonicalize.c (canonicalize_file_name): Elide if the
47876         'canonicalize-lgpl' module is also used.
47877         * lib/canonicalize-lgpl.c: Undo last change.
47878         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
47879
47880 2008-04-20  Bruno Haible  <bruno@clisp.org>
47881
47882         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
47883         config.h. Provide _mkdir based fallback for mingw.
47884         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
47885         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
47886         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
47887         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
47888         rather than defining mkdir in config.h.
47889         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
47890         (gl_SYS_STAT_H_DEFAULTS): New macro.
47891         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
47892         HAVE_IO_H any more.
47893         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
47894         HAVE_DECL_MKDIR and HAVE_IO_H.
47895
47896 2008-04-20  Bruno Haible  <bruno@clisp.org>
47897
47898         * lib/isapipe.c: Port to native Windows platforms.
47899
47900 2008-04-20  Bruno Haible  <bruno@clisp.org>
47901
47902         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
47903
47904 2008-04-21  Eric Blake  <ebb9@byu.net>
47905
47906         Work around preprocessors that don't handle UINTMAX_MAX.
47907         * lib/memchr2.c (memchr2): Avoid embedded #if.
47908         Reported by Alain Guibert, fix suggested by Bruno Haible.
47909
47910 2008-04-21  Simon Josefsson  <simon@josefsson.org>
47911
47912         * doc/posix-functions/strftime.texi (strftime): Explain better
47913         Windows incompatibility.  Suggested by Micah Cowan
47914         <micah@cowan.name>.
47915
47916 2008-04-20  Bruno Haible  <bruno@clisp.org>
47917
47918         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
47919         unistr/u8-mblen.
47920
47921 2008-04-20  Bruno Haible  <bruno@clisp.org>
47922
47923         Fix test failure on platforms with non-GNU iconv.
47924         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
47925         (U_TO_U8): Use it, rather than u16_to_u8.
47926         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
47927         units at the end of the input string.
47928         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
47929
47930 2008-04-20  Bruno Haible  <bruno@clisp.org>
47931
47932         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
47933         when the resulting length is 0.
47934         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
47935
47936 2008-04-20  Bruno Haible  <bruno@clisp.org>
47937
47938         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
47939         works.
47940         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
47941
47942 2008-04-20  Bruno Haible  <bruno@clisp.org>
47943
47944         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
47945         * modules/tsearch-tests (configure.ac): Test for initstate function.
47946
47947 2008-04-20  Bruno Haible  <bruno@clisp.org>
47948
47949         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
47950         for nlink_t if missing.
47951         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
47952
47953 2008-04-19  Bruno Haible  <bruno@clisp.org>
47954
47955         Work around snprintf bug on Linux libc5.
47956         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
47957         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47958         gl_SNPRINTF_SIZE1.
47959         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47960         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
47961         that test failed.
47962         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47963         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
47964         * modules/snprintf (Files): Add m4/printf.m4.
47965         * modules/vsnprintf (Files): Likewise.
47966         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
47967         * doc/posix-functions/vsnprintf.texi: Likewise.
47968
47969 2008-04-19  Bruno Haible  <bruno@clisp.org>
47970
47971         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
47972         from 0.0058 to less than 10^-7.
47973
47974 2008-04-19  Bruno Haible  <bruno@clisp.org>
47975
47976         Fix rounding when a precision is given.
47977         * lib/vasnprintf.c (is_borderline): New function.
47978         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47979         9...9x.
47980         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47981         %e, %g.
47982         * tests/test-vasprintf-posix.c (test_function): Likewise.
47983         * tests/test-snprintf-posix.h (test_function): Likewise.
47984         * tests/test-sprintf-posix.h (test_function): Likewise.
47985         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47986         * tests/test-printf-posix.h (test_function): Likewise.
47987         * tests/test-printf-posix.output: Update.
47988         Reported by John Darrington <john@darrington.wattle.id.au> via
47989         Ben Pfaff <blp@cs.stanford.edu>.
47990
47991 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47992
47993         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47994         Suggested by Bruno Haible <bruno@clisp.org>.
47995
47996 2008-04-17  Bruno Haible  <bruno@clisp.org>
47997
47998         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47999         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
48000         implementation.
48001         Patch by Bruce Merry <bmerry@gmail.com>.
48002
48003 2008-04-17  Simon Josefsson  <simon@josefsson.org>
48004
48005         * doc/posix-functions/strftime.texi (strftime): Mention that %e
48006         doesn't work under Windows.
48007
48008 2008-04-16  Bruno Haible  <bruno@clisp.org>
48009
48010         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
48011         New macros.
48012         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
48013         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
48014         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
48015         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
48016         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
48017         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
48018         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
48019         macros.
48020         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
48021         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
48022         Northern Sotho, Uighur.
48023
48024 2008-04-16  Bruno Haible  <bruno@clisp.org>
48025
48026         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
48027         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
48028         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
48029         Reported by Daniel Bergström <daniel@octocode.com>.
48030
48031 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
48032             Bruno Haible  <bruno@clisp.org>
48033
48034         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
48035         function.
48036         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
48037         New functions, mostly extracted from gl_locale_name_default.
48038         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
48039
48040 2008-04-16  Eric Blake  <ebb9@byu.net>
48041
48042         Adjust strtod detection to catch glibc 2.7 bug.
48043         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
48044         Reported by John Gatewood Ham.
48045
48046 2008-04-16  Bruno Haible  <bruno@clisp.org>
48047
48048         Add tentative support for Linux libc5.
48049         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
48050         * lib/fpurge.c (fpurge): Likewise.
48051         * lib/freadable.c (freadable): Likewise.
48052         * lib/freadahead.c (freadahead): Likewise.
48053         * lib/freading.c (freading): Likewise.
48054         * lib/freadptr.c (freadptr): Likewise.
48055         * lib/freadseek.c (freadptrinc): Likewise.
48056         * lib/fseeko.c (rpl_fseeko): Likewise.
48057         * lib/fseterr.c (fseterr): Likewise.
48058         * lib/fwritable.c (fwritable): Likewise.
48059         * lib/fwriting.c (fwriting): Likewise.
48060         Reported by Alain Guibert <alguibert+bts@free.fr>.
48061
48062 2008-04-15  Bruno Haible  <bruno@clisp.org>
48063
48064         * modules/mathl (configure.ac): Define module indicator.
48065
48066 2008-04-15  Bruno Haible  <bruno@clisp.org>
48067
48068         * lib/logl.c (logl): Remove unused variables.
48069
48070 2008-04-15  Bruno Haible  <bruno@clisp.org>
48071
48072         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
48073         fails.
48074
48075 2008-04-15  Bruno Haible  <bruno@clisp.org>
48076
48077         * lib/trim.c (trim2): Fix argument of isspace() macro.
48078
48079 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
48080
48081         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
48082         to 0.
48083         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
48084
48085 2008-04-14  Bruno Haible  <bruno@clisp.org>
48086
48087         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
48088         AC_LANG_PROGRAM argument.
48089         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
48090         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
48091         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
48092         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48093         * m4/math_h.m4 (gl_MATH_H): Likewise.
48094         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
48095         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48096         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48097         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
48098         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
48099         * m4/regex.m4 (gl_REGEX): Likewise.
48100         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
48101         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
48102         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48103         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
48104         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48105         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48106         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48107         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48108
48109 2008-04-14  Jim Meyering  <meyering@redhat.com>
48110
48111         test-strtod: fix typos: s/abs/fabs/
48112         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
48113
48114 2008-04-13  Bruno Haible  <bruno@clisp.org>
48115
48116         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
48117         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
48118         module is also used and while not building the reloc-wrapper.
48119
48120 2008-04-13  Bruno Haible  <bruno@clisp.org>
48121
48122         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
48123
48124 2008-04-13  Bruno Haible  <bruno@clisp.org>
48125
48126         Fix AIX compilation failure introduced on 2008-04-02.
48127         * tests/test-frexp.c (exp): Undefine before redefining.
48128         * tests/test-frexpl.c (exp): Likewise.
48129
48130 2008-04-13  Bruno Haible  <bruno@clisp.org>
48131
48132         Work around a HP-UX stdio bug.
48133         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
48134         * tests/test-ftello.c (main): Likewise.
48135         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
48136         * doc/posix-functions/ftello.texi: Likewise.
48137
48138 2008-04-13  Bruno Haible  <bruno@clisp.org>
48139
48140         Make test-signbit pass on HP-UX/hppa.
48141         * tests/test-signbit.c (minus_zerol): New variable.
48142         (test_signbitl): Use it.
48143
48144 2008-04-13  Bruno Haible  <bruno@clisp.org>
48145
48146         Make truncl work on OSF/1 4.0.
48147         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
48148         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
48149         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
48150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
48151         HAVE_DECL_TRUNCL.
48152         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
48153         HAVE_DECL_TRUNCL.
48154         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
48155
48156 2008-04-13  Bruno Haible  <bruno@clisp.org>
48157
48158         * lib/unictype.h: Remove trailing comma from enumeration definitions.
48159
48160 2008-04-13  Bruno Haible  <bruno@clisp.org>
48161
48162         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
48163         expression, so as to avoid HP-UX 11 cc compiler bug.
48164
48165 2008-04-13  Bruno Haible  <bruno@clisp.org>
48166
48167         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
48168
48169 2008-04-13  Bruno Haible  <bruno@clisp.org>
48170
48171         * lib/git-merge-changelog.c: Remove empty declaration outside of
48172         functions.
48173
48174 2008-04-13  Bruno Haible  <bruno@clisp.org>
48175
48176         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
48177
48178 2008-04-13  Bruno Haible  <bruno@clisp.org>
48179
48180         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
48181         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
48182         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
48183         also if it exists but lacks definitions of the SHUT_* macros.
48184         * modules/sys_socket (Description): Update.
48185         Reported by Elbert Pol <e.pol@chello.nl>.
48186
48187 2008-04-13  Bruno Haible  <bruno@clisp.org>
48188
48189         * lib/localcharset.c (OS2): Don't redefine if already defined.
48190         Reported by Elbert Pol <e.pol@chello.nl>.
48191
48192 2008-04-13  Bruno Haible  <bruno@clisp.org>
48193
48194         * lib/binary-io.h [__EMX__]: Include <io.h>.
48195         Reported by Elbert Pol <e.pol@chello.nl>.
48196
48197 2008-04-12  Bruno Haible  <bruno@clisp.org>
48198
48199         * lib/fpucw.h: Enable the definitions also for x86_64.
48200         Needed for NetBSD/x86_64.
48201         Reported by Thomas Klausner <tk@giga.or.at>.
48202
48203 2008-04-12  Bruno Haible  <bruno@clisp.org>
48204
48205         * tests/test-strtod.c: Include isnand.h.
48206         (main): Use isnand instead of isnan.
48207         Reported by Jim Meyering.
48208
48209 2008-04-12  Bruno Haible  <bruno@clisp.org>
48210
48211         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
48212         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48213
48214 2008-04-12  Jim Meyering  <meyering@redhat.com>
48215
48216         * m4/math_h.m4 (gl_MATH_H): Fix typos.
48217
48218 2008-04-12  Bruno Haible  <bruno@clisp.org>
48219
48220         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
48221         Reported by Elbert Pol <e.pol@chello.nl>.
48222
48223 2008-04-12  Eric Blake  <ebb9@byu.net>
48224
48225         Work around Solaris 10 math.h bug.
48226         * m4/math_h.m4 (gl_MATH_H): Check for bug.
48227         (gl_MATH_H_DEFAULTS): Set up default.
48228         * modules/math (Makefile.am): Replace new indicators.
48229         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
48230         * tests/test-math.c (main): Test this.
48231         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
48232         * doc/posix-headers/math.texi (math.h): Mention bug.
48233         Reported by Nelson H. F. Beebe and Jim Meyering.
48234
48235 2008-04-11  Bruno Haible  <bruno@clisp.org>
48236
48237         Adapt to future versions of Apple GCC.
48238         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
48239         Reported by Peter O'Gorman <peter@pogma.com>.
48240
48241 2008-04-11  Bruno Haible  <bruno@clisp.org>
48242
48243         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
48244
48245 2008-04-11  Bruno Haible  <bruno@clisp.org>
48246
48247         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
48248
48249         * modules/getaddrinfo-tests (Makefile.am): Define
48250         test_getaddrinfo_LDADD.
48251
48252 2008-04-11  Bruno Haible  <bruno@clisp.org>
48253
48254         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
48255         (init): Fix syntax error.
48256         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
48257         is declared.
48258
48259 2008-04-11  Bruno Haible  <bruno@clisp.org>
48260
48261         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
48262         * modules/glob (Depends-on): Add stdbool.
48263
48264 2008-04-11  Bruno Haible  <bruno@clisp.org>
48265
48266         * lib/trim.c: Include <string.h>.
48267
48268 2008-04-11  Eric Blake  <ebb9@byu.net>
48269
48270         Avoid compile failure on OS/2.
48271         * lib/regex_internal.h (internal_function): Disable optimization
48272         on OS/2 (__EMX__), where it caused compiler error.
48273         Reported by Elbert Pol.
48274
48275 2008-04-11  Bruno Haible  <bruno@clisp.org>
48276
48277         Flush the standard error stream before aborting. Needed on mingw.
48278         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
48279         * tests/test-array_list.c (ASSERT): Likewise.
48280         * tests/test-array_oset.c (ASSERT): Likewise.
48281         * tests/test-avltree_list.c (ASSERT): Likewise.
48282         * tests/test-avltree_oset.c (ASSERT): Likewise.
48283         * tests/test-avltreehash_list.c (ASSERT): Likewise.
48284         * tests/test-binary-io.c (ASSERT): Likewise.
48285         * tests/test-byteswap.c (ASSERT): Likewise.
48286         * tests/test-c-ctype.c (ASSERT): Likewise.
48287         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
48288         * tests/test-c-strcasestr.c (ASSERT): Likewise.
48289         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
48290         * tests/test-c-strstr.c (ASSERT): Likewise.
48291         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
48292         * tests/test-canonicalize.c (ASSERT): Likewise.
48293         * tests/test-carray_list.c (ASSERT): Likewise.
48294         * tests/test-ceilf1.c (ASSERT): Likewise.
48295         * tests/test-ceilf2.c (ASSERT): Likewise.
48296         * tests/test-ceill.c (ASSERT): Likewise.
48297         * tests/test-count-one-bits.c (ASSERT): Likewise.
48298         * tests/test-fbufmode.c (ASSERT): Likewise.
48299         * tests/test-fflush2.c (ASSERT): Likewise.
48300         * tests/test-floorf1.c (ASSERT): Likewise.
48301         * tests/test-floorf2.c (ASSERT): Likewise.
48302         * tests/test-floorl.c (ASSERT): Likewise.
48303         * tests/test-fopen.c (ASSERT): Likewise.
48304         * tests/test-fpending.c (ASSERT): Likewise.
48305         * tests/test-fprintf-posix.c (ASSERT): Likewise.
48306         * tests/test-fpurge.c (ASSERT): Likewise.
48307         * tests/test-freadable.c (ASSERT): Likewise.
48308         * tests/test-freadahead.c (ASSERT): Likewise.
48309         * tests/test-freading.c (ASSERT): Likewise.
48310         * tests/test-freadptr.c (ASSERT): Likewise.
48311         * tests/test-freadptr2.c (ASSERT): Likewise.
48312         * tests/test-freadseek.c (ASSERT): Likewise.
48313         * tests/test-freopen.c (ASSERT): Likewise.
48314         * tests/test-frexp.c (ASSERT): Likewise.
48315         * tests/test-frexpl.c (ASSERT): Likewise.
48316         * tests/test-fseek.c (ASSERT): Likewise.
48317         * tests/test-fseeko.c (ASSERT): Likewise.
48318         * tests/test-fstrcmp.c (ASSERT): Likewise.
48319         * tests/test-ftell.c (ASSERT): Likewise.
48320         * tests/test-ftello.c (ASSERT): Likewise.
48321         * tests/test-func.c (ASSERT): Likewise.
48322         * tests/test-fwritable.c (ASSERT): Likewise.
48323         * tests/test-fwriting.c (ASSERT): Likewise.
48324         * tests/test-getdelim.c (ASSERT): Likewise.
48325         * tests/test-getline.c (ASSERT): Likewise.
48326         * tests/test-i-ring.c (ASSERT): Likewise.
48327         * tests/test-iconv-utf.c (ASSERT): Likewise.
48328         * tests/test-iconv.c (ASSERT): Likewise.
48329         * tests/test-isfinite.c (ASSERT): Likewise.
48330         * tests/test-isnand.c (ASSERT): Likewise.
48331         * tests/test-isnanf.c (ASSERT): Likewise.
48332         * tests/test-isnanl.h (ASSERT): Likewise.
48333         * tests/test-ldexpl.c (ASSERT): Likewise.
48334         * tests/test-linked_list.c (ASSERT): Likewise.
48335         * tests/test-linkedhash_list.c (ASSERT): Likewise.
48336         * tests/test-localename.c (ASSERT): Likewise.
48337         * tests/test-lseek.c (ASSERT): Likewise.
48338         * tests/test-mbscasecmp.c (ASSERT): Likewise.
48339         * tests/test-mbscasestr1.c (ASSERT): Likewise.
48340         * tests/test-mbscasestr2.c (ASSERT): Likewise.
48341         * tests/test-mbscasestr3.c (ASSERT): Likewise.
48342         * tests/test-mbscasestr4.c (ASSERT): Likewise.
48343         * tests/test-mbschr.c (ASSERT): Likewise.
48344         * tests/test-mbscspn.c (ASSERT): Likewise.
48345         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
48346         * tests/test-mbspbrk.c (ASSERT): Likewise.
48347         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
48348         * tests/test-mbsrchr.c (ASSERT): Likewise.
48349         * tests/test-mbsspn.c (ASSERT): Likewise.
48350         * tests/test-mbsstr1.c (ASSERT): Likewise.
48351         * tests/test-mbsstr2.c (ASSERT): Likewise.
48352         * tests/test-mbsstr3.c (ASSERT): Likewise.
48353         * tests/test-memchr2.c (ASSERT): Likewise.
48354         * tests/test-memmem.c (ASSERT): Likewise.
48355         * tests/test-open.c (ASSERT): Likewise.
48356         * tests/test-printf-frexp.c (ASSERT): Likewise.
48357         * tests/test-printf-frexpl.c (ASSERT): Likewise.
48358         * tests/test-printf-posix.c (ASSERT): Likewise.
48359         * tests/test-quotearg.c (ASSERT): Likewise.
48360         * tests/test-rbtree_list.c (ASSERT): Likewise.
48361         * tests/test-rbtree_oset.c (ASSERT): Likewise.
48362         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
48363         * tests/test-round1.c (ASSERT): Likewise.
48364         * tests/test-roundf1.c (ASSERT): Likewise.
48365         * tests/test-roundl.c (ASSERT): Likewise.
48366         * tests/test-signbit.c (ASSERT): Likewise.
48367         * tests/test-sleep.c (ASSERT): Likewise.
48368         * tests/test-snprintf-posix.c (ASSERT): Likewise.
48369         * tests/test-snprintf.c (ASSERT): Likewise.
48370         * tests/test-sprintf-posix.c (ASSERT): Likewise.
48371         * tests/test-stat-time.c (ASSERT): Likewise.
48372         * tests/test-strcasestr.c (ASSERT): Likewise.
48373         * tests/test-strerror.c (ASSERT): Likewise.
48374         * tests/test-striconv.c (ASSERT): Likewise.
48375         * tests/test-striconveh.c (ASSERT): Likewise.
48376         * tests/test-striconveha.c (ASSERT): Likewise.
48377         * tests/test-strsignal.c (ASSERT): Likewise.
48378         * tests/test-strstr.c (ASSERT): Likewise.
48379         * tests/test-strtod.c (ASSERT): Likewise.
48380         * tests/test-trunc1.c (ASSERT): Likewise.
48381         * tests/test-trunc2.c (ASSERT): Likewise.
48382         * tests/test-truncf1.c (ASSERT): Likewise.
48383         * tests/test-truncf2.c (ASSERT): Likewise.
48384         * tests/test-truncl.c (ASSERT): Likewise.
48385         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
48386         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
48387         * tests/test-vasnprintf.c (ASSERT): Likewise.
48388         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
48389         * tests/test-vasprintf.c (ASSERT): Likewise.
48390         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
48391         * tests/test-vprintf-posix.c (ASSERT): Likewise.
48392         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
48393         * tests/test-vsnprintf.c (ASSERT): Likewise.
48394         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
48395         * tests/test-wcwidth.c (ASSERT): Likewise.
48396         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
48397         * tests/test-xprintf-posix.c (ASSERT): Likewise.
48398         * tests/test-xvasprintf.c (ASSERT): Likewise.
48399         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
48400         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
48401         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
48402         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
48403         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
48404         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
48405         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
48406         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
48407         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
48408         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
48409         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
48410         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
48411         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
48412         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
48413         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
48414         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
48415         * tests/unictype/test-block_list.c (ASSERT): Likewise.
48416         * tests/unictype/test-block_of.c (ASSERT): Likewise.
48417         * tests/unictype/test-block_test.c (ASSERT): Likewise.
48418         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
48419         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
48420         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
48421         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
48422         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
48423         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
48424         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
48425         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
48426         * tests/unictype/test-combining.c (ASSERT): Likewise.
48427         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
48428         * tests/unictype/test-digit.c (ASSERT): Likewise.
48429         * tests/unictype/test-mirror.c (ASSERT): Likewise.
48430         * tests/unictype/test-numeric.c (ASSERT): Likewise.
48431         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
48432         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
48433         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
48434         * tests/unictype/test-scripts.c (ASSERT): Likewise.
48435         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
48436         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
48437         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
48438         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
48439         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
48440         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
48441         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
48442         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
48443         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
48444         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
48445         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
48446         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
48447         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
48448         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
48449         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
48450         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
48451         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
48452         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
48453         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
48454         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
48455         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
48456         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
48457         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
48458         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
48459         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
48460         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
48461         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
48462         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
48463         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
48464         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
48465         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
48466         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
48467         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
48468         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
48469         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
48470         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
48471         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
48472         Reported by Eric Blake.
48473
48474 2008-04-11  Bruno Haible  <bruno@clisp.org>
48475
48476         * lib/wchar.in.h: Tweak comment.
48477
48478 2008-04-11  Bruno Haible  <bruno@clisp.org>
48479
48480         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
48481         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
48482         gl_COMMON.
48483         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
48484
48485 2008-04-11  Bruno Haible  <bruno@clisp.org>
48486
48487         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
48488
48489 2008-04-11  Simon Josefsson  <simon@josefsson.org>
48490
48491         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
48492         of attempting to use non-existing /dev/*random.  Based on patch
48493         from Adam Strzelecki <ono@java.pl> in
48494         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
48495
48496 2008-04-08  Bruno Haible  <bruno@clisp.org>
48497
48498         Add tentative support for emx+gcc.
48499         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
48500         * lib/fpurge.c (fpurge): Likewise.
48501         * lib/freadable.c (freadable): Likewise.
48502         * lib/freadahead.c (freadahead): Likewise.
48503         * lib/freading.c (freading): Likewise.
48504         * lib/freadptr.c (freadptr): Likewise.
48505         * lib/freadseek.c (freadptrinc): Likewise.
48506         * lib/fseeko.c (rpl_fseeko): Likewise.
48507         * lib/fseterr.c (fseterr): Likewise.
48508         * lib/fwritable.c (fwritable): Likewise.
48509         * lib/fwriting.c (fwriting): Likewise.
48510         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
48511
48512 2008-04-09  Eric Blake  <ebb9@byu.net>
48513
48514         Avoid some autoconf warnings.
48515         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
48516         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
48517         * m4/afs.m4 (gl_AFS): Likewise.
48518         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
48519         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
48520         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48521         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
48522         (gl_INTEGER_TYPE_SUFFIX): Likewise.
48523         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
48524         (AC_CHECK_DECLS_ONCE): Likewise.
48525         Rename file...
48526         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
48527         gnulib-tool requires autoconf 2.59 or better.
48528         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
48529
48530 2008-04-08  Eric Blake  <ebb9@byu.net>
48531
48532         Use 'git describe --match' if present (added in git 1.5.5).
48533         * build-aux/git-version-gen: Limit result to tags that match 'v*'
48534         if possible.
48535
48536 2008-04-08  Bruno Haible  <bruno@clisp.org>
48537
48538         Add tentative support for OpenServer.
48539         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
48540         _ptr, _cnt.
48541         * lib/fpurge.c (fpurge): Likewise.
48542         * lib/freadable.c (freadable): Likewise.
48543         * lib/freadahead.c (freadahead): Likewise.
48544         * lib/freading.c (freading): Likewise.
48545         * lib/freadptr.c (freadptr): Likewise.
48546         * lib/freadseek.c (freadptrinc): Likewise.
48547         * lib/fseeko.c (rpl_fseeko): Likewise.
48548         * lib/fseterr.c (fseterr): Likewise.
48549         * lib/fwritable.c (fwritable): Likewise.
48550         * lib/fwriting.c (fwriting): Likewise.
48551         Reported by Roger Cornelius <rac@tenzing.org> and
48552         Brian K. White <brian@aljex.com>.
48553
48554 2008-04-06  Jim Meyering  <meyering@redhat.com>
48555
48556         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
48557
48558 2008-04-06  Bruno Haible  <bruno@clisp.org>
48559
48560         Avoid possible error with non-ASCII bytes in UTF-8 locales.
48561         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
48562         * tests/test-printf-posix.sh: Likewise.
48563         * tests/test-vfprintf-posix.sh: Likewise.
48564         * tests/test-vprintf-posix.sh: Likewise.
48565         * tests/test-xprintf-posix.sh: Likewise.
48566
48567 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48568
48569         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
48570         hide error from 'ls', needed on OS/2.
48571         Report by Elbert Pol <elbert.pol@gmail.com>.
48572
48573 2008-04-04  Eric Blake  <ebb9@byu.net>
48574
48575         Make test-fseeko.c failures meaningful.
48576         * tests/test-fseeko.c: Print line number on failure.
48577         * tests/test-fseek.c: Likewise.
48578         Reported by Nelson H. F. Beebe.
48579
48580         Improve strtod bug detection check.
48581         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
48582         required for Solaris 10.
48583         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
48584
48585 2008-04-04  Bruno Haible  <bruno@clisp.org>
48586
48587         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
48588         by m4/setenv.m4.
48589
48590 2008-04-03  Eric Blake  <ebb9@byu.net>
48591
48592         Ensure sane .version contents.
48593         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
48594         version string.
48595         * build-aux/git-version-gen: Improve documentation.
48596
48597         Make GNU make output nicer.
48598         * top/GNUmakefile [!_have-Makefile]: Add dependency on
48599         MAKECMDGOALS to enforce message for all command line targets.  Set
48600         srcdir for use in maint.mk.
48601
48602         Another maintainer tweak.
48603         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
48604         a target that regenerates version.
48605
48606 2008-04-03  Jim Meyering  <meyering@redhat.com>
48607
48608         vc-list-files: don't cause coreutils "make po-check" failure
48609         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
48610
48611 2008-04-03  Eric Blake  <ebb9@byu.net>
48612
48613         Allow VPATH usage of vc-list-files.
48614         * build-aux/vc-list-files (scriptversion): Add timestamp.
48615         (options): Add --help, --version, -C.
48616         (CVS): Support installed cvsu.
48617
48618 2008-04-02  Bruno Haible  <bruno@clisp.org>
48619
48620         Avoid some "statement with no effect" warnings from gcc.
48621         * tests/test-wctype.c (main): Explicitly ignore unused values.
48622         Reported by Jim Meyering.
48623
48624 2008-04-02  Jim Meyering  <meyering@redhat.com>
48625
48626         Avoid some warnings from "gcc -Wshadow".
48627         * tests/test-frexp.c (exp): Define to a different identifier.
48628         * tests/test-frexpl.c (exp): Likewise.
48629
48630 2008-04-03  Jim Meyering  <meyering@redhat.com>
48631
48632         bootstrap: remove dangling *.[ch] symlinks from lib
48633         * build-aux/bootstrap [dangling symlink removal]: Move find's
48634         -depth option to precede all others, to avoid a warning.
48635         Remove *.[ch] files too, and from "$source_base" (usually lib/).
48636
48637 2008-04-02  Bruno Haible  <bruno@clisp.org>
48638
48639         Avoid some warnings from "gcc -Wshadow".
48640         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
48641         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
48642         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
48643         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
48644         Reported by Jim Meyering.
48645
48646 2008-04-01  Bruno Haible  <bruno@clisp.org>
48647
48648         Fix test to work on IRIX 6.5 with cc.
48649         * tests/test-math.c (numeric_equal): New function.
48650         (main): Use it.
48651
48652 2008-04-01  Bruno Haible  <bruno@clisp.org>
48653
48654         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
48655
48656 2008-04-01  Bruno Haible  <bruno@clisp.org>
48657
48658         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
48659         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48660         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
48661         (Depends-on): Remove math.
48662
48663         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
48664         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48665         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
48666         (Depends-on): Remove math.
48667
48668         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
48669         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48670         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
48671         (Depends-on): Remove math.
48672         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
48673         (Depends-on): Remove math.
48674
48675         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
48676         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48677         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
48678         (Depends-on): Remove math.
48679         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
48680         (Depends-on): Remove math.
48681
48682         * tests/test-round1.c: Include nan.h.
48683         (main): Use NaNd instead of NAN.
48684         * modules/round-tests (Files): Add tests/nan.h.
48685
48686         * tests/test-trunc1.c: Include nan.h.
48687         (main): Use NaNd instead of NAN.
48688         * modules/trunc-tests (Files): Add tests/nan.h.
48689
48690         * tests/test-roundf1.c: Include nan.h.
48691         (main): Use NaNf instead of NAN.
48692         * modules/roundf-tests (Files): Add tests/nan.h.
48693
48694         * tests/test-truncf1.c: Include nan.h.
48695         (main): Use NaNf instead of NAN.
48696         * modules/truncf-tests (Files): Add tests/nan.h.
48697
48698         * tests/test-ceilf1.c: Include nan.h.
48699         (main): Use NaNf instead of NAN.
48700         * modules/ceilf-tests (Files): Add tests/nan.h.
48701
48702         * tests/test-floorf1.c: Include nan.h.
48703         (main): Use NaNf instead of NAN.
48704         * modules/floorf-tests (Files): Add tests/nan.h.
48705
48706         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
48707         (main): Use NaNf instead of NAN.
48708         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
48709
48710         * tests/test-isnand.c: Include nan.h instead of <math.h>.
48711         (main): Use NaNd instead of NAN.
48712         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
48713
48714         * tests/test-frexp.c: Include nan.h.
48715         (main): Use NaNd instead of NAN.
48716         * modules/frexp-tests (Files): Add tests/nan.h.
48717
48718         * lib/isnan.c: Don't include <math.h>.
48719         (FUNC): Don't use NAN macro.
48720         * modules/isnand-nolibm (Depends-on): Remove math.
48721         * modules/isnanf-nolibm (Depends-on): Remove math.
48722         * modules/isnanl (Depends-on): Remove math.
48723         * modules/isnanl-nolibm (Depends-on): Remove math.
48724
48725         * tests/nan.h: New file.
48726
48727 2008-04-01  Eric Blake  <ebb9@byu.net>
48728
48729         Fix typos.
48730         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
48731         values to be the right type.
48732
48733         For now, cater to gnulib strtod inaccuracies.
48734         * tests/test-strtod.c (main): Allow 1-ulp error on expected
48735         fractional results.  While not as nice from a QoI perspective, it
48736         is a quicker patch than correctly implementing decimal to binary
48737         rounding.
48738
48739 2008-03-31  Eric Blake  <ebb9@byu.net>
48740
48741         Guarantee a definition of NAN.
48742         * lib/math.in.h (NAN): Define if missing.
48743         * tests/test-math.c (main): Test it.
48744         * doc/posix-headers/math.texi (math.h): Document this.
48745         * lib/isnan.c (rpl_isnand): Use it.
48746         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
48747         * tests/test-floorf1.c (NaN): Likewise.
48748         * tests/test-frexp.c (NaN): Likewise.
48749         * tests/test-isnand.c (NaN): Likewise.
48750         * tests/test-isnanf.c (NaN): Likewise.
48751         * tests/test-round1.c (NaN): Likewise.
48752         * tests/test-roundf1.c (NaN): Likewise.
48753         * tests/test-snprintf-posix.h (NaN): Likewise.
48754         * tests/test-sprintf-posix.h (NaN): Likewise.
48755         * tests/test-trunc1.c (NaN): Likewise.
48756         * tests/test-truncf1.c (NaN): Likewise.
48757         * tests/test-vasnprintf-posix.c (NaN): Likewise.
48758         * tests/test-vasprintf-posix.c (NaN): Likewise.
48759         * modules/isnand-nolibm (Depends-on): Add math.
48760         * modules/isnanf-nolibm (Depends-on): Likewise.
48761         * modules/isnanl (Depends-on): Likewise.
48762         * modules/isnanl-nolibm (Depends-on): Likewise.
48763         * modules/snprintf-posix-tests (Depends-on): Likewise.
48764         * modules/sprintf-posix-tests (Depends-on): Likewise.
48765         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
48766         * modules/vsprintf-posix-tests (Depends-on): Likewise.
48767         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
48768         * modules/vasprintf-posix-tests (Depends-on): Likewise.
48769
48770 2008-03-31  Bruno Haible  <bruno@clisp.org>
48771
48772         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
48773         * doc/posix-functions/strtod.texi: Likewise.
48774
48775 2008-03-31  Bruno Haible  <bruno@clisp.org>
48776
48777         * tests/test-strtod.c (main): Don't use C99 syntax.
48778
48779 2008-03-31  Bruno Haible  <bruno@clisp.org>
48780
48781         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
48782         Reported by Eric Blake.
48783
48784 2008-03-31  Jim Meyering  <meyering@redhat.com>
48785
48786         Don't compare actual signbit return values.
48787         * tests/test-strtod.c (main): Rather, compare only their
48788         zero/non-zero nature.
48789
48790 2008-03-31  Eric Blake  <ebb9@byu.net>
48791
48792         More strtod documentation.
48793         * doc/posix-functions/strtod.texi (strtod): Interpret more test
48794         failures as distinct bugs.
48795
48796 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48797
48798         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
48799         Problem reported by Erik Benada in
48800         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
48801
48802 2008-03-30  Bruno Haible  <bruno@clisp.org>
48803
48804         * tests/test-strtod.c: Add comments about which assertion fails on which
48805         platform.
48806         * doc/posix-functions/strtod.texi: Add info about many more platforms.
48807
48808 2008-03-30  Eric Blake  <ebb9@byu.net>
48809
48810         Test signbit behavior on zeros.
48811         * tests/test-signbit.c (test_signbitf): Add tests for zero.
48812         (test_signbitd, test_signbitl): Likewise.
48813
48814         More strtod touchups.
48815         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
48816         sign of negative underflow, for now.  Use .5, not .1.
48817         * doc/posix-functions/strtod.texi (strtod): Mention these
48818         limitations.
48819         Reported by Jim Meyering.
48820
48821 2008-03-30  Bruno Haible  <bruno@clisp.org>
48822
48823         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
48824         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
48825
48826 2008-03-30  Bruno Haible  <bruno@clisp.org>
48827
48828         Avoid failure when attempting to return empty iconv results on some
48829         platforms.
48830         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
48831         allocation, don't report ENOMEM when the resulting string is empty.
48832
48833 2008-03-30  Bruno Haible  <bruno@clisp.org>
48834
48835         Fix buffer overrun.
48836         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
48837         Don't consider the width for tmp_length. Check count against tmp_length
48838         before doing the padding. Ensure enough allocation during padding.
48839
48840 2008-03-30  Eric Blake  <ebb9@byu.net>
48841
48842         strtod touchups.
48843         * lib/strtod.c (strtod): Avoid compiler warnings.
48844         Reported by Jim Meyering.
48845
48846 2008-03-30  Bruno Haible  <bruno@clisp.org>
48847
48848         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
48849         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
48850         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
48851         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
48852         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
48853         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
48854         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
48855         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
48856
48857         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
48858         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
48859         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
48860         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
48861         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
48862         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
48863         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
48864         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
48865
48866         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
48867         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
48868         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
48869         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
48870         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
48871         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
48872         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
48873         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
48874
48875         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
48876         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
48877
48878         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
48879         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
48880
48881         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
48882         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
48883
48884         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
48885         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
48886         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
48887
48888         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
48889         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
48890         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
48891
48892         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
48893         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
48894         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
48895
48896         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
48897         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
48898         * modules/vasprintf (Depends-on): Add EOVERFLOW.
48899
48900         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
48901         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
48902         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
48903         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
48904         (Depends-on): Add EOVERFLOW.
48905         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
48906         (Depends-on): Add EOVERFLOW.
48907         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48908         (Depends-on): Add EOVERFLOW.
48909         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48910         (Depends-on): Add EOVERFLOW.
48911         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48912         (Depends-on): Add EOVERFLOW.
48913         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48914         (Depends-on): Add EOVERFLOW.
48915         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48916         (Depends-on): Add EOVERFLOW.
48917         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48918         (Depends-on): Add EOVERFLOW.
48919
48920         * lib/sprintf.c (EOVERFLOW): Remove fallback.
48921         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
48922         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
48923
48924         * lib/snprintf.c (EOVERFLOW): Remove fallback.
48925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
48926         * modules/snprintf (Depends-on): Add EOVERFLOW.
48927
48928         * lib/poll.c (EOVERFLOW): Remove fallback.
48929         * modules/poll (Depends-on): Add EOVERFLOW.
48930
48931         * lib/getugroups.c (EOVERFLOW): Remove fallback.
48932         * modules/getugroups (Depends-on): Add EOVERFLOW.
48933
48934         * lib/getdelim.c (EOVERFLOW): Remove fallback.
48935         * modules/getdelim (Depends-on): Add EOVERFLOW.
48936
48937         * lib/ftell.c (EOVERFLOW): Remove fallback.
48938         * modules/ftell (Depends-on): Add EOVERFLOW.
48939
48940         * lib/fprintf.c (EOVERFLOW): Remove fallback.
48941         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
48942         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
48943
48944         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
48945
48946         * modules/EOVERFLOW-tests: New file.
48947         * tests/test-EOVERFLOW.c: New file.
48948
48949         * modules/EOVERFLOW: New file.
48950         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
48951
48952 2008-03-30  Bruno Haible  <bruno@clisp.org>
48953
48954         Fix bug introduced on 2007-06-10.
48955         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
48956         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
48957
48958 2008-03-30  Bruno Haible  <bruno@clisp.org>
48959
48960         Improve freadseek's efficiency after ungetc.
48961         * lib/freadseek.c: Include freadahead.h.
48962         (freadptrinc): New function, extracted from freadseek.
48963         (freadseek): Use it in a loop. Use freadahead to determine the number
48964         of loop iterations.
48965         * modules/freadseek (Depends-on): Add freadahead.
48966         (configure.ac): Require AC_C_INLINE.
48967
48968 2008-03-30  Bruno Haible  <bruno@clisp.org>
48969
48970         * lib/freadseek.c (freadseek): Don't ignore the return value of
48971         freadptr.
48972
48973 2008-03-29  Eric Blake  <ebb9@byu.net>
48974
48975         Add hex float support.
48976         * modules/strtod (Depends-on): Add c-ctype.
48977         (Link): Mention POW_LIB.
48978         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48979         whitespace between 'e' and exponent.
48980         * tests/test-strtod.c (main): Enable hex float tests.
48981         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48982         now provides.
48983
48984         Document various strtod bugs, with some fixes.
48985         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48986         "-0x", "inf", "nan", and hex constants.
48987         * doc/posix-functions/atof.texi (atof): Likewise.
48988         * modules/stdlib (Makefile.am): Support strtod.
48989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48990         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48991         detect additional strtod bugs.
48992         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48993         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48994         bool where appropriate.  Parse 'inf' and 'nan'.
48995         * tests/test-strtod.c: New file.
48996         * modules/strtod (Depends-on): Add stdbool, stdlib.
48997         (configure.ac): Turn on module indicator.
48998         * modules/strtod-tests: New module.
48999
49000 2008-03-29  Eric Blake  <ebb9@byu.net>
49001
49002         Fix ftell on mingw.
49003         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
49004         * modules/ftell-tests (Depends-on): Add binary-io.
49005         * modules/ftello-tests (Depends-on): Likewise.
49006         * tests/test-ftell.c (main): Enhance test to cover behavior after
49007         ungetc.  Enforce binary mode.
49008         * tests/test-ftello.c (main): Likewise.
49009
49010         Pass test-freadseek on cygwin.
49011         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
49012         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
49013         ungetc buffer.
49014
49015         * tests/test-fflush2.c (main): Fix typo.
49016
49017 2008-03-29  Bruno Haible  <bruno@clisp.org>
49018
49019         * tests/test-fflush2.c (main): Temporarily disable the contents of
49020         this test.
49021         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
49022         Reported by Eric Blake.
49023
49024 2008-03-28  Simon Josefsson  <simon@josefsson.org>
49025
49026         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
49027         (GC_SHA224_DIGEST_SIZE): Add.
49028
49029         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
49030         (gc_hash_digest_length): Likewise.
49031         (gc_hash_buffer): Likewise.
49032
49033 2008-03-25  Bruno Haible  <bruno@clisp.org>
49034
49035         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
49036         detail which gettext release to use.
49037         Reported by Simon Josefsson.
49038
49039 2008-03-26  Jim Meyering  <meyering@redhat.com>
49040
49041         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
49042         * modules/gnumakefile (clean-GNUmakefile): Also, use
49043         test ... && ... || : syntax rather than if-then ... fi.
49044
49045         gnumakefile: Don't double-quote-expand $(VPATH) value.
49046         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
49047
49048 2008-03-24  Eric Blake  <ebb9@byu.net>
49049
49050         Alter GNUmakefile to install into top directory.
49051         * modules/maintainer-makefile: Split, and add dependency...
49052         * modules/gnumakefile: to this new module.
49053         * build-aux/GNUmakefile: Move...
49054         * top/GNUmakefile: ...here.
49055         * build-aux/maint.mk: Move...
49056         * top/maint.mk: ...here.
49057         * MODULES.html.sh (Support for maintaining...): Document new
49058         module.
49059
49060 2008-03-23  Bruno Haible  <bruno@clisp.org>
49061
49062         * gnulib-tool: New options --vc-files, --no-vc-files.
49063         (func_usage): Document them.
49064         (vc_files): New variable.
49065         (func_import): Consider vc_files.
49066         (func_create_testdir): Set vc_files to empty.
49067         Suggested by Jim Meyering and Karl Berry.
49068
49069 2008-03-23  Bruno Haible  <bruno@clisp.org>
49070
49071         Fix regex compilation error on HP-UX 11.
49072         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
49073         * modules/regex (Files): Add m4/mbstate_t.m4.
49074         Reported by Ton Voon <ton.voon@altinity.com>.
49075
49076 2008-03-23  Bruno Haible  <bruno@clisp.org>
49077
49078         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
49079
49080 2008-03-23  Eric Blake  <ebb9@byu.net>
49081             Bruno Haible  <bruno@clisp.org>
49082
49083         Install files from top/ in the destination directory.
49084         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49085         augmentation also for the files from top/.
49086         (func_import, func_create_testdir): Rewrite file names:
49087         top/filename -> filename.
49088
49089 2008-03-23  Bruno Haible  <bruno@clisp.org>
49090
49091         Tweak "gnulib --version" output.
49092         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
49093
49094 2008-03-23  Bruno Haible  <bruno@clisp.org>
49095
49096         Tweak "gnulib --version" output.
49097         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
49098         rather than contents of ChangeLog, when possible.
49099
49100 2008-03-21  Eric Blake  <ebb9@byu.net>
49101
49102         More --version tweaks.
49103         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
49104         date of last ChangeLog entry.
49105
49106 2008-03-21  Jim Meyering  <meyering@redhat.com>
49107
49108         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
49109
49110 2008-03-20  Eric Blake  <ebb9@byu.net>
49111
49112         VPATH fix.
49113         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
49114
49115 2008-03-20  Simon Josefsson  <simon@josefsson.org>
49116
49117         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
49118         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
49119
49120 2008-03-20  Eric Blake  <ebb9@byu.net>
49121
49122         Sync GNUmakefile with coreutils.
49123         * build-aux/GNUmakefile (have-Makefile): Rename...
49124         (_have-Makefile): ...to this, for namespace consideration.
49125         (GNUmakefile.cfg): Include, if present.
49126         (_autoreconf): Define a default.
49127         (_is-dist-target): New rule for rebuilds to pick up intra-release
49128         version.
49129         (maint-cfg.mk): Rename...
49130         (cfg.mk): ...to this.
49131
49132 2008-03-18  Jim Meyering  <meyering@redhat.com>
49133
49134         New script and module: mktempd
49135         * MODULES.html.sh (maint+release support): Add mktempd.
49136         * build-aux/mktempd: New file.
49137         * modules/mktempd: New file.
49138
49139 2008-03-15  Jim Meyering  <meyering@redhat.com>
49140
49141         Undo last change.
49142         * lib/sha1.c, lib/md5.c: 63 != ~63.
49143         Reported by Andreas Schwab.
49144
49145         sha1.c, md5.c: Hoist a redundant expression.
49146         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
49147         "ctx->buflen" only once, before calling *_process_block.
49148         * lib/md5.c (md5_process_bytes): Likewise.
49149
49150 2008-03-14  Eric Blake  <ebb9@byu.net>
49151
49152         Bump copyright year in files generated by gnulib-tool.
49153         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
49154         gnulib-tool, rather than hard-coding it.
49155
49156         Fix 'gnulib-tool --version' output to work with git.
49157         * gnulib-tool (func_gnulib_dir): New function, extracted from...
49158         (startup): ...here.
49159         (func_version): Use it to invoke git-version-gen, rather than
49160         relying on CVS keyword expansion.  Modernize wording.
49161         (cvsdatestamp, last_checkin_date, version): Kill unused
49162         variables.
49163
49164 2008-03-12  Jim Meyering  <meyering@redhat.com>
49165
49166         Recognize optional cast of the argument to free.
49167         * build-aux/useless-if-before-free: Update regexps.
49168
49169         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
49170
49171 2008-03-11  Bruno Haible  <bruno@clisp.org>
49172
49173         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
49174         by a single package.
49175         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
49176         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
49177         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
49178         Reported by Sam Steingold <sds@gnu.org>.
49179
49180 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49181
49182         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
49183         repositories.
49184
49185 2008-03-11  Bruno Haible  <bruno@clisp.org>
49186
49187         Avoid conflicts between local macro definitions.
49188         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49189         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
49190
49191 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
49192             Bruno Haible  <bruno@clisp.org>
49193
49194         Make va_copy work with some version of xlc on AIX 5.1.
49195         * lib/stdarg.in.h: New file.
49196         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
49197         On AIX, use a <stdarg.h> file substitute.
49198         * modules/stdarg (Files): Add lib/stdarg.in.h.
49199         (Depends-on): Add include_next.
49200         (Makefile.am): Build a stdarg.h substitute if requested.
49201         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
49202
49203 2008-03-10  Bruno Haible  <bruno@clisp.org>
49204
49205         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
49206         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49207         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49208
49209 2008-03-10  Bruno Haible  <bruno@clisp.org>
49210
49211         * modules/stdlib (Depends-on): Add include_next, remove
49212         absolute-header.
49213
49214 2008-03-09  Bruno Haible  <bruno@clisp.org>
49215
49216         * lib/freadahead.h (freadahead): Document more precisely.
49217         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
49218         the sum of both buffer sizes.
49219         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
49220         * NEWS: Document the change.
49221
49222 2008-03-09  Bruno Haible  <bruno@clisp.org>
49223
49224         Extend freadptr to return also the buffer size.
49225         * lib/freadptr.h (freadptr): Add sizep argument.
49226         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
49227         (freadptr): Add sizep argument. Determine buffer size like freadahead
49228         does.
49229         * tests/test-freadptr.c: Don't include freadahead.h.
49230         (main): Adapt for new calling convention of freadptr.
49231         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
49232         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
49233         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
49234         tests/test-freadptr2.sh.
49235         (Depends): Remove freadahead.
49236         (TESTS): Add test-freadptr2.sh.
49237         (check_PROGRAMS): Add test-freadptr2.
49238
49239 2008-03-09  Bruno Haible  <bruno@clisp.org>
49240
49241         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
49242         Report and solution by Simon Josefsson.
49243
49244 2008-03-06  Bruno Haible  <bruno@clisp.org>
49245
49246         Make fflush after ungetc work on BSD platforms.
49247         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
49248         * tests/test-fflush2.c: New file.
49249         * tests/test-fflush2.sh: New file.
49250         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
49251         tests/test-fflush2.c.
49252         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
49253         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
49254
49255 2008-03-06  Eric Blake  <ebb9@byu.net>
49256
49257         Likewise for ftello.
49258         * modules/ftello (Dependencies): Add extensions.
49259         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
49260
49261 2008-03-06  Bruno Haible  <bruno@clisp.org>
49262
49263         * modules/fseeko (Dependencies): Add extensions.
49264         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
49265         Needed on glibc systems.
49266
49267 2008-03-06  Bruno Haible  <bruno@clisp.org>
49268
49269         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
49270         email address.
49271         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49272
49273 2008-03-06  Bruno Haible  <bruno@clisp.org>
49274
49275         * users.txt: Add libgnupdf.
49276
49277 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49278
49279         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
49280         (Header File Substitutes, Function Substitutes,
49281         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
49282         (Build robot for gnulib): Fix typo.
49283
49284 2008-03-06  Bruno Haible  <bruno@clisp.org>
49285
49286         * doc/gnulib-tool.texi (VCS Issues): Small updates.
49287         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49288
49289 2008-03-06  Bruno Haible  <bruno@clisp.org>
49290
49291         * doc/func.texi: New file, extracted from doc/gnulib.texi.
49292         * doc/gnulib.texi: Include it.
49293
49294 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49295
49296         * modules/func (License): Change license to unlimited; there was
49297         no LGPL parts in the module anyway.
49298
49299 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49300
49301         * modules/__func__: Renamed to modules/func.
49302         * modules/__func__-tests: Renamed to modules/func-tests.
49303         * tests/test-__func__.c: Renamed to tests/test-func.c.
49304         * m4/__func__.m4: Renamed to m4/func.m4.
49305         * doc/gnulib.texi (__func__): Section renamed to func.
49306         Suggested by Eric Blake <ebb9@byu.net>.
49307
49308 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49309
49310         * doc/gnulib.texi (__func__): Use C99 terminology when talking
49311         about __func__.  Make example self-contained.  Suggested by Eric
49312         Blake <ebb9@byu.net>.
49313
49314         * tests/test-__func__.c (main): Avoid extraneous () around __func.
49315         Suggested by Eric Blake <ebb9@byu.net>.
49316
49317 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49318
49319         * modules/__func__: New file.
49320         * modules/__func__-tests: New file.
49321         * tests/test-__func__.c: New file.
49322         * m4/__func__.m4: New file.
49323         * doc/gnulib.texi (__func__): Document __func__ module.
49324
49325 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49326
49327         * modules/byteswap (License): Re-license as LGPLv2+.
49328
49329 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49330
49331         * doc/Makefile: Add pdf target.
49332
49333 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49334
49335         * modules/inline (License): Use 'unlimited', since there are only
49336         *.m4 files in this module.
49337
49338 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
49339             Bruno Haible  <bruno@clisp.org>
49340
49341         Add support for HP C 7.1 on OpenVMS 8.3.
49342         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
49343
49344 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
49345
49346         Update VMS specifics.
49347         * lib/getopt.c [VMS]: Remove include of unixlib.h.
49348
49349 2008-03-02  Jim Meyering  <meyering@redhat.com>
49350
49351         Remove the last dependency on the "free" module.
49352         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
49353         Reported by Bob Proulx.
49354
49355         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
49356
49357         Remove useless "if" tests before free.  Deprecate "free" module.
49358         * doc/posix-functions/free.texi: Mention that this
49359         module is no longer useful.
49360         * modules/free (Notice): Say this module is obsolete.
49361         * modules/readutmp (Depends-on): Remove free.
49362         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
49363         * lib/putenv.c (putenv): Likewise.
49364         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
49365         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
49366         * tests/test-c-strcasestr.c (main): Likewise.
49367         * tests/test-c-strstr.c (main): Likewise.
49368         * tests/test-mbscasestr1.c (main): Likewise.
49369         * tests/test-mbscasestr2.c (main): Likewise.
49370         * tests/test-mbsstr1.c (main): Likewise.
49371         * tests/test-mbsstr2.c (main): Likewise.
49372         * tests/test-memmem.c (main): Likewise.
49373         * tests/test-strcasestr.c (main): Likewise.
49374         * tests/test-striconv.c (main): Likewise.
49375         * tests/test-striconveh.c (main): Likewise.
49376         * tests/test-striconveha.c (main): Likewise.
49377         * tests/test-strstr.c (main): Likewise.
49378
49379         * build-aux/git-version-gen: Adjust a comment and the Usage string.
49380
49381         bootstrap: sync from coreutils again
49382         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
49383
49384 2008-03-01  Jim Meyering  <meyering@redhat.com>
49385
49386         bootstrap: sync from coreutils
49387         * build-aux/bootstrap (update_po_files): Copy a .po file into place
49388         also when the target doesn't exist.
49389
49390 2008-03-01  Eric Blake  <ebb9@byu.net>
49391
49392         Fix bugs in last patch.
49393         * lib/memchr2.c (memchr2): Fix typo.
49394         * tests/test-memchr2.c: Test previous bug, and don't use GNU
49395         extension.
49396         Reported by Bruce Korb.
49397
49398         New module 'memchr2'.
49399         * modules/memchr2: New file.
49400         * modules/memchr2-tests: Likewise.
49401         * lib/memchr2.h: Likewise.
49402         * lib/memchr2.c: Likewise, based on memchr.c.
49403         * tests/test-memchr2.c: New test.
49404         * MODULES.html.sh (String handling): Add memchr2.
49405
49406 2008-02-29  Bruno Haible  <bruno@clisp.org>
49407
49408         * modules/freadseek-tests: New file.
49409         * tests/test-freadseek.sh: New file.
49410         * tests/test-freadseek.c: New file.
49411
49412         New module 'freadseek'.
49413         * modules/freadseek: New file.
49414         * lib/freadseek.h: New file.
49415         * lib/freadseek.c: New file.
49416         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
49417
49418 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49419
49420         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
49421         wydawca.
49422
49423         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
49424         program_invocation_name and program_invocation_short_name are
49425         present.
49426
49427 2008-02-28  Bruno Haible  <bruno@clisp.org>
49428
49429         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
49430         * tests/test-freadptr.sh: Also test non-seekable stdin.
49431
49432 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
49433
49434         * build-aux/bootstrap (source_base, m4_base)
49435         (doc_base, tests_base): New variables.
49436         (gnulib_tool_options): Do not hardcode base directories, use
49437         the above variables instead.
49438
49439 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
49440
49441         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
49442
49443 2008-02-28  Bruno Haible  <bruno@clisp.org>
49444
49445         * modules/freadptr-tests: New file.
49446         * tests/test-freadptr.sh: New file.
49447         * tests/test-freadptr.c: New file.
49448
49449         New module 'freadptr'.
49450         * modules/freadptr: New file.
49451         * lib/freadptr.h: New file.
49452         * lib/freadptr.c: New file.
49453         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
49454
49455 2008-02-26  Karl Berry  <karl@freefriends.org>
49456
49457         Sync from Libtool:
49458         * libltdl/argz.c (argz_add, argz_count): New functions.
49459         * libltdl/argz.in.h: Declare them.
49460         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
49461
49462 2008-02-22  Bruno Haible  <bruno@clisp.org>
49463
49464         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
49465         is a pointer type.  Needed for HP-UX 10.
49466         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
49467         * doc/posix-functions/gmtime_r.texi: Likewise.
49468         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49469
49470 2008-02-24  Bruno Haible  <bruno@clisp.org>
49471
49472         * modules/environ-tests: New file.
49473         * tests/test-environ.c: New file.
49474
49475         New module 'environ'.
49476         * modules/environ: New file.
49477         * lib/unistd.in.h (environ): New declaration.
49478         * m4/environ.m4: New file.
49479         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
49480         after use.
49481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
49482         HAVE_DECL_ENVIRON.
49483         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
49484         HAVE_DECL_ENVIRON.
49485         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
49486         wrong claim that 'environ' is missing on some systems.
49487         * modules/execute (Depends-on): Add environ.
49488         * lib/execute.c (environ): Remove fallback declaration.
49489         * modules/pipe (Depends-on): Add environ.
49490         * lib/pipe.c (environ): Remove fallback declaration.
49491         * modules/setenv (Depends-on): Add environ.
49492         * lib/setenv.c (environ): Remove fallback declaration.
49493         * modules/unsetenv (Depends-on): Add environ.
49494         * lib/unsetenv.c (environ): Remove fallback declaration.
49495         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
49496         m4/environ.m4.
49497         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
49498         (gl_PREREQ_UNSETENV): Likewise.
49499
49500 2008-02-24  Bruno Haible  <bruno@clisp.org>
49501
49502         * doc/posix-functions/environ.texi: Document the MacOS X problem.
49503
49504 2008-02-20  Bob Proulx  <bob@proulx.com>
49505
49506         Enable use of older two part flavor 'git describe'.
49507         * build-aux/git-version-gen: If using the older two part flavor of
49508         git version then recreate the third part now present in the
49509         newer three part flavor of git describe.
49510
49511 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
49512
49513         * lib/fts.c (fts_build): Typo correction to comment.
49514
49515 2008-02-17  Bruno Haible  <bruno@clisp.org>
49516
49517         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
49518         generating no-op conflicts.
49519
49520 2008-02-17  Bruno Haible  <bruno@clisp.org>
49521
49522         Speed up by 10%.
49523         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
49524         result_entries, rather than an index-based loop.
49525
49526 2008-02-17  Bruno Haible  <bruno@clisp.org>
49527
49528         Speed up by 25%.
49529         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
49530         'hashcode_cached'.
49531         (entry_create): New function.
49532         (entry_hashcode): Use the cached hashcode if possible.
49533         (read_changelog_file, try_split_merged_entry): Use entry_create.
49534
49535 2008-02-17  Bruno Haible  <bruno@clisp.org>
49536
49537         Speed up from O(n^2) to O(n) for long ChangeLog files.
49538         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
49539         (read_changelog_file): Change implementation of entries_reversed list
49540         to rbtreehash.
49541         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
49542
49543 2008-02-17  Bruno Haible  <bruno@clisp.org>
49544
49545         New option --split-merged-entry.
49546         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
49547         (find_paragraph_end, try_split_merged_entry): New functions.
49548         (long_options): Add option --split-merged-entry.
49549         (usage): Document option --split-merged-entry.
49550         (main): Implement option --split-merged-entry.
49551         Reported by Eric Blake.
49552
49553 2008-02-17  Bruno Haible  <bruno@clisp.org>
49554
49555         * lib/git-merge-changelog.c: Include c-strstr.h.
49556         (main): Support the "git pull --rebase" situation.
49557         * modules/git-merge-changelog (Depends-on): Add c-strstr.
49558         Reported by Eric Blake.
49559
49560 2008-02-16  Eric Blake  <ebb9@byu.net>
49561
49562         Avoid doubling \ in common case of "c-maybe" quoting style.
49563         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
49564         eliding outer quotes.
49565         * lib/quotearg.h: Document this.
49566         * tests/test-quotearg.c (result_strings, inputs, results_g)
49567         (flag_results, locale_results): Test it by adding a new string to
49568         each test group.
49569         (compare_strings): Test new string.
49570
49571 2008-02-13  Eric Blake  <ebb9@byu.net>
49572
49573         Avoid trigraph quoting in default output.
49574         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
49575         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
49576         unless explicitly requested.
49577         * tests/test-quotearg.c (flag_results, main): Add additional tests.
49578
49579 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
49580
49581         Don't rely on signed integer overflowing to negative value.
49582         * lib/getugroups.c (getugroups): Include <limits.h>.
49583         Instead, compare against INT_MAX, and increment only if the test passes.
49584
49585 2008-02-13  Jim Meyering  <meyering@redhat.com>
49586         and Eric Blake  <ebb9@byu.net>
49587
49588         Avoid shadowing warning and compile errors on Linux.
49589         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
49590         forwarding macros on Linux.
49591         (dcgettext): Define a stub, for Linux.
49592         (results_g, main): Avoid warnings.
49593
49594 2008-02-12  Eric Blake  <ebb9@byu.net>
49595
49596         Silence warning in last patch.
49597         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
49598
49599         Quotearg part 4: add tests, fix c-maybe colon quoting.
49600         * lib/quotearg.h: Improve documentation.
49601         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
49602         escapes when adding outer quotes.  When quoting trigraphs, use
49603         valid C notation.  When quoting NUL, omit extra characters if next
49604         character is not digit.  Alter prototype.
49605         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
49606         callers.
49607         * modules/quotearg-tests: New module.
49608         * tests/test-quotearg.c: New test.
49609
49610 2008-02-07  Eric Blake  <ebb9@byu.net>
49611
49612         Quotearg part 3: add flag to control outer quote elision.
49613         * lib/quotearg.h (c_maybe_quoting_style): New style.
49614         (enum quoting_flags): Better documentation of flags.
49615         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
49616         c-maybe style.
49617         (quotearg_buffer_restyled): Handle new flag to elide outer
49618         quotes.
49619
49620         Quotearg part 2: add flag that can control NUL elision.
49621         * lib/quotearg.h (set_quoting_flags): New prototype.
49622         * lib/quotearg.c (struct quoting_options): Add flag field.
49623         (set_quoting_flags): New function.
49624         (quotearg_buffer_restyled): Add flags parameter.
49625         (quotearg_alloc_mem): Set the flag if length cannot be returned.
49626         (quotearg_n_options): Set the flag, since length cannot be
49627         returned.
49628         (quoting_options_from_style): Default flags correctly.
49629
49630         Quotearg part 1: more wrappers, restore quotearg_char state.
49631         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
49632         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
49633         (quotearg_colon_mem): New wrappers.
49634         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
49635         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
49636         functions.
49637         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
49638         (quotearg_colon_mem): New functions.
49639
49640 2008-02-11  Bruno Haible  <bruno@clisp.org>
49641
49642         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
49643         library in the current directory: it does not work with parallel make.
49644         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49645
49646 2008-02-11  Bruno Haible  <bruno@clisp.org>
49647
49648         * .gitattributes: New file.
49649
49650 2008-02-11  Jim Meyering  <meyering@redhat.com>
49651
49652         useless-if-before-free: Fix reversed exit values.
49653         * build-aux/useless-if-before-free: Use correct values
49654         for EXIT_MATCH and EXIT_NO_MATCH.
49655
49656         * build-aux/useless-if-before-free: Close stdout carefully.
49657
49658 2008-02-10  Bruno Haible  <bruno@clisp.org>
49659
49660         New module 'git-merge-changelog'.
49661         * modules/git-merge-changelog: New file.
49662         * lib/git-merge-changelog.c: New file.
49663
49664 2008-02-10  Jim Meyering  <meyering@redhat.com>
49665
49666         useless-if-before-free: New option: --list (-l).
49667
49668         useless-if-before-free: Don't exit immediately upon open failure.
49669         * build-aux/useless-if-before-free: Exit 2 for errors.
49670         Upon failure to open a file, don't exit immediately.
49671         Rather, just warn and continue with any remaining files.
49672
49673 2008-02-10  Bruno Haible  <bruno@clisp.org>
49674
49675         New abstract list operation 'node_set_value'.
49676         * lib/gl_list.h (gl_list_node_set_value): New function.
49677         (struct gl_list_implementation): New field node_set_value.
49678         * lib/gl_list.c (gl_list_node_set_value): New function.
49679         * lib/gl_array_list.c (gl_array_node_set_value): New function.
49680         (gl_array_list_implementation): Update.
49681         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
49682         (gl_carray_list_implementation): Update.
49683         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
49684         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49685         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49686         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
49687         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49688         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49689         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49690         Update.
49691         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49692         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
49693         (gl_sublist_list_implementation): Update.
49694
49695 2008-02-10  Bruno Haible  <bruno@clisp.org>
49696
49697         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
49698         Needed when ELEMENT is #defined to 'some_type *'.
49699
49700 2008-02-10  Jim Meyering  <meyering@redhat.com>
49701
49702         New script and module: useless-if-before-free
49703         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
49704         * build-aux/useless-if-before-free: New file.
49705         * modules/useless-if-before-free: New file.
49706
49707         * build-aux/gitlog-to-changelog: Use committer date, not author date.
49708
49709         xstrtol_error: Fix typo.
49710         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
49711         s/exit_failure/exit_status/.
49712
49713 2008-02-09  Jim Meyering  <meyering@redhat.com>
49714
49715         New script and module: gitlog-to-changelog
49716         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
49717         * modules/gitlog-to-changelog: New file.
49718         * build-aux/gitlog-to-changelog: New file.
49719
49720 2008-02-08  Jim Meyering  <meyering@redhat.com>
49721
49722         Avoid two "parameter unused" warnings.
49723         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
49724         Mark "st" as used.
49725
49726         Use "git COMMAND", not "git-COMMAND".
49727         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
49728         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
49729         * build-aux/git-version-gen: Use "git status", not "git-status".
49730
49731 2008-02-07  Bruno Haible  <bruno@clisp.org>
49732
49733         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
49734         Avoids a crash on Windows Vista.
49735         Reported by Adam Strzelecki <ono@java.pl> via
49736         Simon Josefsson <simon@josefsson.org>.
49737
49738 2008-02-06  Bruno Haible  <bruno@clisp.org>
49739
49740         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
49741         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
49742         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
49743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
49744         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49745         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49746         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
49747         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
49748         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49749         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49750         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49751         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49752         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49753         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49754         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49755         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
49756         left-adjust flag.
49757         * tests/test-snprintf-posix.h (test_function): Likewise.
49758         * tests/test-sprintf-posix.h (test_function): Likewise.
49759         * tests/test-vasprintf-posix.c (test_function): Likewise.
49760         * doc/posix-functions/fprintf.texi: Update.
49761         * doc/posix-functions/printf.texi: Update.
49762         * doc/posix-functions/snprintf.texi: Update.
49763         * doc/posix-functions/sprintf.texi: Update.
49764         * doc/posix-functions/vfprintf.texi: Update.
49765         * doc/posix-functions/vprintf.texi: Update.
49766         * doc/posix-functions/vsnprintf.texi: Update.
49767         * doc/posix-functions/vsprintf.texi: Update.
49768         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49769
49770 2008-02-06  Bruno Haible  <bruno@clisp.org>
49771
49772         Fix bug introduced on 2008-01-26.
49773         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
49774
49775 2008-02-06  Bruno Haible  <bruno@clisp.org>
49776
49777         Fix bug introduced on 2007-06-10.
49778         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
49779         !NEED_PRINTF_FLAG_ZERO.
49780
49781 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
49782
49783         getloadavg: use libperfstat on AIX5
49784         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
49785
49786 2008-02-03  Bruno Haible  <bruno@clisp.org>
49787
49788         * lib/diffseq.h: Add comments about required #includes.
49789         Reported by Michael Biggs <gnulib@doubleplum.net>.
49790
49791 2008-02-01  Bruno Haible  <bruno@clisp.org>
49792
49793         * users.txt: Add gnuit.
49794
49795 2008-01-31  Bruno Haible  <bruno@clisp.org>
49796
49797         * lib/md4.c (set_uint32): Mark as inline.
49798         * lib/md5.c (set_uint32): Likewise.
49799         * lib/sha1.c (set_uint32): Likewise.
49800         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
49801         * m4/md5.m4 (gl_MD5): Likewise.
49802         * m4/sha1.m4 (gl_SHA1): Likewise.
49803
49804 2008-01-31  Jim Meyering  <meyering@redhat.com>
49805
49806         Use "sizeof VAR", rather than a literal "4".
49807         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
49808         * lib/md4.c (md4_read_ctx): Likewise.
49809         * lib/sha1.c (sha1_read_ctx): Likewise.
49810
49811 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49812
49813         * tests/test-sha1.c: New file, based on test-md5.c.
49814
49815         * modules/crypto/sha1-tests: New file.
49816
49817 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49818
49819         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
49820
49821 2008-01-31  Jim Meyering  <meyering@redhat.com>
49822
49823         Prefer "sizeof v" over the equivalent "4".
49824         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
49825         * lib/md5.c (set_uint32): Likewise.
49826         * lib/sha1.c (set_uint32): Likewise.
49827
49828 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49829
49830         * lib/sha1.c (set_uint32): Mark function as static.
49831
49832 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49833
49834         md2: clarify comments to say that alignment is not required.
49835         * lib/md2.h: Remove warning about alignment in comment.
49836         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
49837         never been required.
49838
49839 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49840
49841         md4: adapt alignment constraint fix from sha1.
49842         * lib/md4.c (set_uint32): New function, from sha1.c
49843         (md4_read_ctx): Use it.
49844         (md4_finish_ctx): Doc fix.
49845         * lib/md4.h: Doc fix.
49846
49847 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49848
49849         md5: adapt alignment constraint fix from sha1.
49850         * lib/md5.c (set_uint32): New function, from sha1.c
49851         (md5_read_ctx): Use it.
49852         (md5_finish_ctx): Doc fix.
49853         * lib/md5.h: Doc fix.
49854
49855 2008-01-30  Peter Palfrader  <weasel@debian.org>
49856
49857         sha1: remove the result buffer alignment constraint
49858         * lib/sha1.c (set_uint32): New function.
49859         (sha1_read_ctx): Rewrite to remove the result buffer alignment
49860         constraint.
49861         (sha1_finish_ctx): Remove comment warning about alignment constraint.
49862         * lib/sha1.h: Likewise.
49863
49864 2008-01-30  Andreas Schwab  <schwab@suse.de>
49865             Bruno Haible  <bruno@clisp.org>
49866
49867         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
49868         correct definition of LDBL_MIN_EXP.
49869
49870 2008-01-30  Karl Berry  <karl@gnu.org>
49871
49872         * config/srclist-update: try to preserve x bit on updates.
49873         * config/srclistvars.sh: update for karl.
49874
49875 2008-01-29  Jim Meyering  <meyering@redhat.com>
49876
49877         vasnprintf.c: Avoid warning about unused label
49878         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
49879         "overflow" label definition and associated code with the
49880         same cpp condition that guards the sole use of that label.
49881
49882 2008-01-26  Bruno Haible  <bruno@clisp.org>
49883
49884         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
49885         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
49886         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
49887         * lib/isnanl-nolibm.h (isnanl): Likewise.
49888         Reported by Paul Eggert <eggert@cs.ucla.edu>.
49889
49890 2008-01-26  Bruno Haible  <bruno@clisp.org>
49891
49892         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
49893         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
49894
49895 2008-01-26  Bruno Haible  <bruno@clisp.org>
49896
49897         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
49898         GCC >= 4.0 built-in.
49899         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
49900
49901 2008-01-26  Bruno Haible  <bruno@clisp.org>
49902
49903         Rename isnan, applicable to 'double' only, to isnand.
49904         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
49905         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
49906         (configure.ac): Update.
49907         (Include): Replace "isnan.h" with "isnand.h".
49908         * m4/isnand.m4: Renamed from m4/isnan.m4.
49909         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
49910         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
49911         instead of isnan.c.
49912         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
49913         instead of HAVE_ISNAN_IN_LIBC.
49914         (isnand): Renamed from isnan.
49915         * lib/isnand.c: New file.
49916         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
49917         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
49918         (Makefile.am): Update.
49919         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
49920         Include isnand.h instead of isnan.h.
49921         (main): Test isnand instead of isnan.
49922         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
49923         isnan-nolibm.
49924         * modules/frexp (Depends-on): Likewise.
49925         * modules/frexp-tests (Depends-on): Likewise.
49926         * modules/frexp-nolibm (Depends-on): Likewise.
49927         * modules/frexp-nolibm-tests (Depends-on): Likewise.
49928         * modules/isfinite (Depends-on): Likewise.
49929         * modules/round-tests (Depends-on): Likewise.
49930         * modules/signbit (Depends-on): Likewise.
49931         * modules/signbit-tests (Depends-on): Likewise.
49932         * modules/snprintf-posix (Depends-on): Likewise.
49933         * modules/sprintf-posix (Depends-on): Likewise.
49934         * modules/trunc-tests (Depends-on): Likewise.
49935         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49936         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49937         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49938         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49939         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49940         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49941         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49942         * modules/vasnprintf-posix (Depends-on): Likewise.
49943         * modules/vasprintf-posix (Depends-on): Likewise.
49944         * modules/vfprintf-posix (Depends-on): Likewise.
49945         * modules/vsnprintf-posix (Depends-on): Likewise.
49946         * modules/vsprintf-posix (Depends-on): Likewise.
49947         * lib/frexp.c: Include isnand.h instead of isnan.h.
49948         (ISNAN): Set to isnand instead of isnan.
49949         * lib/isfinite.c: Include isnand.h instead of isnan.h.
49950         (gl_isfinited): Use isnand instead of isnan.
49951         * lib/signbitd.c: Include isnand.h instead of isnan.h.
49952         (gl_signbitd): Use isnand instead of isnan.
49953         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
49954         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
49955         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
49956         (main): Use isnand instead of isnan.
49957         * tests/test-round1.c: Include isnand.h.
49958         (main): Use isnand instead of isnan.
49959         * tests/test-round2.c: Include isnand.h instead of isnan.h.
49960         (ISNAN): Set to isnand instead of isnan.
49961         * tests/test-trunc1.c: Include isnand.h.
49962         (main): Use isnand instead of isnan.
49963         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
49964         (equal): Use isnand instead of isnan.
49965         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
49966         isnand-nolibm.
49967         * NEWS: Mention the change.
49968
49969 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49970             Bruno Haible  <bruno@clisp.org>
49971
49972         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
49973         the GCC builtins for signbits are present and set
49974         REPLACE_SIGNBIT_USING_GCC if so.
49975         * lib/math.in.h (signbit): Define using GCC builtins if
49976         REPLACE_SIGNBIT_USING_GCC is set.
49977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49978         REPLACE_SIGNBIT_USING_GCC.
49979         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49980
49981 2008-01-25  Jim Meyering  <meyering@redhat.com>
49982
49983         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49984         * lib/poll.c: Include <config.h>, not "config.h".
49985         * tests/test-getaddrinfo.c: Likewise.
49986
49987 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49988
49989         * modules/sockets-tests: New file.
49990
49991 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49992
49993         * modules/sockets: New module, can be used to call WSA_Startup and
49994         WSA_Cleanup when needed.
49995
49996         * lib/sockets.h, lib/sockets.c: New files.
49997
49998         * m4/sockets.m4: New file.
49999
50000         * tests/test-sockets.c: New file.
50001
50002 2008-01-19  Bruno Haible  <bruno@clisp.org>
50003
50004         * doc/posix-headers: Renamed from doc/headers.
50005         * doc/posix-functions: Renamed from doc/functions.
50006         * doc/gnulib.texi: Update.
50007
50008 2008-01-19  Bruno Haible  <bruno@clisp.org>
50009
50010         * doc/glibc-functions/strcasestr.texi: Include contents of
50011         doc/functions/strcasestr.texi, fixing the list of platforms.
50012         * doc/functions/strcasestr.texi: Remove file.
50013
50014 2008-01-19  Bruno Haible  <bruno@clisp.org>
50015
50016         * doc/glibc-functions/memmem.texi: Include contents of
50017         doc/functions/memmem.texi.
50018         * doc/functions/memmem.texi: Remove file.
50019
50020 2008-01-18  Bruno Haible  <bruno@clisp.org>
50021
50022         * doc/glibc-functions/*.texi: New files.
50023         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
50024         to use the new files.
50025
50026 2008-01-17  Bruno Haible  <bruno@clisp.org>
50027
50028         * tests/test-gethostname.c (main): Fix printf statement.
50029
50030 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50031
50032         * modules/gethostname-tests: New file.
50033
50034         * tests/test-gethostname.c: New file.
50035
50036 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50037
50038         * lib/gethostname.c: Include string.h unconditionally, strncpy is
50039         used by the UNAME case.  Reported by Bruno Haible
50040         <bruno@clisp.org>.
50041
50042 2008-01-17  Eric Blake  <ebb9@byu.net>
50043
50044         Convert c-strcasestr to be more efficient.
50045         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
50046         (Depends-on): Add c-strcase, remove malloca, strnlen.
50047         * tests/test-c-strcasestr.c (main): Enhance test.
50048         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
50049
50050 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50051
50052         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
50053         Use it in creating po/Makevars.
50054
50055 2008-01-15  Simon Josefsson  <simon@josefsson.org>
50056
50057         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
50058         Applications that requires it should initialize libgcrypt
50059         manually.
50060
50061 2008-01-16  Simon Josefsson  <simon@josefsson.org>
50062
50063         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
50064
50065 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
50066
50067         Fix problem with getdate on mingw32 reported by Simon Josefsson
50068         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
50069         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
50070         tzname", when deciding whether to declare tzname.
50071         * lib/strftime.c (tzname): Likewise.
50072
50073 2008-01-15  Bruno Haible  <bruno@clisp.org>
50074
50075         Work around a MacOS X 10.5 bug in frexpl().
50076         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
50077         * doc/functions/frexpl.texi: Document the bug.
50078         Reported by Elias Pipping <pipping@gentoo.org>.
50079
50080 2008-01-14  Eric Blake  <ebb9@byu.net>
50081
50082         Touch up previous patch.
50083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
50084         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
50085
50086         Convert strcasestr module to use Two-Way algorithm.
50087         * modules/strcasestr-simple: New module, based on the old
50088         strcasestr, but with Two-Way rather than KMP.
50089         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
50090         * lib/string.in.h (rpl_strcasestr): Declare.
50091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
50092         performance.
50093         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
50094         * modules/string (Makefile.am): Support strcasestr.
50095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
50096         * modules/strcasestr-tests (Depends-on): Check for alarm.
50097         * tests/test-strcasestr.c: Augment test.
50098         * lib/str-two-way.h: Clean up stray macro.
50099         * NEWS: Document new module.
50100         * MODULES.html.sh (string handling): Likewise.
50101         * doc/functions/strcasestr.texi: New file.
50102         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
50103         here, since it is not a POSIX function.
50104
50105 2008-01-14  Colin Watson  <cjwatson@debian.org>
50106             Bruno Haible  <bruno@clisp.org>
50107
50108         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
50109         works fine; if not, set REPLACE_STRSIGNAL.
50110         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
50111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50112         REPLACE_STRSIGNAL.
50113         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
50114         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
50115         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
50116
50117 2008-01-14  Bruno Haible  <bruno@clisp.org>
50118
50119         * modules/strsignal (Include): Change to <string.h>.
50120
50121 2008-01-14  Colin Watson  <cjwatson@debian.org>
50122
50123         * modules/argp (Notice): Add a notice recommending to change
50124         XGETTEXT_OPTIONS.
50125         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
50126
50127 2008-01-13  Colin Watson  <cjwatson@debian.org>
50128
50129         * modules/strsignal-tests: New file.
50130         * tests/test-strsignal.c: New file.
50131
50132         * lib/strsignal.c: New file, from glibc with modifications.
50133         * lib/siglist.h: New file, from glibc with modifications.
50134         * lib/string.in.h (strsignal): New declaration.
50135         * m4/strsignal.m4: New file.
50136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50137         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
50138         * modules/strsignal: New file.
50139         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
50140         HAVE_DECL_STRSIGNAL.
50141
50142 2008-01-13  Bruno Haible  <bruno@clisp.org>
50143
50144         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
50145         locale encoding is not ASCII. Needed for OpenBSD 4.0.
50146         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50147         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50148
50149 2008-01-13  Bruno Haible  <bruno@clisp.org>
50150
50151         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
50152         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
50153         * lib/argp.h (__attribute__): Likewise.
50154         * lib/c-stack.c (__attribute__): Likewise.
50155         * lib/error.h (__attribute__): Likewise.
50156         * lib/fts.c (__attribute__): Likewise.
50157         * lib/openat.h (__attribute__): Likewise.
50158         * lib/stdio.in.h (__attribute__): Likewise.
50159         * lib/string.in.h (__attribute__): Likewise.
50160         * lib/utimens.c (__attribute__): Likewise.
50161         * lib/vasnprintf.h (__attribute__): Likewise.
50162         * lib/xalloc.h (__attribute__): Likewise.
50163         * lib/xprintf.h (__attribute__): Likewise.
50164         * lib/xstrtol.h (__attribute__): Likewise.
50165         * lib/xvasprintf.h (__attribute__): Likewise.
50166
50167 2008-01-12  Bruno Haible  <bruno@clisp.org>
50168
50169         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
50170         * doc/glibc-headers/a.out.texi: New file.
50171         * doc/glibc-headers/aliases.texi: New file.
50172         * doc/glibc-headers/alloca.texi: New file.
50173         * doc/glibc-headers/ar.texi: New file.
50174         * doc/glibc-headers/argp.texi: New file.
50175         * doc/glibc-headers/argz.texi: New file.
50176         * doc/glibc-headers/byteswap.texi: New file.
50177         * doc/glibc-headers/crypt.texi: New file.
50178         * doc/glibc-headers/endian.texi: New file.
50179         * doc/glibc-headers/envz.texi: New file.
50180         * doc/glibc-headers/err.texi: New file.
50181         * doc/glibc-headers/error.texi: New file.
50182         * doc/glibc-headers/execinfo.texi: New file.
50183         * doc/glibc-headers/fpu_control.texi: New file.
50184         * doc/glibc-headers/fstab.texi: New file.
50185         * doc/glibc-headers/fts.texi: New file.
50186         * doc/glibc-headers/getopt.texi: New file.
50187         * doc/glibc-headers/ieee754.texi: New file.
50188         * doc/glibc-headers/ifaddrs.texi: New file.
50189         * doc/glibc-headers/libintl.texi: New file.
50190         * doc/glibc-headers/mcheck.texi: New file.
50191         * doc/glibc-headers/mntent.texi: New file.
50192         * doc/glibc-headers/obstack.texi: New file.
50193         * doc/glibc-headers/paths.texi: New file.
50194         * doc/glibc-headers/printf.texi: New file.
50195         * doc/glibc-headers/pty.texi: New file.
50196         * doc/glibc-headers/resolv.texi: New file.
50197         * doc/glibc-headers/shadow.texi: New file.
50198         * doc/glibc-headers/sysexits.texi: New file.
50199         * doc/glibc-headers/ttyent.texi: New file.
50200
50201 2008-01-12  Jim Meyering  <meyering@redhat.com>
50202
50203         announce-gen: emit Gnulib's git-based version string.
50204         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
50205         New option --gnulib-version=V, where V is expected to be
50206         the output of running git describe in the gnulib directory.
50207         (get_tool_versions): Request feedback on xdelta.  I suspect it's
50208         not useful, and plan to stop publishing an xdelta file with each
50209         coreutils release.
50210
50211         * build-aux/announce-gen: Also check for lzma-compressed files.
50212
50213 2008-01-11  Bruno Haible  <bruno@clisp.org>
50214
50215         * tests/test-memmem.c (main): Increase maximum allowed time.
50216         * tests/test-strstr.c (main): Likewise.
50217
50218 2008-01-11  Bruno Haible  <bruno@clisp.org>
50219
50220         * doc/functions/memmem.texi: Add more precisions about platforms.
50221         * doc/functions/strstr.texi: Likewise.
50222
50223 2008-01-10  Eric Blake  <ebb9@byu.net>
50224
50225         * m4/strstr.m4: Delete cruft from copy-n-paste.
50226         Reported by Bruno Haible.
50227
50228 2008-01-10  Bruno Haible  <bruno@clisp.org>
50229
50230         Make c-strstr rely on strstr.
50231         * lib/c-strstr.c: Don't include str-kmp.h.
50232         (c_strstr): Define in terms of strstr.
50233         * modules/c-strstr (Files): Remove lib/str-kmp.h.
50234         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
50235
50236 2008-01-10  Bruno Haible  <bruno@clisp.org>
50237
50238         * doc/gnulib.texi (String Functions in C Locale): New section.
50239         * doc/c-ctype.texi: New file.
50240         * doc/c-strcase.texi: New file.
50241         * doc/c-strcaseeq.texi: New file.
50242         * doc/c-strcasestr.texi: New file.
50243         * doc/c-strstr.texi: New file.
50244         * doc/c-strtod.texi: New file.
50245         * doc/c-strtold.texi: New file.
50246
50247 2008-01-10  Eric Blake  <ebb9@byu.net>
50248
50249         * lib/relocatable.h: Fix a comment.
50250
50251 2008-01-10  Eric Blake  <ebb9@byu.net>
50252
50253         Share two-way algorithm.
50254         * lib/str-two-way.h: New file, merged from...
50255         * lib/memmem.c: ...here...
50256         * lib/strstr.c: ...and here.
50257         * modules/memmem (Files): Use it.
50258         * modules/strstr (Files): Likewise.
50259
50260         Avoid quadratic strstr implementations.
50261         * lib/strstr.c: New file.
50262         * m4/strstr.m4: Likewise.
50263         * modules/strstr: Likewise.
50264         * modules/strstr-tests: Likewise.
50265         * tests/test-strstr.c: Likewise.
50266         * lib/string.in.h (rpl_strstr): Declare.
50267         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
50268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
50269         * modules/string (Makefile.am): Likewise.
50270         * MODULES.html.sh (string handling): Mention new module.
50271         * doc/functions/strstr.texi (strstr): Document the bug.
50272
50273 2008-01-10  Bruno Haible  <bruno@clisp.org>
50274
50275         * lib/relocatable.h (relocate): State whether result is freshly
50276         allocated or not.
50277         * lib/relocatable.c (relocate): Return a freshly allocated string
50278         instead of a pointer to a privately held string.
50279         Reported by Sylvain Beucler <beuc@gnu.org>.
50280
50281 2008-01-10  Colin Watson  <cjwatson@debian.org>
50282
50283         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
50284         s/S_ISNLK/S_ISLNK/.
50285
50286 2008-01-09  Bruno Haible  <bruno@clisp.org>
50287
50288         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
50289         and other files.
50290         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
50291         if it's only a guess.
50292         * modules/memmem: Simplify by depending on memmem-simple.
50293
50294 2008-01-09  Bruno Haible  <bruno@clisp.org>
50295
50296         Work around OpenBSD 4.0 tdelete() bug.
50297         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
50298         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
50299         macros and don't redefine the enum values.
50300         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
50301         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
50302         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
50303
50304 2008-01-09  Bruno Haible  <bruno@clisp.org>
50305
50306         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
50307         (main): Don't perform the tests if setlocale did not install a UTF-8
50308         locale. Needed on OpenBSD 4.0.
50309         * modules/wcwidth-tests (Depends-on): Add localcharset.
50310
50311 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
50312
50313         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
50314         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
50315         * NEWS: announce this.
50316         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
50317
50318 2008-01-09  Simon Josefsson  <simon@josefsson.org>
50319         and Eric Blake  <ebb9@byu.net>
50320
50321         Add memmem-simple module.
50322         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
50323         (gl_FUNC_MEMMEM): Separate performance from presence checks.
50324         * modules/memmem-simple: New file.
50325         * modules/memmem (Description): Tweak.
50326         * MODULES.html.sh (string handling): Mention new module.
50327         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
50328         addressed by memmem-simple.
50329         * NEWS: Document the difference.
50330
50331 2008-01-09  Eric Blake  <ebb9@byu.net>
50332
50333         Give gcc some memmem optimization hints.
50334         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
50335         (strcasestr): Declare as pure.
50336         * modules/memmem (Maintainer): Claim my implementation.
50337
50338 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50339
50340         Support AIX 6.1 and higher.
50341         * build-aux/config.libpath: Likewise.
50342         * build-aux/config.rpath: Likewise.
50343
50344 2008-01-08  Jim Meyering  <meyering@redhat.com>
50345             Bruno Haible  <bruno@clisp.org>
50346
50347         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
50348         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
50349         Reported by Peter Fales in
50350         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
50351
50352 2008-01-08  Bruno Haible  <bruno@clisp.org>
50353
50354         * modules/unictype/category-of (Depends-on): Add
50355         unictype/category-none.
50356         * modules/unictype/category-and-tests (Depends-on): Add
50357         unictype/category-{L,N,Lu,Nd}.
50358         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
50359         * modules/unictype/category-or-tests (Depends-on): Add
50360         unictype/category-{L,N}.
50361         * modules/unictype/category-name-tests (Depends-on): Add
50362         unictype/category-{Z,Nl}.
50363         Reported by Simon Josefsson.
50364
50365 2008-01-08  Bruno Haible  <bruno@clisp.org>
50366
50367         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
50368         convention better.
50369         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
50370         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
50371         Reported by Peter Miller <millerp@canb.auug.org.au>.
50372
50373 2008-01-08  Eric Blake  <ebb9@byu.net>
50374
50375         Rewrite memmem to guarantee linear complexity without malloc.
50376         * lib/memmem.c (memmem): Use Two-Way rather than
50377         Knuth-Morris-Pratt, to allow O(1) space usage.
50378         (critical_factorization, two_way_short_needle)
50379         (two_way_long_needle): New functions.
50380         (knuth_morris_pratt): Delete.
50381         * modules/memmem (Depends-on): No longer need malloca or stdbool.
50382         Add stdint.
50383         * tests/test-memmem.c (main): Add tests for periodic needle and
50384         sublinear performance.
50385         * doc/functions/memmem.texi (memmem): Document other deficiencies
50386         in cygwin and older glibc.
50387
50388 2008-01-08  Bruno Haible  <bruno@clisp.org>
50389
50390         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
50391         augmentation.
50392
50393 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
50394
50395         Add a configure time option: --disable-acl.
50396         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
50397         AC_ARG_ENABLE(acl).
50398
50399 2008-01-06  Simon Josefsson  <simon@josefsson.org>
50400
50401         * tests/test-localename.c: Don't include obsolete "setenv.h".
50402
50403         * modules/localename-tests (Depends-on): Need unsetenv.
50404
50405 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50406
50407         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
50408
50409 2008-01-06  Colin Watson  <cjwatson@debian.org>
50410
50411         * users.txt: Add man-db.
50412
50413 2008-01-07  Bruno Haible  <bruno@clisp.org>
50414
50415         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
50416         previous section name.
50417
50418 2008-01-07  Bruno Haible  <bruno@clisp.org>
50419
50420         * lib/progname.c (set_program_name): Don't strip off a leading
50421         "lt-" prefix outside a .libs directory.
50422         Suggested by Paul Eggert.
50423
50424 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
50425             Bruno Haible  <bruno@clisp.org>
50426
50427         Improve memory cleanup in 'relocatable' module.
50428         * lib/relocatable.h (compute_curr_prefix): Change return type to
50429         'char *'.
50430         * lib/relocatable.c (compute_curr_prefix): Change return type to
50431         'char *'. Free curr_installdir after use.
50432         (relocate): Free curr_prefix_better after use.
50433         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
50434
50435 2008-01-01  Bruno Haible  <bruno@clisp.org>
50436
50437         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
50438         failure on older glibc systems.
50439         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50440
50441 2008-01-05  Eric Blake  <ebb9@byu.net>
50442
50443         Avoid quadratic system memmem.
50444         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
50445         Reported by Ralf Wildenhues.
50446
50447         Fix memmem test for mingw.
50448         * modules/memmem-tests (configure.ac): Check for alarm.
50449         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
50450         it.
50451         * doc/functions/memmem.texi: New file.
50452         * doc/gnulib.texi (Function Substitutes): Add memmem.
50453         Reported by Bruno Haible.
50454
50455 2008-01-04  Bruno Haible  <bruno@clisp.org>
50456
50457         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
50458         Require gl_HEADER_STRINGS_H_DEFAULTS, not
50459         gl_HEADER_STRING_H_DEFAULTS.
50460
50461 2008-01-04  Eric Blake  <ebb9@byu.net>
50462
50463         Shorten duration of memmem test.
50464         * tests/test-memmem.c (main): Use alarm to declare failure if test
50465         is taking too long.
50466         Reported by Ralf Wildenhues.
50467
50468 2007-12-21  Simon Josefsson  <simon@josefsson.org>
50469
50470         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
50471         string, needed by strerror.
50472
50473 2008-01-03  Colin Watson  <cjwatson@debian.org>
50474             Bruno Haible  <bruno@clisp.org>
50475
50476         * doc/gnulib-tool.texi (Localization): New section.
50477
50478 2008-01-02  Bruno Haible  <bruno@clisp.org>
50479
50480         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
50481         variables to 'unsigned char *' type.
50482         Reported by Paul Eggert.
50483
50484 2008-01-02  Jim Meyering  <jim@meyering.net>
50485
50486         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
50487
50488 2007-12-31  Jim Meyering  <jim@meyering.net>
50489
50490         Avoid use of private FTS type name.
50491         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
50492
50493 2007-12-30  Karl Berry  <karl@gnu.org>
50494
50495         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
50496         work around defect in Texinfo and/or the standalone Info browser.
50497
50498 2007-12-30  Bruno Haible  <bruno@clisp.org>
50499
50500         Unify 5 copies of the KMP code.
50501         * lib/str-kmp.h: New file.
50502         * lib/c-strcasestr.c: Include str-kmp.h.
50503         (knuth_morris_pratt): Remove function.
50504         (c_strcasestr): Update.
50505         * lib/c-strstr.c: Include str-kmp.h.
50506         (knuth_morris_pratt): Remove function.
50507         (c_strcasestr): Update.
50508         * lib/mbscasestr.c: Include str-kmp.h.
50509         (knuth_morris_pratt_unibyte): Remove function.
50510         * lib/mbsstr.c: Include str-kmp.h.
50511         (knuth_morris_pratt_unibyte): Remove function.
50512         * lib/strcasestr.c: Include str-kmp.h.
50513         (knuth_morris_pratt): Remove function.
50514         (strcasestr): Update.
50515         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
50516         * modules/c-strstr (Files): Likewise.
50517         * modules/mbscasestr (Files): Likewise.
50518         * modules/mbsstr (Files): Likewise.
50519         * modules/strcasestr (Files): Likewise.
50520         Suggested by Paul Eggert.
50521
50522 2007-12-30  Bruno Haible  <bruno@clisp.org>
50523
50524         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
50525         defined.
50526
50527 2007-12-30  Bruno Haible  <bruno@clisp.org>
50528
50529         * lib/xmalloca.h: Include xalloc.h.
50530         (xnmalloca): New macro.
50531
50532 2007-12-30  Bruno Haible  <bruno@clisp.org>
50533
50534         * lib/malloca.h (nmalloca): New macro.
50535         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
50536         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
50537         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
50538         knuth_morris_pratt_multibyte): Likewise.
50539         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
50540         knuth_morris_pratt_multibyte): Likewise.
50541         * lib/memmem.c (knuth_morris_pratt): Likewise.
50542         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
50543
50544 2007-12-25  Bruno Haible  <bruno@clisp.org>
50545
50546         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
50547         * lib/glob.c: Don't include openat.h.
50548         (link_exists2_p): Add back the code that deals with the
50549         !GLOB_ALTDIRFUNC case.
50550         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
50551         let it do the filename concatenation.
50552         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
50553         * modules/glob (Depends-on): Remove openat.
50554
50555 2007-12-31  Bruno Haible  <bruno@clisp.org>
50556
50557         * modules/dirfd (License): Change to LGPLv2+.
50558         Approved by Jim Meyering.
50559
50560 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50561
50562         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
50563         when multiplying M by sizeof (size_t).
50564
50565 2007-12-10  Martin Lambers  <marlam@marlam.de>
50566
50567         Override getpagesize on mingw.
50568         * lib/getpagesize.c: New file.
50569         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
50570         * modules/getpagesize (Files): Add lib/getpagesize.c.
50571         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
50572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50573         REPLACE_GETPAGESIZE.
50574         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
50575
50576 2007-12-25  Bruno Haible  <bruno@clisp.org>
50577
50578         * modules/localcharset (Notice): New field.
50579         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
50580         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
50581
50582 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50583             Bruno Haible  <bruno@clisp.org>
50584
50585         Avoid using the syntax symbol() in formatted documentation.
50586         * MODULES.html.sh (func_module): When replacing symbol() with a
50587         hyperlink, remove the parentheses. Show an error if some remain.
50588         Recognize and render the '...' syntax.
50589         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
50590         Rework. Add paragraph about GCC's inlining.
50591         * doc/alloca.texi: Likewise.
50592         * doc/error.texi: Remove parentheses from symbol reference.
50593         * doc/gnulib-intro.texi: Likewise.
50594         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
50595         * modules/fnmatch (Description): Reword to say "the ... function".
50596         * modules/full-read (Description): Likewise.
50597         * modules/full-write (Description): Likewise.
50598         * modules/safe-read (Description): Likewise.
50599         * modules/safe-write (Description): Likewise.
50600         * modules/strchrnul (Description): Likewise.
50601         * modules/trim (Description): Likewise.
50602         * modules/error (Description): Remove parentheses from symbol
50603         references.
50604         * modules/verror (Description): Likewise.
50605         Reported by Karl Berry.
50606
50607 2007-12-25  Bruno Haible  <bruno@clisp.org>
50608
50609         Fixup after 2007-10-16 commit.
50610         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
50611
50612 2007-12-24  Bruno Haible  <bruno@clisp.org>
50613
50614         Make --enable-relocatable work with DESTDIR.
50615         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
50616         to compute installdir from destprog.
50617         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
50618         also set the RELOC_DESTDIR variable.
50619         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50620
50621 2007-12-24  Bruno Haible  <bruno@clisp.org>
50622
50623         Fix link error due to xalloc_die().
50624         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
50625         of xreadlink.
50626         * lib/relocwrapper.c: Update comments.
50627         * build-aux/install-reloc: Remove xreadlink.c from file list.
50628         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
50629         xreadlink.c.
50630         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50631
50632 2007-12-24  Bruno Haible  <bruno@clisp.org>
50633
50634         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
50635         * lib/setenv.h: Remove file.
50636         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
50637         lib/setenv.h.
50638         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
50639         (Depends-on): Add stdlib.
50640         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
50641         gl_FUNC_UNSETENV.
50642         (Include): Replace setenv.h with <stdlib.h>.
50643         * modules/unsetenv: New file.
50644         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
50645         * lib/unsetenv.c: Include <stdlib.h> first.
50646         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
50647         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
50648         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
50649         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
50650         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
50651         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
50653         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50654         * doc/functions/unsetenv.texi: Update.
50655         * modules/xsetenv (Depends-on): Add unsetenv.
50656         * modules/getdate (Depends-on): Likewise.
50657         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
50658         * lib/xsetenv.c: Don't include setenv.h.
50659         * lib/getdate.y: Likewise.
50660         * lib/relocwrapper.c: Likewise.
50661         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
50662         (Depends-on): Add stdlib.
50663         * NEWS: Mention the changes.
50664         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50665
50666 2007-12-23  Bruno Haible  <bruno@clisp.org>
50667
50668         * lib/memmem.c (memmem): Use lowercase variable names. Tab
50669         indentation.
50670
50671 2007-12-23  Bruno Haible  <bruno@clisp.org>
50672
50673         * lib/c-strcasestr.c: Add more comments.
50674         * lib/c-strstr.c: Likewise.
50675         * lib/mbscasestr.c: Likewise.
50676         * lib/mbsstr.c: Likewise.
50677         * lib/strcasestr.c: Likewise.
50678         * lib/memmem.c: Likewise.
50679
50680 2007-12-23  Bruno Haible  <bruno@clisp.org>
50681
50682         * tests/test-memmem.c: Include <string.h> first.
50683
50684 2007-12-22  Bruno Haible  <bruno@clisp.org>
50685
50686         * gnulib-tool (func_create_testdir): Change $auxdir while generating
50687         the contents of $testsbase.
50688         Reported by Ralf Wildenhues.
50689
50690 2007-12-22  Bruno Haible  <bruno@clisp.org>
50691
50692         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
50693         two variables local_ldadd_before, local_ldadd_last.
50694
50695 2007-12-20  Eric Blake  <ebb9@byu.net>
50696
50697         Work around circular library issue when cross-compiling.
50698         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
50699         that progname.o does not need to pull in rpl_memcmp.
50700
50701 2007-12-19  Eric Blake  <ebb9@byu.net>
50702
50703         Fix memmem to avoid O(n^2) worst-case complexity.
50704         * lib/memmem.c (knuth_morris_pratt): New function.
50705         (memmem): Use it if first few naive iterations fail.
50706         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
50707         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
50708         * modules/memchr (License): Likewise.
50709         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
50710         malloca.
50711         * tests/test-memmem.c: Rewrite, borrowing ideas from
50712         test-mbsstr1.c; the old version wouldn't even compile!
50713         * modules/memmem-tests: New file.
50714         * lib/string.in.h (rpl_memmem): Add declaration.
50715         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
50716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
50717         REPLACE_MEMMEM.
50718
50719 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50720
50721         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
50722         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
50723         before any system include files, and undef after them all.  This
50724         should fix a problem on VMS reported by John E. Malmberg in
50725         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
50726
50727 2007-12-17  Eric Blake  <ebb9@byu.net>
50728
50729         Revert addition of verify, for BSD/OS.
50730         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
50731         can't handle large files, for the sake of obsolete platforms.
50732         * modules/fseeko (Depends-on): Remove verify.
50733         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
50734         * doc/functions/ftello.texi (ftello): Likewise.
50735         * doc/functions/fgetpos.texi (fgetpos): Likewise.
50736         Reported by Larry Jones.
50737
50738 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
50739
50740         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
50741         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
50742
50743 2007-12-17  Jim Meyering  <meyering@redhat.com>
50744
50745         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
50746         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
50747         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
50748         * modules/getcwd (Depends-on): Add openat.
50749         Reported by Petr Salinger.
50750
50751 2007-12-17  Bruno Haible  <bruno@clisp.org>
50752
50753         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
50754         avoid a segmentation fault of the configure test on x86_64 systems.
50755
50756 2007-12-15  Jim Meyering  <meyering@redhat.com>
50757
50758         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
50759
50760 2007-12-13  Eric Blake  <ebb9@byu.net>
50761
50762         Another fseek test.
50763         * tests/test-fseek.c (main): Also test ungetc handling.
50764         * tests/test-fseeko.c (main): Likewise.
50765         * modules/fseeko (Depends-on): Add verify.
50766         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
50767         large.
50768         Reported by Larry Jones.
50769
50770         Fix fseeko on mingw.
50771         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
50772         seek.
50773
50774         Beef up fseek tests.
50775         * tests/test-fseek.c (main): Also test eof handling.
50776         * tests/test-fseeko.c (main): Likewise.
50777         Reported by Larry Jones.
50778
50779 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
50780
50781         Fix fseeko on BSD-based platforms.
50782         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
50783         successful seek.
50784
50785 2007-12-12  Eric Blake  <ebb9@byu.net>
50786
50787         Allow circular dependency of separate libtests.a
50788         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
50789         when use_libtests.
50790
50791 2007-12-11  Eric Blake  <ebb9@byu.net>
50792
50793         Fix bug with -0.0L in previous patch.
50794         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
50795         * tests/test-isnan.c (main): Also test on zeroes.
50796         * tests/test-isnanf.c (main): Likewise.
50797         * tests/test-isnanl.h (main): Likewise.
50798
50799         Detect pseudo-denormals on x86 even when cross-compiling.
50800         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
50801         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
50802         invalid bit patterns that happen to satisfy ==.
50803
50804         Avoid link failures with separate libtests.a.
50805         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
50806         last, to satisfy circular dependencies.
50807
50808 2007-12-11  Eric Blake  <ebb9@byu.net>
50809         and Bruno Haible  <bruno@clisp.org>
50810
50811         Fix OpenBSD 4.0 <float.h> handling of long double.
50812         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
50813         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
50814         * doc/headers/float.texi (float.h): Document OpenBSD bug.
50815
50816 2007-12-11  Jim Meyering  <meyering@redhat.com>
50817
50818         * users.txt: Add libvirt.
50819
50820         Support versions of autoconf prior to 2.59c.
50821         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
50822         if it is not already defined.
50823
50824 2007-12-09  Bruno Haible  <bruno@clisp.org>
50825
50826         Let 'gnulib-tool --import' collect sources needed for the tests in
50827         tests/ rather than in lib/.
50828         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
50829         argument. If true, add rules to generate libtests.a, and put libtests.a
50830         into $(LDADD). Consider source files in subdirectories and set
50831         uses_subdirs.
50832         (func_emit_initmacro_start, func_emit_initmacro_end,
50833         func_emit_initmacro_done): Pass all arguments explicitly.
50834         (func_import): Determine two module lists main_modules,
50835         testsrelated_modules. Determine use_libtests. Determine two variables
50836         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
50837         instead of just sed_transform_lib_file. Determine two variables
50838         main_files and testsrelated_files. Compute 'files' as the union of
50839         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
50840         func_add_or_update. In the generated gnulib-comp.m4, collect the
50841         object files for tests/ in different variables than those for lib/.
50842         Substitute LIBTESTS_LIBDEPS.
50843         (func_create_testdir): Combine the uses_subdirs results from
50844         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
50845
50846 2007-12-09  Bruno Haible  <bruno@clisp.org>
50847
50848         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
50849         the build-aux directory.
50850
50851 2007-12-09  Bruno Haible  <bruno@clisp.org>
50852
50853         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
50854         introduced on 2006-09-09.
50855
50856 2007-12-07  Jim Meyering  <meyering@redhat.com>
50857
50858         Let these macros work also with autoconf-2.59.
50859         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
50860         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
50861         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50862
50863 2007-12-06  Jim Meyering  <meyering@redhat.com>
50864
50865         Avoid a configure-time syntax error in gl_FUNC_ACL.
50866         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
50867         function in each branch, before testing the cache variable.
50868
50869 2007-12-04  Eric Blake  <ebb9@byu.net>
50870
50871         Make scripts executable.
50872         * build-aux/config.guess: Add execute permissions.
50873         * build-aux/config.sub: Likewise.
50874         * build-aux/gendocs.sh: Likewise.
50875
50876         Fix frexp on mingw.
50877         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
50878         cross-compiling.
50879         * doc/functions/frexp.texi (frexp): Document the bug.
50880
50881         Make cygwin fseeko check more reliable.
50882         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
50883         version numbers, rather than unrelated feature check.
50884         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
50885         * doc/functions/ftello.texi (ftello): Likewise.
50886         Reported by Bruno Haible.
50887
50888         * m4/strerror.m4: Bump version number.
50889
50890 2007-12-03  Bruno Haible  <bruno@clisp.org>
50891
50892         * doc/functions/mprotect.texi: Mention the mingw problem.
50893
50894 2007-12-03  Eric Blake  <ebb9@byu.net>
50895
50896         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
50897         REPLACE_STRERROR is initialized before this macro.
50898
50899 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50900
50901         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
50902         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
50903         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
50904         put -lsec in even for programs other than 'ls'.  This fixes a problem
50905         for gettext reported by Bruno Haible in
50906         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
50907         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
50908         Add support for Solaris 10.  This isn't efficient, but should get the
50909         job done for now.
50910
50911 2007-12-03  James Youngman  <jay@gnu.org>
50912
50913         * doc/regexprops-generic.texi: change "an close-group" to "a
50914         close-group" and "illegal" to "not allowed".
50915
50916 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50917
50918         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
50919         pr_byname.h. Needed for the rare case when the maintainer has done
50920         "make maintainer-clean" in the source directory and then attempts a
50921         build outside the source directory.
50922         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
50923         scripts_byname.h.
50924
50925 2007-12-02  Martin Lambers <marlam@marlam.de>
50926             Bruno Haible  <bruno@clisp.org>
50927
50928         * lib/getpagesize.h: Remove file.
50929         * lib/unistd.in.h: Include declaration of getpagesize here.
50930         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
50931         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
50932         HAVE_SYS_PARAM_H.
50933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
50934         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50935         * modules/getpagesize (Files): Remove lib/getpagesize.h.
50936         (Depends-on): Add unistd.
50937         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50938         (Include): Use <unistd.h> instead of getpagesize.h.
50939         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
50940         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50941         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
50942         gl_GETPAGESIZE invocation, already handled by module dependency.
50943         * lib/pagealign_alloc.c: Don't include getpagesize.h.
50944
50945 2007-12-02  Bruno Haible  <bruno@clisp.org>
50946
50947         * modules/strings-tests: New file.
50948         * tests/test-strings.c: New file.
50949
50950         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
50951         * lib/strings.in.h: New file.
50952         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
50953         * m4/strings_h.m4: New file.
50954         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
50955         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
50956         * modules/strings: New file.
50957         * modules/string (Makefile.am): Update.
50958         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
50959         Reported by Karl Berry.
50960
50961 2007-12-01  Eric Blake  <ebb9@byu.net>
50962
50963         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
50964         accomodate fix in cygwin 1.5.25.
50965
50966 2007-12-01  Jim Meyering  <meyering@redhat.com>
50967
50968         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
50969         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
50970         that would inhibit utf8-optimization of a regexp containing line-
50971         or buffer-anchors, e.g., `^', `$'.
50972
50973 2007-11-30  Bruno Haible  <bruno@clisp.org>
50974
50975         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50976         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50977         glthread_recursive_lock_init.
50978         * lib/lock.c (glthread_recursive_lock_init)
50979         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50980         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50981
50982 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50983
50984         New function qset_acl, like set_acl but with syscall semantics.
50985         * lib/acl.h (qset_acl): New decl.
50986         * lib/acl.c (qset_acl): New function.
50987         (set_acl): Use new function.  Use more-consistent diagnostics.
50988
50989 2007-11-28  Jim Meyering  <meyering@redhat.com>
50990
50991         * modules/physmem (License): Change from GPL to LGPLv2+.
50992
50993 2007-11-26  Bruno Haible  <bruno@clisp.org>
50994
50995         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50996         'long double' type has excess precision.
50997         Reported by Jim Meyering in
50998         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50999
51000 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51001
51002         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
51003         Sync from <http://gnu.org/licenses>.
51004         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
51005         with license text from same location.
51006         * doc/maintain.texi, doc/standards.texi:  Sync from
51007         <http://savannah.gnu.org/projects/gnustandards>.
51008
51009 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
51010         and Jim Meyering  <meyering@redhat.com>
51011
51012         Adjust getdate' grammar to accept a slightly more regular language.
51013         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
51014         Before, the former was rejected.
51015         * lib/getdate.y (digits_to_date_time): New function, factored
51016         out of ...
51017         (number): ...here.  Just call digits_to_date_time.
51018         (hybrid): New non-terminal to handle an <unsigned number,
51019         signed relative offset> sequence consistently.
51020
51021 2007-11-18  Jim Meyering  <meyering@redhat.com>
51022
51023         Pull my changes from coreutils:
51024         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
51025         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
51026         use of $gnulib_tool_option_extras, so that it's separated from the
51027         preceding argument.
51028
51029         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
51030         * build-aux/bootstrap (cp_mark_as_generated): Create any required
51031         parent destination directories before copying a file into place.
51032
51033 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51034
51035         bootstrap: work also with 4-argument variant of AC_INIT
51036         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
51037
51038 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51039
51040         Port test-getaddrinfo to Solaris.
51041         Problem reported by Bruno Haible in
51042         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
51043         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
51044         explanation of setting 'hints'.
51045         Don't reject an implementation merely because it returns EAI_SERVICE.
51046         (EAI_SERVICE): Define to 0 if not defined.
51047
51048 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
51049
51050         The license of gnu-make and posix-shell is now "GPLed build tool".
51051         * modules/gnu-make (License): Likewise.
51052         * modules/posix-shell (License): Likewise.
51053
51054         New module posix-shell, for determining a POSIX shell
51055         or perhaps something that is close enough to a POSIX shell.
51056         * m4/posix-shell.m4: New file.
51057         * modules/posix-shell: New file.
51058
51059         * MODULES.html.sh: Mention new module.
51060
51061         New module gnu-make, for determining whether we're using GNU Make.
51062         * m4/gnu-make.m4: New file.
51063         * modules/gnu-make: New file.
51064         * MODULES.html.sh: Mention new module.
51065
51066 2007-11-14  Jim Meyering  <meyering@redhat.com>
51067
51068         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
51069         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
51070         use this macro to create a function _definition_.
51071         Remove useless "#undef ARGMATCH_DIE".
51072
51073 2007-11-14  Bruno Haible  <bruno@clisp.org>
51074
51075         * lib/config.charset: Update for OpenBSD 4.1.
51076         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
51077
51078 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
51079
51080         Document 64-bit #if problems in stdint.texi.
51081         * doc/headers/stdint.texi (stdint.h): Mention problems with
51082         64-bit-#if, and how to work around them.
51083
51084         Don't insist on 'long long int' support in the preprocessor.  It
51085         breaks too many things.  For example, PRIdMAX still uses a 'long
51086         long int' format with the latest Sun compiler, even though
51087         HAVE_LONG_LONG_INT isn't defined due to that compiler's
51088         preprocessor problem.  This causes the latest coreutils to dump
51089         core on Solaris 10 sparc with the Sun C compiler.
51090         Instead, fix the 2007-10-16 problem in a different way, by evaluating
51091         the troublesome expressions at configure-time, not at #if-time.
51092         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
51093         preprocessor.
51094         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
51095         compile-time C checks, done at 'configure'-time.
51096         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
51097         * modules/inttypes (Makefile): Substitute the new symbols that
51098         gl_INTTYPES_H now generates.
51099         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
51100
51101 2007-11-12  Bruno Haible  <bruno@clisp.org>
51102
51103         Tests for Unicode character classification functions.
51104
51105         * modules/unictype/bidicategory-byname-tests: New file.
51106         * modules/unictype/bidicategory-name-tests: New file.
51107         * modules/unictype/bidicategory-of-tests: New file.
51108         * modules/unictype/bidicategory-test-tests: New file.
51109         * modules/unictype/block-list-tests: New file.
51110         * modules/unictype/block-of-tests: New file.
51111         * modules/unictype/block-test-tests: New file.
51112         * modules/unictype/category-C-tests: New file.
51113         * modules/unictype/category-Cc-tests: New file.
51114         * modules/unictype/category-Cf-tests: New file.
51115         * modules/unictype/category-Cn-tests: New file.
51116         * modules/unictype/category-Co-tests: New file.
51117         * modules/unictype/category-Cs-tests: New file.
51118         * modules/unictype/category-L-tests: New file.
51119         * modules/unictype/category-Ll-tests: New file.
51120         * modules/unictype/category-Lm-tests: New file.
51121         * modules/unictype/category-Lo-tests: New file.
51122         * modules/unictype/category-Lt-tests: New file.
51123         * modules/unictype/category-Lu-tests: New file.
51124         * modules/unictype/category-M-tests: New file.
51125         * modules/unictype/category-Mc-tests: New file.
51126         * modules/unictype/category-Me-tests: New file.
51127         * modules/unictype/category-Mn-tests: New file.
51128         * modules/unictype/category-N-tests: New file.
51129         * modules/unictype/category-Nd-tests: New file.
51130         * modules/unictype/category-Nl-tests: New file.
51131         * modules/unictype/category-No-tests: New file.
51132         * modules/unictype/category-P-tests: New file.
51133         * modules/unictype/category-Pc-tests: New file.
51134         * modules/unictype/category-Pd-tests: New file.
51135         * modules/unictype/category-Pe-tests: New file.
51136         * modules/unictype/category-Pf-tests: New file.
51137         * modules/unictype/category-Pi-tests: New file.
51138         * modules/unictype/category-Po-tests: New file.
51139         * modules/unictype/category-Ps-tests: New file.
51140         * modules/unictype/category-S-tests: New file.
51141         * modules/unictype/category-Sc-tests: New file.
51142         * modules/unictype/category-Sk-tests: New file.
51143         * modules/unictype/category-Sm-tests: New file.
51144         * modules/unictype/category-So-tests: New file.
51145         * modules/unictype/category-Z-tests: New file.
51146         * modules/unictype/category-Zl-tests: New file.
51147         * modules/unictype/category-Zp-tests: New file.
51148         * modules/unictype/category-Zs-tests: New file.
51149         * modules/unictype/category-and-not-tests: New file.
51150         * modules/unictype/category-and-tests: New file.
51151         * modules/unictype/category-byname-tests: New file.
51152         * modules/unictype/category-name-tests: New file.
51153         * modules/unictype/category-none-tests: New file.
51154         * modules/unictype/category-of-tests: New file.
51155         * modules/unictype/category-or-tests: New file.
51156         * modules/unictype/category-test-withtable-tests: New file.
51157         * modules/unictype/combining-class-tests: New file.
51158         * modules/unictype/ctype-alnum-tests: New file.
51159         * modules/unictype/ctype-alpha-tests: New file.
51160         * modules/unictype/ctype-blank-tests: New file.
51161         * modules/unictype/ctype-cntrl-tests: New file.
51162         * modules/unictype/ctype-digit-tests: New file.
51163         * modules/unictype/ctype-graph-tests: New file.
51164         * modules/unictype/ctype-lower-tests: New file.
51165         * modules/unictype/ctype-print-tests: New file.
51166         * modules/unictype/ctype-punct-tests: New file.
51167         * modules/unictype/ctype-space-tests: New file.
51168         * modules/unictype/ctype-upper-tests: New file.
51169         * modules/unictype/ctype-xdigit-tests: New file.
51170         * modules/unictype/decimal-digit-tests: New file.
51171         * modules/unictype/digit-tests: New file.
51172         * modules/unictype/mirror-tests: New file.
51173         * modules/unictype/numeric-tests: New file.
51174         * modules/unictype/property-alphabetic-tests: New file.
51175         * modules/unictype/property-ascii-hex-digit-tests: New file.
51176         * modules/unictype/property-bidi-arabic-digit-tests: New file.
51177         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
51178         * modules/unictype/property-bidi-block-separator-tests: New file.
51179         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
51180         * modules/unictype/property-bidi-common-separator-tests: New file.
51181         * modules/unictype/property-bidi-control-tests: New file.
51182         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
51183         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
51184         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
51185         * modules/unictype/property-bidi-european-digit-tests: New file.
51186         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
51187         * modules/unictype/property-bidi-left-to-right-tests: New file.
51188         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
51189         * modules/unictype/property-bidi-other-neutral-tests: New file.
51190         * modules/unictype/property-bidi-pdf-tests: New file.
51191         * modules/unictype/property-bidi-segment-separator-tests: New file.
51192         * modules/unictype/property-bidi-whitespace-tests: New file.
51193         * modules/unictype/property-byname-tests: New file.
51194         * modules/unictype/property-combining-tests: New file.
51195         * modules/unictype/property-composite-tests: New file.
51196         * modules/unictype/property-currency-symbol-tests: New file.
51197         * modules/unictype/property-dash-tests: New file.
51198         * modules/unictype/property-decimal-digit-tests: New file.
51199         * modules/unictype/property-default-ignorable-code-point-tests: New file.
51200         * modules/unictype/property-deprecated-tests: New file.
51201         * modules/unictype/property-diacritic-tests: New file.
51202         * modules/unictype/property-extender-tests: New file.
51203         * modules/unictype/property-format-control-tests: New file.
51204         * modules/unictype/property-grapheme-base-tests: New file.
51205         * modules/unictype/property-grapheme-extend-tests: New file.
51206         * modules/unictype/property-grapheme-link-tests: New file.
51207         * modules/unictype/property-hex-digit-tests: New file.
51208         * modules/unictype/property-hyphen-tests: New file.
51209         * modules/unictype/property-id-continue-tests: New file.
51210         * modules/unictype/property-id-start-tests: New file.
51211         * modules/unictype/property-ideographic-tests: New file.
51212         * modules/unictype/property-ids-binary-operator-tests: New file.
51213         * modules/unictype/property-ids-trinary-operator-tests: New file.
51214         * modules/unictype/property-ignorable-control-tests: New file.
51215         * modules/unictype/property-iso-control-tests: New file.
51216         * modules/unictype/property-join-control-tests: New file.
51217         * modules/unictype/property-left-of-pair-tests: New file.
51218         * modules/unictype/property-line-separator-tests: New file.
51219         * modules/unictype/property-logical-order-exception-tests: New file.
51220         * modules/unictype/property-lowercase-tests: New file.
51221         * modules/unictype/property-math-tests: New file.
51222         * modules/unictype/property-non-break-tests: New file.
51223         * modules/unictype/property-not-a-character-tests: New file.
51224         * modules/unictype/property-numeric-tests: New file.
51225         * modules/unictype/property-other-alphabetic-tests: New file.
51226         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
51227         * modules/unictype/property-other-grapheme-extend-tests: New file.
51228         * modules/unictype/property-other-id-continue-tests: New file.
51229         * modules/unictype/property-other-id-start-tests: New file.
51230         * modules/unictype/property-other-lowercase-tests: New file.
51231         * modules/unictype/property-other-math-tests: New file.
51232         * modules/unictype/property-other-uppercase-tests: New file.
51233         * modules/unictype/property-paired-punctuation-tests: New file.
51234         * modules/unictype/property-paragraph-separator-tests: New file.
51235         * modules/unictype/property-pattern-syntax-tests: New file.
51236         * modules/unictype/property-pattern-white-space-tests: New file.
51237         * modules/unictype/property-private-use-tests: New file.
51238         * modules/unictype/property-punctuation-tests: New file.
51239         * modules/unictype/property-quotation-mark-tests: New file.
51240         * modules/unictype/property-radical-tests: New file.
51241         * modules/unictype/property-sentence-terminal-tests: New file.
51242         * modules/unictype/property-soft-dotted-tests: New file.
51243         * modules/unictype/property-space-tests: New file.
51244         * modules/unictype/property-terminal-punctuation-tests: New file.
51245         * modules/unictype/property-test-tests: New file.
51246         * modules/unictype/property-titlecase-tests: New file.
51247         * modules/unictype/property-unassigned-code-value-tests: New file.
51248         * modules/unictype/property-unified-ideograph-tests: New file.
51249         * modules/unictype/property-uppercase-tests: New file.
51250         * modules/unictype/property-variation-selector-tests: New file.
51251         * modules/unictype/property-white-space-tests: New file.
51252         * modules/unictype/property-xid-continue-tests: New file.
51253         * modules/unictype/property-xid-start-tests: New file.
51254         * modules/unictype/property-zero-width-tests: New file.
51255         * modules/unictype/scripts-tests: New file.
51256         * modules/unictype/syntax-c-ident-tests: New file.
51257         * modules/unictype/syntax-c-whitespace-tests: New file.
51258         * modules/unictype/syntax-java-ident-tests: New file.
51259         * modules/unictype/syntax-java-whitespace-tests: New file.
51260         * tests/unictype/test-bidi_byname.c: New file.
51261         * tests/unictype/test-bidi_name.c: New file.
51262         * tests/unictype/test-bidi_of.c: New file.
51263         * tests/unictype/test-bidi_test.c: New file.
51264         * tests/unictype/test-block_list.c: New file.
51265         * tests/unictype/test-block_of.c: New file.
51266         * tests/unictype/test-block_test.c: New file.
51267         * tests/unictype/test-categ_and.c: New file.
51268         * tests/unictype/test-categ_and_not.c: New file.
51269         * tests/unictype/test-categ_byname.c: New file.
51270         * tests/unictype/test-categ_name.c: New file.
51271         * tests/unictype/test-categ_none.c: New file.
51272         * tests/unictype/test-categ_of.c: New file.
51273         * tests/unictype/test-categ_or.c: New file.
51274         * tests/unictype/test-categ_test_withtable.c: New file.
51275         * tests/unictype/test-combining.c: New file.
51276         * tests/unictype/test-decdigit.c: New file.
51277         * tests/unictype/test-digit.c: New file.
51278         * tests/unictype/test-mirror.c: New file.
51279         * tests/unictype/test-numeric.c: New file.
51280         * tests/unictype/test-pr_byname.c: New file.
51281         * tests/unictype/test-pr_test.c: New file.
51282         * tests/unictype/test-predicate-part1.h: New file.
51283         * tests/unictype/test-predicate-part2.h: New file.
51284         * tests/unictype/test-scripts.c: New file.
51285         * tests/unictype/test-sy_c_ident.c: New file.
51286         * tests/unictype/test-sy_java_ident.c: New file.
51287
51288         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
51289         for Unicode 5.0.0.
51290         * tests/unictype/test-categ_Cc.c: Likewise.
51291         * tests/unictype/test-categ_Cf.c: Likewise.
51292         * tests/unictype/test-categ_Cn.c: Likewise.
51293         * tests/unictype/test-categ_Co.c: Likewise.
51294         * tests/unictype/test-categ_Cs.c: Likewise.
51295         * tests/unictype/test-categ_L.c: Likewise.
51296         * tests/unictype/test-categ_Ll.c: Likewise.
51297         * tests/unictype/test-categ_Lm.c: Likewise.
51298         * tests/unictype/test-categ_Lo.c: Likewise.
51299         * tests/unictype/test-categ_Lt.c: Likewise.
51300         * tests/unictype/test-categ_Lu.c: Likewise.
51301         * tests/unictype/test-categ_M.c: Likewise.
51302         * tests/unictype/test-categ_Mc.c: Likewise.
51303         * tests/unictype/test-categ_Me.c: Likewise.
51304         * tests/unictype/test-categ_Mn.c: Likewise.
51305         * tests/unictype/test-categ_N.c: Likewise.
51306         * tests/unictype/test-categ_Nd.c: Likewise.
51307         * tests/unictype/test-categ_Nl.c: Likewise.
51308         * tests/unictype/test-categ_No.c: Likewise.
51309         * tests/unictype/test-categ_P.c: Likewise.
51310         * tests/unictype/test-categ_Pc.c: Likewise.
51311         * tests/unictype/test-categ_Pd.c: Likewise.
51312         * tests/unictype/test-categ_Pe.c: Likewise.
51313         * tests/unictype/test-categ_Pf.c: Likewise.
51314         * tests/unictype/test-categ_Pi.c: Likewise.
51315         * tests/unictype/test-categ_Po.c: Likewise.
51316         * tests/unictype/test-categ_Ps.c: Likewise.
51317         * tests/unictype/test-categ_S.c: Likewise.
51318         * tests/unictype/test-categ_Sc.c: Likewise.
51319         * tests/unictype/test-categ_Sk.c: Likewise.
51320         * tests/unictype/test-categ_Sm.c: Likewise.
51321         * tests/unictype/test-categ_So.c: Likewise.
51322         * tests/unictype/test-categ_Z.c: Likewise.
51323         * tests/unictype/test-categ_Zl.c: Likewise.
51324         * tests/unictype/test-categ_Zp.c: Likewise.
51325         * tests/unictype/test-categ_Zs.c: Likewise.
51326         * tests/unictype/test-ctype_alnum.c: Likewise.
51327         * tests/unictype/test-ctype_alpha.c: Likewise.
51328         * tests/unictype/test-ctype_blank.c: Likewise.
51329         * tests/unictype/test-ctype_cntrl.c: Likewise.
51330         * tests/unictype/test-ctype_digit.c: Likewise.
51331         * tests/unictype/test-ctype_graph.c: Likewise.
51332         * tests/unictype/test-ctype_lower.c: Likewise.
51333         * tests/unictype/test-ctype_print.c: Likewise.
51334         * tests/unictype/test-ctype_punct.c: Likewise.
51335         * tests/unictype/test-ctype_space.c: Likewise.
51336         * tests/unictype/test-ctype_upper.c: Likewise.
51337         * tests/unictype/test-ctype_xdigit.c: Likewise.
51338         * tests/unictype/test-decdigit.h: Likewise.
51339         * tests/unictype/test-digit.h: Likewise.
51340         * tests/unictype/test-numeric.h: Likewise.
51341         * tests/unictype/test-pr_alphabetic.c: Likewise.
51342         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
51343         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
51344         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
51345         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
51346         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
51347         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
51348         * tests/unictype/test-pr_bidi_control.c: Likewise.
51349         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
51350         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
51351         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
51352         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
51353         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
51354         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
51355         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
51356         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
51357         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
51358         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
51359         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
51360         * tests/unictype/test-pr_combining.c: Likewise.
51361         * tests/unictype/test-pr_composite.c: Likewise.
51362         * tests/unictype/test-pr_currency_symbol.c: Likewise.
51363         * tests/unictype/test-pr_dash.c: Likewise.
51364         * tests/unictype/test-pr_decimal_digit.c: Likewise.
51365         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
51366         * tests/unictype/test-pr_deprecated.c: Likewise.
51367         * tests/unictype/test-pr_diacritic.c: Likewise.
51368         * tests/unictype/test-pr_extender.c: Likewise.
51369         * tests/unictype/test-pr_format_control.c: Likewise.
51370         * tests/unictype/test-pr_grapheme_base.c: Likewise.
51371         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
51372         * tests/unictype/test-pr_grapheme_link.c: Likewise.
51373         * tests/unictype/test-pr_hex_digit.c: Likewise.
51374         * tests/unictype/test-pr_hyphen.c: Likewise.
51375         * tests/unictype/test-pr_id_continue.c: Likewise.
51376         * tests/unictype/test-pr_id_start.c: Likewise.
51377         * tests/unictype/test-pr_ideographic.c: Likewise.
51378         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
51379         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
51380         * tests/unictype/test-pr_ignorable_control.c: Likewise.
51381         * tests/unictype/test-pr_iso_control.c: Likewise.
51382         * tests/unictype/test-pr_join_control.c: Likewise.
51383         * tests/unictype/test-pr_left_of_pair.c: Likewise.
51384         * tests/unictype/test-pr_line_separator.c: Likewise.
51385         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
51386         * tests/unictype/test-pr_lowercase.c: Likewise.
51387         * tests/unictype/test-pr_math.c: Likewise.
51388         * tests/unictype/test-pr_non_break.c: Likewise.
51389         * tests/unictype/test-pr_not_a_character.c: Likewise.
51390         * tests/unictype/test-pr_numeric.c: Likewise.
51391         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
51392         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
51393         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
51394         * tests/unictype/test-pr_other_id_continue.c: Likewise.
51395         * tests/unictype/test-pr_other_id_start.c: Likewise.
51396         * tests/unictype/test-pr_other_lowercase.c: Likewise.
51397         * tests/unictype/test-pr_other_math.c: Likewise.
51398         * tests/unictype/test-pr_other_uppercase.c: Likewise.
51399         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
51400         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
51401         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
51402         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
51403         * tests/unictype/test-pr_private_use.c: Likewise.
51404         * tests/unictype/test-pr_punctuation.c: Likewise.
51405         * tests/unictype/test-pr_quotation_mark.c: Likewise.
51406         * tests/unictype/test-pr_radical.c: Likewise.
51407         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
51408         * tests/unictype/test-pr_soft_dotted.c: Likewise.
51409         * tests/unictype/test-pr_space.c: Likewise.
51410         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
51411         * tests/unictype/test-pr_titlecase.c: Likewise.
51412         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
51413         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
51414         * tests/unictype/test-pr_uppercase.c: Likewise.
51415         * tests/unictype/test-pr_variation_selector.c: Likewise.
51416         * tests/unictype/test-pr_white_space.c: Likewise.
51417         * tests/unictype/test-pr_xid_continue.c: Likewise.
51418         * tests/unictype/test-pr_xid_start.c: Likewise.
51419         * tests/unictype/test-pr_zero_width.c: Likewise.
51420         * tests/unictype/test-sy_c_whitespace.c: Likewise.
51421         * tests/unictype/test-sy_java_whitespace.c: Likewise.
51422
51423 2007-11-12  Bruno Haible  <bruno@clisp.org>
51424
51425         Unicode character classification functions.
51426         * lib/unictype.h: New file.
51427         * modules/unictype/base: New file.
51428         * modules/unictype/category-L: New file.
51429         * modules/unictype/category-Lu: New file.
51430         * modules/unictype/category-Ll: New file.
51431         * modules/unictype/category-Lt: New file.
51432         * modules/unictype/category-Lm: New file.
51433         * modules/unictype/category-Lo: New file.
51434         * modules/unictype/category-M: New file.
51435         * modules/unictype/category-Mn: New file.
51436         * modules/unictype/category-Mc: New file.
51437         * modules/unictype/category-Me: New file.
51438         * modules/unictype/category-N: New file.
51439         * modules/unictype/category-Nd: New file.
51440         * modules/unictype/category-Nl: New file.
51441         * modules/unictype/category-No: New file.
51442         * modules/unictype/category-P: New file.
51443         * modules/unictype/category-Pc: New file.
51444         * modules/unictype/category-Pd: New file.
51445         * modules/unictype/category-Ps: New file.
51446         * modules/unictype/category-Pe: New file.
51447         * modules/unictype/category-Pi: New file.
51448         * modules/unictype/category-Pf: New file.
51449         * modules/unictype/category-Po: New file.
51450         * modules/unictype/category-S: New file.
51451         * modules/unictype/category-Sm: New file.
51452         * modules/unictype/category-Sc: New file.
51453         * modules/unictype/category-Sk: New file.
51454         * modules/unictype/category-So: New file.
51455         * modules/unictype/category-Z: New file.
51456         * modules/unictype/category-Zs: New file.
51457         * modules/unictype/category-Zl: New file.
51458         * modules/unictype/category-Zp: New file.
51459         * modules/unictype/category-C: New file.
51460         * modules/unictype/category-Cc: New file.
51461         * modules/unictype/category-Cf: New file.
51462         * modules/unictype/category-Cs: New file.
51463         * modules/unictype/category-Co: New file.
51464         * modules/unictype/category-Cn: New file.
51465         * modules/unictype/category-or: New file.
51466         * modules/unictype/category-of: New file.
51467         * modules/unictype/category-test: New file.
51468         * modules/unictype/category-test-withtable: New file.
51469         * modules/unictype/category-byname: New file.
51470         * modules/unictype/category-none: New file.
51471         * modules/unictype/category-and: New file.
51472         * modules/unictype/category-and-not: New file.
51473         * modules/unictype/category-name: New file.
51474         * modules/unictype/combining-class: New file.
51475         * modules/unictype/category-all: New file.
51476         * modules/unictype/bidicategory-all: New file.
51477         * modules/unictype/bidicategory-byname: New file.
51478         * modules/unictype/bidicategory-name: New file.
51479         * modules/unictype/bidicategory-of: New file.
51480         * modules/unictype/bidicategory-test: New file.
51481         * modules/unictype/decimal-digit: New file.
51482         * modules/unictype/digit: New file.
51483         * modules/unictype/numeric: New file.
51484         * modules/unictype/mirror: New file.
51485         * modules/unictype/property-white-space: New file.
51486         * modules/unictype/property-alphabetic: New file.
51487         * modules/unictype/property-other-alphabetic: New file.
51488         * modules/unictype/property-not-a-character: New file.
51489         * modules/unictype/property-default-ignorable-code-point: New file.
51490         * modules/unictype/property-other-default-ignorable-code-point: New
51491         file.
51492         * modules/unictype/property-deprecated: New file.
51493         * modules/unictype/property-logical-order-exception: New file.
51494         * modules/unictype/property-variation-selector: New file.
51495         * modules/unictype/property-private-use: New file.
51496         * modules/unictype/property-unassigned-code-value: New file.
51497         * modules/unictype/property-uppercase: New file.
51498         * modules/unictype/property-other-uppercase: New file.
51499         * modules/unictype/property-lowercase: New file.
51500         * modules/unictype/property-other-lowercase: New file.
51501         * modules/unictype/property-titlecase: New file.
51502         * modules/unictype/property-soft-dotted: New file.
51503         * modules/unictype/property-id-start: New file.
51504         * modules/unictype/property-other-id-start: New file.
51505         * modules/unictype/property-id-continue: New file.
51506         * modules/unictype/property-other-id-continue: New file.
51507         * modules/unictype/property-xid-start: New file.
51508         * modules/unictype/property-xid-continue: New file.
51509         * modules/unictype/property-pattern-white-space: New file.
51510         * modules/unictype/property-pattern-syntax: New file.
51511         * modules/unictype/property-join-control: New file.
51512         * modules/unictype/property-grapheme-base: New file.
51513         * modules/unictype/property-grapheme-extend: New file.
51514         * modules/unictype/property-other-grapheme-extend: New file.
51515         * modules/unictype/property-grapheme-link: New file.
51516         * modules/unictype/property-bidi-control: New file.
51517         * modules/unictype/property-bidi-left-to-right: New file.
51518         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
51519         * modules/unictype/property-bidi-arabic-right-to-left: New file.
51520         * modules/unictype/property-bidi-european-digit: New file.
51521         * modules/unictype/property-bidi-eur-num-separator: New file.
51522         * modules/unictype/property-bidi-eur-num-terminator: New file.
51523         * modules/unictype/property-bidi-arabic-digit: New file.
51524         * modules/unictype/property-bidi-common-separator: New file.
51525         * modules/unictype/property-bidi-block-separator: New file.
51526         * modules/unictype/property-bidi-segment-separator: New file.
51527         * modules/unictype/property-bidi-whitespace: New file.
51528         * modules/unictype/property-bidi-non-spacing-mark: New file.
51529         * modules/unictype/property-bidi-boundary-neutral: New file.
51530         * modules/unictype/property-bidi-pdf: New file.
51531         * modules/unictype/property-bidi-embedding-or-override: New file.
51532         * modules/unictype/property-bidi-other-neutral: New file.
51533         * modules/unictype/property-hex-digit: New file.
51534         * modules/unictype/property-ascii-hex-digit: New file.
51535         * modules/unictype/property-ideographic: New file.
51536         * modules/unictype/property-unified-ideograph: New file.
51537         * modules/unictype/property-radical: New file.
51538         * modules/unictype/property-ids-binary-operator: New file.
51539         * modules/unictype/property-ids-trinary-operator: New file.
51540         * modules/unictype/property-zero-width: New file.
51541         * modules/unictype/property-space: New file.
51542         * modules/unictype/property-non-break: New file.
51543         * modules/unictype/property-iso-control: New file.
51544         * modules/unictype/property-format-control: New file.
51545         * modules/unictype/property-dash: New file.
51546         * modules/unictype/property-hyphen: New file.
51547         * modules/unictype/property-punctuation: New file.
51548         * modules/unictype/property-line-separator: New file.
51549         * modules/unictype/property-paragraph-separator: New file.
51550         * modules/unictype/property-quotation-mark: New file.
51551         * modules/unictype/property-sentence-terminal: New file.
51552         * modules/unictype/property-terminal-punctuation: New file.
51553         * modules/unictype/property-currency-symbol: New file.
51554         * modules/unictype/property-math: New file.
51555         * modules/unictype/property-other-math: New file.
51556         * modules/unictype/property-paired-punctuation: New file.
51557         * modules/unictype/property-left-of-pair: New file.
51558         * modules/unictype/property-combining: New file.
51559         * modules/unictype/property-composite: New file.
51560         * modules/unictype/property-decimal-digit: New file.
51561         * modules/unictype/property-numeric: New file.
51562         * modules/unictype/property-diacritic: New file.
51563         * modules/unictype/property-extender: New file.
51564         * modules/unictype/property-ignorable-control: New file.
51565         * modules/unictype/property-test: New file.
51566         * modules/unictype/property-byname: New file.
51567         * modules/unictype/property-all: New file.
51568         * modules/unictype/scripts: New file.
51569         * modules/unictype/scripts-all: New file.
51570         * modules/unictype/block-of: New file.
51571         * modules/unictype/block-test: New file.
51572         * modules/unictype/block-list: New file.
51573         * modules/unictype/block-all: New file.
51574         * modules/unictype/syntax-c-whitespace: New file.
51575         * modules/unictype/syntax-java-whitespace: New file.
51576         * modules/unictype/syntax-c-ident: New file.
51577         * modules/unictype/syntax-java-ident: New file.
51578         * modules/unictype/ctype-alnum: New file.
51579         * modules/unictype/ctype-alpha: New file.
51580         * modules/unictype/ctype-cntrl: New file.
51581         * modules/unictype/ctype-digit: New file.
51582         * modules/unictype/ctype-graph: New file.
51583         * modules/unictype/ctype-lower: New file.
51584         * modules/unictype/ctype-print: New file.
51585         * modules/unictype/ctype-punct: New file.
51586         * modules/unictype/ctype-space: New file.
51587         * modules/unictype/ctype-upper: New file.
51588         * modules/unictype/ctype-xdigit: New file.
51589         * modules/unictype/ctype-blank: New file.
51590         * lib/unictype/bidi_byname.c: New file.
51591         * lib/unictype/bidi_name.c: New file.
51592         * lib/unictype/bidi_of.c: New file.
51593         * lib/unictype/bidi_test.c: New file.
51594         * lib/unictype/bitmap.h: New file.
51595         * lib/unictype/block_test.c: New file.
51596         * lib/unictype/blocks.c: New file.
51597         * lib/unictype/categ_C.c: New file.
51598         * lib/unictype/categ_Cc.c: New file.
51599         * lib/unictype/categ_Cf.c: New file.
51600         * lib/unictype/categ_Cn.c: New file.
51601         * lib/unictype/categ_Co.c: New file.
51602         * lib/unictype/categ_Cs.c: New file.
51603         * lib/unictype/categ_L.c: New file.
51604         * lib/unictype/categ_Ll.c: New file.
51605         * lib/unictype/categ_Lm.c: New file.
51606         * lib/unictype/categ_Lo.c: New file.
51607         * lib/unictype/categ_Lt.c: New file.
51608         * lib/unictype/categ_Lu.c: New file.
51609         * lib/unictype/categ_M.c: New file.
51610         * lib/unictype/categ_Mc.c: New file.
51611         * lib/unictype/categ_Me.c: New file.
51612         * lib/unictype/categ_Mn.c: New file.
51613         * lib/unictype/categ_N.c: New file.
51614         * lib/unictype/categ_Nd.c: New file.
51615         * lib/unictype/categ_Nl.c: New file.
51616         * lib/unictype/categ_No.c: New file.
51617         * lib/unictype/categ_P.c: New file.
51618         * lib/unictype/categ_Pc.c: New file.
51619         * lib/unictype/categ_Pd.c: New file.
51620         * lib/unictype/categ_Pe.c: New file.
51621         * lib/unictype/categ_Pf.c: New file.
51622         * lib/unictype/categ_Pi.c: New file.
51623         * lib/unictype/categ_Po.c: New file.
51624         * lib/unictype/categ_Ps.c: New file.
51625         * lib/unictype/categ_S.c: New file.
51626         * lib/unictype/categ_Sc.c: New file.
51627         * lib/unictype/categ_Sk.c: New file.
51628         * lib/unictype/categ_Sm.c: New file.
51629         * lib/unictype/categ_So.c: New file.
51630         * lib/unictype/categ_Z.c: New file.
51631         * lib/unictype/categ_Zl.c: New file.
51632         * lib/unictype/categ_Zp.c: New file.
51633         * lib/unictype/categ_Zs.c: New file.
51634         * lib/unictype/categ_and.c: New file.
51635         * lib/unictype/categ_and_not.c: New file.
51636         * lib/unictype/categ_byname.c: New file.
51637         * lib/unictype/categ_name.c: New file.
51638         * lib/unictype/categ_none.c: New file.
51639         * lib/unictype/categ_of.c: New file.
51640         * lib/unictype/categ_or.c: New file.
51641         * lib/unictype/categ_test.c: New file.
51642         * lib/unictype/combining.c: New file.
51643         * lib/unictype/ctype_alnum.c: New file.
51644         * lib/unictype/ctype_alpha.c: New file.
51645         * lib/unictype/ctype_blank.c: New file.
51646         * lib/unictype/ctype_cntrl.c: New file.
51647         * lib/unictype/ctype_digit.c: New file.
51648         * lib/unictype/ctype_graph.c: New file.
51649         * lib/unictype/ctype_lower.c: New file.
51650         * lib/unictype/ctype_print.c: New file.
51651         * lib/unictype/ctype_punct.c: New file.
51652         * lib/unictype/ctype_space.c: New file.
51653         * lib/unictype/ctype_upper.c: New file.
51654         * lib/unictype/ctype_xdigit.c: New file.
51655         * lib/unictype/decdigit.c: New file.
51656         * lib/unictype/digit.c: New file.
51657         * lib/unictype/identsyntaxmap.h: New file.
51658         * lib/unictype/mirror.c: New file.
51659         * lib/unictype/numeric.c: New file.
51660         * lib/unictype/pr_alphabetic.c: New file.
51661         * lib/unictype/pr_ascii_hex_digit.c: New file.
51662         * lib/unictype/pr_bidi_arabic_digit.c: New file.
51663         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
51664         * lib/unictype/pr_bidi_block_separator.c: New file.
51665         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
51666         * lib/unictype/pr_bidi_common_separator.c: New file.
51667         * lib/unictype/pr_bidi_control.c: New file.
51668         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
51669         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
51670         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
51671         * lib/unictype/pr_bidi_european_digit.c: New file.
51672         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
51673         * lib/unictype/pr_bidi_left_to_right.c: New file.
51674         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
51675         * lib/unictype/pr_bidi_other_neutral.c: New file.
51676         * lib/unictype/pr_bidi_pdf.c: New file.
51677         * lib/unictype/pr_bidi_segment_separator.c: New file.
51678         * lib/unictype/pr_bidi_whitespace.c: New file.
51679         * lib/unictype/pr_byname.c: New file.
51680         * lib/unictype/pr_byname.gperf: New file.
51681         * lib/unictype/pr_combining.c: New file.
51682         * lib/unictype/pr_composite.c: New file.
51683         * lib/unictype/pr_currency_symbol.c: New file.
51684         * lib/unictype/pr_dash.c: New file.
51685         * lib/unictype/pr_decimal_digit.c: New file.
51686         * lib/unictype/pr_default_ignorable_code_point.c: New file.
51687         * lib/unictype/pr_deprecated.c: New file.
51688         * lib/unictype/pr_diacritic.c: New file.
51689         * lib/unictype/pr_extender.c: New file.
51690         * lib/unictype/pr_format_control.c: New file.
51691         * lib/unictype/pr_grapheme_base.c: New file.
51692         * lib/unictype/pr_grapheme_extend.c: New file.
51693         * lib/unictype/pr_grapheme_link.c: New file.
51694         * lib/unictype/pr_hex_digit.c: New file.
51695         * lib/unictype/pr_hyphen.c: New file.
51696         * lib/unictype/pr_id_continue.c: New file.
51697         * lib/unictype/pr_id_start.c: New file.
51698         * lib/unictype/pr_ideographic.c: New file.
51699         * lib/unictype/pr_ids_binary_operator.c: New file.
51700         * lib/unictype/pr_ids_trinary_operator.c: New file.
51701         * lib/unictype/pr_ignorable_control.c: New file.
51702         * lib/unictype/pr_iso_control.c: New file.
51703         * lib/unictype/pr_join_control.c: New file.
51704         * lib/unictype/pr_left_of_pair.c: New file.
51705         * lib/unictype/pr_line_separator.c: New file.
51706         * lib/unictype/pr_logical_order_exception.c: New file.
51707         * lib/unictype/pr_lowercase.c: New file.
51708         * lib/unictype/pr_math.c: New file.
51709         * lib/unictype/pr_non_break.c: New file.
51710         * lib/unictype/pr_not_a_character.c: New file.
51711         * lib/unictype/pr_numeric.c: New file.
51712         * lib/unictype/pr_other_alphabetic.c: New file.
51713         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
51714         * lib/unictype/pr_other_grapheme_extend.c: New file.
51715         * lib/unictype/pr_other_id_continue.c: New file.
51716         * lib/unictype/pr_other_id_start.c: New file.
51717         * lib/unictype/pr_other_lowercase.c: New file.
51718         * lib/unictype/pr_other_math.c: New file.
51719         * lib/unictype/pr_other_uppercase.c: New file.
51720         * lib/unictype/pr_paired_punctuation.c: New file.
51721         * lib/unictype/pr_paragraph_separator.c: New file.
51722         * lib/unictype/pr_pattern_syntax.c: New file.
51723         * lib/unictype/pr_pattern_white_space.c: New file.
51724         * lib/unictype/pr_private_use.c: New file.
51725         * lib/unictype/pr_punctuation.c: New file.
51726         * lib/unictype/pr_quotation_mark.c: New file.
51727         * lib/unictype/pr_radical.c: New file.
51728         * lib/unictype/pr_sentence_terminal.c: New file.
51729         * lib/unictype/pr_soft_dotted.c: New file.
51730         * lib/unictype/pr_space.c: New file.
51731         * lib/unictype/pr_terminal_punctuation.c: New file.
51732         * lib/unictype/pr_test.c: New file.
51733         * lib/unictype/pr_titlecase.c: New file.
51734         * lib/unictype/pr_unassigned_code_value.c: New file.
51735         * lib/unictype/pr_unified_ideograph.c: New file.
51736         * lib/unictype/pr_uppercase.c: New file.
51737         * lib/unictype/pr_variation_selector.c: New file.
51738         * lib/unictype/pr_white_space.c: New file.
51739         * lib/unictype/pr_xid_continue.c: New file.
51740         * lib/unictype/pr_xid_start.c: New file.
51741         * lib/unictype/pr_zero_width.c: New file.
51742         * lib/unictype/scripts.c: New file.
51743         * lib/unictype/sy_c_ident.c: New file.
51744         * lib/unictype/sy_c_whitespace.c: New file.
51745         * lib/unictype/sy_java_ident.c: New file.
51746         * lib/unictype/sy_java_whitespace.c: New file.
51747
51748         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
51749         Unicode 5.0.0.
51750         * lib/unictype/blocks.h: Likewise.
51751         * lib/unictype/categ_C.h: Likewise.
51752         * lib/unictype/categ_Cc.h: Likewise.
51753         * lib/unictype/categ_Cf.h: Likewise.
51754         * lib/unictype/categ_Cn.h: Likewise.
51755         * lib/unictype/categ_Co.h: Likewise.
51756         * lib/unictype/categ_Cs.h: Likewise.
51757         * lib/unictype/categ_L.h: Likewise.
51758         * lib/unictype/categ_Ll.h: Likewise.
51759         * lib/unictype/categ_Lm.h: Likewise.
51760         * lib/unictype/categ_Lo.h: Likewise.
51761         * lib/unictype/categ_Lt.h: Likewise.
51762         * lib/unictype/categ_Lu.h: Likewise.
51763         * lib/unictype/categ_M.h: Likewise.
51764         * lib/unictype/categ_Mc.h: Likewise.
51765         * lib/unictype/categ_Me.h: Likewise.
51766         * lib/unictype/categ_Mn.h: Likewise.
51767         * lib/unictype/categ_N.h: Likewise.
51768         * lib/unictype/categ_Nd.h: Likewise.
51769         * lib/unictype/categ_Nl.h: Likewise.
51770         * lib/unictype/categ_No.h: Likewise.
51771         * lib/unictype/categ_P.h: Likewise.
51772         * lib/unictype/categ_Pc.h: Likewise.
51773         * lib/unictype/categ_Pd.h: Likewise.
51774         * lib/unictype/categ_Pe.h: Likewise.
51775         * lib/unictype/categ_Pf.h: Likewise.
51776         * lib/unictype/categ_Pi.h: Likewise.
51777         * lib/unictype/categ_Po.h: Likewise.
51778         * lib/unictype/categ_Ps.h: Likewise.
51779         * lib/unictype/categ_S.h: Likewise.
51780         * lib/unictype/categ_Sc.h: Likewise.
51781         * lib/unictype/categ_Sk.h: Likewise.
51782         * lib/unictype/categ_Sm.h: Likewise.
51783         * lib/unictype/categ_So.h: Likewise.
51784         * lib/unictype/categ_Z.h: Likewise.
51785         * lib/unictype/categ_Zl.h: Likewise.
51786         * lib/unictype/categ_Zp.h: Likewise.
51787         * lib/unictype/categ_Zs.h: Likewise.
51788         * lib/unictype/categ_of.h: Likewise.
51789         * lib/unictype/combining.h: Likewise.
51790         * lib/unictype/ctype_alnum.h: Likewise.
51791         * lib/unictype/ctype_alpha.h: Likewise.
51792         * lib/unictype/ctype_blank.h: Likewise.
51793         * lib/unictype/ctype_cntrl.h: Likewise.
51794         * lib/unictype/ctype_digit.h: Likewise.
51795         * lib/unictype/ctype_graph.h: Likewise.
51796         * lib/unictype/ctype_lower.h: Likewise.
51797         * lib/unictype/ctype_print.h: Likewise.
51798         * lib/unictype/ctype_punct.h: Likewise.
51799         * lib/unictype/ctype_space.h: Likewise.
51800         * lib/unictype/ctype_upper.h: Likewise.
51801         * lib/unictype/ctype_xdigit.h: Likewise.
51802         * lib/unictype/decdigit.h: Likewise.
51803         * lib/unictype/digit.h: Likewise.
51804         * lib/unictype/mirror.h: Likewise.
51805         * lib/unictype/numeric.h: Likewise.
51806         * lib/unictype/pr_alphabetic.h: Likewise.
51807         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
51808         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
51809         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
51810         * lib/unictype/pr_bidi_block_separator.h: Likewise.
51811         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
51812         * lib/unictype/pr_bidi_common_separator.h: Likewise.
51813         * lib/unictype/pr_bidi_control.h: Likewise.
51814         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
51815         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
51816         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
51817         * lib/unictype/pr_bidi_european_digit.h: Likewise.
51818         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
51819         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
51820         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
51821         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
51822         * lib/unictype/pr_bidi_pdf.h: Likewise.
51823         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
51824         * lib/unictype/pr_bidi_whitespace.h: Likewise.
51825         * lib/unictype/pr_combining.h: Likewise.
51826         * lib/unictype/pr_composite.h: Likewise.
51827         * lib/unictype/pr_currency_symbol.h: Likewise.
51828         * lib/unictype/pr_dash.h: Likewise.
51829         * lib/unictype/pr_decimal_digit.h: Likewise.
51830         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
51831         * lib/unictype/pr_deprecated.h: Likewise.
51832         * lib/unictype/pr_diacritic.h: Likewise.
51833         * lib/unictype/pr_extender.h: Likewise.
51834         * lib/unictype/pr_format_control.h: Likewise.
51835         * lib/unictype/pr_grapheme_base.h: Likewise.
51836         * lib/unictype/pr_grapheme_extend.h: Likewise.
51837         * lib/unictype/pr_grapheme_link.h: Likewise.
51838         * lib/unictype/pr_hex_digit.h: Likewise.
51839         * lib/unictype/pr_hyphen.h: Likewise.
51840         * lib/unictype/pr_id_continue.h: Likewise.
51841         * lib/unictype/pr_id_start.h: Likewise.
51842         * lib/unictype/pr_ideographic.h: Likewise.
51843         * lib/unictype/pr_ids_binary_operator.h: Likewise.
51844         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
51845         * lib/unictype/pr_ignorable_control.h: Likewise.
51846         * lib/unictype/pr_iso_control.h: Likewise.
51847         * lib/unictype/pr_join_control.h: Likewise.
51848         * lib/unictype/pr_left_of_pair.h: Likewise.
51849         * lib/unictype/pr_line_separator.h: Likewise.
51850         * lib/unictype/pr_logical_order_exception.h: Likewise.
51851         * lib/unictype/pr_lowercase.h: Likewise.
51852         * lib/unictype/pr_math.h: Likewise.
51853         * lib/unictype/pr_non_break.h: Likewise.
51854         * lib/unictype/pr_not_a_character.h: Likewise.
51855         * lib/unictype/pr_numeric.h: Likewise.
51856         * lib/unictype/pr_other_alphabetic.h: Likewise.
51857         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
51858         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
51859         * lib/unictype/pr_other_id_continue.h: Likewise.
51860         * lib/unictype/pr_other_id_start.h: Likewise.
51861         * lib/unictype/pr_other_lowercase.h: Likewise.
51862         * lib/unictype/pr_other_math.h: Likewise.
51863         * lib/unictype/pr_other_uppercase.h: Likewise.
51864         * lib/unictype/pr_paired_punctuation.h: Likewise.
51865         * lib/unictype/pr_paragraph_separator.h: Likewise.
51866         * lib/unictype/pr_pattern_syntax.h: Likewise.
51867         * lib/unictype/pr_pattern_white_space.h: Likewise.
51868         * lib/unictype/pr_private_use.h: Likewise.
51869         * lib/unictype/pr_punctuation.h: Likewise.
51870         * lib/unictype/pr_quotation_mark.h: Likewise.
51871         * lib/unictype/pr_radical.h: Likewise.
51872         * lib/unictype/pr_sentence_terminal.h: Likewise.
51873         * lib/unictype/pr_soft_dotted.h: Likewise.
51874         * lib/unictype/pr_space.h: Likewise.
51875         * lib/unictype/pr_terminal_punctuation.h: Likewise.
51876         * lib/unictype/pr_titlecase.h: Likewise.
51877         * lib/unictype/pr_unassigned_code_value.h: Likewise.
51878         * lib/unictype/pr_unified_ideograph.h: Likewise.
51879         * lib/unictype/pr_uppercase.h: Likewise.
51880         * lib/unictype/pr_variation_selector.h: Likewise.
51881         * lib/unictype/pr_white_space.h: Likewise.
51882         * lib/unictype/pr_xid_continue.h: Likewise.
51883         * lib/unictype/pr_xid_start.h: Likewise.
51884         * lib/unictype/pr_zero_width.h: Likewise.
51885         * lib/unictype/scripts.h: Likewise.
51886         * lib/unictype/scripts_byname.gperf: Likewise.
51887         * lib/unictype/sy_c_ident.h: Likewise.
51888         * lib/unictype/sy_c_whitespace.h: Likewise.
51889         * lib/unictype/sy_java_ident.h: Likewise.
51890         * lib/unictype/sy_java_whitespace.h: Likewise.
51891
51892         * lib/unictype/Makefile: New file.
51893         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
51894         glibc.
51895         * lib/unictype/3level.h: New file, copied from glibc.
51896         * lib/unictype/3levelbit.h: New file.
51897
51898 2007-11-11  Bruno Haible  <bruno@clisp.org>
51899
51900         * modules/gperf: New file.
51901         * modules/iconv_open (Depends-on): Add it.
51902         (Makefile.am): Remove the GPERF definition.
51903
51904 2007-11-11  Bruno Haible  <bruno@clisp.org>
51905
51906         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
51907         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
51908
51909 2007-11-11  Bruno Haible  <bruno@clisp.org>
51910
51911         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
51912         (usage): Remove function.
51913
51914 2007-11-11  Bruno Haible  <bruno@clisp.org>
51915
51916         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
51917         gl_FUNC_CEILF_LIBS.
51918         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
51919         gl_FUNC_CEIL_LIBS.
51920         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
51921         gl_FUNC_CEILL_LIBS.
51922         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
51923         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
51924         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
51925
51926 2007-11-11  Bruno Haible  <bruno@clisp.org>
51927
51928         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
51929         roundf were declared but do not exist on functions.
51930         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
51931         roundl were declared but do not exist on functions.
51932         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
51933         HAVE_FLOORL_AND_CEILL, respectively.
51934         Needed for Sun C on Solaris 10.
51935
51936 2007-11-11  Bruno Haible  <bruno@clisp.org>
51937
51938         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
51939         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
51940         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
51941         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
51942         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
51943         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
51944         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
51945         HAVE_DECL_ROUNDF.
51946         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
51947         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
51948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
51949         of HAVE_DECL_ROUND*.
51950         * modules/math (Makefile.am): Update.
51951
51952 2007-11-10  Bruno Haible  <bruno@clisp.org>
51953
51954         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
51955         ptrdiff_t as m4/intl.m4.
51956
51957 2007-11-10  Jim Meyering  <meyering@redhat.com>
51958
51959         Avoid link failure for the argmatch test.
51960         * tests/test-argmatch.c (usage): Define function to avoid a link
51961         failure: argmatch_die requires a usage function.
51962
51963 2007-11-09  Bruno Haible  <bruno@clisp.org>
51964
51965         * doc/functions/snprintf.texi: Mention BeOS deficiency.
51966         * doc/functions/vsnprintf.texi: Likewise.
51967         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
51968         with a size argument < 2.
51969
51970 2007-11-09  Bruno Haible  <bruno@clisp.org>
51971
51972         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
51973         buffer. Fixes an inefficiency introduced on 2007-11-03.
51974
51975 2007-11-09  Bruno Haible  <bruno@clisp.org>
51976
51977         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51978         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51979
51980 2007-11-08  Jim Meyering  <meyering@redhat.com>
51981
51982         Change cache variable name prefix "jm_" to "gl_" everywhere.
51983         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51984         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51985         * m4/uptime.m4: s/gl_/jm_/
51986
51987 2007-11-07  Bruno Haible  <bruno@clisp.org>
51988
51989         Update to GNU gettext 0.17.
51990         * m4/intl.m4: Update to GNU gettext 0.17.
51991         * m4/po.m4: Likewise.
51992         * modules/gettext (Files): Remove m4/ulonglong.m4.
51993         (configure.ac): Require gettext infrastructure from version 0.17.
51994
51995 2007-11-06  Bruno Haible  <bruno@clisp.org>
51996
51997         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51998         symbolic values are not defined in a public header.
51999         * lib/freadable.c (freadable) [QNX]: Likewise.
52000         * lib/freadahead.c (freadahead) [QNX]: Likewise.
52001         * lib/freading.c (freading) [QNX]: Likewise.
52002         * lib/fseterr.c (fseterr) [QNX]: Likewise.
52003         * lib/fwritable.c (fwritable) [QNX]: Likewise.
52004         * lib/fwriting.c (fwriting) [QNX]: Likewise.
52005         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
52006         Reported by Alain Magloire.
52007
52008         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
52009
52010 2007-11-05  Bruno Haible  <bruno@clisp.org>
52011
52012         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
52013         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
52014         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
52015         Reported by Eric Blake.
52016
52017 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52018             Bruno Haible  <bruno@clisp.org>
52019
52020         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
52021         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
52022         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
52023         (malloc): Undefine also before including <stdlib.h>.
52024         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
52025         Needed on OSF/1 4.0.
52026
52027 2007-11-05  Jim Meyering  <meyering@redhat.com>
52028
52029         git-version-gen: sync from coreutils.
52030         * build-aux/git-version-gen: Add comments.
52031         Change the first '-' to '.' in the snapshot version string,
52032         e.g., 6.9-377-08144 -> 6.9.377-08144
52033         Remove first parameter.
52034         Don't declare a version "-dirty" merely because a time
52035         stamp has changed.
52036
52037 2007-11-04  Bruno Haible  <bruno@clisp.org>
52038
52039         * lib/lock.h: Protect all macro definitions containing an 'if'
52040         statement through a "do { ... } while (0)".
52041         * lib/tls.h: Likewise.
52042
52043 2007-11-04  Bruno Haible  <bruno@clisp.org>
52044
52045         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
52046
52047 2007-11-04  Bruno Haible  <bruno@clisp.org>
52048
52049         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
52050         * modules/fprintf-posix (Depends-on): Add nocrash.
52051         * modules/snprintf-posix (Depends-on): Likewise.
52052         * modules/sprintf-posix (Depends-on): Likewise.
52053         * modules/vasnprintf-posix (Depends-on): Likewise.
52054         * modules/vasprintf-posix (Depends-on): Likewise.
52055         * modules/vfprintf-posix (Depends-on): Likewise.
52056         * modules/vsnprintf-posix (Depends-on): Likewise.
52057         * modules/vsprintf-posix (Depends-on): Likewise.
52058         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52059         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52060         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52061         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52062         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52063         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52064         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52065
52066 2007-11-04  Bruno Haible  <bruno@clisp.org>
52067
52068         * modules/nocrash: New file.
52069         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
52070         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
52071
52072 2007-11-04  Bruno Haible  <bruno@clisp.org>
52073
52074         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
52075         precision handling.
52076         * tests/test-vasprintf-posix.c (test_function): Likewise.
52077         * tests/test-snprintf-posix.h (test_function): Likewise.
52078         * tests/test-sprintf-posix.h (test_function): Likewise.
52079
52080         Fix *printf behaviour for large precisions on mingw and BeOS.
52081         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
52082         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
52083         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
52084         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52085         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52086         gl_PRINTF_PRECISION and test its result. Invoke
52087         gl_PREREQ_VASNPRINTF_PRECISION.
52088         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52089         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52090         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52091         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52092         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52095         * doc/functions/fprintf.texi: Update.
52096         * doc/functions/printf.texi: Update.
52097         * doc/functions/snprintf.texi: Update.
52098         * doc/functions/sprintf.texi: Update.
52099         * doc/functions/vfprintf.texi: Update.
52100         * doc/functions/vprintf.texi: Update.
52101         * doc/functions/vsnprintf.texi: Update.
52102         * doc/functions/vsprintf.texi: Update.
52103
52104 2007-11-04  Bruno Haible  <bruno@clisp.org>
52105
52106         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
52107
52108 2007-11-04  Bruno Haible  <bruno@clisp.org>
52109
52110         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
52111         Reported by Sylvain Beucler <beuc@gnu.org>.
52112
52113 2007-11-03  Bruno Haible  <bruno@clisp.org>
52114
52115         * tests/test-fprintf-posix2.sh: New file.
52116         * tests/test-fprintf-posix2.c: New file.
52117         * modules/fprintf-posix-tests (Files): Add them.
52118         (TESTS): Add test-fprintf-posix2.sh.
52119         (configure.ac): Check for getrlimit and setrlimit.
52120         (check_PROGRAMS): Add test-fprintf-posix2.
52121
52122         * tests/test-printf-posix2.sh: New file.
52123         * tests/test-printf-posix2.c: New file.
52124         * modules/printf-posix-tests (Files): Add them.
52125         (TESTS): Add test-printf-posix2.sh.
52126         (configure.ac): Check for getrlimit and setrlimit.
52127         (check_PROGRAMS): Add test-printf-posix2.
52128
52129         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
52130         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
52131         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
52132         (decode_double): New function, copied from decode_long_double.
52133         (scale10_round_decimal_decoded): New function, extracted from
52134         scale10_round_decimal_long_double.
52135         (scale10_round_decimal_long_double): Use it.
52136         (scale10_round_decimal_double): New function.
52137         (floorlog10): New function.
52138         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
52139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
52140         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52141         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52142         gl_PRINTF_ENOMEM and test its result. Invoke
52143         gl_PREREQ_VASNPRINTF_ENOMEM.
52144         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52145         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52146         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52147         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52148         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52149         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52150         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52151         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
52152         * modules/snprintf-posix (Depends-on): Likewise.
52153         * modules/sprintf-posix (Depends-on): Likewise.
52154         * modules/vasnprintf-posix (Depends-on): Likewise.
52155         * modules/vasprintf-posix (Depends-on): Likewise.
52156         * modules/vfprintf-posix (Depends-on): Likewise.
52157         * modules/vsnprintf-posix (Depends-on): Likewise.
52158         * modules/vsprintf-posix (Depends-on): Likewise.
52159         * doc/functions/fprintf.texi: Update.
52160         * doc/functions/printf.texi: Update.
52161         * doc/functions/snprintf.texi: Update.
52162         * doc/functions/sprintf.texi: Update.
52163         * doc/functions/vfprintf.texi: Update.
52164         * doc/functions/vprintf.texi: Update.
52165         * doc/functions/vsnprintf.texi: Update.
52166         * doc/functions/vsprintf.texi: Update.
52167
52168 2007-11-03  Bruno Haible  <bruno@clisp.org>
52169
52170         * modules/frexp-nolibm-tests: New file.
52171
52172         * modules/frexp-nolibm: New file.
52173         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
52174
52175 2007-11-03  Bruno Haible  <bruno@clisp.org>
52176
52177         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
52178         value is C99 compliant.
52179         Needed for OSF/1 5.1.
52180
52181 2007-11-03  Bruno Haible  <bruno@clisp.org>
52182
52183         Fix out-of-memory handling of vasnprintf.
52184         * lib/printf-parse.c: Include <errno.h>.
52185         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
52186         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
52187         is already set.
52188
52189 2007-11-02  Eric Blake  <ebb9@byu.net>
52190
52191         Fix tests on cygwin.
52192         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
52193
52194 2007-11-01  Bruno Haible  <bruno@clisp.org>
52195
52196         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
52197         warning.
52198         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
52199         needed for POSIX compatibility.
52200
52201 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52202
52203         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
52204         for compatibility with GNU.
52205
52206 2007-11-01  Bruno Haible  <bruno@clisp.org>
52207
52208         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
52209         (putenv): Renamed from rpl_putenv. Change argument type from
52210         'const char *' to 'char *'.
52211         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
52212         of defining putenv in config.h, just set REPLACE_PUTENV.
52213         * modules/putenv (Depends-on): Add stdlib.
52214         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52215         (Include): Use <stdlib.h>.
52216         * lib/stdlib.in.h (putenv): New declaration.
52217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
52218         REPLACE_PUTENV.
52219         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
52220         REPLACE_PUTENV.
52221         Needed for MacOS X 10.5.0.
52222         Reported by Peter O'Gorman <peter@pogma.com>.
52223
52224 2007-11-01  Jim Meyering  <meyering@redhat.com>
52225
52226         Treat an empty date string exactly like "0".
52227         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
52228         if the remaining date string (to be parsed) is empty, use "0".
52229         Reported by Mischa Molhoek and discussed in this thread:
52230         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
52231
52232 2007-10-31  Bruno Haible  <bruno@clisp.org>
52233
52234         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
52235         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
52236         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
52237         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
52238         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
52239         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
52240
52241 2007-10-31  Bruno Haible  <bruno@clisp.org>
52242
52243         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
52244         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
52245         (AC_TYPE_LONG_LONG_INT): Use it.
52246         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
52247         it as well.
52248         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
52249         to m4/longlong.m4.
52250         * modules/stdint (Files): Remove m4/ulonglong.m4.
52251         * modules/strtoull (Files): Use m4/longlong.m4 instead of
52252         m4/ulonglong.m4.
52253         * modules/strtoumax (Files): Likewise.
52254
52255 2007-10-30  Bruno Haible  <bruno@clisp.org>
52256
52257         * modules/xvasprintf-posix: New file.
52258         Suggested by Eric Blake.
52259
52260 2007-10-30  Bruno Haible  <bruno@clisp.org>
52261
52262         * modules/xprintf-posix-tests: New file.
52263         * tests/test-xprintf-posix.sh: New file.
52264         * tests/test-xprintf-posix.c: New file.
52265         * tests/test-xfprintf-posix.c: New file.
52266
52267         * modules/xprintf-posix: New file.
52268
52269 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52270
52271         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
52272         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
52273         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
52274
52275 2007-10-29  Bruno Haible  <bruno@clisp.org>
52276
52277         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
52278         contain the special marker '_cv_'.
52279         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
52280         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
52281         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
52282         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
52283         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
52284         Reported by Ralf Wildenhues.
52285
52286 2007-10-29  Bruno Haible  <bruno@clisp.org>
52287
52288         * gnulib-tool (func_import): When --lgpl is not specified, set
52289         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
52290         GPLv3.
52291         Reported by Simon Josefsson.
52292
52293 2007-10-28  Bruno Haible  <bruno@clisp.org>
52294
52295         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
52296         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
52297         HAVE_DECL_ISFINITE.
52298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
52299         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
52300         HAVE_DECL_ISFINITE.
52301
52302 2007-10-28  Bruno Haible  <bruno@clisp.org>
52303
52304         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
52305         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
52306
52307 2007-10-28  Bruno Haible  <bruno@clisp.org>
52308
52309         Fix link errors with Sun C 5.0 on Solaris 10.
52310         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
52311         function is declared but not present in the compiler's libm.
52312         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
52313         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
52314         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
52315         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
52316         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
52317         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
52318         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
52319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
52320         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
52321         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
52322         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
52323         HAVE_DECL_FLOORL.
52324
52325 2007-10-28  Bruno Haible  <bruno@clisp.org>
52326
52327         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
52328         gl_FUNC_FLOORL. Cache the result.
52329         (gl_FUNC_FLOORL): Use it.
52330         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
52331         gl_FUNC_CEILL. Cache the result.
52332         (gl_FUNC_CEILL): Use it.
52333
52334         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
52335         gl_FUNC_FLOOR. Cache the result.
52336         (gl_FUNC_FLOOR): Use it.
52337         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
52338         gl_FUNC_CEIL. Cache the result.
52339         (gl_FUNC_CEIL): Use it.
52340
52341         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
52342         gl_FUNC_FLOORF. Cache the result.
52343         (gl_FUNC_FLOORF): Use it.
52344         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
52345         gl_FUNC_CEILF. Cache the result.
52346         (gl_FUNC_CEILF): Use it.
52347
52348 2007-10-28  Bruno Haible  <bruno@clisp.org>
52349
52350         * gnulib-tool: Allow specifying the LGPL version number through
52351         --lgpl=2 or --lgpl=3.
52352         (func_usage): Document --lgpl with argument.
52353         Handle --lgpl=... arguments.
52354         (func_import): Recognize also gl_LGPL calls with an argument. When
52355         --lgpl=2 is used and the module's license is just LGPL, report an
52356         error. Set sed_transform_lib_file according to the lgpl variable. In
52357         the generated files, use --lgpl or gl_LGPL invocations with argument,
52358         if necessary.
52359         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
52360         an LGPv2+ license.
52361         * doc/gnulib-tool.texi (Modified imports): Update explanation of
52362         gl_LGPL macro.
52363
52364 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52365             Bruno Haible  <bruno@clisp.org>
52366
52367         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
52368         (u16_uctomb_aux): Likewise.
52369         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
52370         !HAVE_INLINE.
52371         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
52372
52373 2007-10-28  Bruno Haible  <bruno@clisp.org>
52374
52375         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
52376         Invoke AM_GETTEXT_OPTION if it exists.
52377         * modules/vasprintf: Likewise.
52378         * modules/verror: Likewise.
52379         * modules/xprintf: Likewise.
52380         * modules/xvasprintf: Likewise.
52381
52382 2007-10-27  Ben Pfaff  <blp@gnu.org>
52383
52384         * lib/math.in.h: Define isfinite macro and prototypes for
52385         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
52386         implementations.
52387         * m4/math_h.m4: New substitutions for isfinite module.
52388         * lib/isfinite.c: New file.
52389         * m4/isfinite.m4: New file.
52390         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
52391         * modules/isfinite: New file.
52392         * modules/isfinite-tests: New file.
52393         * tests/tests-isfinite.c: New file.
52394         * doc/functions/isfinite.texi: Mention isfinite module.
52395         * MODULES.html.sh: Mention new module.
52396
52397 2007-10-27  Ben Pfaff  <blp@gnu.org>
52398
52399         Ralf Wildenhues reported that Tru64 4.0D declares the round
52400         functions but does not have definitions.
52401         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
52402         cannot be found in any library, set the output variable to
52403         "missing" instead of "".
52404         * m4/round.m4: Also use our substitute if we cannot find round in
52405         any library, even if it is declared.
52406         * m4/roundf.m4: Likewise for roundf.
52407         * m4/roundl.m4: Likewise for roundl.
52408         * lib/math.in.h: Undefine roundf, round, roundl before defining
52409         their replacements, to allow for hypothetical systems where these
52410         may be defined as macros but not available in libraries.
52411
52412 2007-10-27  Bruno Haible  <bruno@clisp.org>
52413
52414         * doc/gnulib.texi: Invoke @firstparagraphindent.
52415         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
52416         changes in gnulib.
52417         (Source changes): New section.
52418
52419 2007-10-26  Bruno Haible  <bruno@clisp.org>
52420
52421         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
52422         borrowed from autoconf.
52423
52424 2007-10-26  Bruno Haible  <bruno@clisp.org>
52425
52426         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
52427         strerror returned the empty string. Needed on HP-UX 11.00.
52428
52429 2007-10-24  Micah Cowan  <micah@cowan.name>
52430
52431         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
52432         * build-aux/bootstrap: Remove support for now-unnecessary option,
52433         --cvs-user, and envvars CVS_USER, CVS_RSH.
52434
52435 2007-10-24  Jim Meyering  <meyering@redhat.com>
52436
52437         Avoid diagnostics from sha1sum when there is no cached checksum.
52438         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
52439         if the po.s1 file hasn't been created yet.
52440
52441         * build-aux/bootstrap: Sync from coreutils:
52442         2007-10-24  Jim Meyering  <meyering@redhat.com>
52443         Get gnulib from the git repository, not from an obsolete cvs one.
52444         * build-aux/bootstrap: Suggestion from Micah Cowan.
52445         2007-10-04  Jim Meyering  <jim@meyering.net>
52446         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
52447         (update_po_files): Work also when there are no .po files in po/.
52448
52449 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52450
52451         * README: Append ".git" to git and cg examples.
52452         Problem reported by Benoit Sigoure.
52453
52454 2007-10-23  Micah Cowan  <micah@cowan.name>
52455
52456         * users.txt: Add wget.
52457
52458 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52459
52460         Fix linking of some unistdio tests on FreeBSD.
52461         * modules/unistdio/u16-vsnprintf-tests
52462         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
52463         * modules/unistdio/u16-vsprintf-tests
52464         (test_u16_vsnprintf1_LDADD): Likewise.
52465         * modules/unistdio/u32-vsnprintf-tests
52466         (test_u32_vsnprintf1_LDADD): Likewise.
52467         * modules/unistdio/u32-vsprintf-tests
52468         (test_u32_vsprintf1_LDADD): Likewise.
52469         * modules/unistdio/u8-vsnprintf-tests
52470         (test_u8_vsnprintf1_LDADD): Likewise.
52471         * modules/unistdio/u8-vsprintf-tests
52472         (test_u8_vsprintf1_LDADD): Likewise.
52473         * modules/unistdio/ulc-vsnprintf-tests
52474         (test_ulc_vsnprintf1_LDADD): Likewise.
52475         * modules/unistdio/ulc-vsprintf-tests
52476         (test_ulc_vsprintf1_LDADD): Likewise.
52477
52478         Fix linking of some uniconv tests on FreeBSD.
52479         * modules/uniconv/u16-conv-from-enc-tests
52480         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
52481         * modules/uniconv/u16-conv-to-enc-tests
52482         (test_u16_conv_to_enc_LDADD): Likewise.
52483         * modules/uniconv/u16-strconv-from-enc-tests
52484         (test_u16_strconv_from_enc_LDADD): Likewise.
52485         * modules/uniconv/u16-strconv-to-enc-tests
52486         (test_u16_strconv_to_enc_LDADD): Likewise.
52487         * modules/uniconv/u32-conv-from-enc-tests
52488         (test_u32_conv_from_enc_LDADD): Likewise.
52489         * modules/uniconv/u32-conv-to-enc-tests
52490         (test_u32_conv_to_enc_LDADD): Likewise.
52491         * modules/uniconv/u32-strconv-from-enc-tests
52492         (test_u32_strconv_from_enc_LDADD): Likewise.
52493         * modules/uniconv/u32-strconv-to-enc-tests
52494         (test_u32_strconv_to_enc_LDADD): Likewise.
52495         * modules/uniconv/u8-conv-from-enc-tests
52496         (test_u8_conv_from_enc_LDADD): Likewise.
52497         * modules/uniconv/u8-conv-to-enc-tests
52498         (test_u8_conv_to_enc_LDADD): Likewise.
52499         * modules/uniconv/u8-strconv-from-enc-tests
52500         (test_u8_strconv_from_enc_LDADD): Likewise.
52501         * modules/uniconv/u8-strconv-to-enc-tests
52502         (test_u8_strconv_to_enc_LDADD): Likewise.
52503
52504 2007-10-22  Bruno Haible  <bruno@clisp.org>
52505
52506         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
52507         size.
52508
52509 2007-10-22  Eric Blake  <ebb9@byu.net>
52510
52511         Tweak x*printf documentation.
52512         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
52513         variable name and comments.
52514         Suggested by Bruno Haible.
52515
52516 2007-10-22  Bruno Haible  <bruno@clisp.org>
52517
52518         * lib/acl.c (copy_acl): Fix file name in comment.
52519
52520 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52521
52522         Fix Tru64 problem with stdbool.h.
52523         * lib/stdbool.in.h (false, true):
52524         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
52525         Don't declare as an enum in this situation; it runs afoul of Tru64.
52526         Problem reported by Steven M. Schweda in
52527         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
52528
52529 2007-10-22  Eric Blake  <ebb9@byu.net>
52530
52531         Also wrap vf?printf.
52532         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
52533         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
52534         (xvprintf, xvfprintf): New functions.
52535
52536 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52537
52538         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
52539         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
52540
52541         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
52542         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
52543
52544 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52545
52546         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
52547         by Bruno Haible.
52548
52549 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52550
52551         * lib/getloadavg.c
52552         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
52553         Undef `sys' after including sys/table.h, for Tru64 4.0D.
52554
52555         * tests/test-i-ring.c: Work for C89.
52556
52557 2007-10-22  Bruno Haible  <bruno@clisp.org>
52558
52559         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
52560         -1u, in preprocessor expression, so that we don't test for the bug
52561         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
52562         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
52563
52564 2007-10-22  Eric Blake  <ebb9@byu.net>
52565
52566         * tests/test-yesno.sh: Silence stderr during test.
52567
52568 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52569
52570         * modules/crypto/gc-camellia: New file.
52571
52572         * m4/gc-camellia.m4: New file.
52573
52574         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
52575
52576         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
52577
52578 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52579
52580         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
52581         --help to stdout.  Reported by sms@antinode.org (Steven
52582         M. Schweda).
52583
52584 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52585
52586         * users.txt: Fix link to libksba.
52587
52588 2007-10-21  Ben Pfaff  <blp@gnu.org>
52589
52590         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
52591         round.c roundf implementation that depends on floorf and ceilf to
52592         be tested unconditionally.
52593
52594 2007-10-21  Ben Pfaff  <blp@gnu.org>
52595
52596         * m4/check-libm-func.m4: Removed.
52597         * m4/check-math-lib.m4: New file.
52598         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
52599         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
52600         definition and lack of AC_LIBOBJ([roundf]).
52601         * m4/roundl.m4: Ditto, and similarly for roundl.
52602         * modules/round: Reference new m4 file.
52603         * modules/roundf: Ditto.
52604         * modules/roundl: Ditto.
52605         * tests/test-round2.c (main): Use ROUND instead of round.
52606         Bug report from Bruno Haible.
52607
52608 2007-10-21  Bruno Haible  <bruno@clisp.org>
52609
52610         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
52611         context.
52612
52613 2007-10-21  Bruno Haible  <bruno@clisp.org>
52614
52615         * tests/test-wcwidth.c (main): Allow negative result for some control
52616         characters.
52617
52618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
52619         Needed on OSF/1 5.1.
52620
52621 2007-10-21  Bruno Haible  <bruno@clisp.org>
52622
52623         * tests/test-floorf1.c: Include isnanf.h.
52624         (main): Use isnanf() instead of isnan().
52625         * tests/test-ceilf1.c: Include isnanf.h.
52626         (main): Use isnanf() instead of isnan().
52627         * tests/test-truncf1.c: Include isnanf.h.
52628         (main): Use isnanf() instead of isnan().
52629         * tests/test-roundf1.c: Include isnanf.h.
52630         (main): Use isnanf() instead of isnan().
52631
52632 2007-10-21  Eric Blake  <ebb9@byu.net>
52633
52634         * users.txt: Update URL for m4.
52635
52636 2007-10-21  Bruno Haible  <bruno@clisp.org>
52637
52638         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
52639
52640 2007-10-21  Bruno Haible  <bruno@clisp.org>
52641
52642         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
52643         Git's management files if the CVS files are not present.
52644
52645 2007-10-20  Bruno Haible  <bruno@clisp.org>
52646
52647         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
52648         gcc-3.4.x.
52649
52650 2007-10-20  Ben Pfaff  <blp@gnu.org>
52651
52652         * lib/math.in.h: Declare round, roundf, roundl if we are providing
52653         implementations.
52654         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
52655         * lib/round.c: New file.
52656         * lib/roundf.c: New file.
52657         * lib/roundl.c: New file.
52658         * m4/round.m4: New file.
52659         * m4/roundf.m4: New file.
52660         * m4/roundl.m4: New file.
52661         * m4/check-libm-func-m4: New file.
52662         * modules/math: Replace round, roundf, roundl related @VARS@ in
52663         math.in.h.
52664         * modules/round: New file.
52665         * modules/round-tests: New file.
52666         * modules/roundf: New file.
52667         * modules/roundf-tests: New file.
52668         * modules/roundl: New file.
52669         * modules/roundl-tests: New file.
52670         * tests/test-round1.c: New file.
52671         * tests/test-round2.c: New file.
52672         * tests/test-roundf1.c: New file.
52673         * tests/test-roundf2.c: New file.
52674         * tests/test-roundl.c: New file.
52675         * doc/functions/round.texi: Mention round module.
52676         * doc/functions/roundf.texi: Mention roundf module.
52677         * doc/functions/roundl.texi: Mention roundl module.
52678         * MODULES.html.sh: Mention new modules.
52679         Thanks to Bruno Haible for suggestions.
52680
52681 2007-10-20  Jim Meyering  <meyering@redhat.com>
52682
52683         * lib/xprintf.c: Include <config.h> unconditionally.
52684
52685         Change xprintf's license to GPL.
52686         * modules/xprintf (License): s/LGPL/GPL/, since this module
52687         depends on modules (exit and exitfail) which are GPL.
52688         Suggestion from Bruno Haible.
52689
52690         xprintf fixes.
52691         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
52692         Use a clearer diagnostic.
52693         Patch from Bruno Haible.
52694
52695 2007-10-20  Bruno Haible  <bruno@clisp.org>
52696
52697         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
52698         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
52699         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52700
52701 2007-10-20  Bruno Haible  <bruno@clisp.org>
52702
52703         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
52704         precision in the comparison result > x - 1 or similar.
52705         * tests/test-ceilf2.c (correct_result_p): Likewise.
52706         * tests/test-truncf2.c (correct_result_p): Likewise.
52707         * tests/test-trunc2.c (correct_result_p): Likewise.
52708         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52709
52710 2007-10-20  Bruno Haible  <bruno@clisp.org>
52711
52712         * modules/ceil: New file.
52713         * m4/ceil.m4: New file.
52714         * doc/functions/ceil.texi: Mention the 'ceil' module.
52715
52716 2007-10-20  Bruno Haible  <bruno@clisp.org>
52717
52718         * modules/floor: New file.
52719         * m4/floor.m4: New file.
52720         * doc/functions/floor.texi: Mention the 'floor' module.
52721
52722 2007-10-20  Bruno Haible  <bruno@clisp.org>
52723
52724         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
52725         of %a.
52726         * modules/floorf-tests (Depends-on): Likewise.
52727         * modules/truncf-tests (Depends-on): Likewise.
52728         * modules/trunc-tests (Depends-on): Likewise.
52729         Reported by Ben Pfaff.
52730
52731 2007-10-19  Jim Meyering  <meyering@redhat.com>
52732
52733         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
52734         Don't bother testing specific errno values.  Just test ferror.
52735
52736         New module: xprintf
52737         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
52738
52739 2007-10-19  Bruno Haible  <bruno@clisp.org>
52740
52741         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
52742         syntax.
52743         * modules/javaexec (Makefile.am): Likewise.
52744         * modules/relocatable-prog (Makefile.am): Likewise.
52745         Suggested by Jim Meyering.
52746
52747 2007-10-18  Bruno Haible  <bruno@clisp.org>
52748
52749         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
52750         Reported by Jim Meyering.
52751
52752 2007-10-18  Eric Blake  <ebb9@byu.net>
52753
52754         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
52755
52756 2007-10-18  Bruno Haible  <bruno@clisp.org>
52757
52758         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
52759         the format string into writable memory. Needed in Fortify conditions.
52760
52761 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
52762             Bruno Haible  <bruno@clisp.org>
52763
52764         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
52765         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
52766         * modules/trim (Depends-on): Add mbchar.
52767         (configure.ac): Add gl_FUNC_MBRTOWC.
52768         (Makefile.am): Augment lib_SOURCES.
52769
52770 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52771
52772         Modify glob.c to use fstatat and dirfd, to simplify it.
52773         Suggested by Eric Blake.
52774         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
52775         Don't include <stdbool.h>; not used.
52776         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
52777         (link_exists_p): Simplify implementation, since we can now assume
52778         dirfd and fstatat.
52779         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
52780
52781 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52782
52783         * gnulib-tool (func_get_dependencies): Fix sed script to
52784         match only tests.
52785
52786 2007-10-17  Bruno Haible  <bruno@clisp.org>
52787
52788         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
52789         allow locale names without encoding suffix.
52790         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52791         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52792
52793 2007-10-16  Bruno Haible  <bruno@clisp.org>
52794
52795         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
52796         * lib/getgroups.c (getgroups): Likewise.
52797         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
52798
52799 2007-10-16  Bruno Haible  <bruno@clisp.org>
52800
52801         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
52802         * modules/malloc-posix (License): Likewise.
52803         * modules/realloc-posix (License): Likewise.
52804         * modules/calloc-posix (License): Likewise.
52805         * modules/intprops (License): Change from GPL to LGPL, with
52806         Paul Eggert's approval.
52807
52808 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52809
52810         Merge glibc changes into lib/glob.c.
52811
52812         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
52813         2007-10-15 04:59:03 UTC.  Here are the changes:
52814
52815         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
52816
52817         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
52818
52819         * lib/glob.c: Add some branch prediction throughout.
52820
52821         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
52822
52823         [BZ #5103]
52824         * lib/glob.c (glob): Recognize patterns starting \/.
52825
52826         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
52827
52828         [BZ #3996]
52829         * lib/glob.c (attribute_hidden): Define if not defined.
52830         (glob): Unescape dirname, filename or username when needed and not
52831         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
52832         is NULL.  Handle unescaped [ in pattern without closing ].
52833         Don't pass GLOB_CHECK down to recursive glob for directories.
52834         (__glob_pattern_type): New function.
52835         (__glob_pattern_p): Implement using __glob_pattern_type.
52836         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
52837         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
52838         Remove unreachable code.
52839
52840         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
52841
52842         * lib/glob.c (glob_in_dir): Add some comments and asserts to
52843         explain why there are no leaks.
52844
52845         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
52846
52847         [BZ #3253]
52848         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
52849         time, rather allocate increasingly bigger arrays of pointers, if
52850         possible with alloca, if too large with malloc.
52851
52852 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52853
52854         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
52855         Problem reported by H.Merijn Brand in
52856         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
52857         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
52858         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52859
52860 2007-10-15  Bruno Haible  <bruno@clisp.org>
52861
52862         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
52863         with explicit rpl_ prefix.
52864         * lib/fopen.c (fopen): Likewise.
52865         * lib/freopen.c (freopen): Likewise.
52866         * lib/iconv.c (iconv): Likewise.
52867         * lib/iconv_close.c (iconv_close): Likewise.
52868
52869 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52870
52871         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
52872
52873 2007-10-15  Bruno Haible  <bruno@clisp.org>
52874
52875         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
52876         <stddef.h> instead of <stdlib.h> since we only need NULL.
52877         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52878
52879 2007-10-15  Bruno Haible  <bruno@clisp.org>
52880
52881         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
52882         Replace paragraph talking about LIBOBJS.
52883         Reported by Colin Watson <cjwatson@debian.org>.
52884
52885 2007-10-15  Bruno Haible  <bruno@clisp.org>
52886
52887         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
52888         <stdlib.h> before using NULL.
52889
52890 2007-10-15  Simon Josefsson  <simon@josefsson.org>
52891
52892         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
52893         Reported by Albert Chin <china@thewrittenword.com>.
52894
52895 2007-10-14  Bruno Haible  <bruno@clisp.org>
52896
52897         * modules/iconv_open-utf-tests: New file.
52898         * tests/test-iconv-utf.c: New file.
52899
52900         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
52901         * modules/iconv_open-utf: New file.
52902         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
52903         (iconv, iconv_close): New declarations.
52904         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
52905         be defined.
52906         (iconv_open): Add special handling of conversion between UTF-8 and
52907         UTF-{16,32}{BE,LE}.
52908         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
52909         * lib/iconv_close.c: New file.
52910         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
52911         gl_FUNC_ICONV_OPEN.
52912         (gl_FUNC_ICONV_OPEN): Use it.
52913         (gl_FUNC_ICONV_OPEN_UTF): New macro.
52914         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
52915         and REPLACE_ICONV_UTF.
52916         * modules/iconv_open (Depends-on): Add c-strcase.
52917         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
52918         ICONV_CONST.
52919         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
52920
52921 2007-10-13  Albert Chin  <china@thewrittenword.com>
52922             Bruno Haible  <bruno@clisp.org>
52923
52924         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
52925         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
52926
52927 2007-10-13  Bruno Haible  <bruno@clisp.org>
52928
52929         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
52930         defined, use the ISO C99 inline semantics.
52931         * lib/argp.h (ARGP_EI): Likewise.
52932
52933 2007-10-13  Bruno Haible  <bruno@clisp.org>
52934
52935         Handle 'inline' change in gcc 4.3.0.
52936         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
52937         argp_fmtstream_write, argp_fmtstream_set_lmargin,
52938         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
52939         argp_fmtstream_point): Disable 'extern' declaration if the function
52940         definition is going to be provided inline.
52941         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
52942         semantics, not the ISO C99 inline semantics.
52943         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
52944         'extern' declaration if the function definition is going to be provided
52945         inline.
52946         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
52947         the GNU C inline semantics, not the ISO C99 inline semantics. With
52948         GCC 4.2, avoid a warning.
52949
52950 2007-10-13  Bruno Haible  <bruno@clisp.org>
52951
52952         * lib/freading.h (freading): Enable the use of __freading for
52953         glibc >= 2.7.
52954         * lib/freading.c (freading): Likewise.
52955
52956 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52957
52958         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
52959         "warning: C99 inline functions are not supported; using GNU89".
52960
52961 2007-10-12  Bruno Haible  <bruno@clisp.org>
52962
52963         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
52964         of 2.
52965         * tests/test-ceilf2.c: New file.
52966         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
52967
52968         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
52969         * modules/ceilf-tests: Update.
52970
52971 2007-10-12  Bruno Haible  <bruno@clisp.org>
52972
52973         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52974         of 2.
52975         * tests/test-floorf2.c: New file.
52976         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52977
52978         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52979         * modules/floorf-tests: Update.
52980
52981 2007-10-12  Bruno Haible  <bruno@clisp.org>
52982
52983         * tests/test-trunc2.c: New file.
52984         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52985
52986         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52987         * modules/trunc-tests: Update.
52988
52989 2007-10-12  Bruno Haible  <bruno@clisp.org>
52990
52991         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52992         of 2.
52993         * tests/test-truncf2.c: New file.
52994         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52995
52996         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52997         * modules/truncf-tests: Update.
52998
52999 2007-10-11  Eric Blake  <ebb9@byu.net>
53000
53001         Don't claim strerror is broken on Interix.
53002         * doc/functions/strerror.texi (strerror): Known broken systems are
53003         now Solaris 8, and not Interix.
53004         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
53005         Interix on cross-compile.
53006         Reported by Martin Koeppe in
53007         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
53008
53009 2007-10-11  Bruno Haible  <bruno@clisp.org>
53010
53011         * modules/i-ring-tests: New file.
53012         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
53013         instead of assert.
53014
53015 2007-10-11  Bruno Haible  <bruno@clisp.org>
53016
53017         * modules/filenamecat-tests: New file.
53018         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
53019         * lib/filenamecat.c: Remove test code.
53020
53021 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53022
53023         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
53024
53025         * lib/strerror.c: Include <string.h> always, to test interface,
53026         and to remove the need for the dummy.
53027         Include intprops.h to compute width instead of doing it ourselves
53028         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
53029         (strerror): Define it to return NULL if there's no system strerror.
53030         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
53031         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
53032         ancient pre-strerror Unix systems well any more.  Saying "unknown
53033         system error" is enough.
53034         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
53035         simpler strerror.c implementation.
53036         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
53037         Simplify the tests to reflect the simpler strerror implementation.
53038         * modules/strerror (Depends-on): Add intprops.
53039
53040 2007-10-09  Eric Blake  <ebb9@byu.net>
53041
53042         Silence test-fpending.
53043         * modules/fpending-tests (Files): Add wrapper script.
53044         * tests/test-fpending.sh: New file.
53045
53046 2007-10-09  Bruno Haible  <bruno@clisp.org>
53047
53048         * MODULES.html.sh (func_module): Don't create a hyperlink for
53049         function names like 'printf_frexp'.
53050         (Misc): Add crc, memxor.
53051         (Characteristics of floating types): New section.
53052         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
53053         isnanf-nolibm, signbit, trunc, truncf, truncl.
53054         (Enhancements for ISO C 99 functions): New subsection Input/output.
53055         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
53056         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
53057         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
53058         (Compatibility checks for POSIX:2001 functions): Add clock-time.
53059         (Enhancements for POSIX:2001 functions): Add chdir-long.
53060         (File system functions): Add areadlink, chdir-safer, read-file.
53061         Remove cycle-check.
53062         (File system as inode set): New section.
53063         (Date and time): Add gethrxtime.
53064         (Multithreading): Add openmp.
53065         (Internationalization functions): Add localename.
53066         (Unicode string functions): Add unistr/u*-mbsnlen.
53067         (Support for maintaining and releasing projects): Add git-version-gen.
53068         (Lone files): Remove directories.
53069
53070 2007-10-08  Ben Pfaff  <blp@gnu.org>
53071
53072         * lib/xmalloca.h: Fix typo in comment.
53073
53074 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53075
53076         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
53077         when avoiding problems with integer overflow.  Use a portable test
53078         instead.
53079
53080 2007-10-08  Simon Josefsson  <simon@josefsson.org>
53081
53082         * modules/dummy (License): Change to LGPLv2+.
53083         * modules/float (License): Likewise
53084         * modules/realloc (License): Likewise
53085         * modules/stdlib (License): Likewise
53086
53087 2007-10-07  Bruno Haible  <bruno@clisp.org>
53088
53089         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
53090         * floor.c (TWO_MANT_DIG): Likewise.
53091         * ceil.c (TWO_MANT_DIG): Likewise.
53092         Reported by Ben Pfaff.
53093
53094 2007-10-07  Bruno Haible  <bruno@clisp.org>
53095
53096         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
53097         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
53098         * lib/frexp.c (FUNC): Likewise.
53099         * lib/printf-frexp.h (printf_frexp): Likewise.
53100         * lib/printf-frexpl.h (printf_frexpl): Likewise.
53101         * lib/printf-frexp.c (FUNC): Likewise.
53102         Suggested by Jim Meyering.
53103
53104 2007-10-07  Jim Meyering  <meyering@redhat.com>
53105
53106         Make xnanosleep's integer overflow test more robust.
53107         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
53108         so that gcc-4.3.0 doesn't optimize away this test for overflow.
53109
53110 2007-10-07  Bruno Haible  <bruno@clisp.org>
53111
53112         * NEWS: Mention the license change.
53113
53114         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
53115         abbreviations in the modules files.
53116
53117         Change copyright notice from GPLv2+ to GPLv3+.
53118         * README: Change copyright notice.
53119         * MODULES.html.sh: Likewise.
53120         * build-aux/bootstrap.conf: Likewise.
53121         * build-aux/config.libpath: Likewise.
53122         * build-aux/csharpcomp.sh.in: Likewise.
53123         * build-aux/csharpexec.sh.in: Likewise.
53124         * build-aux/install-reloc: Likewise.
53125         * build-aux/javacomp.sh.in: Likewise.
53126         * build-aux/javaexec.sh.in: Likewise.
53127         * build-aux/ldd.sh.in: Likewise.
53128         * build-aux/reloc-ldflags: Likewise.
53129         * build-aux/relocatable.sh.in: Likewise.
53130         * build-aux/x-to-1.in: Likewise.
53131         * check-module: Likewise.
53132         * config/srclistvars.sh: Likewise.
53133         * gnulib-tool: Likewise.
53134         * lib/acl-internal.h: Likewise.
53135         * lib/acl.c: Likewise.
53136         * lib/acl.h: Likewise.
53137         * lib/acl_entries.c: Likewise.
53138         * lib/areadlink-with-size.c: Likewise.
53139         * lib/areadlink.c: Likewise.
53140         * lib/areadlink.h: Likewise.
53141         * lib/argmatch.c: Likewise.
53142         * lib/argmatch.h: Likewise.
53143         * lib/argp-ba.c: Likewise.
53144         * lib/argp-eexst.c: Likewise.
53145         * lib/argp-fmtstream.c: Likewise.
53146         * lib/argp-fmtstream.h: Likewise.
53147         * lib/argp-fs-xinl.c: Likewise.
53148         * lib/argp-help.c: Likewise.
53149         * lib/argp-namefrob.h: Likewise.
53150         * lib/argp-parse.c: Likewise.
53151         * lib/argp-pin.c: Likewise.
53152         * lib/argp-pv.c: Likewise.
53153         * lib/argp-pvh.c: Likewise.
53154         * lib/argp-xinl.c: Likewise.
53155         * lib/argp.h: Likewise.
53156         * lib/at-func.c: Likewise.
53157         * lib/atanl.c: Likewise.
53158         * lib/backupfile.c: Likewise.
53159         * lib/backupfile.h: Likewise.
53160         * lib/basename.c: Likewise.
53161         * lib/binary-io.h: Likewise.
53162         * lib/byteswap.in.h: Likewise.
53163         * lib/c-stack.c: Likewise.
53164         * lib/c-stack.h: Likewise.
53165         * lib/c-strcasestr.c: Likewise.
53166         * lib/c-strcasestr.h: Likewise.
53167         * lib/c-strstr.c: Likewise.
53168         * lib/c-strstr.h: Likewise.
53169         * lib/c-strtod.c: Likewise.
53170         * lib/calloc.c: Likewise.
53171         * lib/canon-host.c: Likewise.
53172         * lib/canon-host.h: Likewise.
53173         * lib/canonicalize-lgpl.c: Likewise.
53174         * lib/canonicalize.c: Likewise.
53175         * lib/canonicalize.h: Likewise.
53176         * lib/ceil.c: Likewise.
53177         * lib/ceilf.c: Likewise.
53178         * lib/ceill.c: Likewise.
53179         * lib/chdir-long.c: Likewise.
53180         * lib/chdir-long.h: Likewise.
53181         * lib/chdir-safer.c: Likewise.
53182         * lib/chdir-safer.h: Likewise.
53183         * lib/chown.c: Likewise.
53184         * lib/classpath.c: Likewise.
53185         * lib/classpath.h: Likewise.
53186         * lib/clean-temp.c: Likewise.
53187         * lib/clean-temp.h: Likewise.
53188         * lib/cloexec.c: Likewise.
53189         * lib/close-stream.c: Likewise.
53190         * lib/closein.c: Likewise.
53191         * lib/closein.h: Likewise.
53192         * lib/closeout.c: Likewise.
53193         * lib/closeout.h: Likewise.
53194         * lib/concat-filename.c: Likewise.
53195         * lib/copy-file.c: Likewise.
53196         * lib/copy-file.h: Likewise.
53197         * lib/count-one-bits.h: Likewise.
53198         * lib/crc.c: Likewise.
53199         * lib/crc.h: Likewise.
53200         * lib/creat-safer.c: Likewise.
53201         * lib/csharpcomp.c: Likewise.
53202         * lib/csharpcomp.h: Likewise.
53203         * lib/csharpexec.c: Likewise.
53204         * lib/csharpexec.h: Likewise.
53205         * lib/cycle-check.c: Likewise.
53206         * lib/cycle-check.h: Likewise.
53207         * lib/diacrit.c: Likewise.
53208         * lib/diacrit.h: Likewise.
53209         * lib/diffseq.h: Likewise.
53210         * lib/dirchownmod.c: Likewise.
53211         * lib/dirent.in.h: Likewise.
53212         * lib/dirfd.c: Likewise.
53213         * lib/dirfd.h: Likewise.
53214         * lib/dirname.c: Likewise.
53215         * lib/dirname.h: Likewise.
53216         * lib/dummy.c: Likewise.
53217         * lib/dup-safer.c: Likewise.
53218         * lib/dup2.c: Likewise.
53219         * lib/eealloc.h: Likewise.
53220         * lib/error.c: Likewise.
53221         * lib/error.h: Likewise.
53222         * lib/euidaccess.c: Likewise.
53223         * lib/exclude.c: Likewise.
53224         * lib/exclude.h: Likewise.
53225         * lib/execute.c: Likewise.
53226         * lib/execute.h: Likewise.
53227         * lib/exitfail.c: Likewise.
53228         * lib/exitfail.h: Likewise.
53229         * lib/expl.c: Likewise.
53230         * lib/fatal-signal.c: Likewise.
53231         * lib/fatal-signal.h: Likewise.
53232         * lib/fbufmode.c: Likewise.
53233         * lib/fbufmode.h: Likewise.
53234         * lib/fchdir.c: Likewise.
53235         * lib/fchmodat.c: Likewise.
53236         * lib/fchownat.c: Likewise.
53237         * lib/fcntl--.h: Likewise.
53238         * lib/fcntl-safer.h: Likewise.
53239         * lib/fcntl.in.h: Likewise.
53240         * lib/fd-safer.c: Likewise.
53241         * lib/fflush.c: Likewise.
53242         * lib/file-has-acl.c: Likewise.
53243         * lib/file-set.c: Likewise.
53244         * lib/file-type.c: Likewise.
53245         * lib/file-type.h: Likewise.
53246         * lib/fileblocks.c: Likewise.
53247         * lib/filemode.c: Likewise.
53248         * lib/filemode.h: Likewise.
53249         * lib/filename.h: Likewise.
53250         * lib/filenamecat.c: Likewise.
53251         * lib/filenamecat.h: Likewise.
53252         * lib/findprog.c: Likewise.
53253         * lib/findprog.h: Likewise.
53254         * lib/float.in.h: Likewise.
53255         * lib/floor.c: Likewise.
53256         * lib/floorf.c: Likewise.
53257         * lib/floorl.c: Likewise.
53258         * lib/fopen-safer.c: Likewise.
53259         * lib/fopen.c: Likewise.
53260         * lib/fpending.c: Likewise.
53261         * lib/fpending.h: Likewise.
53262         * lib/fprintf.c: Likewise.
53263         * lib/fprintftime.h: Likewise.
53264         * lib/fpucw.h: Likewise.
53265         * lib/fpurge.c: Likewise.
53266         * lib/fpurge.h: Likewise.
53267         * lib/freadable.c: Likewise.
53268         * lib/freadable.h: Likewise.
53269         * lib/freadahead.c: Likewise.
53270         * lib/freadahead.h: Likewise.
53271         * lib/freading.c: Likewise.
53272         * lib/freading.h: Likewise.
53273         * lib/free.c: Likewise.
53274         * lib/freopen.c: Likewise.
53275         * lib/frexp.c: Likewise.
53276         * lib/frexpl.c: Likewise.
53277         * lib/fseek.c: Likewise.
53278         * lib/fseterr.c: Likewise.
53279         * lib/fseterr.h: Likewise.
53280         * lib/fstatat.c: Likewise.
53281         * lib/fstrcmp.c: Likewise.
53282         * lib/fstrcmp.h: Likewise.
53283         * lib/fsusage.c: Likewise.
53284         * lib/fsusage.h: Likewise.
53285         * lib/ftell.c: Likewise.
53286         * lib/ftello.c: Likewise.
53287         * lib/fts-cycle.c: Likewise.
53288         * lib/fts.c: Likewise.
53289         * lib/fts_.h: Likewise.
53290         * lib/full-read.c: Likewise.
53291         * lib/full-read.h: Likewise.
53292         * lib/full-write.c: Likewise.
53293         * lib/full-write.h: Likewise.
53294         * lib/fwritable.c: Likewise.
53295         * lib/fwritable.h: Likewise.
53296         * lib/fwriteerror.c: Likewise.
53297         * lib/fwriteerror.h: Likewise.
53298         * lib/fwriting.c: Likewise.
53299         * lib/fwriting.h: Likewise.
53300         * lib/gcd.c: Likewise.
53301         * lib/gcd.h: Likewise.
53302         * lib/getcwd.c: Likewise.
53303         * lib/getdate.h: Likewise.
53304         * lib/getdate.y: Likewise.
53305         * lib/getdomainname.c: Likewise.
53306         * lib/getdomainname.h: Likewise.
53307         * lib/getgroups.c: Likewise.
53308         * lib/gethostname.c: Likewise.
53309         * lib/gethrxtime.c: Likewise.
53310         * lib/gethrxtime.h: Likewise.
53311         * lib/getloadavg.c: Likewise.
53312         * lib/getndelim2.c: Likewise.
53313         * lib/getndelim2.h: Likewise.
53314         * lib/getnline.c: Likewise.
53315         * lib/getnline.h: Likewise.
53316         * lib/getopt.c: Likewise.
53317         * lib/getopt.in.h: Likewise.
53318         * lib/getopt1.c: Likewise.
53319         * lib/getopt_int.h: Likewise.
53320         * lib/getpagesize.h: Likewise.
53321         * lib/getsubopt.c: Likewise.
53322         * lib/gettime.c: Likewise.
53323         * lib/getugroups.c: Likewise.
53324         * lib/getugroups.h: Likewise.
53325         * lib/getusershell.c: Likewise.
53326         * lib/gl_anyavltree_list1.h: Likewise.
53327         * lib/gl_anyavltree_list2.h: Likewise.
53328         * lib/gl_anyhash_list1.h: Likewise.
53329         * lib/gl_anyhash_list2.h: Likewise.
53330         * lib/gl_anylinked_list1.h: Likewise.
53331         * lib/gl_anylinked_list2.h: Likewise.
53332         * lib/gl_anyrbtree_list1.h: Likewise.
53333         * lib/gl_anyrbtree_list2.h: Likewise.
53334         * lib/gl_anytree_list1.h: Likewise.
53335         * lib/gl_anytree_list2.h: Likewise.
53336         * lib/gl_anytree_oset.h: Likewise.
53337         * lib/gl_anytreehash_list1.h: Likewise.
53338         * lib/gl_anytreehash_list2.h: Likewise.
53339         * lib/gl_array_list.c: Likewise.
53340         * lib/gl_array_list.h: Likewise.
53341         * lib/gl_array_oset.c: Likewise.
53342         * lib/gl_array_oset.h: Likewise.
53343         * lib/gl_avltree_list.c: Likewise.
53344         * lib/gl_avltree_list.h: Likewise.
53345         * lib/gl_avltree_oset.c: Likewise.
53346         * lib/gl_avltree_oset.h: Likewise.
53347         * lib/gl_avltreehash_list.c: Likewise.
53348         * lib/gl_avltreehash_list.h: Likewise.
53349         * lib/gl_carray_list.c: Likewise.
53350         * lib/gl_carray_list.h: Likewise.
53351         * lib/gl_linked_list.c: Likewise.
53352         * lib/gl_linked_list.h: Likewise.
53353         * lib/gl_linkedhash_list.c: Likewise.
53354         * lib/gl_linkedhash_list.h: Likewise.
53355         * lib/gl_list.c: Likewise.
53356         * lib/gl_list.h: Likewise.
53357         * lib/gl_oset.c: Likewise.
53358         * lib/gl_oset.h: Likewise.
53359         * lib/gl_rbtree_list.c: Likewise.
53360         * lib/gl_rbtree_list.h: Likewise.
53361         * lib/gl_rbtree_oset.c: Likewise.
53362         * lib/gl_rbtree_oset.h: Likewise.
53363         * lib/gl_rbtreehash_list.c: Likewise.
53364         * lib/gl_rbtreehash_list.h: Likewise.
53365         * lib/gl_sublist.c: Likewise.
53366         * lib/gl_sublist.h: Likewise.
53367         * lib/group-member.c: Likewise.
53368         * lib/group-member.h: Likewise.
53369         * lib/hard-locale.c: Likewise.
53370         * lib/hard-locale.h: Likewise.
53371         * lib/hash-pjw.c: Likewise.
53372         * lib/hash-pjw.h: Likewise.
53373         * lib/hash-triple.c: Likewise.
53374         * lib/hash.c: Likewise.
53375         * lib/hash.h: Likewise.
53376         * lib/human.c: Likewise.
53377         * lib/human.h: Likewise.
53378         * lib/i-ring.c: Likewise.
53379         * lib/i-ring.h: Likewise.
53380         * lib/idcache.c: Likewise.
53381         * lib/imaxabs.c: Likewise.
53382         * lib/imaxdiv.c: Likewise.
53383         * lib/inet_pton.c: Likewise.
53384         * lib/inet_pton.h: Likewise.
53385         * lib/intprops.h: Likewise.
53386         * lib/inttostr.c: Likewise.
53387         * lib/inttostr.h: Likewise.
53388         * lib/inttypes.in.h: Likewise.
53389         * lib/isapipe.c: Likewise.
53390         * lib/isdir.c: Likewise.
53391         * lib/isnan.c: Likewise.
53392         * lib/isnan.h: Likewise.
53393         * lib/isnanf.c: Likewise.
53394         * lib/isnanf.h: Likewise.
53395         * lib/isnanl-nolibm.h: Likewise.
53396         * lib/isnanl.c: Likewise.
53397         * lib/isnanl.h: Likewise.
53398         * lib/javacomp.c: Likewise.
53399         * lib/javacomp.h: Likewise.
53400         * lib/javaexec.c: Likewise.
53401         * lib/javaexec.h: Likewise.
53402         * lib/javaversion.c: Likewise.
53403         * lib/javaversion.h: Likewise.
53404         * lib/javaversion.java: Likewise.
53405         * lib/lbrkprop.h: Likewise.
53406         * lib/lchmod.h: Likewise.
53407         * lib/lchown.c: Likewise.
53408         * lib/ldexpl.c: Likewise.
53409         * lib/linebreak.c: Likewise.
53410         * lib/linebreak.h: Likewise.
53411         * lib/linebuffer.c: Likewise.
53412         * lib/linebuffer.h: Likewise.
53413         * lib/locale.in.h: Likewise.
53414         * lib/logl.c: Likewise.
53415         * lib/long-options.c: Likewise.
53416         * lib/long-options.h: Likewise.
53417         * lib/lstat.c: Likewise.
53418         * lib/lstat.h: Likewise.
53419         * lib/math.in.h: Likewise.
53420         * lib/mbchar.c: Likewise.
53421         * lib/mbchar.h: Likewise.
53422         * lib/mbfile.h: Likewise.
53423         * lib/mbiter.h: Likewise.
53424         * lib/mbscasecmp.c: Likewise.
53425         * lib/mbscasestr.c: Likewise.
53426         * lib/mbschr.c: Likewise.
53427         * lib/mbscspn.c: Likewise.
53428         * lib/mbslen.c: Likewise.
53429         * lib/mbsncasecmp.c: Likewise.
53430         * lib/mbsnlen.c: Likewise.
53431         * lib/mbspbrk.c: Likewise.
53432         * lib/mbspcasecmp.c: Likewise.
53433         * lib/mbsrchr.c: Likewise.
53434         * lib/mbssep.c: Likewise.
53435         * lib/mbsspn.c: Likewise.
53436         * lib/mbsstr.c: Likewise.
53437         * lib/mbstok_r.c: Likewise.
53438         * lib/mbswidth.c: Likewise.
53439         * lib/mbswidth.h: Likewise.
53440         * lib/mbuiter.h: Likewise.
53441         * lib/memcasecmp.c: Likewise.
53442         * lib/memcasecmp.h: Likewise.
53443         * lib/memchr.c: Likewise.
53444         * lib/memcmp.c: Likewise.
53445         * lib/memcoll.c: Likewise.
53446         * lib/memcoll.h: Likewise.
53447         * lib/memcpy.c: Likewise.
53448         * lib/memrchr.c: Likewise.
53449         * lib/mkancesdirs.c: Likewise.
53450         * lib/mkdir-p.c: Likewise.
53451         * lib/mkdir-p.h: Likewise.
53452         * lib/mkdir.c: Likewise.
53453         * lib/mkdirat.c: Likewise.
53454         * lib/mkdtemp.c: Likewise.
53455         * lib/mkstemp-safer.c: Likewise.
53456         * lib/mkstemp.c: Likewise.
53457         * lib/modechange.c: Likewise.
53458         * lib/modechange.h: Likewise.
53459         * lib/mountlist.c: Likewise.
53460         * lib/mountlist.h: Likewise.
53461         * lib/mpsort.c: Likewise.
53462         * lib/nanosleep.c: Likewise.
53463         * lib/obstack.c: Likewise.
53464         * lib/obstack.h: Likewise.
53465         * lib/open-safer.c: Likewise.
53466         * lib/open.c: Likewise.
53467         * lib/openat-die.c: Likewise.
53468         * lib/openat-priv.h: Likewise.
53469         * lib/openat-proc.c: Likewise.
53470         * lib/openat.c: Likewise.
53471         * lib/openat.h: Likewise.
53472         * lib/pagealign_alloc.c: Likewise.
53473         * lib/pagealign_alloc.h: Likewise.
53474         * lib/physmem.c: Likewise.
53475         * lib/physmem.h: Likewise.
53476         * lib/pipe-safer.c: Likewise.
53477         * lib/pipe.c: Likewise.
53478         * lib/pipe.h: Likewise.
53479         * lib/posixtm.c: Likewise.
53480         * lib/posixtm.h: Likewise.
53481         * lib/posixver.c: Likewise.
53482         * lib/printf-frexp.c: Likewise.
53483         * lib/printf-frexp.h: Likewise.
53484         * lib/printf-frexpl.c: Likewise.
53485         * lib/printf-frexpl.h: Likewise.
53486         * lib/printf.c: Likewise.
53487         * lib/progname.c: Likewise.
53488         * lib/progname.h: Likewise.
53489         * lib/progreloc.c: Likewise.
53490         * lib/putenv.c: Likewise.
53491         * lib/quote.c: Likewise.
53492         * lib/quote.h: Likewise.
53493         * lib/quotearg.c: Likewise.
53494         * lib/quotearg.h: Likewise.
53495         * lib/raise.c: Likewise.
53496         * lib/readline.c: Likewise.
53497         * lib/readline.h: Likewise.
53498         * lib/readlink.c: Likewise.
53499         * lib/readtokens.c: Likewise.
53500         * lib/readtokens.h: Likewise.
53501         * lib/readtokens0.c: Likewise.
53502         * lib/readtokens0.h: Likewise.
53503         * lib/readutmp.c: Likewise.
53504         * lib/readutmp.h: Likewise.
53505         * lib/realloc.c: Likewise.
53506         * lib/relocwrapper.c: Likewise.
53507         * lib/rename-dest-slash.c: Likewise.
53508         * lib/rename.c: Likewise.
53509         * lib/rmdir.c: Likewise.
53510         * lib/rpmatch.c: Likewise.
53511         * lib/safe-read.c: Likewise.
53512         * lib/safe-read.h: Likewise.
53513         * lib/safe-write.c: Likewise.
53514         * lib/safe-write.h: Likewise.
53515         * lib/same-inode.h: Likewise.
53516         * lib/same.c: Likewise.
53517         * lib/same.h: Likewise.
53518         * lib/save-cwd.c: Likewise.
53519         * lib/save-cwd.h: Likewise.
53520         * lib/savedir.c: Likewise.
53521         * lib/savedir.h: Likewise.
53522         * lib/savewd.c: Likewise.
53523         * lib/savewd.h: Likewise.
53524         * lib/search.in.h: Likewise.
53525         * lib/setenv.c: Likewise.
53526         * lib/setenv.h: Likewise.
53527         * lib/settime.c: Likewise.
53528         * lib/sh-quote.c: Likewise.
53529         * lib/sh-quote.h: Likewise.
53530         * lib/sig2str.c: Likewise.
53531         * lib/sig2str.h: Likewise.
53532         * lib/signal.in.h: Likewise.
53533         * lib/signbitd.c: Likewise.
53534         * lib/signbitf.c: Likewise.
53535         * lib/signbitl.c: Likewise.
53536         * lib/sigprocmask.c: Likewise.
53537         * lib/sincosl.c: Likewise.
53538         * lib/sleep.c: Likewise.
53539         * lib/sprintf.c: Likewise.
53540         * lib/sqrtl.c: Likewise.
53541         * lib/stat-time.h: Likewise.
53542         * lib/stdio--.h: Likewise.
53543         * lib/stdio-safer.h: Likewise.
53544         * lib/stdlib--.h: Likewise.
53545         * lib/stdlib-safer.h: Likewise.
53546         * lib/stdlib.in.h: Likewise.
53547         * lib/stpcpy.c: Likewise.
53548         * lib/stpncpy.c: Likewise.
53549         * lib/strchrnul.c: Likewise.
53550         * lib/strcspn.c: Likewise.
53551         * lib/strerror.c: Likewise.
53552         * lib/strftime.c: Likewise.
53553         * lib/strftime.h: Likewise.
53554         * lib/striconveh.c: Likewise.
53555         * lib/striconveh.h: Likewise.
53556         * lib/striconveha.c: Likewise.
53557         * lib/striconveha.h: Likewise.
53558         * lib/stripslash.c: Likewise.
53559         * lib/strnlen1.c: Likewise.
53560         * lib/strnlen1.h: Likewise.
53561         * lib/strtod.c: Likewise.
53562         * lib/strtoimax.c: Likewise.
53563         * lib/strtok_r.c: Likewise.
53564         * lib/strtol.c: Likewise.
53565         * lib/strtoll.c: Likewise.
53566         * lib/strtoul.c: Likewise.
53567         * lib/strtoull.c: Likewise.
53568         * lib/sysexits.in.h: Likewise.
53569         * lib/tempname.c: Likewise.
53570         * lib/tempname.h: Likewise.
53571         * lib/timespec.h: Likewise.
53572         * lib/tls.c: Likewise.
53573         * lib/tls.h: Likewise.
53574         * lib/tmpdir.c: Likewise.
53575         * lib/tmpdir.h: Likewise.
53576         * lib/tmpfile-safer.c: Likewise.
53577         * lib/tmpfile.c: Likewise.
53578         * lib/trigl.c: Likewise.
53579         * lib/trigl.h: Likewise.
53580         * lib/trim.c: Likewise.
53581         * lib/trim.h: Likewise.
53582         * lib/trunc.c: Likewise.
53583         * lib/truncf.c: Likewise.
53584         * lib/truncl.c: Likewise.
53585         * lib/tsearch.c: Likewise.
53586         * lib/unicodeio.c: Likewise.
53587         * lib/unicodeio.h: Likewise.
53588         * lib/unistd--.h: Likewise.
53589         * lib/unistd-safer.h: Likewise.
53590         * lib/unistdio/ulc-fprintf.c: Likewise.
53591         * lib/unistdio/ulc-vfprintf.c: Likewise.
53592         * lib/unlinkdir.c: Likewise.
53593         * lib/unlinkdir.h: Likewise.
53594         * lib/unlocked-io.h: Likewise.
53595         * lib/unsetenv.c: Likewise.
53596         * lib/userspec.c: Likewise.
53597         * lib/utime.c: Likewise.
53598         * lib/utimecmp.c: Likewise.
53599         * lib/utimecmp.h: Likewise.
53600         * lib/utimens.c: Likewise.
53601         * lib/verify.h: Likewise.
53602         * lib/verror.c: Likewise.
53603         * lib/verror.h: Likewise.
53604         * lib/version-etc-fsf.c: Likewise.
53605         * lib/version-etc.c: Likewise.
53606         * lib/version-etc.h: Likewise.
53607         * lib/vfprintf.c: Likewise.
53608         * lib/vprintf.c: Likewise.
53609         * lib/vsprintf.c: Likewise.
53610         * lib/w32spawn.h: Likewise.
53611         * lib/wait-process.c: Likewise.
53612         * lib/wait-process.h: Likewise.
53613         * lib/wcwidth.c: Likewise.
53614         * lib/write-any-file.c: Likewise.
53615         * lib/xalloc-die.c: Likewise.
53616         * lib/xalloc.h: Likewise.
53617         * lib/xasprintf.c: Likewise.
53618         * lib/xgetcwd.c: Likewise.
53619         * lib/xgetcwd.h: Likewise.
53620         * lib/xgetdomainname.c: Likewise.
53621         * lib/xgetdomainname.h: Likewise.
53622         * lib/xgethostname.c: Likewise.
53623         * lib/xmalloc.c: Likewise.
53624         * lib/xmalloca.c: Likewise.
53625         * lib/xmalloca.h: Likewise.
53626         * lib/xmemcoll.c: Likewise.
53627         * lib/xnanosleep.c: Likewise.
53628         * lib/xreadlink.c: Likewise.
53629         * lib/xreadlink.h: Likewise.
53630         * lib/xsetenv.c: Likewise.
53631         * lib/xsetenv.h: Likewise.
53632         * lib/xstriconv.c: Likewise.
53633         * lib/xstriconv.h: Likewise.
53634         * lib/xstrndup.c: Likewise.
53635         * lib/xstrndup.h: Likewise.
53636         * lib/xstrtod.c: Likewise.
53637         * lib/xstrtod.h: Likewise.
53638         * lib/xstrtol-error.c: Likewise.
53639         * lib/xstrtol.c: Likewise.
53640         * lib/xstrtol.h: Likewise.
53641         * lib/xtime.h: Likewise.
53642         * lib/xvasprintf.c: Likewise.
53643         * lib/xvasprintf.h: Likewise.
53644         * lib/yesno.c: Likewise.
53645         * lib/yesno.h: Likewise.
53646         * posix-modules: Likewise.
53647         * tests/test-alloca-opt.c: Likewise.
53648         * tests/test-arcfour.c: Likewise.
53649         * tests/test-arctwo.c: Likewise.
53650         * tests/test-argmatch.c: Likewise.
53651         * tests/test-argp-2.sh: Likewise.
53652         * tests/test-argp.c: Likewise.
53653         * tests/test-arpa_inet.c: Likewise.
53654         * tests/test-array_list.c: Likewise.
53655         * tests/test-array_oset.c: Likewise.
53656         * tests/test-atexit.c: Likewise.
53657         * tests/test-avltree_list.c: Likewise.
53658         * tests/test-avltree_oset.c: Likewise.
53659         * tests/test-avltreehash_list.c: Likewise.
53660         * tests/test-base64.c: Likewise.
53661         * tests/test-binary-io.c: Likewise.
53662         * tests/test-byteswap.c: Likewise.
53663         * tests/test-c-ctype.c: Likewise.
53664         * tests/test-c-strcasecmp.c: Likewise.
53665         * tests/test-c-strcasestr.c: Likewise.
53666         * tests/test-c-strncasecmp.c: Likewise.
53667         * tests/test-c-strstr.c: Likewise.
53668         * tests/test-canonicalize-lgpl.c: Likewise.
53669         * tests/test-canonicalize.c: Likewise.
53670         * tests/test-carray_list.c: Likewise.
53671         * tests/test-ceilf.c: Likewise.
53672         * tests/test-ceill.c: Likewise.
53673         * tests/test-count-one-bits.c: Likewise.
53674         * tests/test-crc.c: Likewise.
53675         * tests/test-dirname.c: Likewise.
53676         * tests/test-fbufmode.c: Likewise.
53677         * tests/test-fcntl.c: Likewise.
53678         * tests/test-fflush.c: Likewise.
53679         * tests/test-floorf.c: Likewise.
53680         * tests/test-floorl.c: Likewise.
53681         * tests/test-fopen.c: Likewise.
53682         * tests/test-fprintf-posix.c: Likewise.
53683         * tests/test-fprintf-posix.h: Likewise.
53684         * tests/test-fpurge.c: Likewise.
53685         * tests/test-freadable.c: Likewise.
53686         * tests/test-freadahead.c: Likewise.
53687         * tests/test-freading.c: Likewise.
53688         * tests/test-freopen.c: Likewise.
53689         * tests/test-frexp.c: Likewise.
53690         * tests/test-frexpl.c: Likewise.
53691         * tests/test-fseek.c: Likewise.
53692         * tests/test-fseeko.c: Likewise.
53693         * tests/test-fseterr.c: Likewise.
53694         * tests/test-fstrcmp.c: Likewise.
53695         * tests/test-ftell.c: Likewise.
53696         * tests/test-ftello.c: Likewise.
53697         * tests/test-fwritable.c: Likewise.
53698         * tests/test-fwriting.c: Likewise.
53699         * tests/test-getaddrinfo.c: Likewise.
53700         * tests/test-getpass.c: Likewise.
53701         * tests/test-gettimeofday.c: Likewise.
53702         * tests/test-hmac-md5.c: Likewise.
53703         * tests/test-hmac-sha1.c: Likewise.
53704         * tests/test-iconv.c: Likewise.
53705         * tests/test-iconvme.c: Likewise.
53706         * tests/test-inttypes.c: Likewise.
53707         * tests/test-isnan.c: Likewise.
53708         * tests/test-isnanf.c: Likewise.
53709         * tests/test-isnanl-nolibm.c: Likewise.
53710         * tests/test-isnanl.c: Likewise.
53711         * tests/test-isnanl.h: Likewise.
53712         * tests/test-ldexpl.c: Likewise.
53713         * tests/test-linked_list.c: Likewise.
53714         * tests/test-linkedhash_list.c: Likewise.
53715         * tests/test-locale.c: Likewise.
53716         * tests/test-localename.c: Likewise.
53717         * tests/test-lock.c: Likewise.
53718         * tests/test-lseek.c: Likewise.
53719         * tests/test-malloca.c: Likewise.
53720         * tests/test-math.c: Likewise.
53721         * tests/test-mbscasecmp.c: Likewise.
53722         * tests/test-mbscasestr1.c: Likewise.
53723         * tests/test-mbscasestr2.c: Likewise.
53724         * tests/test-mbscasestr3.c: Likewise.
53725         * tests/test-mbscasestr4.c: Likewise.
53726         * tests/test-mbschr.c: Likewise.
53727         * tests/test-mbscspn.c: Likewise.
53728         * tests/test-mbsncasecmp.c: Likewise.
53729         * tests/test-mbspbrk.c: Likewise.
53730         * tests/test-mbspcasecmp.c: Likewise.
53731         * tests/test-mbsrchr.c: Likewise.
53732         * tests/test-mbsspn.c: Likewise.
53733         * tests/test-mbsstr1.c: Likewise.
53734         * tests/test-mbsstr2.c: Likewise.
53735         * tests/test-mbsstr3.c: Likewise.
53736         * tests/test-md5.c: Likewise.
53737         * tests/test-memmem.c: Likewise.
53738         * tests/test-netinet_in.c: Likewise.
53739         * tests/test-open.c: Likewise.
53740         * tests/test-printf-frexp.c: Likewise.
53741         * tests/test-printf-frexpl.c: Likewise.
53742         * tests/test-printf-posix.c: Likewise.
53743         * tests/test-printf-posix.h: Likewise.
53744         * tests/test-rbtree_list.c: Likewise.
53745         * tests/test-rbtree_oset.c: Likewise.
53746         * tests/test-rbtreehash_list.c: Likewise.
53747         * tests/test-read-file.c: Likewise.
53748         * tests/test-rijndael.c: Likewise.
53749         * tests/test-search.c: Likewise.
53750         * tests/test-signbit.c: Likewise.
53751         * tests/test-sleep.c: Likewise.
53752         * tests/test-snprintf-posix.c: Likewise.
53753         * tests/test-snprintf-posix.h: Likewise.
53754         * tests/test-snprintf.c: Likewise.
53755         * tests/test-sprintf-posix.c: Likewise.
53756         * tests/test-sprintf-posix.h: Likewise.
53757         * tests/test-stat-time.c: Likewise.
53758         * tests/test-stdbool.c: Likewise.
53759         * tests/test-stdint.c: Likewise.
53760         * tests/test-stdio.c: Likewise.
53761         * tests/test-stdlib.c: Likewise.
53762         * tests/test-stpncpy.c: Likewise.
53763         * tests/test-strcasestr.c: Likewise.
53764         * tests/test-striconv.c: Likewise.
53765         * tests/test-striconveh.c: Likewise.
53766         * tests/test-striconveha.c: Likewise.
53767         * tests/test-string.c: Likewise.
53768         * tests/test-sys_select.c: Likewise.
53769         * tests/test-sys_socket.c: Likewise.
53770         * tests/test-sys_stat.c: Likewise.
53771         * tests/test-sys_time.c: Likewise.
53772         * tests/test-sysexits.c: Likewise.
53773         * tests/test-time.c: Likewise.
53774         * tests/test-tls.c: Likewise.
53775         * tests/test-trunc.c: Likewise.
53776         * tests/test-truncf.c: Likewise.
53777         * tests/test-truncl.c: Likewise.
53778         * tests/test-unistd.c: Likewise.
53779         * tests/test-vasnprintf-posix.c: Likewise.
53780         * tests/test-vasnprintf-posix2.c: Likewise.
53781         * tests/test-vasnprintf.c: Likewise.
53782         * tests/test-vasprintf-posix.c: Likewise.
53783         * tests/test-vasprintf.c: Likewise.
53784         * tests/test-verify.c: Likewise.
53785         * tests/test-vfprintf-posix.c: Likewise.
53786         * tests/test-vprintf-posix.c: Likewise.
53787         * tests/test-vsnprintf-posix.c: Likewise.
53788         * tests/test-vsnprintf.c: Likewise.
53789         * tests/test-vsprintf-posix.c: Likewise.
53790         * tests/test-wchar.c: Likewise.
53791         * tests/test-wctype.c: Likewise.
53792         * tests/test-wcwidth.c: Likewise.
53793         * tests/test-xstrtol.c: Likewise.
53794         * tests/test-xvasprintf.c: Likewise.
53795         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
53796         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
53797         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53798         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53799         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53800         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
53801         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53802         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53803         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53804         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
53805         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53806         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53807         * tests/uniname/test-uninames.c: Likewise.
53808         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
53809         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
53810         * tests/unistdio/test-u16-printf1.h: Likewise.
53811         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
53812         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
53813         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
53814         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
53815         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
53816         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
53817         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
53818         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
53819         * tests/unistdio/test-u32-printf1.h: Likewise.
53820         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
53821         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
53822         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
53823         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
53824         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
53825         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
53826         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
53827         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
53828         * tests/unistdio/test-u8-printf1.h: Likewise.
53829         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
53830         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
53831         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
53832         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
53833         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
53834         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
53835         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
53836         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
53837         * tests/unistdio/test-ulc-printf1.h: Likewise.
53838         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
53839         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
53840         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
53841         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
53842         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
53843         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
53844         * tests/uniwidth/test-u16-strwidth.c: Likewise.
53845         * tests/uniwidth/test-u16-width.c: Likewise.
53846         * tests/uniwidth/test-u32-strwidth.c: Likewise.
53847         * tests/uniwidth/test-u32-width.c: Likewise.
53848         * tests/uniwidth/test-u8-strwidth.c: Likewise.
53849         * tests/uniwidth/test-u8-width.c: Likewise.
53850         * tests/uniwidth/test-uc_width.c: Likewise.
53851         * config/srclist-update: Likewise.
53852         (fixlicense): Update to GPLv3+.
53853
53854         Change copyright notice from LGPLv2.1+ to LGPLv3+.
53855         * tests/test-tsearch.c: Change copyright notice.
53856
53857         Change copyright notice from LGPLv2.0+ to LGPLv3+.
53858         * lib/c-strcaseeq.h: Change copyright notice.
53859         * lib/streq.h: Likewise.
53860         * lib/uniconv.h: Likewise.
53861         * lib/uniconv/u-conv-from-enc.h: Likewise.
53862         * lib/uniconv/u-conv-to-enc.h: Likewise.
53863         * lib/uniconv/u-strconv-from-enc.h: Likewise.
53864         * lib/uniconv/u-strconv-to-enc.h: Likewise.
53865         * lib/uniconv/u16-conv-from-enc.c: Likewise.
53866         * lib/uniconv/u16-conv-to-enc.c: Likewise.
53867         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
53868         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
53869         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
53870         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
53871         * lib/uniconv/u32-conv-from-enc.c: Likewise.
53872         * lib/uniconv/u32-conv-to-enc.c: Likewise.
53873         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
53874         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
53875         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
53876         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
53877         * lib/uniconv/u8-conv-from-enc.c: Likewise.
53878         * lib/uniconv/u8-conv-to-enc.c: Likewise.
53879         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
53880         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
53881         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
53882         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
53883         * lib/uniname.h: Likewise.
53884         * lib/uniname/uniname.c: Likewise.
53885         * lib/unistdio.h: Likewise.
53886         * lib/unistdio/u-asnprintf.h: Likewise.
53887         * lib/unistdio/u-asprintf.h: Likewise.
53888         * lib/unistdio/u-printf-args.c: Likewise.
53889         * lib/unistdio/u-printf-args.h: Likewise.
53890         * lib/unistdio/u-printf-parse.h: Likewise.
53891         * lib/unistdio/u-snprintf.h: Likewise.
53892         * lib/unistdio/u-sprintf.h: Likewise.
53893         * lib/unistdio/u-vasprintf.h: Likewise.
53894         * lib/unistdio/u-vsnprintf.h: Likewise.
53895         * lib/unistdio/u-vsprintf.h: Likewise.
53896         * lib/unistdio/u16-asnprintf.c: Likewise.
53897         * lib/unistdio/u16-asprintf.c: Likewise.
53898         * lib/unistdio/u16-printf-parse.c: Likewise.
53899         * lib/unistdio/u16-snprintf.c: Likewise.
53900         * lib/unistdio/u16-sprintf.c: Likewise.
53901         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
53902         * lib/unistdio/u16-u16-asprintf.c: Likewise.
53903         * lib/unistdio/u16-u16-snprintf.c: Likewise.
53904         * lib/unistdio/u16-u16-sprintf.c: Likewise.
53905         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
53906         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
53907         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
53908         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
53909         * lib/unistdio/u16-vasnprintf.c: Likewise.
53910         * lib/unistdio/u16-vasprintf.c: Likewise.
53911         * lib/unistdio/u16-vsnprintf.c: Likewise.
53912         * lib/unistdio/u16-vsprintf.c: Likewise.
53913         * lib/unistdio/u32-asnprintf.c: Likewise.
53914         * lib/unistdio/u32-asprintf.c: Likewise.
53915         * lib/unistdio/u32-printf-parse.c: Likewise.
53916         * lib/unistdio/u32-snprintf.c: Likewise.
53917         * lib/unistdio/u32-sprintf.c: Likewise.
53918         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
53919         * lib/unistdio/u32-u32-asprintf.c: Likewise.
53920         * lib/unistdio/u32-u32-snprintf.c: Likewise.
53921         * lib/unistdio/u32-u32-sprintf.c: Likewise.
53922         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
53923         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
53924         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
53925         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
53926         * lib/unistdio/u32-vasnprintf.c: Likewise.
53927         * lib/unistdio/u32-vasprintf.c: Likewise.
53928         * lib/unistdio/u32-vsnprintf.c: Likewise.
53929         * lib/unistdio/u32-vsprintf.c: Likewise.
53930         * lib/unistdio/u8-asnprintf.c: Likewise.
53931         * lib/unistdio/u8-asprintf.c: Likewise.
53932         * lib/unistdio/u8-printf-parse.c: Likewise.
53933         * lib/unistdio/u8-snprintf.c: Likewise.
53934         * lib/unistdio/u8-sprintf.c: Likewise.
53935         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
53936         * lib/unistdio/u8-u8-asprintf.c: Likewise.
53937         * lib/unistdio/u8-u8-snprintf.c: Likewise.
53938         * lib/unistdio/u8-u8-sprintf.c: Likewise.
53939         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
53940         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
53941         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
53942         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
53943         * lib/unistdio/u8-vasnprintf.c: Likewise.
53944         * lib/unistdio/u8-vasprintf.c: Likewise.
53945         * lib/unistdio/u8-vsnprintf.c: Likewise.
53946         * lib/unistdio/u8-vsprintf.c: Likewise.
53947         * lib/unistdio/ulc-asnprintf.c: Likewise.
53948         * lib/unistdio/ulc-asprintf.c: Likewise.
53949         * lib/unistdio/ulc-printf-parse.c: Likewise.
53950         * lib/unistdio/ulc-snprintf.c: Likewise.
53951         * lib/unistdio/ulc-sprintf.c: Likewise.
53952         * lib/unistdio/ulc-vasnprintf.c: Likewise.
53953         * lib/unistdio/ulc-vasprintf.c: Likewise.
53954         * lib/unistdio/ulc-vsnprintf.c: Likewise.
53955         * lib/unistdio/ulc-vsprintf.c: Likewise.
53956         * lib/unistr.h: Likewise.
53957         * lib/unistr/u-cpy-alloc.h: Likewise.
53958         * lib/unistr/u-cpy.h: Likewise.
53959         * lib/unistr/u-endswith.h: Likewise.
53960         * lib/unistr/u-move.h: Likewise.
53961         * lib/unistr/u-set.h: Likewise.
53962         * lib/unistr/u-startswith.h: Likewise.
53963         * lib/unistr/u-stpcpy.h: Likewise.
53964         * lib/unistr/u-stpncpy.h: Likewise.
53965         * lib/unistr/u-strcat.h: Likewise.
53966         * lib/unistr/u-strcpy.h: Likewise.
53967         * lib/unistr/u-strcspn.h: Likewise.
53968         * lib/unistr/u-strdup.h: Likewise.
53969         * lib/unistr/u-strlen.h: Likewise.
53970         * lib/unistr/u-strncat.h: Likewise.
53971         * lib/unistr/u-strncpy.h: Likewise.
53972         * lib/unistr/u-strnlen.h: Likewise.
53973         * lib/unistr/u-strpbrk.h: Likewise.
53974         * lib/unistr/u-strspn.h: Likewise.
53975         * lib/unistr/u-strstr.h: Likewise.
53976         * lib/unistr/u-strtok.h: Likewise.
53977         * lib/unistr/u16-check.c: Likewise.
53978         * lib/unistr/u16-chr.c: Likewise.
53979         * lib/unistr/u16-cmp.c: Likewise.
53980         * lib/unistr/u16-cpy-alloc.c: Likewise.
53981         * lib/unistr/u16-cpy.c: Likewise.
53982         * lib/unistr/u16-endswith.c: Likewise.
53983         * lib/unistr/u16-mblen.c: Likewise.
53984         * lib/unistr/u16-mbsnlen.c: Likewise.
53985         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53986         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53987         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53988         * lib/unistr/u16-mbtouc.c: Likewise.
53989         * lib/unistr/u16-mbtoucr.c: Likewise.
53990         * lib/unistr/u16-move.c: Likewise.
53991         * lib/unistr/u16-next.c: Likewise.
53992         * lib/unistr/u16-prev.c: Likewise.
53993         * lib/unistr/u16-set.c: Likewise.
53994         * lib/unistr/u16-startswith.c: Likewise.
53995         * lib/unistr/u16-stpcpy.c: Likewise.
53996         * lib/unistr/u16-stpncpy.c: Likewise.
53997         * lib/unistr/u16-strcat.c: Likewise.
53998         * lib/unistr/u16-strchr.c: Likewise.
53999         * lib/unistr/u16-strcmp.c: Likewise.
54000         * lib/unistr/u16-strcpy.c: Likewise.
54001         * lib/unistr/u16-strcspn.c: Likewise.
54002         * lib/unistr/u16-strdup.c: Likewise.
54003         * lib/unistr/u16-strlen.c: Likewise.
54004         * lib/unistr/u16-strmblen.c: Likewise.
54005         * lib/unistr/u16-strmbtouc.c: Likewise.
54006         * lib/unistr/u16-strncat.c: Likewise.
54007         * lib/unistr/u16-strncmp.c: Likewise.
54008         * lib/unistr/u16-strncpy.c: Likewise.
54009         * lib/unistr/u16-strnlen.c: Likewise.
54010         * lib/unistr/u16-strpbrk.c: Likewise.
54011         * lib/unistr/u16-strrchr.c: Likewise.
54012         * lib/unistr/u16-strspn.c: Likewise.
54013         * lib/unistr/u16-strstr.c: Likewise.
54014         * lib/unistr/u16-strtok.c: Likewise.
54015         * lib/unistr/u16-to-u32.c: Likewise.
54016         * lib/unistr/u16-to-u8.c: Likewise.
54017         * lib/unistr/u16-uctomb-aux.c: Likewise.
54018         * lib/unistr/u16-uctomb.c: Likewise.
54019         * lib/unistr/u32-check.c: Likewise.
54020         * lib/unistr/u32-chr.c: Likewise.
54021         * lib/unistr/u32-cmp.c: Likewise.
54022         * lib/unistr/u32-cpy-alloc.c: Likewise.
54023         * lib/unistr/u32-cpy.c: Likewise.
54024         * lib/unistr/u32-endswith.c: Likewise.
54025         * lib/unistr/u32-mblen.c: Likewise.
54026         * lib/unistr/u32-mbsnlen.c: Likewise.
54027         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
54028         * lib/unistr/u32-mbtouc.c: Likewise.
54029         * lib/unistr/u32-mbtoucr.c: Likewise.
54030         * lib/unistr/u32-move.c: Likewise.
54031         * lib/unistr/u32-next.c: Likewise.
54032         * lib/unistr/u32-prev.c: Likewise.
54033         * lib/unistr/u32-set.c: Likewise.
54034         * lib/unistr/u32-startswith.c: Likewise.
54035         * lib/unistr/u32-stpcpy.c: Likewise.
54036         * lib/unistr/u32-stpncpy.c: Likewise.
54037         * lib/unistr/u32-strcat.c: Likewise.
54038         * lib/unistr/u32-strchr.c: Likewise.
54039         * lib/unistr/u32-strcmp.c: Likewise.
54040         * lib/unistr/u32-strcpy.c: Likewise.
54041         * lib/unistr/u32-strcspn.c: Likewise.
54042         * lib/unistr/u32-strdup.c: Likewise.
54043         * lib/unistr/u32-strlen.c: Likewise.
54044         * lib/unistr/u32-strmblen.c: Likewise.
54045         * lib/unistr/u32-strmbtouc.c: Likewise.
54046         * lib/unistr/u32-strncat.c: Likewise.
54047         * lib/unistr/u32-strncmp.c: Likewise.
54048         * lib/unistr/u32-strncpy.c: Likewise.
54049         * lib/unistr/u32-strnlen.c: Likewise.
54050         * lib/unistr/u32-strpbrk.c: Likewise.
54051         * lib/unistr/u32-strrchr.c: Likewise.
54052         * lib/unistr/u32-strspn.c: Likewise.
54053         * lib/unistr/u32-strstr.c: Likewise.
54054         * lib/unistr/u32-strtok.c: Likewise.
54055         * lib/unistr/u32-to-u16.c: Likewise.
54056         * lib/unistr/u32-to-u8.c: Likewise.
54057         * lib/unistr/u32-uctomb.c: Likewise.
54058         * lib/unistr/u8-check.c: Likewise.
54059         * lib/unistr/u8-chr.c: Likewise.
54060         * lib/unistr/u8-cmp.c: Likewise.
54061         * lib/unistr/u8-cpy-alloc.c: Likewise.
54062         * lib/unistr/u8-cpy.c: Likewise.
54063         * lib/unistr/u8-endswith.c: Likewise.
54064         * lib/unistr/u8-mblen.c: Likewise.
54065         * lib/unistr/u8-mbsnlen.c: Likewise.
54066         * lib/unistr/u8-mbtouc-aux.c: Likewise.
54067         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
54068         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
54069         * lib/unistr/u8-mbtouc.c: Likewise.
54070         * lib/unistr/u8-mbtoucr.c: Likewise.
54071         * lib/unistr/u8-move.c: Likewise.
54072         * lib/unistr/u8-next.c: Likewise.
54073         * lib/unistr/u8-prev.c: Likewise.
54074         * lib/unistr/u8-set.c: Likewise.
54075         * lib/unistr/u8-startswith.c: Likewise.
54076         * lib/unistr/u8-stpcpy.c: Likewise.
54077         * lib/unistr/u8-stpncpy.c: Likewise.
54078         * lib/unistr/u8-strcat.c: Likewise.
54079         * lib/unistr/u8-strchr.c: Likewise.
54080         * lib/unistr/u8-strcmp.c: Likewise.
54081         * lib/unistr/u8-strcpy.c: Likewise.
54082         * lib/unistr/u8-strcspn.c: Likewise.
54083         * lib/unistr/u8-strdup.c: Likewise.
54084         * lib/unistr/u8-strlen.c: Likewise.
54085         * lib/unistr/u8-strmblen.c: Likewise.
54086         * lib/unistr/u8-strmbtouc.c: Likewise.
54087         * lib/unistr/u8-strncat.c: Likewise.
54088         * lib/unistr/u8-strncmp.c: Likewise.
54089         * lib/unistr/u8-strncpy.c: Likewise.
54090         * lib/unistr/u8-strnlen.c: Likewise.
54091         * lib/unistr/u8-strpbrk.c: Likewise.
54092         * lib/unistr/u8-strrchr.c: Likewise.
54093         * lib/unistr/u8-strspn.c: Likewise.
54094         * lib/unistr/u8-strstr.c: Likewise.
54095         * lib/unistr/u8-strtok.c: Likewise.
54096         * lib/unistr/u8-to-u16.c: Likewise.
54097         * lib/unistr/u8-to-u32.c: Likewise.
54098         * lib/unistr/u8-uctomb-aux.c: Likewise.
54099         * lib/unistr/u8-uctomb.c: Likewise.
54100         * lib/unitypes.h: Likewise.
54101         * lib/uniwidth.h: Likewise.
54102         * lib/uniwidth/cjk.h: Likewise.
54103         * lib/uniwidth/u16-strwidth.c: Likewise.
54104         * lib/uniwidth/u16-width.c: Likewise.
54105         * lib/uniwidth/u32-strwidth.c: Likewise.
54106         * lib/uniwidth/u32-width.c: Likewise.
54107         * lib/uniwidth/u8-strwidth.c: Likewise.
54108         * lib/uniwidth/u8-width.c: Likewise.
54109         * lib/uniwidth/width.c: Likewise.
54110
54111 2007-10-07  Bruno Haible  <bruno@clisp.org>
54112
54113         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
54114         The file is still under LGPL (see modules/inttypes).
54115
54116 2007-10-06  Bruno Haible  <bruno@clisp.org>
54117
54118         * modules/trunc (Dependencies): Add 'extensions'.
54119         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
54120         Reported by Ben Pfaff <blp@gnu.org>.
54121
54122 2007-10-06  Bruno Haible  <bruno@clisp.org>
54123
54124         * modules/freopen-tests: New file.
54125         * tests/test-freopen.c: New file.
54126
54127         * modules/fopen-tests: New file.
54128         * tests/test-fopen.c: New file.
54129
54130         * modules/fopen: New file.
54131         * lib/fopen.c: New file.
54132         * m4/fopen.m4: New file.
54133         * modules/freopen: New file.
54134         * lib/freopen.c: New file.
54135         * m4/freopen.m4: New file.
54136         * lib/stdio.in.h (fopen, freopen): New declarations.
54137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
54138         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
54139         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
54140         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
54141         * doc/functions/fopen.texi: Mention the 'fopen' module.
54142         * doc/functions/freopen.texi: Mention the 'freopen' module.
54143
54144 2007-10-06  Bruno Haible  <bruno@clisp.org>
54145
54146         * modules/open-tests: New file.
54147         * tests/test-open.c: New file.
54148
54149         * modules/open: New file.
54150         * lib/open.c: New file.
54151         * m4/open.m4: New file.
54152         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
54153         lib/open.c does.
54154         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
54155         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
54156         macros.
54157         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
54158         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
54159         REPLACE_OPEN.
54160         * doc/functions/open.texi: Mention the 'open' module.
54161
54162 2007-10-04  Bruno Haible  <bruno@clisp.org>
54163
54164         * modules/ceill-tests: New file.
54165         * tests/test-ceill.c: New file.
54166
54167         * modules/ceill: New file.
54168         * lib/ceill.c: Replace entire file.
54169         * m4/ceill.m4: New file.
54170         * lib/math.in.h (ceill): Replace declaration.
54171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
54172         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
54173         * doc/functions/ceill.texi: Mention the 'ceill' module.
54174         * modules/mathl (Files): Remove lib/ceill.c.
54175         (Depends-on): Add ceill.
54176
54177 2007-10-04  Bruno Haible  <bruno@clisp.org>
54178
54179         * modules/ceilf-tests: New file.
54180         * tests/test-ceilf.c: New file.
54181
54182         * modules/ceilf: New file.
54183         * lib/ceil.c: New file.
54184         * lib/ceilf.c: New file.
54185         * m4/ceilf.m4: New file.
54186         * lib/math.in.h (ceilf): New declaration.
54187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
54188         HAVE_DECL_CEILF.
54189         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
54190         HAVE_DECL_CEILF.
54191         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
54192
54193 2007-10-04  Bruno Haible  <bruno@clisp.org>
54194
54195         * modules/floorl-tests: New file.
54196         * tests/test-floorl.c: New file.
54197
54198         * modules/floorl: New file.
54199         * lib/floorl.c: Replace entire file.
54200         * m4/floorl.m4: New file.
54201         * lib/math.in.h (floorl): Replace declaration.
54202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
54203         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
54204         * doc/functions/floorl.texi: Mention the 'floorl' module.
54205         * modules/mathl (Files): Remove lib/floorl.c.
54206         (Depends-on): Add floorl.
54207
54208 2007-10-04  Bruno Haible  <bruno@clisp.org>
54209
54210         * modules/floorf-tests: New file.
54211         * tests/test-floorf.c: New file.
54212
54213         * modules/floorf: New file.
54214         * lib/floor.c: New file.
54215         * lib/floorf.c: New file.
54216         * m4/floorf.m4: New file.
54217         * lib/math.in.h (floorf): New declaration.
54218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
54219         HAVE_DECL_FLOORF.
54220         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
54221         HAVE_DECL_FLOORF.
54222         * doc/functions/floorf.texi: Mention the 'floorf' module.
54223
54224 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
54225             Bruno Haible  <bruno@clisp.org>
54226
54227         Advertise for the Git server instead of the CVS server.
54228         * doc/gnulib-intro.texi (Steady Development): Mention the Git
54229         repository instead of the CVS one.
54230         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
54231         about all VCS systems generically.
54232         * doc/gnulib.texi (Introduction): Capitalize `Git'.
54233
54234 2007-10-04  Bruno Haible  <bruno@clisp.org>
54235
54236         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
54237         means.
54238         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
54239
54240 2007-10-04  Bruno Haible  <bruno@clisp.org>
54241
54242         * modules/truncl-tests: New file.
54243         * tests/test-truncl.c: New file.
54244
54245         * modules/truncl: New file.
54246         * lib/truncl.c: New file.
54247         * m4/truncl.m4: New file.
54248         * lib/math.in.h (truncl): New declaration.
54249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
54250         HAVE_DECL_TRUNCL.
54251         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
54252         HAVE_DECL_TRUNCL.
54253         * doc/functions/truncl.texi: Mention the 'truncl' module.
54254
54255 2007-10-04  Bruno Haible  <bruno@clisp.org>
54256
54257         * modules/truncf-tests: New file.
54258         * tests/test-truncf.c: New file.
54259
54260         * modules/truncf: New file.
54261         * lib/trunc.c: Make paramerizable through USE_* macros.
54262         * lib/truncf.c: New file.
54263         * m4/truncf.m4: New file.
54264         * lib/math.in.h (truncf): New declaration.
54265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
54266         HAVE_DECL_TRUNCF.
54267         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
54268         HAVE_DECL_TRUNCF.
54269         * doc/functions/truncf.texi: Mention the 'truncf' module.
54270
54271 2007-10-03  Bruno Haible  <bruno@clisp.org>
54272
54273         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
54274         augmentation also for tests modules.
54275         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
54276         * modules/atexit-tests (Makefile.am): Likewise.
54277         * modules/binary-io-tests (Makefile.am): Likewise.
54278         * modules/c-strcase-tests (Makefile.am): Likewise.
54279         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
54280         * modules/canonicalize-tests (Makefile.am): Likewise.
54281         * modules/closein-tests (Makefile.am): Likewise.
54282         * modules/fprintf-posix-tests (Makefile.am): Likewise.
54283         * modules/freadahead-tests (Makefile.am): Likewise.
54284         * modules/fseek-tests (Makefile.am): Likewise.
54285         * modules/fseeko-tests (Makefile.am): Likewise.
54286         * modules/ftell-tests (Makefile.am): Likewise.
54287         * modules/ftello-tests (Makefile.am): Likewise.
54288         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
54289         * modules/isnanl-tests (Makefile.am): Likewise.
54290         * modules/lseek-tests (Makefile.am): Likewise.
54291         * modules/mbscasecmp-tests (Makefile.am): Likewise.
54292         * modules/mbscasestr-tests (Makefile.am): Likewise.
54293         * modules/mbschr-tests (Makefile.am): Likewise.
54294         * modules/mbscspn-tests (Makefile.am): Likewise.
54295         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
54296         * modules/mbspbrk-tests (Makefile.am): Likewise.
54297         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
54298         * modules/mbsrchr-tests (Makefile.am): Likewise.
54299         * modules/mbsspn-tests (Makefile.am): Likewise.
54300         * modules/mbsstr-tests (Makefile.am): Likewise.
54301         * modules/printf-posix-tests (Makefile.am): Likewise.
54302         * modules/snprintf-posix-tests (Makefile.am): Likewise.
54303         * modules/sprintf-posix-tests (Makefile.am): Likewise.
54304         * modules/tsearch-tests (Makefile.am): Likewise.
54305         * modules/uniname/uniname-tests (Makefile.am): Likewise.
54306         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
54307         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
54308         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
54309         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
54310         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
54311         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
54312         * modules/vprintf-posix-tests (Makefile.am): Likewise.
54313         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
54314         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
54315         * modules/xstrtoimax-tests (Makefile.am): Likewise.
54316         * modules/xstrtol-tests (Makefile.am): Likewise.
54317         * modules/xstrtoumax-tests (Makefile.am): Likewise.
54318         * modules/yesno-tests (Makefile.am): Likewise.
54319
54320 2007-10-03  Bruno Haible  <bruno@clisp.org>
54321
54322         * modules/trunc-tests: New file.
54323         * tests/test-trunc.c: New file.
54324
54325         * modules/trunc: New file.
54326         * lib/trunc.c: New file.
54327         * m4/trunc.m4: New file.
54328         * lib/math.in.h (trunc): New declaration.
54329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
54330         HAVE_DECL_TRUNC.
54331         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
54332         HAVE_DECL_TRUNC.
54333         * doc/functions/trunc.texi: Mention the 'trunc' module.
54334
54335 2007-10-03  Bruno Haible  <bruno@clisp.org>
54336
54337         * tests/test-fpending.c: New file, mostly copied
54338         from coreutils/lib/t-fpending.c.
54339         * modules/fpending-tests: New file.
54340
54341 2007-10-03  Bruno Haible  <bruno@clisp.org>
54342
54343         Port the stdio extensions to QNX (untested).
54344         * lib/fseterr.c (fseterr): Add support for QNX.
54345         * lib/fbufmode.c (fbufmode): Likewise.
54346         * lib/freadable.c (freadable): Likewise.
54347         * lib/fwritable.c (fwritable): Likewise.
54348         * lib/freading.c (freading): Likewise.
54349         * lib/fwriting.c (fwriting): Likewise.
54350         * lib/freadahead.c (freadahed): Likewise.
54351         * lib/fpurge.c (fpurge): Likewise.
54352         * lib/fseeko.c (rpl_fseeko): Likewise.
54353
54354 2007-10-03  Bruno Haible  <bruno@clisp.org>
54355             Jim Meyering  <jim@meyering.net>
54356             Eric Blake  <ebb9@byu.net>
54357
54358         * doc/relocatable.texi: Use @command instead of @program.
54359
54360 2007-10-02  Jim Meyering  <jim@meyering.net>
54361
54362         Perform one more "_.h" -> ".in.h" substitution.
54363         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
54364         instead of unistd_.h here, too.
54365
54366 2007-10-01  Bruno Haible  <bruno@clisp.org>
54367
54368         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
54369         Needed for the alloca-opt module.
54370
54371 2007-09-30  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/alloca.in.h: Renamed from lib/alloca_.h.
54374         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
54375         alloca_.h.
54376         * lib/argz.in.h: Renamed from lib/argz_.h.
54377         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
54378         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
54379         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
54380         byteswap_.h.
54381         * lib/dirent.in.h: Renamed from lib/dirent_.h.
54382         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
54383         dirent_.h.
54384         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
54385         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
54386         fcntl_.h.
54387         * lib/float.in.h: Renamed from lib/float_.h.
54388         * modules/float (Files, Makefile.am): Use float.in.h instead of
54389         float_.h.
54390         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
54391         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
54392         fnmatch_.h.
54393         * lib/getopt.in.h: Renamed from lib/getopt_.h.
54394         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
54395         getopt_.h.
54396         * lib/glob.in.h: Renamed from lib/glob_.h.
54397         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
54398         * lib/iconv.in.h: Renamed from lib/iconv_.h.
54399         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
54400         iconv_.h.
54401         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
54402         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
54403         inttypes_.h.
54404         * lib/locale.in.h: Renamed from lib/locale_.h.
54405         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
54406         locale_.h.
54407         * lib/math.in.h: Renamed from lib/math_.h.
54408         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
54409         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
54410         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
54411         of netinet_in_.h. Add dependency.
54412         * lib/poll.in.h: Renamed from lib/poll_.h.
54413         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
54414         * lib/search.in.h: Renamed from lib/search_.h.
54415         * modules/search (Files, Makefile.am): Use search.in.h instead of
54416         search_.h.
54417         * lib/signal.in.h: Renamed from lib/signal_.h.
54418         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
54419         _signal.h.
54420         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
54421         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
54422         stdbool_.h.
54423         * lib/stdint.in.h: Renamed from lib/stdint_.h.
54424         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
54425         stdint_.h.
54426         * lib/stdio.in.h: Renamed from lib/stdio_.h.
54427         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
54428         stdio_.h.
54429         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
54430         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
54431         stdlib_.h.
54432         * lib/string.in.h: Renamed from lib/string_.h.
54433         * modules/string (Files, Makefile.am): Use string.in.h instead of
54434         string_.h.
54435         * doc/gnulib-tool.texi (Initial import): Update.
54436         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
54437         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
54438         of sys_select_.h. Add dependency.
54439         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
54440         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
54441         of sys_socket_.h.
54442         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
54443         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
54444         sys_stat_.h.
54445         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
54446         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
54447         sys_time_.h.
54448         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
54449         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
54450         sysexits_.h.
54451         * lib/time.in.h: Renamed from lib/time_.h.
54452         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
54453         * lib/unistd.in.h: Renamed from lib/unistd_.h.
54454         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
54455         unistd_.h.
54456         * lib/wchar.in.h: Renamed from lib/wchar_.h.
54457         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
54458         wchar_.h.
54459         * lib/wctype.in.h: Renamed from lib/wctype_.h.
54460         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
54461         wctype_.h.
54462         * build-aux/bootstrap (slurp): Update.
54463         * lib/.cppi-disable: Update.
54464
54465 2007-09-30  Bruno Haible  <bruno@clisp.org>
54466
54467         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
54468         Needed on BeOS.
54469
54470 2007-09-30  Bruno Haible  <bruno@clisp.org>
54471
54472         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
54473
54474 2007-09-29  Bruno Haible  <bruno@clisp.org>
54475
54476         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
54477
54478 2007-09-29  Bruno Haible  <bruno@clisp.org>
54479
54480         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
54481         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
54482         * build-aux/install-reloc: Compile also areadlink.c.
54483         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
54484
54485 2007-09-29  Bruno Haible  <bruno@clisp.org>
54486
54487         * gnulib-tool (func_emit_initmacro_done): Indentation.
54488
54489 2007-09-29  Bruno Haible  <bruno@clisp.org>
54490
54491         * README: Add CVS checkout update instructions.
54492         Info from Bob Proulx <bob@proulx.com>.
54493
54494 2007-09-28  Eric Blake  <ebb9@byu.net>
54495
54496         Provide move-if-change.
54497         * build-aux/move-if-change: New file, based on best practice
54498         rather than any canonical upstream location.
54499
54500 2007-09-28  Jim Meyering  <jim@meyering.net>
54501
54502         Fix canonicalize loop-detection corner case.
54503         Do not attempt to stat the symlink values stored via seen_triple.
54504         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
54505         on linux-2.6.18, (but not 2.6.22).
54506         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
54507         triple_compare.  The former compares dev,ino,filename, while the latter
54508         would actually stat dirname(filename) when dev and ino were equal.
54509         * lib/hash-triple.c: Install <string.h>.
54510         (STREQ): Define.
54511         (triple_compare_ino_str): New function.
54512         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
54513
54514 2007-09-28  Eric Blake  <ebb9@byu.net>
54515
54516         Enforce that AC_REPLACE_FUNCS files exist.
54517         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
54518         override check for typos.
54519
54520         Fix test-closein on Solaris 10.
54521         * tests/test-closein.c (main): Don't assume stdin can be inherited
54522         closed on all systems.
54523         * tests/test-closein.sh: Likewise.
54524         Reported by Piotr Tarnowski.
54525
54526 2007-09-28  Jim Meyering  <jim@meyering.net>
54527
54528         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
54529
54530 2007-09-27  Jim Meyering  <jim@meyering.net>
54531
54532         canonicalize: Avoid a false-positive cycle failure.
54533         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
54534         Sort.  Remove cycle-check.
54535         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
54536         not cycle-check.h.
54537         (seen_triple): New function.
54538         (canonicalize_filename_mode): Use it instead of cycle-check.
54539         * tests/test-canonicalize.c: Add a test for this bug.
54540         * tests/test-canonicalize.sh: Set up and run the test.
54541
54542         New module, file-set, from coreutils.
54543         * modules/file-set: Define it.
54544         * lib/file-set.c, lib/file-set.h: Implement.
54545
54546         New module, hash-triple, from coreutils.
54547         * modules/hash-triple: Define it.
54548         * lib/hash-triple.c, lib/hash-triple.h: Implement.
54549
54550 2007-09-25  Eric Blake  <ebb9@byu.net>
54551
54552         Fix strerror on Interix.
54553         * lib/string_.h (strerror): Declare replacement.
54554         * doc/functions/strerror.texi (strerror): Document the Interix
54555         shortcoming.
54556         * modules/string (Makefile.am): Support new hooks.
54557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
54558         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
54559         gl_FUNC_STRERROR_SEPARATE.
54560         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
54561         * lib/strerror.c (rpl_strerror): Provide replacement.
54562         * modules/strerror (Depends-on): Add string.
54563         (configure.ac): Detect use of module.
54564         * tests/test-strerror.c: New file.
54565         * modules/strerror-tests: New test module.
54566         * modules/argp (Depends-on): Add strerror.
54567         * modules/error (Depends-on): Likewise.
54568         Reported by Martin Koeppe.
54569
54570 2007-09-24  Bruno Haible  <bruno@clisp.org>
54571
54572         * README: Update git instructions.
54573
54574 2007-09-24  Eric Blake  <ebb9@byu.net>
54575
54576         Revert fpending breakage from 2007-09-08.
54577         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
54578         __fpending.c.
54579
54580 2007-09-24  Jim Meyering  <jim@meyering.net>
54581
54582         filenamecat.c: Add a test.
54583         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
54584         showing how the function works when DIR is the empty string.
54585
54586 2007-09-21  Simon Josefsson  <simon@josefsson.org>
54587
54588         * tests/test-canonicalize.sh: Turn on executable bit.
54589
54590 2007-09-19  Eric Blake  <ebb9@byu.net>
54591
54592         * README: Update CVS instructions.
54593
54594 2007-09-18  Bruno Haible  <bruno@clisp.org>
54595
54596         * modules/areadlink: New file.
54597         * lib/areadlink.h (areadlink): New declaration.
54598         * lib/areadlink.c: New file, based on lib/xreadlink.c.
54599
54600 2007-09-17  Jim Meyering  <jim@meyering.net>
54601
54602         * lib/savewd.c (ESTALE) [!defined]: Define.
54603         Reported to be required on Interix by Martin Koeppe.
54604
54605 2007-09-17  Bruno Haible  <bruno@clisp.org>
54606
54607         * gnulib-tool (func_version): Use $version.
54608
54609 2007-09-16  Bruno Haible  <bruno@clisp.org>
54610
54611         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
54612         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
54613         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
54614         Reported by Greg Schafer <gschafer@zip.com.au>.
54615
54616 2007-09-15  Bruno Haible  <bruno@clisp.org>
54617
54618         * gnulib-tool (sed): Try a little harder to make bash understand the
54619         alias.
54620         Reported by Bruce Korb <bruce.korb@gmail.com>.
54621
54622 2007-09-13  Eric Blake  <ebb9@byu.net>
54623
54624         * ChangeLog: Remove conflict markers.
54625
54626 2007-09-13  Simon Josefsson  <simon@josefsson.org>
54627
54628         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
54629         Reported by Bruno Haible <bruno@clisp.org>.
54630
54631 2007-09-12  Bruno Haible  <bruno@clisp.org>
54632
54633         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
54634         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
54635         is not defined.
54636
54637 2007-09-12  Eric Blake  <ebb9@byu.net>
54638
54639         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
54640         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
54641         Autoconf definition.
54642         * modules/euidaccess (Depends-on): Add extensions, for
54643         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
54644         * modules/fnmatch (Depends-on): Likewise.
54645         * modules/getaddrinfo (Depends-on): Likewise.
54646         * modules/getdelim (Depends-on): Likewise.
54647         * modules/getline (Depends-on): Likewise.
54648         * modules/getsubopt (Depends-on): Likewise.
54649         * modules/gettext (Depends-on): Likewise.
54650         * modules/group-member (Depends-on): Likewise.
54651         * modules/mbchar (Depends-on): Likewise.
54652         * modules/memmem (Depends-on): Likewise.
54653         * modules/mempcpy (Depends-on): Likewise.
54654         * modules/memrchr (Depends-on): Likewise.
54655         * modules/pagealign_alloc (Depends-on): Likewise.
54656         * modules/readutmp (Depends-on): Likewise.
54657         * modules/stpcpy (Depends-on): Likewise.
54658         * modules/stpncpy (Depends-on): Likewise.
54659         * modules/strchrnul (Depends-on): Likewise.
54660         * modules/strndup (Depends-on): Likewise.
54661         * modules/strsep (Depends-on): Likewise.
54662         * modules/strverscmp (Depends-on): Likewise.
54663         * modules/vasprintf (Depends-on): Likewise.
54664         * modules/wcwidth (Depends-on): Likewise.
54665         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
54666         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
54667         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
54668         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
54669         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54670         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54671         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
54672         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54673         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
54674         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
54675         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54676         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54677         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54678         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
54679         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
54680         * m4/readutmp.m4 (gl_READUTMP): Likewise.
54681         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54682         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54683         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54684         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54685         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54686         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54687         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54688         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
54689         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
54690         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54691         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
54692         so that lock.m4 can be used in gettext without extensions module.
54693
54694 2007-09-11  Bruno Haible  <bruno@clisp.org>
54695
54696         * m4/isc-posix.m4: Remove file.
54697         Suggested by Eric Blake.
54698
54699 2007-09-11  Eric Blake  <ebb9@byu.net>
54700
54701         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
54702
54703 2007-09-10  Bruno Haible  <bruno@clisp.org>
54704
54705         * posix-modules: Fix typo in error message.
54706         Reported by Matt <mkraai@beckman.com>.
54707
54708 2007-09-09  Bruno Haible  <bruno@clisp.org>
54709
54710         * doc/functions/getdelim.texi: Update list of platforms lacking the
54711         function.
54712         * doc/functions/getline.texi: Likewise.
54713
54714 2007-09-09  Jim Meyering  <jim@meyering.net>
54715
54716         * lib/hash.c (hash_initialize): Detect calloc failure.
54717         Reported by Bruno Haible.
54718
54719 2007-09-09  Bruno Haible  <bruno@clisp.org>
54720
54721         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
54722         malloc or realloc fails.
54723
54724 2007-09-09  Bruno Haible  <bruno@clisp.org>
54725
54726         * modules/getcwd (Depends-on): Add malloc-posix.
54727         * modules/glob (Depends-on): Likewise.
54728         * modules/putenv (Depends-on): Likewise.
54729         * modules/strdup (Depends-on): Likewise.
54730         * modules/getdelim (Depends-on): Add realloc-posix.
54731         * modules/read-file (Depends-on): Likewise.
54732
54733 2007-09-09  Bruno Haible  <bruno@clisp.org>
54734
54735         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
54736         (gl_FUNC_MALLOC_POSIX): Require it.
54737         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
54738         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
54739         * modules/realloc (Files): Add m4/malloc.m4.
54740         * modules/calloc (Files): Likewise.
54741
54742 2007-09-09  Bruno Haible  <bruno@clisp.org>
54743
54744         * modules/malloc-posix: New file.
54745         * modules/malloc (Depends-on): Add malloc-posix.
54746         * lib/malloc.c: Include errno.h.
54747         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
54748         and a POSIX-compatible malloc into a single function. Set ENOMEM
54749         when returning NULL.
54750         * m4/malloc.m4: New file.
54751         * doc/functions/malloc.texi: Mention the malloc-posix module.
54752         * lib/stdlib_.h (malloc): New declaration.
54753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54754         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
54755         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
54756         and HAVE_MALLOC_POSIX.
54757
54758 2007-09-09  Bruno Haible  <bruno@clisp.org>
54759
54760         * modules/realloc-posix: New file.
54761         * modules/realloc (Depends-on): Add realloc-posix.
54762         * lib/realloc.c: Include errno.h.
54763         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
54764         and a POSIX-compatible realloc into a single function. Set ENOMEM
54765         when returning NULL.
54766         * m4/realloc.m4: New file.
54767         * doc/functions/realloc.texi: Mention the realloc-posix module.
54768         * lib/stdlib_.h (realloc): New declaration.
54769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54770         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
54771         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
54772         and HAVE_REALLOC_POSIX.
54773
54774 2007-09-09  Bruno Haible  <bruno@clisp.org>
54775
54776         * modules/calloc-posix: New file.
54777         * modules/calloc (Depends-on): Add calloc-posix.
54778         * lib/calloc.c: Include errno.h.
54779         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
54780         and a POSIX-compatible calloc into a single function. Set ENOMEM
54781         when returning NULL.
54782         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
54783         * doc/functions/calloc.texi: Mention the calloc-posix module.
54784         * lib/stdlib_.h (calloc): New declaration.
54785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54786         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
54787         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
54788         and HAVE_CALLOC_POSIX.
54789
54790 2007-09-09  Bruno Haible  <bruno@clisp.org>
54791
54792         Allow for modules to show an arbitrary notice.
54793         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
54794         * gnulib-tool: New option --extract-notice.
54795         (func_usage): Document it.
54796         (sed_extract_prog): Update.
54797         (func_get_notice): New function.
54798         (func_modules_notice): New function.
54799         (func_import, func_create_testdir): Invoke it.
54800         Suggested by Jim Meyering.
54801
54802 2007-09-09  Bruno Haible  <bruno@clisp.org>
54803
54804         * gnulib-tool: New options --verbose, --quiet.
54805         (func_usage): Document them.
54806         (verbose): New variable.
54807         (func_execute_command): New function.
54808         (func_import): Don't show the module list and the file list if
54809         $verbose < 0.
54810         (func_create_testdir): Likewise. Use func_execute_command.
54811         (func_create_megatestdir): Use func_execute_command.
54812
54813 2007-09-08  Bruno Haible  <bruno@clisp.org>
54814
54815         * gnulib-tool (func_import): Prefer rsync over wget when available,
54816         for fetching the PO files.
54817
54818 2007-09-08  Bruno Haible  <bruno@clisp.org>
54819
54820         * posix-modules: New file. Portions copied from gnulib-tool.
54821         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
54822
54823 2007-09-08  Jim Meyering  <jim@meyering.net>
54824
54825         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
54826         * lib/fpending.h: Rename from __fpending.h.
54827         * lib/fpending.c: Rename from __fpending.c.
54828         Include "fpending.h", not "__fpending.h".
54829         * lib/__fpending.h, lib/__fpending.c: Remove files.
54830         * modules/fpending (Files): Reflect new file names.
54831         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
54832
54833 2007-09-08  Bruno Haible  <bruno@clisp.org>
54834
54835         * m4/inttypes-h.m4: Remove stub file.
54836
54837 2007-09-07  Simon Josefsson  <simon@josefsson.org>
54838
54839         * doc/headers/stdint.texi: Discuss #include_next issue.
54840
54841 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54842
54843         * build-aux/bootstrap: Remove obsolete comment about wget --help.
54844
54845 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54846
54847         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
54848         in variable name.
54849
54850 2007-09-03  Jim Meyering  <jim@meyering.net>
54851
54852         New module: git-version-gen.
54853         * modules/git-version-gen: New file.
54854
54855         Import changes from coreutils for bootstrap script.
54856
54857         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
54858
54859         bootstrap: uses rsync to download the .po files
54860         * build-aux/bootstrap (po_download_command_format): New global.
54861         (download_po_files): Use rsync.
54862         (update_po_files): Don't remove .po files after download,
54863         so future rsync runs can take advantage of the copies.
54864
54865         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
54866
54867         Solve the unnecessary-.po-file-regeneration problem once and for all.
54868         * build-aux/bootstrap (download_po_files): New function, renamed from
54869         get_translations.  Now, downloads, but doesn't update LINGUAS.
54870         (update_po_files): New function.
54871
54872         bootstrap: Ignore more.
54873         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
54874         uniwidth to e.g., lib/.gitignore.
54875         (slurp): Handle the sys_stat_.h -> sys mapping, too.
54876
54877         * build-aux/bootstrap: New setting: vc_ignore.
54878         (insert_sorted_if_absent): Create $file if absent.
54879         Adapt to new, possibly empty, list: $vc_ignore.
54880
54881         bootstrap: generate more ignorable names
54882         * build-aux/bootstrap (slurp): When generating ignorable names,
54883         also map .sin to .sed, .gperf to .c, and .y to .c.
54884
54885 2007-09-03  Jim Meyering  <jim@meyering.net>
54886
54887         * build-aux/git-version-gen: New file, from coreutils.  For details, see
54888         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
54889
54890 2007-09-02  Bruno Haible  <bruno@clisp.org>
54891
54892         Fix mis-recognition of 'mcs' on QNX 6.
54893         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
54894         output contains the string "Mono".
54895         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
54896         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
54897
54898 2007-09-01  Bruno Haible  <bruno@clisp.org>
54899
54900         Fix collision between uniwidth/* and linebreak modules.
54901         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
54902         u32_width): Remove declarations.
54903         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
54904         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
54905         streq3, streq2, streq1, streq0): Remove functions.
54906         (STREQ): Remove macro.
54907         (is_cjk_encoding): Remove function.
54908         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
54909         (uc_width, u8_width, u16_width, u32_width): Remove functions.
54910         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
54911         * NEWS: Document the change.
54912
54913 2007-09-01  Bruno Haible  <bruno@clisp.org>
54914
54915         * lib/streq.h: Add double-inclusion guard.
54916
54917 2007-09-01  Karl Berry  <karl@gnu.org>
54918
54919         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
54920
54921 2007-08-28  Jim Meyering  <jim@meyering.net>
54922
54923         Rename mreadlink_with_size to areadlink_with_size.
54924         * NEWS: Document the change.
54925         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
54926         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
54927         * lib/mreadlink.h: Rename this to...
54928         * lib/areadlink.h: ...this.
54929         * modules/mreadlink-with-size: Rename this to...
54930         * modules/areadlink-with-size: ...this.
54931         * lib/canonicalize.c: Reflect the renaming.
54932         * modules/canonicalize: Likewise.
54933
54934 2007-08-26  Bruno Haible  <bruno@clisp.org>
54935
54936         * gnulib-tool (func_import): When deciding which files to remove,
54937         consider also dangling symbolic links.
54938         Reported by Eric Blake.
54939
54940 2007-08-26  Bruno Haible  <bruno@clisp.org>
54941
54942         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
54943
54944 2007-08-23  Simon Josefsson  <simon@josefsson.org>
54945
54946         * lib/readline.c: Don't include getline.h, the prototype is now
54947         found in stdio.h.
54948
54949 2007-08-23  Jim Meyering  <jim@meyering.net>
54950
54951         Getdelim touchup.
54952         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
54953         around the funlockfile call, since funlockfile never sets errno.
54954         Don't set errno upon failed realloc.
54955
54956 2007-08-22  Eric Blake  <ebb9@byu.net>
54957
54958         Getline touchups.
54959         * lib/getdelim.c (getdelim): Revert regression that required *n to
54960         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
54961         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
54962         getdelim, rather than whether implementation is missing.
54963         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
54964         * lib/stdio_.h (getline): Also declare if replacement is
54965         required.
54966         * doc/functions/getdelim.texi: New file.
54967         * doc/functions/getline.texi: Likewise.
54968         * doc/gnulib.texi (Function Substitutes): Add new files.
54969         Reported by Bruno Haible.
54970
54971 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
54972
54973         * users.txt: Add Guile.
54974
54975 2007-08-22  Eric Blake  <ebb9@byu.net>
54976
54977         * tests/test-getdelim.c (main): Use remove, not unlink.
54978         * tests/test-getline.c (main): Likewise.
54979
54980         Move getline and getdelim into stdio.h, per POSIX 200x.
54981         * modules/getline (Files): Remove getline.h.
54982         (Depends-on): Add stdio.
54983         (configure.ac): Add module indicator.
54984         * modules/getdelim (Files): Remove getdelim.h.
54985         (Depends-on): Add stdio.
54986         (configure.ac): Add module indicator.
54987         * modules/stdio (Makefile.am): Work with new indicators.
54988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54989         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54990         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54991         * lib/getdelim.h: Delete.
54992         * lib/getline.h: Delete.
54993         * lib/stdio_.h (getdelim, getline): Declare.
54994         * modules/getdelim-tests: New module.
54995         * modules/getline-tests: Likewise.
54996         * tests/test-getdelim.c: New file.
54997         * tests/test-getline.c: Likewise.
54998         * NEWS: Document the change.
54999         * lib/getline.c: Update choice of header.
55000         * lib/csharpcomp.c: Likewise.
55001         * lib/getpass.c: Likewise.
55002         * lib/javacomp.c: Likewise.
55003         * lib/javaversion.c: Likewise.
55004         * lib/yesno.c: Likewise.
55005         * lib/getdelim.c: Likewise.
55006         (getdelim): Set errno on failure, and avoid memory leak.
55007
55008 2007-08-19  Bruno Haible  <bruno@clisp.org>
55009
55010         * modules/closein (Depends-on): Add freadahead.
55011         * lib/closein.c: Include freadahead.h.
55012         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
55013         is zero.
55014
55015 2007-08-19  Bruno Haible  <bruno@clisp.org>
55016
55017         * modules/freadahead-tests: New file.
55018         * tests/test-freadahead.sh: New file.
55019         * tests/test-freadahead.c: New file.
55020
55021         * modules/freadahead: New file.
55022         * lib/freadahead.h: New file.
55023         * lib/freadahead.c: New file.
55024         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
55025         fbufmode, fpurge, freadable, fwritable.
55026
55027 2007-08-19  Eric Blake  <ebb9@byu.net>
55028
55029         Test yesno in combination with closein.
55030         * lib/yesno.c (yesno): Document use of stdin.
55031         * modules/yesno-tests (Files): New module.
55032         * tests/test-yesno.c (main): New file.
55033         * tests/test-yesno.sh: Likewise.
55034
55035 2007-08-19  Bruno Haible  <bruno@clisp.org>
55036
55037         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
55038         * lib/fseeko.c (rpl_fseeko): Likewise.
55039         * lib/fseterr.c (fseterr): Likewise.
55040
55041 2007-08-19  Bruno Haible  <bruno@clisp.org>
55042
55043         * tests/test-lseek.c (main): Disable a test for BeOS.
55044         * doc/functions/lseek.texi: Document the BeOS bug.
55045
55046 2007-08-19  Bruno Haible  <bruno@clisp.org>
55047             Eric Blake  <ebb9@byu.net>
55048
55049         * lib/lseek.c: Include <sys/stat.h>.
55050         (rpl_lseek): Add workaround code also for Unix platforms.
55051         Needed for BeOS.
55052         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
55053         * doc/functions/lseek.texi: Document BeOS definiency.
55054
55055 2007-08-18  Bruno Haible  <bruno@clisp.org>
55056
55057         * modules/fstrcmp-tests: New file.
55058         * tests/test-fstrcmp.c: New file.
55059
55060 2007-08-18  Bruno Haible  <bruno@clisp.org>
55061
55062         * modules/fstrcmp: New file, from GNU gettext with modifications.
55063         * lib/fstrcmp.h: New file, from GNU gettext.
55064         * lib/fstrcmp.c: New file, from GNU gettext.
55065         * MODULES.html.sh (String handling): Add fstrcmp.
55066
55067 2007-08-18  Bruno Haible  <bruno@clisp.org>
55068
55069         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
55070         'bool'.
55071         (diag, compareseq): Remove const from the ctxt argument.
55072         (USE_HEURISTIC): Undefine at the end.
55073
55074 2007-08-18  Jim Meyering  <jim@meyering.net>
55075
55076         New file: lib/idcache.h
55077         * NEWS: Mention the addition.
55078         * modules/idcache (Files): Add lib/idcache.h
55079         * lib/idcache.c: Include "idcache.h".
55080         Don't include <sys/types.h>.
55081         Add a FIXME comment.
55082         Move file-scoped "static" declarations to the top.
55083         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
55084
55085 2007-08-17  Bruno Haible  <bruno@clisp.org>
55086         and Paul Eggert  <eggert@cs.ucla.edu>
55087
55088         * MODULES.html.sh: Add diffseq.
55089         * modules/diffseq: New file.
55090         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
55091         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
55092
55093 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55094
55095         Import changes from coreutils for bootstrap script.
55096
55097         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
55098
55099         * build-aux/bootstrap (slurp): Work even in environments where
55100         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
55101         current code does not slurp files whose names start with ".", and
55102         this looks like it might be a troublesome area.
55103
55104         2007-07-11  Jim Meyering  <jim@meyering.net>
55105
55106         If there's a GPL vN copyright comment, require that N == 3.
55107
55108         2007-07-08  Jim Meyering  <jim@meyering.net>
55109
55110         Run the coreutils-specific code only if tests/Makefile.am.in exists.
55111         * build-aux/bootstrap (mam_template): Move definition out of loop.
55112
55113         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
55114
55115         * build-aux/bootstrap (symlink_to_dir): Rename function from
55116         symlink_to_gnulib.  Add a directory parameter.  Update all
55117         callers.
55118         (cp_mark_as_generated): Also check for -- and link to -- files in
55119         gl/.
55120
55121         2007-07-08  Jim Meyering  <jim@meyering.net>
55122
55123         Adapt to deeper hierarchy in gnulib.
55124         * build-aux/bootstrap (symlink_to_dir): If the destination
55125         directory doesn't exist, create it. This is required at least for
55126         "lib/uniwidth/cjk.h".
55127
55128         2007-05-15  Jim Meyering  <jim@meyering.net>
55129
55130         * build-aux/bootstrap: Now that generated Makefile.am files
55131         are no longer under version control, they must be created at
55132         bootstrap time.
55133
55134 2007-08-14  Ben Pfaff  <blp@gnu.org>
55135
55136         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
55137
55138 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55139
55140         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
55141         given the changes below.
55142         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
55143         even on hosts that have padding bits beyond the supported 64.
55144
55145 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55146
55147         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
55148         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
55149         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
55150         depends on it.
55151         (xstrtol_error): Remove.
55152         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
55153         but with a different signature.
55154         (ATTRIBUTE_NORETURN, __attribute__): New macros.
55155         * lib/xstrtol-error.c: Include exitfail.h.
55156         (xstrtol_fatal): New function, with a different signature from the
55157         old xstrtol_error, so that the caller need not worry about passing
55158         in an exit status, or about storage management of the option argument.
55159         (xstrtol_error): Now a static function.  Redo signature to
55160         implement xstrtol_fatal.  Output the correct number of hyphens in
55161         front of the option so that the caller need not worry about
55162         storage management.
55163         (N_): New macro.
55164         (_): Remove; not used now.
55165         * modules/xstrtol: Depend on getopt.
55166         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
55167         of old STRTOL_FATAL_ERROR macro.
55168         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
55169         of test program.
55170         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
55171         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
55172
55173 2007-08-08  Eric Blake  <ebb9@byu.net>
55174
55175         * lib/xstrtol-error.c: Add missing include.
55176
55177         Move xstrtol messages into gnulib domain, when --pobase is used.
55178         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
55179         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
55180         * modules/xstrtol (Files): Distribute new file.
55181         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
55182         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
55183         * tests/test-xstrtol.c: ...into new file.
55184         * tests/test-xstrtoul.c: Also test xstrtoul.
55185         * tests/test-xstrtoimax.c: Also test xstrtoimax.
55186         * tests/test-xstrtoumax.c: Also test xstrtoumax.
55187         * tests/test-xstrtol.sh: Drive the tests.
55188         * tests/test-xstrtoimax.sh: Likewise.
55189         * tests/test-xstrtoumax.sh: Likewise.
55190         * modules/xstrtol-tests: New module.
55191         * modules/xstrtoimax-tests: Likewise.
55192         * modules/xstrtoumax-tests: Likewise.
55193
55194 2007-08-08  Jim Meyering  <jim@meyering.net>
55195
55196         New function: mfile_name_concat.
55197         * lib/filenamecat.c (mfile_name_concat): New function, just like
55198         file_name_concat, but return NULL upon failure rather than exiting
55199         with a diagnostic.
55200         * lib/filenamecat.h: Declare it.
55201
55202 2007-08-07  Bruno Haible  <bruno@clisp.org>
55203
55204         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
55205         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
55206         warning from gcc.
55207         Reported by Eric Blake.
55208
55209 2007-08-07  Simon Josefsson  <simon@josefsson.org>
55210
55211         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
55212         * modules/crypto/arcfour (License): Likewise.
55213         * modules/crypto/des-tests (License): Likewise.
55214         * modules/crypto/gc-arctwo-tests (License): Likewise.
55215         * modules/crypto/gc-des-tests (License): Likewise.
55216         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
55217         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
55218         * modules/crypto/gc-md2-tests (License): Likewise.
55219         * modules/crypto/gc-md4-tests (License): Likewise.
55220         * modules/crypto/gc-md5-tests (License): Likewise.
55221         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
55222         * modules/crypto/gc-rijndael-tests (License): Likewise.
55223         * modules/crypto/gc-sha1-tests (License): Likewise.
55224         * modules/crypto/gc-tests (License): Likewise.
55225         * modules/crypto/hmac-md5 (License): Likewise.
55226         * modules/crypto/hmac-sha1 (License): Likewise.
55227         * modules/crypto/md2-tests (License): Likewise.
55228         * modules/crypto/md4-tests (License): Likewise.
55229         * modules/crypto/md5 (License): Likewise.
55230         * modules/crypto/rijndael (License): Likewise.
55231         * modules/crypto/sha1 (License): Likewise.
55232         * modules/memxor (License): Likewise.
55233
55234 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55235         and Bruno Haible  <bruno@clisp.org>
55236
55237         * NEWS: Describe interface changes to human, xstrtol.
55238         * lib/human.h: Include <xstrtol.h>.
55239         (human_options): Return enum strtol_error, not int.  Remove
55240         bool arg; take int * instead.
55241         * lib/human.c: Don't include "gettext.h".
55242         (_): Remove; no longer used.
55243         Don't include <xstrtol.h>, since human.h does it.
55244         (human_options): Adjust to abovementioned interface changes.
55245         Do not report error to stderr; that's now the caller's
55246         responsibility.
55247         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
55248         interface change.
55249         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
55250         Str, Argument_type_string.  All uses changed.  Put " argument"
55251         in diagnostics to make them clearer.  Change wording of suffix
55252         message for clarity.
55253         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
55254         Argument_type_string.
55255         (STRTOL_FATAL_WARN): Remove; no longer used.
55256         * modules/human (Depends-on): Remove gettext-h.
55257
55258 2007-08-06  Simon Josefsson  <simon@josefsson.org>
55259
55260         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
55261
55262 2007-07-31  Bruno Haible  <bruno@clisp.org>
55263
55264         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
55265         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
55266         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
55267
55268 2007-07-31  Bruno Haible  <bruno@clisp.org>
55269
55270         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
55271         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
55272
55273 2007-07-30  Bruno Haible  <bruno@clisp.org>
55274
55275         * modules/base64 (License): Use the synonymous term "LGPLv2+".
55276         * modules/c-ctype (License): Likewise.
55277         * modules/c-strcase (License): Likewise.
55278         * modules/check-version (License): Likewise.
55279         * modules/iconv (License): Likewise.
55280         * modules/iconv_open (License): Likewise.
55281         * modules/read-file (License): Likewise.
55282         * modules/striconv (License): Likewise.
55283         * modules/strverscmp (License): Likewise.
55284         * modules/vasprintf (License): Likewise.
55285         * modules/crypto/des (License): Likewise.
55286         * modules/crypto/gc (License): Likewise.
55287         * modules/crypto/gc-arcfour (License): Likewise.
55288         * modules/crypto/gc-arctwo (License): Likewise.
55289         * modules/crypto/gc-des (License): Likewise.
55290         * modules/crypto/gc-hmac-md5 (License): Likewise.
55291         * modules/crypto/gc-hmac-sha1 (License): Likewise.
55292         * modules/crypto/gc-md2 (License): Likewise.
55293         * modules/crypto/gc-md4 (License): Likewise.
55294         * modules/crypto/gc-md5 (License): Likewise.
55295         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
55296         * modules/crypto/gc-random (License): Likewise.
55297         * modules/crypto/gc-rijndael (License): Likewise.
55298         * modules/crypto/gc-sha1 (License): Likewise.
55299         * modules/crypto/md2 (License): Likewise.
55300         * modules/crypto/md4 (License): Likewise.
55301
55302 2007-07-30  Jim Meyering  <jim@meyering.net>
55303
55304         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
55305         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
55306         it has valid stat data.  This bug would cause du not to count the
55307         sizes of inaccessible directories.
55308         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
55309         in <http://bugzilla.redhat.com/250077>.
55310
55311 2007-07-25  Peter O'Gorman  <peter@pogma.com>
55312             Bruno Haible  <bruno@clisp.org>
55313
55314         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
55315         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
55316         #include_next, gives a diagnostic about it, but reports no error in
55317         the exit code.
55318         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55319
55320 2007-07-24  Ben Pfaff  <blp@gnu.org>
55321
55322         Improve name: "count-one-bits" is better than "popcount".
55323         * MODULES.html.sh: Update name.
55324         * lib/popcount.h: Renamed lib/count-one-bits.h.
55325         (popcount): Renamed count_one_bits.
55326         (popcountl): Renamed count_one_bits_l.
55327         (popcountll): Renamed count_one_bits_ll.
55328         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
55329         * modules/popcount: Renamed module/count-one-bits.
55330         * modules/popcount-tests: Renamed module/count-one-bits-tests.
55331         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
55332
55333 2007-07-23  Ben Pfaff  <blp@gnu.org>
55334
55335         * lib/popcount.h (popcount32): Reduce size of constants, to allow
55336         better code generation, and add U to large constants to avoid
55337         warnings, in non-GCC case.
55338         Suggested by Bruno Haible.
55339
55340 2007-07-23  Ben Pfaff  <blp@gnu.org>
55341
55342         * lib/popcount.h: Use verify_true instead of if...abort.
55343         * modules/popcount: Depend on verify module.
55344         Suggested by Jim Meyering.
55345
55346 2007-07-23  Bruno Haible  <bruno@clisp.org>
55347
55348         * gnulib-tool (func_import): Create a .cvsignore file also when the
55349         directory is not yet in CVS but the toplevel directory is. When
55350         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
55351         Reported by Karl Berry.
55352
55353 2007-07-22  Ben Pfaff  <blp@gnu.org>
55354
55355         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
55356         case.
55357         Suggested by Eric Blake.
55358
55359 2007-07-22  Ben Pfaff  <blp@gnu.org>
55360
55361         New module: popcount.
55362         * MODULES.html.sh: Add popcount.
55363         * modules/popcount: New file.
55364         * modules/popcount-tests: New file.
55365         * tests/test-popcount.c: New file.
55366         * lib/popcount.h: New file.
55367         * m4/popcount.m4: New file.
55368
55369 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55370
55371         * build-aux/announce-gen: Update to GPLv3.
55372
55373         * build-aux/config.guess: Update from config.
55374
55375 2007-07-21  Bruno Haible  <bruno@clisp.org>
55376
55377         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
55378         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
55379
55380 2007-07-20  Jim Meyering  <jim@meyering.net>
55381
55382         * check-module: Diagnose a self-dependency.
55383
55384 2007-07-19  Bruno Haible  <bruno@clisp.org>
55385
55386         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
55387         empty.
55388         Reported by Eric Blake.
55389
55390 2007-07-18  Bruno Haible  <bruno@clisp.org>
55391
55392         * gnulib-tool: New options --po-base, --po-domain.
55393         (func_usage): Document them.
55394         (pobase, po_domain): New variables.
55395         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
55396         DEFAULT_TEXT_DOMAIN.
55397         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
55398         (func_import): Consider pobase and po_domain. Create a po/ directory.
55399         (func_create_testdir): Set pobase and po_domain to empty.
55400         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
55401         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
55402
55403 2007-07-18  Bruno Haible  <bruno@clisp.org>
55404
55405         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55406         EXTRA_DIST augmentation for files in build-aux/.
55407
55408 2007-07-16  Bruno Haible  <bruno@clisp.org>
55409
55410         * modules/lseek (License): Use the synonymous term "LGPLv2+".
55411         * modules/getdelim (License): Likewise.
55412
55413 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55414
55415         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
55416         * modules/d-type (License): Likewise.
55417         * modules/extensions (License): Likewise.
55418         * modules/fnmatch (License): Likewise.
55419         * modules/fseeko (License): Likewise.
55420         * modules/getaddrinfo (License): Likewise.
55421         * modules/getline (License): Likewise.
55422         * modules/getlogin_r (License): Likewise.
55423         * modules/getpass (License): Likewise.
55424         * modules/gettimeofday (License): Likewise.
55425         * modules/glob (License): Likewise.
55426         * modules/inet_ntop (License): Likewise.
55427         * modules/malloc (License): Likewise.
55428         * modules/malloca (License): Likewise.
55429         * modules/memmem (License): Likewise.
55430         * modules/mempcpy (License): Likewise.
55431         * modules/memset (License): Likewise.
55432         * modules/minmax (License): Likewise.
55433         * modules/mktime (License): Likewise.
55434         * modules/netinet_in (License): Likewise.
55435         * modules/pathmax (License): Likewise.
55436         * modules/poll (License): Likewise.
55437         * modules/regex (License): Likewise.
55438         * modules/snprintf (License): Likewise.
55439         * modules/stdbool (License): Likewise.
55440         * modules/stdint (License): Likewise.
55441         * modules/stdio (License): Likewise.
55442         * modules/strcase (License): Likewise.
55443         * modules/strcasestr (License): Likewise.
55444         * modules/strdup (License): Likewise.
55445         * modules/string (License): Likewise.
55446         * modules/strndup (License): Likewise.
55447         * modules/strnlen (License): Likewise.
55448         * modules/strpbrk (License): Likewise.
55449         * modules/strptime (License): Likewise.
55450         * modules/strsep (License): Likewise.
55451         * modules/sys_select (License): Likewise.
55452         * modules/sys_socket (License): Likewise.
55453         * modules/sys_stat (License): Likewise.
55454         * modules/sys_time (License): Likewise.
55455         * modules/time (License): Likewise.
55456         * modules/time_r (License): Likewise.
55457         * modules/timegm (License): Likewise.
55458         * modules/unistd (License): Likewise.
55459         * modules/vsnprintf (License): Likewise.
55460         * modules/wctype (License): Likewise.
55461
55462 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55463
55464         * modules/argz (License): LGPLv2+.
55465
55466 2007-07-15  Karl Berry  <karl@gnu.org>
55467
55468         * doc/gnulib.texi: revise node structure per new fdl.texi.
55469
55470 2007-07-14  Bruno Haible  <bruno@clisp.org>
55471
55472         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
55473         the output file.
55474         * lib/uniname/uninames.h: Regenerated.
55475
55476 2007-07-14  Karl Berry  <karl@gnu.org>
55477
55478         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
55479         omitting sectioning and index commands.
55480
55481 2007-07-13  Bruno Haible  <bruno@clisp.org>
55482
55483         New gnulib-tool option --more-symlinks.
55484         * gnulib-tool (func_usage): Document --more-symlinks.
55485         (do_copyrights): New variable.
55486         Recognize option --more-symlinks.
55487         (func_import): Don't add a copyright notice transform to
55488         sed_transform_lib_file if do_copyrights is empty.
55489
55490 2007-07-13  Bruno Haible  <bruno@clisp.org>
55491
55492         * lib/vasnprintf.c (decimal_point_char): Define also if
55493         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
55494         && !NEED_PRINTF_DIRECTIVE_A.
55495         Reported by Clemens Koller <clemens.koller@anagramm.de> via
55496         Gary V. Vaughan <gary@gnu.org>.
55497
55498 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
55499
55500         * lib/inttypes_.h: Undo previous change, since it was fixed
55501         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
55502
55503 2007-07-13  Bruno Haible  <bruno@clisp.org>
55504
55505         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
55506         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
55507
55508 2007-07-13  Jim Meyering  <jim@meyering.net>
55509
55510         df: Don't fail for Tru64's "file-on-file mount".
55511         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
55512         so we fall through and use statfs instead.  Details here:
55513         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
55514         Reported by Albert Chin.
55515
55516 2007-07-13  Bruno Haible  <bruno@clisp.org>
55517
55518         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
55519         * modules/configmake (License): Likewise.
55520         * modules/gettext (License): Likewise.
55521         * modules/gettext-h (License): Likewise.
55522         * modules/include_next (License): Likewise.
55523         * modules/link-warning (License): Likewise.
55524         * modules/localcharset (License): Likewise.
55525         * modules/localename (License): Likewise.
55526         * modules/lock (License): Likewise.
55527         * modules/relocatable-lib-lgpl (License): Likewise.
55528         * modules/size_max (License): Likewise.
55529         * modules/vasnprintf (License): Likewise.
55530         * modules/wchar (License): Likewise.
55531         * modules/xsize (License): Likewise.
55532
55533 2007-07-13  Bruno Haible  <bruno@clisp.org>
55534
55535         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
55536         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
55537
55538 2007-07-12  Bruno Haible  <bruno@clisp.org>
55539
55540         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
55541         in the modules files.
55542
55543 2007-07-11  Karl Berry  <karl@gnu.org>
55544
55545         * MODULES.html.sh (func_module): use
55546          sed -e '\|^'"${includefile}"'$|d'
55547          instead of /.../d, to avoid errors on $includefile's containing /.
55548
55549 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55550
55551         * gnulib-tool (func_import): Avoid duplication of --avoid
55552         statements
55553         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
55554         names to `_' in variable names.
55555
55556 2007-07-10  Eric Blake  <ebb9@byu.net>
55557
55558         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
55559         * NEWS: Document this change.
55560
55561 2007-07-08  Bruno Haible  <bruno@clisp.org>
55562
55563         Update to Unicode 5.0.
55564         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
55565         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
55566         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
55567         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
55568         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
55569         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
55570         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
55571         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
55572         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
55573         U+10A3F, U+1D242..U+1D244.
55574         (nonspacing_table_ind): Update.
55575         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
55576         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
55577
55578 2007-07-08  Bruno Haible  <bruno@clisp.org>
55579
55580         Update to Unicode 5.0.
55581         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
55582         code transform. Extend the name index field of unicode_name_to_code and
55583         unicode_code_to_name from 16 to 24 bits.
55584         * lib/uniname/uniname.c (unicode_character_name,
55585         unicode_name_character): Add the range 0x12xxx to the code transform.
55586         * lib/uniname/uninames.h: Regenerated.
55587         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
55588
55589 2007-07-07  Bruno Haible  <bruno@clisp.org>
55590
55591         * modules/wcwidth-tests: New file.
55592         * tests/test-wcwidth.c: New file.
55593
55594         Work around MacOS X wcwidth() bug.
55595         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
55596         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
55597         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
55598         original wcwidth in non-UTF-8 locales.
55599         * modules/wcwidth (Depends-on): Add localcharset, streq,
55600         uniwidth/width.
55601         * doc/functions/wcwidth.texi: Update.
55602
55603 2007-07-07  Bruno Haible  <bruno@clisp.org>
55604
55605         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
55606         (wcwidth): New declaration.
55607         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
55608         macros.
55609         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
55610         here. Prepare for creating <wchar.h> unconditionally.
55611         * modules/wchar (Depends-on): Add link-warning.
55612         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
55613         REPLACE_WCWIDTH, and GL_LINK_WARNING.
55614         * lib/wcwidth.h: Remove file.
55615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
55616         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
55617         * modules/wcwidth (Files): Remove lib/wcwidth.h.
55618         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
55619         (Include): Replace wcwidth.h with <wchar.h>.
55620         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
55621         * lib/mbchar.h: Don't include wcwidth.h.
55622         * lib/mbswidth.c: Likewise.
55623         * NEWS: Mention the change.
55624
55625 2007-07-07  Bruno Haible  <bruno@clisp.org>
55626
55627         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
55628         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
55629         definition with an external declaration.
55630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
55631         defined as a function. Remove AC_C_INLINE requirement.
55632         * modules/wcwidth (Files): Add lib/wcwidth.c.
55633         (Makefile.am): Remove redundant statement.
55634
55635 2007-07-07  Bruno Haible  <bruno@clisp.org>
55636
55637         * MODULES.html.sh (Unicode string functions): Add the new modules.
55638
55639         * tests/uniwidth/test-u32-strwidth.c: New file.
55640         * modules/uniwidth/u32-strwidth-tests: New file.
55641
55642         * lib/uniwidth/u32-strwidth.c: New file.
55643         * modules/uniwidth/u32-strwidth: New file.
55644
55645         * tests/uniwidth/test-u16-strwidth.c: New file.
55646         * modules/uniwidth/u16-strwidth-tests: New file.
55647
55648         * lib/uniwidth/u16-strwidth.c: New file.
55649         * modules/uniwidth/u16-strwidth: New file.
55650
55651         * tests/uniwidth/test-u8-strwidth.c: New file.
55652         * modules/uniwidth/u8-strwidth-tests: New file.
55653
55654         * lib/uniwidth/u8-strwidth.c: New file.
55655         * modules/uniwidth/u8-strwidth: New file.
55656
55657         * tests/uniwidth/test-u32-width.c: New file.
55658         * modules/uniwidth/u32-width-tests: New file.
55659
55660         * lib/uniwidth/u32-width.c: New file.
55661         * modules/uniwidth/u32-width: New file.
55662
55663         * tests/uniwidth/test-u16-width.c: New file.
55664         * modules/uniwidth/u16-width-tests: New file.
55665
55666         * lib/uniwidth/u16-width.c: New file.
55667         * modules/uniwidth/u16-width: New file.
55668
55669         * tests/uniwidth/test-u8-width.c: New file.
55670         * modules/uniwidth/u8-width-tests: New file.
55671
55672         * lib/uniwidth/u8-width.c: New file.
55673         * modules/uniwidth/u8-width: New file.
55674
55675         * tests/uniwidth/test-uc_width.c: New file.
55676         * modules/uniwidth/width-tests: New file.
55677
55678         * lib/uniwidth/width.c: New file, from GNU libiconv.
55679         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
55680         * modules/uniwidth/width: New file.
55681
55682         * lib/uniwidth.h: New file, from GNU libiconv.
55683         * modules/uniwidth/base: New file.
55684
55685 2007-07-07  Bruno Haible  <bruno@clisp.org>
55686
55687         * lib/uniname.h: New file, from GNU gettext.
55688         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
55689         * lib/uniname/uninames.h: New file, from GNU gettext.
55690         * lib/uniname/uniname.c: New file, from GNU gettext.
55691         * tests/uniname/test-uninames.sh: New file.
55692         * tests/uniname/test-uninames.c: New file, from GNU gettext.
55693         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
55694         * modules/uniname/base: New file.
55695         * modules/uniname/uniname: New file.
55696         * modules/uniname/uniname-tests: New file.
55697         * MODULES.html.sh (Unicode string functions): Add the new modules.
55698
55699 2007-07-06  Bruno Haible  <bruno@clisp.org>
55700
55701         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
55702
55703 2007-07-06  Bruno Haible  <bruno@clisp.org>
55704
55705         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
55706         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
55707         includes <cygwin/sys_time.h> which includes <sys/select.h> which
55708         include <sys/time.h>.
55709         Reported by Eric Blake.
55710
55711 2007-07-06  Eric Blake  <ebb9@byu.net>
55712
55713         Fix testing canonicalize on cygwin.
55714         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55715         Revert patch from 2007-06-19.
55716         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
55717         canonicalize module is also in use.
55718         * tests/test-canonicalize.c: New file.
55719         * tests/test-canonicalize.sh: Likewise.
55720         * modules/canonicalize-tests: Likewise.
55721
55722 2007-07-06  Jim Meyering  <jim@meyering.net>
55723
55724         * lib/getugroups.c (getugroups): Detect getgrent failure.
55725         Adjust comment to reflect reality: this function may return -1.
55726
55727 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55728
55729         * build-aux/bootstrap (TP_URL,get_translations): Update to use
55730         the new TP address.
55731         (usage): Fix typo
55732         (gnulib_mk): New variable.
55733
55734 2007-07-05  Jim Meyering  <jim@meyering.net>
55735
55736         Don't let endgrent clobber errno, no matter how improbable.
55737         * lib/getugroups.c (getugroups): Save and restore errno around
55738         endgrent call.
55739
55740         Close the group DB even when failing with 2^31 or more members.
55741         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
55742
55743 2007-07-04  Jim Meyering  <jim@meyering.net>
55744
55745         * lib/getugroups.h: New file.
55746         * lib/getugroups.c: Include "getugroups.h".
55747         Remove uses of "register" keyword.
55748         Move local variable, "cp", down into scope where used.
55749         Give "username" parameter the "const" attribute.
55750         * modules/getugroups (Files): Add lib/getugroups.h
55751
55752 2007-07-04  Karl Berry  <karl@gnu.org>
55753
55754         * MODULES.html.sh (func_all_modules): Complete rename of
55755         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
55756
55757 2007-07-02  Bruno Haible  <bruno@clisp.org>
55758
55759         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
55760         mode, when inttypes.h comes from gnulib.
55761         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55762
55763 2007-07-02  Simon Josefsson  <simon@josefsson.org>
55764
55765         * NEWS: Mention lgpl module name change.
55766
55767         * modules/lgpl-2.1: Renamed from lgpl.
55768
55769         * NEWS: Mention gpl module name change.
55770
55771         * modules/gpl-3.0: New file, based on gpl-2.0.
55772
55773         * modules/gpl-2.0: Renamed from gpl.
55774
55775         * modules/gpl: Fix filename, doc/gpl.texi is now found at
55776         doc/gpl-2.0.texi.
55777
55778 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55779
55780         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
55781         #define __STDC_LIMIT_MACROS temporarily while including
55782         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
55783         Problem reported by Joel E. Denny in
55784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
55785
55786 2007-07-01  Bruno Haible  <bruno@clisp.org>
55787
55788         * lib/unistdio.h: New file.
55789         * lib/unistdio/u-asnprintf.h: New file.
55790         * lib/unistdio/u-asprintf.h: New file.
55791         * lib/unistdio/u-printf-args.c: New file.
55792         * lib/unistdio/u-printf-args.h: New file.
55793         * lib/unistdio/u-printf-parse.h: New file.
55794         * lib/unistdio/u-snprintf.h: New file.
55795         * lib/unistdio/u-sprintf.h: New file.
55796         * lib/unistdio/u-vasprintf.h: New file.
55797         * lib/unistdio/u-vsnprintf.h: New file.
55798         * lib/unistdio/u-vsprintf.h: New file.
55799         * lib/unistdio/ulc-asnprintf.c: New file.
55800         * lib/unistdio/ulc-asprintf.c: New file.
55801         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
55802         * lib/unistdio/ulc-printf-parse.c: New file.
55803         * lib/unistdio/ulc-snprintf.c: New file.
55804         * lib/unistdio/ulc-sprintf.c: New file.
55805         * lib/unistdio/ulc-vasnprintf.c: New file.
55806         * lib/unistdio/ulc-vasprintf.c: New file.
55807         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
55808         * lib/unistdio/ulc-vsnprintf.c: New file.
55809         * lib/unistdio/ulc-vsprintf.c: New file.
55810         * lib/unistdio/u8-asnprintf.c: New file.
55811         * lib/unistdio/u8-asprintf.c: New file.
55812         * lib/unistdio/u8-printf-parse.c: New file.
55813         * lib/unistdio/u8-snprintf.c: New file.
55814         * lib/unistdio/u8-sprintf.c: New file.
55815         * lib/unistdio/u8-vasnprintf.c: New file.
55816         * lib/unistdio/u8-vasprintf.c: New file.
55817         * lib/unistdio/u8-vsnprintf.c: New file.
55818         * lib/unistdio/u8-vsprintf.c: New file.
55819         * lib/unistdio/u8-u8-asnprintf.c: New file.
55820         * lib/unistdio/u8-u8-asprintf.c: New file.
55821         * lib/unistdio/u8-u8-snprintf.c: New file.
55822         * lib/unistdio/u8-u8-sprintf.c: New file.
55823         * lib/unistdio/u8-u8-vasnprintf.c: New file.
55824         * lib/unistdio/u8-u8-vasprintf.c: New file.
55825         * lib/unistdio/u8-u8-vsnprintf.c: New file.
55826         * lib/unistdio/u8-u8-vsprintf.c: New file.
55827         * lib/unistdio/u16-asnprintf.c: New file.
55828         * lib/unistdio/u16-asprintf.c: New file.
55829         * lib/unistdio/u16-printf-parse.c: New file.
55830         * lib/unistdio/u16-snprintf.c: New file.
55831         * lib/unistdio/u16-sprintf.c: New file.
55832         * lib/unistdio/u16-vasnprintf.c: New file.
55833         * lib/unistdio/u16-vasprintf.c: New file.
55834         * lib/unistdio/u16-vsnprintf.c: New file.
55835         * lib/unistdio/u16-vsprintf.c: New file.
55836         * lib/unistdio/u16-u16-asnprintf.c: New file.
55837         * lib/unistdio/u16-u16-asprintf.c: New file.
55838         * lib/unistdio/u16-u16-snprintf.c: New file.
55839         * lib/unistdio/u16-u16-sprintf.c: New file.
55840         * lib/unistdio/u16-u16-vasnprintf.c: New file.
55841         * lib/unistdio/u16-u16-vasprintf.c: New file.
55842         * lib/unistdio/u16-u16-vsnprintf.c: New file.
55843         * lib/unistdio/u16-u16-vsprintf.c: New file.
55844         * lib/unistdio/u32-asnprintf.c: New file.
55845         * lib/unistdio/u32-asprintf.c: New file.
55846         * lib/unistdio/u32-printf-parse.c: New file.
55847         * lib/unistdio/u32-snprintf.c: New file.
55848         * lib/unistdio/u32-sprintf.c: New file.
55849         * lib/unistdio/u32-vasnprintf.c: New file.
55850         * lib/unistdio/u32-vasprintf.c: New file.
55851         * lib/unistdio/u32-vsnprintf.c: New file.
55852         * lib/unistdio/u32-vsprintf.c: New file.
55853         * lib/unistdio/u32-u32-asnprintf.c: New file.
55854         * lib/unistdio/u32-u32-asprintf.c: New file.
55855         * lib/unistdio/u32-u32-snprintf.c: New file.
55856         * lib/unistdio/u32-u32-sprintf.c: New file.
55857         * lib/unistdio/u32-u32-vasnprintf.c: New file.
55858         * lib/unistdio/u32-u32-vasprintf.c: New file.
55859         * lib/unistdio/u32-u32-vsnprintf.c: New file.
55860         * lib/unistdio/u32-u32-vsprintf.c: New file.
55861         * tests/unistdio/test-ulc-asnprintf1.c: New file.
55862         * tests/unistdio/test-ulc-asnprintf1.h: New file.
55863         * tests/unistdio/test-ulc-printf1.h: New file.
55864         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
55865         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
55866         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
55867         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
55868         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
55869         * tests/unistdio/test-ulc-vasprintf1.c: New file.
55870         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
55871         * tests/unistdio/test-ulc-vsprintf1.c: New file.
55872         * tests/unistdio/test-u8-asnprintf1.c: New file.
55873         * tests/unistdio/test-u8-asnprintf1.h: New file.
55874         * tests/unistdio/test-u8-printf1.h: New file.
55875         * tests/unistdio/test-u8-vasnprintf1.c: New file.
55876         * tests/unistdio/test-u8-vasnprintf2.c: New file.
55877         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
55878         * tests/unistdio/test-u8-vasnprintf3.c: New file.
55879         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
55880         * tests/unistdio/test-u8-vasprintf1.c: New file.
55881         * tests/unistdio/test-u8-vsnprintf1.c: New file.
55882         * tests/unistdio/test-u8-vsprintf1.c: New file.
55883         * tests/unistdio/test-u16-asnprintf1.c: New file.
55884         * tests/unistdio/test-u16-asnprintf1.h: New file.
55885         * tests/unistdio/test-u16-printf1.h: New file.
55886         * tests/unistdio/test-u16-vasnprintf1.c: New file.
55887         * tests/unistdio/test-u16-vasnprintf2.c: New file.
55888         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
55889         * tests/unistdio/test-u16-vasnprintf3.c: New file.
55890         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
55891         * tests/unistdio/test-u16-vasprintf1.c: New file.
55892         * tests/unistdio/test-u16-vsnprintf1.c: New file.
55893         * tests/unistdio/test-u16-vsprintf1.c: New file.
55894         * tests/unistdio/test-u32-asnprintf1.c: New file.
55895         * tests/unistdio/test-u32-asnprintf1.h: New file.
55896         * tests/unistdio/test-u32-printf1.h: New file.
55897         * tests/unistdio/test-u32-vasnprintf1.c: New file.
55898         * tests/unistdio/test-u32-vasnprintf2.c: New file.
55899         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
55900         * tests/unistdio/test-u32-vasnprintf3.c: New file.
55901         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
55902         * tests/unistdio/test-u32-vasprintf1.c: New file.
55903         * tests/unistdio/test-u32-vsnprintf1.c: New file.
55904         * tests/unistdio/test-u32-vsprintf1.c: New file.
55905         * modules/unistdio/base: New file.
55906         * modules/unistdio/u-printf-args: New file.
55907         * modules/unistdio/ulc-asnprintf: New file.
55908         * modules/unistdio/ulc-asprintf: New file.
55909         * modules/unistdio/ulc-fprintf: New file.
55910         * modules/unistdio/ulc-printf-parse: New file.
55911         * modules/unistdio/ulc-snprintf: New file.
55912         * modules/unistdio/ulc-sprintf: New file.
55913         * modules/unistdio/ulc-vasnprintf: New file.
55914         * modules/unistdio/ulc-vasprintf: New file.
55915         * modules/unistdio/ulc-vfprintf: New file.
55916         * modules/unistdio/ulc-vsnprintf: New file.
55917         * modules/unistdio/ulc-vsprintf: New file.
55918         * modules/unistdio/u8-asnprintf: New file.
55919         * modules/unistdio/u8-asprintf: New file.
55920         * modules/unistdio/u8-printf-parse: New file.
55921         * modules/unistdio/u8-snprintf: New file.
55922         * modules/unistdio/u8-sprintf: New file.
55923         * modules/unistdio/u8-vasnprintf: New file.
55924         * modules/unistdio/u8-vasprintf: New file.
55925         * modules/unistdio/u8-vsnprintf: New file.
55926         * modules/unistdio/u8-vsprintf: New file.
55927         * modules/unistdio/u8-u8-asnprintf: New file.
55928         * modules/unistdio/u8-u8-asprintf: New file.
55929         * modules/unistdio/u8-u8-snprintf: New file.
55930         * modules/unistdio/u8-u8-sprintf: New file.
55931         * modules/unistdio/u8-u8-vasnprintf: New file.
55932         * modules/unistdio/u8-u8-vasprintf: New file.
55933         * modules/unistdio/u8-u8-vsnprintf: New file.
55934         * modules/unistdio/u8-u8-vsprintf: New file.
55935         * modules/unistdio/u16-asnprintf: New file.
55936         * modules/unistdio/u16-asprintf: New file.
55937         * modules/unistdio/u16-printf-parse: New file.
55938         * modules/unistdio/u16-snprintf: New file.
55939         * modules/unistdio/u16-sprintf: New file.
55940         * modules/unistdio/u16-vasnprintf: New file.
55941         * modules/unistdio/u16-vasprintf: New file.
55942         * modules/unistdio/u16-vsnprintf: New file.
55943         * modules/unistdio/u16-vsprintf: New file.
55944         * modules/unistdio/u16-u16-asnprintf: New file.
55945         * modules/unistdio/u16-u16-asprintf: New file.
55946         * modules/unistdio/u16-u16-snprintf: New file.
55947         * modules/unistdio/u16-u16-sprintf: New file.
55948         * modules/unistdio/u16-u16-vasnprintf: New file.
55949         * modules/unistdio/u16-u16-vasprintf: New file.
55950         * modules/unistdio/u16-u16-vsnprintf: New file.
55951         * modules/unistdio/u16-u16-vsprintf: New file.
55952         * modules/unistdio/u32-asnprintf: New file.
55953         * modules/unistdio/u32-asprintf: New file.
55954         * modules/unistdio/u32-printf-parse: New file.
55955         * modules/unistdio/u32-snprintf: New file.
55956         * modules/unistdio/u32-sprintf: New file.
55957         * modules/unistdio/u32-vasnprintf: New file.
55958         * modules/unistdio/u32-vasprintf: New file.
55959         * modules/unistdio/u32-vsnprintf: New file.
55960         * modules/unistdio/u32-vsprintf: New file.
55961         * modules/unistdio/u32-u32-asnprintf: New file.
55962         * modules/unistdio/u32-u32-asprintf: New file.
55963         * modules/unistdio/u32-u32-snprintf: New file.
55964         * modules/unistdio/u32-u32-sprintf: New file.
55965         * modules/unistdio/u32-u32-vasnprintf: New file.
55966         * modules/unistdio/u32-u32-vasprintf: New file.
55967         * modules/unistdio/u32-u32-vsnprintf: New file.
55968         * modules/unistdio/u32-u32-vsprintf: New file.
55969         * modules/unistdio/ulc-asnprintf-tests: New file.
55970         * modules/unistdio/ulc-vasnprintf-tests: New file.
55971         * modules/unistdio/ulc-vasprintf-tests: New file.
55972         * modules/unistdio/ulc-vsnprintf-tests: New file.
55973         * modules/unistdio/ulc-vsprintf-tests: New file.
55974         * modules/unistdio/u8-asnprintf-tests: New file.
55975         * modules/unistdio/u8-vasnprintf-tests: New file.
55976         * modules/unistdio/u8-vasprintf-tests: New file.
55977         * modules/unistdio/u8-vsnprintf-tests: New file.
55978         * modules/unistdio/u8-vsprintf-tests: New file.
55979         * modules/unistdio/u16-asnprintf-tests: New file.
55980         * modules/unistdio/u16-vasnprintf-tests: New file.
55981         * modules/unistdio/u16-vasprintf-tests: New file.
55982         * modules/unistdio/u16-vsnprintf-tests: New file.
55983         * modules/unistdio/u16-vsprintf-tests: New file.
55984         * modules/unistdio/u32-asnprintf-tests: New file.
55985         * modules/unistdio/u32-vasnprintf-tests: New file.
55986         * modules/unistdio/u32-vasprintf-tests: New file.
55987         * modules/unistdio/u32-vsnprintf-tests: New file.
55988         * modules/unistdio/u32-vsprintf-tests: New file.
55989         * MODULES.html.sh (Unicode string functions): Add the new modules.
55990
55991 2007-07-01  Bruno Haible  <bruno@clisp.org>
55992
55993         * lib/sprintf.c (sprintf): Limit the available length estimation,
55994         to avoid address wraparound.
55995         * lib/vsprintf.c (vsprintf): Likewise.
55996         * modules/sprintf-posix (Dependencies): Add stdint.
55997         * modules/vsprintf-posix (Dependencies): Likewise.
55998
55999 2007-07-01  Bruno Haible  <bruno@clisp.org>
56000
56001         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
56002         Windows PATH as well. Conservative double-quoting. Comments.
56003
56004 2007-07-01  Bruno Haible  <bruno@clisp.org>
56005             Eric Blake  <ebb9@byu.net>
56006             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56007
56008         * gnulib-tool (self_abspathname): Fix algorithm to cope with
56009         empty components in $PATH, denoting '.'.
56010
56011 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56012
56013         * gnulib-tool: Fix indentation.
56014         (func_create_megatestdir): Likewise.
56015         Report by Bruno Haible.
56016
56017 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56018
56019         Sync from Automake.
56020         * build-aux/gnupload: Fix shell portability issues with for loops.
56021         Report by Karl Berry.
56022
56023 2007-06-29  Simon Josefsson  <simon@josefsson.org>
56024
56025         * build-aux/maint.mk (POURL): Use translationproject.org.
56026
56027 2007-06-27  Simon Josefsson  <simon@josefsson.org>
56028             Bruno Haible  <bruno@clisp.org>
56029
56030         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
56031         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
56032         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
56033         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
56034         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
56035
56036 2007-06-27  Bruno Haible  <bruno@clisp.org>
56037
56038         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
56039         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
56040
56041 2007-06-26  Karl Berry  <karl@gnu.org>
56042
56043         * MODULES.html.sh: remove xreadlink-with-size.
56044
56045 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56046
56047         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
56048         method that I hope also handles the double-include problem noted
56049         by Bruno Haible in
56050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
56051
56052 2007-06-23  Bruno Haible  <bruno@clisp.org>
56053
56054         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56055         Don't let the 'mostlyclean' target fail if the last subdirectory could
56056         not be removed.
56057         Reported by Karl Berry.
56058
56059 2007-06-23  Bruno Haible  <bruno@clisp.org>
56060
56061         * gnulib-tool (echo): Add a speedier workaround for ksh.
56062         * tests/test-echo.sh: Likewise.
56063
56064 2007-06-23  Bruno Haible  <bruno@clisp.org>
56065
56066         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
56067         * tests/test-echo.sh: Likewise.
56068
56069 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56070
56071         * gnulib-tool (IFS): Initialize early, so we don't set it to
56072         empty later.
56073         (self_abspathname): Rewrite algorithm to set it, reindent.
56074         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
56075         (func_create_megatestdir): Merge some sed scripts.
56076
56077 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56078
56079         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
56080         exposed by Sun Studio 11 cc on Solaris 8.
56081
56082 2007-06-22  Bruno Haible  <bruno@clisp.org>
56083
56084         * gnulib-tool (echo): Ensure the echo primitive does not interpret
56085         backslashes.
56086         * tests/test-echo.sh: New file.
56087
56088 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56089
56090         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
56091         simplify `sed_replace_build_aux' scripts, they are portable but
56092         echoing them with `echo' is not.
56093         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
56094
56095 2007-06-21  Karl Berry  <karl@gnu.org>
56096
56097         * config/srclist.txt: guess we can't handle the licenses via
56098         srclist at the moment.
56099
56100 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56101
56102         * MODULES.html.sh: Add include_next.
56103         * modules/include_next: New file.
56104
56105 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56106
56107         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
56108         INCLUDE_NEXT.
56109         (gl_CHECK_NEXT_HEADERS): New macro.
56110         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
56111         the obsolescent gl_ABSOLUTE_HEADER.
56112         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
56113         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
56114         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
56115         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56116         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56117         * m4/math_h.m4 (gl_MATH_H): Likewise.
56118         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56119         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56120         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
56121         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56122         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
56123         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
56124         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
56125         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56126         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56127         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
56128         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
56129         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
56130         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
56131         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56132         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56133         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56134         * m4/inttypes.m4 (gl_INTTYPES_H): Define
56135         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
56136         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
56137         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
56138         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
56139         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
56140         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
56141         * lib/float_.h: Likewise.
56142         * lib/inttypes_.h: Likewise.
56143         * lib/math_.h: Likewise.
56144         * lib/search_.h: Likewise.
56145         * lib/signal_.h: Likewise.
56146         * lib/stdint_.h: Likewise.
56147         * lib/stdio_.h: Likewise.
56148         * lib/stdlib_.h: Likewise.
56149         * lib/string_.h: Likewise.
56150         * lib/sys_stat_.h: Likewise.
56151         * lib/sys_time_.h: Likewise.
56152         * lib/time_.h: Likewise.
56153         * lib/unistd_.h: Likewise.
56154         * lib/wchar_.h: Likewise.
56155         * lib/wctype_.h: Likewise.
56156         * lib/dirent_.h: Likewise.
56157         * lib/iconv_.h: Likewise.
56158         * lib/locale_.h: Likewise.
56159         * lib/netinet_in_.h: Likewise.
56160         * lib/sys_select_.h: Likewise.
56161         * lib/sys_socket_.h: Likewise.
56162         * lib/sysexits_.h: Likewise.
56163         * modules/fcntl (Depends-on): Depend on include_next, not
56164         absolute_header.
56165         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
56166         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
56167         * modules/fchdir: Likewise.
56168         * modules/float: Likewise.
56169         * modules/iconv_open: Likewise.
56170         * modules/inttypes: Likewise.
56171         * modules/locale: Likewise.
56172         * modules/math: Likewise.
56173         * modules/netinet_in: Likewise.
56174         * modules/search: Likewise.
56175         * modules/signal: Likewise.
56176         * modules/stdint: Likewise.
56177         * modules/stdio: Likewise.
56178         * modules/stdlib: Likewise.
56179         * modules/string: Likewise.
56180         * modules/sys_select: Likewise.
56181         * modules/sys_socket: Likewise.
56182         * modules/sys_stat: Likewise.
56183         * modules/sys_time: Likewise.
56184         * modules/sysexits: Likewise.
56185         * modules/time: Likewise.
56186         * modules/unistd: Likewise.
56187         * modules/wchar: Likewise.
56188         * modules/wctype: Likewise.
56189         * modules/sys_stat: Change maintainer to "all".
56190         * modules/unistd: Likewise.
56191
56192 2007-06-20  Karl Berry  <karl@gnu.org>
56193
56194         * config/srclist.txt: track www changes in license files.
56195
56196 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
56197
56198         * build-aux/bootstrap: Remove stray dot.
56199         Make sure build_aux settings are honored when linking
56200         gnulib_extra_files.
56201
56202 2007-06-19  Eric Blake  <ebb9@byu.net>
56203
56204         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56205         Allow compilation on cygwin.
56206
56207 2007-06-19  Jim Meyering  <jim@meyering.net>
56208
56209         xreadlink-with-size: Remove module.  No longer used.
56210         Ex-callers now use xreadlink or mreadlink-with-size.
56211         * modules/xreadlink-with-size: Remove module.
56212         * lib/xreadlink-with-size.c: Remove file.
56213         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
56214         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
56215         just before the function definition *is* accurate.
56216
56217         Eliminate one way canonicalize_filename_mode could exit.
56218         * lib/canonicalize.c (canonicalize_filename_mode):
56219         Use mreadlink_with_size, not xreadlink_with_size.
56220
56221 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
56222
56223         Detect porting problems to FreeBSD/arm, which has time_t wider than
56224         long int.  Original problem reported for GNU diff by Xin Li in
56225         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
56226         * modules/getdate (Depends-on): Add intprops, verify.
56227         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
56228         is an integer type no wider than long int.
56229
56230 2007-06-18  Jim Meyering  <jim@meyering.net>
56231
56232         New module: mreadlink-with-size.
56233         * MODULES.html.sh: Add mreadlink-with-size.
56234         * modules/mreadlink-with-size: New module
56235         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
56236         not xreadlink-with-size.
56237         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
56238
56239 2007-06-16  Bruno Haible  <bruno@clisp.org>
56240
56241         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
56242         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
56243         Reported by Gary V. Vaughan <gary@gnu.org>.
56244
56245 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
56246
56247         Revamp lchown so that it lives in unistd.h where it belongs.
56248         * lib/lchown.h: Remove.
56249         * lib/dirchownmod.c: Don't include lib/lchown.h.
56250         * lib/fchownat.c: Likewise.
56251         * lib/openat.c: Likewise.
56252         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
56253         does not follow symlinks.
56254         (EOPNOTSUPP): Define if not defined.
56255         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
56256         is defined to 0.
56257         (lchown): New decl.
56258         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
56259         Do not check for lchown decl.
56260         Set REPLACE_LCHOWN.
56261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
56262         REPLACE_LCHOWN.
56263         * modules/chown: Make it clear it follows symlinks.
56264         * modules/lchown: Make it clear it doesn't follow symlinks.
56265         (Files): Remove lib/lchown.h
56266         (Depends-on): Add unistd.
56267         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
56268         (Include): Include <unistd.h>, not "lchown.h".
56269         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
56270         REPLACE_LCHOWN.
56271
56272 2007-06-15  Jim Meyering  <jim@meyering.net>
56273
56274         Change license (GPL to LGPL) of fsusage and dependents.
56275         * modules/fsusage (License): Change to LGPL.
56276         * modules/full-read (License): Likewise.
56277         * modules/full-write (License): Likewise.
56278         * modules/safe-read (License): Likewise.
56279         * modules/safe-write (License): Likewise.
56280
56281 2007-06-14  Ben Pfaff  <blp@gnu.org>
56282
56283         Missing part of allocsa -> malloca transition.
56284         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
56285         gl_MALLOCA.
56286
56287 2007-06-12  Bruno Haible  <bruno@clisp.org>
56288
56289         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
56290         to ia64, x86_64, i386.
56291         Reported by Eric Blake.
56292
56293 2007-06-12  Bruno Haible  <bruno@clisp.org>
56294
56295         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
56296         cross-compiling to x86_64.
56297
56298 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
56299
56300         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
56301         glitch reported by Ralf Wildenhues in
56302         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
56303
56304         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
56305         Vin Shelton.
56306
56307 2007-06-11  Bruno Haible  <bruno@clisp.org>
56308
56309         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
56310         replacement string.
56311         Reported by Eric Blake.
56312
56313 2007-06-10  Bruno Haible  <bruno@clisp.org>
56314
56315         Prepare vasnprintf code for use with Unicode strings.
56316         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
56317         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
56318         TYPE_U32_STRING.
56319         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
56320         a_u32_string variants.
56321         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
56322         * lib/printf-args.c: Don't include config.h and the specification
56323         header if PRINTF_FETCHARGS is already defined.
56324         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
56325         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
56326         TYPE_U16_STRING, TYPE_U32_STRING.
56327         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
56328         u16_directive, u16_directives, u32_directive, u32_directives): New
56329         types.
56330         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
56331         New declarations.
56332         * lib/printf-parse.c: Don't include config.h and the specification
56333         header if PRINTF_PARSE is already defined. Eliminate the set of
56334         parameters for WIDE_CHAR_VERSION; the user of this file must provide
56335         them now. Include c-ctype.h.
56336         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
56337         directive and CHAR_T_ONLY_ASCII.
56338         * lib/vasnprintf.c: Don't include config.h and the specification header
56339         if VASNPRINTF is already defined.
56340         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
56341         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
56342         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
56343         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
56344         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
56345         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
56346         code accordingly.
56347         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
56348         pad_ourselves also in this case, with the 'c' and 's' directives, and
56349         with a different notion of "width".
56350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
56351
56352 2007-06-10  Bruno Haible  <bruno@clisp.org>
56353
56354         * modules/unistr/u32-mbsnlen: New file.
56355         * lib/unistr/u32-mbsnlen.c: New file.
56356
56357         * modules/unistr/u16-mbsnlen: New file.
56358         * lib/unistr/u16-mbsnlen.c: New file.
56359
56360         * modules/unistr/u8-mbsnlen: New file.
56361         * lib/unistr/u8-mbsnlen.c: New file.
56362
56363         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
56364         declarations.
56365
56366 2007-06-10  Bruno Haible  <bruno@clisp.org>
56367
56368         * lib/string_.h (mbsnlen): New declaration.
56369         * lib/mbsnlen.c: New file.
56370         * m4/mbsnlen.m4: New file.
56371         * modules/mbsnlen: New file.
56372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
56373         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
56374         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
56375
56376 2007-06-10  Bruno Haible  <bruno@clisp.org>
56377
56378         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
56379
56380 2007-06-10  Bruno Haible  <bruno@clisp.org>
56381
56382         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
56383         * lib/mbuiter.h: Likewise.
56384
56385 2007-06-10  Bruno Haible  <bruno@clisp.org>
56386
56387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
56388         declaration.
56389
56390 2007-06-10  Karl Berry  <karl@gnu.org>
56391
56392         * config/srclist.txt: remove gettext entries, Bruno prefers
56393         to update individually.
56394
56395 2007-06-10  Bruno Haible  <bruno@clisp.org>
56396
56397         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
56398         'maxlen'. Ensure only length + width bytes are allocated, not
56399         length + 1 + width.
56400
56401 2007-06-09  Bruno Haible  <bruno@clisp.org>
56402
56403         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
56404         (CHAR_T): Remove macro.
56405         (VASNPRINTF): Update.
56406
56407 2007-06-09  Bruno Haible  <bruno@clisp.org>
56408
56409         * MODULES.html.sh (Unicode string functions): Add the new modules.
56410
56411         * modules/uniconv/u32-conv-to-enc: New file.
56412         * lib/uniconv/u32-conv-to-enc.c: New file.
56413         * modules/uniconv/u32-conv-to-enc-tests: New file.
56414         * tests/uniconv/test-u32-conv-to-enc.c: New file.
56415
56416         * modules/uniconv/u16-conv-to-enc: New file.
56417         * lib/uniconv/u16-conv-to-enc.c: New file.
56418         * lib/uniconv/u-conv-to-enc.h: New file.
56419         * modules/uniconv/u16-conv-to-enc-tests: New file.
56420         * tests/uniconv/test-u16-conv-to-enc.c: New file.
56421
56422         * modules/uniconv/u8-conv-to-enc: New file.
56423         * lib/uniconv/u8-conv-to-enc.c: New file.
56424         * modules/uniconv/u8-conv-to-enc-tests: New file.
56425         * tests/uniconv/test-u8-conv-to-enc.c: New file.
56426
56427         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
56428         u32_conv_to_encoding): New declarations.
56429
56430 2007-06-09  Bruno Haible  <bruno@clisp.org>
56431
56432         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
56433
56434 2007-06-09  Bruno Haible  <bruno@clisp.org>
56435
56436         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
56437         * modules/malloca: Renamed from modules/allocsa, updated.
56438         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
56439         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
56440         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
56441         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
56442         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
56443         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
56444         * modules/xmalloca: Renamed from modules/xallocsa, updated.
56445         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
56446         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
56447         * modules/c-strcasestr (Depends-on): Update.
56448         * lib/c-strcasestr.c: Update.
56449         * modules/c-strstr (Depends-on): Update.
56450         * lib/c-strstr.c: Update.
56451         * modules/canonicalize-lgpl (Depends-on): Update.
56452         * lib/canonicalize-lgpl.c: Update.
56453         * modules/clean-temp (Depends-on): Update.
56454         * lib/clean-temp.c: Update.
56455         * modules/csharpcomp (Depends-on): Update.
56456         * lib/csharpcomp.c: Update.
56457         * modules/csharpexec (Depends-on): Update.
56458         * lib/csharpexec.c: Update.
56459         * modules/javacomp (Depends-on): Update.
56460         * lib/javacomp.c: Update.
56461         * modules/javaexec (Depends-on): Update.
56462         * lib/javaexec.c: Update.
56463         * modules/mbscasestr (Depends-on): Update.
56464         * lib/mbscasestr.c: Update.
56465         * modules/mbsstr (Depends-on): Update.
56466         * lib/mbsstr.c: Update.
56467         * modules/setenv (Depends-on): Update.
56468         * lib/setenv.c: Update.
56469         * modules/strcasestr (Depends-on): Update.
56470         * lib/strcasestr.c: Update.
56471         * modules/striconveha (Depends-on): Update.
56472         * lib/striconveha.c: Update.
56473         * modules/relocatable-prog-wrapper (Files): Update.
56474         * lib/relocwrapper.c: Update.
56475         * build-aux/install-reloc: Update.
56476         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
56477
56478 2007-06-08  Bruno Haible  <bruno@clisp.org>
56479
56480         Port to uClibc.
56481         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
56482         * lib/fpurge.c (fpurge): Likewise.
56483         * lib/freading.c (freading): Likewise.
56484         * lib/fseeko.c (rpl_fseeko): Likewise.
56485         * lib/fseterr.c (fseterr): Likewise.
56486         * lib/fwriting.c (fwriting): Likewise.
56487         * tests/test-fflush.c (main): Avoid a failure on uClibc.
56488
56489 2007-06-08  Bruno Haible  <bruno@clisp.org>
56490
56491         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
56492         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
56493         * modules/gettext (Files): Add m4/intlmacosx.m4.
56494
56495 2007-06-07  Bruno Haible  <bruno@clisp.org>
56496
56497         * modules/localename-tests: New file.
56498         * tests/test-localename.c: New file.
56499
56500         New module 'localename'.
56501         * lib/localename.h: New file.
56502         * lib/localename.c: New file, from GNU gettext.
56503         * m4/localename.m4: New file.
56504         * modules/localename: New file.
56505
56506 2007-06-07  Bruno Haible  <bruno@clisp.org>
56507
56508         Work around the lack of <wchar.h> on some builds of uClibc.
56509         * doc/headers/wchar.texi: Update.
56510         * lib/wchar_.h: Include <wchar.h> only if it exists.
56511         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
56512         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
56513         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
56514         doesn't exist.
56515         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
56516         * modules/mbfile (Depends-on): Add wchar.
56517         * modules/mbiter (Depends-on): Likewise.
56518         * modules/mbuiter (Depends-on): Likewise.
56519         Reported by Simon Josefsson.
56520
56521 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
56522
56523         Work around problem reported by Steven M. Schweda in
56524         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
56525         Tru64 5.1B with the Compaq compiler environment installed declares
56526         an 'isblank' function but does not define it in the C library.
56527         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
56528         * lib/regex_internal.h (isblank): Likewise.
56529         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
56530         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56531
56532 2007-06-05  Bruno Haible  <bruno@clisp.org>
56533
56534         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
56535         ia64.
56536         * modules/printf-safe: New file.
56537         * modules/fprintf-posix (Depends-on): Add printf-safe.
56538         * modules/printf-posix (Depends-on): Likewise.
56539         * modules/snprintf-posix (Depends-on): Likewise.
56540         * modules/sprintf-posix (Depends-on): Likewise.
56541         * modules/vasnprintf-posix (Depends-on): Likewise.
56542         * modules/vasprintf-posix (Depends-on): Likewise.
56543         * modules/vfprintf-posix (Depends-on): Likewise.
56544         * modules/vprintf-posix (Depends-on): Likewise.
56545         * modules/vsnprintf-posix (Depends-on): Likewise.
56546         * modules/vsprintf-posix (Depends-on): Likewise.
56547         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
56548         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
56549         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
56550         "no" on i386, x86_64, ia64.
56551         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
56552         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56553         on i386, x86_64, ia64.
56554         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
56555         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56556         on i386, x86_64, ia64.
56557         * tests/test-vasnprintf-posix.c: Include float.h.
56558         (LDBL80_WORDS): New macro.
56559         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56560         on i386, x86_64, ia64.
56561         * tests/test-vasprintf-posix.c: Include float.h.
56562         (LDBL80_WORDS): New macro.
56563         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56564         on i386, x86_64, ia64.
56565         * tests/test-snprintf-posix.c: Include float.h.
56566         * tests/test-sprintf-posix.c: Likewise.
56567         * tests/test-vsnprintf-posix.c: Likewise.
56568         * tests/test-vsprintf-posix.c: Likewise.
56569
56570 2007-06-05  Bruno Haible  <bruno@clisp.org>
56571
56572         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
56573         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
56574         non-IEEE numbers on i386, x86_64, ia64.
56575         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
56576         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
56577         * tests/test-isnanl.h: Include float.h.
56578         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
56579
56580 2007-06-05  Bruno Haible  <bruno@clisp.org>
56581
56582         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
56583         also the %a / %A. Handle the %a / %A code before this extra handling.
56584
56585 2007-06-05  Bruno Haible  <bruno@clisp.org>
56586
56587         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
56588         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
56589
56590 2007-06-05  Bruno Haible  <bruno@clisp.org>
56591
56592         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
56593         typo in variable name.
56594
56595 2007-06-05  Eric Blake  <ebb9@byu.net>
56596
56597         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
56598         Reported by Simon Josefsson.
56599
56600 2007-06-04  Bruno Haible  <bruno@clisp.org>
56601
56602         Avoid test failures on some PowerPC platforms.
56603         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
56604         Define differently for PowerPC.
56605         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
56606         Reported by Gary V. Vaughan <gary@gnu.org>.
56607
56608 2007-06-02  Bruno Haible  <bruno@clisp.org>
56609
56610         Fix test-stdint failure on FreeBSD/ia64.
56611         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
56612         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
56613         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
56614         * doc/headers/stdint.texi: Update.
56615
56616 2007-06-01  Bruno Haible  <bruno@clisp.org>
56617
56618         * tests/test-binary-io.c (main): Pass a third argument to open().
56619         Reported by Gary V. Vaughan <gary@gnu.org>.
56620
56621 2007-06-01  Bruno Haible  <bruno@clisp.org>
56622
56623         * doc/functions/frexpl.texi: Update for mingw.
56624
56625 2007-06-01  Bruno Haible  <bruno@clisp.org>
56626
56627         * tests/test-lseek.c (main): Disable test of errno for invalid third
56628         argument.
56629         * doc/functions/lseek.texi: Update.
56630         Reported by Gary V. Vaughan <gary@gnu.org>.
56631
56632 2007-05-28  Bruno Haible  <bruno@clisp.org>
56633
56634         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
56635
56636 2007-05-31  Eric Blake  <ebb9@byu.net>
56637
56638         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
56639         cross compiling.
56640
56641 2007-05-30  Eric Blake  <ebb9@byu.net>
56642         and Bruno Haible  <bruno@clisp.org>
56643
56644         Work around mingw test failures exposed by m4-1.4.9b.
56645         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
56646         * tests/test-unistd.c: Disable uid_t and git_t tests for the
56647         moment.
56648
56649 2007-05-30  Bruno Haible  <bruno@clisp.org>
56650
56651         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
56652         assuming that they are closed. Needed on HP-UX 11.
56653
56654 2007-05-29  Bruno Haible  <bruno@clisp.org>
56655
56656         Fix a problem with #include_next.
56657         * lib/dirent_.h: Split the double-inclusion guard.
56658         * lib/fcntl_.h: Likewise.
56659         * lib/float_.h: Likewise.
56660         * lib/iconv_.h: Likewise.
56661         * lib/inttypes_.h: Likewise.
56662         * lib/locale_.h: Likewise.
56663         * lib/math_.h: Likewise.
56664         * lib/netinet_in_.h: Likewise.
56665         * lib/search_.h: Likewise.
56666         * lib/signal_.h: Likewise.
56667         * lib/stdint_.h: Likewise.
56668         * lib/stdio_.h: Likewise.
56669         * lib/stdlib_.h: Likewise.
56670         * lib/string_.h: Likewise.
56671         * lib/sys_select_.h: Likewise.
56672         * lib/sys_socket_.h: Likewise.
56673         * lib/sys_stat_.h: Likewise.
56674         * lib/sys_time_.h: Likewise.
56675         * lib/sysexits_.h: Likewise.
56676         * lib/time_.h: Likewise.
56677         * lib/unistd_.h: Likewise.
56678         * lib/wchar_.h: Likewise.
56679         * lib/wctype_.h: Likewise.
56680
56681 2007-05-29  Bruno Haible  <bruno@clisp.org>
56682
56683         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
56684         for the moment.
56685
56686 2007-05-29  Bruno Haible  <bruno@clisp.org>
56687
56688         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
56689         invocation.
56690         Reported by Eric Blake.
56691
56692 2007-05-29  Bruno Haible  <bruno@clisp.org>
56693
56694         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
56695         compiling case.
56696
56697 2007-05-29  Eric Blake  <ebb9@byu.net>
56698             Bruno Haible  <bruno@clisp.org>
56699
56700         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
56701         cross compiles.
56702
56703 2007-05-28  Eric Blake  <ebb9@byu.net>
56704
56705         * modules/closein-tests (test_closein_LDADD): Support test on
56706         cygwin with libtool.
56707
56708 2007-05-28  Bruno Haible  <bruno@clisp.org>
56709
56710         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
56711         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56712         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56713         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56714         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56715         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56716         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56717         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56718         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56719
56720 2007-05-28  Eric Blake  <ebb9@byu.net>
56721
56722         Unconditionally include <config.h> in unit tests.
56723         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
56724         * tests/test-allocsa.c, tests/test-arcfour.c,
56725         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
56726         tests/test-array_list.c, tests/test-array_oset.c,
56727         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
56728         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
56729         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
56730         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
56731         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
56732         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
56733         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
56734         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
56735         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
56736         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
56737         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
56738         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
56739         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
56740         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
56741         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
56742         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
56743         test-md5.c, test-memmem.c, test-printf-posix.c,
56744         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
56745         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
56746         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
56747         test-strcasestr.c, test-striconv.c, test-striconveh.c,
56748         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
56749         test-vasnprintf-posix2.c, test-vasnprintf.c,
56750         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
56751         test-vfprintf-posix.c, test-vprintf-posix.c,
56752         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
56753         test-xvasprintf.c: Likewise.
56754
56755 2007-05-28  Bruno Haible  <bruno@clisp.org>
56756
56757         * gnulib-tool (func_import): Remember the --with-tests command-line
56758         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
56759         Reported by Eric Blake.
56760
56761 2007-05-28  Bruno Haible  <bruno@clisp.org>
56762
56763         * modules/ftell-tests: New file.
56764         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
56765         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
56766
56767         * lib/ftell.c: New file.
56768         * modules/ftell: New file.
56769         * m4/ftell.m4: New file.
56770         * doc/functions/ftell.texi: Update.
56771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
56772         REPLACE_FTELL.
56773         * lib/stdio_.h (rpl_ftell): New declaration.
56774         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
56775         REPLACE_FTELL.
56776
56777 2007-05-28  Eric Blake  <ebb9@byu.net>
56778
56779         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
56780
56781 2007-05-28  Bruno Haible  <bruno@clisp.org>
56782
56783         * modules/fseek-tests: New file.
56784         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
56785         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
56786
56787         * lib/fseek.c: New file.
56788         * modules/fseek: New file.
56789         * m4/fseek.m4: New file.
56790         * doc/functions/fseek.texi: Update.
56791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
56792         REPLACE_FSEEK.
56793         * lib/stdio_.h (rpl_fseek): New declaration.
56794         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
56795         REPLACE_FSEEK.
56796
56797 2007-05-28  Bruno Haible  <bruno@clisp.org>
56798
56799         * lib/stdio_.h (fflush): More comments.
56800
56801 2007-05-28  Bruno Haible  <bruno@clisp.org>
56802
56803         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
56804         runtime test.
56805
56806 2007-05-28  Eric Blake  <ebb9@byu.net>
56807
56808         Improve lseek module.
56809         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
56810         * lib/unistd_.h (lseek): Scale back link warning message.
56811         * tests/test-lseek.c: Beef up test.
56812         * tests/test-lseek.sh: Exercise more facets of lseek.
56813         Reported by Bruno Haible.
56814
56815 2007-05-28  Bruno Haible  <bruno@clisp.org>
56816
56817         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
56818         to define.
56819
56820 2007-05-27  Bruno Haible  <bruno@clisp.org>
56821
56822         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
56823
56824 2007-05-27  Bruno Haible  <bruno@clisp.org>
56825
56826         * modules/openmp: New file.
56827         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
56828         Noah Misch.
56829
56830 2007-05-26  Bruno Haible  <bruno@clisp.org>
56831
56832         * modules/chdir-long (Depends-on): Add fchdir.
56833         * modules/chdir-safer (Depends-on): Likewise.
56834         * modules/fts (Depends-on): Likewise.
56835         * modules/fts-lgpl (Depends-on): Likewise.
56836         * modules/openat (Depends-on): Likewise.
56837         * modules/savewd (Depends-on): Likewise.
56838
56839 2007-05-24  Eric Blake  <ebb9@byu.net>
56840
56841         Fix lseek on mingw.
56842         * modules/lseek: New module.
56843         * m4/lseek.m4: New file.
56844         * lib/lseek.c: New file.
56845         * modules/lseek-tests: New file.
56846         * tests/test-lseek.c: New file.
56847         * tests/test-lseek.sh: New file.
56848         * MODULES.html.sh: Document lseek module.
56849         * modules/fflush (Depends-on): Add lseek, fseeko.
56850         * modules/fseeko (Depends-on): Likewise.
56851         * modules/ftello (Depends-on): Likewise.
56852         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
56853         broken.
56854         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
56855         broken.
56856         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
56857         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
56858         * lib/ftello.c (rpl_ftello): Likewise.
56859         * tests/test-fseeko.c (main): Test this.
56860         * tests/test-fseeko.sh: Likewise.
56861         * tests/test-ftello.c (main): Likewise.
56862         * tests/test-ftello.sh: Likewise.
56863         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
56864         implies replacing fseek.
56865         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
56866         HAVE_FTELLO.
56867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
56868         * modules/unistd (Makefile.am): Likewise.
56869         * lib/unistd_.h (lseek): Declare a replacement.
56870         * doc/functions/lseek.texi (lseek): Document this fix.
56871         * doc/functions/fseek.texi (fseek): Likewise.
56872         * doc/functions/ftell.texi (ftell): Likewise.
56873
56874 2007-05-24  Bruno Haible  <bruno@clisp.org>
56875
56876         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
56877         in the printed representation of a NaN.
56878         * tests/test-vasprintf-posix.c (test_function): Likewise.
56879         * tests/test-snprintf-posix.h (test_function): Likewise.
56880         * tests/test-sprintf-posix.h (test_function): Likewise.
56881         Reported by Eric Blake.
56882
56883 2007-05-23  Eric Blake  <ebb9@byu.net>
56884
56885         Fix fseeko/ftello on cygwin 1.5.24.
56886         * doc/functions/fseeko.texi (fseeko): Document the fix.
56887         * doc/functions/ftello.texi (ftello): Document the fix.
56888         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
56889         * doc/functions/stdout.text (stdout): New file.
56890         * doc/functions/stderr.text (stderr): New file.
56891         * doc/gnulib.texi (Function Substitutes): Use new files.
56892         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
56893         prior to 1.7.0.
56894         * tests/test-ftello.c (main): Likewise for ftello.
56895         * tests/test-fseeko.sh: New file.
56896         * tests/test-ftello.sh: New file.
56897         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
56898         with seekable stdin.
56899         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
56900         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
56901         (gl_REPLACE_FSEEKO): New macro.
56902         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
56903         * modules/fseeko (Files): Distribute fseeko.c.
56904         * modules/ftello (Files): Distribute ftello.c.
56905         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
56906         mode.
56907         * lib/ftello.c (rpl_ftello): New file.
56908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
56909         fseeko, ftello.
56910         (gl_STDIN_LARGE_OFFSET): New macro.
56911         * modules/stdio (Makefile.am): Perform the replacement.
56912         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
56913
56914 2007-05-23  Bruno Haible  <bruno@clisp.org>
56915
56916         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
56917         GNULIB_POSIXCHECK is defined.
56918
56919 2007-05-21  Bruno Haible  <bruno@clisp.org>
56920
56921         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
56922         Check also the output for NaN arguments. When cross-compiling, guess
56923         no on IRIX.
56924         * lib/vasnprintf.c: Update comments.
56925         * tests/test-vasnprintf-posix.c (strisnan): New function.
56926         (test_function): Use it.
56927         * tests/test-vasprintf-posix.c (strisnan): New function.
56928         (test_function): Use it.
56929         * tests/test-snprintf-posix.h (strisnan): New function.
56930         (test_function): Use it.
56931         * tests/test-sprintf-posix.h (strisnan): New function.
56932         (test_function): Use it.
56933         Reported by Eric Blake.
56934
56935 2007-05-20  Bruno Haible  <bruno@clisp.org>
56936
56937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
56938         numbers that fails on BeOS.
56939         * doc/functions/frexpl.texi: Update.
56940
56941 2007-05-20  Jim Meyering  <jim@meyering.net>
56942
56943         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
56944         forced upon us by glibc-2.6.
56945
56946 2007-05-20  Bruno Haible  <bruno@clisp.org>
56947
56948         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
56949         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
56950         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
56951         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
56952         NEED_PRINTF_INFINITE.
56953         (is_infinitel): New function.
56954         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
56955         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
56956         gl_PREREQ_VASNPRINTF_INFINITE.
56957         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
56958         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56959         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
56960         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
56961         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
56962         gl_PREREQ_VASNPRINTF_INFINITE.
56963         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56964         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56966         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56967         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56968         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56969         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56970         * doc/functions/fprintf.texi: Update.
56971         * doc/functions/printf.texi: Update.
56972         * doc/functions/snprintf.texi: Update.
56973         * doc/functions/sprintf.texi: Update.
56974         * doc/functions/vfprintf.texi: Update.
56975         * doc/functions/vprintf.texi: Update.
56976         * doc/functions/vsnprintf.texi: Update.
56977         * doc/functions/vsprintf.texi: Update.
56978
56979 2007-05-20  Bruno Haible  <bruno@clisp.org>
56980
56981         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56982         was not found in libc.
56983         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56984
56985 2007-05-20  Bruno Haible  <bruno@clisp.org>
56986
56987         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56988         printed as "-nan" instead of "nan".
56989         * tests/test-vasprintf-posix.c (test_function): Likewise.
56990         * tests/test-snprintf-posix.h (test_function): Likewise.
56991         * tests/test-sprintf-posix.h (test_function): Likewise.
56992         Needed for HP-UX 11.
56993
56994 2007-05-20  Jim Meyering  <jim@meyering.net>
56995
56996         Fix buggy test for the fchownat-deref bug.
56997         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56998         symlink required for the run-test.  Without it, this test would
56999         always declare that fchownat doesn't work, and client code would
57000         unnecessarily use the replacement function with fixed libc.
57001         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
57002         Reported by Greg Schafer.
57003
57004 2007-05-19  Bruno Haible  <bruno@clisp.org>
57005
57006         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
57007         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
57008         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
57009         Needed for IRIX 6.5 and Solaris 2.5.1.
57010
57011 2007-05-19  Bruno Haible  <bruno@clisp.org>
57012
57013         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
57014         (test_function): Skip tests involving -0.0 on platforms where
57015         -0.0 = 0.0.
57016         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
57017         (test_function): Skip tests involving -0.0 on platforms where
57018         -0.0 = 0.0.
57019         * tests/test-snprintf-posix.h (have_minus_zero): New function.
57020         (test_function): Skip tests involving -0.0 on platforms where
57021         -0.0 = 0.0.
57022         * tests/test-sprintf-posix.h (have_minus_zero): New function.
57023         (test_function): Skip tests involving -0.0 on platforms where
57024         -0.0 = 0.0.
57025         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
57026         tests.
57027         * tests/test-printf-posix.h (test_function): Likewise.
57028         * tests/test-printf-posix.output: Remove all -0.0 related results.
57029         Needed for IRIX 6.5.
57030
57031 2007-05-19  Bruno Haible  <bruno@clisp.org>
57032
57033         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57034         printed as "nan0x7fffffff" instead of "nan".
57035         * tests/test-vasprintf-posix.c (test_function): Likewise.
57036         * tests/test-snprintf-posix.h (test_function): Likewise.
57037         * tests/test-sprintf-posix.h (test_function): Likewise.
57038         * tests/test-fprintf-posix.h (NaN): Remove macro.
57039         (test_function): Remove all NaN related tests.
57040         * tests/test-printf-posix.h (NaN): Remove macro.
57041         (test_function): Remove all NaN related tests.
57042         * tests/test-printf-posix.output: Remove all NaN related results.
57043         Needed for IRIX 6.5.
57044
57045 2007-05-19  Bruno Haible  <bruno@clisp.org>
57046
57047         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
57048         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
57049
57050 2007-05-19  Bruno Haible  <bruno@clisp.org>
57051
57052         * lib/float_.h: New file.
57053         * m4/float_h.m4: New file.
57054         * modules/float: New file.
57055         * modules/isnanl (Dependencies): Add float.
57056         * modules/isnanl-nolibm (Dependencies): Likewise.
57057         * modules/mathl (Dependencies): Likewise.
57058         * modules/printf-frexpl (Dependencies): Likewise.
57059         * modules/signbit (Dependencies): Likewise.
57060         * modules/vasnprintf (Dependencies): Likewise.
57061         * doc/headers/float.texi: Update.
57062
57063 2007-05-19  Jim Meyering  <jim@meyering.net>
57064
57065         * lib/utimens.c (gl_futimens): Rename from futimens,
57066         now that glibc-2.6 declares futimens.
57067         * lib/utimens.h: Likewise.
57068
57069 2007-05-19  Bruno Haible  <bruno@clisp.org>
57070
57071         Avoid test failures on mingw.
57072         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
57073         * tests/test-printf-posix.sh: Likewise.
57074         * tests/test-vfprintf-posix.sh: Likewise.
57075         * tests/test-vprintf-posix.sh: Likewise.
57076
57077 2007-05-19  Bruno Haible  <bruno@clisp.org>
57078
57079         Fix *printf result for NaN, Inf, -0.0 on mingw.
57080         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
57081         * lib/vasnprintf.c: Include math.h and isnan.h.
57082         (is_infinite_or_zero): New function.
57083         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
57084         values in the %f, %F, %e, %E, %g, %G directives.
57085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
57086         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57087         gl_PRINTF_INFINITE and test its result. Invoke
57088         gl_PREREQ_VASNPRINTF_INFINITE.
57089         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57090         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57091         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57092         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57093         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57094         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57095         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57096         * doc/functions/fprintf.texi: Update.
57097         * doc/functions/printf.texi: Update.
57098         * doc/functions/snprintf.texi: Update.
57099         * doc/functions/sprintf.texi: Update.
57100         * doc/functions/vfprintf.texi: Update.
57101         * doc/functions/vprintf.texi: Update.
57102         * doc/functions/vsnprintf.texi: Update.
57103         * doc/functions/vsprintf.texi: Update.
57104
57105 2007-05-19  Bruno Haible  <bruno@clisp.org>
57106
57107         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
57108         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
57109         Instead of multiplying with 10^k, set extra_zeroes to k.
57110         (scale10_round_long_double): Remove function.
57111
57112 2007-05-18  Bruno Haible  <bruno@clisp.org>
57113
57114         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
57115         introduced on 2007-05-06.
57116
57117 2007-05-18  Bruno Haible  <bruno@clisp.org>
57118
57119         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
57120         %g directives.
57121         * tests/test-vasprintf-posix.c (test_function): Likewise.
57122         * tests/test-snprintf-posix.h (test_function): Likewise.
57123         * tests/test-sprintf-posix.h (test_function): Likewise.
57124
57125 2007-05-18  Bruno Haible  <bruno@clisp.org>
57126
57127         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
57128         (strmatch): New function.
57129         (test_function): Test the %f directive on numbers of various exponents.
57130         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
57131         (strmatch): New function.
57132         (test_function): Test the %f directive on numbers of various exponents.
57133         * tests/test-snprintf-posix.h (strmatch): New function.
57134         (test_function): Test the %f directive on numbers of various exponents.
57135         * tests/test-sprintf-posix.h (strmatch): New function.
57136         (test_function): Test the %f directive on numbers of various exponents.
57137         * tests/test-snprintf-posix.c (SIZEOF): New macro.
57138         * tests/test-sprintf-posix.c (SIZEOF): New macro.
57139         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
57140         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
57141
57142 2007-05-18  Bruno Haible  <bruno@clisp.org>
57143
57144         Add support for 'long double' number output.
57145         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
57146         * lib/vasnprintf.c: Include math.h and float+.h.
57147         (mp_limb_t): New type.
57148         (GMP_LIMB_BITS): New macro.
57149         (mp_twolimb_t): New type.
57150         (GMP_TWOLIMB_BITS): New macro.
57151         (mpn_t): New type.
57152         (multiply, divide, convert_to_decimal, decode_long_double,
57153         scale10_round_long_double, scale10_round_decimal_long_double,
57154         floorlog10l): New functions.
57155         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
57156         for the %f, %F, %e, %E, %g, %G directives.
57157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
57158         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57159         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
57160         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
57161         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57162         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57163         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57165         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57168         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
57169         * modules/snprintf-posix (Depends-on): Likewise.
57170         * modules/sprintf-posix (Depends-on): Likewise.
57171         * modules/vasnprintf-posix (Depends-on): Likewise.
57172         * modules/vasprintf-posix (Depends-on): Likewise.
57173         * modules/vfprintf-posix (Depends-on): Likewise.
57174         * modules/vsnprintf-posix (Depends-on): Likewise.
57175         * modules/vsprintf-posix (Depends-on): Likewise.
57176         * modules/vasnprintf (Files): Add lib/float+.h.
57177         * doc/functions/fprintf.texi: Update.
57178         * doc/functions/printf.texi: Update.
57179         * doc/functions/snprintf.texi: Update.
57180         * doc/functions/sprintf.texi: Update.
57181         * doc/functions/vfprintf.texi: Update.
57182         * doc/functions/vprintf.texi: Update.
57183         * doc/functions/vsnprintf.texi: Update.
57184         * doc/functions/vsprintf.texi: Update.
57185
57186 2007-05-18  Bruno Haible  <bruno@clisp.org>
57187
57188         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
57189
57190 2007-05-18  Bruno Haible  <bruno@clisp.org>
57191
57192         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
57193         for printing 64-bit integers. Needed for mingw.
57194
57195 2007-05-18  Bruno Haible  <bruno@clisp.org>
57196
57197         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57198         gl_FUNC_FREXPL_WORKS.
57199         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
57200
57201 2007-05-18  Bruno Haible  <bruno@clisp.org>
57202
57203         * modules/frexpl-nolibm-tests: New file.
57204
57205         * modules/frexpl-nolibm: New file.
57206         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
57207
57208 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
57209
57210         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
57211         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57212         GCC 4.2, which otherwise issues a lot of warnings.
57213         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
57214         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
57215         Likewise.
57216         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
57217         * modules/iconv_open (iconv.h): Likewise.
57218         * modules/locale (locale.h): Likewise.
57219         * modules/netinet_in (netinet/in.h): Likewise.
57220         * modules/sys_select (sys_select.h): Likewise.
57221         * modules/sys_socket (sys/socket.h): Likewise.
57222         * modules/sys_stat (sys/stat.h): Likewise.
57223         * modules/sysexits (sysexits.h): Likewise.
57224         * modules/unistd (unistd.h): Likewise.
57225
57226 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57227
57228         * modules/closein-tests (Makefile.am): Distribute
57229         `test-closein.sh'.
57230
57231 2007-05-17  Bruno Haible  <bruno@clisp.org>
57232
57233         * tests/test-printf-posix.output: Renamed from
57234         tests/test-fprintf-posix.out.
57235         * modules/fprintf-posix-tests: Update.
57236         * modules/printf-posix-tests: Update.
57237         * modules/vfprintf-posix-tests: Update.
57238         * modules/vprintf-posix-tests: Update.
57239         * tests/test-fprintf-posix.sh: Update.
57240         * tests/test-printf-posix.sh: Update.
57241         * tests/test-vfprintf-posix.sh: Update.
57242         * tests/test-vprintf-posix.sh: Update.
57243         Reported by Ralf Wildenhues.
57244
57245 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
57246
57247         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
57248         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57249         GCC 4.2, which otherwise issues a lot of warnings.
57250         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
57251         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
57252         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
57253         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
57254         it should no longer be needed.
57255         * lib/string_.h: Likewise.
57256         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
57257         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
57258         * modules/inttypes (inttypes.h): Likewise.
57259         * modules/math (math.h): Likewise.
57260         * modules/search (search.h): Likewise.
57261         * modules/signal (signal.h): Likewise.
57262         * modules/stdint (stdint.h): Likewise.
57263         * modules/stdio (stdio.h): Likewise.
57264         * modules/stdlib (stdlib.h): Likewise.
57265         * modules/string (string.h): Likewise.
57266         * modules/sys_time (sys/time.h): Likewise.
57267         * modules/time (time.h): Likewise.
57268         * modules/wchar (wchar.h): Likewise.
57269         * modules/wctype (wtype.h): Likewise.
57270
57271 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57272
57273         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
57274
57275 2007-05-13  Bruno Haible  <bruno@clisp.org>
57276
57277         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
57278         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57279         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
57280         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57281         (gl_PREREQ_STRTOK_R): Don't require it here.
57282
57283 2007-05-13  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
57286         when used in C++ mode.
57287
57288 2007-05-12  Bruno Haible  <bruno@clisp.org>
57289
57290         * lib/linebuffer.h: Tweak doc.
57291         * lib/linebuffer.c: Likewise.
57292
57293 2007-05-12  James Youngman  <jay@gnu.org>
57294
57295         * lib/linebuffer.c (readlinebuffer_delim): New function,
57296         like readlinebuffer, but use a caller-specified delimiter.
57297         (readlinebuffer): Just call readlinebuffer_delim with '\n'
57298         as the delimiter.
57299         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
57300
57301 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57302
57303         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
57304         * modules/openat (Files): Remove openat-die.c.
57305         (Depends-on): Add openat-die.
57306         * modules/openat-die: New module.
57307
57308 2007-05-06  Bruno Haible  <bruno@clisp.org>
57309
57310         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
57311         Update with info about Cygwin.
57312         * doc/functions/fprintf.texi: Update.
57313         * doc/functions/printf.texi: Update.
57314         * doc/functions/snprintf.texi: Update.
57315         * doc/functions/sprintf.texi: Update.
57316         * doc/functions/vfprintf.texi: Update.
57317         * doc/functions/vprintf.texi: Update.
57318         * doc/functions/vsnprintf.texi: Update.
57319         * doc/functions/vsprintf.texi: Update.
57320         Reported by Eric Blake.
57321
57322 2007-05-06  Bruno Haible  <bruno@clisp.org>
57323
57324         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
57325         padding ourselves for the floating-point directives.
57326         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
57327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
57328         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57329         gl_PRINTF_FLAG_ZERO and test its result. Invoke
57330         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
57331         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57332         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
57333         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57334         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57335         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57336         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57337         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57338         * tests/test-snprintf-posix.h (test_function): Also check the width
57339         and some flags in the %f directive.
57340         * tests/test-sprintf-posix.h (test_function): Likewise.
57341         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57342         * tests/test-vasprintf-posix.c (test_function): Likewise.
57343         * doc/functions/fprintf.texi: Update.
57344         * doc/functions/printf.texi: Update.
57345         * doc/functions/snprintf.texi: Update.
57346         * doc/functions/sprintf.texi: Update.
57347         * doc/functions/vfprintf.texi: Update.
57348         * doc/functions/vprintf.texi: Update.
57349         * doc/functions/vsnprintf.texi: Update.
57350         * doc/functions/vsprintf.texi: Update.
57351
57352 2007-05-06  Bruno Haible  <bruno@clisp.org>
57353
57354         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
57355         pass the ' flag character to sprintf or snprintf.
57356         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
57357         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
57358         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57359         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
57360         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
57361         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57362         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
57363         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57364         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57365         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57366         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57367         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57368         * tests/test-snprintf-posix.h (test_function): Also check the grouping
57369         flag.
57370         * tests/test-sprintf-posix.h (test_function): Likewise.
57371         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57372         * tests/test-vasprintf-posix.c (test_function): Likewise.
57373         * doc/functions/fprintf.texi: Update.
57374         * doc/functions/printf.texi: Update.
57375         * doc/functions/snprintf.texi: Update.
57376         * doc/functions/sprintf.texi: Update.
57377         * doc/functions/vfprintf.texi: Update.
57378         * doc/functions/vprintf.texi: Update.
57379         * doc/functions/vsnprintf.texi: Update.
57380         * doc/functions/vsprintf.texi: Update.
57381
57382 2007-05-01  Bruno Haible  <bruno@clisp.org>
57383
57384         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
57385
57386 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
57387
57388         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
57389         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
57390
57391 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57392
57393         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
57394         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
57395         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
57396
57397 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
57398
57399         * lib/argp-help.c (struct hol_entry): New member `ord'.
57400         (HOL_ENTRY_PTRCMP): Use ord for comparison
57401         (hol_sort): Initialize ord.
57402
57403 2007-05-01  Bruno Haible  <bruno@clisp.org>
57404
57405         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
57406         Reported by Eric Blake.
57407         * doc/gnulib.texi (Function Substitutes): Update.
57408
57409 2007-05-01  Bruno Haible  <bruno@clisp.org>
57410
57411         * doc/functions.texi: Remove file, now redundant through
57412         doc/functions/*.texi.
57413
57414 2007-05-01  Bruno Haible  <bruno@clisp.org>
57415
57416         * modules/argp (Depends-on): Add sleep.
57417
57418 2007-05-01  Bruno Haible  <bruno@clisp.org>
57419
57420         * modules/sleep-tests: New file.
57421         * tests/test-sleep.c: New file.
57422
57423         * modules/sleep: New file.
57424         * lib/sleep.c: New file.
57425         * m4/sleep.m4: New file.
57426         * lib/unistd_.h (sleep): New declaration.
57427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
57428         HAVE_SLEEP.
57429         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
57430         * doc/functions/sleep.texi: Document the sleep module.
57431
57432 2007-05-01  Bruno Haible  <bruno@clisp.org>
57433
57434         * lib/sigprocmask.h: Remove file.
57435         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
57436         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
57437         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
57438         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
57439         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
57440         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
57441         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
57442         HAVE_SIGSET_T as a shell variable.
57443         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
57444         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
57445         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
57446         (Depends-on): Add signal. Remove verify.
57447         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
57448         (Include): Mention <signal.h> instead of sigprocmask.h.
57449         * NEWS: Mention the change.
57450         * lib/fatal-signal.c: Don't include sigprocmask.h.
57451
57452 2007-05-01  Bruno Haible  <bruno@clisp.org>
57453
57454         * modules/signal: New file.
57455         * lib/signal_.h: New file.
57456         * m4/signal_h.m4: New file.
57457
57458 2007-05-01  Bruno Haible  <bruno@clisp.org>
57459
57460         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
57461         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
57462         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
57463         HAVE_WCTYPE_CTMP_BUG into wctype.h.
57464
57465 2007-05-01  Bruno Haible  <bruno@clisp.org>
57466
57467         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
57468         configure time.
57469         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
57470         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
57471         * modules/sys_stat (Makefile.am): Substitute their values into
57472         sys/stat.h.
57473
57474 2007-05-01  Bruno Haible  <bruno@clisp.org>
57475
57476         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
57477         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
57478         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
57479
57480 2007-05-01  Bruno Haible  <bruno@clisp.org>
57481
57482         * doc/header/assert.texi: Undo last change: don't mention the gnulib
57483         'assert' module here.
57484
57485 2007-05-01  Bruno Haible  <bruno@clisp.org>
57486
57487         * doc/functions/*.texi: New files.
57488         * doc/functions/google-ranking.txt: New file.
57489         * doc/gnulib.texi (Function Substitutes): New chapter.
57490         (ctime, inet_ntoa): Remove sections.
57491         * doc/ctime.texi: Remove file.
57492         * doc/inet_ntoa.texi: Remove file.
57493         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
57494         dependencies.
57495         (%.info): New rule, specifying a --reference-limit.
57496
57497 2007-05-01  Bruno Haible  <bruno@clisp.org>
57498
57499         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
57500
57501 2007-05-01  Bruno Haible  <bruno@clisp.org>
57502
57503         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
57504         the portability of 'mkdir' to mingw systems.
57505
57506 2007-05-01  Bruno Haible  <bruno@clisp.org>
57507
57508         * doc/headers/google-ranking.txt: New file.
57509
57510 2007-04-30  Eric Blake  <ebb9@byu.net>
57511
57512         Prefer fseeko to fseek.
57513         * modules/getpass (Depends-on): Add fseeko.
57514         * lib/getpass.c (getpass): Use fseeko, not fseek.
57515
57516 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
57517
57518         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
57519         assumes the sorting is stable, while most qsort implementations
57520         are not.  Use argument addresses to ensure they never compare as
57521         equal.
57522
57523         * tests/test-argp-2.sh (usage-indent test): Fix output
57524         (func_compare): Restore diff options
57525         * tests/test-argp.c: Restore #include "progname.h"
57526
57527 2007-04-29  Bruno Haible  <bruno@clisp.org>
57528
57529         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
57530         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57531         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
57532         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57533         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
57534         (configure.ac): Define CHECK_SNPRINTF_POSIX.
57535         (TESTS, check_PROGRAMS): Add test-snprintf.
57536         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
57537         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
57538         (TESTS, check_PROGRAMS): Add test-vsnprintf.
57539         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
57540         assertions that fail on HP-UX, OSF/1, or IRIX.
57541         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
57542
57543 2007-04-29  Bruno Haible  <bruno@clisp.org>
57544
57545         * MODULES.html.sh (posix_functions): Remove 'contents'.
57546
57547 2007-04-29  Karl Berry  <karl@gnu.org>
57548
57549         * config/srclist.txt (gendocs_template_min): new entry.
57550
57551 2007-04-29  Bruno Haible  <bruno@clisp.org>
57552
57553         Work around fpurge bug on BSD systems.
57554         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
57555         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
57556         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
57557         fpurge to rpl_fpurge if the system already has this function.
57558         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
57559         the case where the system already has this function. Correct invariants
57560         on BSD systems.
57561         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
57562         BSD systems.
57563
57564 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57565
57566         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
57567         proposed by Sven Verdoolaege.
57568
57569         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
57570         options.
57571         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
57572         (usage and help tests): Update
57573
57574 2007-04-29  Bruno Haible  <bruno@clisp.org>
57575
57576         * tests/test-fflush.c (main): Use a file of size 17, not 10.
57577         Print more information in case of failure. Disable a test on BeOS.
57578
57579 2007-04-29  Bruno Haible  <bruno@clisp.org>
57580
57581         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
57582         This helps debugging on systems on which no gdb is available.
57583
57584 2007-04-29  Bruno Haible  <bruno@clisp.org>
57585
57586         * lib/freading.h: Improve comments.
57587         * lib/fwriting.h: Likewise.
57588         * tests/test-freading.c (main): Don't check freading immediately after
57589         repositioning. Needed for glibc.
57590
57591 2007-04-29  Bruno Haible  <bruno@clisp.org>
57592
57593         * lib/freading.c (freading): Trivial simplification.
57594
57595 2007-04-28  Bruno Haible  <bruno@clisp.org>
57596
57597         * tests/test-fwriting.c (main): Also test the interaction between
57598         fflush and fwriting.
57599         * modules/fwriting-tests (Depends-on): Add fflush.
57600
57601         * tests/test-freading.c (main): Also test the interaction between
57602         fflush and freading.
57603         * modules/freading-tests (Depends-on): Add fflush.
57604
57605 2007-04-28  Bruno Haible  <bruno@clisp.org>
57606
57607         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
57608         fseeko and ftello.
57609         Suggested by Eric Blake.
57610
57611 2007-04-28  Jim Meyering  <jim@meyering.net>
57612
57613         Avoid false-negative in gl_STDINT_H's C99 conformance test.
57614         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
57615         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
57616
57617 2007-04-27  Eric Blake  <ebb9@byu.net>
57618
57619         * doc/headers/assert.texi (assert.h): Document assert module use.
57620
57621 2007-04-27  Bruno Haible  <bruno@clisp.org>
57622
57623         * doc/headers/*.texi: New files.
57624         * doc/gnulib.texi (Header File Substitutes): New chapter.
57625         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
57626         dependencies.
57627         (standards.info ,standards.html, standards.dvi): Update dependencies.
57628         (mostlyclean, clean): New targets.
57629
57630 2007-04-27  Bruno Haible  <bruno@clisp.org>
57631
57632         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
57633         * modules/sysexits (Files, Makefile.am): Update.
57634
57635         * lib/sys_socket_.h: Renamed from lib/socket_.h.
57636         * modules/sys_socket (Files, Makefile.am): Update.
57637
57638         * lib/sys_stat_.h: Renamed from lib/stat_.h.
57639         * modules/sys_stat (Files, Makefile.am): Update.
57640
57641 2007-04-27  Eric Blake  <ebb9@byu.net>
57642
57643         * lib/freading.h: Improve comments.
57644         * lib/fwriting.h: Likewise.
57645         * lib/fflush.c: Likewise.
57646
57647         Fix closein for mingw.
57648         * modules/closein-tests: Add tests for closein.
57649         * tests/test-closein.c: New file.
57650         * tests/test-closein.sh: Likewise.
57651         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
57652         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
57653
57654 2007-04-27  Bruno Haible  <bruno@clisp.org>
57655
57656         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
57657         version is < 6.
57658         * lib/math_.h [__DECC]: Likewise.
57659         * lib/stdio_.h [__DECC]: Likewise.
57660         * lib/stdlib_.h [__DECC]: Likewise.
57661         * lib/string_.h [__DECC]: Likewise.
57662         * lib/time_.h [__DECC]: Likewise.
57663         * lib/wchar_.h [__DECC]: Likewise.
57664         * lib/wctype_.h [__DECC]: Likewise.
57665
57666 2007-04-27  Bruno Haible  <bruno@clisp.org>
57667
57668         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
57669
57670 2007-04-27  Bruno Haible  <bruno@clisp.org>
57671
57672         * lib/fflush.c: Add comments.
57673         * modules/fpurge-tests (Depends-on): Add fflush.
57674         * modules/freadable-tests (Depends-on): Likewise.
57675         * modules/fwritable-tests (Depends-on): Likewise.
57676
57677 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
57678
57679         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
57680         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
57681         Report by Bruno Haible <bruno@clisp.org>.
57682
57683 2007-04-26  Eric Blake  <ebb9@byu.net>
57684
57685         Fix fflush on mingw.
57686         * modules/fflush (Depends-on): Add freading.
57687         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
57688         but unread data.
57689
57690 2007-04-26  Eric Blake  <ebb9@byu.net>
57691         and Bruno Haible  <bruno@clisp.org>
57692
57693         Implement freading and fwriting.
57694         * lib/freading.c: New file.
57695         * lib/freading.h: Likewise.
57696         * m4/freading.m4: Likewise.
57697         * modules/freading: Likewise.
57698         * modules/freading-tests: Likewise.
57699         * tests/test-freading.c: Likewise.
57700         * lib/fwriting.c: New file.
57701         * lib/fwriting.h: Likewise.
57702         * m4/fwriting.m4: Likewise.
57703         * modules/fwriting: Likewise.
57704         * modules/fwriting-tests: Likewise.
57705         * tests/test-fwriting.c: Likewise.
57706         * MODULES.html.sh (File stream based Input/Output): Mention them.
57707
57708 2007-04-26  Bruno Haible  <bruno@clisp.org>
57709
57710         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
57711         'long' when we assume it.
57712         Suggested by Eric Blake.
57713
57714 2007-04-26  Bruno Haible  <bruno@clisp.org>
57715
57716         Ensure fseeko, ftello are declared on glibc systems.
57717         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
57718         * modules/fseeko (configure.ac-early): Likewise.
57719         * modules/ftello (configure.ac-early): Likewise.
57720         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
57721         AC_FUNC_FSEEKO for this.
57722         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
57723         (gl_CHECK_FSEEKO): Remove macro.
57724
57725 2007-04-26  Bruno Haible  <bruno@clisp.org>
57726
57727         * tests/test-fflush.c (main): Also check the ftell result after
57728         fflush and fseek/fseeko.
57729         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
57730         file descriptor position cache in the stream.
57731         * lib/fseeko.c (rpl_fseeko): Likewise.
57732
57733 2007-04-26  Bruno Haible  <bruno@clisp.org>
57734
57735         * modules/fflush-tests (Depends-on): Add fseeko.
57736
57737 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
57738             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57739
57740         * lib/argz_.h: ensure error_t definition is obtained in same
57741         mechanism system argz.h would have.
57742         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
57743         argz facilities are known bad.  Err on the side of caution if
57744         cross-compiling.
57745
57746 2007-04-25  Eric Blake  <ebb9@byu.net>
57747
57748         * lib/fpurge.c (includes): Use stdlib.h for free.
57749         * tests/test-fflush.c (main): Also test fflush-fseeko.
57750
57751 2007-04-25  Bruno Haible  <bruno@clisp.org>
57752
57753         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
57754         * lib/fseeko.c: New file.
57755         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
57756         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
57757         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
57758         gl_FUNC_FSEEKO.
57759         (gl_FUNC_FSEEKO): Invoke it.
57760         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
57761         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
57762         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
57763
57764 2007-04-25  Bruno Haible  <bruno@clisp.org>
57765
57766         * modules/fflush (Depends-on): Add ftello.
57767
57768 2007-04-25  Bruno Haible  <bruno@clisp.org>
57769
57770         * modules/ftello-tests: New file.
57771         * tests/test-ftello.c: New file.
57772
57773         * modules/ftello: New file.
57774         * m4/ftello.m4: New file.
57775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
57776         HAVE_FTELLO.
57777         * lib/stdio_.h (ftello): New declaration.
57778         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
57779         HAVE_FTELLO.
57780
57781 2007-04-25  Bruno Haible  <bruno@clisp.org>
57782
57783         * modules/fseeko-tests: New file.
57784         * tests/test-fseeko.c: New file.
57785
57786         * modules/fseeko: New file.
57787         * m4/fseeko.m4: New file.
57788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
57789         HAVE_FSEEKO.
57790         * lib/stdio_.h (fseeko): New declaration.
57791         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
57792         HAVE_FSEEKO.
57793
57794 2007-04-25  Bruno Haible  <bruno@clisp.org>
57795
57796         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
57797
57798 2007-04-25  Bruno Haible  <bruno@clisp.org>
57799
57800         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
57801         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
57802         * tests/test-unistd.c: Likewise.
57803         * tests/test-fcntl.c: Likewise.
57804
57805 2007-04-23  Eric Blake  <ebb9@byu.net>
57806
57807         * lib/fflush.c: Fix missing include.
57808         Reported by Bruno Haible.
57809
57810 2007-04-23  Bruno Haible  <bruno@clisp.org>
57811
57812         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
57813         Reported by Eric Blake.
57814
57815 2007-04-23  Bruno Haible  <bruno@clisp.org>
57816
57817         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
57818
57819 2007-04-23  Bruno Haible  <bruno@clisp.org>
57820
57821         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
57822
57823 2007-04-23  Bruno Haible  <bruno@clisp.org>
57824
57825         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
57826         Needed on HP-UX 11.
57827
57828 2007-04-16  Eric Blake  <ebb9@byu.net>
57829
57830         Make fflush rely on fpurge.
57831         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
57832         open coding all variants.
57833         * modules/fflush (Depends-on): Add fpurge and unistd.
57834         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
57835         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
57836
57837         Fix --with-tests compilation on cygwin.
57838         * modules/argmatch-tests (Makefile.am): List gnulib library first
57839         in LDADD.
57840         * modules/argp-tests (Makefile.am): Likewise.
57841         * modules/array-list-tests (Makefile.am): Likewise.
57842         * modules/array-oset-tests (Makefile.am): Likewise.
57843         * modules/avltree-list-tests (Makefile.am): Likewise.
57844         * modules/avltree-oset-tests (Makefile.am): Likewise.
57845         * modules/avltreehash-list-tests (Makefile.am): Likewise.
57846         * modules/carray-list-tests (Makefile.am): Likewise.
57847         * modules/dirname-tests (Makefile.am): Likewise.
57848         * modules/frexp-tests (Makefile.am): Likewise.
57849         * modules/isnanl-tests (Makefile.am): Likewise.
57850         * modules/linked-list-tests (Makefile.am): Likewise.
57851         * modules/linkedhash-list-tests (Makefile.am): Likewise.
57852         * modules/lock-tests (Makefile.am): Likewise.
57853         * modules/rbtree-list-tests (Makefile.am): Likewise.
57854         * modules/rbtree-oset-tests (Makefile.am): Likewise.
57855         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
57856         * modules/tls-tests (Makefile.am): Likewise.
57857         * modules/tsearch-tests (Makefile.am): Likewise.
57858         * modules/xvasprintf-tests (Makefile.am): Likewise.
57859
57860         Fix fpurge for cygwin.
57861         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
57862         value.
57863         * modules/fpurge-tests (Depends-on): Clean up trash.
57864
57865 2007-04-16  Simon Josefsson  <simon@josefsson.org>
57866
57867         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
57868
57869         * m4/autobuild.m4: Re-indent.
57870
57871 2007-04-13  Bruno Haible  <bruno@clisp.org>
57872
57873         * modules/fpurge-tests: New file.
57874         * tests/test-fpurge.c: New file.
57875
57876         * modules/fpurge: New file.
57877         * lib/fpurge.h: New file.
57878         * lib/fpurge.c: New file.
57879         * m4/fpurge.m4: New file.
57880
57881 2007-04-13  Bruno Haible  <bruno@clisp.org>
57882
57883         * modules/fbufmode-tests: New file.
57884         * tests/test-fbufmode.c: New file.
57885
57886         * modules/fbufmode: New file.
57887         * lib/fbufmode.h: New file.
57888         * lib/fbufmode.c: New file.
57889         * m4/fbufmode.m4: New file.
57890
57891 2007-04-13  Bruno Haible  <bruno@clisp.org>
57892
57893         * modules/fwritable-tests: New file.
57894         * tests/test-fwritable.c: New file.
57895
57896         * modules/fwritable: New file.
57897         * lib/fwritable.h: New file.
57898         * lib/fwritable.c: New file.
57899         * m4/fwritable.m4: New file.
57900
57901 2007-04-13  Bruno Haible  <bruno@clisp.org>
57902
57903         * modules/freadable-tests: New file.
57904         * tests/test-freadable.c: New file.
57905
57906         * modules/freadable: New file.
57907         * lib/freadable.h: New file.
57908         * lib/freadable.c: New file.
57909         * m4/freadable.m4: New file.
57910
57911 2007-04-13  Bruno Haible  <bruno@clisp.org>
57912
57913         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
57914         MOSTLYCLEANFILES.
57915
57916 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57917
57918         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
57919         gzip bootstrap.conf to avoid dragging in i18n machinery.
57920         (gnulib_tool_option): Use it.
57921
57922 2007-04-13  Bruno Haible  <bruno@clisp.org>
57923
57924         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
57925         %F directives.
57926         * tests/test-vasprintf-posix.c (test_function): Likewise.
57927         * tests/test-snprintf-posix.h (test_function): Likewise.
57928         * tests/test-sprintf-posix.h (test_function): Likewise.
57929         * tests/test-fprintf-posix.h (test_function): Likewise.
57930         * tests/test-printf-posix.h (test_function): Likewise.
57931         * tests/test-fprintf-posix.out: Likewise.
57932
57933 2007-04-13  Bruno Haible  <bruno@clisp.org>
57934
57935         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
57936         * modules/tls-tests (configure.ac): Likewise.
57937         Reported by Arto C. Nirkko <anirkko@insel.ch>.
57938
57939 2007-04-13  Bruno Haible  <bruno@clisp.org>
57940
57941         * lib/tls.c (glthread_tls_get): Fix return type.
57942         Patch by Arto C. Nirkko <anirkko@insel.ch>.
57943
57944 2007-04-12  Eric Blake  <ebb9@byu.net>
57945
57946         * modules/gettime (Depends-on): Remove gettime.
57947         Reported by Dmitry V. Levin.
57948
57949 2007-04-12  Bruno Haible  <bruno@clisp.org>
57950
57951         * modules/fflush (Include): Mention <stdio.h>.
57952         * modules/strtoimax (Include): Mention <inttypes.h>.
57953         * modules/strtoumax (Include): Likewise.
57954
57955 2007-04-12  Eric Blake  <ebb9@byu.net>
57956
57957         * .cvsignore: New file.
57958         * .gitignore: Likewise.
57959
57960 2007-04-12  Bruno Haible  <bruno@clisp.org>
57961
57962         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
57963         not before, since $(LDADD) often contains libgnu.a.
57964         * modules/striconv-tests (test_striconv_LDADD): Likewise.
57965         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
57966         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
57967         Needed on Cygwin.
57968
57969 2007-04-12  Eric Blake  <ebb9@byu.net>
57970
57971         Work around glibc's failure to flush stdin on fclose.
57972         * lib/closein.c (close_stdin): Flush stdin before closing.
57973
57974         Work around glibc's failure to reset seekable stdin on exit.
57975         * modules/closein: New module.
57976         * lib/closein.c: New file.
57977         * lib/closein.h: Likewise.
57978         * m4/closein.m4: Likewise.
57979         * MODULES.html.sh (File stream based Input/Output): Document it.
57980
57981 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57982
57983         * gnulib-tool: Rename generated 'autobuild' script to
57984         'do-autobuild' in --create-megatestdir output.
57985
57986         * doc/gnulib.texi (Build robot for gnulib): Fix.
57987
57988 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57989
57990         * modules/sysexits (Depends-on): Add absolute-header.
57991
57992 2007-04-12  Eric Blake  <ebb9@byu.net>
57993
57994         No need to preserve errno on success.
57995         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57996         Reported by Bruno Haible.
57997
57998 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57999
58000         * MODULES.html.sh (Support for maintaining and releasing
58001         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
58002
58003 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58004
58005         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
58006
58007 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58008
58009         * modules/autobuild: New module.
58010
58011         * m4/autobuild.m4: New file.
58012
58013 2007-04-11  Bruno Haible  <bruno@clisp.org>
58014
58015         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
58016         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
58017         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
58018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
58019         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58020         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58021         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58022         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58023         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58024         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58025         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
58026         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58027         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58028         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
58029         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58030         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58031         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
58032         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58033         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58034         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
58035         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58036         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58037         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
58038         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58039         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58040         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
58041         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58042         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58043         Reported by Eric Blake.
58044
58045 2007-04-11  Bruno Haible  <bruno@clisp.org>
58046
58047         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
58048
58049 2007-04-10  Bruno Haible  <bruno@clisp.org>
58050
58051         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
58052         for NaN and Infinity. Needed on FreeBSD 6.1.
58053         * tests/test-vasnprintf-posix.c (test_function): Undo last change
58054         regarding results for "%010a" of Infinity and NaN.
58055         * tests/test-vasprintf-posix.c (test_function): Likewise.
58056         * tests/test-snprintf-posix.h (test_function): Likewise.
58057         * tests/test-sprintf-posix.h (test_function): Likewise.
58058         * tests/test-fprintf-posix.h (test_function): Likewise.
58059         * tests/test-printf-posix.h (test_function): Likewise.
58060         * tests/test-fprintf-posix.out: Likewise.
58061
58062 2007-04-10  Bruno Haible  <bruno@clisp.org>
58063
58064         * modules/locale-tests: New file.
58065         * tests/test-locale.c: New file.
58066
58067         * modules/locale: New file.
58068         * lib/locale_.h: New file.
58069         * m4/locale_h.m4: New file.
58070
58071 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
58072             Bruno Haible  <bruno@clisp.org>
58073
58074         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
58075         be determined, test for availability of the copysignf, copysign,
58076         copysignl functions.
58077         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
58078         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
58079         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
58080
58081 2007-04-09  Eric Blake  <ebb9@byu.net>
58082
58083         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
58084         * modules/stdio (Makefile.am): Support fflush.
58085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58086         * modules/fflush: New file.
58087         * lib/fflush.c: Likewise.
58088         * m4/fflush.m4: Likewise.
58089         * modules/fflush-tests: New test.
58090         * tests/test-fflush.c: Likewise.
58091         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
58092
58093 2007-04-06  Bruno Haible  <bruno@clisp.org>
58094
58095         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
58096         (VASNPRINTF): Use signbit for faster determination whether to print a
58097         minus sign.
58098         * modules/vasnprintf (Files): Remove lib/float+.h.
58099         * modules/fprintf-posix (Depends-on): Add signbit.
58100         * modules/snprintf-posix (Depends-on): Likewise.
58101         * modules/sprintf-posix (Depends-on): Likewise.
58102         * modules/vasnprintf-posix (Depends-on): Likewise.
58103         * modules/vasprintf-posix (Depends-on): Likewise.
58104         * modules/vfprintf-posix (Depends-on): Likewise.
58105         * modules/vsnprintf-posix (Depends-on): Likewise.
58106         * modules/vsprintf-posix (Depends-on): Likewise.
58107
58108 2007-04-06  Bruno Haible  <bruno@clisp.org>
58109
58110         * tests/test-frexp.c (main): Test also the sign bit of zero results.
58111         * tests/test-frexpl.c (main): Likewise.
58112         * tests/test-ldexpl.c (main): Likewise.
58113         * modules/frexp-tests (Depends-on): Add signbit.
58114         * modules/frexpl-tests (Depdends-on): Likewise.
58115         * modules/ldexpl-tests (Depdends-on): Likewise.
58116
58117 2007-04-06  Bruno Haible  <bruno@clisp.org>
58118
58119         * modules/signbit-tests: New file.
58120         * tests/test-signbit.c: New file.
58121
58122         * modules/signbit: New file.
58123         * lib/signbitf.c: New file.
58124         * lib/signbitd.c: New file.
58125         * lib/signbitl.c: New file.
58126         * m4/signbit.m4: New file.
58127         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
58128         (signbit): New macro.
58129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
58130         REPLACE_SIGNBIT.
58131         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
58132         REPLACE_FREXPL into math.h.
58133
58134 2007-04-06  Bruno Haible  <bruno@clisp.org>
58135
58136         * modules/isnanf-nolibm-tests: New file.
58137         * tests/test-isnanf.c: New file.
58138
58139         * modules/isnanf-nolibm: New file.
58140         * lib/isnanf.h: New file.
58141         * lib/isnanf.c: New file.
58142         * lib/isnan.c: Consider the USE_FLOAT macro.
58143         * m4/isnanf.m4: New file.
58144
58145 2007-04-06  Bruno Haible  <bruno@clisp.org>
58146
58147         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
58148         (Link): New section.
58149
58150         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
58151
58152 2007-04-06  Bruno Haible  <bruno@clisp.org>
58153
58154         Assume the 'long double' type.
58155         * m4/longdouble.m4: Remove file.
58156         * config/srclist.txt: Don't mention longdouble.m4.
58157         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
58158         * lib/float+.h: Likewise.
58159         * lib/frexp.c: Likewise.
58160         * lib/printf-args.h: Likewise.
58161         * lib/printf-args.c: Likewise.
58162         * lib/printf-frexp.c: Likewise.
58163         * lib/printf-parse.c: Likewise.
58164         * lib/vasnprintf.c: Likewise.
58165         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
58166         * m4/intl.m4: Likewise.
58167         * m4/isnanl.m4: Likewise.
58168         * m4/printf.m4: Likewise.
58169         * m4/printf-frexpl.m4: Likewise.
58170         * m4/vasnprintf.m4: Likewise.
58171         * modules/allocsa (Files): Remove m4/longdouble.m4.
58172         * modules/gettext (Files): Likewise.
58173         * modules/relocatable-prog-wrapper (Files): Likewise.
58174         * modules/vasnprintf (Files): Likewise.
58175         * modules/isnanl (Files): Likewise.
58176         (Include): Simplify.
58177         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
58178         (Include): Simplify.
58179         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
58180         (Include): Simplify.
58181         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
58182         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58183         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
58184         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58185         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58186         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58187         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
58188         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58189         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58190         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58191         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
58192         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58193         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
58194         * tests/test-isnanl.c: Likewise.
58195         * tests/test-snprintf-posix.h: Likewise.
58196         * tests/test-sprintf-posix.h: Likewise.
58197         * tests/test-vasnprintf-posix.c: Likewise.
58198         * tests/test-vasnprintf-posix2.c: Likewise.
58199         * tests/test-vasprintf-posix.c: Likewise.
58200
58201 2007-04-06  Bruno Haible  <bruno@clisp.org>
58202
58203         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
58204         * lib/math_.h [__DECC]: Include the overridden include file through
58205         #include_next, outside the double-inclusion guard.
58206         * lib/stdio_.h [__DECC]: Likewise.
58207         * lib/stdlib_.h [__DECC]: Likewise.
58208         * lib/string_.h [__DECC]: Likewise.
58209         * lib/time_.h [__DECC]: Likewise.
58210         * lib/wchar_.h [__DECC]: Likewise.
58211         * lib/wctype_.h [__DECC]: Likewise.
58212         * lib/inttypes_.h [__DECC]: Likewise.
58213         Reported by Albert Chin <china@thewrittenword.com> in
58214         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
58215
58216 2007-04-04  Eric Blake  <ebb9@byu.net>
58217
58218         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
58219         1.5.x.
58220
58221 2007-04-04  Bruno Haible  <bruno@clisp.org>
58222
58223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
58224         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
58225
58226 2007-04-04  Bruno Haible  <bruno@clisp.org>
58227
58228         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
58229         results for "%010a" of Infinity and NaN.
58230         * tests/test-vasprintf-posix.c (test_function): Likewise.
58231         * tests/test-snprintf-posix.h (test_function): Likewise.
58232         * tests/test-sprintf-posix.h (test_function): Likewise.
58233         * tests/test-fprintf-posix.h (test_function): Remove these tests.
58234         * tests/test-printf-posix.h (test_function): Likewise.
58235         * tests/test-fprintf-posix.out: Update.
58236         Needed for FreeBSD 6.1.
58237
58238 2007-04-04  Bruno Haible  <bruno@clisp.org>
58239
58240         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
58241         directly used by the gnulib modules nor by gnulib-tool.
58242
58243 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
58244
58245         * DEPENDENCIES: Give overall description of version dependency
58246         desirability.  Use more-typical names for apps.
58247         Add shell, coreutils, diffutils, grep, tar, gzip.
58248
58249 2007-04-04  Simon Josefsson  <simon@josefsson.org>
58250
58251         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
58252
58253 2007-04-04  Karl Berry  <karl@gnu.org>
58254
58255         * MODULES.html.sh (func_module): missing '.
58256
58257 2007-04-03  Bruno Haible  <bruno@clisp.org>
58258
58259         * modules/argmatch-tests (Makefile.am): New variable
58260         test_argmatch_LDADD.
58261         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
58262         * modules/array-list-tests (Makefile.am): New variable
58263         test_array_list_LDADD.
58264         * modules/array-oset-tests (Makefile.am): New variable
58265         test_array_oset_LDADD.
58266         * modules/avltree-list-tests (Makefile.am): New variable
58267         test_avltree_list_LDADD.
58268         * modules/avltree-oset-tests (Makefile.am): New variable
58269         test_avltree_oset_LDADD.
58270         * modules/avltreehash-list-tests (Makefile.am): New variable
58271         test_avltreehash_list_LDADD.
58272         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
58273         test_canonicalize_lgpl_LDADD.
58274         * modules/carray-list-tests (Makefile.am): New variable
58275         test_carray_list_LDADD.
58276         * modules/dirname-tests (Makefile.am): New variable
58277         test_dirname_LDADD.
58278         * modules/linked-list-tests (Makefile.am): New variable
58279         test_linked_list_LDADD.
58280         * modules/linkedhash-list-tests (Makefile.am): New variable
58281         test_linkedhash_list_LDADD.
58282         * modules/rbtree-list-tests (Makefile.am): New variable
58283         test_rbtree_list_LDADD.
58284         * modules/rbtree-oset-tests (Makefile.am): New variable
58285         test_rbtree_oset_LDADD.
58286         * modules/rbtreehash-list-tests (Makefile.am): New variable
58287         test_rbtreehash_list_LDADD.
58288         * modules/xvasprintf-tests (Makefile.am): New variable
58289         test_xvasprintf_LDADD.
58290         Reported by Eric Blake.
58291
58292 2007-04-03  Eric Blake  <ebb9@byu.net>
58293
58294         * DEPENDENCIES: Weaken m4 requirements.
58295
58296 2007-04-03  Bruno Haible  <bruno@clisp.org>
58297
58298         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
58299         * modules/isnanl-tests (configure.ac): Likewise.
58300
58301 2007-04-03  Ben Pfaff  <blp@gnu.org>
58302
58303         * modules/iconv_open: Add $(srcdir)/ to source directory
58304         references in Makefile fragments that call gperf, to fix VPATH
58305         builds.
58306
58307 2007-04-03  Bruno Haible  <bruno@clisp.org>
58308
58309         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
58310         * lib/ldexpl.c: Undo last change.
58311
58312 2007-04-03  Bruno Haible  <bruno@clisp.org>
58313
58314         * modules/printf-frexpl (Depends-on): Undo last change.
58315         (Files): Add m4/ldexpl.m4.
58316
58317 2007-04-03  Bruno Haible  <bruno@clisp.org>
58318
58319         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
58320         * modules/isnanl (Link): New section.
58321
58322         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
58323         * modules/frexp (Link): New section.
58324
58325         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
58326         * modules/frexpl (Link): New section.
58327
58328         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
58329         * modules/ldexpl (Link): New section.
58330
58331 2007-04-03  Bruno Haible  <bruno@clisp.org>
58332
58333         * modules/TEMPLATE-EXTENDED: New file.
58334         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
58335
58336 2007-04-03  Bruno Haible  <bruno@clisp.org>
58337
58338         * DEPENDENCIES: New file.
58339         Suggested by Simon Josefsson.
58340
58341 2007-04-03  Bruno Haible  <bruno@clisp.org>
58342
58343         * doc/gnulib.texi: Escape @.
58344
58345 2007-04-03  James Youngman  <jay@gnu.org>
58346         and Paul Eggert  <eggert@cs.ucla.edu>
58347
58348         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
58349         birthtime on all systems that have birthtime, not just those which
58350         use st_birthtimensec rather than st_birthtim.  Putting zero in
58351         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
58352         that the birth time is not available for files on an NFS mount.
58353
58354 2007-04-03  Simon Josefsson  <simon@josefsson.org>
58355
58356         * modules/memxor: Move back from crypto/, suggested by Bruno.
58357         * modules/crypto/hmac-sha1: Fix memxor dependency.
58358
58359         * modules/crypto/gc: Moved from ../.
58360
58361 2007-04-02  Eric Blake  <ebb9@byu.net>
58362
58363         * lib/ldexpl.c (includes): Avoid libm.
58364
58365         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
58366
58367 2007-04-02  Bruno Haible  <bruno@clisp.org>
58368
58369         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
58370         on IRIX.
58371
58372 2007-04-02  Bruno Haible  <bruno@clisp.org>
58373
58374         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
58375         x86 or x86_64 platforms running MacOS X.
58376         Reported by Ryan Schmidt <@ryandesign.com>.
58377
58378 2007-04-02  Bruno Haible  <bruno@clisp.org>
58379
58380         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
58381         i386.
58382
58383 2007-04-01  Simon Josefsson  <simon@josefsson.org>
58384
58385         * modules/crypto/arcfour: Moved from ../.
58386         * modules/crypto/arcfour-tests: Moved from ../.
58387         * modules/crypto/arctwo: Moved from ../.
58388         * modules/crypto/arctwo-tests: Moved from ../.
58389         * modules/crypto/des: Moved from ../.
58390         * modules/crypto/des-tests: Moved from ../.
58391         * modules/crypto/gc-arcfour: Moved from ../.
58392         * modules/crypto/gc-arcfour-tests: Moved from ../.
58393         * modules/crypto/gc-arctwo: Moved from ../.
58394         * modules/crypto/gc-arctwo-tests: Moved from ../.
58395         * modules/crypto/gc-des: Moved from ../.
58396         * modules/crypto/gc-des-tests: Moved from ../.
58397         * modules/crypto/gc-hmac-md5: Moved from ../.
58398         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
58399         * modules/crypto/gc-hmac-sha1: Moved from ../.
58400         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
58401         * modules/crypto/gc-md2: Moved from ../.
58402         * modules/crypto/gc-md2-tests: Moved from ../.
58403         * modules/crypto/gc-md4: Moved from ../.
58404         * modules/crypto/gc-md4-tests: Moved from ../.
58405         * modules/crypto/gc-md5: Moved from ../.
58406         * modules/crypto/gc-md5-tests: Moved from ../.
58407         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
58408         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
58409         * modules/crypto/gc-random: Moved from ../.
58410         * modules/crypto/gc-rijndael: Moved from ../.
58411         * modules/crypto/gc-rijndael-tests: Moved from ../.
58412         * modules/crypto/gc-sha1: Moved from ../.
58413         * modules/crypto/gc-sha1-tests: Moved from ../.
58414         * modules/crypto/gc-tests: Moved from ../.
58415         * modules/crypto/hmac-md5: Moved from ../.
58416         * modules/crypto/hmac-md5-tests: Moved from ../.
58417         * modules/crypto/hmac-sha1: Moved from ../.
58418         * modules/crypto/hmac-sha1-tests: Moved from ../.
58419         * modules/crypto/md2: Moved from ../.
58420         * modules/crypto/md2-tests: Moved from ../.
58421         * modules/crypto/md4: Moved from ../.
58422         * modules/crypto/md4-tests: Moved from ../.
58423         * modules/crypto/md5: Moved from ../.
58424         * modules/crypto/md5-tests: Moved from ../.
58425         * modules/crypto/memxor: Moved from ../.
58426         * modules/crypto/rijndael: Moved from ../.
58427         * modules/crypto/rijndael-tests: Moved from ../.
58428         * modules/crypto/sha1: Moved from ../.
58429
58430 2007-03-30  James Youngman  <jay@gnu.org>
58431
58432         * tests/test-stat-time.c (prepare_test): use chmod() rather than
58433         rename() to change the ctime of a file (because ctime is unaffected
58434         by rename on jfs2 on AIX 5.1).
58435         (main): Start by doing cleanup, in case a previous run failed leaving
58436         test files behind.
58437
58438 2007-03-31  Bruno Haible  <bruno@clisp.org>
58439
58440         Support old proprietary implementations of iconv.
58441         * modules/iconv_open: New file.
58442         * lib/iconv_.h: New file.
58443         * m4/iconv_h.m4: New file.
58444         * lib/iconv_open.c: New file.
58445         * lib/iconv_open-aix.gperf: New file.
58446         * lib/iconv_open-hpux.gperf: New file.
58447         * lib/iconv_open-irix.gperf: New file.
58448         * lib/iconv_open-osf.gperf: New file.
58449         * m4/iconv_open.m4: New file.
58450         * modules/linebreak (Depends-on): Add iconv_open.
58451         * modules/striconv (Depends-on): Likewise.
58452         * modules/striconveh (Depends-on): Likewise.
58453         * modules/unicodeio (Depends-on): Likewise.
58454         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
58455         (iconv_t)(-1).
58456         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
58457         conversion if cd is (iconv_t)(-1).
58458         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
58459         is not possible.
58460
58461 2007-03-31  Bruno Haible  <bruno@clisp.org>
58462
58463         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58464         work on Solaris either. Protect also second use of "autodetect_jp".
58465
58466 2007-03-31  Bruno Haible  <bruno@clisp.org>
58467
58468         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
58469         the function is not present.
58470
58471 2007-03-31  Bruno Haible  <bruno@clisp.org>
58472
58473         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
58474         the function is not present.
58475
58476 2007-03-31  Bruno Haible  <bruno@clisp.org>
58477
58478         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
58479         a bug in HP-UX iconv_open().
58480
58481 2007-03-31  Bruno Haible  <bruno@clisp.org>
58482
58483         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
58484         (Mathematics <math.h>): New section, add fpieee.
58485         (Input/output <stdio.h>): Add fseterr.
58486         (Mathematics <math.h>): New section, add printf-frexp.
58487         (Container data structures): Add sublist.
58488         (Core language properties): Add fpucw, inline.
58489         (Functions for greatest-width integer types <inttypes.h>): Add
58490         imaxabs, imaxdiv, inttypes.
58491         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
58492         isnanl-nolibm, ldexp.
58493         (Mathematics <math.h>): New section, add printf-frexpl.
58494         (Support for systems lacking POSIX:2001): Add fprintf-posix,
58495         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
58496         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
58497         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
58498         (Unicode string functions): Add unistr/u*-mbtoucr.
58499         (Java): Add javacomp-script, javaexec-script.
58500         (C#): Add csharpcomp-script, csharpexec-script.
58501         (Support for building libraries and executables): Add havelib,
58502         relocatable-*.
58503         (Support for maintaining and releasing projects): Renamed from
58504         'Support for maintaining and release projects'. Add announce-gen.
58505
58506 2007-03-31  Bruno Haible  <bruno@clisp.org>
58507
58508         * README: Talk primarily about git.
58509         (git and CVS): Renamed from CVS.
58510         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
58511         gnulib is available through git.
58512         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
58513
58514 2007-03-30  Bruno Haible  <bruno@clisp.org>
58515
58516         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
58517         * lib/poll_.h: Likewise.
58518         * lib/stat_.h: Likewise.
58519         * lib/sys_time_.h: Likewise.
58520         * lib/sysexit_.h: Likewise.
58521         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
58522         * lib/stdbool_.h: Likewise.
58523         * lib/byteswap_.h: Add double-inclusion guard.
58524
58525 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
58526
58527         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
58528
58529 2007-03-30  Karl Berry  <karl@gnu.org>
58530
58531         * config/srclist-update: double space after USA in the license
58532         substitution, since that's how it's usually (?) written.
58533
58534 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58535
58536         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
58537         reported by Bruno Haible.
58538
58539 2007-03-29  Bruno Haible  <bruno@clisp.org>
58540
58541         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
58542         a bug in AIX iconv().
58543
58544 2007-03-29  Bruno Haible  <bruno@clisp.org>
58545
58546         * modules/ldexpl-tests: New file.
58547         * tests/test-ldexpl.c: New file.
58548
58549 2007-03-29  Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/ldexpl.c: Include fpucw.h.
58552         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
58553         multiplication.
58554         * modules/ldexpl (Depends-on): Add fpucw.
58555
58556 2007-03-29  Bruno Haible  <bruno@clisp.org>
58557
58558         * modules/ldexpl: New file.
58559         * m4/ldexpl.m4: New file.
58560         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
58561         set.
58562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
58563         REPLACE_LDEXPL.
58564         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
58565         REPLACE_LDEXPL.
58566         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58567         gl_FUNC_LDEXPL_WORKS.
58568         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
58569         * modules/mathl (Files): Remove lib/ldexpl.c.
58570         (Depends-on): Add ldexpl.
58571
58572 2007-03-29  Bruno Haible  <bruno@clisp.org>
58573
58574         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
58575
58576 2007-03-29  Bruno Haible  <bruno@clisp.org>
58577
58578         * tests/test-striconveh.c (main): Don't assume that a direct conversion
58579         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
58580         and possibly also HP-UX.
58581         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58582         work on AIX, IRIX, HP-UX, OSF/1.
58583         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
58584         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
58585         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
58586         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
58587         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
58588         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
58589
58590 2007-03-29  Bruno Haible  <bruno@clisp.org>
58591
58592         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
58593
58594 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58595
58596         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
58597         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
58598
58599 2007-03-29  Eric Blake  <ebb9@byu.net>
58600
58601         * lib/acl-internal.h: Remove redundant include.
58602         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
58603         Cygwin when a file is locked.
58604
58605 2007-03-29  Bruno Haible  <bruno@clisp.org>
58606
58607         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
58608         file.
58609         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
58610
58611 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58612
58613         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
58614         try to remove a parent directory if the child couldn't be removed
58615         (except for the first rmdir, which could fail because the child
58616         doesn't exist).  Problem reported by Jeff Blaine in
58617         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
58618
58619 2007-03-28  Bruno Haible  <bruno@clisp.org>
58620
58621         * lib/striconveh.c (utf8conv_carefully): New function.
58622         (mem_cd_iconveh_internal): Invoke it.
58623
58624 2007-03-28  Bruno Haible  <bruno@clisp.org>
58625
58626         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
58627         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
58628         input.
58629         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
58630         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
58631         unistr/u8-uctomb.
58632
58633 2007-03-28  Bruno Haible  <bruno@clisp.org>
58634
58635         * modules/unistr/u8-mbtoucr: New file.
58636         * lib/unistr/u8-mbtoucr.c: New file.
58637         * modules/unistr/u16-mbtoucr: New file.
58638         * lib/unistr/u16-mbtoucr.c: New file.
58639         * modules/unistr/u16-mbtoucr: New file.
58640         * lib/unistr/u16-mbtoucr.c: New file.
58641         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
58642
58643 2007-03-27  Simon Josefsson  <simon@josefsson.org>
58644             Bruno Haible  <bruno@clisp.org>
58645
58646         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
58647         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
58648         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
58649
58650         * m4/stdio_h.m4: Add stubs for vasprintf too.
58651
58652         * modules/stdio: Support vasprintf in sed command.
58653
58654         * modules/vasprintf: Depend on stdio for prototypes.  Remove
58655         vasprintf.h.  Add stdio module indicator.
58656
58657         * lib/stdio_.h: Declare asprintf and vasprintf, based on
58658         vasprintf.h.
58659
58660         * lib/vasprintf.h: File removed.
58661
58662         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
58663         * lib/vasprintf.c: Ditto.
58664         * lib/xvasprintf.c: Ditto.
58665         * tests/test-vasprintf-posix.c: Ditto.
58666         * tests/test-vasprintf.c: Ditto.
58667
58668 2007-03-27  Bruno Haible  <bruno@clisp.org>
58669
58670         Make vasnprintf multithread-safe.
58671         * lib/vasnprintf.c (decimal_point_char): New function.
58672         (VASNPRINTF): Use it.
58673         Suggested by Simon Josefsson.
58674
58675 2007-03-27  Eric Blake  <ebb9@byu.net>
58676
58677         Support sub-second birthtime on cygwin.
58678         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
58679         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
58680         (get_stat_birthtime): Also work with st_birthtim.
58681
58682 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
58683
58684         * lib/stat-time.h (USE_BIRTHTIME): Remove.
58685         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
58686         (get_stat_birthtime_ns): Do not try to use "spare" fields.
58687         (get_stat_birthtime_ns): Simplify compile-time tests.
58688         (get_stat_birthtime): Change the API to look like
58689         get_stat_mtime etc., except return a negative tv_nsec on error.
58690         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
58691         Don't check for "spare" fields.
58692         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
58693         or for struct stat.st_birthtime, as these tests aren't used.
58694         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
58695
58696 2007-03-27  Bruno Haible  <bruno@clisp.org>
58697
58698         * lib/stat-time.h: Include <sys/stat.h>.
58699
58700 2007-03-27  James Youngman  <jay@gnu.org>
58701
58702         * lib/stat-time.h (get_stat_birthtime): New function for
58703           retrieving st_birthtime as provided by UFS2 (hence *BSD).
58704         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
58705           and its variants.
58706         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
58707         * modules/stat-time-test: New file.
58708         * tests/test-stat-time.c: New test, devised by Bruno Haible.
58709
58710 2007-03-26  Bruno Haible  <bruno@clisp.org>
58711
58712         Better support of signalling NaNs.
58713         * lib/atanl.c: Include isnanl.h.
58714         (atanl): Perform test for NaN at the beginning of the function and
58715         through a call to isnanl.
58716         * lib/cosl.c: Include isnanl.h.
58717         (cosl): Perform test for NaN at the beginning of the function and
58718         through a call to isnanl.
58719         * lib/ldexpl.c: Include isnanl.h.
58720         (ldexpl): Perform test for NaN through a call to isnanl.
58721         * lib/logl.c: Include isnanl.h.
58722         (logl): Perform test for NaN at the beginning of the function and
58723         through a call to isnanl.
58724         * lib/sinl.c: Include isnanl.h.
58725         (sinl): Perform test for NaN at the beginning of the function and
58726         through a call to isnanl.
58727         * lib/sqrtl.c: Include isnanl.h.
58728         (sqrtl): Perform test for NaN at the beginning of the function and
58729         through a call to isnanl.
58730         * lib/tanl.c: Include isnanl.h.
58731         (tanl): Perform test for NaN at the beginning of the function and
58732         through a call to isnanl.
58733         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
58734         * modules/mathl (Depends-on): Add isnanl.
58735
58736 2007-03-26  Eric Blake  <ebb9@byu.net>
58737
58738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
58739         regression in logic sense of previous patch.
58740
58741 2007-03-26  Bruno Haible  <bruno@clisp.org>
58742
58743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
58744         unportable shell command "if ! ...".
58745         Reported by Ralf Wildenhues.
58746
58747 2007-03-25  Bruno Haible  <bruno@clisp.org>
58748
58749         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
58750         <sysexits.h> file, and only add EX_CONFIG.
58751         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
58752         absolute file name and whether it is sufficient. Substitute also
58753         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
58754         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
58755         ABSOLUTE_SYSEXITS_H into sysexits.h.
58756
58757 2007-03-25  Bruno Haible  <bruno@clisp.org>
58758
58759         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
58760         hints is NULL.
58761
58762 2007-03-25  Bruno Haible  <bruno@clisp.org>
58763
58764         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
58765         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
58766
58767 2007-03-25  Bruno Haible  <bruno@clisp.org>
58768
58769         * lib/vasnprintf.c: Include langinfo.h.
58770         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
58771         multithread-safe.
58772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
58773         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
58774         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58775         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58776         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58777         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58778         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58779         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
58780         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58781         Reported by Simon Josefsson.
58782
58783 2007-03-25  Bruno Haible  <bruno@clisp.org>
58784
58785         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
58786         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
58787         * modules/vasnprintf (Depends-on): Add stdint.
58788
58789 2007-03-25  Bruno Haible  <bruno@clisp.org>
58790
58791         * modules/fpieee: New file.
58792         * m4/fpieee.m4: New file.
58793         * modules/isnan-nolibm (Depends-on): Add fpieee.
58794         * modules/isnanl-nolibm (Depends-on): Add fpieee.
58795         * modules/isnanl (Depends-on): Add fpieee.
58796
58797 2007-03-25  Bruno Haible  <bruno@clisp.org>
58798
58799         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
58800
58801 2007-03-25  Bruno Haible  <bruno@clisp.org>
58802
58803         Avoid test failures on IRIX 6.5.
58804         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
58805         (main): Use it.
58806         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
58807         macros.
58808         (main): Use them.
58809
58810 2007-03-25  Bruno Haible  <bruno@clisp.org>
58811
58812         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
58813         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
58814         exists but doesn't work.
58815         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
58816         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
58817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
58818         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
58819         math.h.
58820
58821 2007-03-25  Bruno Haible  <bruno@clisp.org>
58822
58823         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
58824         returns inf. Needed on IRIX 6.5.
58825
58826 2007-03-25  Bruno Haible  <bruno@clisp.org>
58827
58828         * tests/test-frexpl.c: Include isnanl-nolibm.h.
58829         (main): Use isnanl instead of x != x idiom.
58830         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
58831
58832         * tests/test-frexp.c: Include isnan.h.
58833         (main): Use isnan instead of x != x idiom.
58834         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
58835
58836 2007-03-25  Bruno Haible  <bruno@clisp.org>
58837
58838         * tests/test-frexp.c (NaN): New function/macro.
58839         (main): Use it instead of 0.0 / 0.0.
58840         * tests/test-isnan.c (NaN): New function/macro.
58841         (main): Use it instead of 0.0 / 0.0.
58842         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
58843         (test_function): Use it instead of 0.0 / 0.0.
58844         * tests/test-vasprintf-posix.c (NaN): New function/macro.
58845         (test_function): Use it instead of 0.0 / 0.0.
58846         * tests/test-snprintf-posix.h (NaN): New function/macro.
58847         (test_function): Use it instead of 0.0 / 0.0.
58848         * tests/test-sprintf-posix.h (NaN): New function/macro.
58849         (test_function): Use it instead of 0.0 / 0.0.
58850         * tests/test-fprintf-posix.h (NaN): New function/macro.
58851         (test_function): Use it instead of 0.0 / 0.0.
58852         * tests/test-printf-posix.h (NaN): New function/macro.
58853         (test_function): Use it instead of 0.0 / 0.0.
58854
58855         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
58856
58857 2007-03-25  Bruno Haible  <bruno@clisp.org>
58858
58859         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
58860
58861 2007-03-25  Bruno Haible  <bruno@clisp.org>
58862
58863         * lib/regexec.c (merge_state_with_log): Make static.
58864
58865 2007-03-25  Bruno Haible  <bruno@clisp.org>
58866
58867         * lib/trigl.c (kernel_rem_pio2): Make static.
58868
58869 2007-03-25  Bruno Haible  <bruno@clisp.org>
58870
58871         * lib/sincosl.c (sincosl_table): Make static.
58872
58873 2007-03-25  Bruno Haible  <bruno@clisp.org>
58874
58875         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
58876         if the compiler does not support C99.
58877
58878 2007-03-25  Bruno Haible  <bruno@clisp.org>
58879
58880         * modules/time (Makefile.am): Ensure all rule action lines start with a
58881         tab.
58882
58883 2007-03-24  Bruno Haible  <bruno@clisp.org>
58884
58885         * modules/tsearch-tests: New file.
58886         * tests/test-tsearch.sh: New file.
58887         * tests/test-tsearch.c: New file, mostly copied from glibc.
58888
58889         * modules/search-tests: New file.
58890         * tests/test-search.c: New file.
58891
58892         * modules/search: New file.
58893         * lib/search_.h: New file, incorporating lib/tsearch.h.
58894         * m4/search_h.m4: New file.
58895         * lib/tsearch.h: Remove file.
58896         * lib/tsearch.c: Include search.h instead of tsearch.h.
58897         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
58898         HAVE_TSEARCH.
58899         * modules/tsearch (Files): Remove lib/tsearch.h.
58900         (Depends-on): Add search.
58901         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
58902         (Include): Change tsearch.h into search.h.
58903
58904 2007-03-24  Bruno Haible  <bruno@clisp.org>
58905
58906         * modules/fpucw: New file.
58907         * lib/fpucw.h: New file.
58908         * lib/frexp.c: Include fpucw.h.
58909         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58910         (FUNC): Use them.
58911         * lib/printf-frexp.c: Include fpucw.h.
58912         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58913         (FUNC): Use them.
58914         * lib/vasnprintf.c: Include fpucw.h.
58915         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
58916         'long double' calculations.
58917         * tests/test-frexpl.c: Include fpucw.h.
58918         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58919         * tests/test-printf-frexpl.c: Include fpucw.h.
58920         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58921         * modules/frexpl (Depends-on): Add fpucw.
58922         * modules/printf-frexpl (Depends-on): Likewise.
58923         * modules/fprintf-posix (Depends-on): Likewise.
58924         * modules/snprintf-posix (Depends-on): Likewise.
58925         * modules/sprintf-posix (Depends-on): Likewise.
58926         * modules/vasnprintf-posix (Depends-on): Likewise.
58927         * modules/vasprintf-posix (Depends-on): Likewise.
58928         * modules/vfprintf-posix (Depends-on): Likewise.
58929         * modules/vsnprintf-posix (Depends-on): Likewise.
58930         * modules/vsprintf-posix (Depends-on): Likewise.
58931         * modules/frexpl-tests (Depends-on): Likewise.
58932         * modules/printf-frexpl-tests (Depends-on): Likewise.
58933
58934 2007-03-24  Bruno Haible  <bruno@clisp.org>
58935
58936         * lib/float+.h: New file.
58937         * lib/isnan.c: Include float+.h.
58938         (SIZE): New macro.
58939         (FUNC): Compare only SIZE bytes of the value.
58940         * lib/vasnprintf.c: Include float+.h.
58941         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
58942         SIZEOF_LDBL or SIZEOF_DBL bytes.
58943         * modules/isnan-nolibm (Files): Add lib/float+.h.
58944         * modules/isnanl-nolibm (Files): Add lib/float+.h.
58945         * modules/isnanl (Files): Add lib/float+.h.
58946         * modules/vasnprintf (Files): Add lib/float+.h.
58947
58948 2007-03-24  Bruno Haible  <bruno@clisp.org>
58949
58950         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
58951         include isnanl-nolibm.h.
58952
58953 2007-03-24  Bruno Haible  <bruno@clisp.org>
58954
58955         * tests/test-read-file.c (main): Don't produce spurious output for
58956         expected situations. Make the test fail if it encountered unexpected
58957         results.
58958
58959 2007-03-24  Bruno Haible  <bruno@clisp.org>
58960
58961         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
58962         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
58963
58964 2007-03-24  Bruno Haible  <bruno@clisp.org>
58965
58966         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
58967
58968 2007-03-24  Bruno Haible  <bruno@clisp.org>
58969
58970         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
58971         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
58972
58973         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58974         * modules/utf8-ucs4: Turn into a symbolic link to module
58975         unistr/u8-mbtouc.
58976
58977         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58978         utf8-ucs4-unsafe.
58979         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58980         unistr/u8-mbtouc-unsafe.
58981
58982         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58983         * modules/utf16-ucs4: Turn into a symbolic link to module
58984         unistr/u16-mbtouc.
58985
58986         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58987         utf16-ucs4-unsafe.
58988         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58989         unistr/u16-mbtouc-unsafe.
58990
58991         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58992         * modules/ucs4-utf8: Turn into a symbolic link to module
58993         unistr/u8-ubtomb.
58994
58995         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58996         * modules/ucs4-utf16: Turn into a symbolic link to module
58997         unistr/u16-ubtomb.
58998
58999 2007-03-24  Bruno Haible  <bruno@clisp.org>
59000
59001         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
59002         Enable the function only if HAVE_INLINE.
59003         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
59004         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59005         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
59006         Enable the function only if HAVE_INLINE.
59007         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
59008         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59009         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
59010         Enable the function only if HAVE_INLINE.
59011         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
59012         Enable the function only if HAVE_INLINE.
59013         * modules/utf8-ucs4: Update.
59014         * modules/utf8-ucs4-unsafe: Update.
59015         * modules/utf16-ucs4: Update.
59016         * modules/utf16-ucs4-unsafe: Update.
59017         * modules/ucs4-utf8: Update.
59018         * modules/ucs4-utf16: Update.
59019
59020 2007-03-24  Bruno Haible  <bruno@clisp.org>
59021
59022         * lib/utf8-ucs4.h: Remove file.
59023         * lib/utf8-ucs4-unsafe.h: Remove file.
59024         * lib/utf16-ucs4.h: Remove file.
59025         * lib/utf16-ucs4-unsafe.h: Remove file.
59026         * lib/ucs4-utf8.h: Remove file.
59027         * lib/ucs4-utf16.h: Remove file.
59028         * lib/unistr.h: Include their previous contents.
59029         * m4/utf-ucs4.m4: Remove file.
59030         * m4/ucs4-utf.m4: Remove file.
59031         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
59032         (Depends-on): Add unistr/base.
59033         (configure.ac): Remove gl_UTF_UCS4.
59034         (Makefile.am): Update.
59035         (Include): Change to unistr.h.
59036         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
59037         (Depends-on): Add unistr/base.
59038         (configure.ac): Remove gl_UTF_UCS4.
59039         (Makefile.am): Update.
59040         (Include): Change to unistr.h.
59041         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
59042         (Depends-on): Add unistr/base.
59043         (configure.ac): Remove gl_UTF_UCS4.
59044         (Makefile.am): Update.
59045         (Include): Change to unistr.h.
59046         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
59047         (Depends-on): Add unistr/base.
59048         (configure.ac): Remove gl_UTF_UCS4.
59049         (Makefile.am): Update.
59050         (Include): Change to unistr.h.
59051         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
59052         (Depends-on): Add unistr/base.
59053         (configure.ac): Remove gl_UCS4_UTF.
59054         (Makefile.am): Update.
59055         (Include): Change to unistr.h.
59056         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
59057         (Depends-on): Add unistr/base.
59058         (configure.ac): Remove gl_UCS4_UTF.
59059         (Makefile.am): Update.
59060         (Include): Change to unistr.h.
59061         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
59062         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
59063         utf8-ucs4-unsafe.h.
59064         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
59065         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
59066         utf16-ucs4-unsafe.h.
59067         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
59068         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
59069         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
59070         * lib/unistr/u8-strchr.c: Likewise.
59071         * lib/unistr/u8-strrchr.c: Likewise.
59072         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
59073         * lib/unistr/u16-strchr.c: Likewise.
59074         * lib/unistr/u16-strrchr.c: Likewise.
59075         * lib/striconveh.c: Update.
59076         * lib/linebreak.c: Update.
59077
59078 2007-03-24  Bruno Haible  <bruno@clisp.org>
59079
59080         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
59081         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
59082
59083 2007-03-22  Bruno Haible  <bruno@clisp.org>
59084
59085         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
59086
59087 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         * MODULES.html.sh (File system functions): New module write-any-file.
59090         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
59091         * m4/write-any-file.m4: New files.
59092
59093 2007-03-23  Eric Blake  <ebb9@byu.net>
59094
59095         * gnulib-tool: Rearrange space-tab sequences, since some editors
59096         like to eat them.
59097
59098 2007-03-23  Eric Blake  <ebb9@byu.net>
59099
59100         * lib/version-etc.c (version_etc_va): Update license wording to
59101         be more concise.  Recommended by Richard Stallman.
59102
59103 2007-03-22  Bruno Haible  <bruno@clisp.org>
59104
59105         * lib/poll.c (MSG_PEEK): New fallback definition.
59106
59107 2007-03-22  Bruno Haible  <bruno@clisp.org>
59108
59109         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
59110         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
59111         (main): Update.
59112         Fixes a compilation error on BeOS.
59113
59114 2007-03-22  Bruno Haible  <bruno@clisp.org>
59115
59116         * modules/frexpl-tests: New file.
59117         * tests/test-frexpl.c: New file.
59118
59119         * modules/frexpl: New file.
59120         * m4/frexpl.m4: New file.
59121         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
59122         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
59123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
59124         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
59125         (Depends-on): Add frexpl. Remove isnanl-nolibm.
59126         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
59127
59128 2007-03-22  Bruno Haible  <bruno@clisp.org>
59129
59130         * lib/frexpl.c: Share code with lib/frexp.c.
59131         * modules/mathl (Files): Add lib/frexp.c.
59132         (Depends-on): Add isnanl-nolibm.
59133
59134 2007-03-22  Bruno Haible  <bruno@clisp.org>
59135
59136         * modules/printf-frexp (Files): Add m4/frexp.m4.
59137         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
59138         only if the found frexp function actually works.
59139
59140 2007-03-22  Bruno Haible  <bruno@clisp.org>
59141
59142         * lib/frexp.c: Remove older implementation that uses divisions.
59143
59144 2007-03-21  Bruno Haible  <bruno@clisp.org>
59145
59146         * modules/frexp-tests: New file.
59147         * tests/test-frexp.c: New file.
59148
59149         * modules/frexp: New file.
59150         * lib/frexp.c: New file.
59151         * m4/frexp.m4: New file.
59152         * lib/math_.h (frexp): New declaration.
59153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
59154         REPLACE_FREXP.
59155         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
59156
59157 2007-03-21  Bruno Haible  <bruno@clisp.org>
59158
59159         * modules/isnanl-tests: New file.
59160         * tests/test-isnanl.c: New file.
59161
59162         * modules/isnanl: New file.
59163         * lib/isnanl.h: New file.
59164         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
59165         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
59166         gl_FUNC_ISNANL_WORKS.
59167         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
59168         New macros.
59169
59170 2007-03-21  Bruno Haible  <bruno@clisp.org>
59171
59172         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
59173         lib/isnanl.h.
59174         (Include): Update.
59175         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
59176         * lib/vasnprintf.c: Update.
59177         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
59178         tests/test-isnanl.h, remove tests/test-isnanl.c.
59179         (Makefile.am): Update.
59180         * tests/test-isnanl-nolibm.c: New file.
59181         * tests/test-isnanl.h: New file.
59182         * tests/test-isnanl.c: Remove file.
59183
59184 2007-03-21  Jim Meyering  <jim@meyering.net>
59185
59186         When trying to open ".", treat ESTALE like EACCES.
59187         * lib/savewd.c (savewd_save): Resort to forking not just upon
59188         failure with EACCES, but also when errno is ESTALE.
59189
59190 2007-03-20  Bruno Haible  <bruno@clisp.org>
59191
59192         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
59193         Needed on AIX 5.1. Reported by Matthew Woehlke.
59194
59195 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59196
59197         Suggestions by Bruno Haible:
59198         * lib/acl-internal.h: Include "gettext.h" rather than rolling
59199         our own.
59200         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
59201         * modules/acl (Depends-on): Add gettext.
59202
59203 2007-03-19  Bruno Haible  <bruno@clisp.org>
59204
59205         * modules/iconvme: Remove file.
59206         * lib/iconvme.h: Remove file.
59207         * lib/iconvme.c: Remove file.
59208         * m4/iconvme.m4: Remove file.
59209
59210 2007-03-19  Bruno Haible  <bruno@clisp.org>
59211
59212         * doc/relocatable-maint.texi: Break long shell script line.
59213         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59214
59215 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59216
59217         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
59218         handle file_has_acl.
59219         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
59220         * lib/acl.c: Move header inclusions and related macro defns into
59221         lib/acl-internal.h.
59222         (S_ISLNK): Remove defn, since that's now done for us.
59223         (file_has_acl): Move to lib/file-has-acl.c.
59224         Call acl_trivial if available.  This is the crucial part of the fix.
59225         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
59226         shared within the library.  Rewrite a bit, partly to make it compatible
59227         with the GNU coding style.
59228         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
59229         Remove unnecessary double-quotes.
59230         Don't test for acl_to_text; the build will catch that.
59231         Replace acl_entries if it doesn't exist and it is needed.
59232         Check for -lsec and acl_trivial (as used on Solaris 10).
59233         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
59234         lib/file-has-acl.c.
59235         (Depends-on): Add sys_stat, for S_ISLNK.
59236
59237 2007-03-19  Ben Pfaff  <blp@gnu.org>
59238
59239         * doc/gnulib.texi: Fix typos.
59240         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59241
59242 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59243
59244         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
59245         If size is zero here, buf must be zero.
59246
59247 2007-03-19  Simon Josefsson  <simon@josefsson.org>
59248
59249         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
59250         <bruno@clisp.org>.
59251
59252 2007-03-18  Bruno Haible  <bruno@clisp.org>
59253
59254         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
59255         Suggested by Eric Blake.
59256
59257 2007-03-18  Ben Pfaff  <blp@gnu.org>
59258
59259         * doc/relocatable.texi: Recommend using as prefix a directory
59260         that does not exist and will never be created.  Based on
59261         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
59262         and others.
59263
59264 2007-03-17  Bruno Haible  <bruno@clisp.org>
59265
59266         * lib/fchownat.c: Include lchown.h.
59267
59268 2007-03-17  Bruno Haible  <bruno@clisp.org>
59269
59270         Fix endless loop when the given allocated size was > INT_MAX.
59271         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
59272         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
59273         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
59274         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
59275         * lib/sprintf.c (sprintf): Likewise.
59276
59277 2007-03-17  Bruno Haible  <bruno@clisp.org>
59278
59279         * tests/test-argp-2.sh (func_compare): Output a context diff.
59280
59281 2007-03-17  Bruno Haible  <bruno@clisp.org>
59282
59283         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
59284         locale's decimal-point character.
59285
59286 2007-03-17  Bruno Haible  <bruno@clisp.org>
59287
59288         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
59289         before comparing it. Needed because on some platforms (e.g. x86) a
59290         'long double' occupies less bytes than sizeof (long double).
59291
59292 2007-03-17  Bruno Haible  <bruno@clisp.org>
59293
59294         * tests/test-crc.c (main): Make printf statements 64-bit clean.
59295         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
59296         * tests/test-getaddrinfo.c (simple): Likewise.
59297         * tests/test-read-file.c (main): Likewise.
59298
59299 2007-03-17  Bruno Haible  <bruno@clisp.org>
59300
59301         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
59302
59303 2007-03-17  Bruno Haible  <bruno@clisp.org>
59304
59305         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
59306         unused variable.
59307
59308 2007-03-17  Bruno Haible  <bruno@clisp.org>
59309
59310         * tests/test-c-strcasecmp.c: Include c-strcase.h.
59311         * tests/test-c-strncasecmp.c: Likewise.
59312
59313 2007-03-17  Bruno Haible  <bruno@clisp.org>
59314
59315         * modules/stdlib (Depends-on): Add unistd.
59316         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
59317         Needed for MacOS X 10.3.
59318
59319 2007-03-17  Bruno Haible  <bruno@clisp.org>
59320
59321         * lib/unistr/u-strdup.h: Include <stdlib.h>.
59322
59323 2007-03-17  Bruno Haible  <bruno@clisp.org>
59324
59325         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
59326
59327 2007-03-17  Bruno Haible  <bruno@clisp.org>
59328
59329         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
59330         to reflect files copied from gnulib (with or without modifications).
59331         Suggested by Jim Meyering.
59332
59333 2007-03-17  Eric Blake  <ebb9@byu.net>
59334
59335         * NEWS: Document stdlib change from 2007-02-18.
59336
59337 2007-03-17  Jim Meyering  <jim@meyering.net>
59338
59339         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
59340         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
59341         someone uses a name containing shell meta-characters.
59342         Reported by Alfred M. Szmidt.
59343
59344         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
59345
59346 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
59347
59348         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
59349         and copy gettext configuration files only if configure.ac contains
59350         a use of AM_GNU_GETTEXT_VERSION.
59351
59352 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
59353
59354         * build-aux/bootstrap (gnulib_name): New variable.
59355         (gnulib_tool_options): Use it.
59356
59357 2007-03-13  Simon Josefsson  <simon@josefsson.org>
59358
59359         * tests/test-des.c: Use new namespace.
59360
59361 2007-03-15  Bruno Haible  <bruno@clisp.org>
59362
59363         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
59364         Reported by James Youngman <jay@gnu.org>.
59365
59366 2007-03-15  Bruno Haible  <bruno@clisp.org>
59367
59368         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
59369         declared prototype. Needed with cc on OSF/1 5.1.
59370
59371 2007-03-15  Bruno Haible  <bruno@clisp.org>
59372
59373         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
59374         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
59375         (struct gl_list_implementation): Add dispose_fn argument to the
59376         'create_empty', 'create' methods.
59377         (struct gl_list_impl_base): Add field 'dispose_fn'.
59378         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
59379         argument.
59380         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
59381         dispose_fn argument.
59382         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
59383         dispose_fn on the dropped values.
59384         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
59385         dispose_fn argument.
59386         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
59387         dropped values.
59388         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
59389         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59390         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
59391         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59392         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
59393         argument.
59394         (gl_tree_list_free): Call dispose_fn on the dropped values.
59395         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
59396         the dropped values.
59397         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59398         Add dispose_fn argument.
59399         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
59400         Call dispose_fn on the dropped values.
59401         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
59402         Add dispose_fn argument.
59403         (gl_sublist_create): Initialize the 'dispose_fn' field.
59404         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
59405         * tests/test-array_list.c (main): Update.
59406         * tests/test-carray_list.c (main): Update.
59407         * tests/test-avltree_list.c (main): Update.
59408         * tests/test-rbtree_list.c (main): Update.
59409         * tests/test-avltreehash_list.c (main): Update.
59410         * tests/test-rbtreehash_list.c (main): Update.
59411         * tests/test-linked_list.c (main): Update.
59412         * tests/test-linkedhash_list.c (main): Update.
59413         * tests/test-array_oset.c (main): Update.
59414
59415 2007-03-15  Bruno Haible  <bruno@clisp.org>
59416
59417         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
59418         (gl_oset_create_empty): Add dispose_fn argument.
59419         (struct gl_oset_implementation): Add dispose_fn argument to
59420         'create_empty' method.
59421         (struct gl_oset_impl_base): Add dispose_fn field.
59422         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
59423         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
59424         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
59425         values.
59426         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
59427         (gl_tree_oset_free): Call dispose_fn on the dropped values.
59428         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59429         dropped value.
59430         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59431         dropped value.
59432         * tests/test-array_oset.c (main): Update.
59433         * tests/test-avltree_oset.c (main): Update.
59434         * tests/test-rbtree_oset.c (main): Update.
59435         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
59436
59437 2007-03-13  Bruno Haible  <bruno@clisp.org>
59438
59439         * tests/test-stdbool.c (i): Update after last patch.
59440
59441 2007-03-12  Bruno Haible  <bruno@clisp.org>
59442
59443         * lib/quotearg.c: Include <wctype.h> early, before the definition of
59444         the iswprint macro. Needed on Solaris 2.5.1.
59445
59446 2007-03-12  Bruno Haible  <bruno@clisp.org>
59447
59448         * tests/test-printf-frexp.c (main): Declare x as volatile.
59449
59450 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59451
59452         * doc/gnulib.texi (Build robot for gnulib): New section.
59453
59454 2007-03-12  Jim Meyering  <jim@meyering.net>
59455
59456         * build-aux/bootstrap: New file.
59457         * build-aux/bootstrap.conf: New file, from coreutils.
59458
59459 2007-03-11  Bruno Haible  <bruno@clisp.org>
59460
59461         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
59462
59463 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59464
59465         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
59466         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
59467         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
59468
59469 2007-03-11  Bruno Haible  <bruno@clisp.org>
59470
59471         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
59472         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
59473
59474 2007-03-11  Bruno Haible  <bruno@clisp.org>
59475
59476         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
59477         formula. Needed for SunPRO C 5.0.
59478
59479 2007-03-11  Bruno Haible  <bruno@clisp.org>
59480
59481         * modules/long-options (Depends-on): Add getopt.
59482
59483 2007-03-11  Bruno Haible  <bruno@clisp.org>
59484
59485         * modules/modechange (Depends-on): Add stdbool.
59486
59487 2007-03-11  Bruno Haible  <bruno@clisp.org>
59488
59489         * modules/i-ring (Depends-on): Add stdbool.
59490
59491 2007-03-11  Bruno Haible  <bruno@clisp.org>
59492
59493         * modules/gc-des (Depends-on): Add stdbool.
59494
59495 2007-03-11  Bruno Haible  <bruno@clisp.org>
59496
59497         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
59498
59499 2007-03-11  Bruno Haible  <bruno@clisp.org>
59500
59501         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
59502
59503 2007-03-11  Bruno Haible  <bruno@clisp.org>
59504
59505         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
59506
59507 2007-03-11  Bruno Haible  <bruno@clisp.org>
59508
59509         * lib/vasnprintf.c (sprintf): Undefine.
59510
59511 2007-03-11  Bruno Haible  <bruno@clisp.org>
59512
59513         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
59514         initializers in SunPRO C and Compaq C compilers.
59515
59516 2007-03-11  Bruno Haible  <bruno@clisp.org>
59517
59518         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
59519         decrementing code ANSI C compliant.
59520
59521 2007-03-11  Bruno Haible  <bruno@clisp.org>
59522
59523         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
59524         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
59525
59526 2007-03-11  Bruno Haible  <bruno@clisp.org>
59527
59528         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
59529         <stdbool.h> substitute doesn't pass.
59530
59531 2007-03-11  Bruno Haible  <bruno@clisp.org>
59532
59533         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
59534
59535 2007-03-11  Bruno Haible  <bruno@clisp.org>
59536
59537         * gnulib-tool (func_create_megatestdir): Create also an autobuild
59538         script, for submission to autobuild.josefsson.org.
59539
59540 2007-03-10  Bruno Haible  <bruno@clisp.org>
59541
59542         * modules/canonicalize-lgpl-tests: New file.
59543         * tests/test-canonicalize-lgpl.sh: New file.
59544         * tests/test-canonicalize-lgpl.c: New file.
59545
59546         * modules/c-strcase-tests: New file.
59547         * tests/test-c-strcase.sh: New file.
59548         * tests/test-c-strcasecmp.c: New file.
59549         * tests/test-c-strncasecmp.c: New file.
59550
59551         * modules/atexit-tests: New file.
59552         * tests/test-atexit.sh: New file.
59553         * tests/test-atexit.c: New file.
59554
59555 2007-03-10  Bruno Haible  <bruno@clisp.org>
59556
59557         * tests/test-binary-io.sh: Use temporary filenames that are not so
59558         likely to clash with those of other tests (in a parallel make).
59559         * tests/test-binary-io.c: Likewise.
59560
59561 2007-03-10  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
59564         fallback; use #error instead.
59565         Suggested by Simon Josefsson.
59566
59567 2007-03-10  Bruno Haible  <bruno@clisp.org>
59568
59569         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
59570         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
59571         first and the last.
59572
59573 2007-03-10  Bruno Haible  <bruno@clisp.org>
59574
59575         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
59576
59577 2007-03-10  Bruno Haible  <bruno@clisp.org>
59578
59579         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
59580         "make distcheck".
59581         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
59582         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
59583         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
59584
59585 2007-03-10  Bruno Haible  <bruno@clisp.org>
59586
59587         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
59588         variable.
59589         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
59590         variable.
59591
59592 2007-03-09  Eric Blake  <ebb9@byu.net>
59593         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
59594
59595         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
59596         types are not being provided by gnulib.
59597         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
59598         types are supported.
59599
59600 2007-03-10  Bruno Haible  <bruno@clisp.org>
59601
59602         * lib/stdio_.h (__attribute__): New macro.
59603         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
59604         vsprintf): Specify __attribute__ __format__ for GCC.
59605         Suggested by Eric Blake.
59606
59607 2007-03-09  Bruno Haible  <bruno@clisp.org>
59608
59609         * modules/printf-posix-tests: New file.
59610         * tests/test-printf-posix.sh: New file.
59611         * tests/test-printf-posix.c: New file.
59612
59613         * modules/printf-posix: New file.
59614         * lib/printf.c: New file.
59615         * m4/printf-posix-rpl.m4: New file.
59616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
59617         REPLACE_PRINTF.
59618         * lib/stdio_.h (printf): New declaration.
59619         (format, __format__, ____printf____, ____scanf____, ____strftime____,
59620         ____strfmon____): New macros.
59621         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
59622         REPLACE_PRINTF.
59623
59624 2007-03-09  Bruno Haible  <bruno@clisp.org>
59625
59626         * tests/test-vasnprintf-posix2.sh: New file.
59627         * tests/test-vasnprintf-posix2.c: New file.
59628         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
59629         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
59630         (Makefile.am): Activate test-vasnprintf-posix2.sh.
59631
59632         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
59633         a locale dependent decimal point, rather than always '.'.
59634
59635 2007-03-09  Eric Blake  <ebb9@byu.net>
59636
59637         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
59638         spite of platforms like Tandem/NSK that define it to -1.
59639
59640 2007-03-08  Bruno Haible  <bruno@clisp.org>
59641
59642         * modules/vprintf-posix-tests: New file.
59643         * tests/test-vprintf-posix.sh: New file.
59644         * tests/test-vprintf-posix.c: New file.
59645         * tests/test-printf-posix.h: New file.
59646
59647         * modules/vprintf-posix: New file.
59648         * lib/vprintf.c: New file.
59649         * m4/vprintf-posix.m4: New file.
59650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
59651         REPLACE_VPRINTF.
59652         * lib/stdio_.h (vprintf): New declaration.
59653         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
59654         REPLACE_VPRINTF.
59655
59656 2007-03-08  Bruno Haible  <bruno@clisp.org>
59657
59658         * modules/fprintf-posix-tests: New file.
59659         * tests/test-fprintf-posix.sh: New file.
59660         * tests/test-fprintf-posix.c: New file.
59661
59662         * modules/fprintf-posix: New file.
59663         * lib/fprintf.c: New file.
59664         * m4/fprintf-posix.m4: New file.
59665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
59666         REPLACE_FPRINTF.
59667         * lib/stdio_.h (fprintf): New declaration.
59668         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
59669         REPLACE_FPRINTF.
59670
59671 2007-03-08  Bruno Haible  <bruno@clisp.org>
59672
59673         * modules/vfprintf-posix-tests: New file.
59674         * tests/test-vfprintf-posix.sh: New file.
59675         * tests/test-vfprintf-posix.c: New file.
59676         * tests/test-fprintf-posix.h: New file.
59677         * tests/test-fprintf-posix.out: New file.
59678
59679         * modules/vfprintf-posix: New file.
59680         * lib/vfprintf.c: New file.
59681         * m4/vfprintf-posix.m4: New file.
59682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
59683         REPLACE_VFPRINTF.
59684         * lib/stdio_.h (vfprintf): New declaration.
59685         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
59686         REPLACE_VFPRINTF.
59687
59688 2007-03-08  Bruno Haible  <bruno@clisp.org>
59689
59690         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
59691
59692 2007-03-08  Bruno Haible  <bruno@clisp.org>
59693
59694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
59695         instead of 'expr' invocations.
59696         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59697         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59698         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59699         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59700         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59701         Suggested by Paul Eggert.
59702
59703 2007-03-08  Bruno Haible  <bruno@clisp.org>
59704
59705         * modules/fseterr-tests: New file.
59706         * tests/test-fseterr.c: New file.
59707
59708         * modules/fseterr: New file.
59709         * lib/fseterr.h: New file.
59710         * lib/fseterr.c: New file.
59711
59712 2007-03-08  Bruno Haible  <bruno@clisp.org>
59713
59714         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
59715         * lib/getopt_.h: Likewise.
59716         * lib/mbswidth.h: Likewise.
59717         * lib/setenv.h: Likewise.
59718         * lib/vasnprintf.h: Likewise.
59719         * lib/vasprintf.h: Likewise.
59720         * lib/verror.h: Likewise.
59721         * lib/xsetenv.h: Likewise.
59722         * lib/xvasprintf.h: Likewise.
59723
59724 2007-03-08  Jim Meyering  <jim@meyering.net>
59725
59726         * users.txt: Add parted.
59727
59728         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
59729
59730 2007-03-07  Bruno Haible  <bruno@clisp.org>
59731
59732         * m4/printf.m4: Make the shell script snippets copy&pastable.
59733
59734 2007-03-02  Bruno Haible  <bruno@clisp.org>
59735
59736         * lib/netinet_in_.h: New file.
59737         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
59738         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
59739         * modules/netinet_in (Files): Add lib/netinet_in_.h.
59740         (Depends-on): Add absolute-header.
59741         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
59742         into netinet/in.h.
59743
59744 2007-03-03  Bruno Haible  <bruno@clisp.org>
59745
59746         * lib/sys_select_.h: New file.
59747         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
59748         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
59749         * modules/sys_select (Files): Add lib/sys_select_.h.
59750         (Depends-on): Add absolute-header.
59751         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
59752         into sys/select.h.
59753
59754 2007-03-02  Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
59757         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
59758         values.
59759         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
59760         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
59761         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
59762         * modules/sys_socket (Depends-on): Add absolute-header.
59763         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
59764         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
59765         (Include): Remove requirement of inclusion of <sys/types.h>.
59766
59767 2007-03-02  Bruno Haible  <bruno@clisp.org>
59768
59769         * lib/byteswap_.h (bswap_32): Fix formula.
59770
59771 2007-03-06  Bruno Haible  <bruno@clisp.org>
59772
59773         * modules/sprintf-posix-tests: New file.
59774         * tests/test-sprintf-posix.c: New file.
59775
59776         * modules/sprintf-posix: New file.
59777         * lib/sprintf.c: New file.
59778         * m4/sprintf-posix.m4: New file.
59779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
59780         REPLACE_SPRINTF.
59781         * lib/stdio_.h (sprintf): New declaration.
59782         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
59783         REPLACE_SPRINTF.
59784
59785 2007-03-06  Bruno Haible  <bruno@clisp.org>
59786
59787         * modules/vsprintf-posix-tests: New file.
59788         * tests/test-vsprintf-posix.c: New file.
59789         * tests/test-sprintf-posix.h: New file.
59790
59791         * modules/vsprintf-posix: New file.
59792         * lib/vsprintf.c: New file.
59793         * m4/vsprintf-posix.m4: New file.
59794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
59795         REPLACE_VSPRINTF.
59796         * lib/stdio_.h (vsprintf): New declaration.
59797         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
59798         REPLACE_VSPRINTF.
59799
59800 2007-03-06  Bruno Haible  <bruno@clisp.org>
59801
59802         * modules/vsnprintf (Depend-on): Remove minmax.
59803
59804 2007-03-06  Bruno Haible  <bruno@clisp.org>
59805
59806         * modules/snprintf-posix-tests: New file.
59807         * tests/test-snprintf-posix.c: New file.
59808
59809         * modules/snprintf-posix: New file.
59810         * m4/snprintf-posix.m4: New file.
59811         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
59812         gl_FUNC_SNPRINTF.
59813         (gl_FUNC_SNPRINTF): Invoke it.
59814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
59815         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
59816         is set.
59817         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
59818
59819 2007-03-06  Bruno Haible  <bruno@clisp.org>
59820
59821         * modules/vsnprintf-posix-tests: New file.
59822         * tests/test-vsnprintf-posix.c: New file.
59823         * tests/test-snprintf-posix.h: New file.
59824
59825         * modules/vsnprintf-posix: New file.
59826         * m4/vsnprintf-posix.m4: New file.
59827         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
59828         gl_FUNC_VSNPRINTF.
59829         (gl_FUNC_VSNPRINTF): Invoke it.
59830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
59831         * lib/stdio_.h (vsnprintf): Define as a replacement if
59832         REPLACE_VSNPRINTF is set.
59833         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
59834
59835 2007-03-06  Bruno Haible  <bruno@clisp.org>
59836
59837         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
59838         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
59839
59840 2007-03-06  Bruno Haible  <bruno@clisp.org>
59841
59842         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
59843         (asinl): Declare also if HAVE_DECL_ASINL is set.
59844         (atanl): Declare also if HAVE_DECL_ATANL is set.
59845         (ceill): Declare also if HAVE_DECL_CEILL is set.
59846         (cosl): Declare also if HAVE_DECL_COSL is set.
59847         (expl): Declare also if HAVE_DECL_EXPL is set.
59848         (floorl): Declare also if HAVE_DECL_FLOORL is set.
59849         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
59850         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
59851         (logl): Declare also if HAVE_DECL_LOGL is set.
59852         (sinl): Declare also if HAVE_DECL_SINL is set.
59853         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
59854         (tanl): Declare also if HAVE_DECL_TANL is set.
59855         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
59856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
59857         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
59858         declaration of frexpl, ldexpl.
59859         * modules/printf-frexpl (Depends-on): Add math.
59860         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
59861
59862 2007-03-05  Bruno Haible  <bruno@clisp.org>
59863
59864         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
59865         frexpl and ldexpl are declared.
59866         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
59867
59868 2007-03-05  Bruno Haible  <bruno@clisp.org>
59869
59870         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
59871         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
59872
59873 2007-03-05  Bruno Haible  <bruno@clisp.org>
59874
59875         * lib/stdio_.h: Include <stddef.h>.
59876
59877 2007-03-05  Bruno Haible  <bruno@clisp.org>
59878
59879         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
59880
59881 2007-03-05  Bruno Haible  <bruno@clisp.org>
59882
59883         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
59884         NetBSD 4, from Ralf Wildenhues.
59885
59886 2007-03-04  Bruno Haible  <bruno@clisp.org>
59887
59888         * lib/vasprintf.h: Update #if logic for the case when the functions
59889         exist but are overridden.
59890
59891 2007-03-04  Bruno Haible  <bruno@clisp.org>
59892
59893         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
59894         implementations: glibc-2.4 and MacOS X 10.3.
59895         * tests/test-vasnprintf-posix.c (test_function): Test also the case
59896         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
59897         * tests/test-vasprintf-posix.c (test_function): Likewise.
59898
59899 2007-03-04  Bruno Haible  <bruno@clisp.org>
59900
59901         * modules/vasprintf-posix-tests: New file.
59902         * tests/test-vasprintf-posix.c: New file.
59903
59904         * modules/vasprintf-posix: New file.
59905         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
59906         defined.
59907         * m4/vasprintf-posix.m4: New file.
59908         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
59909         gl_FUNC_VASPRINTF.
59910         (gl_FUNC_VASPRINTF): Invoke it.
59911         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
59912         here.
59913         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
59914
59915 2007-03-04  Bruno Haible  <bruno@clisp.org>
59916
59917         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
59918         REPLACE_GETTIMEOFDAY.
59919         * modules/sys_time (Makefile.am): Likewise.
59920         * m4/sys_time_h.m4: Likewise.
59921         * m4/gettimeofday.m4: Likewise.
59922
59923 2007-03-04  Bruno Haible  <bruno@clisp.org>
59924
59925         * modules/vasnprintf-posix-tests: New file.
59926         * tests/test-vasnprintf-posix.c: New file.
59927
59928         * modules/vasnprintf-posix: New file.
59929         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
59930         printf-frexpl.h.
59931         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
59932         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
59933         REPLACE_VASNPRINTF is defined.
59934         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
59935         gl_FUNC_VASNPRINTF.
59936         (gl_FUNC_VASNPRINTF): Invoke it.
59937         * m4/vasnprintf-posix.m4: New file.
59938         * m4/printf.m4: New file.
59939
59940 2007-03-04  Bruno Haible  <bruno@clisp.org>
59941
59942         Compile progreloc.c only if --enable-relocatable is specified.
59943         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
59944         if --enable-relocatable was specified.
59945         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
59946         lib_SOURCES.
59947
59948 2007-03-04  Jim Meyering  <jim@meyering.net>
59949
59950         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
59951         Use it consistently, rather than enumerating errno constants.
59952
59953 2007-03-04  Bruno Haible  <bruno@clisp.org>
59954
59955         * modules/xvasprintf-tests: New file.
59956         * tests/test-xvasprintf.c: New file.
59957
59958         * modules/vasprintf-tests: New file.
59959         * tests/test-vasprintf.c: New file.
59960
59961         * modules/vasnprintf-tests: New file.
59962         * tests/test-vasnprintf.c: New file.
59963
59964         * modules/vsnprintf-tests: New file.
59965         * tests/test-vsnprintf.c: New file.
59966
59967         * modules/snprintf-tests: New file.
59968         * tests/test-snprintf.c: New file.
59969
59970 2007-03-04  Bruno Haible  <bruno@clisp.org>
59971
59972         Compile relocatable.c only if --enable-relocatable is specified.
59973         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59974         gl_RELOCATABLE_LIBRARY.
59975         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59976         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59977         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59978         gl_RELOCATABLE_LIBRARY.
59979         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59980         (Makefile.am): Remove lib_SOURCES.
59981         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59982         gl_RELOCATABLE_LIBRARY.
59983         (Makefile.am): Remove lib_SOURCES.
59984         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59985         always.
59986         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59987         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59988
59989 2007-03-04  Bruno Haible  <bruno@clisp.org>
59990
59991         * modules/argmatch-tests: New file.
59992         * tests/test-argmatch.c: New file.
59993
59994         * tests/test-allocsa.c (main): Halve the number of loop runs.
59995
59996         * modules/alloca-opt-tests: New file.
59997         * tests/test-alloca-opt.c: New file.
59998
59999 2007-03-04  Jim Meyering  <jim@meyering.net>
60000
60001         Work around difference between Linux ACLs and Solaris 10 ZFS.
60002         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
60003         for EINVAL.
60004
60005 2007-03-03  Bruno Haible  <bruno@clisp.org>
60006
60007         * modules/relocatable-prog (Depends-on): Add back progreloc's
60008         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
60009
60010 2007-03-03  Bruno Haible  <bruno@clisp.org>
60011
60012         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
60013         * modules/relocatable-lib: New file.
60014
60015 2007-03-03  Bruno Haible  <bruno@clisp.org>
60016
60017         * modules/relocatable-prog: Renamed from modules/relocatable.
60018         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
60019
60020 2007-03-03  Bruno Haible  <bruno@clisp.org>
60021
60022         * modules/relocatable-script (Files): Add doc/relocatable.texi,
60023         m4/relocatable-lib.m4.
60024         (Depends-on): Remove 'relocatable'.
60025         (configure.ac): Add gl_RELOCATABLE_NOP.
60026
60027 2007-03-03  Bruno Haible  <bruno@clisp.org>
60028
60029         * modules/relocatable-prog-wrapper: New file.
60030         * modules/relocatable (Depends-on): Add it. Remove all other
60031         dependencies except progname.
60032         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
60033
60034         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
60035         (gl_FUNC_STRERROR): Nop.
60036         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
60037
60038         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
60039         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
60040
60041         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
60042         (gl_FUNC_READLINK): Update.
60043
60044         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
60045
60046 2007-03-03  Bruno Haible  <bruno@clisp.org>
60047
60048         * lib/xreadlink.c: Include <unistd.h> unconditionally.
60049         * modules/xreadlink (Depends-on): Add unistd.
60050         * modules/xreadlink-with-size (Depends-on): Likewise.
60051
60052 2007-03-03  Bruno Haible  <bruno@clisp.org>
60053
60054         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
60055         extracted from gt_FUNC_SETENV.
60056         (gt_FUNC_SETENV): Remove macro.
60057         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
60058         remove gt_FUNC_SETENV.
60059
60060 2007-03-03  Bruno Haible  <bruno@clisp.org>
60061
60062         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
60063         ENABLE_RELOCATABLE here.
60064         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
60065
60066 2007-03-03  Bruno Haible  <bruno@clisp.org>
60067
60068         * modules/rbtreehash-list-tests (Depends-on): Add progname.
60069         * tests/test-rbtreehash_list.c: Include progname.h.
60070         (main): Call set_program_name.
60071
60072         * modules/rbtree-oset-tests (Depends-on): Add progname.
60073         * tests/test-rbtree_oset.c: Include progname.h.
60074         (main): Call set_program_name.
60075
60076         * modules/rbtree-list-tests (Depends-on): Add progname.
60077         * tests/test-rbtree_list.c: Include progname.h.
60078         (main): Call set_program_name.
60079
60080         * modules/linked-list-tests (Depends-on): Add progname.
60081         * tests/test-linked_list.c: Include progname.h.
60082         (main): Call set_program_name.
60083
60084 2007-03-03  Bruno Haible  <bruno@clisp.org>
60085
60086         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
60087         All uses of __restrict changed to _Restrict_.
60088         * lib/glob_.h (__restrict): Remove macro.
60089
60090 2007-03-02  Bruno Haible  <bruno@clisp.org>
60091
60092         * modules/gettext (configure.ac): Require gettext infrastructure
60093         from version 0.16.1.
60094
60095 2007-03-02  Bruno Haible  <bruno@clisp.org>
60096
60097         * modules/linkedhash-list-tests (Depends-on): Add progname.
60098         * tests/test-linkedhash_list.c: Include progname.h.
60099         (main): Call set_program_name.
60100
60101         * modules/carray-list-tests (Depends-on): Add progname.
60102         * tests/test-carray_list.c: Include progname.h.
60103         (main): Call set_program_name.
60104
60105         * modules/avltreehash-list-tests (Depends-on): Add progname.
60106         * tests/test-avltreehash_list.c: Include progname.h.
60107         (main): Call set_program_name.
60108
60109         * modules/avltree-oset-tests (Depends-on): Add progname.
60110         * tests/test-avltree_oset.c: Include progname.h.
60111         (main): Call set_program_name.
60112
60113         * modules/avltree-list-tests (Depends-on): Add progname.
60114         * tests/test-avltree_list.c: Include progname.h.
60115         (main): Call set_program_name.
60116
60117         * modules/array-oset-tests (Depends-on): Add progname.
60118         * tests/test-array_oset.c: Include progname.h.
60119         (main): Call set_program_name.
60120
60121         * modules/array-list-tests (Depends-on): Add progname.
60122         * tests/test-array_list.c: Include progname.h.
60123         (main): Call set_program_name.
60124
60125         * modules/argp-tests (Depends-on): Add progname.
60126         * tests/test-argp.c: Include argp.h first. Include progname.h.
60127         (main): Call set_program_name.
60128
60129 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
60130
60131         * doc/gnulib-tool.texi (Initial import): Reword description of
60132         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
60133         limited effect even if defined after the first system include.
60134
60135 2007-03-01  Bruno Haible  <bruno@clisp.org>
60136
60137         * build-aux/config.libpath: Update to libtool-1.5.22.
60138         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60139
60140 2007-03-01  Bruno Haible  <bruno@clisp.org>
60141
60142         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
60143         foo_CFLAGS.
60144         Reported by Ralf Wildenhues.
60145
60146 2007-03-01  Bruno Haible  <bruno@clisp.org>
60147
60148         * build-aux/install-reloc: Remove object files left over by some
60149         compilers.
60150         Reported by Ralf Wildenhues.
60151
60152 2007-03-01  Bruno Haible  <bruno@clisp.org>
60153
60154         * build-aux/install-reloc: Break long lines.
60155
60156 2007-03-01  Bruno Haible  <bruno@clisp.org>
60157
60158         * doc/relocatable.texi: Document that it may not work on OpenBSD.
60159         Reported by Ralf Wildenhues.
60160
60161 2007-03-01  Bruno Haible  <bruno@clisp.org>
60162
60163         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
60164         include ordering constraints.
60165
60166 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60167
60168         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
60169         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
60170         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
60171         as another example.
60172         * lib/time_.h: Fix misspelling.
60173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60174         Require gl_HEADER_TIME_H_DEFAULTS.
60175         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
60176         * m4/time_r.m4 (gl_TIME_R): Likewise.
60177         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
60178
60179 2007-03-01  Bruno Haible  <bruno@clisp.org>
60180
60181         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
60182         * m4/utimens.m4 (gl_UTIMENS): Likewise.
60183
60184 2007-03-01  Jim Meyering  <jim@meyering.net>
60185
60186         * modules/xreadlink (Maintainer): Add my name.
60187         * modules/xreadlink-with-size (Depends-on): Alphabetize.
60188
60189 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
60190             Bruno Haible  <bruno@clisp.org>
60191
60192         * build-aux/install-reloc: Compile also c-ctype.c.
60193         * build-aux/relocatable.sh.in: New file.
60194         * doc/relocatable.texi: New file.
60195         * doc/relocatable-maint.texi: New file.
60196         * doc/gnulib.texi: Include relocatable-maint.texi.
60197         * lib/progreloc.c: Include unistd.h unconditionally.
60198         * lib/relocwrapper.c: Include unistd.h unconditionally.
60199         Include c-ctype.h.
60200         (add_dotbin): Use c_tolower.
60201         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
60202         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
60203         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
60204         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
60205         to m4/relocatable-lib.m4.
60206         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
60207         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
60208         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
60209         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
60210         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
60211         * modules/relocatable: New file.
60212         * modules/relocatable-lib: New file.
60213         * modules/relocatable-script: New file.
60214
60215 2007-02-28  Bruno Haible  <bruno@clisp.org>
60216
60217         Import --enable-relocatable infrastructure.
60218         * build-aux/config.libpath: New file, from GNU gettext.
60219         * build-aux/install-reloc: New file, from GNU gettext.
60220         * build-aux/reloc-ldflags: New file, from GNU gettext.
60221         * lib/relocatable.h: New file, from GNU gettext.
60222         * lib/relocatable.c: New file, from GNU gettext.
60223         * lib/relocwrapper.c: New file, from GNU gettext.
60224         * m4/relocatable.m4: New file, from GNU gettext.
60225
60226 2007-02-28  Bruno Haible  <bruno@clisp.org>
60227
60228         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
60229
60230         * modules/xreadlink: New file, from GNU gettext with modifications.
60231         * lib/xreadlink.c: New file, from GNU gettext.
60232         * lib/xreadlink.h: Add comments.
60233         (xreadlink): New declaration.
60234
60235         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
60236         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
60237         lib/xreadlink-with-size.c.
60238         (configure.ac): Remove gl_XREADLINK invocation.
60239         (Makefile.am): Augment lib_SOURCES.
60240         * m4/xreadlink.m4: Remove file.
60241         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
60242         (xreadlink_with_size): Renamed from xreadink.
60243         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
60244         * modules/canonicalize (Depends-on): Replace xreadlink with
60245         xreadlink-with-size.
60246         * lib/canonicalize.c (canonicalize_filename_mode): Update.
60247
60248 2007-02-25  Jim Meyering  <jim@meyering.net>
60249
60250         * build-aux/announce-gen: When complaining about excess arguments,
60251         list them.
60252
60253 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60254
60255         * README: Document signed integer overflow situation more
60256         accurately.
60257
60258 2007-02-25  Bruno Haible  <bruno@clisp.org>
60259
60260         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
60261         'a' or 'A' conversion.
60262
60263 2007-02-25  Bruno Haible  <bruno@clisp.org>
60264
60265         * modules/filename: Renamed from modules/pathname.
60266         (Files): Replace lib/pathname.h with lib/filename.h. Replace
60267         lib/concatpath.c with lib/concat-filename.c.
60268         (Makefile.am): Update.
60269         (Include): Replace pathname.h with filename.h.
60270         * lib/filename.h: Renamed from lib/pathname.h.
60271         (concatenated_filename): Renamed from concatenated_pathname.
60272         * lib/concat-filename.c: Renamed from lib/concatpath.c.
60273         (concatenated_filename): Renamed from concatenated_pathname.
60274         * lib/findprog.c: Include filename.h instead of pathname.h.
60275         (find_in_path): Update.
60276         * lib/javacomp.c: Include filename.h instead of pathname.h.
60277         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
60278         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
60279         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
60280         is_oldgcj_14_13_usable, is_javac_usable): Update.
60281         * lib/javaexec.c: Include filename.h instead of pathname.h.
60282         (execute_java_class): Update.
60283         * modules/findprog: Update.
60284         * modules/javacomp: Update.
60285         * modules/javaexec: Update.
60286         * MODULES.html.sh (File system functions): Add 'filename', remove
60287         'pathname'.
60288
60289 2007-02-25  Bruno Haible  <bruno@clisp.org>
60290
60291         * modules/printf-frexpl-tests: New file.
60292         * tests/test-printf-frexpl.c: New file.
60293
60294         * modules/printf-frexpl: New file.
60295         * lib/printf-frexpl.h: New file.
60296         * lib/printf-frexpl.c: New file.
60297         * m4/printf-frexpl.m4: New file.
60298
60299 2007-02-25  Bruno Haible  <bruno@clisp.org>
60300
60301         * modules/printf-frexp-tests: New file.
60302         * tests/test-printf-frexp.c: New file.
60303
60304         * modules/printf-frexp: New file.
60305         * lib/printf-frexp.h: New file.
60306         * lib/printf-frexp.c: New file.
60307         * m4/printf-frexp.m4: New file.
60308
60309 2007-02-25  Bruno Haible  <bruno@clisp.org>
60310
60311         Assume automake >= 1.10 for the tests.
60312         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
60313         * modules/arctwo-tests: Likewise.
60314         * modules/argp-tests: Likewise.
60315         * modules/avltree-list-tests: Likewise.
60316         * modules/avltree-oset-tests: Likewise.
60317         * modules/avltreehash-list-tests: Likewise.
60318         * modules/carray-list-tests: Likewise.
60319         * modules/crc-tests: Likewise.
60320         * modules/des-tests: Likewise.
60321         * modules/gc-arcfour-tests: Likewise.
60322         * modules/gc-arctwo-tests: Likewise.
60323         * modules/gc-des-tests: Likewise.
60324         * modules/gc-hmac-md5-tests: Likewise.
60325         * modules/gc-hmac-sha1-tests: Likewise.
60326         * modules/gc-md2-tests: Likewise.
60327         * modules/gc-md4-tests: Likewise.
60328         * modules/gc-md5-tests: Likewise.
60329         * modules/gc-pbkdf2-sha1-tests: Likewise.
60330         * modules/gc-rijndael-tests: Likewise.
60331         * modules/gc-sha1-tests: Likewise.
60332         * modules/gc-tests: Likewise.
60333         * modules/getaddrinfo-tests: Likewise.
60334         * modules/hmac-md5-tests: Likewise.
60335         * modules/hmac-sha1-tests: Likewise.
60336         * modules/linked-list-tests: Likewise.
60337         * modules/linkedhash-list-tests: Likewise.
60338         * modules/lock-tests: Likewise.
60339         * modules/md2-tests: Likewise.
60340         * modules/md4-tests: Likewise.
60341         * modules/md5-tests: Likewise.
60342         * modules/rbtree-list-tests: Likewise.
60343         * modules/rbtree-oset-tests: Likewise.
60344         * modules/rbtreehash-list-tests: Likewise.
60345         * modules/read-file-tests: Likewise.
60346         * modules/rijndael-tests: Likewise.
60347         * modules/stdint-tests: Likewise.
60348         * modules/tls-tests: Likewise.
60349
60350 2007-02-24  Bruno Haible  <bruno@clisp.org>
60351
60352         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
60353         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
60354         function; instead check whether isnan with a double argument links.
60355         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
60356         function; instead check whether isnan with a 'long double' argument
60357         links.
60358         Reported by Eric Blake <ebb9@byu.net>.
60359
60360 2007-02-24  Bruno Haible  <bruno@clisp.org>
60361
60362         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
60363         defined.
60364         * lib/isnanl.c: Remove all code. Just include isnan.c.
60365         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
60366
60367 2007-02-25  Jim Meyering  <jim@meyering.net>
60368
60369         Avoid conflicting types for 'unsetenv' on FreeBSD.
60370         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
60371         conflicting with FreeBSD's (5.0 and 6.1) function declaration
60372         in stdlib.h.
60373
60374 2007-02-24  Bruno Haible  <bruno@clisp.org>
60375
60376         * modules/isnanl-nolibm-tests: New file.
60377         * tests/test-isnanl.c: New file.
60378
60379         * modules/isnanl-nolibm: New file.
60380         * lib/isnanl.h: New file.
60381         * lib/isnanl.c: New file.
60382         * m4/isnanl.m4: New file.
60383
60384 2007-02-24  Bruno Haible  <bruno@clisp.org>
60385
60386         * modules/isnan-nolibm-tests: New file.
60387         * tests/test-isnan.c: New file.
60388
60389         * modules/isnan-nolibm: New file.
60390         * lib/isnan.h: New file.
60391         * lib/isnan.c: New file.
60392         * m4/isnan.m4: New file.
60393
60394 2007-02-24  Bruno Haible  <bruno@clisp.org>
60395
60396         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
60397         assume that an exponent fits in 20 bits.
60398
60399 2007-02-24  Jim Meyering  <jim@meyering.net>
60400
60401         * m4/regex.m4: Update the description of the configure-time option,
60402         --without-included-regex, to state accurately what the defaults are,
60403         and perhaps to give people an idea why using this option is risky.
60404
60405 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60406
60407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
60408         loops on small arguments.  This attempts to avoid the problem
60409         Bruno Haible reported for AIX 4.3.2 in
60410         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
60411
60412 2007-02-23  Bruno Haible  <bruno@clisp.org>
60413
60414         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
60415         Needed for help2man.
60416
60417 2007-02-23  Karl Berry  <karl@gnu.org>
60418
60419         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
60420         exists, foo.h should be cvs-ignored, not committed.
60421
60422 2007-02-23  Eric Blake  <ebb9@byu.net>
60423
60424         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
60425         * lib/stat-time.h (includes): Likewise.
60426         * lib/utimecmp.c (includes): Likewise.
60427         * lib/utimens.h (includes): Likewise.
60428         * lib/getdate.y (includes): Also include "timespec.h" for use
60429         internal to the module.
60430         * modules/utimens (Depends-on): Revert yesterday's patch.
60431         * modules/nanosleep (Depends-on): Add missing dependency.
60432
60433 2007-02-22  Bruno Haible  <bruno@clisp.org>
60434
60435         * lib/glob.c: Don't include getlogin_r.h.
60436
60437 2007-02-22  Jim Meyering  <jim@meyering.net>
60438
60439         * modules/utimens (Depends-on): Add timespec, required for
60440         utimens.h's inclusion of timespec.h.
60441
60442 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
60443
60444         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
60445         long unreadable paths in GNU/Linux.  Problem reported by Andreas
60446         Schwab in
60447         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
60448         I'll try to think of a better way to fix the Solaris problem.
60449
60450         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
60451         like glibc; on Solaris 10, it fails with errno == EINVAL.
60452         POSIX says the behavior is unspecified if the first argument is NULL,
60453         so play it safe and never pass NULL to the system getcwd.
60454
60455 2007-02-21  Jim Meyering  <jim@meyering.net>
60456
60457         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
60458         of gettimeofday.  It would conflict with the one now always
60459         provided via sys_time_.h.  Reported by Matthew Woehlke, as
60460         an IRIX 6.5 build failure.
60461
60462 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60463
60464         Minor fixups to port to Solaris 10 with Sun C 5.8.
60465         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
60466         * modules/getcwd (Depends-on): Add dirfd.
60467         * lib/putenv.c (putenv): #undef it.
60468         (rpl_putenv): New decl.
60469         (malloc, free): Include <stdlib.h> rather than prototyping separately.
60470
60471 2007-02-20  Bruno Haible  <bruno@clisp.org>
60472
60473         * modules/stdio-tests: New file.
60474         * tests/test-stdio.c: New file.
60475
60476         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
60477         (Depends-on): Add stdio.
60478         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60479         (Include): Use <stdio.h> instead of vsnprintf.h.
60480         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60481         HAVE_DECL_VSNPRINTF.
60482         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
60483
60484         * modules/snprintf (Files): Remove lib/snprintf.h.
60485         (Depends-on): Add stdio.
60486         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60487         (Include): Use <stdio.h> instead of snprintf.h.
60488         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60489         HAVE_DECL_SNPRINTF.
60490         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
60491         * lib/getaddrinfo.c: Likewise.
60492
60493         * modules/stdio: New file.
60494         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
60495         * lib/snprintf.h: Remove file.
60496         * lib/vsnprintf.h: Remove file.
60497         * lib/.cppi-disable: Remove snprintf.h.
60498         * m4/stdio_h.m4: New file.
60499         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
60500
60501 2007-02-20  Jim Meyering  <jim@meyering.net>
60502
60503         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
60504         used by e.g., mingw.  From Bruno Haible.
60505
60506 2007-02-19  Bruno Haible  <bruno@clisp.org>
60507
60508         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
60509         warnings.
60510         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60511
60512 2007-02-19  Bruno Haible  <bruno@clisp.org>
60513
60514         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
60515         from mingw users.
60516
60517 2007-02-19  Bruno Haible  <bruno@clisp.org>
60518
60519         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
60520         warnings.
60521         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
60522
60523 2007-02-19  Jim Meyering  <jim@meyering.net>
60524
60525         Don't use FD after a successful "fdopendir (fd)".
60526         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
60527         Reset it by calling dirfd on the just-obtained DIR*.
60528
60529         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
60530         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
60531
60532 2007-02-18  Bruno Haible  <bruno@clisp.org>
60533
60534         * lib/readlink.c: Include <unistd.h>.
60535         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
60536         HAVE_READLINK.
60537         * modules/readlink (Depends-on): Add unistd.
60538         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60539         (Include): Add <unistd.h>.
60540
60541         * lib/getlogin_r.h: Remove file.
60542         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
60543         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
60544         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
60545         HAVE_DECL_GETLOGIN_R.
60546         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
60547         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60548         (Include): Use <unistd.h> instead of getlogin_r.h.
60549
60550         * lib/getcwd.h: Remove file.
60551         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
60552         * lib/xgetcwd.c: Likewise.
60553         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
60554         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
60555         * modules/getcwd (Files): Remove lib/getcwd.h.
60556         (Depends-on): Add unistd.
60557         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60558         (Include): Use <unistd.h> instad of getcwd.h.
60559
60560         * lib/ftruncate.c: Include <unistd.h> first.
60561         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
60562         Set HAVE_FTRUNCATE.
60563         * modules/ftruncate (Depends-on): Add unistd.
60564         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60565
60566         * lib/fchdir.c: Include <unistd.h> first.
60567         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
60568         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
60569         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
60570         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60571         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
60572
60573         * lib/dup2.c: Include <unistd.h> first.
60574         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
60575         HAVE_DUP2.
60576         * modules/dup2 (Depends-on): Add unistd.
60577         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60578
60579         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
60580         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
60581         REPLACE_CHOWN. Don't define chown as a macro here.
60582         * modules/chown (Depends-on): Add unistd.
60583         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60584
60585         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
60586         Add definition for GL_LINK_WARNING.
60587         (chown, dup2): New declarations.
60588         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
60589         link warning.
60590         (ftruncate): New declaration.
60591         (getcwd): New declaration, taken from old getcwd.h.
60592         (getlogin_r): New declaration, taken from old getlogin_r.h.
60593         (readlink): New declaration.
60594         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
60595         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
60596         (gl_PREREQ_UNISTD): Remove macro.
60597         (gl_UNISTD_MODULE_INDICATOR): New macro.
60598         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
60599         many new variables. Don't set UNISTD_H.
60600         * modules/unistd (Description): Change.
60601         (Depends-on): Add link-warning.
60602         (configure.ac): Update.
60603         (Makefile.am): Create unistd.h always. Substitute many new variables
60604         into it.
60605
60606 2007-02-18  Bruno Haible  <bruno@clisp.org>
60607
60608         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
60609         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
60610         HAVE_GETSUBOPT.
60611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
60612         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
60613         * lib/getsubopt.h: Remove file.
60614         * modules/getsubopt (Files): Remove lib/getsubopt.h.
60615         (Depends-on): Add stdlib.
60616         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60617         (Includes): Use <stdlib.h> instead of getsubopt.h.
60618         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
60619         Set HAVE_GETSUBOPT.
60620         * lib/getsubopt.c: Don't include getsubopt.h.
60621
60622 2007-02-18  Bruno Haible  <bruno@clisp.org>
60623
60624         * modules/fchdir (Depends-on): Add dup2.
60625
60626 2007-02-18  Bruno Haible  <bruno@clisp.org>
60627
60628         * lib/stdlib_.h: Handle glibc's special invocation convention
60629         specially.
60630
60631 2007-02-18  Bruno Haible  <bruno@clisp.org>
60632
60633         * modules/stdlib-tests: New file.
60634         * tests/test-stdlib.c: New file.
60635
60636         * modules/mkstemp (Files): Remove lib/mkstemp.h.
60637         (Depends-on): Add stdlib.
60638         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60639         (Includes): Use <stdlib.h> instead of mkstemp.h.
60640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60641         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
60642         * lib/mkstemp.c: Don't include mkstemp.h.
60643         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
60644         * lib/stdlib--.h: Don't include mkstemp.h.
60645
60646         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
60647         (Depends-on): Add stdlib.
60648         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60649         (Includes): Use <stdlib.h> instead of mkdtemp.h.
60650         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60651         HAVE_MKDTEMP.
60652         * lib/mkdtemp.c: Don't include mkdtemp.h.
60653         * lib/clean-temp.c: Don't include mkdtemp.h.
60654
60655         * modules/exit (Files): Remove lib/exit.h.
60656         (Depends-on): Add stdlib.
60657         (Makefile.am): Remove lib_SOURCES.
60658         (Include): Use <stdlib.h> instead of exit.h.
60659         * lib/argmatch.c: Don't include exit.h.
60660         * lib/execute.c: Likewise.
60661         * lib/pagealign_alloc.c: Likewise.
60662         * lib/pipe.c: Likewise.
60663         * lib/wait-process.c: Likewise.
60664         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
60665         * lib/exitfail.c: Likewise.
60666         * lib/savewd.c: Likewise.
60667         * lib/xsetenv.c: Likewise.
60668
60669         * modules/stdlib: New file.
60670         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
60671         and extra comments about mkstemp().
60672         * lib/exit.h: Remove file.
60673         * lib/mkdtemp.h: Remove file.
60674         * lib/mkstemp.h: Remove file.
60675         * m4/stdlib_h.m4: New file.
60676         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
60677
60678 2007-02-18  Bruno Haible  <bruno@clisp.org>
60679
60680         * modules/math-tests: New file.
60681         * tests/test-math.c: New file.
60682
60683         * modules/math: New file.
60684         * modules/mathl (Files): Remove lib/mathl.h.
60685         (Depends-on): Add math.
60686         (Makefile.am): Don't mention mathl.h.
60687         (Include): Use <math.h> instead of mathl.h.
60688         * lib/math_.h: New file.
60689         * lib/mathl.h: Remove file.
60690         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
60691         mathl.h.
60692         * lib/asinl.c: Likewise.
60693         * lib/atanl.c: Likewise.
60694         * lib/ceill.c: Likewise.
60695         * lib/cosl.c: Likewise.
60696         * lib/expl.c: Likewise.
60697         * lib/floorl.c: Likewise.
60698         * lib/frexpl.c: Likewise.
60699         * lib/ldexpl.c: Likewise.
60700         * lib/logl.c: Likewise.
60701         * lib/sincosl.c: Likewise.
60702         * lib/sinl.c: Likewise.
60703         * lib/sqrtl.c: Likewise.
60704         * lib/tanl.c: Likewise.
60705         * lib/trigl.c: Likewise.
60706         * m4/math_h.m4: New file.
60707         * MODULES.html.sh (Mathematics): Add math.
60708
60709 2007-02-17  Bruno Haible  <bruno@clisp.org>
60710
60711         * modules/wctype-tests: New file.
60712         * tests/test-wctype.c: New file.
60713
60714         * modules/wchar-tests: New file.
60715         * tests/test-wchar.c: New file.
60716
60717         * modules/unistd-tests: New file.
60718         * tests/test-unistd.c: New file.
60719
60720         * modules/time-tests: New file.
60721         * tests/test-time.c: New file.
60722
60723         * modules/sysexits-tests: New file.
60724         * tests/test-sysexits.c: New file.
60725
60726         * modules/sys_time-tests: New file.
60727         * tests/test-sys_time.c: New file.
60728
60729         * modules/sys_stat-tests: New file.
60730         * tests/test-sys_stat.c: New file.
60731
60732         * modules/sys_socket-tests: New file.
60733         * tests/test-sys_socket.c: New file.
60734
60735         * modules/sys_select-tests: New file.
60736         * tests/test-sys_select.c: New file.
60737
60738         * modules/string-tests: New file.
60739         * tests/test-string.c: New file.
60740
60741         * modules/stdbool-tests: New file.
60742         * tests/test-stdbool.c: New file.
60743
60744         * modules/netinet_in-tests: New file.
60745         * tests/test-netinet_in.c: New file.
60746
60747         * modules/inttypes-tests: New file.
60748         * tests/test-inttypes.c: New file.
60749
60750         * modules/fcntl-tests: New file.
60751         * tests/test-fcntl.c: New file.
60752
60753         * modules/byteswap-tests: New file.
60754         * tests/test-byteswap.c: New file.
60755
60756         * modules/arpa_inet-tests: New file.
60757         * tests/test-arpa_inet.c: New file.
60758
60759 2007-02-17  Bruno Haible  <bruno@clisp.org>
60760
60761         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
60762         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
60763         if the corresponding module is not enabled. Emit link warnings if
60764         the function is used nevertheless.
60765         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
60766         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
60767         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
60768         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
60769         * modules/inttypes (Depends-on): Add link-warning.
60770         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60771         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
60772         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
60773         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
60774         * modules/imaxdiv (configure.ac): Likewise.
60775         * modules/strtoimax (configure.ac): Likewise.
60776         * modules/strtoumax (configure.ac): Likewise.
60777
60778 2007-02-17  Bruno Haible  <bruno@clisp.org>
60779
60780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
60781         gl_STRING_MODULE_INDICATOR_DEFAULTS.
60782         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
60783         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
60784
60785 2007-02-17  Bruno Haible  <bruno@clisp.org>
60786
60787         * modules/link-warning: New file.
60788         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
60789         * lib/string_.h (GL_LINK_WARNING): Remove definition.
60790         * modules/string (Depends-on): Add link-warning.
60791         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60792         string.h.
60793         * MODULES.html.sh (Support for building libraries and executables): Add
60794         link-warning.
60795
60796 2007-02-17  Bruno Haible  <bruno@clisp.org>
60797
60798         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
60799         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
60800         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
60801         long lines.
60802
60803 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
60804             Bruno Haible  <bruno@clisp.org>
60805
60806         * modules/tmpfile: New file.
60807         * lib/tmpfile.c: New file.
60808         * m4/tmpfile.m4: New file.
60809         * MODULES.html.sh (func_all_modules): New section "Input/output".
60810
60811 2007-02-15  Bruno Haible  <bruno@clisp.org>
60812
60813         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
60814         (supports_delete_on_close): New function.
60815         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
60816
60817 2007-02-14  Bruno Haible  <bruno@clisp.org>
60818
60819         * modules/mbspcasecmp-tests: New file.
60820         * tests/test-mbspcasecmp.sh: New file.
60821         * tests/test-mbspcasecmp.c: New file.
60822
60823         New module mbspcasecmp.
60824         * modules/mbspcasecmp: New file.
60825         * lib/mbspcasecmp.c: New file.
60826         * lib/string_.h (strncasecmp): Change warning message.
60827         (mbspcasecmp): New declaration.
60828         * m4/mbspcasecmp.m4: New file.
60829         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60830         GNULIB_MBSPCASECMP.
60831         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
60832         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
60833
60834 2007-02-14  Bruno Haible  <bruno@clisp.org>
60835
60836         * modules/mbsncasecmp-tests: New file.
60837         * tests/test-mbsncasecmp.sh: New file.
60838         * tests/test-mbsncasecmp.c: New file.
60839
60840         New module mbsncasecmp.
60841         * modules/mbsncasecmp: New file.
60842         * lib/mbsncasecmp.c: New file.
60843         * lib/string_.h (mbsncasecmp): New declaration.
60844         * m4/mbsncasecmp.m4: New file.
60845         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60846         GNULIB_MBSNCASECMP.
60847         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
60848         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
60849
60850 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60851
60852         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
60853         Verify that it doesn't overlap with our flags.
60854         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
60855         do not have the desired effect in multibyte locales; instead, use
60856         mbscasecmp.
60857         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
60858         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
60859         we don't require GNU fnmatch ourselves (if our users require it, they
60860         should do so explicitly).
60861
60862         Fix regex code so it doesn't rely on strcasecmp.
60863         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
60864         Otherwise, include gnulib's langinfo.h.
60865         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
60866         undesirable behavior in non-C locales.  Instead, rely on localecharset.
60867         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
60868         * modules/regex (FILES): Remove m4/codeset.m4.
60869         (Depends-on): Add localcharset.  Remove strcase.
60870
60871 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60872
60873         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
60874         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
60875
60876 2007-02-13  Bruno Haible  <bruno@clisp.org>
60877
60878         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
60879         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60880
60881 2007-02-12  Bruno Haible  <bruno@clisp.org>
60882
60883         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60884         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
60885         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
60886         time warning rather than a link error.
60887
60888 2007-02-12  Bruno Haible  <bruno@clisp.org>
60889
60890         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
60891         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60893
60894 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60895
60896         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
60897         args, not 2.
60898
60899 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60900
60901         New module 'time', so that apps can include <time.h> as per
60902         POSIX and GNU instead of separate include files like time_r.h
60903         and timegm.h.  This implementation tries out a simpler approach
60904         for replacing decls in standard include files (as compared to
60905         the string module), somewhat as an experiment.
60906
60907         * config/srclist.txt: Comment out mktime.c for now.
60908         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
60909         since it doesn't apply any more.  Use generic wording instead.
60910         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
60911         'time'.
60912         * lib/time_.h, m4/time_h.m4, modules/time: New files.
60913         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
60914         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
60915         Don't include <sys/types.h>; no longer needed since we assume C89.
60916         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
60917         * lib/strftime.c: Likewise.
60918         * lib/time_r.c: Likewise.
60919         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
60920         * lib/nanosleep.c: Include <time.h> first, to check interface.
60921         * lib/strptime.c: Likewise.
60922         * lib/time_r.c: Likewise.
60923         * lib/timegm.c: Likewise.
60924         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
60925         needed.
60926         * lib/timegm.c: Don't include timegm.h; no longer needed.
60927         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
60928         time.h now handles any problems in that area.
60929         (struct timespec, nanosleep): Remove; time.h now arranges for these.
60930         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
60931         that time.h defines struct timespec.
60932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
60933         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
60934         handles that.
60935         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
60936         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
60937         needed.  Set REPLACE_LOCALTIME.
60938         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
60939         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
60940         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
60941         nanosleep; time_h.m4 now does that.  Don't require
60942         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
60943         module handles this now.
60944         * modules/getdate (Depends-on): Remove timespec.  Add time.
60945         * modules/nanosleep (Depends-on): Likewise.
60946         * modules/stat-time (Depends-on): Likewise.
60947         * modules/nanosleep (Include): Include time.h, not timespec.h.
60948         * modules/strptime (Files): Remove lib/strptime.h.
60949         (Depends-on): Add extensions, time.
60950         (Include): Include time.h, not strptime.h.
60951         * modules/time_r (Files): Remove lib/time_r.h.
60952         (Depends-on): Add time.
60953         (Include): Include time.h, not time_r.h.
60954         * modules/timegm: Likewise.
60955         * modules/timespec (Description): Now does timespec-related decls
60956         of our own, instead of struct timespec itself.
60957         (Depends-on): Add time; remove extensions.
60958         (Maintainer): Add self.
60959         * modules/utimecmp (Depends-on): Add time; remove timespec.
60960         * modules/utimens (Depends-on): Likewise.
60961         * modules/xnanosleep (Depends-on): Likewise.
60962
60963 2007-02-11  Bruno Haible  <bruno@clisp.org>
60964
60965         * lib/c-strstr.c: Include allocsa.h.
60966         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60967         * lib/c-strcasestr.c: Include allocsa.h.
60968         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60969         * lib/strcasestr.c: Include allocsa.h.
60970         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60971         * lib/mbsstr.c: Include allocsa.h.
60972         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60973         allocsa/freesa instead of malloc/free.
60974         * lib/mbscasestr.c: Include allocsa.h.
60975         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60976         allocsa/freesa instead of malloc/free.
60977         * modules/c-strstr (Depends-on): Add allocsa.
60978         * modules/c-strcasestr (Depends-on): Likewise.
60979         * modules/strcasestr (Depends-on): Likewise.
60980         * modules/mbsstr (Depends-on): Likewise.
60981         * modules/mbscasestr (Depends-on): Likewise.
60982
60983 2007-02-11  Bruno Haible  <bruno@clisp.org>
60984
60985         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60986
60987         * modules/mbsspn-tests: New file.
60988         * tests/test-mbsspn.sh: New file.
60989         * tests/test-mbsspn.c: New file.
60990
60991 2007-02-11  Bruno Haible  <bruno@clisp.org>
60992
60993         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60994
60995         * modules/mbspbrk-tests: New file.
60996         * tests/test-mbspbrk.sh: New file.
60997         * tests/test-mbspbrk.c: New file.
60998
60999 2007-02-11  Bruno Haible  <bruno@clisp.org>
61000
61001         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
61002         unneeded cast.
61003
61004         * modules/mbscspn-tests: New file.
61005         * tests/test-mbscspn.sh: New file.
61006         * tests/test-mbscspn.c: New file.
61007
61008 2007-02-11  Bruno Haible  <bruno@clisp.org>
61009
61010         * modules/mbscasecmp-tests: New file.
61011         * tests/test-mbscasecmp.sh: New file.
61012         * tests/test-mbscasecmp.c: New file.
61013
61014 2007-02-11  Bruno Haible  <bruno@clisp.org>
61015
61016         Ensure O(n) worst-case complexity of mbscasestr.
61017         * lib/mbscasestr.c: Include stdbool.h.
61018         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61019         functions.
61020         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
61021         the bookkeeping indicates that it's worth it.
61022         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
61023
61024         * modules/mbscasestr-tests: New file.
61025         * tests/test-mbscasestr1.c: New file.
61026         * tests/test-mbscasestr2.sh: New file.
61027         * tests/test-mbscasestr2.c: New file.
61028         * tests/test-mbscasestr3.sh: New file.
61029         * tests/test-mbscasestr3.c: New file.
61030         * tests/test-mbscasestr4.sh: New file.
61031         * tests/test-mbscasestr4.c: New file.
61032         * m4/locale-tr.m4: New file.
61033
61034 2007-02-11  Bruno Haible  <bruno@clisp.org>
61035
61036         Ensure O(n) worst-case complexity of mbsstr.
61037         * lib/mbsstr.c: Include stdbool.h.
61038         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61039         functions.
61040         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
61041         bookkeeping indicates that it's worth it.
61042         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
61043
61044         * modules/mbsstr-tests: New file.
61045         * tests/test-mbsstr1.c: New file.
61046         * tests/test-mbsstr2.sh: New file.
61047         * tests/test-mbsstr2.c: New file.
61048         * tests/test-mbsstr3.sh: New file.
61049         * tests/test-mbsstr3.c: New file.
61050         * m4/locale-fr.m4: New file.
61051
61052 2007-02-11  Bruno Haible  <bruno@clisp.org>
61053
61054         * lib/mbsrchr.c (mbsrchr): Fix bug.
61055
61056         * modules/mbsrchr-tests: New file.
61057         * tests/test-mbsrchr.sh: New file.
61058         * tests/test-mbsrchr.c: New file.
61059
61060 2007-02-11  Bruno Haible  <bruno@clisp.org>
61061
61062         * lib/mbschr.c (mbschr): Fix bug.
61063
61064         * modules/mbschr-tests: New file.
61065         * tests/test-mbschr.sh: New file.
61066         * tests/test-mbschr.c: New file.
61067         * m4/locale-zh.m4: New file.
61068
61069 2007-02-11  Bruno Haible  <bruno@clisp.org>
61070
61071         Support for copying multibyte string iterators.
61072         * lib/mbiter.h: Include <string.h>.
61073         (mbiter_multi_copy): New function.
61074         (mbi_copy): New macro.
61075         * lib/mbuiter.h: Include <string.h>.
61076         (mbuiter_multi_copy): New function.
61077         (mbui_copy): New macro.
61078
61079 2007-02-11  Bruno Haible  <bruno@clisp.org>
61080
61081         New module mbslen.
61082         * modules/mbslen: New file.
61083         * lib/mbslen.c: New file.
61084         * lib/string_.h (mbslen): New declaration.
61085         * m4/mbslen.m4: New file.
61086         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61087         GNULIB_MBSLEN.
61088         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
61089         * MODULES.html.sh (Internationalization functions): Add mbslen.
61090
61091 2007-02-11  Bruno Haible  <bruno@clisp.org>
61092
61093         Ensure O(n) worst-case complexity of strcasestr substitute.
61094         * lib/strcasestr.c: Include stdbool.h.
61095         (knuth_morris_pratt): New function.
61096         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
61097         bookkeeping indicates that it's worth it.
61098         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
61099
61100         * modules/strcasestr-tests: New file.
61101         * tests/test-strcasestr.c: New file.
61102
61103 2007-02-11  Bruno Haible  <bruno@clisp.org>
61104
61105         Ensure O(n) worst-case complexity of c_strcasestr.
61106         * lib/c-strcasestr.c: Include stdbool.h, string.h.
61107         (knuth_morris_pratt): New function.
61108         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
61109         the bookkeeping indicates that it's worth it.
61110         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
61111
61112         * modules/c-strcasestr-tests: New file.
61113         * tests/test-c-strcasestr.c: New file.
61114
61115 2007-02-11  Bruno Haible  <bruno@clisp.org>
61116
61117         Ensure O(n) worst-case complexity of c_strstr.
61118         * lib/c-strstr.c: Include stdbool.h, string.h.
61119         (knuth_morris_pratt): New function.
61120         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
61121         bookkeeping indicates that it's worth it.
61122         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
61123
61124         * lib/c-strstr.c: Complete rewrite for maintainability.
61125
61126         * modules/c-strstr-tests: New file.
61127         * tests/test-c-strstr.c: New file.
61128
61129 2007-02-11  Bruno Haible  <bruno@clisp.org>
61130
61131         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
61132         5.2.1 and earlier, whereby \055 was treated just like the range
61133         delimiter '-'.
61134         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
61135
61136 2007-02-08  Bruno Haible  <bruno@clisp.org>
61137
61138         * modules/regex (Depends-on): Add stdbool.
61139         Reported by Dalibor Topic <robilad@kaffe.org>.
61140
61141 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61142
61143         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
61144         Prefer returning from main to exiting from it.
61145         Remove unnecessary parens after sizeof.
61146
61147 2007-02-05  Bruno Haible  <bruno@clisp.org>
61148
61149         New module mbssep.
61150         * modules/mbssep: New file.
61151         * lib/mbssep.c: New file.
61152         * lib/string_.h (strsep): Add a conditional link warning.
61153         (mbssep): New declaration.
61154         * m4/mbssep.m4: New file.
61155         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61156         GNULIB_MBSSEP.
61157         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
61158         * MODULES.html.sh (Internationalization functions): Add mbssep.
61159
61160 2007-02-05  Bruno Haible  <bruno@clisp.org>
61161
61162         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
61163         Optimize search in case of 1 delimiter.
61164
61165 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
61166
61167         * lib/acl.h: Include sys/types.h before sys/acl.h.
61168
61169 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
61170
61171         Merge upstream fix for glibc bugzilla #3957:
61172
61173         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
61174
61175         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
61176         bit for RE_HAT_LISTS_NOT_NEWLINE.
61177         (build_charclass_op): Remove bogus comment.
61178
61179 2007-02-05  Simon Josefsson  <simon@josefsson.org>
61180
61181         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
61182
61183 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
61184
61185         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
61186         * lib/memmem.c [!defined _LIBC]: Include config.h.
61187
61188 2007-02-04  Bruno Haible  <bruno@clisp.org>
61189
61190         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
61191         warning message.
61192
61193 2007-02-04  Bruno Haible  <bruno@clisp.org>
61194
61195         New module mbstok_r.
61196         * modules/mbstok_r: New file.
61197         * lib/mbstok_r.c: New file.
61198         * lib/string_.h (strtok_r): Change argument names to match the
61199         comments. Add a conditional link warning.
61200         (mbstok_r): New declaration.
61201         * m4/mbstok_r.m4: New file.
61202         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61203         GNULIB_MBSTOK_R.
61204         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
61205         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
61206
61207 2007-02-04  Bruno Haible  <bruno@clisp.org>
61208
61209         New module mbsspn.
61210         * modules/mbsspn: New file.
61211         * lib/mbsspn.c: New file.
61212         * lib/string_.h (strspn): Add a conditional link warning.
61213         (mbsspn): New declaration.
61214         * m4/mbsspn.m4: New file.
61215         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61216         GNULIB_MBSSPN.
61217         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
61218         * MODULES.html.sh (Internationalization functions): Add mbsspn.
61219
61220 2007-02-04  Bruno Haible  <bruno@clisp.org>
61221
61222         New module mbspbrk.
61223         * modules/mbspbrk: New file.
61224         * lib/mbspbrk.c: New file.
61225         * lib/string_.h (strpbrk): Add a conditional link warning.
61226         (mbspbrk): New declaration.
61227         * m4/mbspbrk.m4: New file.
61228         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61229         GNULIB_MBSPBRK.
61230         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
61231         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
61232
61233 2007-02-04  Bruno Haible  <bruno@clisp.org>
61234
61235         New module mbscspn.
61236         * modules/mbscspn: New file.
61237         * lib/mbscspn.c: New file.
61238         * lib/string_.h (strcspn): Add a conditional link warning.
61239         (mbscspn): New declaration.
61240         * m4/mbscspn.m4: New file.
61241         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61242         GNULIB_MBSCSPN.
61243         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
61244         * MODULES.html.sh (Internationalization functions): Add mbscspn.
61245
61246 2007-02-04  Bruno Haible  <bruno@clisp.org>
61247
61248         New module mbscasestr, reduced goal of strcasestr.
61249         * modules/mbscasestr: New file.
61250         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
61251         (mbscasestr): Renamed from strcasestr.
61252         * lib/strcasestr.c: Don't include mbuiter.h.
61253         (strcasestr): Remove support for multibyte locales.
61254         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
61255         Change the conditional link warning.
61256         (mbscasestr): New declaration.
61257         * m4/mbscasestr.m4: New file.
61258         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
61259         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
61260         REPLACE_STRCASESTR.
61261         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
61262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61263         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
61264         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
61265         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
61266         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
61267         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
61268         (Depends-on): Remove mbuiter.
61269         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
61270
61271 2007-02-04  Bruno Haible  <bruno@clisp.org>
61272
61273         Simplify handling of strncasecmp.
61274         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
61275         the conditional link warning.
61276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61277         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
61278         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
61279         * modules/strcase (configure.ac): Don't invoke
61280         gl_STRING_MODULE_INDICATOR.
61281         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
61282
61283 2007-02-04  Bruno Haible  <bruno@clisp.org>
61284
61285         New module mbscasecmp, reduced goal of strcasecmp.
61286         * modules/mbscasecmp: New file.
61287         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
61288         (mbscasecmp): Renamed from strcasecmp.
61289         * lib/strcasecmp.c: Don't include mbuiter.h.
61290         (strcasecmp): Remove support for multibyte locales.
61291         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
61292         Change the conditional link warning.
61293         (mbscasecmp): New declaration.
61294         * m4/mbscasecmp.m4: New file.
61295         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
61296         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
61297         REPLACE_STRCASECMP.
61298         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
61299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61300         GNULIB_MBSCASECMP.
61301         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
61302         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
61303         * modules/strcase (Files): Remove m4/mbrtowc.m4.
61304         (Depends-on): Remove mbuiter.
61305         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
61306
61307 2007-02-04  Bruno Haible  <bruno@clisp.org>
61308
61309         New module mbsstr. Remove module strstr.
61310         * modules/mbsstr: New file.
61311         * modules/strstr: Remove file.
61312         * lib/mbsstr.c: Renamed from lib/strstr.c.
61313         (mbsstr): Renamed from strstr.
61314         * lib/string_.h (strstr): Remove declaration. Change the conditional
61315         link warning.
61316         (mbsstr): New declaration.
61317         * m4/mbsstr.m4: New file.
61318         * m4/strstr.m4: Remove file.
61319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
61320         REPLACE_STRSTR.
61321         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
61322         Don't initialize GNULIB_STRSTR.
61323         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
61324         substitute GNULIB_STRSTR and REPLACE_STRSTR.
61325         * MODULES.html.sh (Internationalization functions): Add mbsstr.
61326         (Support for systems lacking ANSI C 89): Remove strstr.
61327
61328 2007-02-04  Bruno Haible  <bruno@clisp.org>
61329
61330         New module mbsrchr.
61331         * modules/mbsrchr: New file.
61332         * lib/mbsrchr.c: New file.
61333         * lib/string_.h (strrchr): Add a conditional link warning.
61334         (mbsrchr): New declaration.
61335         * m4/mbsrchr.m4: New file.
61336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61337         GNULIB_MBSRCHR.
61338         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
61339         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
61340
61341 2007-02-04  Bruno Haible  <bruno@clisp.org>
61342
61343         New module mbschr.
61344         * modules/mbschr: New file.
61345         * lib/mbschr.c: New file.
61346         * lib/string_.h (strchr): Add a conditional link warning.
61347         (mbschr): New declaration.
61348         * m4/mbschr.m4: New file.
61349         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61350         GNULIB_MBSCHR.
61351         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
61352         * MODULES.html.sh (Internationalization functions): Add mbschr.
61353
61354 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
61355
61356         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
61357
61358         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
61359
61360 2007-02-04  Bruno Haible  <bruno@clisp.org>
61361
61362         New module description section 'configure.ac-early'.
61363         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
61364         (func_get_autoconf_early_snippet): New function.
61365         (func_import, func_create_testdir): Use it. Remove special cases for
61366         modules 'extensions' and 'lock'.
61367         * modules/extensions (configure.ac-early): Require
61368         gl_USE_SYSTEM_EXTENSIONS.
61369         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
61370
61371 2007-02-04  Bruno Haible  <bruno@clisp.org>
61372
61373         Make use of gcj-4.3's -fsource and -ftarget option.
61374         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
61375         and if so try the options -fsource and -ftarget.
61376         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
61377         source_version, ftarget_option, target_version arguments.
61378         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
61379         (is_envjavac_oldgcj_14_14_usable): Renamed from
61380         is_envjavac_gcj_14_14_usable.
61381         (is_envjavac_oldgcj_14_13_usable): Renamed from
61382         is_envjavac_gcj_14_13_usable.
61383         (is_gcj_present): Update.
61384         (is_gcj_43, is_gcj43_usable): New functions.
61385         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
61386         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
61387         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
61388         try the options -fsource and -ftarget.
61389
61390 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61391
61392         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
61393         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
61394         larger value.
61395
61396 2007-02-03  Jim Meyering  <jim@meyering.net>
61397
61398         Give tools a better chance to allocate space for very large buffers.
61399         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
61400
61401         Make pwd and readlink work also when run with an unreadable parent dir
61402         on systems with openat support.
61403         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
61404         provided getcwd function, even when we have openat support.
61405         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
61406
61407 2007-02-02  Bruno Haible  <bruno@clisp.org>
61408
61409         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61410         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
61411         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
61412         portability problems if one of these functions is only used on specific
61413         platforms.
61414         Reported by Paul Eggert.
61415
61416 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
61417
61418         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
61419         is causing more trouble than it's curing.
61420         * lib/regex_internal.h (__mempcpy): Remove.
61421         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
61422         (and make the code a tad smaller to boot).
61423         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
61424
61425 2007-02-02  Jim Meyering  <jim@meyering.net>
61426
61427         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
61428         section, not in the Makefile.am: one.
61429
61430 2007-02-02  Eric Blake  <ebb9@byu.net>
61431
61432         * lib/strchrnul.c: Always include config.h first.
61433
61434         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
61435         gnulib strstr is not necessary here.
61436
61437 2007-02-02  Simon Josefsson  <simon@josefsson.org>
61438
61439         * m4/socklen.m4: Fix typo.
61440
61441 2007-02-02  Eric Blake  <ebb9@byu.net>
61442
61443         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
61444         * modules/netinet_in (Makefile.am): Likewise.
61445
61446 2007-02-01  Bruno Haible  <bruno@clisp.org>
61447
61448         * lib/string_.h (GL_LINK_WARNING): New macro.
61449         (strcasecmp, strstr, strcasestr): If provided by the system,
61450         conditionally define as a macro that leads to a warning instead of to
61451         an error.
61452         (strncasecmp): Conditionally define as a macro that leads to a warning.
61453
61454 2007-02-01  Karl Berry  <karl@gnu.org>
61455
61456         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
61457
61458 2007-02-01  Bruno Haible  <bruno@clisp.org>
61459
61460         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
61461         renamings.
61462
61463 2007-02-01  Eric Blake  <ebb9@byu.net>
61464
61465         * modules/regex (Depends-on): Revert dependence on mempcpy.
61466         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
61467         module's definition of mempcpy.
61468         Reported by Paul Eggert.
61469
61470 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61471
61472         * lib/string_.h: If the gnulib module XYZ is not present, undefine
61473         the symbol XYZ before redefining it.  This fixes a problem with
61474         programs that don't use XYZ, when compiled on systems that define
61475         XYZ to something else.
61476
61477 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
61478
61479         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
61480         occurs when "mkdir -m foo" creates a setgid directory that is (1)
61481         writeable to group or other and (2) is intended to have a special
61482         mode bit that is set or cleared.  In such a case, the directory
61483         should be neither group- nor other-writeable until the special
61484         mode bits are right.
61485
61486 2007-01-31  Eric Blake  <ebb9@byu.net>
61487
61488         * modules/mountlist (Depends-on): Add strstr.
61489
61490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
61491         bug.
61492         * modules/string (Makefile.am): Remove redundant replacement.
61493         * modules/regex (Depends-on): Add mempcpy.
61494
61495 2007-01-31  Bruno Haible  <bruno@clisp.org>
61496
61497         New module description field 'Link'.
61498         * gnulib-tool (func_usage): Document --extract-link-directive.
61499         (sed_extract_prog): Recognize 'Link' directive.
61500         (func_get_link_directive): New function.
61501         (func_import): Show summary of link directives.
61502         Handle --extract-link-directive option.
61503         * modules/acl (Link): New section.
61504         * modules/clock-time (Link): New section.
61505         * modules/euidaccess (Link): New section.
61506         * modules/gettext (Link): New section.
61507         * modules/iconv (Link): New section.
61508         * modules/lock (Link): New section.
61509         * modules/nanosleep (Link): New section.
61510         * modules/readline (Link): New section.
61511
61512 2007-01-27  Bruno Haible  <bruno@clisp.org>
61513
61514         Enforce the use of gnulib modules for unportable <string.h> functions.
61515         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
61516         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
61517         (gl_HEADER_STRING_H_BODY): Require it.
61518         * lib/string_.h: If the gnulib module XYZ is not present, redefine
61519         the symbol XYZ to one that gives a link error.
61520         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
61521         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
61522         * modules/mempcpy (configure.ac): Likewise.
61523         * modules/memrchr (configure.ac): Likewise.
61524         * modules/stpcpy (configure.ac): Likewise.
61525         * modules/stpncpy (configure.ac): Likewise.
61526         * modules/strcase (configure.ac): Likewise.
61527         * modules/strcasestr (configure.ac): Likewise.
61528         * modules/strchrnul (configure.ac): Likewise.
61529         * modules/strdup (configure.ac): Likewise.
61530         * modules/strndup (configure.ac): Likewise.
61531         * modules/strnlen (configure.ac): Likewise.
61532         * modules/strpbrk (configure.ac): Likewise.
61533         * modules/strsep (configure.ac): Likewise.
61534         * modules/strstr (configure.ac): Likewise.
61535         * modules/strtok_r (configure.ac): Likewise.
61536
61537 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
61538
61539         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
61540
61541 2007-01-30  Jim Meyering  <jim@meyering.net>
61542
61543         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
61544
61545 2007-01-29  Bruno Haible  <bruno@clisp.org>
61546
61547         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
61548         * lib/execute.c: Likewise.
61549         * lib/pipe.c: Likewise.
61550         * lib/printf-args.h: Likewise.
61551         * lib/printf-args.c: Likewise.
61552         * lib/printf-parse.c: Likewise.
61553         * lib/vasnprintf.c: Likewise.
61554
61555 2007-01-29  Eric Blake  <ebb9@byu.net>
61556
61557         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
61558         declaration.
61559
61560 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
61561
61562         * lib/strptime.h (strptime): Use 'restrict' for args where
61563         POSIX requires this.
61564         * lib/strptime.c (strptime): Likewise.
61565         Change license notice from LGPL to GPL, since gnulib-tool will
61566         change this as needed.
61567         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
61568         defined.
61569         Include "strptime.h" first, to check interface.
61570         Do not #undef _LIBC and _NL_CURRENT.
61571         Do not include <stdlib.h>; no longer needed.
61572         Include "time_r.h" and declare ptime_locale_status
61573         only if _LIBC is not defined.
61574         (__P): Remove unused macro.
61575         (match_string): Bring back glibc version, but use it only if _LIBC
61576         is defined.
61577         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
61578         Remove unnecessary assertion and abort() call.
61579         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
61580         * m4/strptime.m4: Fix serial number comment.
61581         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
61582         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
61583         (Depends-on): Add time_r.
61584
61585 2007-01-29  Bruno Haible  <bruno@clisp.org>
61586
61587         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61588         strptime.
61589         * modules/strptime (Depends-on): Add stdbool.
61590         * lib/strptime.h: Include <time.h> always. Add comments.
61591
61592 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61593
61594         * modules/strptime: New file.
61595         * lib/strptime.h: New file.
61596         * lib/strptime.c: New file.
61597         * m4/strptime.m4: New file.
61598
61599 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61600
61601         * MODULES.html.sh: New module mpsort.
61602         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
61603
61604         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
61605         a circularity problem with HP-UX ia64 reported by Bob Proulx in
61606         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
61607         All uses changed.
61608         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
61609         All uses changed.
61610         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
61611         to _Restrict_.
61612         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
61613         the parameter matches the prototype.
61614
61615 2007-01-28  Jim Meyering  <jim@meyering.net>
61616
61617         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
61618         sys/time.h here, reverting that part of the previous patch:
61619         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
61620
61621 2007-01-28  Bruno Haible  <bruno@clisp.org>
61622
61623         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
61624         value of $(SYS_TIME_H).
61625         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
61626         remove it conditionally, too. [added by Jim Meyering]
61627         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
61628         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61629         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
61630         GETTIMEOFDAY_REPLACEMENT to 1.
61631
61632 2007-01-28  Bruno Haible  <bruno@clisp.org>
61633
61634         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
61635         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
61636         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
61637         Set UNISTD_H instead of UNISTD_H2.
61638         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
61639
61640 2007-01-28  Bruno Haible  <bruno@clisp.org>
61641
61642         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
61643         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
61644
61645 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61646
61647         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
61648         (func_create_testdir): Ensure C locale for `grep' and `tr'
61649         character ranges.
61650         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
61651         ACLOCAL_AMFLAGS parsing state machine.
61652
61653 2007-01-27  Bruno Haible  <bruno@clisp.org>
61654
61655         * modules/unistr/base: Update.
61656
61657 2007-01-27  Bruno Haible  <bruno@clisp.org>
61658
61659         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
61660         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
61661         * modules/unistr/u32-mbtouc-unsafe: Renamed from
61662         modules/unistr/u32-mbtouc.
61663         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
61664         * lib/unistr.h: Update.
61665         * lib/linebreak.c: Update.
61666         * modules/unistr/u32-mbtouc: Renamed from
61667         modules/unistr/u32-mbtouc-safe.
61668         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
61669         * lib/unistr.h: Update.
61670         * lib/unistr/u32-to-u8.c: Update.
61671         * lib/unistr/u32-to-u16.c: Update.
61672
61673 2007-01-27  Bruno Haible  <bruno@clisp.org>
61674
61675         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
61676         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
61677         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
61678         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
61679         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
61680         * modules/unistr/u16-mbtouc-unsafe: Renamed from
61681         modules/unistr/u16-mbtouc.
61682         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
61683         * lib/unistr.h: Update.
61684         * lib/linebreak.c: Update.
61685         * modules/linebreak: Update.
61686         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
61687         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
61688         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
61689         * modules/unistr/u16-mbtouc: Renamed from
61690         modules/unistr/u16-mbtouc-safe.
61691         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
61692         * lib/unistr.h: Update.
61693         * lib/unistr/u16-to-u8.c: Update.
61694         * modules/unistr/u16-to-u8: Update.
61695         * lib/unistr/u16-to-u32.c: Update.
61696         * modules/unistr/u16-to-u32: Update.
61697
61698 2007-01-27  Bruno Haible  <bruno@clisp.org>
61699
61700         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
61701         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
61702         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
61703         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
61704         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
61705         * modules/unistr/u8-mbtouc-unsafe: Renamed from
61706         modules/unistr/u8-mbtouc.
61707         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
61708         * lib/unistr.h: Update.
61709         * lib/striconveh.c: Update.
61710         * modules/striconveh: Update.
61711         * lib/linebreak.c: Update.
61712         * modules/linebreak: Update.
61713         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
61714         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
61715         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
61716         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
61717         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
61718         * lib/unistr.h: Update.
61719         * lib/striconveh.c: Update.
61720         * modules/striconveh: Update.
61721         * lib/unistr/u8-to-u16.c: Update.
61722         * modules/unistr/u8-to-u16: Update.
61723         * lib/unistr/u8-to-u32.c: Update.
61724         * modules/unistr/u8-to-u32: Update.
61725
61726 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61727
61728         Sync from Libtool.
61729         * lib/argz.c: Do not include strings.h nor memory.h, include
61730         string.h unconditionally.  Patch by Simon Josefsson.
61731
61732 2007-01-27  Bruno Haible  <bruno@clisp.org>
61733
61734         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
61735         from gl_HEADER_STRING_H_BODY.
61736         (gl_HEADER_STRING_H_BODY): Require it.
61737         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
61738         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61739         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61740         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61741         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61742         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
61743         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61744         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61745         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
61746         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61747         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61748         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
61749         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61750         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61751         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61752
61753 2007-01-27  Bruno Haible  <bruno@clisp.org>
61754
61755         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
61756         check_PROGRAMS into noinst_PROGRAMS.
61757         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
61758         check_PROGRAMS in this case.
61759         (func_import): Set for_test to false.
61760         (func_create_testdir): Set for_test to true.
61761
61762 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61763             Bruno Haible  <bruno@clisp.org>
61764
61765         * modules/strcasestr (Files): Remove lib/strcasestr.h.
61766         (Depends-on): Add string.
61767         (Includes): Use <string.h> instead of strcasestr.h.
61768         * modules/string (Makefile.am): Also substitute the value of
61769         REPLACE_STRCASESTR.
61770         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
61771         assume strcasestr is declared in <string.h> not <strings.h>. Also
61772         set REPLACE_STRCASESTR.
61773         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
61774         REPLACE_STRCASESTR.
61775         * lib/strcasestr.h: Remove file.
61776         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
61777         * lib/string_.h (strcasestr): New declaration.
61778
61779 2007-01-27  Bruno Haible  <bruno@clisp.org>
61780
61781         * lib/string_.h: Use 'extern'.
61782
61783 2007-01-27  Jim Meyering  <jim@meyering.net>
61784
61785         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
61786         of set-but-not-used local, "q".
61787
61788         * lib/mempcpy.c: Include <config.h> before <string.h>.
61789         This fixes a compilation error on HP-UX, due to the system's
61790         "restrict"-using mempcpy prototype.
61791
61792 2007-01-26  Bruno Haible  <bruno@clisp.org>
61793
61794         Small optimization.
61795         * lib/javacomp.c: Include c-strstr.h.
61796          (is_envjavac_gcj): Use c_strstr instead of strstr.
61797         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
61798
61799 2007-01-26  Bruno Haible  <bruno@clisp.org>
61800
61801         * MODULES.html.sh (Unicode string functions): Add the new modules.
61802
61803         * modules/uniconv/u32-strconv-to-locale: New file.
61804         * lib/uniconv/u32-strconv-to-locale.c: New file.
61805
61806         * modules/uniconv/u16-strconv-to-locale: New file.
61807         * lib/uniconv/u16-strconv-to-locale.c: New file.
61808
61809         * modules/uniconv/u8-strconv-to-locale: New file.
61810         * lib/uniconv/u8-strconv-to-locale.c: New file.
61811
61812         * modules/uniconv/u32-strconv-from-locale: New file.
61813         * lib/uniconv/u32-strconv-from-locale.c: New file.
61814
61815         * modules/uniconv/u16-strconv-from-locale: New file.
61816         * lib/uniconv/u16-strconv-from-locale.c: New file.
61817
61818         * modules/uniconv/u8-strconv-from-locale: New file.
61819         * lib/uniconv/u8-strconv-from-locale.c: New file.
61820
61821         * modules/uniconv/u32-strconv-to-enc: New file.
61822         * lib/uniconv/u32-strconv-to-enc.c: New file.
61823         * modules/uniconv/u32-strconv-to-enc-tests: New file.
61824         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
61825
61826         * modules/uniconv/u16-strconv-to-enc: New file.
61827         * lib/uniconv/u16-strconv-to-enc.c: New file.
61828         * lib/uniconv/u-strconv-to-enc.h: New file.
61829         * modules/uniconv/u16-strconv-to-enc-tests: New file.
61830         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
61831
61832         * modules/uniconv/u8-strconv-to-enc: New file.
61833         * lib/uniconv/u8-strconv-to-enc.c: New file.
61834         * modules/uniconv/u8-strconv-to-enc-tests: New file.
61835         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
61836
61837         * modules/uniconv/u32-strconv-from-enc: New file.
61838         * lib/uniconv/u32-strconv-from-enc.c: New file.
61839         * modules/uniconv/u32-strconv-from-enc-tests: New file.
61840         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
61841
61842         * modules/uniconv/u16-strconv-from-enc: New file.
61843         * lib/uniconv/u16-strconv-from-enc.c: New file.
61844         * modules/uniconv/u16-strconv-from-enc-tests: New file.
61845         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
61846
61847         * modules/uniconv/u8-strconv-from-enc: New file.
61848         * lib/uniconv/u8-strconv-from-enc.c: New file.
61849         * lib/uniconv/u-strconv-from-enc.h: New file.
61850         * modules/uniconv/u8-strconv-from-enc-tests: New file.
61851         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
61852
61853         * modules/uniconv/u32-conv-from-enc: New file.
61854         * lib/uniconv/u32-conv-from-enc.c: New file.
61855         * modules/uniconv/u32-conv-from-enc-tests: New file.
61856         * tests/uniconv/test-u32-conv-from-enc.c: New file.
61857
61858         * modules/uniconv/u16-conv-from-enc: New file.
61859         * lib/uniconv/u16-conv-from-enc.c: New file.
61860         * lib/uniconv/u-conv-from-enc.h: New file.
61861         * modules/uniconv/u16-conv-from-enc-tests: New file.
61862         * tests/uniconv/test-u16-conv-from-enc.c: New file.
61863
61864         * modules/uniconv/u8-conv-from-enc: New file.
61865         * lib/uniconv/u8-conv-from-enc.c: New file.
61866         * modules/uniconv/u8-conv-from-enc-tests: New file.
61867         * tests/uniconv/test-u8-conv-from-enc.c: New file.
61868
61869         * modules/uniconv/base: New file.
61870         * lib/uniconv.h: New file.
61871
61872 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61873
61874         * doc/gnulib-tool.texi (Initial import): Update to match current
61875         behavior with strdup module.
61876         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
61877         * lib/memmem.h: Remove; all uses removed.  This is now done
61878         by <string.h>.
61879         * lib/mempcpy.h: Likewise.
61880         * lib/memrchr.h: Likewise.
61881         * lib/stpcpy.h: Likewise.
61882         * lib/stpncpy.h: Likewise.
61883         * lib/strcase.h: Likewise.
61884         * lib/strchrnul.h: Likewise.
61885         * lib/strdup.h: Likewise.
61886         * lib/strndup.h: Likewise.
61887         * lib/strnlen.h: Likewise.
61888         * lib/strpbrk.h: Likewise.
61889         * lib/strsep.h: Likewise.
61890         * lib/strstr.h: Likewise.
61891         * lib/strtok_r.h: Likewise.
61892         * lib/string_.h: New file.
61893         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
61894         Rely on <string.h> instead.
61895         * lib/canon-host.c: Likewise.
61896         * lib/chdir-long.c: Likewise.
61897         * lib/concatpath.c: Likewise.
61898         * lib/exclude.c: Likewise.
61899         * lib/fchdir.c: Likewise.
61900         * lib/getaddrinfo.c: Likewise.
61901         * lib/getcwd.c: Likewise.
61902         * lib/getsubopt.c: Likewise.
61903         * lib/glob.c: Likewise.
61904         * lib/hard-locale.c: Likewise.
61905         * lib/iconvme.c: Likewise.
61906         * lib/javacomp.c: Likewise.
61907         * lib/mempcpy.c: Likewise.
61908         * lib/memrchr.c: Likewise.
61909         * lib/regex_internal.h: Likewise.
61910         * lib/stpncpy.c: Likewise.
61911         * lib/strcasecmp.c: Likewise.
61912         * lib/strchrnul.c: Likewise.
61913         * lib/strdup.c: Likewise.
61914         * lib/striconv.c: Likewise.
61915         * lib/striconveh.c: Likewise.
61916         * lib/striconveha.c: Likewise.
61917         * lib/strncasecmp.c: Likewise.
61918         * lib/strndup.c: Likewise.
61919         * lib/strnlen.c: Likewise.
61920         * lib/strsep.c: Likewise.
61921         * lib/strstr.c: Likewise.
61922         * lib/strtok_r.c: Likewise.
61923         * lib/userspec.c: Likewise.
61924         * lib/w32spawn.h: Likewise.
61925         * lib/xstrndup.c: Likewise.
61926         * lib/mountlist.c (strstr): Remove decl.
61927         * m4/string_h.m4: New file.
61928         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
61929         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
61930         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
61931         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
61932         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
61933         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
61934         Set REPLACE_STRCASECMP if necessary.
61935         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
61936         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
61937         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
61938         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
61939         HAVE_DECL_STRDUP if necessary.
61940         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
61941         since gl_FUNC_STRNDUP does that now.
61942         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
61943         Check for decl here...
61944         (gl_PREREQ_STRNLEN): ... not here.
61945         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
61946         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
61947         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
61948         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
61949         necessary.
61950         * modules/string: New file.
61951         * modules/memmem (Files): Remove special-purpose include file.
61952         (Depends-on): Add string.
61953         (Include): Include <string.h>, not the removed file.
61954         * modules/mempcpy: Likewise.
61955         * modules/memrchr: Likewise.
61956         * modules/stpcpy: Likewise.
61957         * modules/stpncpy: Likewise.
61958         * modules/strcase: Likewise.
61959         * modules/strchrnul: Likewise.
61960         * modules/strdup: Likewise.
61961         * modules/strndup: Likewise.
61962         * modules/strnlen: Likewise.
61963         * modules/strpbrk: Likewise.
61964         * modules/strsep: Likewise.
61965         * modules/strstr: Likewise.
61966         * modules/strtok_r: Likewise.
61967         * tests/test-dirname.c: Don't include "strdup.h", since
61968         <string.h> now suffices.
61969         * tests/test-memmem.c: Don't include "memmem.h", since
61970         <string.h> now suffices.
61971
61972 2007-01-25  Bruno Haible  <bruno@clisp.org>
61973
61974         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61975         *resultp is 0.
61976
61977         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61978         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61979         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61980         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61981
61982         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61983         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61984         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61985         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61986         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61987         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61988
61989 2007-01-24  Bruno Haible  <bruno@clisp.org>
61990
61991         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61992         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61993         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61994         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61995         gl_FUNC_FTS_CORE.
61996         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61997         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61998         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61999         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
62000         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
62001         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
62002         gl_FUNC_FCHOWNAT.
62003         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
62004         gl_FUNC_STRFTIME.
62005         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
62006         Reported by Ralf Wildenhues.
62007
62008 2007-01-24  Bruno Haible  <bruno@clisp.org>
62009
62010         Drop AC_REQUIRE calls that are redundant with the module dependencies.
62011         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
62012         gl_GETADDRINFO.
62013         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
62014         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
62015         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
62016
62017 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
62018
62019         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
62020         Don't use 'exit'; just return from 'main'.
62021         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
62022
62023         * lib/fnmatch_.h: Readjust white space and comments to match
62024         glibc, to avoid spurious diffs.
62025
62026 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62027
62028         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
62029         2004-12-01 change by Jakub Jelinek, since this code won't compile
62030         if !LIBC.  Problem reported by Bob Proulx.
62031
62032 2007-01-23  Bruno Haible  <bruno@clisp.org>
62033
62034         * lib/striconveh.c: Include c-strcaseeq.h.
62035         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
62036         * modules/striconveh (Depends-on): Add c-strcaseeq.
62037
62038 2007-01-23  Bruno Haible  <bruno@clisp.org>
62039
62040         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
62041
62042         * modules/c-strcaseeq: New file.
62043         * lib/c-strcaseeq.h: New file.
62044
62045         * modules/streq: New file.
62046         * lib/streq.h: New file.
62047
62048 2007-01-23  Bruno Haible  <bruno@clisp.org>
62049
62050         * modules/striconveha-tests: New file.
62051         * tests/test-striconveha.c: New file.
62052
62053         * lib/striconveha.h: Include <stdbool.h>.
62054         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
62055         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
62056         (mem_iconveha_notranslit): Renamed from mem_iconveha.
62057         (mem_iconveha): New function.
62058         (str_iconveha_notranslit): Renamed from str_iconveha.
62059         (str_iconveha): New function.
62060         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
62061         c-strcase.
62062
62063 2007-01-23  Bruno Haible  <bruno@clisp.org>
62064
62065         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
62066         encodings without forgiving before trying any encoding with handler.
62067         (str_iconveha): Try all encodings without forgiving before trying any
62068         encoding with handler.
62069
62070 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         Import the following changes from libc.
62073
62074         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62075
62076         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
62077
62078         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
62079
62080         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
62081         normal_bracket label.
62082
62083         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
62084
62085         [BZ #361]
62086         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
62087         to normal_bracket after fetching the next character.
62088
62089 2007-01-22  Bruno Haible  <bruno@clisp.org>
62090
62091         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
62092         argument.
62093         * lib/striconveh.c (iconv_carefully_1): New function.
62094         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
62095         argument.
62096         (str_cd_iconveh): Update.
62097         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
62098         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
62099         * tests/test-striconveh.c (MAGIC): New macro.
62100         (new_offsets): New function.
62101         (main): Test call with and without offsets.
62102
62103 2007-01-22  Bruno Haible  <bruno@clisp.org>
62104
62105         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
62106         * modules/sys_select (Makefile.am): Likewise.
62107         * modules/sys_socket (Makefile.am): Likewise.
62108         * modules/sys_time (Makefile.am): Likewise.
62109
62110 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62111
62112         * modules/gettimeofday (License): Change from GPL to LGPL, since
62113         gettimeofday is a library function.
62114
62115 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62116
62117         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
62118
62119 2007-01-21  Bruno Haible  <bruno@clisp.org>
62120
62121         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
62122
62123 2007-01-21  Bruno Haible  <bruno@clisp.org>
62124
62125         * modules/striconveha: New file.
62126         * lib/striconveha.h: New file.
62127         * lib/striconveha.c: New file.
62128         * MODULES.html.sh (Internationalization functions): Add striconveha.
62129         * lib/striconv.c (str_iconv): Optimize the case of an empty input
62130         string.
62131         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
62132
62133 2007-01-21  Bruno Haible  <bruno@clisp.org>
62134
62135         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
62136         * lib/striconveh.c (str_iconveh): Likewise.
62137
62138 2007-01-21  Bruno Haible  <bruno@clisp.org>
62139
62140         * lib/striconveh.h (mem_iconveh): New declaration.
62141         * lib/striconveh.c (mem_iconveh): New function.
62142         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
62143
62144 2007-01-21  Bruno Haible  <bruno@clisp.org>
62145
62146         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
62147
62148         * lib/striconveh.h (mem_cd_iconveh): Change specification.
62149         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
62150         original result buffer.
62151         (str_cd_iconveh): Update.
62152         * tests/test-striconveh.c (main): Update.
62153
62154         * lib/striconv.h (mem_cd_iconv): Change specification.
62155         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
62156         result buffer.
62157         (str_cd_iconv): Update.
62158         * tests/test-striconv.c (main): Update.
62159
62160 2007-01-21  Bruno Haible  <bruno@clisp.org>
62161
62162         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
62163
62164 2007-01-20  Jim Meyering  <jim@meyering.net>
62165
62166         * lib/userspec.c (parse_with_separator): If a user or group string
62167         starts with "+", skip the corresponding name-to-ID look-up, since
62168         such a look-up must fail: user and group names may not include "+".
62169
62170 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62171
62172         * lib/poll.c: Include sys/time.h and time.h unconditionally,
62173         since we now assume the sys_time module.
62174         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
62175         check for sys/time.h; no longer needed.
62176         * modules/poll (Depends-on): Depend on sys_time.
62177
62178 2007-01-18  Bruno Haible  <bruno@clisp.org>
62179
62180         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
62181         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
62182
62183         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
62184         gettimeofday.
62185
62186         * tests/test-gettimeofday.c: Include <time.h>.
62187         (dummy): Remove variable.
62188
62189         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
62190         gl_HEADER_SYS_TIME_H.
62191         (gl_HEADER_SYS_TIME_H): New macro.
62192
62193         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
62194         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62195         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
62196         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
62197         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62198         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
62199         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
62200         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62201         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
62202         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
62203         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62204
62205         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
62206         last change; it caused a compilation error when cross-compiling to
62207         Cygwin.
62208
62209 2007-01-18  Jim Meyering  <jim@meyering.net>
62210
62211         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
62212         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
62213         than the race-prone "test -d sys || mkdir sys".
62214         (configure.ac): Use AC_PROG_MKDIR_P.
62215         * modules/sys_select: Likewise.
62216         * modules/sys_socket: Likewise.
62217         * modules/sys_time: Likewise.
62218
62219 2007-01-18  Eric Blake  <ebb9@byu.net>
62220
62221         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
62222         replace gettimeofday.
62223         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
62224         name, to avoid infinite recursion.
62225
62226 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
62227
62228         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
62229         module sys_time.
62230         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
62231         assume timespec.h defines struct timeval.
62232         * lib/settime.c: Likewise.
62233         * lib/utimens.c: Likewise.
62234         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
62235         since we now assume the gettimeofday module.
62236         * lib/tempname.c (__gen_tempname): Likewise.
62237         * lib/gettimeofday.h: Remove.
62238         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
62239         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
62240         Include <time.h>, for 'time()'.
62241         (localtime_buffer_addr): Also use this workaround if
62242         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
62243         to simplify the uses.  All uses changed.
62244         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
62245         that #undef is inside {}, and 'const' follows type name consistently.
62246         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
62247         (gettimeofday): Do not use the maximum possible value for
62248         tv->tv_usec, since that might break usages other than ls.c.
62249         Instead, we'll leave ls.c alone.  This undoes today's patch
62250         by Bruno.  Add a compile-time warning for 1s-clock resolution;
62251         we've never observed the problem but might as well keep the
62252         canary.
62253         * lib/nanosleep.c: Include timespec.h first, for interface check.
62254         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
62255         now assume the sys_time module.
62256         * lib/tempname.c: Likewise.
62257         * lib/timespec.h: Likewise.
62258         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
62259         needed.
62260         * lib/strftime.c: Likewise.
62261         * lib/timespec.h: Likewise.
62262         * lib/posixtm.c: Include posixtm.h first, for interface check.
62263         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
62264         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
62265         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
62266         * lib/sys_time_.h: New file.
62267         * lib/timespec.h (struct timespec): Use long int, not long.
62268         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62269         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
62270         Remove obsolescent call to AC_HEADER_TIME.
62271         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
62272         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62273         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
62274         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
62275         Likewise.
62276         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
62277         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
62278         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
62279         into the sys_time module.  Check for gettimeofday just once.
62280         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
62281         for gettimeofday signature to just check the signature.  Merely
62282         compile it, since linking doesn't test signature.  Improve test for
62283         whether gettimeofday.o is actually needed.
62284         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
62285         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
62286         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
62287         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62288         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
62289         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
62290         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
62291         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
62292         than worrying about sys/time.h.
62293         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62294         Don't bother worrying about TIME_WITH_SYS_TIME.
62295         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
62296         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
62297         * m4/sys_time_h.m4: New file.
62298         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
62299         Don't include sys/time.h.  Return from main rather than exiting.
62300         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
62301         all uses changed.
62302         * modules/gethrxtime (Depends-on): Add sys_time.
62303         * modules/gettime (Depends-on): Likewise.
62304         * modules/gettimeofday (Depends-on): Likewise.
62305         * modules/nanosleep (Depends-on): Likewise.
62306         * modules/settime (Depends-on): Likewise.
62307         * modules/tempname (Depends-on): Likewise.
62308         * modules/utimens (Depends-on): Likewise.
62309         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
62310         (Include): Change back to <sys/time.h>.
62311         (Maintainer): Add self.
62312         * modules/sys_time: New file.
62313         * modules/tempname (Depends-on): Add gettimeofday.
62314         * tests/test-gettimeofday.c: Include <sys/time.h>
62315         rather than gettimeofday.h.
62316
62317 2007-01-17  Bruno Haible  <bruno@clisp.org>
62318
62319         * gnulib-tool (func_get_license): Revert last patch. Instead, let
62320         the license default to GPL.
62321         (func_create_testdir): Don't complain if a module is LGPL and its
62322         tests module depends on GPLed modules.
62323
62324 2007-01-17  Bruno Haible  <bruno@clisp.org>
62325
62326         * lib/gettimeofday.c (gettimeofday): Add code for the case
62327         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
62328         maximum possible value for tv->tv_usec, rather than the minimum one.
62329
62330 2005-10-08  Martin Lambers  <marlam@marlam.de>
62331 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62332 2007-01-16  Bruno Haible  <bruno@clisp.org>
62333
62334         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
62335         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
62336         gl_FUNC_GETTIMEOFDAY.
62337         (Include): Add gettimeofday.h.
62338         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
62339         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
62340         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
62341         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
62342         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
62343         * lib/gettimeofday.h: New file.
62344         * lib/gettimeofday.c: Include <sys/timeb.h>.
62345         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
62346         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62347         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
62348         fall back on time().
62349
62350         * tests/test-gettimeofday.c: New file.
62351         * modules/gettimeofday-tests: New file.
62352
62353 2007-01-16  Eric Blake  <ebb9@byu.net>
62354
62355         * modules/fnmatch (Depends-on): Depend on wchar.
62356         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
62357         * m4/fnmatch.m4: Likewise.
62358         * modules/mbchar (Makefile.am): Assume <wchar.h>.
62359         * m4/mbchar.m4: Likewise.
62360         * modules/mbswidth (Depends-on): Depend on wchar.
62361         * lib/mbswidth.c: Assume <wchar.h>.
62362         * m4/mbswidth.m4: Likewise.
62363         * modules/quotearg (Depends-on): Depend on wchar.
62364         * lib/quotearg.c: Assume <wchar.h>.
62365         * m4/quotearg.m4: Likewise.
62366         * modules/regex (Depends-on): Depend on wchar.
62367         * lib/regex_internal.h: Assume <wchar.h>.
62368         * m4/regex.m4: Likewise.
62369         * modules/stdint (Depends-on): Depend on wchar.
62370         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
62371         * m4/stdint.m4: Likewise.
62372         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
62373         * modules/strftime (Depends-on): Depend on wchar.
62374         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
62375         * modules/strtol (Depends-on): Depend on wchar.
62376         * lib/strtol.c: Assume <wchar.h>.
62377         * modules/wcwidth (Depends-on): Depend on wchar.
62378         * lib/wcwidth.h: Assume <wchar.h>.
62379         * m4/wcwidth.m4: Likewise.
62380
62381 2007-01-16  Bruno Haible  <bruno@clisp.org>
62382
62383         * modules/csharpexec-script: New, created from...
62384         * modules/csharpexec: ... this.
62385
62386 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62387
62388         * modules/javaexec-script: New, created from...
62389         * modules/javaexec: ... this.
62390
62391 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62392
62393         * modules/poll (Dependencies): Add sys_select.
62394
62395 2007-01-15  Jim Meyering  <jim@meyering.net>
62396
62397         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
62398         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
62399         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
62400         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
62401
62402 2007-01-15  Bruno Haible  <bruno@clisp.org>
62403
62404         * modules/striconveh: New file.
62405         * lib/striconveh.h: New file.
62406         * lib/striconveh.c: New file.
62407         * MODULES.html.sh (Internationalization functions): Add striconveh.
62408
62409         * modules/striconveh-tests: New file.
62410         * tests/test-striconveh.c: New file.
62411
62412 2007-01-15  Bruno Haible  <bruno@clisp.org>
62413
62414         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
62415         not from GNU libiconv or GNU libc.
62416
62417 2007-01-15  Bruno Haible  <bruno@clisp.org>
62418
62419         * doc/gnulib-intro.texi (Copyright): Explain the different license
62420         terms for module descriptions, autoconf macros, tests, documentation.
62421
62422 2007-01-14  Bruno Haible  <bruno@clisp.org>
62423
62424         * modules/striconv-tests: New file.
62425         * tests/test-striconv.c: New file.
62426
62427 2007-01-14  Bruno Haible  <bruno@clisp.org>
62428
62429         * modules/iconv-tests: New file.
62430         * tests/test-iconv.c: New file.
62431
62432 2007-01-14  Bruno Haible  <bruno@clisp.org>
62433
62434         * gnulib-tool (func_get_license): For test modules, use the license of
62435         the main module.
62436
62437 2007-01-14  Bruno Haible  <bruno@clisp.org>
62438
62439         * modules/iconv (Include): Clarify that <iconv.h> can only be included
62440         if iconv is found to exist.
62441
62442 2007-01-14  Bruno Haible  <bruno@clisp.org>
62443
62444         * modules/c-ctype-tests: New file.
62445         * tests/test-c-ctype.c: New file.
62446
62447 2007-01-14  Bruno Haible  <bruno@clisp.org>
62448
62449         * modules/binary-io-tests: New file.
62450         * tests/test-binary-io.sh: New file.
62451         * tests/test-binary-io.c: New file.
62452
62453 2007-01-14  Bruno Haible  <bruno@clisp.org>
62454
62455         * modules/array-oset-tests: New file.
62456         * tests/test-array_oset.c: New file.
62457
62458 2007-01-14  Bruno Haible  <bruno@clisp.org>
62459
62460         * modules/array-list-tests: New file.
62461         * tests/test-array_list.c: New file.
62462
62463 2007-01-14  Bruno Haible  <bruno@clisp.org>
62464
62465         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
62466         and make.
62467         Reported by Simon Josefsson in
62468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
62469
62470 2007-01-14  Bruno Haible  <bruno@clisp.org>
62471
62472         * modules/allocsa-tests: New file.
62473         * tests/test-allocsa.c: New file.
62474
62475 2007-01-14  Bruno Haible  <bruno@clisp.org>
62476
62477         * modules/fchdir (Depends-on): Add absolute-header.
62478         * modules/unistd (Depends-on): Likewise.
62479
62480 2006-12-30  Bruno Haible  <bruno@clisp.org>
62481
62482         * modules/fchdir: New file.
62483         * modules/unistd (Files): Add lib/unistd_.h.
62484         (Makefile.am): Generate unistd.h from unistd_.h.
62485         * lib/fchdir.c: New file.
62486         * lib/dirent_.h: New file.
62487         * lib/unistd_.h: New file.
62488         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
62489         * m4/fchdir.m4: New file.
62490         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
62491         (gl_HEADER_UNISTD): Invoke it.
62492         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
62493         function.
62494         * lib/backupfile.c (opendir, closedir): Undefine.
62495         * lib/chown.c (open, close): Undefine.
62496         * lib/clean-temp.c (open, close): Undefine.
62497         * lib/copy-file.c (open, close): Undefine.
62498         * lib/execute.c (open, close): Undefine.
62499         * lib/fsusage.c (open, close): Undefine.
62500         * lib/gc-gnulib.c (open, close): Undefine.
62501         * lib/getcwd.c (opendir, closedir): Undefine.
62502         * lib/glob.c (opendir, closedir): Undefine.
62503         * lib/javacomp.c (open, close): Undefine.
62504         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
62505         * lib/openat-proc.c (open, close): Undefine.
62506         * lib/pagealign_alloc.c (open, close): Undefine.
62507         * lib/pipe.c (open, close): Undefine.
62508         * lib/progreloc.c (open, close): Undefine.
62509         * lib/savedir.c (opendir, closedir): Undefine.
62510         * lib/utime.c (open, close): Undefine.
62511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
62512
62513 2007-01-10  Bruno Haible  <bruno@clisp.org>
62514
62515         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
62516
62517 2007-01-12  Eric Blake  <ebb9@byu.net>
62518
62519         Provide a robust <wchar.h>.  Further simplifications are now
62520         possible in other modules, but not included here.
62521         * modules/wchar: New module.
62522         * m4/wchar.m4: New file.
62523         * lib/wchar_.h: Likewise.
62524         * modules/mbchar (Depends-on): Depend on wchar, as the first use
62525         of the new module.
62526         * MODULES.html.sh (Extended multibyte and wide character utilities):
62527         New section.
62528
62529 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
62530
62531         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
62532         to a reasonable default for memory allocation.
62533         (xreadlink): Don't allocate a huge buffer, to work around a buggy
62534         file system that reports garbage st_size values for symlinks.
62535         Problem reported by Liyang Hu.
62536
62537 2007-01-11  Simon Josefsson  <simon@josefsson.org>
62538
62539         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
62540         Emacs .#* auto-save files).
62541
62542 2007-01-11  Bruno Haible  <bruno@clisp.org>
62543
62544         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
62545         directory.
62546
62547 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62548
62549         Use @...@ consistently in lib/wctype_.h.
62550         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
62551         on it being set to 1 or 0.
62552         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
62553         go back to AC_SUBSTing it.
62554         * modules/wctype (Makefile.am): Undo previous change.
62555
62556 2007-01-10  Eric Blake  <ebb9@byu.net>
62557
62558         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
62559         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
62560         * modules/wctype (Makefile.am): Likewise.
62561         Reported by Chris McGuire.
62562
62563 2007-01-10  Jim Meyering  <jim@meyering.net>
62564
62565         fts.c: a small readability/maintainability improvement
62566         * lib/fts.c (fts_read): Make this code slightly more readable and
62567         maintainable by hoisting the "sp->fts_cur = p" assignments to
62568         immediately follow the statements that set P.  Derived from
62569         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
62570
62571 2007-01-10  Eric Blake  <ebb9@byu.net>
62572
62573         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
62574         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
62575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62576         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62577         Reported by Chris McGuire.
62578
62579 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62580
62581         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
62582         in sed script.
62583
62584 2007-01-09  Bruno Haible  <bruno@clisp.org>
62585
62586         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
62587         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
62588         variables.
62589         (func_module): Use them.
62590
62591 2007-01-09  Bruno Haible  <bruno@clisp.org>
62592
62593         * modules/unistr/base: New file.
62594         * lib/unistr.h: New file.
62595
62596         * modules/unistr/u8-to-u16: New file.
62597         * lib/unistr/u8-to-u16.c: New file.
62598
62599         * modules/unistr/u8-to-u32: New file.
62600         * lib/unistr/u8-to-u32.c: New file.
62601
62602         * modules/unistr/u16-to-u8: New file.
62603         * lib/unistr/u16-to-u8.c: New file.
62604
62605         * modules/unistr/u16-to-u32: New file.
62606         * lib/unistr/u16-to-u32.c: New file.
62607
62608         * modules/unistr/u32-to-u8: New file.
62609         * lib/unistr/u32-to-u8.c: New file.
62610
62611         * modules/unistr/u32-to-u16: New file.
62612         * lib/unistr/u32-to-u16.c: New file.
62613
62614         * modules/unistr/u8-check: New file.
62615         * modules/unistr/u16-check: New file.
62616         * modules/unistr/u32-check: New file.
62617         * lib/unistr/u8-check.c: New file.
62618         * lib/unistr/u16-check.c: New file.
62619         * lib/unistr/u32-check.c: New file.
62620
62621         * modules/unistr/u8-chr: New file.
62622         * modules/unistr/u16-chr: New file.
62623         * modules/unistr/u32-chr: New file.
62624         * lib/unistr/u8-chr.c: New file.
62625         * lib/unistr/u16-chr.c: New file.
62626         * lib/unistr/u32-chr.c: New file.
62627
62628         * modules/unistr/u8-cmp: New file.
62629         * modules/unistr/u16-cmp: New file.
62630         * modules/unistr/u32-cmp: New file.
62631         * lib/unistr/u8-cmp.c: New file.
62632         * lib/unistr/u16-cmp.c: New file.
62633         * lib/unistr/u32-cmp.c: New file.
62634
62635         * modules/unistr/u8-cpy: New file.
62636         * modules/unistr/u16-cpy: New file.
62637         * modules/unistr/u32-cpy: New file.
62638         * lib/unistr/u8-cpy.c: New file.
62639         * lib/unistr/u16-cpy.c: New file.
62640         * lib/unistr/u32-cpy.c: New file.
62641         * lib/unistr/u-cpy.h: New file.
62642
62643         * modules/unistr/u8-cpy-alloc: New file.
62644         * modules/unistr/u16-cpy-alloc: New file.
62645         * modules/unistr/u32-cpy-alloc: New file.
62646         * lib/unistr/u8-cpy-alloc.c: New file.
62647         * lib/unistr/u16-cpy-alloc.c: New file.
62648         * lib/unistr/u32-cpy-alloc.c: New file.
62649         * lib/unistr/u-cpy-alloc.h: New file.
62650
62651         * modules/unistr/u8-endswith: New file.
62652         * modules/unistr/u16-endswith: New file.
62653         * modules/unistr/u32-endswith: New file.
62654         * lib/unistr/u8-endswith.c: New file.
62655         * lib/unistr/u16-endswith.c: New file.
62656         * lib/unistr/u32-endswith.c: New file.
62657         * lib/unistr/u-endswith.h: New file.
62658
62659         * modules/unistr/u8-mblen: New file.
62660         * modules/unistr/u16-mblen: New file.
62661         * modules/unistr/u32-mblen: New file.
62662         * lib/unistr/u8-mblen.c: New file.
62663         * lib/unistr/u16-mblen.c: New file.
62664         * lib/unistr/u32-mblen.c: New file.
62665
62666         * modules/unistr/u8-mbtouc: New file.
62667         * modules/unistr/u16-mbtouc: New file.
62668         * modules/unistr/u32-mbtouc: New file.
62669         * lib/unistr/u8-mbtouc.c: New file.
62670         * lib/unistr/u16-mbtouc.c: New file.
62671         * lib/unistr/u32-mbtouc.c: New file.
62672
62673         * modules/unistr/u8-mbtouc-safe: New file.
62674         * modules/unistr/u16-mbtouc-safe: New file.
62675         * modules/unistr/u32-mbtouc-safe: New file.
62676         * lib/unistr/u8-mbtouc-safe.c: New file.
62677         * lib/unistr/u16-mbtouc-safe.c: New file.
62678         * lib/unistr/u32-mbtouc-safe.c: New file.
62679
62680         * modules/unistr/u8-move: New file.
62681         * modules/unistr/u16-move: New file.
62682         * modules/unistr/u32-move: New file.
62683         * lib/unistr/u8-move.c: New file.
62684         * lib/unistr/u16-move.c: New file.
62685         * lib/unistr/u32-move.c: New file.
62686         * lib/unistr/u-move.h: New file.
62687
62688         * modules/unistr/u8-next: New file.
62689         * modules/unistr/u16-next: New file.
62690         * modules/unistr/u32-next: New file.
62691         * lib/unistr/u8-next.c: New file.
62692         * lib/unistr/u16-next.c: New file.
62693         * lib/unistr/u32-next.c: New file.
62694
62695         * modules/unistr/u8-prev: New file.
62696         * modules/unistr/u16-prev: New file.
62697         * modules/unistr/u32-prev: New file.
62698         * lib/unistr/u8-prev.c: New file.
62699         * lib/unistr/u16-prev.c: New file.
62700         * lib/unistr/u32-prev.c: New file.
62701
62702         * modules/unistr/u8-set: New file.
62703         * modules/unistr/u16-set: New file.
62704         * modules/unistr/u32-set: New file.
62705         * lib/unistr/u8-set.c: New file.
62706         * lib/unistr/u16-set.c: New file.
62707         * lib/unistr/u32-set.c: New file.
62708         * lib/unistr/u-set.h: New file.
62709
62710         * modules/unistr/u8-startswith: New file.
62711         * modules/unistr/u16-startswith: New file.
62712         * modules/unistr/u32-startswith: New file.
62713         * lib/unistr/u8-startswith.c: New file.
62714         * lib/unistr/u16-startswith.c: New file.
62715         * lib/unistr/u32-startswith.c: New file.
62716         * lib/unistr/u-startswith.h: New file.
62717
62718         * modules/unistr/u8-stpcpy: New file.
62719         * modules/unistr/u16-stpcpy: New file.
62720         * modules/unistr/u32-stpcpy: New file.
62721         * lib/unistr/u8-stpcpy.c: New file.
62722         * lib/unistr/u16-stpcpy.c: New file.
62723         * lib/unistr/u32-stpcpy.c: New file.
62724         * lib/unistr/u-stpcpy.h: New file.
62725
62726         * modules/unistr/u8-stpncpy: New file.
62727         * modules/unistr/u16-stpncpy: New file.
62728         * modules/unistr/u32-stpncpy: New file.
62729         * lib/unistr/u8-stpncpy.c: New file.
62730         * lib/unistr/u16-stpncpy.c: New file.
62731         * lib/unistr/u32-stpncpy.c: New file.
62732         * lib/unistr/u-stpncpy.h: New file.
62733
62734         * modules/unistr/u8-strcat: New file.
62735         * modules/unistr/u16-strcat: New file.
62736         * modules/unistr/u32-strcat: New file.
62737         * lib/unistr/u8-strcat.c: New file.
62738         * lib/unistr/u16-strcat.c: New file.
62739         * lib/unistr/u32-strcat.c: New file.
62740         * lib/unistr/u-strcat.h: New file.
62741
62742         * modules/unistr/u8-strchr: New file.
62743         * modules/unistr/u16-strchr: New file.
62744         * modules/unistr/u32-strchr: New file.
62745         * lib/unistr/u8-strchr.c: New file.
62746         * lib/unistr/u16-strchr.c: New file.
62747         * lib/unistr/u32-strchr.c: New file.
62748
62749         * modules/unistr/u8-strcmp: New file.
62750         * modules/unistr/u16-strcmp: New file.
62751         * modules/unistr/u32-strcmp: New file.
62752         * lib/unistr/u8-strcmp.c: New file.
62753         * lib/unistr/u16-strcmp.c: New file.
62754         * lib/unistr/u32-strcmp.c: New file.
62755
62756         * modules/unistr/u8-strcpy: New file.
62757         * modules/unistr/u16-strcpy: New file.
62758         * modules/unistr/u32-strcpy: New file.
62759         * lib/unistr/u8-strcpy.c: New file.
62760         * lib/unistr/u16-strcpy.c: New file.
62761         * lib/unistr/u32-strcpy.c: New file.
62762         * lib/unistr/u-strcpy.h: New file.
62763
62764         * modules/unistr/u8-strcspn: New file.
62765         * modules/unistr/u16-strcspn: New file.
62766         * modules/unistr/u32-strcspn: New file.
62767         * lib/unistr/u8-strcspn.c: New file.
62768         * lib/unistr/u16-strcspn.c: New file.
62769         * lib/unistr/u32-strcspn.c: New file.
62770         * lib/unistr/u-strcspn.h: New file.
62771
62772         * modules/unistr/u8-strdup: New file.
62773         * modules/unistr/u16-strdup: New file.
62774         * modules/unistr/u32-strdup: New file.
62775         * lib/unistr/u8-strdup.c: New file.
62776         * lib/unistr/u16-strdup.c: New file.
62777         * lib/unistr/u32-strdup.c: New file.
62778         * lib/unistr/u-strdup.h: New file.
62779
62780         * modules/unistr/u8-strlen: New file.
62781         * modules/unistr/u16-strlen: New file.
62782         * modules/unistr/u32-strlen: New file.
62783         * lib/unistr/u8-strlen.c: New file.
62784         * lib/unistr/u16-strlen.c: New file.
62785         * lib/unistr/u32-strlen.c: New file.
62786         * lib/unistr/u-strlen.h: New file.
62787
62788         * modules/unistr/u8-strmblen: New file.
62789         * modules/unistr/u16-strmblen: New file.
62790         * modules/unistr/u32-strmblen: New file.
62791         * lib/unistr/u8-strmblen.c: New file.
62792         * lib/unistr/u16-strmblen.c: New file.
62793         * lib/unistr/u32-strmblen.c: New file.
62794
62795         * modules/unistr/u8-strmbtouc: New file.
62796         * modules/unistr/u16-strmbtouc: New file.
62797         * modules/unistr/u32-strmbtouc: New file.
62798         * lib/unistr/u8-strmbtouc.c: New file.
62799         * lib/unistr/u16-strmbtouc.c: New file.
62800         * lib/unistr/u32-strmbtouc.c: New file.
62801
62802         * modules/unistr/u8-strncat: New file.
62803         * modules/unistr/u16-strncat: New file.
62804         * modules/unistr/u32-strncat: New file.
62805         * lib/unistr/u8-strncat.c: New file.
62806         * lib/unistr/u16-strncat.c: New file.
62807         * lib/unistr/u32-strncat.c: New file.
62808         * lib/unistr/u-strncat.h: New file.
62809
62810         * modules/unistr/u8-strncmp: New file.
62811         * modules/unistr/u16-strncmp: New file.
62812         * modules/unistr/u32-strncmp: New file.
62813         * lib/unistr/u8-strncmp.c: New file.
62814         * lib/unistr/u16-strncmp.c: New file.
62815         * lib/unistr/u32-strncmp.c: New file.
62816
62817         * modules/unistr/u8-strncpy: New file.
62818         * modules/unistr/u16-strncpy: New file.
62819         * modules/unistr/u32-strncpy: New file.
62820         * lib/unistr/u8-strncpy.c: New file.
62821         * lib/unistr/u16-strncpy.c: New file.
62822         * lib/unistr/u32-strncpy.c: New file.
62823         * lib/unistr/u-strncpy.h: New file.
62824
62825         * modules/unistr/u8-strnlen: New file.
62826         * modules/unistr/u16-strnlen: New file.
62827         * modules/unistr/u32-strnlen: New file.
62828         * lib/unistr/u8-strnlen.c: New file.
62829         * lib/unistr/u16-strnlen.c: New file.
62830         * lib/unistr/u32-strnlen.c: New file.
62831         * lib/unistr/u-strnlen.h: New file.
62832
62833         * modules/unistr/u8-strpbrk: New file.
62834         * modules/unistr/u16-strpbrk: New file.
62835         * modules/unistr/u32-strpbrk: New file.
62836         * lib/unistr/u8-strpbrk.c: New file.
62837         * lib/unistr/u16-strpbrk.c: New file.
62838         * lib/unistr/u32-strpbrk.c: New file.
62839         * lib/unistr/u-strpbrk.h: New file.
62840
62841         * modules/unistr/u8-strrchr: New file.
62842         * modules/unistr/u16-strrchr: New file.
62843         * modules/unistr/u32-strrchr: New file.
62844         * lib/unistr/u8-strrchr.c: New file.
62845         * lib/unistr/u16-strrchr.c: New file.
62846         * lib/unistr/u32-strrchr.c: New file.
62847
62848         * modules/unistr/u8-strspn: New file.
62849         * modules/unistr/u16-strspn: New file.
62850         * modules/unistr/u32-strspn: New file.
62851         * lib/unistr/u8-strspn.c: New file.
62852         * lib/unistr/u16-strspn.c: New file.
62853         * lib/unistr/u32-strspn.c: New file.
62854         * lib/unistr/u-strspn.h: New file.
62855
62856         * modules/unistr/u8-strstr: New file.
62857         * modules/unistr/u16-strstr: New file.
62858         * modules/unistr/u32-strstr: New file.
62859         * lib/unistr/u8-strstr.c: New file.
62860         * lib/unistr/u16-strstr.c: New file.
62861         * lib/unistr/u32-strstr.c: New file.
62862         * lib/unistr/u-strstr.h: New file.
62863
62864         * modules/unistr/u8-strtok: New file.
62865         * modules/unistr/u16-strtok: New file.
62866         * modules/unistr/u32-strtok: New file.
62867         * lib/unistr/u8-strtok.c: New file.
62868         * lib/unistr/u16-strtok.c: New file.
62869         * lib/unistr/u32-strtok.c: New file.
62870         * lib/unistr/u-strtok.h: New file.
62871
62872         * modules/unistr/u8-uctomb: New file.
62873         * modules/unistr/u16-uctomb: New file.
62874         * modules/unistr/u32-uctomb: New file.
62875         * lib/unistr/u8-uctomb.c: New file.
62876         * lib/unistr/u16-uctomb.c: New file.
62877         * lib/unistr/u32-uctomb.c: New file.
62878
62879         * MODULES.html.sh (Unicode string functions): Add the new modules.
62880
62881 2007-01-08  Bruno Haible  <bruno@clisp.org>
62882
62883         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
62884         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
62885         subdirectories.
62886
62887 2007-01-08  Karl Berry  <karl@gnu.org>
62888
62889         * doc/error.texi: mention that main() fns must set program_name
62890         when progname is used.
62891
62892 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
62893
62894         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
62895         WCTYPE_H is empty, for the benefit of builds from non-distclean
62896         directories.  Problem reported by Eric Blake in
62897         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
62898
62899 2007-01-08  Bruno Haible  <bruno@clisp.org>
62900
62901         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
62902         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
62903         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
62904         PROVIDE_CANONICALIZE_FILENAME_MODE.
62905         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
62906
62907 2007-01-08  Bruno Haible  <bruno@clisp.org>
62908
62909         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
62910         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
62911         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
62912         * lib/fts.c: Likewise.
62913         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
62914
62915 2006-12-25  Bruno Haible  <bruno@clisp.org>
62916
62917         * modules/utf8-ucs4-safe: New file.
62918         * lib/utf8-ucs4-safe.h: New file.
62919         * lib/unistr/utf8-ucs4-safe.c: New file.
62920
62921         * modules/utf16-ucs4-safe: New file.
62922         * lib/utf16-ucs4-safe.h: New file.
62923         * lib/unistr/utf16-ucs4-safe.c: New file.
62924
62925         * MODULES.html.sh (Unicode string functions): Add the new modules.
62926
62927 2007-01-08  Bruno Haible  <bruno@clisp.org>
62928
62929         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
62930         (Depends-on): Add unitypes.
62931         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62932         (u8_mbtouc_aux): Move out to separate file.
62933         (u8_mbtouc): Use ucs4_t, uint8_t types.
62934         * lib/unistr/utf8-ucs4.c: New file.
62935
62936         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
62937         (Depends-on): Add unitypes.
62938         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62939         (u16_mbtouc_aux): Move out to separate file.
62940         (u16_mbtouc): Use ucs4_t, uint16_t types.
62941         * lib/unistr/utf16-ucs4.c: New file.
62942
62943         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
62944         (Depends-on): Add unitypes.
62945         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
62946         (u8_uctomb_aux): Move out to separate file.
62947         (u8_uctomb): Use ucs4_t, uint8_t types.
62948         * lib/unistr/ucs4-utf8.c: New file.
62949
62950         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
62951         (Depends-on): Add unitypes.
62952         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
62953         (u16_uctomb_aux): Move out to separate file.
62954         (u16_uctomb): Use ucs4_t, uint16_t types.
62955         * lib/unistr/ucs4-utf16.c: New file.
62956
62957 2006-12-25  Bruno Haible  <bruno@clisp.org>
62958
62959         * modules/unitypes: New file.
62960         * lib/unitypes.h: New file.
62961         * MODULES.html.sh (func_all_modules): New section "Unicode string
62962         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
62963         this section. Add unitypes.
62964
62965 2007-01-08  Bruno Haible  <bruno@clisp.org>
62966
62967         Avoid variable names that conflict with those from libtool.
62968         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
62969         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
62970         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
62971         library_names_spec to acl_library_names_spec, hardcode_* to
62972         acl_hardcode_*.
62973         Reported by Ralf Wildenhues.
62974
62975 2007-01-08  Bruno Haible  <bruno@clisp.org>
62976
62977         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62978         definition.
62979         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62980         definition.
62981         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62982         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62983         definition.
62984         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62985         definition.
62986         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62987         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62988         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62989         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62990         definition.
62991         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62992         definition.
62993         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62994         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62995         GC_USE_<algorithm>.
62996         * lib/gc-libgcrypt.c: Likewise.
62997         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62998         * modules/gc-arctwo (configure.ac): Likewise.
62999         * modules/gc-des (configure.ac): Likewise.
63000         * modules/gc-hmac-md5 (configure.ac): Likewise.
63001         * modules/gc-hmac-sha1 (configure.ac): Likewise.
63002         * modules/gc-md2 (configure.ac): Likewise.
63003         * modules/gc-md4 (configure.ac): Likewise.
63004         * modules/gc-md5 (configure.ac): Likewise.
63005         * modules/gc-random (configure.ac): Likewise.
63006         * modules/gc-rijndael (configure.ac): Likewise.
63007         * modules/gc-sha1 (configure.ac): Likewise.
63008
63009 2007-01-08  Bruno Haible  <bruno@clisp.org>
63010
63011         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
63012         macro definition.
63013         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
63014         definition.
63015         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
63016         definition.
63017         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
63018         * modules/fcntl-safer (configure.ac): Likewise.
63019         * modules/fopen-safer (configure.ac): Likewise.
63020         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
63021         GNULIB_FWRITEERROR macro definition.
63022
63023 2007-01-08  Bruno Haible  <bruno@clisp.org>
63024
63025         * m4/gnulib-common.m4: New file.
63026         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
63027         (func_get_filelist): Add m4/gnulib-common.m4.
63028
63029 2007-01-08  Bruno Haible  <bruno@clisp.org>
63030
63031         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
63032         command.
63033
63034 2007-01-08  Jim Meyering  <jim@meyering.net>
63035
63036         Use a more robust test for a "can't happen" condition.
63037         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
63038         narrowed the st_size value.  Presuming the "can't happen" condition
63039         is true, that narrowing could conceivably convert an invalid st_size
63040         value into a valid one.  Instead, use a change based on Matthew
63041         Woehlke's original patch.
63042
63043         Slight readability improvement: use an assert-like macro
63044         in place of literal "abort ()" uses.
63045         * lib/fts.c (fts_assert): Define.
63046         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
63047         Use this macro instead of a bare 'abort'.
63048
63049 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
63050
63051         Don't worry about using IRIX 5.3's wctype.h broken definitions;
63052         simply work around them.
63053         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
63054         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
63055         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
63056         declaring.
63057         Don't bother to define as macros, since the standard doesn't require it.
63058         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
63059         longer worry about IRIX 5.3.
63060         (HAVE_WCTYPE_CTMP_BUG): Remove.
63061
63062 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63063
63064         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
63065         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
63066         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63067         Problems reported by Georg Schwarz for IRIX 5.3.
63068
63069         * gnulib-tool (autoconf_minversion): Take the maximum version number
63070         found, not the minimum.  Problem reported by James Youngman.
63071
63072 2007-01-03  Karl Berry  <karl@gnu.org>
63073
63074         * doc/error.texi: new file, explaining interaction with progname.
63075         * doc/gnulib.texi: include it.  Update copyright.
63076
63077 2007-01-03  Simon Josefsson  <simon@josefsson.org>
63078
63079         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
63080         AC_CANONICAL_HOST, to improve autobuild outputs.
63081
63082 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
63083             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63084
63085         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
63086         sockets, server sockets, and other file descriptors.  Count errors
63087         to compute the return value.  Reorder the code a bit to be easier
63088         to follow.  Don't set event bits that were not requested (except
63089         POLLERR and POLLHUP).
63090
63091 2007-01-01  Bruno Haible  <bruno@clisp.org>
63092
63093         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
63094
63095 2007-01-03  Jim Meyering  <jim@meyering.net>
63096
63097         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
63098
63099 2007-01-02  Bruno Haible  <bruno@clisp.org>
63100
63101         * modules/settime (Include): Require timespec.h.
63102         * modules/nanosleep (Include): Likewise.
63103
63104 2007-01-01  Bruno Haible  <bruno@clisp.org>
63105
63106         * gnulib-tool (func_emit_copyright_notice): Bump year.
63107         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
63108
63109 2007-01-01  Bruno Haible  <bruno@clisp.org>
63110
63111         Improve support for OpenBSD.
63112         * build-aux/config.rpath (libname_spec): Export.
63113         (library_names_spec): New variable. Export.
63114         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
63115         library_names_spec from the config.rpath output. Locate shared library
63116         through the name pattern in library_names_spec.
63117
63118 2007-01-01  Eric Blake  <ebb9@byu.net>
63119
63120         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
63121
63122 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
63123
63124         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
63125         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
63126         assume the C locale, and avoid an "eval" that could cause trouble.
63127         Problem with SORT reported by Bob Proulx.
63128
63129         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
63130         Define.  Trivial patch from Henning Nielsen Lund, originally
63131         sent to bug-grep@gnu.org today.
63132
63133 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63134
63135         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
63136         struct stat.  Problem reported by Henning Nielsen Lund.
63137         * lib/acl.c: Include acl.h first, to check interface.  Don't
63138         bother to include sys/types.h and sys/stat.h again.
63139
63140 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63141
63142         Import the following change from libc; problem reported by
63143         Sven Verdoolaege.
63144
63145         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
63146
63147         [BZ #1373]
63148         * lib/argp.h: Remove __NTH for __argp_usage inline function.
63149
63150 2006-12-28  Jim Meyering  <jim@meyering.net>
63151
63152         * build-aux/announce-gen: Do not assume that the package
63153         builds any of tar.gz, tar.bz2, and .xdelta files.
63154         Suggestion from Simon Josefsson.
63155
63156 2006-12-28  Simon Josefsson  <simon@josefsson.org>
63157
63158         * modules/announce-gen: New file.
63159
63160 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
63161
63162         * lib/mbchar.h: Just include <wctype.h>; the wctype module
63163         handles its gotchas now.
63164         * lib/mbswidth.c: Likewise.
63165         * lib/wcwidth.h: Likewise.
63166         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
63167         and iswcntrl; the wctype module does this stuff now.
63168         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63169         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63170         * modules/mbchar (Depends-on): Add wctype.
63171         * modules/mbswidth (Depends-on): Likewise.
63172         * modules/wcwidth (Depends-on): Likewise.
63173
63174 2006-12-27  Eric Blake  <ebb9@byu.net>
63175
63176         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
63177         module uses more than what <wctype.h> is required to provide.
63178
63179 2006-12-26  Eric Blake  <ebb9@byu.net>
63180
63181         * gnulib-tool (sed_extract_prog): Avoid space-tab.
63182
63183 2006-12-26  Eric Blake  <ebb9@byu.net>
63184
63185         * modules/absolute-header: New module.
63186         * modules/fcntl (Depends-on): Depend on it.
63187         * modules/inttypes (Depends-on): Likewise.
63188         * modules/stdint (Depends-on): Likewise.
63189         * modules/sys_stat (Depends-on): Likewise.
63190         * modules/wctype (Depends-on): Likewise.
63191         * MODULES.html.sh (Support for building libraries and
63192         executables): Document it.
63193
63194 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63195
63196         * gnulib-tool (SED): Remove, undoing previous change.
63197         The problem was that it broke coreutils on Solaris, because
63198         "sed --posix" leaked into a makefile.
63199         (sed): New alias, if 'alias' and GNU sed.
63200
63201 2006-12-24  Jim Meyering  <jim@meyering.net>
63202
63203         Work around an fchownat bug in glibc-2.4:
63204         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
63205         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
63206         in spite of the -P option.
63207         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
63208         New macros.
63209         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
63210         * modules/openat (Files): Add lib/fchownat.c.
63211         * lib/openat.c (fchownat): Don't define here.  Move to...
63212         * lib/fchownat.c: ...this new file.
63213
63214 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63215
63216         Fix bug reported by Bruno Haible in
63217         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
63218         where quotearg.c didn't compile on Mac OS X 10.2 because it
63219         lacks <wchar.h> and wint_t.
63220         * lib/wctype_.h (__wctype_wint_t): New type.
63221         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
63222         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
63223         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
63224         Arg is now of type __wctype_wint_t, not wint_t.
63225         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
63226         substitute HAVE_WINT_T.
63227         * modules/wctype (Files): Add m4/wint_t.m4.
63228         (wctype.h): Substitute HAVE_WINT_T.
63229
63230 2006-12-23  Bruno Haible  <bruno@clisp.org>
63231
63232         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
63233
63234 2006-12-23  Bruno Haible  <bruno@clisp.org>
63235
63236         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
63237         S_ISLNK.
63238         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
63239         mingw.
63240
63241 2006-12-22  Bruno Haible  <bruno@clisp.org>
63242
63243         * lib/copy-file.c: Include acl.h.
63244         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
63245         Close the file descriptors only after being done with copy_acl.
63246         * modules/copy-file (Depends-on): Add acl.
63247
63248 2006-12-22  Bruno Haible  <bruno@clisp.org>
63249
63250         * gnulib-tool (SED): New variable.
63251         Use $SED instead of sed everywhere.
63252
63253 2006-12-22  Bruno Haible  <bruno@clisp.org>
63254
63255         * modules/no-c++: New file.
63256         * m4/no-c++.m4: New file.
63257         * MODULES.html.sh (Support for building libraries and executables):
63258         Add no-c++.
63259
63260 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
63261
63262         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63263         Include <limits.h>, and use its INT_MAX to rewrite the
63264         j loop so that it does not overflow 'int'.  Problem reported by
63265         Ralf Wildenhues in
63266         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
63267         Play it safe by shifting left by 1 rather than multiplying by 2,
63268         as GCC is less likely to optimize this away when the value
63269         is signed (when it assumes overflow leads to undefined behavior).
63270         Also, don't assume time_t uses two's complement.
63271
63272 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
63273
63274         * MODULES.html.sh: New module wctype.
63275         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
63276         * lib/fnmatch.c: Don't bother to include <wchar.h> before
63277         <wctype.h>, since the new wctype module should fix this.
63278         * lib/quotearg.c: Include <wctype.h> unconditionally, since
63279         the wctype module should arrange for it.
63280         * lib/regex_internal.h: Likewise.
63281         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
63282         since the wctype module should handle this now.
63283         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
63284         * modules/fnmatch (Depends-on): Add wctype.
63285         * modules/quotearg (Depends-on): Likewise.
63286         * modules/regex (Depends-on): Likewise.
63287
63288 2006-12-19  Bruno Haible  <bruno@clisp.org>
63289
63290         * lib/strdup.h [C++]: Wrap definitions in extern "C".
63291         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
63292
63293 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63294
63295         * modules/savewd (Depends-on): Fix dependency on fcntl.
63296
63297 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63298
63299         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
63300         conforms to C99, rather than relying on the user's environment
63301         setting of STDINT_H.
63302
63303 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63304         and Eric Blake  <ebb9@byu.net>
63305
63306         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
63307         This is more consistent with the other defines here.
63308         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
63309         Port to z/OS.  Problem reported by Paul Gilmartin.
63310         Change local vars to use gl_ prefix rather than ac_.
63311         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
63312         with other defines.
63313         * modules/double-slash-root: New module.
63314         * modules/dirname (Files): Remove m4/double-slash-root.m4.
63315         (Depends-on): Add double-slash-root.
63316         * MODULES.html.sh (File system functions): Mention new module.
63317
63318 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
63319
63320         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
63321         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
63322         This is for the benefit of gzip, which doesn't do i18n.
63323
63324 2006-12-12  Jim Meyering  <jim@meyering.net>
63325
63326         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
63327         Reported by Andreas Schwab <schwab@suse.de>.
63328
63329 2006-12-12  Bruno Haible  <bruno@clisp.org>
63330
63331         Merge these changes.
63332         2006-09-05  Bruno Haible  <bruno@clisp.org>
63333         * lib/iconvme.c (iconv_string): No need to save and restore errno when
63334         iconv_alloc succeeded.
63335         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
63336         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
63337         test for " && dest " at the end - dest is always != NULL there. Call
63338         iconv with 4xNULL arguments initially, to reset the state. Call iconv
63339         with 2xNULL arguments, also to flush the state storage. Handle the
63340         IRIX iconv behaviour. Realloc the final result, to throw away unused
63341         memory.
63342
63343 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
63344
63345         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
63346         and fchmodat unconditionally, since glibc 2.4 has them.
63347         Problem reported by Arkadiusz Miskiewicz.
63348
63349 2006-12-10  Bruno Haible  <bruno@clisp.org>
63350
63351         * gnulib-tool (func_import): Show the include files only for those
63352         modules that are copied and specified.
63353         Reported by Karl Berry.
63354
63355 2006-12-08  Jim Meyering  <jim@meyering.net>
63356
63357         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
63358         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
63359
63360         * build-aux/announce-gen: Add two new options, both optional:
63361         --bootstrap-tools=TOOL_LIST
63362               a comma-separated list of tools, e.g.,
63363               autoconf,automake,bison,gnulib
63364         --gnulib-snapshot-date=DATE
63365               if gnulib is in the bootstrap tool list,
63366               then report this as the snapshot date.
63367               If not specified, use the current date/time.
63368               If you specify a date here, be sure it's UTC.
63369
63370 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63371
63372         * tests/test-argp-2.sh: Fix test to match actual output.
63373         (func_compare): Fix sed script to be portable.
63374
63375 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
63376
63377         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
63378         workaround for this case.  It is not autoconfigured now; offhand
63379         it's hard to see how to autoconfigure it.
63380
63381 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63382
63383         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
63384         a directory that is about to be chowned.  Such a directory's
63385         initial file permissions should permit the owner only and this
63386         should not be changed until after the chown, since the group and
63387         other bits would be incorrect if they granted permission before
63388         the chown.
63389
63390         Fix porting problem for iswctype reported by Georg Schwarz in:
63391         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
63392         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
63393         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
63394         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
63395         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63396
63397 2006-12-03  Jim Meyering  <jim@meyering.net>
63398
63399         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
63400         p->fts_statp may not yet be defined.
63401         (fts_read): Instead, set it in the caller, once p->fts_statp is
63402         sure to be defined, and corresponds to a top-level directory.
63403         This bug made du -x fail.  Here's the coreutils test case:
63404         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
63405         Reported by Mike Frysinger.
63406
63407 2006-12-01  Jim Meyering  <jim@meyering.net>
63408
63409         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
63410         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
63411         Reported by Simon Josefsson.
63412
63413 2006-11-30  Jim Meyering  <jim@meyering.net>
63414
63415         * m4/warning.m4: Use the all-permissive copyright notice
63416         recommended by RMS (rather than LGPL).
63417         * m4/vararrays.m4: Likewise.
63418         * m4/flexmember.m4: Likewise.
63419
63420 2006-11-29  Bruno Haible  <bruno@clisp.org>
63421
63422         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63423         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
63424         using +=.
63425         Reported by Simon Josefsson <simon@josefsson.org>.
63426
63427 2006-11-28  James Youngman <jay@gnu.org>
63428
63429         * README: Advise users that they might find the bug-gnulib@gnu.org
63430         and autotools-announce@gnu.org mailing lists useful.
63431
63432 2006-11-28  Bruno Haible  <bruno@clisp.org>
63433
63434         * m4/ptrdiff_max.m4: Remove file.
63435
63436 2006-11-21  Bruno Haible  <bruno@clisp.org>
63437
63438         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
63439         _AC_COMPUTE_INT.
63440         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63441         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
63442         _AC_COMPUTE_INT.
63443         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63444         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
63445         _AC_COMPUTE_INT.
63446         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63447
63448 2006-11-28  Jim Meyering  <jim@meyering.net>
63449
63450         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
63451         warning from "gcc -Wshadow" about shadowing the builtin.
63452
63453 2006-11-27  Bruno Haible  <bruno@clisp.org>
63454
63455         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
63456         _AC_COMPUTE_INT.
63457         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63458
63459 2006-11-27  Bruno Haible  <bruno@clisp.org>
63460             Paul Eggert  <eggert@cs.ucla.edu>
63461
63462         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
63463
63464 2006-11-26  Bruno Haible  <bruno@clisp.org>
63465
63466         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63467         noinst_LTLIBRARIES.
63468
63469 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63470             Bruno Haible  <bruno@clisp.org>
63471
63472         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
63473         if compiling with "gcc -ansi".
63474
63475 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63476
63477         Fix some incompatibilities with gcc -ansi -pedantic.
63478         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
63479         if compiling pedantically with GCC, unless it's C99 or later.
63480         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
63481         it mishandles gcc -ansi -pedantic as well.
63482         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
63483         if gcc -pedantic.
63484         * lib/regexec.c (check_node_accept_bytes): Don't use auto
63485         initializers for struct if -pedantic, unless it's C99 or later.
63486
63487 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
63488
63489         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
63490         Don't close an fd more than once. Identical atimes indicate
63491         success, not failure.
63492
63493 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
63494
63495         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
63496
63497 2006-11-23  Jim Meyering  <jim@meyering.net>
63498
63499         * build-aux/announce-gen: New file.  From coreutils.
63500
63501 2006-11-22  Jim Meyering  <jim@meyering.net>
63502
63503         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
63504         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
63505         (fts_read): Use a temporary to narrow the overused st_size member
63506         before using it in a switch statement.  Reported by Matthew Woehlke.
63507
63508         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
63509         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63510
63511 2006-11-20  Bruno Haible  <bruno@clisp.org>
63512
63513         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
63514         changequote instead of pairs of brackets.
63515         Reported by Andreas Schwab <schwab@suse.de>.
63516
63517 2006-11-21  Jim Meyering  <jim@meyering.net>
63518
63519         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
63520         so as to remain compatible with older compilers.
63521         Patch from Michael Deutschmann.
63522
63523 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63524
63525         * MODULES.html.sh (File system functions): Add openat.
63526
63527         * lib/openat.h (rpl_fstatat): New macro, if
63528         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
63529         (fstatat): Define to rpl_fstatat under the same conditions,
63530         unless COMPILING_FSTATAT.
63531         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
63532         seems to have the bug.
63533         * lib/fstatat.c: New file.
63534         * modules/openat (Files): Add it.
63535
63536 2006-11-20  Bruno Haible  <bruno@clisp.org>
63537
63538         * Makefile: New file.
63539
63540 2006-11-20  Jim Meyering  <jim@meyering.net>
63541
63542         The beginnings of syntax-related checks for gnulib.
63543         * lib/Makefile: New file.
63544         * lib/t-idcache: New script.  Ensure that the two halves of
63545         idcache.c stay in sync.
63546
63547         * lib/idcache.c: Adjust comments in user- and group- portions to
63548         be more accurate, and to be consistent with one another.
63549
63550 2006-11-20  Jim Meyering  <jim@meyering.net>
63551
63552         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
63553         continue using the flexible array member (thus, this module performs
63554         half as many malloc calls), with the addition that...
63555         (getgroup, getuser): Consistently record a non-match via an empty
63556         "name" string, and map an empty string match to a NULL return value.
63557         * modules/idcache (Depends-on): Re-add flexmember.
63558
63559         * lib/idcache.c (getuser): Remove all uses of the register keyword.
63560         (getuidbyname, getgroup, getgidbyname): Likewise.
63561
63562         Use cleaner syntax: NULL rather than 0.
63563         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
63564
63565 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63566
63567         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
63568         It mishandled the case where the group was missing.
63569         Problem reported by Greg Schafer.
63570         * modules/idcache: Likewise.
63571
63572 2006-11-18  Jim Meyering  <jim@meyering.net>
63573
63574         * check-module (%exempt_header): Add exception for some
63575         conditionally-included headers.
63576
63577         * modules/i-ring (Depends-on): Add verify.
63578         (License): Change to LGPL.
63579
63580 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63581
63582         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
63583         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
63584         and inttostr.h.  Use snprintf rather than uinttostr, so that
63585         LGPLed code doesn't depend on GPLed.
63586
63587 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63588
63589         * modules/inline (License): Change from GPL to LGPL.
63590
63591 2006-11-17  Jim Meyering  <jim@meyering.net>
63592
63593         * modules/d-type (License): Switch to LGPL.
63594
63595 2006-11-15  Bruno Haible  <bruno@clisp.org>
63596
63597         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
63598
63599 2006-11-15  Eric Blake  <ebb9@byu.net>
63600
63601         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
63602         the module dependency.
63603
63604 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63605             Bruno Haible  <bruno@clisp.org>
63606
63607         * gnulib-tool (func_create_testdir): Add license consistency check.
63608
63609 2006-11-15  Eric Blake  <ebb9@byu.net>
63610
63611         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
63612         random "(cached)" in configure output.
63613
63614 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63615
63616         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
63617         test for conforming inttypes.h is both announced and cached.
63618
63619         * MODULES.html.sh (seen_modules, seen_files): New variables.
63620         (func_module): Rewrite to use a few less gnulib-tool and sed
63621         invocations.  Avoid a couple of quadratic algorithms for ...
63622         (missed_modules, missed_files): ... these, with ...
63623         (func_append, func_tmpdir): ... these new functions, from
63624         gnulib-tool.  Analogously, install traps for cleanup.
63625
63626         * tests/test-gc.c (main): Remove unused variables.
63627         * tests/test-read-file.c: Include stdlib.h, for 'free'.
63628
63629 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
63630
63631         * modules/inttostr (License): Change to LGPL.
63632
63633 2006-11-14  Eric Blake  <ebb9@byu.net>
63634
63635         * modules/tempname (License): Change to LGPL.
63636
63637 2006-11-14  Eric Blake  <ebb9@byu.net>
63638
63639         * doc/functions.texi (Function Portability): *printf functions on
63640         Cygwin now understand all POSIX size specifiers.
63641
63642 2006-11-14  Bruno Haible  <bruno@clisp.org>
63643
63644         * modules/c-ctype (License): Change to LGPL.
63645
63646 2006-11-12  Bruno Haible  <bruno@clisp.org>
63647
63648         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63649         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
63650         for GNOME libraries, for which the include files are installed in
63651         subdirectories of $prefix/include.
63652
63653 2006-11-12  Bruno Haible  <bruno@clisp.org>
63654
63655         * m4/lib-link.m4: Require at least autoconf-2.54.
63656         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
63657         name to underscores for the --with option.
63658
63659 2006-11-13  Bruno Haible  <bruno@clisp.org>
63660
63661         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
63662         the tests directory.
63663         Reported by Ralf Wildenhues.
63664
63665 2006-11-13  Bruno Haible  <bruno@clisp.org>
63666
63667         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
63668         (func_emit_initmacro_end): Undo the override here.
63669         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
63670         Works around the famous automake error in coreutils.
63671
63672 2006-11-13  Eric Blake  <ebb9@byu.net>
63673
63674         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
63675         element, not its node.
63676
63677 2006-11-12  Bruno Haible  <bruno@clisp.org>
63678
63679         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
63680         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
63681
63682 2006-11-12  Bruno Haible  <bruno@clisp.org>
63683
63684         * gnulib-tool: New option --local-symlink.
63685         (func_usage): Document it.
63686         (lsymbolic): New variable.
63687         (func_import, func_create_testdir): If --symlink was not specified,
63688         test whether --local-symlink was specified and the file comes from
63689         the local_gnulib_dir.
63690
63691 2006-11-12  Bruno Haible  <bruno@clisp.org>
63692
63693         * gnulib-tool (func_ln): New function.
63694         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
63695
63696 2006-11-12  Bruno Haible  <bruno@clisp.org>
63697
63698         Finish support for source files in subdirectories.
63699         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
63700         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
63701         AUTOMAKE_OPTIONS.
63702         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
63703
63704 2006-11-12  Bruno Haible  <bruno@clisp.org>
63705
63706         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63707         EXTRA_lib_SOURCES augmentation.
63708         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
63709
63710 2006-11-12  Jim Meyering  <jim@meyering.net>
63711
63712         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
63713         file descriptors.  This also averts a failure on systems with
63714         native openat support when a traversed directory lacks "x" access.
63715         * lib/fts_.h: Include "i-ring.h"
63716         (struct FTS) [fts_fd_ring]: New member.
63717         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
63718         (FCHDIR): Add parentheses.
63719         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
63720         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
63721         When descending, rather than simply closing the previous
63722         fts_cwd_fd value, push that file descriptor onto the ring.
63723         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
63724         (fts_open): Initialize the new fd_ring member.
63725         (fts_close): Clear the ring.
63726         (fts_safe_changedir): When possible, use our new fd_ring to skip
63727         the diropen and fstat and dev/ino comparison that would normally
63728         accompany a virtual `chdir ("..")'.
63729
63730         * modules/fts (Depends-on): Add i-ring.
63731         * modules/i-ring: New module.
63732         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
63733         * m4/i-ring.m4: New file.
63734
63735 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63736
63737         * gnulib-tool (func_create_testdir): Fix replacement of
63738         `build-aux' in configure.ac.  Run autotools in gltests
63739         subdirectory.
63740         (func_create_testdir, func_create_megatestdir, test): There is
63741         no need for '--force' in most autotool invocations in a new
63742         tree.  Actually fail the whole test if any of the tools, or the
63743         configure or make stages fail.
63744
63745         Sync from Automake.
63746         * build-aux/gnupload: Revert last change.  Add pointer to upload
63747         instructions of the GNU Maintenance Instructions.
63748         Suggestion by Karl Berry.
63749
63750 2006-11-10  Jim Meyering  <jim@meyering.net>
63751
63752         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
63753
63754 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63755
63756         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
63757         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
63758         (bind_textdomain_codeset) [! ENABLE_NLS]:
63759         Evaluate all the arguments.  That way, callers get compatible behavior
63760         if the arguments have side effects.  Also, it avoids some GCC
63761         diagnostics in some cases; Joel E. Denny reported problems when Bison
63762         was configured with --enable-gcc-warnigs.
63763
63764 2006-11-10  Jim Meyering  <jim@meyering.net>
63765
63766         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
63767         relevant options in CFLAGS (like -O, -fno-inline) are taken into
63768         account.
63769
63770 2006-11-10  Jim Meyering  <jim@meyering.net>
63771
63772         * modules/inline: New file/module.
63773         * modules/xalloc (Files): Remove m4/inline.m4.
63774         (Depends-on): Add inline, instead.
63775         * modules/oset: Likewise.
63776         * modules/list: Likewise.
63777
63778 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63779
63780         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
63781         Problem reported by Matthew Woehlke.
63782
63783 2006-11-09  Bruno Haible  <bruno@clisp.org>
63784
63785         * lib/tempname.c (gen_tempname): Remove variant that invokes
63786         __gen_tempname.
63787         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
63788         __gen_tempname.
63789
63790 2006-11-08  Bruno Haible  <bruno@clisp.org>
63791
63792         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
63793         to 'yes' instead of 'cross-compiling'.
63794
63795 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
63796
63797         * lib/quotearg.h (quotearg_free): New decl.
63798         * lib/quotearg.c (quotearg_free): New function.
63799         (slot0, nslots, slotvec0, slotvec):
63800         Now file-scope so that quotearg_free can get at them.
63801
63802 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63803
63804         Sync from Automake.
63805         * build-aux/gnupload: Add missing 'gnu' to example URL.
63806         Report by Karl Berry.
63807
63808 2006-11-08  Bruno Haible  <bruno@clisp.org>
63809
63810         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
63811         Suggested by Paul Eggert.
63812
63813 2006-11-08  Jim Meyering  <jim@meyering.net>
63814
63815         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
63816         It's already included if !_LIBC.
63817         (fts_safe_changedir): Add a comment.
63818
63819 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63820
63821         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
63822         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
63823         Matthew Woehlke.
63824
63825         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
63826         definitions up, to avoid colliding with change below.
63827         (static_inline) [HAVE_INLINE]: New macro.
63828         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
63829         Provide extern decls when !HAVE_INLINE.  Do not define unless
63830         static_inline is defined, either by us or by xmalloc.c.  Use
63831         static_inline rather than static inline.
63832         (XCALLOC): Optimize sizeof(T) = 1 case.
63833         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
63834
63835 2006-11-07  Bruno Haible  <bruno@clisp.org>
63836
63837         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
63838         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
63839         AC_C_INLINE.
63840         * modules/xalloc (Files): Add m4/inline.m4.
63841
63842 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63843
63844         * README: Fix typo.
63845         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
63846         (Miscellanous Notes): ...from this.
63847
63848 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63849
63850         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
63851         Mention that offsetof should be used instead of sizeof.
63852         From Bruno Haible.
63853
63854 2006-11-07  Bruno Haible  <bruno@clisp.org>
63855
63856         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
63857
63858 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63859
63860         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63861         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
63862         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63863         (gl_tree_add_before, gl_tree_add_after):
63864         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
63865         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
63866         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63867         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
63868         (gl_linked_add_after, gl_linked_add_at): Likewise.
63869         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
63870         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63871         (gl_tree_add_before, gl_tree_add_after): Likewise.
63872         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
63873         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
63874         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
63875
63876 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63877
63878         * lib/gl_oset.h: Use C comment style, not C++ comment style.
63879
63880 2006-11-06  Bruno Haible  <bruno@clisp.org>
63881
63882         * m4/inline.m4: New file.
63883         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
63884         * modules/list (Files): Add m4/inline.m4.
63885         * modules/oset (Files): Likewise.
63886
63887 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63888
63889         * lib/idcache.c: Include <stddef.h>, for offsetof.
63890         (struct userid.name): Change from char * to a flexible array member.
63891         All uses changed.
63892         * modules/idcache (Depends-on): Add flexmember.
63893
63894         * MODULES.html.sh (Core language properties): New module flexmember.
63895         * modules/flexmember, m4/flexmember.m4: New files.
63896
63897         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
63898         inline functions that are identical with the old xnmalloc_inline,
63899         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
63900         that we can avoid some unnecessary integer multiplications and
63901         divisions in the common case where the element size is known at
63902         compile time.
63903         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
63904         needed.
63905         (xnboundedmalloc): Remove.
63906         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
63907         arguments, for consistency with rest of this header.
63908         (xcharalloc): Rewrite using XNMALLOC.
63909         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
63910         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
63911         versions have been moved to lib/xalloc.h and renamed to be the
63912         non-*_inline versions.
63913         (xmalloc, xrealloc): Implement without reference to the xnmalloc
63914         and xnrealloc functions, since those functions are now inline and
63915         now call us.
63916         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
63917         renaming described above.
63918         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
63919         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
63920         captures the dependency in AC_C_INLINE.
63921
63922         New module canonicalize-lgpl, proposed by Charles Wilson in
63923         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
63924         with a few small changes afterwards.
63925         * MODULES.html.sh (File system functions): New module
63926         canonicalize-lgpl.
63927         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
63928         and canonicalize_file_name.
63929         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
63930         * modules/canonicalize-lgpl: New files.
63931
63932 2006-11-05  Bruno Haible  <bruno@clisp.org>
63933
63934         * gnulib-tool (func_import, func_create_testdir): Create directories
63935         also for files in subdirectories of lib/.
63936
63937 2006-11-05  Bruno Haible  <bruno@clisp.org>
63938
63939         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
63940         ANSI C compliant.
63941
63942 2006-11-03  Bruno Haible  <bruno@clisp.org>
63943
63944         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63945         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
63946         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
63947         (xnboundedmalloc): New inline function.
63948         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
63949         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
63950         xmalloc.
63951         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
63952         xmalloc.
63953         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
63954         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
63955         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
63956         xmalloc.
63957         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63958         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
63959         xmalloc.
63960         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
63961         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63962         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
63963         xmalloc.
63964         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63965         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
63966         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63967         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
63968         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
63969         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
63970         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
63971
63972 2006-11-03  Bruno Haible  <bruno@clisp.org>
63973
63974         * lib/c-ctype.h [C++]: Define functions without name mangling.
63975         * lib/fwriteerror.h [C++]: Likewise.
63976         * lib/gcd.h [C++]: Likewise.
63977         * lib/linebreak.h [C++]: Likewise.
63978
63979 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63980
63981         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63982         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63983         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63984         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63985         Check for functions and headers just once.
63986         Check for declaration of canonicalize_file_name.
63987         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63988
63989 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63990
63991         * gnulib-tool (func_import): Fix typo in actioncmd.
63992
63993 2006-11-02  Bruno Haible  <bruno@clisp.org>
63994
63995         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63996         newline sequence in the Makefile.am snippet as a space, like "make"
63997         does.
63998         Reported by Roger Persson <perrog@gmail.com>.
63999
64000 2006-11-01  Bruno Haible  <bruno@clisp.org>
64001
64002         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
64003         already declared in <string.h>.
64004         * lib/strcase.h (strncasecmp): Don't declare it if yes.
64005
64006 2006-11-01  Bruno Haible  <bruno@clisp.org>
64007
64008         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
64009         * lib/strcase.h: Include <string.h>.
64010         (strcasecmp): Define to rpl_strcasecmp here.
64011
64012 2006-11-01  Bruno Haible  <bruno@clisp.org>
64013
64014         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
64015
64016 2006-11-01  Eric Blake  <ebb9@byu.net>
64017
64018         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
64019
64020         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
64021
64022 2006-10-29  Bruno Haible  <bruno@clisp.org>
64023
64024         Make it compile in C++ mode.
64025         * lib/full-write.c (full_rw): Add a cast.
64026
64027 2006-11-01  Bruno Haible  <bruno@clisp.org>
64028
64029         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
64030         be POSIX compliant.
64031         Reported by Roger Persson <perrog@gmail.com>.
64032
64033 2006-11-01  Eric Blake  <ebb9@byu.net>
64034
64035         * lib/getopt_.h: Fix comments.
64036
64037 2006-10-31  Eric Blake  <ebb9@byu.net>
64038
64039         * modules/tmpdir (Depends-on): Add sys_stat.
64040         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
64041         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
64042         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
64043         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
64044         tempname.
64045
64046 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
64047
64048         Avoid some C++ diagnostics reported by Bruno Haible.
64049         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
64050         xmalloc.
64051         (quotearg_alloc): Use xcharalloc rather than xmalloc.
64052         (struct slotvec): Move to top level.
64053         (quotearg_n_options): Rewrite to avoid xmalloc.
64054         * lib/xalloc.h (xcharalloc): New function.
64055         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
64056         [defined __cplusplus]: Add function template that provides result
64057         type propagation.  This part of the change is from Bruno Haible.
64058
64059 2006-10-29  Bruno Haible  <bruno@clisp.org>
64060
64061         Make it compile in C++ mode.
64062         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
64063         * lib/strnlen1.c (strnlen1): Cast memchr result.
64064         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
64065         * lib/clean-temp.c (string_equals, string_hash): Add casts.
64066         (create_temp_dir): Rename local variable 'template'.
64067         (compile_csharp_using_sscli): Add cast.
64068         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
64069         * lib/findprog.c (find_in_path): Likewise.
64070         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
64071         * lib/wait-process.c (register_slave_subprocess): Likewise.
64072
64073 2006-10-22  Bruno Haible  <bruno@clisp.org>
64074
64075         * modules/tsearch: New file.
64076         * lib/tsearch.h: New file.
64077         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
64078         * m4/tsearch.m4: New file.
64079         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
64080
64081 2006-10-29  Eric Blake  <ebb9@byu.net>
64082
64083         * lib/arcfour.c: Assume config.h.
64084         * lib/arctwo.c: Likewise.
64085         * lib/base64.c: Likewise.
64086         * lib/check-version.c: Likewise.
64087         * lib/crc.c: Likewise.
64088         * lib/des.c: Likewise.
64089         * lib/gc-gnulib.c: Likewise.
64090         * lib/gc-libgcrypt.c: Likewise.
64091         * lib/gc-pbkdf2-sha1.c: Likewise.
64092         * lib/getaddrinfo.c: Likewise.
64093         * lib/getdelim.c: Likewise.
64094         * lib/getline.c: Likewise.
64095         * lib/hmac-md5.c: Likewise.
64096         * lib/hmac-sha1.c: Likewise.
64097         * lib/iconvme.c: Likewise.
64098         * lib/md2.c: Likewise.
64099         * lib/md4.c: Likewise.
64100         * lib/memxor.c: Likewise.
64101         * lib/read-file.c: Likewise.
64102         * lib/readline.c: Likewise.
64103         * lib/rijndael-alg-fst.c: Likewise.
64104         * lib/rijndael-api-fst.c: Likewise.
64105         * lib/xgetdomainname.c: Likewise.
64106
64107 2006-10-28  Eric Blake  <ebb9@byu.net>
64108
64109         * lib/xstrndup.c: Assume config.h.
64110
64111 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64112
64113         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
64114         stat-macros.h is now for our own macros, whereas stat_h is for
64115         macros in the <sys/stat.h> name space.
64116         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
64117         (STAT_MACROS_H): Remove.
64118         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
64119         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
64120         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
64121         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
64122         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
64123         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
64124         Move these macros to ...
64125         * lib/stat_.h: here.  Don't include stat-macros.h.
64126         * lib/canonicalize.c: Don't include stat-macros.h.
64127         * lib/chown.c: Likewise.
64128         * lib/euidaccess.c: Likewise.
64129         * lib/file-type.c: Likewise.
64130         * lib/filemode.c: Likewise.
64131         * lib/glob.c: Likewise.
64132         * lib/isapipe.c: Likewise.
64133         * lib/lchown.c: Likewise.
64134         * lib/lstat.c: Likewise.
64135         * lib/mkdir-p.c: Likewise.
64136         * lib/rmdir.c: Likewise.
64137         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
64138         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
64139         unless mkdir isn't declared, to speed up 'configure'.
64140         Always create sys/stat.h, since it's unlikely any real sys/stat.h
64141         would define all the S_* symbols.
64142         * modules/canonicalize (Depends-on):
64143         Depend on sys_stat, not stat-macros.
64144         * modules/chown: Likewise.
64145         * modules/euidaccess: Likewise.
64146         * modules/filemode: Likewise.
64147         * modules/file-type: Likewise.
64148         * modules/glob: Likewise.
64149         * modules/isapipe: Likewise.
64150         * modules/lchown: Likewise.
64151         * modules/lstat: Likewise.
64152         * modules/mkancesdirs: Likewise.
64153         * modules/rmdir: Likewise.
64154         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
64155         * modules/modechange: Likewise.
64156         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
64157         (configure.ac): Remove gl_STAT_MACROS.
64158         * modules/sys_stat (Depends-on): Remove stat-macros.
64159
64160 2006-10-27  Bruno Haible  <bruno@clisp.org>
64161
64162         * m4/signed.m4: Remove file.
64163         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
64164         invocation.
64165         * modules/vasnprintf (Files): Remove m4/signed.m4.
64166
64167 2006-10-27  Bruno Haible  <bruno@clisp.org>
64168
64169         Update to GNU gettext 0.16.
64170         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
64171         m4/inttypes-h.m4, m4/signed.m4.
64172         * m4/gettext.m4: Update to GNU gettext 0.16.
64173         * m4/intl.m4: New file, from GNU gettext.
64174         * m4/intldir.m4: New file, from GNU gettext.
64175         * config/srclist.txt: Update
64176
64177 2006-10-27  Eric Blake  <ebb9@byu.net>
64178
64179         * MODULES.html.sh: Document tempname.
64180         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
64181         dependencies.
64182         (Files): Move lib/tempname.c...
64183         * modules/tempname: ...to this new module.
64184         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
64185         (gl_PREREQ_TEMPNAME): Move...
64186         * m4/tempname.m4: ...to this new file.
64187         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
64188         * modules/sys_stat (Depends-on): Add stat-macros.
64189         * lib/stat_.h (includes): Pick up stat macros.
64190         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
64191         if stat macros are broken.
64192         * lib/tempname.c (includes): No need to include "stat-macros.h".
64193         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
64194         (direxists, __path_search) [!_LIBC]: Don't compile these in
64195         gnulib; the tmpdir module covers that.
64196         * lib/tempname.h: New file.
64197
64198 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64199
64200         * COPYING: Explain how gnulib-tool converts licence headers.
64201         Almost all wording by Eric Blake.
64202
64203 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
64204
64205         * lib/mbchar.h (is_basic_table): Make read-only.
64206         * lib/mbchar.c (is_basic_table): Likewise.
64207         Reported by John Darrington.
64208
64209 2006-10-25  Bruno Haible  <bruno@clisp.org>
64210
64211         * lib/progname.h (set_program_name): Undefine before defining.
64212
64213 2006-10-25  Bruno Haible  <bruno@clisp.org>
64214
64215         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
64216         false for non-gcc C++ compilers.
64217         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
64218
64219 2006-10-24  Bruno Haible  <bruno@clisp.org>
64220
64221         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
64222         iconv implementations like Irix iconv.
64223
64224 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64225
64226         * modules/vararrays: New file.
64227         * m4/vararrays.m4: New file, taken from diffutils.
64228         * MODULES.html.sh: New module vararrays.
64229
64230 2006-10-24  Karl Berry  <karl@gnu.org>
64231
64232         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
64233         Don't call GNU Unix.
64234
64235 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64236
64237         * users.txt: Add Libtool.
64238
64239         Sync from Libtool:
64240
64241         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64242
64243         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
64244         to gnulib's policy of including config.h unconditionally.
64245
64246 2006-10-24  Bruno Haible  <bruno@clisp.org>
64247
64248         * modules/wcwidth (Files): Add m4/wint_t.m4.
64249         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
64250         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
64251
64252 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
64255         to pacify GCC with some -W flags enabled.  Problem reported by
64256         Bruno Haible.
64257
64258 2006-10-24  Jim Meyering  <jim@meyering.net>
64259
64260         * MODULES.html.sh: Remove uinttostr.  It's not a module.
64261         Reported by Karl Berry.
64262
64263 2006-10-23  Bruno Haible  <bruno@clisp.org>
64264
64265         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
64266
64267 2006-10-24  Bruno Haible  <bruno@clisp.org>
64268
64269         * lib/gl_list.h: Use C comment style, not C++ comment style.
64270
64271 2006-10-23  Eric Blake  <ebb9@byu.net>
64272
64273         * lib/getaddrinfo.c (includes): Add missing include.
64274
64275 2006-10-23  Bruno Haible  <bruno@clisp.org>
64276             Paul Eggert  <eggert@cs.ucla.edu>
64277
64278         Ability to rename obstack_free.
64279         * lib/obstack.h (__obstack_free): New macro. Declare instead of
64280         obstack_free.
64281         (obstack_free): Invoke the __obstack_free macro.
64282         * lib/obstack.c (obstack_free): Use __obstack_free macro.
64283
64284 2006-10-23  Bruno Haible  <bruno@clisp.org>
64285             Paul Eggert  <eggert@cs.ucla.edu>
64286
64287         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
64288         __argc, __argv from the declaration. (They are defined as macros on
64289         mingw.)
64290
64291 2006-10-22  Bruno Haible  <bruno@clisp.org>
64292
64293         * doc/gnulib-intro.texi: New file.
64294         * doc/gnulib.texi: Include it.
64295
64296 2006-10-21  Bruno Haible  <bruno@clisp.org>
64297
64298         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
64299         "Introduction", "Miscellanous Notes", "Particular Modules".
64300
64301 2006-10-21  Bruno Haible  <bruno@clisp.org>
64302
64303         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64304         Change mostlyclean-local rule to avoid sh syntax error from bash
64305         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
64306
64307 2006-10-23  Jim Meyering  <jim@meyering.net>
64308
64309         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
64310         in place of snprintf.
64311
64312         * modules/inttostr (Files): Add lib/uinttostr.c.
64313         * lib/uinttostr.c (inttostr): New file/function.
64314         * lib/inttostr.h (uinttostr): Declare.
64315         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
64316         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64317         Add uinttostr.
64318         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
64319
64320 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
64321
64322         * lib/canonicalize.c (ELOOP): Define if not already defined.
64323         Problem reported by Bruno Haible in
64324         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
64325
64326 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
64327
64328         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
64329         Problem reported by Perry Smith and Ville Laurikari.
64330
64331         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
64332         uses.
64333
64334 2006-10-19  Bruno Haible  <bruno@clisp.org>
64335
64336         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
64337         for mingw.
64338
64339 2006-10-19  Bruno Haible  <bruno@clisp.org>
64340
64341         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
64342         Needed for mingw.
64343
64344 2006-10-19  Bruno Haible  <bruno@clisp.org>
64345
64346         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
64347
64348 2006-10-19  Bruno Haible  <bruno@clisp.org>
64349
64350         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
64351         it.
64352
64353 2006-10-19  Bruno Haible  <bruno@clisp.org>
64354
64355         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
64356         invocation.
64357
64358 2006-10-19  Bruno Haible  <bruno@clisp.org>
64359
64360         * gnulib-tool (func_create_testdir): Don't include ftruncate and
64361         mountlist by default.
64362
64363 2006-10-16  Bruno Haible  <bruno@clisp.org>
64364
64365         * lib/c-strstr.c: Include c-strstr.h.
64366
64367 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64368
64369         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
64370         in a slash.
64371
64372 2006-10-18  Bruno Haible  <bruno@clisp.org>
64373
64374         * lib/lock.h [C++]: Wrap definitions in extern "C".
64375
64376 2006-10-18  Bruno Haible  <bruno@clisp.org>
64377
64378         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
64379         gl_LIBOBJS list.
64380
64381 2006-10-18  Bruno Haible  <bruno@clisp.org>
64382
64383         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
64384
64385 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
64386
64387         * lib/xstrtol.h: Include gettext.h.
64388         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
64389         Problem reported by Eric Blake.
64390         * modules/xstrtol (Depends-on): Add gettext-h.
64391
64392 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
64393
64394         * lib/strftime.c (advance): New macro.
64395         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
64396         incomplete type, so you can't add 0 to it.  Problem and patch
64397         reported by Eelco Dolstra for dietlibc.
64398
64399 2006-10-18  Jim Meyering  <jim@meyering.net>
64400
64401         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
64402         type for a local, and rename it: s/up/user_proc/.
64403
64404 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64405
64406         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
64407         READ_UTMP_USER_PROCESS.
64408         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
64409
64410 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64411
64412         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
64413         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
64414
64415 2006-10-17  Eric Blake  <ebb9@byu.net>
64416
64417         * lib/sigprocmask.c (sigprocmask): Fix typo.
64418
64419         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
64420
64421         * modules/clean-temp (Makefile.am): Don't add to make output...
64422         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
64423         config.h.
64424
64425 2006-10-17  Bruno Haible  <bruno@clisp.org>
64426
64427         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
64428         differently if DEFAULT_TEXT_DOMAIN is set.
64429
64430 2006-10-16  Bruno Haible  <bruno@clisp.org>
64431
64432         * lib/clean-temp.c: Include fwriteerror.h.
64433
64434 2006-10-16  Bruno Haible  <bruno@clisp.org>
64435
64436         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
64437
64438 2006-10-16  Bruno Haible  <bruno@clisp.org>
64439
64440         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
64441         * lib/sigprocmask.h: Include <sys/types.h>.
64442         (sigset_t): Use the system's definition if present.
64443
64444 2006-10-17  Eric Blake  <ebb9@byu.net>
64445
64446         * lib/xvasprintf.c (includes): Assume config.h.
64447         * lib/xasprintf.c (includes): Likewise.
64448
64449 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64450
64451         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
64452         at least as wide as intmax_t.
64453
64454 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
64455
64456         (Imported from Automake.)
64457         * build-aux/gnupload: Update to version 1.1 of directive file.
64458
64459 2006-10-16  Eric Blake  <ebb9@byu.net>
64460
64461         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
64462         match Automake 1.10a.
64463
64464 2006-10-14  Bruno Haible  <bruno@clisp.org>
64465
64466         * modules/sigprocmask: New file.
64467         * lib/sigprocmask.h: New file.
64468         * lib/sigprocmask.c: New file.
64469         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
64470         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
64471         request sigprocmask.o.
64472         (gl_PREREQ_SIGPROCMASK): New macro.
64473         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
64474         (Depends-on): Add sigprocmask.
64475         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
64476         gt_SIGNALBLOCKING. Test for 'raise' only once.
64477         * lib/fatal-signal.c: Include sigprocmask.h.
64478         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
64479         unblock_fatal_signals): Define always.
64480         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64481         sigprocmask.
64482
64483 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64484
64485         Sync from Automake.
64486         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
64487         which incorrectly sets the mode of an existing destination
64488         directory.  In some cases the unpatched install-sh could do the
64489         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
64490         system.  We hope this is rare in practice, but it's clearly worth
64491         fixing.  Problem reported by Alex Unleashed in
64492         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
64493         Also, don't bother to check for -m bugs unless we're using -m;
64494         suggested by Stepan Kasal.
64495
64496 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64497
64498         Sync from Automake.
64499         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
64500         `-c' flag, so they appear at the same position as in %FASTDEP%
64501         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
64502         which ignores unknown options only after the first non-option.
64503         Bug report against M4 by Nelson H. F. Beebe.
64504
64505 2006-10-13  Jim Meyering  <jim@meyering.net>
64506
64507         Fix a bug in yesterday's change.
64508         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
64509         p->fts_statp->st_dev would be used uninitialized.
64510         Ensures that we always call fts_stat on the very first entry.
64511         Miklos Szeredi reported that find -xdev stopped working.
64512
64513 2006-10-12  Bruno Haible  <bruno@clisp.org>
64514
64515         * gnulib-tool (func_get_automake_snippet): Append an automatically
64516         computed EXTRA_DIST augmentation.
64517         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
64518         * modules/alloca-opt (Makefile.am): Likewise.
64519         * modules/allocsa (Makefile.am): Likewise.
64520         * modules/arcfour (Makefile.am): Likewise.
64521         * modules/arctwo (Makefile.am): Likewise.
64522         * modules/argmatch (Makefile.am): Likewise.
64523         * modules/argz (Makefile.am): Likewise.
64524         * modules/atexit (Makefile.am): Likewise.
64525         * modules/backupfile (Makefile.am): Likewise.
64526         * modules/byteswap (Makefile.am): Likewise.
64527         * modules/c-strtod (Makefile.am): Likewise.
64528         * modules/c-strtold (Makefile.am): Likewise.
64529         * modules/calloc (Makefile.am): Likewise.
64530         * modules/canon-host (Makefile.am): Likewise.
64531         * modules/canonicalize (Makefile.am): Likewise.
64532         * modules/chdir-long (Makefile.am): Likewise.
64533         * modules/chdir-safer (Makefile.am): Likewise.
64534         * modules/check-version (Makefile.am): Likewise.
64535         * modules/chown (Makefile.am): Likewise.
64536         * modules/cloexec (Makefile.am): Likewise.
64537         * modules/close-stream (Makefile.am): Likewise.
64538         * modules/closeout (Makefile.am): Likewise.
64539         * modules/crc (Makefile.am): Likewise.
64540         * modules/csharpexec (Makefile.am): Likewise.
64541         * modules/cycle-check (Makefile.am): Likewise.
64542         * modules/des (Makefile.am): Likewise.
64543         * modules/dev-ino (Makefile.am): Likewise.
64544         * modules/dirfd (Makefile.am): Likewise.
64545         * modules/dirname (Makefile.am): Likewise.
64546         * modules/dup2 (Makefile.am): Likewise.
64547         * modules/eealloc (Makefile.am): Likewise.
64548         * modules/error (Makefile.am): Likewise.
64549         * modules/euidaccess (Makefile.am): Likewise.
64550         * modules/exclude (Makefile.am): Likewise.
64551         * modules/exitfail (Makefile.am): Likewise.
64552         * modules/fcntl-safer (Makefile.am): Likewise.
64553         * modules/fcntl (Makefile.am): Likewise.
64554         * modules/file-type (Makefile.am): Likewise.
64555         * modules/fileblocks (Makefile.am): Likewise.
64556         * modules/filemode (Makefile.am): Likewise.
64557         * modules/filenamecat (Makefile.am): Likewise.
64558         * modules/fnmatch (Makefile.am): Likewise.
64559         * modules/fopen-safer (Makefile.am): Likewise.
64560         * modules/fpending (Makefile.am): Likewise.
64561         * modules/fprintftime (Makefile.am): Likewise.
64562         * modules/free (Makefile.am): Likewise.
64563         * modules/fsusage (Makefile.am): Likewise.
64564         * modules/ftruncate (Makefile.am): Likewise.
64565         * modules/fts (Makefile.am): Likewise.
64566         * modules/gc-arcfour (Makefile.am): Likewise.
64567         * modules/gc-des (Makefile.am): Likewise.
64568         * modules/gc-hmac-md5 (Makefile.am): Likewise.
64569         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
64570         * modules/gc-md4 (Makefile.am): Likewise.
64571         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64572         * modules/gc-sha1 (Makefile.am): Likewise.
64573         * modules/gc (Makefile.am): Likewise.
64574         * modules/getaddrinfo (Makefile.am): Likewise.
64575         * modules/getcwd (Makefile.am): Likewise.
64576         * modules/getdelim (Makefile.am): Likewise.
64577         * modules/getdomainname (Makefile.am): Likewise.
64578         * modules/getgroups (Makefile.am): Likewise.
64579         * modules/gethostname (Makefile.am): Likewise.
64580         * modules/gethrxtime (Makefile.am): Likewise.
64581         * modules/getline (Makefile.am): Likewise.
64582         * modules/getloadavg (Makefile.am): Likewise.
64583         * modules/getlogin_r (Makefile.am): Likewise.
64584         * modules/getndelim2 (Makefile.am): Likewise.
64585         * modules/getopt (Makefile.am): Likewise.
64586         * modules/getpagesize (Makefile.am): Likewise.
64587         * modules/getpass-gnu (Makefile.am): Likewise.
64588         * modules/getpass (Makefile.am): Likewise.
64589         * modules/getsubopt (Makefile.am): Likewise.
64590         * modules/gettime (Makefile.am): Likewise.
64591         * modules/gettimeofday (Makefile.am): Likewise.
64592         * modules/getugroups (Makefile.am): Likewise.
64593         * modules/getusershell (Makefile.am): Likewise.
64594         * modules/glob (Makefile.am): Likewise.
64595         * modules/group-member (Makefile.am): Likewise.
64596         * modules/hard-locale (Makefile.am): Likewise.
64597         * modules/hash (Makefile.am): Likewise.
64598         * modules/hmac-md5 (Makefile.am): Likewise.
64599         * modules/hmac-sha1 (Makefile.am): Likewise.
64600         * modules/human (Makefile.am): Likewise.
64601         * modules/idcache (Makefile.am): Likewise.
64602         * modules/imaxabs (Makefile.am): Likewise.
64603         * modules/imaxdiv (Makefile.am): Likewise.
64604         * modules/inet_ntop (Makefile.am): Likewise.
64605         * modules/inet_pton (Makefile.am): Likewise.
64606         * modules/intprops (Makefile.am): Likewise.
64607         * modules/inttostr (Makefile.am): Likewise.
64608         * modules/inttypes (Makefile.am): Likewise.
64609         * modules/isapipe (Makefile.am): Likewise.
64610         * modules/javaversion (Makefile.am): Likewise.
64611         * modules/lchmod (Makefile.am): Likewise.
64612         * modules/lchown (Makefile.am): Likewise.
64613         * modules/localcharset (Makefile.am): Likewise.
64614         * modules/long-options (Makefile.am): Likewise.
64615         * modules/lstat (Makefile.am): Likewise.
64616         * modules/malloc (Makefile.am): Likewise.
64617         * modules/mathl (Makefile.am): Likewise.
64618         * modules/mbchar (Makefile.am): Likewise.
64619         * modules/md2 (Makefile.am): Likewise.
64620         * modules/md4 (Makefile.am): Likewise.
64621         * modules/md5 (Makefile.am): Likewise.
64622         * modules/memcasecmp (Makefile.am): Likewise.
64623         * modules/memchr (Makefile.am): Likewise.
64624         * modules/memcmp (Makefile.am): Likewise.
64625         * modules/memcoll (Makefile.am): Likewise.
64626         * modules/memcpy (Makefile.am): Likewise.
64627         * modules/memmem (Makefile.am): Likewise.
64628         * modules/memmove (Makefile.am): Likewise.
64629         * modules/mempcpy (Makefile.am): Likewise.
64630         * modules/memrchr (Makefile.am): Likewise.
64631         * modules/memset (Makefile.am): Likewise.
64632         * modules/memxor (Makefile.am): Likewise.
64633         * modules/mkancesdirs (Makefile.am): Likewise.
64634         * modules/mkdir-p (Makefile.am): Likewise.
64635         * modules/mkdir (Makefile.am): Likewise.
64636         * modules/mkdtemp (Makefile.am): Likewise.
64637         * modules/mkstemp (Makefile.am): Likewise.
64638         * modules/mktime (Makefile.am): Likewise.
64639         * modules/modechange (Makefile.am): Likewise.
64640         * modules/mountlist (Makefile.am): Likewise.
64641         * modules/nanosleep (Makefile.am): Likewise.
64642         * modules/obstack (Makefile.am): Likewise.
64643         * modules/openat (Makefile.am): Likewise.
64644         * modules/pagealign_alloc (Makefile.am): Likewise.
64645         * modules/pathmax (Makefile.am): Likewise.
64646         * modules/physmem (Makefile.am): Likewise.
64647         * modules/poll (Makefile.am): Likewise.
64648         * modules/posixtm (Makefile.am): Likewise.
64649         * modules/posixver (Makefile.am): Likewise.
64650         * modules/putenv (Makefile.am): Likewise.
64651         * modules/quote (Makefile.am): Likewise.
64652         * modules/quotearg (Makefile.am): Likewise.
64653         * modules/raise (Makefile.am): Likewise.
64654         * modules/read-file (Makefile.am): Likewise.
64655         * modules/readline (Makefile.am): Likewise.
64656         * modules/readlink (Makefile.am): Likewise.
64657         * modules/readtokens (Makefile.am): Likewise.
64658         * modules/readutmp (Makefile.am): Likewise.
64659         * modules/realloc (Makefile.am): Likewise.
64660         * modules/regex (Makefile.am): Likewise.
64661         * modules/rename-dest-slash (Makefile.am): Likewise.
64662         * modules/rename (Makefile.am): Likewise.
64663         * modules/rijndael (Makefile.am): Likewise.
64664         * modules/rmdir (Makefile.am): Likewise.
64665         * modules/rpmatch (Makefile.am): Likewise.
64666         * modules/safe-read (Makefile.am): Likewise.
64667         * modules/safe-write (Makefile.am): Likewise.
64668         * modules/same-inode (Makefile.am): Likewise.
64669         * modules/same (Makefile.am): Likewise.
64670         * modules/save-cwd (Makefile.am): Likewise.
64671         * modules/savedir (Makefile.am): Likewise.
64672         * modules/setenv (Makefile.am): Likewise.
64673         * modules/settime (Makefile.am): Likewise.
64674         * modules/sha1 (Makefile.am): Likewise.
64675         * modules/sig2str (Makefile.am): Likewise.
64676         * modules/snprintf (Makefile.am): Likewise.
64677         * modules/stat-macros (Makefile.am): Likewise.
64678         * modules/stat-time (Makefile.am): Likewise.
64679         * modules/stdbool (Makefile.am): Likewise.
64680         * modules/stdint (Makefile.am): Likewise.
64681         * modules/stdlib-safer (Makefile.am): Likewise.
64682         * modules/stpcpy (Makefile.am): Likewise.
64683         * modules/stpncpy (Makefile.am): Likewise.
64684         * modules/strcase (Makefile.am): Likewise.
64685         * modules/strcasestr (Makefile.am): Likewise.
64686         * modules/strchrnul (Makefile.am): Likewise.
64687         * modules/strcspn (Makefile.am): Likewise.
64688         * modules/strdup (Makefile.am): Likewise.
64689         * modules/strerror (Makefile.am): Likewise.
64690         * modules/strftime (Makefile.am): Likewise.
64691         * modules/strndup (Makefile.am): Likewise.
64692         * modules/strnlen (Makefile.am): Likewise.
64693         * modules/strpbrk (Makefile.am): Likewise.
64694         * modules/strsep (Makefile.am): Likewise.
64695         * modules/strstr (Makefile.am): Likewise.
64696         * modules/strtod (Makefile.am): Likewise.
64697         * modules/strtoimax (Makefile.am): Likewise.
64698         * modules/strtok_r (Makefile.am): Likewise.
64699         * modules/strtol (Makefile.am): Likewise.
64700         * modules/strtoll (Makefile.am): Likewise.
64701         * modules/strtoul (Makefile.am): Likewise.
64702         * modules/strtoull (Makefile.am): Likewise.
64703         * modules/strtoumax (Makefile.am): Likewise.
64704         * modules/strverscmp (Makefile.am): Likewise.
64705         * modules/sys_socket (Makefile.am): Likewise.
64706         * modules/sys_stat (Makefile.am): Likewise.
64707         * modules/sysexits (Makefile.am): Likewise.
64708         * modules/time_r (Makefile.am): Likewise.
64709         * modules/timegm (Makefile.am): Likewise.
64710         * modules/timespec (Makefile.am): Likewise.
64711         * modules/tmpfile-safer (Makefile.am): Likewise.
64712         * modules/trim (Makefile.am): Likewise.
64713         * modules/unistd-safer (Makefile.am): Likewise.
64714         * modules/unlinkdir (Makefile.am): Likewise.
64715         * modules/unlocked-io (Makefile.am): Likewise.
64716         * modules/userspec (Makefile.am): Likewise.
64717         * modules/utime (Makefile.am): Likewise.
64718         * modules/utimecmp (Makefile.am): Likewise.
64719         * modules/utimens (Makefile.am): Likewise.
64720         * modules/vasnprintf (Makefile.am): Likewise.
64721         * modules/vasprintf (Makefile.am): Likewise.
64722         * modules/vsnprintf (Makefile.am): Likewise.
64723         * modules/xalloc (Makefile.am): Likewise.
64724         * modules/xgetcwd (Makefile.am): Likewise.
64725         * modules/xnanosleep (Makefile.am): Likewise.
64726         * modules/xreadlink (Makefile.am): Likewise.
64727         * modules/xstrtod (Makefile.am): Likewise.
64728         * modules/xstrtol (Makefile.am): Likewise.
64729         * modules/xstrtold (Makefile.am): Likewise.
64730         * modules/yesno (Makefile.am): Likewise.
64731         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
64732
64733 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64734
64735         * modules/error (Makefile.am): Distribute files through
64736         EXTRA_DIST, not lib_SOURCES.
64737
64738 2006-10-12  Eric Blake  <ebb9@byu.net>
64739
64740         * modules/error (Makefile.am): Distribute files in /lib.
64741         * modules/obstack (Makefile.am): Likewise.
64742
64743 2006-10-12  Bruno Haible  <bruno@clisp.org>
64744
64745         * modules/acl (Makefile.am): Distribute all files in lib/ through
64746         EXTRA_DIST.
64747         * modules/arcfour (Makefile.am): Likewise.
64748         * modules/arctwo (Makefile.am): Likewise.
64749         * modules/argmatch (Makefile.am): Likewise.
64750         * modules/argz (Makefile.am): Likewise.
64751         * modules/atexit (Makefile.am): Likewise.
64752         * modules/backupfile (Makefile.am): Likewise.
64753         * modules/c-strtod (Makefile.am): Likewise.
64754         * modules/c-strtold (Makefile.am): Likewise.
64755         * modules/calloc (Makefile.am): Likewise.
64756         * modules/canon-host (Makefile.am): Likewise.
64757         * modules/canonicalize (Makefile.am): Likewise.
64758         * modules/chdir-long (Makefile.am): Likewise.
64759         * modules/chdir-safer (Makefile.am): Likewise.
64760         * modules/check-version (Makefile.am): Likewise.
64761         * modules/chown (Makefile.am): Likewise.
64762         * modules/cloexec (Makefile.am): Likewise.
64763         * modules/close-stream (Makefile.am): Likewise.
64764         * modules/closeout (Makefile.am): Likewise.
64765         * modules/crc (Makefile.am): Likewise.
64766         * modules/cycle-check (Makefile.am): Likewise.
64767         * modules/des (Makefile.am): Likewise.
64768         * modules/dirfd (Makefile.am): Likewise.
64769         * modules/dirname (Makefile.am): Likewise.
64770         * modules/dup2 (Makefile.am): Likewise.
64771         * modules/euidaccess (Makefile.am): Likewise.
64772         * modules/exclude (Makefile.am): Likewise.
64773         * modules/exitfail (Makefile.am): Likewise.
64774         * modules/fcntl-safer (Makefile.am): Likewise.
64775         * modules/file-type (Makefile.am): Likewise.
64776         * modules/fileblocks (Makefile.am): Likewise.
64777         * modules/filemode (Makefile.am): Likewise.
64778         * modules/filenamecat (Makefile.am): Likewise.
64779         * modules/fnmatch (Makefile.am): Likewise.
64780         * modules/fopen-safer (Makefile.am): Likewise.
64781         * modules/fpending (Makefile.am): Likewise.
64782         * modules/fprintftime (Makefile.am): Likewise.
64783         * modules/free (Makefile.am): Likewise.
64784         * modules/fsusage (Makefile.am): Likewise.
64785         * modules/ftruncate (Makefile.am): Likewise.
64786         * modules/fts (Makefile.am): Likewise.
64787         * modules/gc (Makefile.am): Likewise.
64788         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64789         * modules/getaddrinfo (Makefile.am): Likewise.
64790         * modules/getcwd (Makefile.am): Likewise.
64791         * modules/getdelim (Makefile.am): Likewise.
64792         * modules/getdomainname (Makefile.am): Likewise.
64793         * modules/getgroups (Makefile.am): Likewise.
64794         * modules/gethostname (Makefile.am): Likewise.
64795         * modules/gethrxtime (Makefile.am): Likewise.
64796         * modules/getline (Makefile.am): Likewise.
64797         * modules/getloadavg (Makefile.am): Likewise.
64798         * modules/getlogin_r (Makefile.am): Likewise.
64799         * modules/getopt (Makefile.am): Likewise.
64800         * modules/getpass (Makefile.am): Likewise.
64801         * modules/getpass-gnu (Makefile.am): Likewise.
64802         * modules/getsubopt (Makefile.am): Likewise.
64803         * modules/gettime (Makefile.am): Likewise.
64804         * modules/gettimeofday (Makefile.am): Likewise.
64805         * modules/getugroups (Makefile.am): Likewise.
64806         * modules/getusershell (Makefile.am): Likewise.
64807         * modules/glob (Makefile.am): Likewise.
64808         * modules/group-member (Makefile.am): Likewise.
64809         * modules/hard-locale (Makefile.am): Likewise.
64810         * modules/hash (Makefile.am): Likewise.
64811         * modules/hmac-md5 (Makefile.am): Likewise.
64812         * modules/hmac-sha1 (Makefile.am): Likewise.
64813         * modules/human (Makefile.am): Likewise.
64814         * modules/idcache (Makefile.am): Likewise.
64815         * modules/imaxabs (Makefile.am): Likewise.
64816         * modules/imaxdiv (Makefile.am): Likewise.
64817         * modules/inet_ntop (Makefile.am): Likewise.
64818         * modules/inet_pton (Makefile.am): Likewise.
64819         * modules/inttostr (Makefile.am): Likewise.
64820         * modules/isapipe (Makefile.am): Likewise.
64821         * modules/lchown (Makefile.am): Likewise.
64822         * modules/long-options (Makefile.am): Likewise.
64823         * modules/lstat (Makefile.am): Likewise.
64824         * modules/malloc (Makefile.am): Likewise.
64825         * modules/mathl (Makefile.am): Likewise.
64826         * modules/mbchar (Makefile.am): Likewise.
64827         * modules/md2 (Makefile.am): Likewise.
64828         * modules/md4 (Makefile.am): Likewise.
64829         * modules/md5 (Makefile.am): Likewise.
64830         * modules/memcasecmp (Makefile.am): Likewise.
64831         * modules/memchr (Makefile.am): Likewise.
64832         * modules/memcmp (Makefile.am): Likewise.
64833         * modules/memcoll (Makefile.am): Likewise.
64834         * modules/memcpy (Makefile.am): Likewise.
64835         * modules/memmem (Makefile.am): Likewise.
64836         * modules/memmove (Makefile.am): Likewise.
64837         * modules/mempcpy (Makefile.am): Likewise.
64838         * modules/memrchr (Makefile.am): Likewise.
64839         * modules/memset (Makefile.am): Likewise.
64840         * modules/memxor (Makefile.am): Likewise.
64841         * modules/mkancesdirs (Makefile.am): Likewise.
64842         * modules/mkdir (Makefile.am): Likewise.
64843         * modules/mkdir-p (Makefile.am): Likewise.
64844         * modules/mkdtemp (Makefile.am): Likewise.
64845         * modules/mkstemp (Makefile.am): Likewise.
64846         * modules/mktime (Makefile.am): Likewise.
64847         * modules/modechange (Makefile.am): Likewise.
64848         * modules/mountlist (Makefile.am): Likewise.
64849         * modules/nanosleep (Makefile.am): Likewise.
64850         * modules/openat (Makefile.am): Likewise.
64851         * modules/pagealign_alloc (Makefile.am): Likewise.
64852         * modules/physmem (Makefile.am): Likewise.
64853         * modules/poll (Makefile.am): Likewise.
64854         * modules/posixtm (Makefile.am): Likewise.
64855         * modules/posixver (Makefile.am): Likewise.
64856         * modules/putenv (Makefile.am): Likewise.
64857         * modules/quote (Makefile.am): Likewise.
64858         * modules/quotearg (Makefile.am): Likewise.
64859         * modules/raise (Makefile.am): Likewise.
64860         * modules/read-file (Makefile.am): Likewise.
64861         * modules/readline (Makefile.am): Likewise.
64862         * modules/readlink (Makefile.am): Likewise.
64863         * modules/readtokens (Makefile.am): Likewise.
64864         * modules/readutmp (Makefile.am): Likewise.
64865         * modules/realloc (Makefile.am): Likewise.
64866         * modules/regex (Makefile.am): Likewise.
64867         * modules/rename (Makefile.am): Likewise.
64868         * modules/rename-dest-slash (Makefile.am): Likewise.
64869         * modules/rijndael (Makefile.am): Likewise.
64870         * modules/rmdir (Makefile.am): Likewise.
64871         * modules/rpmatch (Makefile.am): Likewise.
64872         * modules/safe-read (Makefile.am): Likewise.
64873         * modules/safe-write (Makefile.am): Likewise.
64874         * modules/same (Makefile.am): Likewise.
64875         * modules/save-cwd (Makefile.am): Likewise.
64876         * modules/savedir (Makefile.am): Likewise.
64877         * modules/setenv (Makefile.am): Likewise.
64878         * modules/settime (Makefile.am): Likewise.
64879         * modules/sha1 (Makefile.am): Likewise.
64880         * modules/sig2str (Makefile.am): Likewise.
64881         * modules/snprintf (Makefile.am): Likewise.
64882         * modules/stdlib-safer (Makefile.am): Likewise.
64883         * modules/stpcpy (Makefile.am): Likewise.
64884         * modules/stpncpy (Makefile.am): Likewise.
64885         * modules/strcase (Makefile.am): Likewise.
64886         * modules/strcasestr (Makefile.am): Likewise.
64887         * modules/strchrnul (Makefile.am): Likewise.
64888         * modules/strcspn (Makefile.am): Likewise.
64889         * modules/strdup (Makefile.am): Likewise.
64890         * modules/strerror (Makefile.am): Likewise.
64891         * modules/strftime (Makefile.am): Likewise.
64892         * modules/strndup (Makefile.am): Likewise.
64893         * modules/strnlen (Makefile.am): Likewise.
64894         * modules/strpbrk (Makefile.am): Likewise.
64895         * modules/strsep (Makefile.am): Likewise.
64896         * modules/strstr (Makefile.am): Likewise.
64897         * modules/strtod (Makefile.am): Likewise.
64898         * modules/strtoimax (Makefile.am): Likewise.
64899         * modules/strtok_r (Makefile.am): Likewise.
64900         * modules/strtol (Makefile.am): Likewise.
64901         * modules/strtoll (Makefile.am): Likewise.
64902         * modules/strtoul (Makefile.am): Likewise.
64903         * modules/strtoull (Makefile.am): Likewise.
64904         * modules/strtoumax (Makefile.am): Likewise.
64905         * modules/strverscmp (Makefile.am): Likewise.
64906         * modules/time_r (Makefile.am): Likewise.
64907         * modules/timegm (Makefile.am): Likewise.
64908         * modules/tmpfile-safer (Makefile.am): Likewise.
64909         * modules/unistd-safer (Makefile.am): Likewise.
64910         * modules/unlinkdir (Makefile.am): Likewise.
64911         * modules/userspec (Makefile.am): Likewise.
64912         * modules/utime (Makefile.am): Likewise.
64913         * modules/utimecmp (Makefile.am): Likewise.
64914         * modules/utimens (Makefile.am): Likewise.
64915         * modules/vasnprintf (Makefile.am): Likewise.
64916         * modules/vasprintf (Makefile.am): Likewise.
64917         * modules/vsnprintf (Makefile.am): Likewise.
64918         * modules/xalloc (Makefile.am): Likewise.
64919         * modules/xgetcwd (Makefile.am): Likewise.
64920         * modules/xnanosleep (Makefile.am): Likewise.
64921         * modules/xreadlink (Makefile.am): Likewise.
64922         * modules/xstrtod (Makefile.am): Likewise.
64923         * modules/xstrtol (Makefile.am): Likewise.
64924         * modules/xstrtold (Makefile.am): Likewise.
64925         * modules/yesno (Makefile.am): Likewise.
64926
64927 2006-10-12  Jim Meyering  <jim@meyering.net>
64928
64929         * m4/getloadavg.m4: Revert the change below.
64930
64931         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
64932         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
64933         fail with a symlink, which is what coreutils' ./bootstrap now
64934         creates by default.
64935
64936 2006-10-12  Bruno Haible  <bruno@clisp.org>
64937
64938         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
64939         mingw.
64940         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
64941         MSVC and mingw explicitly.
64942
64943 2006-10-11  Simon Josefsson  <jas@extundo.com>
64944             Bruno Haible  <bruno@clisp.org>
64945
64946         Add support for multiple gnulib-tool invocations in the scope of a
64947         single configure.ac file.
64948         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
64949         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
64950         with the same contents as the _LIBADD variable.
64951         (func_emit_initmacro_start, func_emit_initmacro_end,
64952         func_emit_initmacro_done): New functions.
64953         (func_import, func_create_testdir): Invoke them. Allow the identifiers
64954         gl_LIBOBJS and gl_LTLIBOBJS.
64955
64956 2006-10-11  Bruno Haible  <bruno@clisp.org>
64957
64958         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
64959         (func_create_testdir): Don't create po/Makefile.am, don't invoke
64960         autoreconf. Instead, invoke autopoint explicitly but move back the
64961         *.m4 files from gnulib.
64962
64963 2006-10-11  Bruno Haible  <bruno@clisp.org>
64964
64965         * gnulib-tool (func_usage): Make module names after --create-testdir
64966         optional.
64967         (func_create_testdir): If no module was specified, use nearly all
64968         modules.
64969
64970 2006-10-12  Jim Meyering  <jim@meyering.net>
64971
64972         Big performance improvement for fts-based tools that use FTS_NOSTAT.
64973         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64974         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64975         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64976         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64977         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64978         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64979         (fts_set_stat_required): New function.
64980         (fts_open): Defer the calls to fts_stat, if possible or requested.
64981         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64982         into fts_stat itself.
64983         (fts_read): Perform any required (deferred) fts_stat call.
64984         (fts_build): Likewise, for the directory we're about to open and read.
64985         In the readdir loop, carefully decide whether each entry will require
64986         an eventual call to fts_stat, using dirent.d_type info if available.
64987         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64988         a command line argument into this function.  Update all callers.
64989         Map a return value of FTS_DOT to FTS_D for a command line argument.
64990         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64991         Thanks to Miklos Szeredi for his tenacity and for the initial
64992         bug report about "find" failing on a FUSE-based file system.
64993
64994         * lib/fts.c (fts_open): Use consistent indentation.
64995
64996 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64997
64998         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64999         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
65000         reported by Jim Meyering.  All uses of cache variables renamed
65001         to match Autoconf's.
65002         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
65003         the other one.
65004
65005         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
65006         Fix misspelling in diagnostic.
65007
65008 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65009
65010         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
65011         defined.  Problem reported by Matthew Woehlke.
65012
65013         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
65014         Add support for Tandem NonStop R series.
65015         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
65016         Use new macro.
65017
65018         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
65019         (has_trailing_slash): Omit size arg; all callers changed.
65020         Omit 'inline', since it doesn't help performance and we'd
65021         need to configure it.
65022         Don't count //, ///, etc. as having a trailing slash.
65023         As a side effect, this removes a C99ism reported by Matthew Woehlke.
65024         (rpl_rename_dest_slash): On failure, use rename's errno rather
65025         than (in some cases) an incorrect or junk errno.
65026         Simplify code by removing need to compute length; this does
65027         cause it to make two passes instead of one over the file name,
65028         but it's worth it.
65029
65030         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
65031         change, since Autoconf's version may no longer be appropriate now
65032         that we are using CVS Autoconf's version.  Add support for Tandem.
65033
65034 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65035             Bruno Haible  <bruno@clisp.org>
65036
65037         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
65038         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
65039         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
65040         gl_AC_TYPE_LONG_LONG.
65041
65042         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
65043         instead of HAVE_LONG_LONG.
65044         * lib/printf-args.c (printf_fetchargs): Likewise.
65045         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
65046         * lib/vasnprintf.c (VASNPRINTF): Likewise.
65047         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
65048         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
65049         gl_AC_TYPE_LONG_LONG.
65050
65051 2006-10-11  Bruno Haible  <bruno@clisp.org>
65052
65053         * m4/longlong.m4: Add comments.
65054         * m4/ulonglong.m4: Likewise.
65055
65056 2006-10-10  Bruno Haible  <bruno@clisp.org>
65057
65058         Make it possible to #define stpcpy, strdup to aliases.
65059         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
65060         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
65061
65062 2006-10-10  Bruno Haible  <bruno@clisp.org>
65063
65064         Make it possible to #define gcd to an alias.
65065         * lib/gcd.c: Include config.h.
65066
65067 2006-10-10  Bruno Haible  <bruno@clisp.org>
65068
65069         Make it possible to #define c_isascii to an alias.
65070         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
65071         defined. Undefine the macros before defining them, to avoid gcc
65072         warnings.
65073         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
65074         define NO_C_CTYPE_MACROS early.
65075
65076 2006-10-10  Bruno Haible  <bruno@clisp.org>
65077
65078         Make it possible to #define set_program_name to an alias.
65079         * lib/progname.c: Don't undefine set_program_name; instead, undefine
65080         ENABLE_RELOCATABLE early.
65081
65082 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65083
65084         Port to Tandem NSK OSS, which has 64-bit signed int but at most
65085         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
65086         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
65087         More generally, don't assume that 64-bit signed int is available
65088         if unsigned int is, and vice versa.
65089         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
65090         unsigned symbols, not on their signed counterparts.
65091         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
65092         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
65093         (UINT64_C, UINTMAX_C):
65094         Likewise.
65095         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
65096         unsigned counterparts.
65097         (Have_long_long, Unsigned): New macros.
65098         (Int): Renamed from INT.
65099         (strtoimax): Use the new macros.
65100         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
65101         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
65102         * modules/inttypes (inttypes.h): Substitute
65103         HAVE_UNSIGNED_LONG_LONG_INT.
65104         * modules/stdint (stdint.h): Likewise.
65105         (Files): Add m4/ulonglong.m4.
65106
65107 2006-10-10  Bruno Haible  <bruno@clisp.org>
65108
65109         Fix a gcc -Wshadow warning.
65110         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
65111         to 'bucket'.
65112         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
65113         gl_linked_indexof_from_to): Likewise.
65114         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
65115         Likewise.
65116         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
65117         Likewise.
65118         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
65119         Reported by Eric Blake.
65120
65121 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
65122
65123         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
65124         for NetBSD.  Problem reported by Bruno Haible.
65125
65126 2006-10-09  Jim Meyering  <jim@meyering.net>
65127
65128         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
65129         Patch from Bruno Haible.
65130
65131 2006-10-09  Jim Meyering  <jim@meyering.net>
65132
65133         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
65134         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
65135         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
65136
65137 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65138
65139         Don't include <config.h> twice; this doesn't work in some cases,
65140         e.g., when config.h has "#define intmax_t long long int" and
65141         we include <config.h>, <inttypes.h>, <config.h> in that order.
65142         Problem reported by Matthew Woehlke in:
65143         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
65144         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
65145         * lib/fts-cycle.c: Don't include config.h.
65146         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
65147         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
65148         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
65149         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
65150         inttypes.h.
65151         * lib/xstrtoumax.c: Likewise.
65152         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
65153         __strtol and the like, so that this module is more like its siblings.
65154         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
65155         Remove; no longer needed now that we assume gnulib inttypes.h.
65156
65157 2006-10-08  Bruno Haible  <bruno@clisp.org>
65158
65159         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
65160         option.
65161
65162 2006-10-07  Jim Meyering  <jim@meyering.net>
65163
65164         * modules/inttypes (inttypes.h): Revert what seems to have been
65165         an inadvertent part of today's change: use "|", not "/" in the
65166         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
65167
65168 2006-10-07  Bruno Haible  <bruno@clisp.org>
65169
65170         * modules/sublist: New file.
65171
65172 2006-10-07  Bruno Haible  <bruno@clisp.org>
65173
65174         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
65175         * modules/argz (argz.h): Likewise.
65176         * modules/arpa_inet (arpa/inet.h): Likewise.
65177         * modules/byteswap (byteswap.h): Likewise.
65178         * modules/configmake (configmake.h): Likewise.
65179         * modules/fcntl (fcntl.h): Likewise.
65180         * modules/fnmatch (fnmatch.h): Likewise.
65181         * modules/getopt (getopt.h): Likewise.
65182         * modules/glob (glob.h): Likewise.
65183         * modules/inttypes (inttypes.h): Likewise.
65184         * modules/netinet_in (netinet/in.h): Likewise.
65185         * modules/poll (poll.h): Likewise.
65186         * modules/stdbool (stdbool.h): Likewise.
65187         * modules/stdint (stdint.h): Likewise.
65188         * modules/sys_select (sys/select.h): Likewise.
65189         * modules/sys_socket (sys/socket.h): Likewise.
65190         * modules/sys_stat (sys/stat.h): Likewise.
65191         * modules/sysexits (sysexits.h): Likewise.
65192         * modules/unistd (unistd.h): Likewise.
65193         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65194         Add a "DO NOT EDIT" comment to the generated file.
65195         (func_import): Likewise for gnulib-comp.m4.
65196
65197 2006-10-07  Bruno Haible  <bruno@clisp.org>
65198
65199         * lib/gl_sublist.h: New file.
65200         * lib/gl_sublist.c: New file.
65201
65202 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65203
65204         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
65205         name (relative to the original working directory) and the file
65206         name component (relative to the temporary working directory).  All
65207         callers changed.
65208         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
65209         * lib/mkdir-p.c (make_dir_parents): Likewise.
65210         * lib/mkdir-p.h (make_dir_parents): Likewise.
65211
65212 2006-10-06  Eric Blake  <ebb9@byu.net>
65213
65214         Define several macros for use by the clean-temp module.
65215         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
65216         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
65217         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
65218
65219         * lib/clean-temp.h (close_stream_temp): New declaration.
65220         * lib/clean-temp.c (includes): Pull in headers according to what
65221         other modules are in use.
65222         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
65223
65224 2006-10-06  Bruno Haible  <bruno@clisp.org>
65225
65226         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
65227         instead of fopen, fwriteerror.
65228
65229 2006-10-06  Bruno Haible  <bruno@clisp.org>
65230
65231         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
65232         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
65233         int.
65234         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
65235         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
65236         Return an error indicator.
65237         Suggested by Eric Blake.
65238
65239 2006-10-06  Bruno Haible  <bruno@clisp.org>
65240
65241         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
65242         Reported by Eric Blake.
65243
65244 2006-10-06  Bruno Haible  <bruno@clisp.org>
65245
65246         * modules/closeout (Description): Mention stderr too.
65247
65248 2006-10-06  Bruno Haible  <bruno@clisp.org>
65249         and Paul Eggert  <eggert@cs.ucla.edu>
65250
65251         * lib/closeout.c (close_stdout): Also close stderr.
65252         * lib/closeout.h: Update comment.
65253
65254 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65255
65256         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
65257         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
65258         * lib/dirchownmod.c: Include lchown.h.
65259         * lib/lchown.c: Don't include files that lchown.h now includes.
65260         Don't declare chown, since lchown.h now does that.
65261         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
65262         (lchown): Define to rpl_chown if lchown is declared but
65263         does not exist.  Declare using a prototype if lchown is not
65264         declared.  Add a copyright notice.
65265         * lib/mkstemp.h: Include <unistd.h>.
65266         * lib/openat.c: Include lchown.h.
65267
65268         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
65269         we now test for that separately.
65270         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
65271         rather than O_NOFOLLOW, when testing whether it's possible to
65272         avoid a race condition reliably.
65273         * lib/savewd.c (savewd_chdir): Likewise.
65274
65275         Remove macros that are no longer needed now that stdint.h is
65276         reliable.
65277         * lib/fsusage.c (UINTMAX_MAX): Remove.
65278         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
65279         * lib/utimecmp.c (SIZE_MAX): Remove.
65280
65281         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
65282
65283         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
65284         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
65285         O_NOATIME works.
65286
65287 2006-10-05  Bruno Haible  <bruno@clisp.org>
65288
65289         * lib/gl_list.h (gl_sortedlist_search_from_to,
65290         gl_sortedlist_indexof_from_to): New declarations.
65291         (gl_list_implementation): New fields sortedlist_search_from_to,
65292         sortedlist_indexof_from_to.
65293         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
65294         inline functions.
65295         * lib/gl_list.c (gl_sortedlist_search_from_to,
65296         gl_sortedlist_indexof_from_to): New functions.
65297         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
65298         function.
65299         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
65300         (gl_array_sortedlist_search_from_to): New function.
65301         (gl_array_list_implementation): Update.
65302         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
65303         function.
65304         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
65305         (gl_carray_sortedlist_search_from_to): New function.
65306         (gl_carray_list_implementation): Update.
65307         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
65308         gl_linked_sortedlist_indexof_from_to): New functions.
65309         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
65310         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
65311         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
65312         gl_tree_sortedlist_indexof_from_to): New functions.
65313         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
65314         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
65315         Update.
65316         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
65317         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
65318         Update.
65319
65320 2006-10-05  Bruno Haible  <bruno@clisp.org>
65321
65322         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
65323         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
65324         (struct gl_list_implementation): Add fields search_from_to,
65325         indexof_from_to. Remove fields search, indexof.
65326         (gl_list_search): Use the search_from_to method.
65327         (gl_list_search_from, gl_list_search_from_to): New functions.
65328         (gl_list_indexof): Use the indexof_from_to method.
65329         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
65330         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
65331         (gl_list_search_from, gl_list_search_from_to): New functions.
65332         (gl_list_indexof): Use the indexof_from_to method.
65333         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
65334         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
65335         gl_array_indexof. Add start_index, end_index arguments.
65336         (gl_array_search_from_to): Renamed from gl_array_search. Add
65337         start_index, end_index arguments.
65338         (gl_array_remove, gl_array_list_implementation): Update.
65339         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
65340         gl_carray_indexof. Add start_index, end_index arguments.
65341         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
65342         start_index, end_index arguments.
65343         (gl_carray_remove, gl_carray_list_implementation): Update.
65344         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
65345         gl_linked_search. Add start_index, end_index arguments.
65346         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
65347         start_index, end_index arguments.
65348         (gl_linked_remove): Update.
65349         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
65350         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
65351         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
65352         field to 'size_t'.
65353         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
65354         gl_tree_search. Add start_index, end_index arguments.
65355         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
65356         start_index, end_index arguments.
65357         (gl_tree_remove): Update.
65358         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
65359         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
65360         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
65361         function.
65362         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
65363         gl_tree_search. Add start_index, end_index arguments.
65364         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
65365         start_index, end_index arguments.
65366         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
65367         Update.
65368         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
65369
65370 2006-10-05  Bruno Haible  <bruno@clisp.org>
65371
65372         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
65373
65374         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
65375         fwriteerror_temp): New declarations.
65376         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
65377         (descriptors): New variable.
65378         (cleanup): First, close the descriptors.
65379         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
65380         fclose_temp, fwriteerror_temp): New functions.
65381
65382 2006-10-04  Jim Meyering  <jim@meyering.net>
65383
65384         * lib/fts.c (fts_open): Tiny comment change.
65385
65386 2006-10-04  Bruno Haible  <bruno@clisp.org>
65387
65388         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
65389         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
65390         gl_LOCK_BODY.
65391         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
65392         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
65393         gl_LOCK_EARLY_BODY.
65394         (gl_LOCK): Require gl_LOCK_BODY.
65395
65396 2006-10-04  Bruno Haible  <bruno@clisp.org>
65397
65398         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
65399         (gl_oset_search_atleast): New declaration.
65400         (struct gl_oset_implementation): Add field 'search_atleast'.
65401         (gl_oset_search_atleast): New inline function.
65402         * lib/gl_oset.c (gl_oset_search_atleast): New function.
65403         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
65404         (gl_array_oset_implementation): Update.
65405         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
65406         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
65407         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
65408
65409 2006-10-04  Bruno Haible  <bruno@clisp.org>
65410
65411         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
65412
65413 2006-10-03  Bruno Haible  <bruno@clisp.org>
65414
65415         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
65416         from gl_avltreehash_list_implementation.
65417
65418 2006-10-03  Bruno Haible  <bruno@clisp.org>
65419
65420         * lib/gl_oset.c (gl_oset_add): Fix return type.
65421
65422 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
65423
65424         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
65425
65426 2006-10-02  Eric Blake  <ebb9@byu.net>
65427
65428         * modules/strnlen (Depends-on): Add extensions.
65429
65430 2006-10-02  Eric Blake  <ebb9@byu.net>
65431
65432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
65433         definition in 2.60+.
65434
65435 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
65436
65437         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
65438         checks.
65439
65440 2006-10-02  Bruno Haible  <bruno@clisp.org>
65441
65442         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
65443         to the AUTOMAKE_OPTIONS.
65444         Reported by Jim Meyering.
65445
65446 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65447
65448         Work around bug in Solaris 10 /proc file system:
65449         /proc/self/fd/NNN/.. isn't the parent directory of
65450         the directory whose file descriptor is NNN.  This needs to
65451         be worked around at run time, not compile time, since a
65452         program might be built on Solaris 8, where things work, and
65453         run on Solaris 10.
65454         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
65455         to use the following interface instead:
65456         (OPENAT_BUFFER_SIZE): New macro.
65457         (openat_proc_name): New function.
65458         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
65459         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
65460         Likewise.
65461         * lib/openat-proc.c: New file.
65462         * modules/openat (Files): Add lib/openat-proc.c.
65463         (Depends-on): Add same-inode, stdbool.
65464         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
65465
65466 2006-09-29  Bruno Haible  <bruno@clisp.org>
65467
65468         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
65469         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
65470         argument. Set stdout_closed before testing for ferror, not after.
65471         (fwriteerror, fwriteerror_no_ebadf): New functions.
65472
65473 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65474
65475         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
65476
65477 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
65478
65479         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
65480         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
65481
65482 2006-09-28  Jim Meyering  <jim@meyering.net>
65483
65484         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
65485         Include <unistd.h>.
65486
65487 2006-09-28  Bruno Haible  <bruno@clisp.org>
65488
65489         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
65490         * modules/linkedhash-list (Depends-on): Likewise.
65491         * modules/rbtreehash-list (Depends-on): Likewise.
65492
65493 2006-09-28  Bruno Haible  <bruno@clisp.org>
65494
65495         * lib/strndup.h: Simplify the redefinition of strndup.
65496         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
65497         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
65498
65499 2006-09-28  Bruno Haible  <bruno@clisp.org>
65500
65501         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
65502         * lib/gl_linkedhash_list.c: Likewise.
65503         * lib/gl_rbtreehash_list.c: Likewise.
65504
65505 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65506
65507         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
65508         getaddrinfo.
65509
65510         * lib/__fpending.h: Don't include <stdio_ext.h> unless
65511         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
65512         it causes <stdio_ext.h> to cause a compile-time error.
65513         Problem reported by Nelson H. F. Beebe.
65514         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
65515         of HAVE_DECL___PENDING.
65516
65517         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
65518         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
65519         declaration.
65520
65521 2006-09-27  Jim Meyering  <jim@meyering.net>
65522
65523         This file could end up with a definition for a function
65524         named __strndup, rather than rpl_strndup on a system with
65525         incomplete weak_alias support.
65526         * lib/strndup.c (strndup): Rename from __strndup.
65527         Remove #defines that used to map __strndup to strndup.
65528         Don't use K&R prototypes.
65529         Remove LIBC-related code, since this file is not sync'd with glibc.
65530         * lib/strndup.h: Revamp, accordingly.
65531         * m4/strndup.m4: Modernize.
65532
65533 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65534
65535         * modules/savewd (Depends-on): Add 'raise'.
65536         * lib/savewd.c: Include <signal.h>, for 'raise'.
65537
65538 2006-09-26  Jim Meyering  <jim@meyering.net>
65539
65540         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
65541         when we detect Darwin 8.7.0's acl_get_file bug.
65542         Rearrange to perform the new (below) run-test while $LIBS
65543         contains any acl-related library.  Set USE_ACL at the end.
65544         (gl_ACL_GET_FILE): New function.
65545
65546 2006-09-26  Eric Blake  <ebb9@byu.net>
65547
65548         * lib/verror.c: Include <config.h> unconditionally.
65549
65550 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
65551
65552         * modules/clock-time (Maintainer): Add self.
65553         * modules/getlogin_r (Depends-on): Add extensions.
65554
65555 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65556
65557         * modules/clock-time: New module.
65558         * modules/nanosleep (Depends-on): Add clock-time.
65559         * modules/gethrxtime (Depends-on): Likewise.
65560         * modules/gettime (Depends-on): Likewise.
65561         * modules/settime (Depends-on): Likewise.
65562
65563         * modules/fts-lgpl: Depend on openat.
65564         * modules/mkancesdirs: Depend on savewd.
65565         * modules/mkdir-p: Likewise.
65566
65567 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65568
65569         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
65570
65571         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
65572         `gl_have_arbitrary_file_name_length_limit' to
65573         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
65574         actually works between configure runs.
65575
65576 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65577             Bruno Haible  <bruno@clisp.org>
65578
65579         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
65580
65581 2006-09-25  Jim Meyering  <jim@meyering.net>
65582
65583         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
65584         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
65585
65586 2006-09-25  Eric Blake  <ebb9@byu.net>
65587
65588         * gnulib-tool (func_import, func_create_testdir): Fix typos in
65589         exec's in 2006-09-18 patch when shuffling fds.
65590
65591 2006-09-25  Bruno Haible  <bruno@clisp.org>
65592
65593         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
65594         Reported by Jim Meyering.
65595
65596 2006-09-24  Jim Meyering  <jim@meyering.net>
65597
65598         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
65599         compare a pointer against a literal "0".  That caused failures with
65600         at least HP-UX's hpcc.
65601
65602 2006-09-22  Simon Josefsson  <jas@extundo.com>
65603
65604         * modules/gc-sha1:
65605         * modules/gc-md4:
65606         * modules/gc-hmac-sha1:
65607         * modules/gc-hmac-md5:
65608         * modules/gc-des:
65609         * modules/gc-arcfour: Distribute more files.
65610
65611 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65612
65613         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
65614         (gl_linked_iterator_from_to): Initialize struct completely.
65615         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
65616         (gl_tree_iterator_from_to): Likewise
65617         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
65618         * lib/gl_array_list.c [lint] (gl_array_iterator)
65619         (gl_array_iterator_from_to): Likewise.
65620         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
65621         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
65622         (gl_carray_iterator_from_to): Likewise.
65623
65624         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
65625         * lib/md4.c (md4_process_block): Remove unused variable.
65626         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
65627         parentheses for clarity.
65628
65629 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65630
65631         * modules/bison-i18n (Depends-on): Add gettext.
65632
65633 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65634
65635         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
65636         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
65637         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
65638         also add missing comma that caused broken test.
65639         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
65640         stdlib.h, for `abort'.
65641         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
65642         variables.
65643         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
65644         include unistd.h if present, for `rmdir'.
65645         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
65646         variables.
65647         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
65648         in the process include standard headers for prototypes.
65649         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
65650         gets declared on GNU/Linux.
65651         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
65652         unistd.h, for `rmdir'.
65653         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
65654
65655         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
65656         always true.
65657         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
65658
65659         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
65660
65661 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65662
65663         * gnulib-tool (func_version): Create output all at once.  This
65664         may help avoid triggering unnecessary SIGPIPEs, and at any
65665         rate it doesn't hurt.
65666
65667 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65668             Bruno Haible  <bruno@clisp.org>
65669
65670         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
65671         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65672         * m4/signed.m4 (bh_C_SIGNED): Likewise.
65673
65674         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
65675         (gl_FUNC_VASPRINTF): Invoke it.
65676
65677 2006-09-22  Bruno Haible  <bruno@clisp.org>
65678
65679         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
65680         getloadavg.c as first argument.
65681
65682 2006-09-22  Bruno Haible  <bruno@clisp.org>
65683
65684         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
65685         at the beginning of the gl_INIT macro.
65686         * modules/getloadavg (configure.ac): Pass $gl_source_base to
65687         gl_GETLOADAVG.
65688
65689 2006-09-22  Bruno Haible  <bruno@clisp.org>
65690
65691         * gnulib-tool (func_create_megatestdir): Don't include the config-h
65692         module.
65693         Suggested by Ralf Wildenhues.
65694
65695 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65696
65697         Import this patch from libc:
65698
65699         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
65700
65701         * lib/regex_internal.c (re_string_reconstruct): Handle
65702         offset < pstr->valid_raw_len && pstr->offsets_needed case.
65703         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
65704         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
65705         re_string_context_at.
65706
65707         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
65708         now requires it.
65709         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
65710         gl_REGEX now does it for us.
65711         (gl_REGEX): Add test taken from
65712         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
65713
65714         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
65715         Check that large offsets work.  Modernize Autoconf usages.
65716         Prefer "yes" to mean a good thing rather than a bad.
65717         Don't put "#define mkstemp" in config.h, as this might interfere
65718         with standard system headers that "#define mkstemp mkstemp64".
65719
65720         * modules/mkstemp (Depends-on): Add extensions, so that
65721         mkstemp is visible on some platforms.
65722         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
65723         (Include): Change to "mkstemp.h" from <stdlib.h>.
65724         (Files): Add mkstemp.h.
65725
65726         * lib/mkstemp.h: New file, since some standard headers
65727         #define mkstemp.
65728         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
65729         Include "mkstemp.h".
65730         Make the _LIBC code resemble glibc original more,
65731         e.g., use K&R style.
65732         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
65733         (mkstemp): Remove, since mkstemp.h does this for us.
65734         * lib/stdlib--.h: Include mkstemp.h.
65735
65736         Import this patch from libc:
65737
65738         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65739
65740         * lib/tempname.c (__gen_tempname): Change attempts_min
65741         into a macro.  Use preprocessor to decide how to initialize
65742         attempts [Coverity CID 67].
65743
65744 2006-09-20  Bruno Haible  <bruno@clisp.org>
65745
65746         * lib/mkdtemp.c: Import from libc.
65747         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65748                 * sysdeps/posix/tempname.c (__gen_tempname): Change
65749                 attempts_min into a macro.  Use preprocessor to decide how to
65750                 initialize attempts [Coverity CID 67].
65751         2001-11-27  Paul Eggert  <eggert@twinsun.com>
65752                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
65753                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
65754
65755 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65756
65757         * gnulib-tool (func_exit): New function, to allow to pass the
65758         exit status portably through the trap.  Use everywhere.
65759         (--help, --version): Signal a write error.
65760         (trap): catch SIGPIPE, for write errors.
65761         Exit at the end of the trap, with the correct exit status.
65762
65763 2006-09-19  Karl Berry  <karl@gnu.org>
65764
65765         * doc/gnulib.texi: note about the license texinfo files.
65766
65767 2006-09-19  Eric Blake  <ebb9@byu.net>
65768
65769         * gnulib-tool: Avoid space-tab.
65770
65771 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65772
65773         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
65774         that prevented coreutils 6.1 from building.  Problem reported
65775         by Petter Reinholdtsen.
65776
65777 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65778
65779         * gnulib-tool (avoidlist): Fix typo that broke options like
65780         --avoid=lock that are used by coreutils bootstrap.
65781
65782 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
65783
65784         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
65785         more systematically.
65786
65787 2006-09-18  Jim Meyering  <jim@meyering.net>
65788
65789         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
65790
65791 2006-09-18  Bruno Haible  <bruno@clisp.org>
65792
65793         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
65794
65795 2006-09-18  Bruno Haible  <bruno@clisp.org>
65796
65797         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
65798         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
65799         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
65800         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
65801         * m4/gettext.m4: Require autoconf >= 2.52.
65802         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
65803         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
65804         of gl_cv_header_inttypes_h.
65805
65806 2006-09-18  Bruno Haible  <bruno@clisp.org>
65807
65808         * lib/javaversion.c: Include configmake.h.
65809
65810 2006-09-18  Bruno Haible  <bruno@clisp.org>
65811
65812         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
65813         avoid that the while loops be executed in a subshell.
65814
65815 2006-09-18  Bruno Haible  <bruno@clisp.org>
65816
65817         * MODULES.html.sh (func_module): Break long lines.
65818         Suggested by Bruce Korb <bkorb@gnu.org>.
65819
65820 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65821
65822         Speed up by a factor of 1.12.
65823         * gnulib-tool (nl): New variable.
65824         (func_import): Rewrite include directive extraction to only read each
65825         directive once.
65826
65827 2006-09-17  Bruno Haible  <bruno@clisp.org>
65828
65829         * modules/javaversion (Makefile.am): Remove DEFS setting.
65830         (Depends-on): Add configmake, for PKGDATADIR definition.
65831
65832 2006-09-17  Bruno Haible  <bruno@clisp.org>
65833
65834         * gnulib-tool (func_create_testdir): Rewrite all files at once.
65835
65836 2006-09-17  Bruno Haible  <bruno@clisp.org>
65837
65838         * gnulib-tool (func_append): New function, stolen from libtool.m4.
65839         (func_modules_transitive_closure, func_modules_add_dummy,
65840         func_modules_to_filelist, func_import, func_create_testdir,
65841         func_create_megatestdir, ...): Use it wherever possible.
65842         Suggested by Ralf Wildenhues.
65843
65844 2006-09-16  Karl Berry  <karl@gnu.org>
65845
65846         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
65847         to avoid sectioning errors.
65848         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
65849         [ifinfo]: blank line after @center-ed titles.
65850         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
65851         Spell FSF address consistently with others.
65852         (These changes approved by rms.)
65853
65854 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65855
65856         Speed up by a factor of 1.61.
65857         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
65858         already checked module names again.
65859
65860 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65861
65862         Speed up by a factor of 1.13.
65863         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
65864         for new_files, and the input to func_add_or_update.
65865
65866 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65867
65868         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
65869         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
65870
65871 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65872
65873         * modules/mkancesdirs (Depends-on): Add fcntl.
65874         * modules/savewd: New file.
65875         * MODULES.html.sh (File system functions): Add savewd.
65876
65877         * modules/configmake (Makefile.am): Add support for the
65878         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
65879
65880 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65881
65882         * m4/savewd.m4: New file.
65883
65884 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65885
65886         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
65887         (dirchownmod): New arg FD.  All callers changed.
65888         Use FD rather than opening the directory ourself, as opening is
65889         now the caller's responsibility.
65890         * lib/dirchownmod.h: Likewise.
65891         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
65892         hosts that require <sys/types.h> before <sys/stat.h>.  Include
65893         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
65894         (test_dir): Remove.
65895         (mkancesdirs): Return length of prefix of FILE that has already
65896         been made, or -2 if there is a child doing the work.  Redo
65897         algorithm so that it is O(N) rather than O(N**2).  Optimize away
65898         ".", and treat ".." specially since it might stray back into
65899         already-created areas.  Use a subprocess if necessary.  New arg
65900         WD; all users changed.  MAKE_DIR function should now return 1
65901         if it creates a directory that is not readable.  Return -2 if
65902         a child process is spun off.
65903         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
65904         Adjust signature to match code.
65905         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
65906         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
65907         all users changed.
65908         * lib/savewd.c, lib/savewd.h: New files.
65909
65910 2006-09-15  Jim Meyering  <jim@meyering.net>
65911
65912         * modules/rename-dest-slash: New module.
65913         * MODULES.html.sh (posix_compat): Add it here.
65914
65915         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
65916
65917 2006-09-15  Jim Meyering  <jim@meyering.net>
65918
65919         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
65920         file.
65921
65922         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
65923
65924 2006-09-15  Jim Meyering  <jim@meyering.net>
65925
65926         * lib/rename-dest-slash.c (has_trailing_slash): Use
65927         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
65928         (rpl_rename_dest_slash): Perform the cheaper trailing slash
65929         test before testing whether SRC is a directory.
65930         Suggestions from Bruno Haible.
65931
65932         Avoid a warning about an unused variable.
65933         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
65934         into the #ifdef block where it's used.
65935
65936         * lib/rename-dest-slash.c: New file.
65937
65938 2006-09-14  Bruno Haible  <bruno@clisp.org>
65939
65940         * lib/allocsa.c: Include <config.h> unconditionally.
65941         * lib/asnprintf.c: Likewise.
65942         * lib/asprintf.c: Likewise.
65943         * lib/c-strcasecmp.c: Likewise.
65944         * lib/c-strcasestr.c: Likewise.
65945         * lib/c-strncasecmp.c: Likewise.
65946         * lib/c-strstr.c: Likewise.
65947         * lib/classpath.c: Likewise.
65948         * lib/clean-temp.c: Likewise.
65949         * lib/concatpath.c: Likewise.
65950         * lib/copy-file.c: Likewise.
65951         * lib/csharpcomp.c: Likewise.
65952         * lib/csharpexec.c: Likewise.
65953         * lib/execute.c: Likewise.
65954         * lib/fatal-signal.c: Likewise.
65955         * lib/findprog.c: Likewise.
65956         * lib/fwriteerror.c: Likewise.
65957         * lib/gl_array_list.c: Likewise.
65958         * lib/gl_array_oset.c: Likewise.
65959         * lib/gl_avltree_list.c: Likewise.
65960         * lib/gl_avltree_oset.c: Likewise.
65961         * lib/gl_avltreehash_list.c: Likewise.
65962         * lib/gl_carray_list.c: Likewise.
65963         * lib/gl_linked_list.c: Likewise.
65964         * lib/gl_linkedhash_list.c: Likewise.
65965         * lib/gl_list.c: Likewise.
65966         * lib/gl_oset.c: Likewise.
65967         * lib/gl_rbtree_list.c: Likewise.
65968         * lib/gl_rbtree_oset.c: Likewise.
65969         * lib/gl_rbtreehash_list.c: Likewise.
65970         * lib/imaxabs.c: Likewise.
65971         * lib/imaxdiv.c: Likewise.
65972         * lib/javacomp.c: Likewise.
65973         * lib/javaexec.c: Likewise.
65974         * lib/javaversion.c: Likewise.
65975         * lib/linebreak.c: Likewise.
65976         * lib/localcharset.c: Likewise.
65977         * lib/lock.c: Likewise.
65978         * lib/mbchar.c: Likewise.
65979         * lib/mbswidth.c: Likewise.
65980         * lib/mkdtemp.c: Likewise.
65981         * lib/pipe.c: Likewise.
65982         * lib/printf-args.c: Likewise.
65983         * lib/printf-parse.c: Likewise.
65984         * lib/progname.c: Likewise.
65985         * lib/progreloc.c: Likewise.
65986         * lib/readlink.c: Likewise.
65987         * lib/sh-quote.c: Likewise.
65988         * lib/stpcpy.c: Likewise.
65989         * lib/stpncpy.c: Likewise.
65990         * lib/strcasecmp.c: Likewise.
65991         * lib/strcasestr.c: Likewise.
65992         * lib/strcspn.c: Likewise.
65993         * lib/striconv.c: Likewise.
65994         * lib/strncasecmp.c: Likewise.
65995         * lib/strnlen1.c: Likewise.
65996         * lib/strstr.c: Likewise.
65997         * lib/strtok_r.c: Likewise.
65998         * lib/tls.c: Likewise.
65999         * lib/tmpdir.c: Likewise.
66000         * lib/unicodeio.c: Likewise.
66001         * lib/unsetenv.c: Likewise.
66002         * lib/vasnprintf.c: Likewise.
66003         * lib/vasprintf.c: Likewise.
66004         * lib/wait-process.c: Likewise.
66005         * lib/xallocsa.c: Likewise.
66006         * lib/xsetenv.c: Likewise.
66007         * lib/xstriconv.c: Likewise.
66008
66009 2006-09-13  Simon Josefsson  <jas@extundo.com>
66010
66011         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
66012         that internally, suggested by Ralf Wildenhues
66013         <Ralf.Wildenhues@gmx.de>.
66014
66015 2006-09-13  Simon Josefsson  <jas@extundo.com>
66016
66017         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
66018         @LIBOBJS@.
66019         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66020
66021 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66022
66023         * lib/_fpending.c: Include <config.h> unconditionally, since we no
66024         longer worry about uses that don't define HAVE_CONFIG_H.
66025         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
66026         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
66027         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
66028         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
66029         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
66030         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
66031         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
66032         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
66033         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
66034         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
66035         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
66036         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
66037         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
66038         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
66039         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
66040         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
66041         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
66042         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
66043         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
66044         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
66045         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
66046         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
66047         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
66048         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
66049         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
66050         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
66051         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
66052         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
66053         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
66054         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
66055         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
66056         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
66057         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
66058         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
66059         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
66060         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
66061         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
66062         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
66063         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
66064         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
66065         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
66066         Likewise.
66067
66068 2006-09-13  Eric Blake  <ebb9@byu.net>
66069
66070         * lib/getopt.c: Fix typo in last commit.
66071
66072 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66073
66074         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
66075         dgettext.
66076
66077 2006-09-12  Jim Meyering  <jim@meyering.net>
66078
66079         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
66080         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
66081         Reported by Nelson H. F. Beebe.
66082
66083 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66084
66085         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
66086         program_invocation_name and program_invocation_short_name are
66087         initialized.
66088         * lib/argp-namefrob.h: Move declarations of program_invocation_name
66089         and program_invocation_short_name to argp.h, so they are visible
66090         to user programs.
66091         * lib/argp.h: Likewise
66092
66093 2006-09-10  Bruno Haible  <bruno@clisp.org>
66094
66095         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66096         m4/inttypes_h.m4, m4/uintmax_t.m4.
66097
66098 2006-09-10  Bruno Haible  <bruno@clisp.org>
66099
66100         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
66101         gl_AC_TYPE_UINTMAX_T.
66102
66103 2006-09-10  Bruno Haible  <bruno@clisp.org>
66104
66105         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
66106
66107 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66108
66109         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
66110         convention.  Text proposed by Bruno Haible.
66111         (struct argp_option): Document the use of N_() wrappers.
66112
66113         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
66114         '\v', and translate the two parts separately, instead of feeding
66115         the whole string to gettext.  This allows to exclude
66116         '\v' from the strings visible to the translator by writing doc
66117         strings as N_("..") "\v" N_("..").
66118
66119 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
66120
66121         * config/srclist.txt: Undo latest change; the bug was fixed.
66122
66123 2006-09-09  Bruno Haible  <bruno@clisp.org>
66124
66125         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
66126         assignments if building a library without libtool.
66127         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
66128         in func_emit_lib_Makefile_am.
66129         (func_import): When building a static library libfoo.a, arrange to
66130         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
66131         (func_create_testdir): Likewise.
66132         * modules/gc (configure.ac, Makefile.am): If building statically,
66133         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
66134         * modules/iconvme (configure.ac, Makefile.am): Likewise.
66135         * modules/striconv (configure.ac, Makefile.am): Likewise.
66136         Based on a suggestion by Ralf Wildenhues.
66137
66138 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66139
66140         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66141         Check for unistd.h too, since Autoconf doesn't assume POSIX.
66142         Also:
66143
66144         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66145         Add year_2050_test to catch glibc bug 2821
66146         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
66147
66148         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66149         Prefer #ifdef to #if.
66150
66151         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
66152         Return from 'main' instead of calling 'exit'.
66153
66154 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66155
66156         * lib/mktime.c (guess_time_tm): Fix bug where mktime
66157         returned the maximum time_t value rather than (time_t) -1.
66158         Problem originally reported by William Bardwell
66159         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
66160
66161         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
66162         Moved to here ...
66163         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
66164         ... from here.
66165
66166 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66167
66168         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
66169         2821 is fixed.
66170
66171 2006-09-08  Jim Meyering  <jim@meyering.net>
66172
66173         Don't make generated files read-only.  That would bother too many
66174         people.  However, do retain the ability to work when targets are
66175         read-only: remove the destination and temporary files before writing
66176         them (when generated via sed or echo), or by using the -f option for
66177         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
66178         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66179         * modules/byteswap, modules/configmake, modules/fcntl:
66180         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66181         * modules/localcharset, modules/netinet_in, modules/poll:
66182         * modules/stdbool, modules/stdint, modules/sys_select:
66183         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66184
66185 2006-09-08  Jim Meyering  <jim@meyering.net>
66186
66187         Avoid new build failure on FreeBSD 6.0.
66188         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
66189         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
66190         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
66191
66192 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66193
66194         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
66195
66196 2006-09-07  Jim Meyering  <jim@meyering.net>
66197
66198         Fix global typo in last change: use chmod u-w, not chmod u-x.
66199         Spotted by Paul Eggert and Bruce Korb.
66200         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66201         * modules/byteswap, modules/configmake, modules/fcntl:
66202         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66203         * modules/localcharset, modules/netinet_in, modules/poll:
66204         * modules/stdbool, modules/stdint, modules/sys_select:
66205         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66206
66207 2006-09-06  Jim Meyering  <jim@meyering.net>
66208
66209         Make generated files be read-only.
66210         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
66211         Ensure that each generated file is now read-only.
66212         * modules/argz: Likewise.
66213         * modules/arpa_inet: Likewise.
66214         * modules/byteswap: Likewise.
66215         * modules/configmake: Likewise.
66216         * modules/fcntl: Likewise.
66217         * modules/fnmatch: Likewise.
66218         * modules/getopt: Likewise.
66219         * modules/glob: Likewise.
66220         * modules/inttypes: Likewise.
66221         * modules/netinet_in: Likewise.
66222         * modules/poll: Likewise.
66223         * modules/stdbool: Likewise.
66224         * modules/stdint: Likewise.
66225         * modules/sys_select: Likewise.
66226         * modules/sys_socket: Likewise.
66227         * modules/sys_stat: Likewise.
66228         * modules/sysexits: Likewise.
66229         * modules/localcharset: Same as above, but continue using temporary
66230         file named "t-$@" (why different?) rather than the "$@-t" used
66231         everywhere else.
66232
66233         * modules/sysexits (Makefile.am): Replace literal occurrences
66234         of "sysexit.h" more readable, and more consistent, "$@".
66235
66236 2006-09-06  Bruno Haible  <bruno@clisp.org>
66237
66238         * modules/striconv: New file.
66239         * modules/xstriconv: New file.
66240         * MODULES.html.sh (Internationalization functions): Add striconv,
66241         xstriconv.
66242
66243 2006-09-06  Bruno Haible  <bruno@clisp.org>
66244
66245         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
66246         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
66247         not using libtool correctly.
66248
66249 2006-09-06  Bruno Haible  <bruno@clisp.org>
66250
66251         * lib/striconv.h: New file.
66252         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
66253         iconvstring.c.
66254         * lib/xstriconv.h: New file.
66255         * lib/xstriconv.c: New file.
66256
66257 2006-09-06  Bruno Haible  <bruno@clisp.org>
66258
66259         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66260         lib_..._LDFLAGS.
66261
66262 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66263
66264         * lib/argz_.h: Sync from Libtool.
66265
66266         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
66267                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66268
66269         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
66270
66271 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
66272
66273         * modules/trim: New file.
66274
66275 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
66276
66277         * lib/trim.h: New file.
66278         * lib/trim.c: New file.
66279
66280 2006-09-05  Bruno Haible  <bruno@clisp.org>
66281
66282         * MODULES.html.sh (String handling): Add trim.
66283
66284 2006-09-04  Karl Berry  <karl@gnu.org>
66285
66286         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
66287         until next release.
66288
66289 2006-09-03  Bruno Haible  <bruno@clisp.org>
66290
66291         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
66292         correctly.
66293
66294 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66295
66296         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
66297         not gl_GETLOADAVG.  Omit unneeded semicolons.
66298         Problems reported by Ralf Wildenhues in
66299         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
66300         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
66301         at the end, which is the usual gnulib style.
66302
66303         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
66304         of doing all the work ourselves.
66305         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
66306         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
66307
66308 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66309
66310         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
66311         Problem reported by Ralf Wildenhues in
66312         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
66313
66314         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
66315         HAVE_STRUCT_STATFS_F_FSTYPENAME.
66316
66317 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66318
66319         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
66320         yesterday's patch by changing test -n to test -z.
66321
66322 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66323
66324         * modules/getloadavg (Files): Add m4/getloadavg.m4.
66325         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
66326         the former is now obsolescent.
66327
66328         * modules/chdir-long (Depends-on): Add fcntl.
66329
66330 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66331
66332         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
66333         obsolescent, and programs should use gnulib instead.
66334         * m4/getloadavg.m4: New file, with contents taken from Autoconf
66335         but with prefixes changed.
66336
66337 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66338
66339         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
66340         or stdbool.h, because they might not exist while configuring.
66341
66342         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
66343         Don't include unistd.h or limits.h; not needed, since chdir-long.h
66344         does that for us.
66345         (O_DIRECTORY): Remove.
66346
66347 2006-08-31  Eric Blake  <ebb9@byu.net>
66348
66349         * gnulib-tool: Don't let emacs change spaces to TAB.
66350
66351 2006-08-31  Bruno Haible  <bruno@clisp.org>
66352
66353         * gnulib-tool: When calling func_import more than once, do it in a
66354         subshell.
66355         Reported by Eric Blake <ebb9@byu.net>.
66356
66357 2006-08-31  Bruno Haible  <bruno@clisp.org>
66358
66359         * gnulib-tool (nl): Remove variable.
66360         (sed_transform_lib_file): Use more robust test for config-h module.
66361         (func_import): Fix typo in 2006-08-25 patch.
66362
66363 2006-08-31  Bruno Haible  <bruno@clisp.org>
66364
66365         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
66366         specified, augment Makefile.am variables instead of assigning them.
66367
66368 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66369
66370         Work around a bug in both the Linux and SunOS 64-bit kernels:
66371         nanosleep mishandles sleeps for longer than 2**31 seconds.
66372         Problem reported by Frank v Waveren in
66373         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66374         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
66375         Check for nanosleep bug.
66376         (LIB_NANOSLEEP): Append clock_gettime library if needed.
66377
66378 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66379
66380         Work around a bug in both the Linux and SunOS 64-bit kernels:
66381         nanosleep mishandles sleeps for longer than 2**31 seconds.
66382         Problem reported by Frank v Waveren in
66383         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66384         * lib/nanosleep.c (BILLION): New constant.
66385         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
66386         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
66387         implementation.
66388
66389 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66390
66391         * modules/nanosleep (Depends-on): Add gettime.
66392
66393 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66394         and Simon Josefsson  <jas@extundo.com>
66395         and Oskar Liljeblad  <oskar@osk.mine.nu>
66396
66397         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
66398         * gnulib-tool (func_import): New license type 'unmodifiable license
66399         text'.
66400         * modules/fdl: Use it.  Longer description.
66401         * module/gpl, module/lgpl: New files.
66402
66403 2006-08-30  Jim Meyering  <jim@meyering.net>
66404
66405         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
66406         shadowing the parameter.
66407
66408 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66409
66410         Sync from Libtool:
66411
66412         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66413
66414         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
66415         sharing with gnulib.  Report by Eric Blake.
66416
66417 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66418
66419         * modules/isapipe: New file.
66420         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
66421
66422 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66423
66424         * modules/configmake (Makefile.am): Add a comment, and omit
66425         the CONFIGMAKE_ prefix from generated macro names.  Suggested
66426         by Bruno Haible.
66427
66428 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66429
66430         * m4/isapipe.m4: New file.
66431
66432 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66433
66434         * lib/isapipe.c, lib/isapipe.h: New files.
66435
66436 2006-08-29  Jim Meyering  <jim@meyering.net>
66437
66438         * modules/configmake (Makefile.am): Make configmake.h depend on
66439         Makefile.  Otherwise, a stale configmake.h could hang around.
66440
66441 2006-08-29  Eric Blake  <ebb9@byu.net>
66442
66443         * lib/error.c (error_at_line, print_errno_message): Match libc, after
66444         resolution of upstream bug 3044.
66445
66446 2006-08-29  Bruno Haible  <bruno@clisp.org>
66447
66448         * modules/localcharset (Depends-on): Add configmake.
66449         (Makefile.am): Remove setting of LIBDIR through DEFS.
66450
66451 2006-08-29  Bruno Haible  <bruno@clisp.org>
66452
66453         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
66454         defined.
66455
66456 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66457
66458         * modules/fcntl: New file.
66459         * modules/chdir-safer (Depends-on): Add fcntl.
66460         * modules/fts: Likewise.
66461         * modules/mkdir-p: Likewise.
66462
66463         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
66464         This undoes the most recent change, since we're now addressing the
66465         problem in a different way.
66466
66467         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
66468         into output, since the output might be called Makefile.am even
66469         if $makefile_name is something different.
66470         (func_import): Use $makefile_am rather than
66471         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
66472         empty.
66473
66474         * modules/inttypes (Files): Add m4/inttypes-h.m4.
66475
66476 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66477
66478         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
66479         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
66480         recent change to stdint.m4, since we're now addressing the problem in a
66481         different way.
66482
66483 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66484
66485         * m4/fcntl_h.m4: New file.
66486
66487 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66488
66489         * lib/fcntl_.h: New file.
66490         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
66491         the fcntl module.
66492         * lib/dirchownmod.c: Likewise.
66493         * lib/fts.c: Likewise.
66494
66495         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
66496         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
66497         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
66498         just before including <inttypes.h>, to avoid circular inclusion.
66499
66500 2006-08-28  Jim Meyering  <jim@meyering.net>
66501
66502         * doc/visibility.texi: Actually read and correct the grammar of the
66503         sentence affected by yesterday's change.
66504
66505 2006-08-28  Eric Blake  <ebb9@byu.net>
66506
66507         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
66508         needs wrapper.
66509
66510 2006-08-28  Eric Blake  <ebb9@byu.net>
66511
66512         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
66513
66514 2006-08-28  Eric Blake  <ebb9@byu.net>
66515
66516         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
66517
66518 2006-08-28  Bruno Haible  <bruno@clisp.org>
66519
66520         * modules/c-strstr: New file, from GNU gettext.
66521         * MODULES.html.sh (String handling): Add c-strstr.
66522
66523 2006-08-28  Bruno Haible  <bruno@clisp.org>
66524
66525         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
66526         macros.
66527         Reported by Eric Blake.
66528
66529 2006-08-28  Bruno Haible  <bruno@clisp.org>
66530
66531         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
66532         (VASNPRINTF): Return a string of length > INT_MAX without failing.
66533         * lib/vasprintf.c: Include errno.h, limits.h.
66534         (EOVERFLOW): New fallback definition.
66535         (vasprintf): Test here whether the string length is > INT_MAX.
66536         * lib/vsnprintf.c: Include errno.h, limits.h.
66537         (EOVERFLOW): New fallback definition.
66538         (vsnprintf): Fix bug when generated string was too long for the buffer.
66539         Test here whether the string length is > INT_MAX.
66540
66541 2006-08-28  Bruno Haible  <bruno@clisp.org>
66542
66543         * lib/inttypes_.h (SCNX*): Remove definitions.
66544         Reported by Eric Blake.
66545
66546 2006-08-28  Bruno Haible  <bruno@clisp.org>
66547
66548         * lib/c-strstr.h: New file, from GNU gettext.
66549         * lib/c-strstr.c: New file, from GNU gettext.
66550
66551 2006-08-28  Bruno Haible  <bruno@clisp.org>
66552
66553         * gnulib-tool: Reorder some statements.
66554
66555 2006-08-28  Bruno Haible  <bruno@clisp.org>
66556
66557         * gnulib-tool: New option --makefile-name.
66558         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
66559         $makefile_name.
66560         (func_import): Write $makefile_name to the cache file, and read it from
66561         there unless explicitly specified. Use $makefile_name as file name
66562         instead of Makefile.am. Adjust the recommendations accordingly.
66563
66564 2006-08-28  Bruno Haible  <bruno@clisp.org>
66565
66566         * gnulib-tool (func_verify_module): Check against misapplying patch.
66567
66568 2006-08-28  Bruno Haible  <bruno@clisp.org>
66569
66570         * gnulib-tool (func_relativize, func_relconcat): New functions.
66571         Give an error if --local-dir is given with --update.
66572         Remove trailing slashes from $local_gnulib_dir.
66573         (func_import): Store the relativized $local_gnulib_dir in
66574         gnulib-cache.m4, and read it from there if not specified explicitly.
66575
66576 2006-08-28  Bruno Haible  <bruno@clisp.org>
66577
66578         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
66579         is the current directory. Respect also $local_gnulib_dir.
66580
66581 2006-08-28  Bruno Haible  <bruno@clisp.org>
66582             Simon Josefsson  <jas@extundo.com>
66583
66584         BeOS portability.
66585         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
66586
66587 2006-08-27  Jim Meyering  <jim@meyering.net>
66588
66589         * doc/visibility.texi: Remove duplicate word: "pointer".
66590
66591 2006-08-26  Bruno Haible  <bruno@clisp.org>
66592
66593         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
66594         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
66595         (Makefile.am): Create inttypes.h from inttypes_.h.
66596         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
66597
66598         * modules/imaxabs: New file.
66599
66600         * modules/imaxdiv: New file.
66601
66602 2006-08-26  Bruno Haible  <bruno@clisp.org>
66603
66604         * m4/inttypes.m4: New file.
66605         * m4/_inttypes_h.m4: Remove file.
66606         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
66607         PRI_MACROS_BROKEN.
66608         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
66609
66610         * m4/imaxabs.m4: New file.
66611
66612         * m4/imaxdiv.m4: New file.
66613
66614 2006-08-26  Bruno Haible  <bruno@clisp.org>
66615
66616         * lib/inttypes_.h: New file.
66617         * lib/inttypes.h: Remove file.
66618         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
66619
66620         * lib/imaxabs.c: New file.
66621
66622         * lib/imaxdiv.c: New file.
66623
66624 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66625
66626         New config-h module, so that "make" output needn't be cluttered
66627         by -DHAVE_CONFIG_H.
66628         * MODULES.html.sh (Support for building libraries and executables):
66629         Add config-h.
66630         * modules/config-h: New file.
66631         * gnulib-tool (nl, sed_transform_lib_file): New vars.
66632         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
66633         the config-h module is used.
66634
66635         New configmake module, so that "make" output needn't be cluttered
66636         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
66637         * MODULES.html.sh (Support for building libraries and executables):
66638         Add configmake.
66639         * modules/configmake: New file.
66640
66641 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66642
66643         * m4/config-h.m4: New file.
66644
66645 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66646
66647         * config/srclist.txt: Add elisp-comp.
66648
66649 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66650
66651         * MODULES.html.sh (Support for building libraries and executables):
66652         Add elisp-comp.
66653         * build-aux/elisp-comp: New file.
66654         * modules/elisp-comp: New file.
66655
66656 2006-08-24  Bruno Haible  <bruno@clisp.org>
66657
66658         * gnulib-tool (func_create_testdir): Use non-default values of
66659         sourcebase and m4base.
66660
66661 2006-08-24  Bruno Haible  <bruno@clisp.org>
66662
66663         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
66664         HTML structure.
66665
66666 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66667
66668         * modules/openat (Depends-on): Add lchown.
66669
66670 2006-08-23  Bruno Haible  <bruno@clisp.org>
66671
66672         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
66673         of gl_LOCK_EARLY instead of gl_LOCK.
66674
66675 2006-08-23  Bruno Haible  <bruno@clisp.org>
66676
66677         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
66678         on OSF/1 to no.
66679         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
66680
66681 2006-08-23  Bruno Haible  <bruno@clisp.org>
66682
66683         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
66684         as unusable.
66685
66686         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
66687         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
66688         (gl_LOCK): New macro.
66689
66690 2006-08-22  Simon Josefsson  <jas@extundo.com>
66691
66692         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
66693         to md5 module.
66694
66695 2006-08-22  Simon Josefsson  <jas@extundo.com>
66696
66697         * MODULES.html.sh: Add "Support for maintaining and release
66698         projects".
66699
66700         * build-aux/gnupload: New file, from coreutils.
66701
66702 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66703
66704         Avoid the need for AC_LIBSOURCES in m4 macros.
66705         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
66706         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
66707         * modules/check-version (EXTRA_DIST): Add check-version.h.
66708         * modules/crc (EXTRA_DIST): Add crc.h.
66709         * modules/des (EXTRA_DIST): Add des.h.
66710         * modules/gc (EXTRA_DIST): Add gc.h.
66711         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
66712         * modules/getline (EXTRA_DIST): Add getline.h.
66713         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
66714         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
66715         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
66716         * modules/md2 (EXTRA_DIST): Add md2.h.
66717         * modules/md4 (EXTRA_DIST): Add md4.h.
66718         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
66719         * modules/read-file (EXTRA_DIST): Add read-file.h.
66720         * modules/readline (EXTRA_DIST): Add readline.h.
66721         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
66722         rijndael-api-fst.h.
66723
66724 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66725
66726         * m4/rijndael.m4 (gl_ARCFOUR):
66727         * m4/arctwo.m4 (gl_ARCTWO):
66728         * m4/check-version.m4 (gl_CHECK_VERSION):
66729         * m4/crc.m4 (gl_CRC):
66730         * m4/des.m4 (gl_DES):
66731         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
66732         * m4/gc.m4 (gl_GC):
66733         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
66734         * m4/getline.m4 (gl_FUNC_GETLINE):
66735         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
66736         * m4/hmac-md5.m4 (gl_HMAC_MD5):
66737         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
66738         * m4/md2.m4 (gl_MD2):
66739         * m4/md4.m4 (gl_MD4):
66740         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
66741         * m4/read-file.m4 (gl_FUNC_READ_FILE):
66742         * m4/readline.m4 (gl_FUNC_READLINE):
66743         * m4/rijndael.m4 (gl_RIJNDAEL):
66744         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66745         to get the necessary .h files and whatnot.
66746
66747 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66748
66749         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
66750         gnulib rather than the other way around.
66751         * config/srclistvars.sh (COREUTILS): Remove.
66752
66753 2006-08-22  Jim Meyering  <jim@meyering.net>
66754
66755         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
66756
66757         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
66758
66759 2006-08-22  Eric Blake  <ebb9@byu.net>
66760
66761         * modules/regexprops-generic: New file.
66762         * MODULES.html.sh (Support for building documentation): List it.
66763
66764 2006-08-22  Eric Blake  <ebb9@byu.net>
66765
66766         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
66767         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66768         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
66769         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66770
66771 2006-08-22  Bruno Haible  <bruno@clisp.org>
66772
66773         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
66774         and lib_LTLIBRARIES like the other lib_* variables.
66775
66776 2006-08-22  Bruno Haible  <bruno@clisp.org>
66777
66778         * build-aux/x-to-1.in: New file, from GNU gettext.
66779
66780 2006-08-22  Bruno Haible  <bruno@clisp.org>
66781
66782         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
66783         <utmpx.h> exists.
66784
66785 2006-08-22  Bruno Haible  <bruno@clisp.org>
66786
66787         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
66788         <utmpx.h> exists.
66789
66790 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66791
66792         BeOS portability.
66793         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
66794         exist.
66795         Problem reported by Bruno Haible.
66796
66797 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66798
66799         Avoid the need for AC_LIBSOURCES in m4 macros.
66800         * modules/acl (EXTRA_DIST): Add acl.h.
66801         * modules/argmatch (Files): Add m4/argmatch.m4.
66802         (configure.ac): Add gl_ARGMATCH.
66803         (EXTRA_DIST): Renamed from lib_SOURCES, for
66804         consistency with the other modules.  Remove argmatch.c.
66805         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
66806         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
66807         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
66808         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
66809         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
66810         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
66811         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
66812         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
66813         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
66814         * modules/closeout (EXTRA_DIST): Add closeout.h.
66815         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
66816         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
66817         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
66818         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
66819         dirname.h; remove basename.c and stripslash.c.
66820         * modules/exclude (EXTRA_DIST): Add exclude.h.
66821         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
66822         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
66823         * modules/file-type (EXTRA_DIST): Add file-type.h.
66824         * modules/filemode (EXTRA_DIST): Add filemode.h.
66825         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
66826         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66827         * modules/fpending (EXTRA_DIST): Add __fpending.h.
66828         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
66829         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
66830         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
66831         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
66832         * modules/getdate (EXTRA_DIST): Add getdate.c.
66833         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
66834         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
66835         * modules/getpass (EXTRA_DIST): Add getpass.h.
66836         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
66837         * modules/group-member (EXTRA_DIST): Add group-member.h.
66838         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
66839         * modules/hash (EXTRA_DIST): Add hash.h.
66840         * modules/human (EXTRA_DIST): Add human.h.
66841         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
66842         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
66843         * modules/lchown (EXTRA_DIST): Add lchown.h.
66844         * modules/long-options (EXTRA_DIST): Add long-options.h.
66845         * modules/lstat (EXTRA_DIST): Add lstat.h.
66846         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
66847         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
66848         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
66849         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
66850         * modules/memxor (EXTRA_DIST): Add memxor.h.
66851         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
66852         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
66853         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
66854         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
66855         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
66856         * modules/physmem (EXTRA_DIST): Add physmem.h.
66857         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
66858         * modules/posixver (EXTRA_DIST): Add posixver.h.
66859         * modules/quote (EXTRA_DIST): Add quote.h.
66860         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
66861         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
66862         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
66863         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
66864         regex_internal.h regexec.c.
66865         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
66866         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
66867         * modules/same (EXTRA_DIST): Add same.h.
66868         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
66869         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
66870         * modules/savedir (EXTRA_DIST): Add savedir.h.
66871         * modules/sha1 (EXTRA_DIST): Add sha1.h.
66872         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
66873         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
66874         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
66875         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
66876         * modules/strdup (EXTRA_DIST): Add strdup.h.
66877         * modules/strftime (EXTRA_DIST): Add strftime.h.
66878         * modules/strndup (EXTRA_DIST): Add strndup.h.
66879         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
66880         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
66881         * modules/time_r (EXTRA_DIST): Add time_r.h.
66882         * modules/timespec (EXTRA_DIST): Add timespec.h.
66883         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66884         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
66885         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
66886         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
66887         * modules/userspec (EXTRA_DIST): Add userspec.h.
66888         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
66889         * modules/utimens (EXTRA_DIST): Add utimens.h.
66890         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
66891         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
66892         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
66893         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
66894         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
66895         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
66896         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
66897         * modules/yesno (EXTRA_DIST): Add yesno.h.
66898
66899 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66900
66901         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
66902
66903         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
66904         * m4/dev-ino.m4, same-inode.m4: Remove.
66905
66906         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
66907         * m4/acl.m4 (AC_FUNC_ACL):
66908         * m4/backupfile.m4 (gl_BACKUPFILE):
66909         * m4/c-strtod.m4 (gl_C99_STRTOLD):
66910         * m4/canon-host.m4 (gl_CANON_HOST):
66911         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66912         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
66913         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
66914         * m4/cloexec.m4 (gl_CLOEXEC):
66915         * m4/close-stream.m4 (gl_CLOSE_STREAM):
66916         * m4/closeout.m4 (gl_CLOSEOUT):
66917         * m4/dirfd.m4 (gl_FUNC_DIRFD):
66918         * m4/dirname.m4 (gl_DIRNAME):
66919         * m4/exclude.m4 (gl_EXCLUDE):
66920         * m4/exitfail.m4 (gl_EXITFAIL):
66921         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
66922         * m4/file-type.m4 (gl_FILE_TYPE):
66923         * m4/filemode.m4 (gl_FILEMODE):
66924         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
66925         * m4/fpending.m4 (gl_FUNC_FPENDING):
66926         * m4/fprintftime.m4 (gl_FPRINTFTIME):
66927         * m4/fts.m4 (gl_FUNC_FTS):
66928         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
66929         * m4/getdate.m4 (gl_GETDATE):
66930         * m4/gethrxtime.m4 (gl_GETHRXTIME):
66931         * m4/getpagesize.m4 (gl_GETPAGESIZE):
66932         * m4/getpass.m4 (gl_FUNC_GETPASS):
66933         * m4/gettime.m4 (gl_GETTIME):
66934         * m4/getugroups.m4 (gl_GETUGROUPS):
66935         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
66936         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
66937         * m4/hard-locale.m4 (gl_HARD_LOCALE):
66938         * m4/hash.m4 (gl_HASH):
66939         * m4/idcache.m4 (gl_IDCACHE):
66940         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
66941         * m4/lchown.m4 (gl_FUNC_LCHOWN):
66942         * m4/long-options.m4 (gl_LONG_OPTIONS):
66943         * m4/lstat.m4 (gl_FUNC_LSTAT):
66944         * m4/md5.m4 (gl_MD5):
66945         * m4/memcasecmp.m4 (gl_MEMCASECMP):
66946         * m4/memcoll.m4 (gl_MEMCOLL):
66947         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
66948         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
66949         * m4/memxor.m4 (gl_MEMXOR):
66950         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
66951         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
66952         * m4/modechange.m4 (gl_MODECHANGE):
66953         * m4/mountlist.m4 (gl_MOUNTLIST):
66954         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66955         * m4/openat.m4 (gl_FUNC_OPENAT):
66956         * m4/pathmax.m4 (gl_PATHMAX):
66957         * m4/physmem.m4 (gl_PHYSMEM):
66958         * m4/posixtm.m4 (gl_POSIXTM):
66959         * m4/posixver.m4 (gl_POSIXVER):
66960         * m4/quote.m4 (gl_QUOTE):
66961         * m4/quotearg.m4 (gl_QUOTEARG):
66962         * m4/readtokens.m4 (gl_READTOKENS):
66963         * m4/readutmp.m4 (gl_READUTMP):
66964         * m4/regex.m4 (gl_REGEX):
66965         * m4/safe-read.m4 (gl_SAFE_READ):
66966         * m4/safe-write.m4 (gl_SAFE_WRITE):
66967         * m4/same.m4 (gl_SAME):
66968         * m4/save-cwd.m4 (gl_SAVE_CWD):
66969         * m4/savedir.m4 (gl_SAVEDIR):
66970         * m4/settime.m4 (gl_SETTIME):
66971         * m4/sha1.m4 (gl_SHA1):
66972         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
66973         * m4/stat-macros.m4 (gl_STAT_MACROS):
66974         * m4/stat-time.m4 (gl_STAT_TIME):
66975         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66976         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66977         * m4/strdup.m4 (gl_FUNC_STRDUP):
66978         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66979         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66980         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66981         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66982         * m4/time_r.m4 (gl_TIME_R):
66983         * m4/timespec.m4 (gl_TIMESPEC):
66984         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66985         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66986         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66987         * m4/userspec.m4 (gl_USERSPEC):
66988         * m4/utimecmp.m4 (gl_UTIMECMP):
66989         * m4/utimens.m4 (gl_UTIMENS):
66990         * m4/xalloc.m4 (gl_XALLOC):
66991         * m4/xgetcwd.m4 (gl_XGETCWD):
66992         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66993         * m4/xreadlink.m4 (gl_XREADLINK):
66994         * m4/xstrtod.m4 (gl_XSTRTOD):
66995         * m4/yesno.m4 (gl_YESNO):
66996         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66997         to get the necessary .h files and whatnot.
66998
66999 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
67000             Bruno Haible  <bruno@clisp.org>
67001
67002         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
67003         /bin/sh understanding of '!' conditional negation.
67004
67005 2006-08-21  Jim Meyering  <jim@meyering.net>
67006
67007         * modules/openat (Depends-on): Really alphabetize.
67008
67009         * modules/acl (Depends-on): Add error and quote.
67010
67011         * check-module (find_included_lib_files): Add at-func.c to the
67012         ok-to-include-more-than-once white list.
67013
67014         * modules/openat (Depends-on): Add lstat.  Alphabetize.
67015
67016 2006-08-21  Bruno Haible  <bruno@clisp.org>
67017
67018         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67019         Emit a pkgdata_DATA variable only if some snippets add contents to it.
67020         Reported by Martin Lambers <marlam@marlam.de>.
67021
67022 2006-08-21  Bruno Haible  <bruno@clisp.org>
67023
67024         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
67025         specify an installation location, don't emit a noinst_LIBRARIES or
67026         noinst_LTLIBRARIES assignment.
67027
67028 2006-08-21  Bruno Haible  <bruno@clisp.org>
67029
67030         BeOS portability.
67031         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
67032         BeOS has mbrtowc() but no <wctype.h>.
67033
67034 2006-08-21  Bruno Haible  <bruno@clisp.org>
67035
67036         BeOS portability.
67037         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
67038         exist.
67039
67040 2006-08-21  Bruno Haible  <bruno@clisp.org>
67041
67042         BeOS portability.
67043         * lib/mbchar.h: Include <wctype.h> only if it exists.
67044
67045 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67046
67047         Remove files that are no longer needed by their respective modules.
67048         * m4/obstack.m4: Remove.
67049         * m4/strerror_r.m4: Remove.
67050         * m4/uint32_t.m4: Remove.
67051         * m4/uintptr_t.m4: Remove.
67052         * m4/ullong_max.m4: Remove.
67053         * m4/xstrtoimax.m4: Remove.
67054         * m4/xstrtoumax.m4: Remove.
67055
67056         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
67057         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
67058         dependencies now capture this.
67059
67060         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
67061         Do not use AC_LIBSOURCES, since gnulib modules now do this.
67062         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
67063         * m4/human.m4 (gl_HUMAN): Likewise.
67064         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
67065         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
67066
67067         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
67068
67069         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
67070         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
67071         stdint.
67072         * m4/human.m4 (gl_HUMAN): Likewise.
67073         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
67074         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
67075         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67076         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67077         * m4/xstrtol (gl_XSTRTOL): Likewise.
67078
67079         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
67080         AC_TYPE_LONG_LONG_INT.
67081         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67082         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
67083         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
67084         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67085
67086         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
67087         on stdbool.
67088
67089         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
67090         (gl_PREREQ_XSTRTOUL): Remove.
67091
67092         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
67093
67094         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
67095         mode.
67096
67097 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67098
67099         Add and change modules to make it easier for coreutils to use
67100         gnulib-tool.
67101         * modules/backupfile (Files): Remove m4/d-ino.m4.
67102         (Depends-on): Add d-ino.
67103         * modules/cycle-check (Depends-on): Add stdint.
67104         (lib_SOURCES): Add cycle-check.h.
67105         * modules/d-ino: New module.
67106         * modules/d-type: New module.
67107         * modules/error (Files): Remove m4/strerror_r.m4.
67108         * modules/filemode (Files): Add m4/st_dm_mode.m4.
67109         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67110         m4/inttypes_h.m4, m4/uintmax_t.m4.
67111         (Depends-on): Add stdint.
67112         (lib_SOURCES): Add fsusage.h.
67113         * modules/getcwd (Files): Remove d-ino.m4.
67114         (Depends-on): Add d-ino.
67115         * modules/getndelim2 (Depends-on): Add stdint.
67116         * modules/glob (Files): Remove m4/d-type.m4.
67117         (Depends-on): Add d-type.
67118         * modules/host-os: New module.
67119         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
67120         m4/inttypes_h.m4, m4/uintmax_t.m4.
67121         * Depends-on: Add stdint.
67122         (lib_SOURCES): Add human.h.
67123         * modules/inttostr (Files): Remove m4/intmax_t.m4,
67124         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
67125         m4/uintmax_t.m4, m4/ulonglong.m4.
67126         (Depends-on): Add stdint.
67127         (EXTRA_DIST): Add inttostr.h.
67128         * modules/lchmod: New module.
67129         * modules/link-follow: New module.
67130         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
67131         (Depends-on): Add lchmod.
67132         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
67133         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
67134         (Depends-on): Add stdint.
67135         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
67136         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
67137         (Depends-on): Add stdint.
67138         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
67139         * modules/perl: New module.
67140         * modules/regex (Depends-on): Add stdint.
67141         * modules/rmdir-errno: New module.
67142         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
67143         m4/intmax_t.m4.
67144         (Depends-on): Add stdint.
67145         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
67146         m4/uintmax_t.m4.
67147         (Depends-on): Add stdint.
67148         * modules/unlink-busy: New module.
67149         * modules/utimecmp (Depends-on): Add stdint.
67150         * modules/uptime: New module.
67151         * modules/winsz-ioctl: New module.
67152         * modules/winsz-termios: New module.
67153         * modules/xnanosleep (Depends-on): Add nanosleep.
67154         * modules/ullong_max: Remove.
67155         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
67156         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
67157         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
67158         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
67159         (Depends-on): Add inttypes.
67160         (lib_SOURCES): Add xstrtol.h.
67161         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
67162         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
67163         * MODULES.html.sh: Move 'assert' into the assert section.
67164         Move 'dummy' into the linking section.
67165         Remove ullong_max.
67166         Add section for compatibility checks for POSIX:2001 functions,
67167         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
67168         winsz-ioctl, and winsz-termios into it.
67169         Add lchmod.
67170         Add top-level Misc section and put host-os, perl, and uptime
67171         into it.
67172
67173 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67174
67175         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
67176         now assume the stdint module.  Do not include inttypes.h.
67177         * lib/fsusage.h: Likewise.
67178         * lib/getndelim2.c: Likewise.
67179         * lib/human.h: Likewise.
67180         * lib/inttostr.h: Likewise.
67181         * lib/obstack.c: Likewise.
67182         * lib/regex_internal.h: Likewise.
67183         * lib/tempname.c: Likewise.
67184         * lib/utimecmp.c: Likewise.
67185         * lib/xstrtol.h: Likewise.
67186
67187         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
67188
67189         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
67190         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
67191         * lib/xtime.h: Likewise.
67192
67193 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67194
67195         * modules/openat (Files): Add lib/fchmodat.c.
67196         Fixes problem reported by Jay Youngman.
67197
67198 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67199
67200         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
67201         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
67202
67203 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
67204             Bruno Haible  <bruno@clisp.org>
67205
67206         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
67207         and is a script that invokes bison. Tighten the code. Add comments.
67208
67209 2006-08-18  Jim Meyering  <jim@meyering.net>
67210
67211         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
67212         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
67213         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
67214         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
67215
67216 2006-08-18  Bruno Haible  <bruno@clisp.org>
67217
67218         * modules/bison-i18n: New file.
67219         * MODULES.html.sh (Internationalization functions): Add it.
67220
67221 2006-08-18  Bruno Haible  <bruno@clisp.org>
67222
67223         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
67224         sys/statvfs.h. When getmntinfo was found, check its declaration and
67225         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
67226
67227 2006-08-18  Bruno Haible  <bruno@clisp.org>
67228
67229         * m4/bison-i18n.m4: New file, from bison.
67230
67231 2006-08-18  Bruno Haible  <bruno@clisp.org>
67232
67233         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
67234         (ME_DUMMY): Treat "kernfs" as a dummy.
67235         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
67236
67237 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67238
67239         Update from coreutils.
67240
67241         2006-08-15  Jim Meyering  <jim@meyering.net>
67242
67243         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
67244
67245         2006-01-17  Jim Meyering  <jim@meyering.net>
67246
67247         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
67248
67249         2006-01-11  Jim Meyering  <jim@meyering.net>
67250
67251         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
67252         Check for the lchmod function.
67253
67254 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67255
67256         Update from coreutils.
67257
67258         * lib/__fpending.h: Add copyright notice.
67259         * lib/fprintftime.h: Likewise.
67260         * lib/savedir.c: Use (C) in copyright notice.
67261         * lib/savedir.h: Likewise.
67262
67263         2006-08-15  Jim Meyering  <jim@meyering.net>
67264
67265         * lib/at-func.c: New file, with the logic of all emulated at-functions.
67266         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
67267         in support of the EXPECTED_ERRNO macro.
67268         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
67269         definitions.  Instead, define the appropriate symbols and include
67270         "at-func.c".
67271         * lib/mkdirat.c (mkdirat): Likewise.
67272         * lib/fchmodat.c (fchmodat): Likewise.
67273         (ENOSYS): Remove definition.
67274         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
67275         it.  Don't include "unistd--.h" -- it wasn't ever used.
67276
67277         2006-01-17  Jim Meyering  <jim@meyering.net>
67278
67279         Rewrite fts.c not to change the current working directory,
67280         by using openat, fstatat, fdopendir, etc..
67281
67282         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
67283         (HAVE_OPENAT_SUPPORT): Define.
67284         [_LIBC] (fchdir): Don't undef or define; no longer used.
67285         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
67286         Now, this `function' always succeeds, and consumes its file descriptor
67287         parameter -- so callers must not close such FDs.  Update callers.
67288         (diropen_fd, opendirat, cwd_advance_fd): New functions.
67289         (diropen): Add parameter, SP.  Adjust all callers.
67290         Implement using diropen_fd, rather than open.
67291         (fts_open): Initialize new member, fts_cwd_fd.
67292         Remove fts_rft-setting code.
67293         (fts_close): Close fts_cwd_fd, if necessary.
67294         (__opendir2): Define in terms of opendir or opendirat,
67295         depending on whether the FST_NOCHDIR flag is set.
67296         (fts_build): Since fts_safe_changedir consumes its FD, and since
67297         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
67298         and close the dup'd file descriptor upon failure.
67299         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
67300         (fts_safe_changedir): Tweak semantics to reflect that this function
67301         now calls cwd_advance_fd and hence consumes its FD argument.
67302         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
67303         [struct FTS] (fts_rft): Remove now-unused member.
67304         [struct FTS] (fts_cycle.state): Improve comment.
67305
67306         * lib/openat.c (openat_needs_fchdir): New function.
67307         * lib/openat.h (openat_needs_fchdir): Declare it.
67308
67309 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67310
67311         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
67312         Problem and fix reported by Pádraig Brady in
67313         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
67314
67315 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67316
67317         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
67318
67319 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67320
67321         * lib/memcoll.c (memcoll): Optimize for the common case where the
67322         arguments are bytewise equal.
67323
67324 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67325
67326         * doc/regexprops-generic.texi: Add a copyright notice.
67327
67328 2006-08-15  Bruno Haible  <bruno@clisp.org>
67329
67330         * modules/tmpdir (License): Change to LGPL.
67331
67332 2006-08-15  Bruno Haible  <bruno@clisp.org>
67333
67334         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
67335         module.
67336
67337 2006-08-14  Simon Josefsson  <jas@extundo.com>
67338
67339         * config/srclist.txt: Add gnupload.
67340
67341 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67342
67343         Change copyright notice from LGPL 2 to GPL 2, since that's the
67344         standard form used in the gnulib repository.
67345         * tests/test-lock.c: Likewise.
67346         * tests/test-stdint.c: Likewise.
67347         * tests/test-tls.c: Likewise.
67348
67349         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
67350         prelude-manager.  User shorter URLs for GNU projects, without '?'.
67351         Add copyright notice.
67352
67353         * check-module: Add copyright notice.  Output a copyright
67354         notice if "--version" is specified.
67355         * modules/COPYING: New file.
67356         * tests/test-getaddrinfo.c: Add copyright notice.
67357         * tests/test-verify.c: Likewise.
67358
67359 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67360
67361         Change copyright notice from LGPL 2 to GPL 2, since that's the
67362         standard form used in the gnulib repository.
67363         * lib/lock.c: LGPL -> GPL.
67364         * lib/lock.h: Likewise.
67365         * lib/strnlen1.c: Likewise.
67366         * lib/strnlen1.h: Likewise.
67367         * lib/tls.c: Likewise.
67368         * lib/tls.h: Likewise.
67369         * lib/tmpdir.c: Likewise.
67370
67371         * lib/TODO: Remove; this belongs only in coreutils.
67372
67373 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67374
67375         Add copyright notices to long-enough files that lack them, since
67376         otherwise the files aren't clearly free.  Use the same notice that
67377         getdate.texi already uses.
67378         * doc/alloca-opt.texi: Add copyright notice.
67379         * doc/alloca.texi: Likewise.
67380         * doc/ctime.texi: Likewise.
67381         * doc/functions.texi: Likewise.
67382         * doc/gcd.texi: Likewise.
67383         * doc/gnulib-tool.texi: Likewise.
67384         * doc/inet_ntoa.texi: Likewise.
67385         * doc/visibility.texi: Likewise.
67386
67387         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
67388         * doc/quote.texi: Add copyright notice.
67389
67390         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
67391         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
67392         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
67393         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
67394         is now obsolete, and give a pointer to the Sun list.
67395         Add copyright notice.
67396
67397 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67398
67399         * config/srclistvars.sh: Add copyright notice.
67400
67401 2006-08-14  Eric Blake  <ebb9@byu.net>
67402
67403         Import the following change from libc:
67404
67405         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
67406
67407         Upstream bug 2997.
67408         * lib/misc/error.c: Add space between program name and message if file
67409         name is missing.
67410
67411 2006-08-12  Karl Berry  <karl@gnu.org>
67412
67413         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
67414         remove, these originate in gnulib now.
67415
67416 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67417
67418         * doc/Makefile (standards.info standards.html standards.dvi):
67419         Also depend on make-stds.texi.
67420
67421 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67422
67423         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
67424         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
67425
67426         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
67427         in wchar_t.  Problem reported by Eric Blake.
67428
67429         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
67430         LEN is smaller than SIZE.  Suggested by Bruno Haible.
67431         Also, help the compiler to keep LEN in a register.
67432
67433 2006-08-11  Eric Blake  <ebb9@byu.net>
67434
67435         * users.txt: Sort.  Add tar.
67436
67437 2006-08-11  Bruno Haible  <bruno@clisp.org>
67438
67439         * users.txt: New file.
67440
67441 2006-08-11  Bruno Haible  <bruno@clisp.org>
67442
67443         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
67444         before <wchar.h>. Needed for OSF/1 and BSD/OS.
67445
67446 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67447
67448         * modules/snprintf (Depends-on): Remove minmax.
67449         (Maintainer): Add self and Bruno.
67450
67451 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67452
67453         * lib/.cppi-disable: Add snprintf.h, socket_.h.
67454         * lib/snprintf.c: Include <errno.h> and <limits.h>.
67455         (EOVERFLOW): Define if the system does not.
67456         Do not include "minmax.h"; it wasn't used.
67457         (snprintf): Don't assume size_t promotes to an unsigned type.
67458         Fix bug when generated string was too long for the buffer: the
67459         buffer's contents are supposed to be the initial prefix of the
67460         output.  Don't assume vasnprintf returns EOVERFLOW if the size
67461         exceeds INT_MAX; do the check ourselves.
67462
67463         Import the following changes from libc:
67464
67465         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
67466
67467         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
67468         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
67469         set wc to the byte which couldn't be converted.
67470         (re_string_reconstruct): Don't clear valid_raw_len before calling
67471         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
67472         tip_context using re_string_context_at.
67473
67474         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
67475
67476         * lib/posix/regex.h: g++ still cannot handled [restrict].
67477
67478         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
67479
67480         * lib/posix/regex.h: Remove special handling for VMS.
67481
67482 2006-08-10  Jim Meyering  <jim@meyering.net>
67483
67484         * modules/same-inode: New module.
67485         * modules/dev-ino: New module.
67486         * modules/cycle-check: Depend on these modules, rather than simply
67487         including their .h files.
67488         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
67489         required via m4/cycle-check.m4.
67490         * modules/same: Depend on new same-inode module, rather than
67491         including same-inode.h.
67492         * modules/chdir-safer: New file.
67493
67494         * modules/chown (Depends-on): Add stat-macros.
67495
67496 2006-08-10  Jim Meyering  <jim@meyering.net>
67497
67498         * m4/cycle-check.m4: New file.
67499         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
67500         * m4/dev-ino.m4, m4/same-inode.m4: New files.
67501
67502 2006-08-10  Eric Blake  <ebb9@byu.net>
67503
67504         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
67505         in from original proposal.
67506
67507 2006-08-10  Eric Blake  <ebb9@byu.net>
67508         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67509
67510         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
67511         namespace.
67512
67513 2006-08-10  Bruno Haible  <bruno@clisp.org>
67514
67515         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
67516         as well.
67517
67518 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67519
67520         Sync from coreutils.
67521
67522         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
67523
67524         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
67525         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
67526
67527 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67528
67529         * modules/restrict: Remove; no longer needed now that we assume
67530         Autoconf 2.59 or later.
67531         * MODULES.html.sh: Remove 'restrict'.
67532         * modules/argp (Depends-on): Remove 'restrict'.
67533         * modules/base64 (Depends-on): Likewise.
67534         * modules/gc (Depends-on): Likewise.
67535         * modules/getaddrinfo (Depends-on): Likewise.
67536         * modules/glob (Depends-on): Likewise.
67537         * modules/inet_ntop (Depends-on): Likewise.
67538         * modules/inet_pton (Depends-on): Likewise.
67539         * modules/memxor (Depends-on): Likewise.
67540         * modules/regex (Depends-on): Likewise.
67541         * modules/strtok_r (Depends-on): Likewise.
67542         * modules/time_r (Depends-on): Likewise.
67543
67544 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67545
67546         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
67547         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
67548         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67549         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
67550         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
67551         * m4/memxor.m4 (gl_MEMXOR): Likewise.
67552         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
67553         gl_C_RESTRICT replaced by AC_C_RESTRICT.
67554
67555         Merge from coreutils.
67556         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
67557         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
67558         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67559         * m4/time_r.m4 (gl_TIME_R): Likewise.
67560
67561 2006-08-09  Karl Berry  <karl@gnu.org>
67562
67563         * config/srclist.txt: no more gettext-tools, per Bruno.
67564
67565 2006-08-08  Eric Blake  <ebb9@byu.net>
67566
67567         * modules/verror: New module.
67568         * MODULES.html.sh: Document it.
67569
67570 2006-08-08  Eric Blake  <ebb9@byu.net>
67571
67572         * lib/verror.h, lib/verror.c: New files.
67573
67574 2006-08-08  Eric Blake  <ebb9@byu.net>
67575
67576         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
67577         verror_at_line output complies with GNU Coding Standards even when
67578         file is NULL.
67579
67580 2006-08-07  Bruno Haible  <bruno@clisp.org>
67581
67582         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
67583         versions of AIX.
67584         Reported by Ralf Wildenhues.
67585
67586 2006-08-07  Bruno Haible  <bruno@clisp.org>
67587
67588         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
67589         in an AC_DEFUN. Needed so that the autoconf snippets can use
67590         AC_REQUIRE.
67591
67592 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67593
67594         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67595         Initialize pkgdata_DATA.
67596         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
67597         overriding it.
67598
67599 2006-08-06  Eric Blake  <ebb9@byu.net>
67600
67601         * lib/error.h: Fold in some upstream changes from glibc.
67602         * lib/error.c: Likewise.
67603
67604 2006-08-04  Bruno Haible  <bruno@clisp.org>
67605
67606         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67607         Make the mostlyclean-local rule depend on mostlyclean-generic.
67608         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
67609
67610 2006-07-31  Bruno Haible  <bruno@clisp.org>
67611
67612         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
67613         <stdlib.h>, <string.h>.
67614
67615 2006-07-30  Bruno Haible  <bruno@clisp.org>
67616
67617         * modules/readlink (License): Change to LGPL.
67618
67619 2006-07-30  Bruno Haible  <bruno@clisp.org>
67620
67621         * modules/javaversion (Makefile.am): Distribute javaversion.java and
67622         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
67623         set PKGDATADIR to point to it.
67624
67625 2006-07-30  Bruno Haible  <bruno@clisp.org>
67626
67627         * modules/csharpexec (configure.ac): Comment out macro invocation.
67628         * modules/javaexec (configure.ac): Likewise.
67629         * modules/javacomp-script (configure.ac): Likewise.
67630
67631         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
67632
67633 2006-07-30  Bruno Haible  <bruno@clisp.org>
67634
67635         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
67636         linked-list.
67637
67638 2006-07-30  Bruno Haible  <bruno@clisp.org>
67639
67640         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
67641
67642 2006-07-30  Bruno Haible  <bruno@clisp.org>
67643
67644         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67645         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
67646         get removed.
67647
67648 2006-07-29  Bruno Haible  <bruno@clisp.org>
67649
67650         Make it possible for gnulib-tool to work with locally modified or
67651         augmented gnulib repositories.
67652         * gnulib-tool (func_usage): Document --local-dir option.
67653         (local_gnulib_dir): New variable.
67654         Handle --local-dir option.
67655         (func_lookup_file): New function.
67656         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
67657         (func_get_description, func_get_filelist, func_get_description,
67658         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
67659         func_get_automake_snippet, func_get_include_directive,
67660         func_get_license, func_get_maintainer): Use func_lookup_file.
67661         (func_import, func_create_testdir): Use func_lookup_file.
67662
67663 2006-07-29  Bruno Haible  <bruno@clisp.org>
67664
67665         * modules/setenv (Depends-on): Add unistd.
67666
67667 2006-07-29  Bruno Haible  <bruno@clisp.org>
67668
67669         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
67670
67671 2006-07-29  Bruno Haible  <bruno@clisp.org>
67672
67673         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
67674
67675 2006-07-29  Bruno Haible  <bruno@clisp.org>
67676
67677         * gnulib-tool (import, update): If there is no Makefile.am, look at
67678         aclocal.m4, instead of bailing out.
67679
67680 2006-07-29  Bruno Haible  <bruno@clisp.org>
67681
67682         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
67683         Categorize the options by when they are useful.
67684
67685 2006-07-29  Bruno Haible  <bruno@clisp.org>
67686
67687         * gnulib-tool (func_usage): Document option --no-libtool.
67688         Handle option --no-libtool.
67689         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
67690         for changed semantics of $libtool variable.
67691         (func_import): Likewise. If libtool is not used, show this through
67692         an option --no-libtool.
67693         (func_create_testdir): Update.
67694
67695 2006-07-29  Bruno Haible  <bruno@clisp.org>
67696
67697         * gnulib-tool (func_import): Extend error message about missing
67698         --doc-base.
67699
67700 2006-07-29  Bruno Haible  <bruno@clisp.org>
67701
67702         * gnulib-tool (func_import): Don't create the $docbase directory if
67703         there is no file to store there.
67704
67705 2006-07-29  Bruno Haible  <bruno@clisp.org>
67706
67707         * gnulib-tool (autoconf_minversion): If a --dir option is given and
67708         relevant, look for configure.ac there, not in the current directory.
67709         Also use a simple search for AC_PREREQ, not "autoconf --trace".
67710
67711 2006-07-29  Bruno Haible  <bruno@clisp.org>
67712
67713         * gnulib-tool (SORT): New variable.
67714         (func_usage): Undocument --assume-autoconf option.
67715         Remove --assume-autoconf option handling.
67716         (autoconf_minversion): Determine from the contents of configure.ac.
67717         (func_import): Remove autoconf_minversion handling.
67718         Suggested by Eric Blake.
67719
67720 2006-07-29  Bruno Haible  <bruno@clisp.org>
67721
67722         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
67723
67724 2006-07-29  Bruno Haible  <bruno@clisp.org>
67725
67726         * config/srclist.txt (*setenv.[ch]): Remove rules.
67727
67728 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67729
67730         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
67731
67732 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67733
67734         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
67735         arpa/inet.h.
67736
67737 2006-07-28  Simon Josefsson  <jas@extundo.com>
67738
67739         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
67740         * modules/inet_pton (Depends-on): Likewise.
67741
67742 2006-07-28  Simon Josefsson  <jas@extundo.com>
67743
67744         * m4/netinet_in_h.m4: New file.
67745
67746 2006-07-28  Simon Josefsson  <jas@extundo.com>
67747
67748         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
67749         #include's.
67750
67751 2006-07-28  Simon Josefsson  <jas@extundo.com>
67752
67753         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
67754         #include's.
67755
67756 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
67757
67758         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
67759         setgid on directories only if they set these bits.
67760         * lib/modechange.h: Remove obsolete comment about masks.
67761
67762 2006-07-28  Eric Blake  <ebb9@byu.net>
67763
67764         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
67765         macro expansion.
67766
67767 2006-07-28  Bruno Haible  <bruno@clisp.org>
67768
67769         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
67770
67771 2006-07-28  Bruno Haible  <bruno@clisp.org>
67772
67773         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
67774
67775 2006-07-28  Bruno Haible  <bruno@clisp.org>
67776
67777         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
67778         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
67779         Define fallbacks.
67780         Avoids link error on FreeBSD 4.x.
67781         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67782
67783         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
67784         encoding.
67785         * lib/mbswidth.c (iswcntrl): Likewise.
67786
67787 2006-07-27  Bruno Haible  <bruno@clisp.org>
67788
67789         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
67790         test.
67791
67792 2006-07-27  Bruno Haible  <bruno@clisp.org>
67793
67794         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
67795         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
67796         defined.
67797
67798 2006-07-26  Eric Blake  <ebb9@byu.net>
67799
67800         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
67801
67802 2006-07-26  Eric Blake  <ebb9@byu.net>
67803
67804         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
67805         like mingw that lack mkstemp.
67806         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
67807         avoid compilation warning on mingw.
67808
67809 2006-07-26  Bruno Haible  <bruno@clisp.org>
67810
67811         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
67812         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
67813         INT_FAST*_MIN, INTPTR_MIN.
67814
67815 2006-07-25  Bruno Haible  <bruno@clisp.org>
67816
67817         * modules/version-etc (Depends-on): Add stdarg.
67818
67819 2006-07-25  Bruno Haible  <bruno@clisp.org>
67820
67821         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
67822         complex commands.
67823
67824 2006-07-25  Bruno Haible  <bruno@clisp.org>
67825
67826         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
67827         defined in <stdarg.h> or config.h.
67828
67829 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67830
67831         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
67832         (gl_STDIO_SAFER): Remove.
67833
67834 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67835
67836         * MODULES.html.sh (File stream based Input/Output):
67837         Add fopen-safer, tmpfile-safer; remove stdio-safer.
67838         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
67839         * modules/fopen-safer, modules/tmpfile-safer: New files.
67840         * modules/stdio-safer: Remove.
67841
67842 2006-07-24  Bruno Haible  <bruno@clisp.org>
67843
67844         * modules/tmpdir: New file.
67845         * MODULES.html.sh (File system functions): Add it.
67846
67847 2006-07-24  Bruno Haible  <bruno@clisp.org>
67848
67849         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
67850         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
67851
67852 2006-07-24  Bruno Haible  <bruno@clisp.org>
67853
67854         * modules/clean-temp: New file.
67855
67856 2006-07-24  Bruno Haible  <bruno@clisp.org>
67857
67858         * m4/tmpdir.m4: New file, from GNU gettext.
67859
67860 2006-07-24  Bruno Haible  <bruno@clisp.org>
67861
67862         * lib/tmpdir.h: New file, from GNU gettext.
67863         * lib/tmpdir.c: New file, from GNU gettext.
67864
67865 2006-07-24  Bruno Haible  <bruno@clisp.org>
67866
67867         * lib/clean-temp.h: New file, from GNU gettext.
67868         * lib/clean-temp.c: New file, from GNU gettext.
67869
67870 2006-07-23  Eric Blake  <ebb9@byu.net>
67871
67872         * modules/stdio-safer (Files): Add tmpfile-safer.c.
67873         (Depends-on): Add binary-io.
67874
67875 2006-07-23  Eric Blake  <ebb9@byu.net>
67876
67877         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
67878
67879 2006-07-23  Eric Blake  <ebb9@byu.net>
67880
67881         * lib/tmpfile-safer.c: New file.
67882         * lib/stdio-safer.h (fopen_safer): Add prototype.
67883         * lib/stdio--.h (tmpfile): Make safer.
67884
67885 2006-07-23  Bruno Haible  <bruno@clisp.org>
67886
67887         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
67888         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
67889         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
67890         gl_linked_remove_at): Use it.
67891
67892 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67893         and Simon Josefsson <jas@extundo.com>
67894
67895         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
67896
67897         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
67898
67899 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67900
67901         * modules/close-stream: New file.
67902         * modules/closeout (Description): Make it clear that it exits
67903         with a diagnostic on error.
67904         (Depends-on): Add close-stream.  Remove fpending, stdbool.
67905         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
67906
67907 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67908
67909         * m4/close-stream.m4: New file.
67910
67911 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67912
67913         * lib/close-stream.c, lib/close-stream.h: New files.
67914
67915 2006-07-22  Bruno Haible  <bruno@clisp.org>
67916
67917         Merge from GNU gettext 0.15.
67918
67919         2006-05-01  Bruno Haible  <bruno@clisp.org>
67920
67921                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
67922
67923         2006-07-22  Bruno Haible  <bruno@clisp.org>
67924
67925                 * modules/javaversion: New file.
67926                 * MODULES.html.sh (Java): Add javaversion.
67927
67928         2006-03-12  Bruno Haible  <bruno@clisp.org>
67929
67930                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
67931
67932         2005-12-04  Bruno Haible  <bruno@clisp.org>
67933
67934                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
67935                 (untested).
67936
67937         2006-06-21  Bruno Haible  <bruno@clisp.org>
67938
67939                 Avoid warnings from recent versions of mcs.
67940                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
67941                 -o, -L, -r any more. Use options documented since mcs-1.0
67942                 instead. Similarly for -g.
67943
67944         2005-12-04  Bruno Haible  <bruno@clisp.org>
67945
67946                 * build-aux/csharpcomp.sh.in: Suffix for resources is
67947                 .resources, not .resource.
67948
67949         2005-07-09  Bruno Haible  <bruno@clisp.org>
67950
67951                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
67952                 add a .dll suffix.
67953                 Reported by Mark Junker <mjscod@gmx.de>.
67954
67955         2006-07-22  Bruno Haible  <bruno@clisp.org>
67956
67957                 * modules/gettext: Upgrade to gettext-0.15.
67958                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
67959                 m4/visibility.m4.
67960                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
67961
67962 2006-07-22  Bruno Haible  <bruno@clisp.org>
67963
67964         Merge from GNU gettext 0.15.
67965
67966         2006-03-25  Bruno Haible  <bruno@clisp.org>
67967
67968                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
67969
67970         2006-07-21  Bruno Haible  <bruno@clisp.org>
67971
67972                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
67973                 "1.1".
67974
67975         2006-05-09  Bruno Haible  <bruno@clisp.org>
67976
67977                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67978                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67979                 for the conftestver execution.
67980
67981         2006-05-01  Bruno Haible  <bruno@clisp.org>
67982
67983                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67984                 optional target-version argument. Verify that the compiler
67985                 groks source of the specified source-version, or add -source
67986                 option as necessary. Verify that the compiler produces
67987                 bytecode in the specified target-version, or add -target and
67988                 -source options as necessary. Make the result of the test
67989                 available as variable CONF_JAVAC. Also log error output in
67990                 config.log.
67991
67992         2006-03-11  Bruno Haible  <bruno@clisp.org>
67993
67994                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67995
67996         2006-05-09  Bruno Haible  <bruno@clisp.org>
67997
67998                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67999                 CLASSPATH_SEPARATOR to a semicolon.
68000
68001         2006-03-12  Bruno Haible  <bruno@clisp.org>
68002
68003                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
68004                 available as variable CONF_JAVA, for subsequent autoconf
68005                 tests. Also log error output in config.log.
68006
68007         2006-07-19  Bruno Haible  <bruno@clisp.org>
68008
68009                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
68010                 that getline works on glibc2 systems. Needed to avoid trouble
68011                 in relocatable.c.
68012                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
68013
68014         2005-12-04  Bruno Haible  <bruno@clisp.org>
68015
68016                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
68017                 launcher (untested).
68018
68019         2005-12-04  Bruno Haible  <bruno@clisp.org>
68020
68021                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
68022
68023         2006-07-22  Bruno Haible  <bruno@clisp.org>
68024
68025                 * gettext.m4: Update from GNU gettext-0.15.
68026                 * nls.m4: Likewise.
68027                 * po.m4: Likewise.
68028                 * inttypes-pri.m4: Likewise.
68029                 * inttypes-h.m4: Renamed from inttypes.m4.
68030                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
68031
68032 2006-07-22  Bruno Haible  <bruno@clisp.org>
68033
68034         Merge from GNU gettext 0.15.
68035
68036         2005-07-05  Bruno Haible  <bruno@clisp.org>
68037
68038                 * printf-args.c (printf_fetchargs): Work around broken
68039                 definition of wint_t on mingw.
68040
68041         2005-02-12  Bruno Haible  <bruno@clisp.org>
68042
68043                 * xallocsa.h: Add extern "C" for C++.
68044
68045         2006-05-17  Bruno Haible  <bruno@clisp.org>
68046
68047                 Cygwin portability.
68048                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
68049
68050         2006-04-30  Bruno Haible  <bruno@clisp.org>
68051
68052                 * progreloc.c: Include <mach-o/dyld.h> if available.
68053                 (find_executable): Use _NSGetExecutablePath when possible.
68054
68055         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68056
68057                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
68058                 function.
68059
68060         2005-12-29  Bruno Haible  <bruno@clisp.org>
68061
68062                 * progreloc.c (set_program_name_and_installdir): Fix
68063                 compilation error.
68064
68065         2005-12-04  Bruno Haible  <bruno@clisp.org>
68066
68067                 Cygwin portability.
68068                 * progreloc.c: Include <windows.h> also on Cygwin.
68069                 (find_executable): Add support for Cygwin.
68070                 (set_program_name_and_installdir): Handle also platforms with
68071                 nonempty EXEEXT.
68072
68073         2006-07-11  Bruno Haible  <bruno@clisp.org>
68074
68075                 * javacomp.c: Fix a comment.
68076                 Reported by Jim Meyering.
68077
68078         2006-04-30  Bruno Haible  <bruno@clisp.org>
68079
68080                 * javacomp.h (compile_java_class): Add source_version,
68081                 target_version arguments.
68082                 * javacomp.c: Rewritten to choose only a compiler that
68083                 respects the specified source_version and target_version.
68084
68085         2006-06-27  Bruno Haible  <bruno@clisp.org>
68086
68087                 Assume correct S_ISDIR macro.
68088                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
68089
68090         2006-07-22  Bruno Haible  <bruno@clisp.org>
68091
68092                 * javaversion.h: New file, from GNU gettext.
68093                 * javaversion.c: New file, from GNU gettext.
68094                 * javaversion.java: New file, from GNU gettext.
68095                 * javaversion.class: New file, from GNU gettext.
68096
68097         2006-05-17  Bruno Haible  <bruno@clisp.org>
68098
68099                 Cygwin portability.
68100                 * javaexec.c (execute_java_class): Test for jview program
68101                 also on Cygwin.
68102
68103         2006-04-09  Bruno Haible  <bruno@clisp.org>
68104
68105                 * fatal-signal.c: Don't include string.h.
68106                 (at_fatal_signal): Use a copying loop instead of memcpy.
68107
68108         2005-12-04  Bruno Haible  <bruno@clisp.org>
68109
68110                 * csharpexec.c: Add support for 'clix' launcher (untested).
68111                 (execute_csharp_using_sscli): New function.
68112                 (execute_csharp_program): Call it.
68113
68114         2006-06-21  Bruno Haible  <bruno@clisp.org>
68115
68116                 Avoid warnings from recent versions of mcs.
68117                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
68118                 -o, -L, -r any more. Use options documented since mcs-1.0
68119                 instead. Similarly for -g.
68120
68121         2005-07-09  Bruno Haible  <bruno@clisp.org>
68122
68123                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
68124                 add a .dll suffix.
68125                 Reported by Mark Junker <mjscod@gmx.de>.
68126
68127         2006-06-17  Bruno Haible  <bruno@clisp.org>
68128
68129                 * config.charset: Update for NetBSD 3.0.
68130
68131         2006-05-17  Bruno Haible  <bruno@clisp.org>
68132
68133                 Cygwin portability.
68134                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
68135
68136         2006-05-16  Bruno Haible  <bruno@clisp.org>
68137
68138                 * localcharset.c [CYGWIN]: Include <windows.h>.
68139                 (get_charset_aliases): For Cygwin, return the same CPxxx
68140                 aliases list as under WIN32.
68141                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
68142                 the environment variables. Fall back to GetACP().
68143
68144         2006-04-05  Bruno Haible  <bruno@clisp.org>
68145
68146                 * config.charset: Update Juan Manuel Guerrero's address.
68147
68148         2005-02-12  Bruno Haible  <bruno@clisp.org>
68149
68150                 * allocsa.h: Add extern "C" for C++.
68151
68152         2005-02-10  Bruno Haible  <bruno@clisp.org>
68153
68154                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
68155                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
68156
68157         2006-07-22  Bruno Haible  <bruno@clisp.org>
68158
68159                 * gettext.h: Update to GNU gettext-0.15.
68160
68161 2006-07-22  Bruno Haible  <bruno@clisp.org>
68162
68163         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
68164         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
68165         lib-prefix.m4, longdouble.m4, ssize_t.m4.
68166
68167 2006-07-21  Eric Blake  <ebb9@byu.net>
68168
68169         * modules/stdlib-safer: New file.
68170         * MODULES.html.sh (File stream based Input/Output): Add
68171         stdlib-safer.
68172
68173 2006-07-21  Eric Blake  <ebb9@byu.net>
68174
68175         * lib/stdlib-safer.h: New file from coreutils, required by
68176         stdlib--.h.
68177
68178 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
68179
68180         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
68181
68182 2006-07-20  Bruno Haible  <bruno@clisp.org>
68183
68184         * gnulib-tool: Recognize new option --assume-autoconf.
68185         (autoconf_minversion): New variable.
68186         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
68187
68188 2006-07-20  Bruno Haible  <bruno@clisp.org>
68189
68190         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
68191
68192 2006-07-19  Derek R. Price  <derek@ximbiot.com>
68193
68194         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
68195         Reindent and repaginate.
68196
68197 2006-07-19  Derek Price  <derek@ximbiot.com>
68198
68199         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
68200         Correct grammar.
68201
68202 2006-07-17  Bruno Haible  <bruno@clisp.org>
68203
68204         * modules/list: New file.
68205         * modules/array-list: New file.
68206         * modules/carray-list, modules/carray-list-tests: New files.
68207         * modules/linked-list, modules/linked-list-tests: New files.
68208         * modules/avltree-list, modules/avltree-list-tests: New files.
68209         * modules/rbtree-list, modules/rbtree-list-tests: New files.
68210         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
68211         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
68212         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
68213         * modules/oset: New file.
68214         * modules/array-oset: New file.
68215         * modules/avltree-oset, modules/avltree-oset-tests: New files.
68216         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
68217         * tests/test-carray_list.c: New file.
68218         * tests/test-linked_list.c: New file.
68219         * tests/test-avltree_list.c: New file.
68220         * tests/test-rbtree_list.c: New file.
68221         * tests/test-linkedhash_list.c: New file.
68222         * tests/test-avltreehash_list.c: New file.
68223         * tests/test-rbtreehash_list.c: New file.
68224         * tests/test-avltree_oset.c: New file.
68225         * tests/test-rbtree_oset.c: New file.
68226         * MODULES.html.sh (Container data structures): New section.
68227
68228 2006-07-17  Bruno Haible  <bruno@clisp.org>
68229
68230         * m4/gl_list.m4: New file.
68231
68232 2006-07-17  Bruno Haible  <bruno@clisp.org>
68233
68234         * lib/gl_list.h: New file.
68235         * lib/gl_list.c: New file.
68236         * lib/gl_array_list.h: New file.
68237         * lib/gl_array_list.c: New file.
68238         * lib/gl_carray_list.h: New file.
68239         * lib/gl_carray_list.c: New file.
68240         * lib/gl_linked_list.h: New file.
68241         * lib/gl_linked_list.c: New file.
68242         * lib/gl_anylinked_list1.h: New file.
68243         * lib/gl_anylinked_list2.h: New file.
68244         * lib/gl_avltree_list.h: New file.
68245         * lib/gl_avltree_list.c: New file.
68246         * lib/gl_anyavltree_list1.h: New file.
68247         * lib/gl_anyavltree_list2.h: New file.
68248         * lib/gl_rbtree_list.h: New file.
68249         * lib/gl_rbtree_list.c: New file.
68250         * lib/gl_anyrbtree_list1.h: New file.
68251         * lib/gl_anyrbtree_list2.h: New file.
68252         * lib/gl_anytree_list1.h: New file.
68253         * lib/gl_anytree_list2.h: New file.
68254         * lib/gl_linkedhash_list.h: New file.
68255         * lib/gl_linkedhash_list.c: New file.
68256         * lib/gl_anyhash_list1.h: New file.
68257         * lib/gl_anyhash_list2.h: New file.
68258         * lib/gl_avltreehash_list.h: New file.
68259         * lib/gl_avltreehash_list.c: New file.
68260         * lib/gl_rbtreehash_list.h: New file.
68261         * lib/gl_rbtreehash_list.c: New file.
68262         * lib/gl_anytreehash_list1.h: New file.
68263         * lib/gl_anytreehash_list2.h: New file.
68264
68265         * lib/gl_oset.h: New file.
68266         * lib/gl_oset.c: New file.
68267         * lib/gl_array_oset.h: New file.
68268         * lib/gl_array_oset.c: New file.
68269         * lib/gl_avltree_oset.h: New file.
68270         * lib/gl_avltree_oset.c: New file.
68271         * lib/gl_rbtree_oset.h: New file.
68272         * lib/gl_rbtree_oset.c: New file.
68273         * lib/gl_anytree_oset.h: New file.
68274
68275 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68276
68277         * m4/mkancesdirs.m4: New file.
68278         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
68279         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
68280         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
68281         it.
68282
68283 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68284
68285         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
68286         * lib/mkancesdirs.h: New files.
68287         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
68288         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
68289         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
68290         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
68291         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
68292         callers changed.  Revamp internals significantly, by not
68293         attempting to create directories that are temporarily more
68294         permissive than the final results.  Do not attempt to use
68295         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
68296         This removes some race conditions, fixes some bugs, and simplifies
68297         things.  Use new dirchownmod function to do owner and mode changes.
68298         * lib/mkdir-p.h: Likewise.
68299         * lib/modechange.c (octal_to_mode): New function.
68300         (struct mode_change): New member mentioned.
68301         (make_node_op_equals): New arg mentioned.  All callers changed.
68302         (mode_compile): Keep track of which mode bits the user has explicitly
68303         mentioned.
68304         (mode_adjust): New arg DIR, so that we implement the X op correctly.
68305         New arg PMODE_BITS, to keep track of which mode bits the user
68306         mentioned; it treats S_ISUID and S_ISGID speciall.
68307         All callers changed.
68308         * lib/modechange.h: Likewise.
68309
68310 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68311
68312         * MODULES.html.sh: Add mkancestors.
68313         * modules/mkancesdirs: New module.
68314         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
68315         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
68316         The chdir-safer and afs files are now orphans; I'll remove them
68317         unless someone speaks up.
68318         Add lib/dirchownmod.c, lib/dirchownmod.h.
68319         (Depends-on): Remove alloca, chown, save-cwd, dirname.
68320         Add lchown, mkancesdirs.
68321         (Maintainer): Add self.
68322
68323 2006-07-15  Karl Berry  <karl@gnu.org>
68324
68325         * gnulib-tool: help message wording/arrangement.
68326
68327 2006-07-14  Simon Josefsson  <jas@extundo.com>
68328
68329         * doc/gnulib.texi (Libtool and Windows): New section.
68330
68331 2006-07-12  Simon Josefsson  <jas@extundo.com>
68332
68333         * modules/gendocs (License): Fix license, approved by Karl.
68334
68335 2006-07-12  Eric Blake  <ebb9@byu.net>
68336
68337         * MODULES.html.sh: Add gendocs.
68338
68339 2006-07-11  Eric Blake  <ebb9@byu.net>
68340
68341         * modules/fdl: New module, to install doc/fdl.texi.
68342         * MODULES.html.sh: Add new section for documentation modules.
68343         * gnulib-tool: Avoid space-tab.
68344         (--doc-base): New option, to manage files from doc.
68345
68346 2006-07-11  Eric Blake  <ebb9@byu.net>
68347
68348         * m4/absolute-header.m4: Fix comments to match recent change.
68349
68350 2006-07-11  Eric Blake  <ebb9@byu.net>
68351
68352         * gnulib-tool: List --doc-base before --tests-base.
68353
68354 2006-07-11  Derek R. Price  <derek@ximbiot.com>
68355
68356         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
68357
68358 2006-07-11  Bruno Haible  <bruno@clisp.org>
68359
68360         * README: Mention where to put documentation.
68361
68362 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68363
68364         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
68365
68366 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
68367
68368         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
68369         to stdint.m4.
68370
68371 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
68372
68373         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
68374         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
68375         "no/such/file/stdint.h" when there is no such file, so that
68376         the resulting C code can be parsed by dodgy compilers.
68377         Problems reported by Bob Proulx.
68378
68379 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68380
68381         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
68382         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68383         macros into the GNU _D_EXACT_NAMLEN.
68384         * lib/savedir.c:  Likewise.
68385         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
68386
68387 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68388         and Paul Eggert  <eggert@cs.ucla.edu>
68389
68390         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
68391         * m4/savedir.m4:
68392         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68393         macros into the GNU _D_EXACT_NAMLEN.
68394
68395 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68396
68397         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
68398         around the absolute name, to work around a problem with the HP-UX
68399         11.23 native C compiler, reported by Bob Proulx.
68400
68401 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68402
68403         * doc/maintain.texi, make-stds.texi: Sync from
68404         <http://savannah.gnu.org/projects/gnustandards>.
68405
68406 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68407
68408         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
68409
68410 2006-07-09  Jim Meyering  <jim@meyering.net>
68411
68412         * m4/glob.m4: Remove a doubled word in a comment.
68413
68414 2006-07-09  Jim Meyering  <jim@meyering.net>
68415
68416         * lib/argp-pv.c: Remove a doubled word in a comment.
68417         * lib/check-version.c (check_version): Likewise.
68418         * lib/javacomp.c (compile_java_class): Likewise.
68419
68420 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68421
68422         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
68423         for the benefit of people using Autoconf 2.60.  If you want to
68424         support older Autoconf versions you can copy m4/onceonly_2_57.m4
68425         (or m4/onceonly.m4, if pre-2.57) manually.
68426
68427 2006-07-08  Jim Meyering  <jim@meyering.net>
68428
68429         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
68430         comment.
68431         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
68432         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
68433         comment.
68434
68435 2006-07-08  Jim Meyering  <jim@meyering.net>
68436
68437         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
68438
68439 2006-07-07  Simon Josefsson  <jas@extundo.com>
68440
68441         * tests/test-crc.c: Change expected crc value, the test vector
68442         were probably computed using the old broken crc.c?
68443
68444 2006-07-06  Simon Josefsson  <jas@extundo.com>
68445
68446         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
68447         now the canonical place for the M4 file).
68448
68449         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
68450         from the sys_socket dependency now.
68451
68452         * modules/inet_pton (Files): Ditto.
68453
68454         * modules/inet_ntop (Files): Ditto.
68455
68456 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68457
68458         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
68459         not gl_PREREQ_GETUSERSHELL.
68460
68461 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68462
68463         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
68464         with only one argument, for Autoconf 2.60.
68465         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
68466         expand to nothing, so add a shell command to avoid syntax error.
68467         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68468
68469 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68470
68471         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
68472
68473 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68474
68475         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
68476         no longer needed.  Check for isblank decl.
68477         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
68478         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
68479         of existence.
68480
68481 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68482
68483         * lib/getloadavg.c: Use __VMS, not VMS.
68484         * lib/getopt.c: Likewise.
68485         * lib/getpagesize.h: Likewise.
68486         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
68487         and probably does not work.
68488
68489 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68490
68491         * lib/.cppi-disable: Add wcwidth.
68492         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
68493         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
68494         (ISGRAPH): Remove.  All uses changed to isgraph.
68495         (FOLD) [!defined _LIBC]: Remove special case.
68496         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
68497         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
68498         HAVE_ISBLANK.
68499         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
68500         case.
68501
68502 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68503
68504         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
68505         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
68506         brackets.  Other minor changes to suppress some compiler
68507         warnings.
68508
68509 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68510         and Paul Eggert  <eggert@cs.ucla.edu>
68511
68512         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
68513         of invoking obsolescent AC_HEADER_DIRENT macro.
68514         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
68515         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
68516         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
68517         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
68518         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
68519         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68520         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
68521         * m4/readdir.m4: Remove; no longer needed.
68522
68523 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68524         and Paul Eggert  <eggert@cs.ucla.edu>
68525
68526         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
68527         Don't worry about this obsolete case any more.
68528         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
68529         directories.
68530         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
68531         worry about this obsolete case any more.
68532         * lib/fts.c: Likewise.
68533         * lib/getcwd.c: Likewise.
68534         * lib/glob.h: Likewise.
68535         * lib/savedir.c: Likewise.
68536
68537 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
68540         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
68541         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
68542         needed.
68543         All uses removed.
68544         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68545         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68546         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
68547         needed.
68548         * m4/getdate.m4 (gl_GETDATE): Likewise.
68549         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68550         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68551         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68552         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68553         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68554         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68555         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
68556         needed.
68557
68558 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68559
68560         * lib/memcasecmp.c: Include <limits.h>.
68561         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
68562         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
68563         Don't assume isdigit succeeds only on '0' through '9'.
68564
68565 2006-07-05  Eric Blake  <ebb9@byu.net>
68566
68567         * modules/getaddrinfo (Depends-on): Add snprintf.
68568
68569 2006-07-05  Eric Blake  <ebb9@byu.net>
68570
68571         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
68572         to avoid 'header present but could not be compiled' on cygwin.
68573
68574 2006-07-05  Eric Blake  <ebb9@byu.net>
68575
68576         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
68577         missing from netdb.h.
68578         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
68579
68580 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68581
68582         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
68583         no longer needed.
68584         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
68585         * m4/getdate.m4 (gl_GETDATE): Likewise.
68586         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68587         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68588         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68589         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68590         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68591
68592 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68593
68594         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
68595         All uses of is_space replaced by isspace.
68596         * lib/exit.h: Don't talk about STDC_HEADERS.
68597         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
68598         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
68599         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
68600         replaced by isprint etc.
68601         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
68602         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68603         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
68604         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
68605         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
68606         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68607
68608 2006-07-05  Bruno Haible  <bruno@clisp.org>
68609
68610         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
68611         the function exists, before testing against AIX.
68612         Reported by Martin Lambers <marlam@marlam.de>.
68613
68614 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68615
68616         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
68617         From Mark D. Baushke.
68618
68619 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68620
68621         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
68622         to the absolute name, not just one, to bypass Sun C 5.8's
68623         "warning: #include of /usr/include/... may be non-portable".
68624
68625 2006-07-04  Eric Blake  <ebb9@byu.net>
68626
68627         * modules/dirname-tests: New test module.
68628         * tests/test-dirname.c: New file, replacing dirname.c
68629         TEST_DIRNAME section that was recently deleted.
68630
68631 2006-07-04  Bruno Haible  <bruno@clisp.org>
68632
68633         Assume ANSI C header files and <ctype.h> functions.
68634         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
68635         (mbsnwidth): Use isprint, iscntrl instead.
68636
68637 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68638
68639         Merge from coreutils.
68640         * MODULES.html.sh: Add xstrtold.
68641         * modules/xstrtold: New file.
68642         * modules/cycle-check (Files): Add lib/same-inode.h.
68643         * modules/dirname (Files): Add m4/double-slash-root.m4.
68644         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
68645         * modules/mkdir-p (Files): Add lib/same-inode.h.
68646         * modules/same (Files): Add lib/same-inode.h.
68647
68648 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68649
68650         * m4/absolute-header.m4: Renamed from full-header-path.m4.
68651         This is to keep the terminology clean; POSIX talks about
68652         "absolute pathnames", not "full pathnames", but the GNU
68653         Coding Standards say to use "path" for something else;
68654         so use "absolute" to keep both sides happy.
68655         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
68656         Set gl_absolute_header, not gl_full_header_path.
68657         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
68658         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
68659         All uses changed.
68660
68661         Merge from coreutils.
68662
68663         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68664
68665         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
68666         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
68667         want to require the building of c-strtod.o.
68668         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
68669         needs -lm directly.
68670         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
68671
68672         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68673
68674         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
68675         --as-needed option if available.  Problem reported by Albert Chin in
68676         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
68677         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
68678         cc merely issues a bunch of annoying warnings for --as-needed
68679         (this problem was reported by Bob Proulx).  Also, try linking with
68680         -lm to detect a bug in binutils 2.16 (this problem was reported
68681         by Ralf Wildenhues).
68682
68683         2006-06-18  Jim Meyering  <jim@meyering.net>
68684
68685         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
68686         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
68687         macro.
68688         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
68689         also check for glibc-2.4's abort-inducing bug.
68690
68691         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
68692         Low-probability clean-up should be to use rmdir to get rid of
68693         the just-created directory, not unlink.
68694
68695         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
68696         configure fail, and request a bug report to inform us about it.
68697         Add a comment that, barring reports to the contrary, in 2007 we'll
68698         assume ftruncate is universally available.
68699
68700         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68701
68702         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
68703
68704         2006-03-12  Jim Meyering  <jim@meyering.net>
68705
68706         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
68707         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
68708         * m4/same.m4 (gl_SAME): Likewise.
68709         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
68710
68711         2006-03-11  Eric Blake  <ebb9@byu.net>
68712
68713         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
68714         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
68715         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
68716         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
68717
68718 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68719
68720         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
68721         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
68722         reported by Mark D. Baushke, one in
68723         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
68724
68725         Merge from coreutils.
68726
68727         * lib/.cppi-disable: Add stdint_.h.
68728         * lib/.cvsignore: Add stdint.h.
68729
68730         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68731
68732         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
68733         both double and long double versions.
68734         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
68735         * lib/xstrtold.c: New file.
68736         * lib/xstrtod.h (xstrtold): New decl.
68737
68738         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68739
68740         * lib/filemode.c (setst): Remove.
68741         (strmode): Rewrite to avoid setst.  This makes the code shorter,
68742         (arguably) clearer, and the generated code is a bit smaller on my
68743         Debian GNU/Linux stable x86 host.
68744
68745         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68746
68747         * lib/filemode.c: Include "filemode.h" first, to test the interface.
68748         Assume that filemode.h includes sys/types.h and sys/stat.h.
68749         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
68750         (ftypelet): Reorder to put common cases first, for efficiency.
68751         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
68752         to do 'M'.
68753         (strmode): Renamed from mode_string, and now stores 12 bytes instead
68754         of 10, for compatibility with FreeBSD.  All callers changed.
68755         (filemodestring): Now stores 12 bytes instead of 10, and sets file
68756         types that can't be deduced solely from st_mode.  First arg is now a
68757         const pointer.
68758         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
68759         (strmode): Renamed from mode_string.
68760         (filemodestring): New decl.
68761         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
68762         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
68763         needed.
68764         (S_ISPORT, S_ISWHT): New macros, if not already defined.
68765
68766         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68767
68768         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
68769         fsusage.h now does that.  Include fsusage.h first, to test interface.
68770         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
68771         at most one method (the old code could have generated decls that
68772         didn't conform to C89, not that this was ever exercised).
68773         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
68774
68775         2006-03-19  Jim Meyering  <jim@meyering.net>
68776
68777         Work even in a chroot where d_ino values for entries in "/"
68778         don't match the stat.st_ino values for the same names.
68779         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
68780         number, iterate through all entries again, using lstat instead.
68781         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
68782         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
68783
68784         * lib/getcwd.c (__getcwd): Clarify a comment.
68785         Use memcpy in place of a call to strcpy.
68786
68787         2006-03-12  Jim Meyering  <jim@meyering.net>
68788
68789         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
68790         matches that of the current directory (which we're about to chdir ".."
68791         out of), then save the dev-ino of the parent, instead.
68792
68793         * lib/same-inode.h (SAME_INODE): New file/macro.
68794         * lib/chdir-safer.c (SAME_INODE): Remove definition.
68795         Include "same-inode.h", instead.
68796         * lib/same.c: Likewise.
68797         * lib/cycle-check.h: Include "same-inode.h".
68798         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
68799         * lib/cycle-check.c (SAME_INODE): Remove definition.
68800         * lib/root-dev-ino.h: Include "same-inode.h".
68801
68802         2006-03-11  Eric Blake  <ebb9@byu.net>
68803
68804         * lib/same.c (same_name): s/base_name/last_component/
68805         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
68806         * lib/filenamecat.c (file_name_concat): Likewise.
68807
68808         2006-03-11  Eric Blake  <ebb9@byu.net>,
68809                     Paul Eggert  <eggert@cs.ucla.edu>
68810
68811         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
68812         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
68813         drive prefix.
68814         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
68815         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
68816         (last_component): New method.
68817         * lib/dirname.c (dir_len): Determine when drive letters need a
68818         subsequent slash.  Preserve // when it is special.
68819         (dir_name): Don't append dot when drive letter is absolute.
68820         [TEST_DIRNAME]: Move into a full-blown gnulib test.
68821         * lib/basename.c (base_name): New semantics - malloc the result.
68822         Preserve // when it is special.  Preserve relative files that look
68823         like drive letters.
68824         (base_len): Preserve // when it is special.
68825         (last_component): New method, similar to old base_name semantics.
68826         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
68827         base_name.  Strip redundant slashes from ///.
68828
68829 2006-07-03  Jim Meyering  <jim@meyering.net>
68830
68831         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
68832         macro is used before the first cycle_check call.
68833
68834 2006-07-03  Eric Blake  <ebb9@byu.net>
68835
68836         * modules/dirname (Depends-on): Add xstrndup.
68837
68838 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68839
68840         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
68841         test cases, so that config.log is a bit easier to follow.
68842
68843 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68844
68845         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
68846         both are 64 bits, since this seems to be the tradition, and this
68847         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
68848         we ever run into a host that prefers long long to long in this
68849         case, we'll need another configure-time test.  Problem reported by
68850         Jim Meyering.
68851
68852 2006-07-02  Eric Blake  <ebb9@byu.net>
68853
68854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
68855
68856 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68857
68858         * modules/inttypes (Depends-on): No longer depends on stdint.
68859         * modules/stdint (Description): Say more about assumptions.
68860         Say that the fast types might differ.  Say macros are used.
68861         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
68862         (Makefile.am): Revise list of substituted symbols to match
68863         new stdint.m4.
68864         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
68865         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
68866         * tests/test-stdint.c (verify_same_types)
68867         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
68868         the code conforms to C99/C89.
68869         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
68870         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
68871
68872 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68873
68874         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
68875         but fix a bug, by requiring at least 64 bits.
68876         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
68877         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
68878         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
68879         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68880
68881         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
68882         changes.  Make 2.59 a prerequisite.  Check and substitute for
68883         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
68884         inttypes.h.  Do not use special include files; just use the
68885         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
68886         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
68887         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
68888         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
68889         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
68890         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
68891         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
68892         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
68893         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
68894         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
68895         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
68896         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
68897         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
68898         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
68899         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
68900         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
68901         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
68902         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
68903         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
68904         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
68905         WINT_MAX.  Check for C99 conformance more strictly, by detecting
68906         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
68907         not check for things that C99 does not require, e.g., int8_t.  If
68908         a test isn't needed unless <stdint.h> isn't working, and is
68909         unlikely to be needed for any other reason, then don't do it
68910         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
68911         size_t, since we assume C89 freestanding at least.  Do not check
68912         for sig_atomic_t, wchar_t, or wint_t, since the code now does
68913         the right thing even if the types are not defined.  Instead use:
68914         (gl_STDINT_TYPE_PROPERTIES): New macro.
68915         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
68916         testing whether <sys/types.h> clashes, as Autoconf does this for
68917         us now.  All uses removed.
68918         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
68919         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
68920         (gl_CHECK_TYPE_SAME):
68921         Remove; no longer needed.
68922         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
68923         exists, since we'll return 0 anyway in that case.
68924         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
68925
68926 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68927
68928         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
68929         possible collision with system files.
68930         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
68931         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
68932         WCHAR_MIN and WCHAR_MAX in this case.
68933         (<stddef.h>): Do not include; no longer needed.
68934         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
68935         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
68936         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
68937         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
68938         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
68939         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
68940         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
68941         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
68942         !defined(__c99))]: Include in this case too, since it's harmless
68943         now.
68944         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
68945         dangerous to do so.
68946         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
68947         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
68948         (_STDINT_MIN, _STDINT_MAX): New macros.
68949         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
68950         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
68951         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
68952         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
68953         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
68954         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
68955         macros, not typedefs; this simplifies things quite a bit.
68956         Use long int for all types narrower than int64_t.
68957         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
68958         Define in terms of long long int or int64_t or long int,
68959         not int64_t or int32_t.  This saves some compile-time testing.
68960         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
68961         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
68962         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
68963         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
68964         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
68965         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
68966         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
68967         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
68968         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
68969         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
68970         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68971         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68972         undef any previous version and define our own version, for
68973         simplicity and consistency with the new macros for types.
68974         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68975         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68976         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68977         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68978         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68979         @WINT_T_SUFFIX@ to keep things simple here.
68980         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68981         Simplify by assuming typical 8/16/32/64 host, since we're
68982         already doing that elsewhere anyway.
68983         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68984         and assume long long int is 64 bits if available.  This
68985         speeds up 'configure'.
68986
68987 2006-07-01  Eric Blake  <ebb9@byu.net>
68988
68989         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68990         Reported by Andreas Buening.
68991
68992 2006-07-01  Eric Blake  <ebb9@byu.net>
68993
68994         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68995
68996 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68997
68998         * lib/getaddrinfo.c: fixed typo
68999
69000 2006-06-29  Jim Meyering  <jim@meyering.net>
69001
69002         * modules/strftime (Maintainer): Add my name, since with the
69003         FPRINTFTIME changes strftime.c has forked from glibc.
69004
69005 2006-06-29  Eric Blake  <ebb9@byu.net>
69006
69007         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
69008
69009 2006-06-29  Eric Blake  <ebb9@byu.net>
69010
69011         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
69012
69013 2006-06-29  Eric Blake  <ebb9@byu.net>
69014
69015         * lib/stat_.h: New file.
69016
69017 2006-06-29  Eric Blake  <ebb9@byu.net>
69018
69019         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
69020         unused static function.
69021
69022 2006-06-29  Eric Blake  <ebb9@byu.net>
69023
69024         * doc/functions.texi (Function Portability): Document missing lstat
69025         on mingw.
69026
69027 2006-06-29  Eric Blake  <ebb9@byu.net>
69028
69029         * MODULES.html.sh: Add sys_stat.
69030         * modules/sys_stat: New module.
69031         * modules/mkstemp (Depends-on): Add sys_stat.
69032
69033 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69034
69035         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
69036
69037 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69038
69039         * m4/c-bs-a.m4: Removed.
69040
69041 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69042
69043         * lib/strftime.c: Assume strftime() exists.
69044
69045 2006-06-29  Derek Price  <derek@ximbiot.com>
69046
69047         * modules/c-bs-a: Removed - \a is C89.
69048         * MODULES.html.sh: Remove c-bs-a.
69049
69050 2006-06-29  Bruno Haible  <bruno@clisp.org>
69051
69052         * modules/wcwidth (License): Change to LGPL.
69053
69054 2006-06-28  Simon Josefsson  <jas@extundo.com>
69055
69056         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
69057         on _WIN32.
69058
69059         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
69060         getnameinfo.
69061
69062 2006-06-28  Simon Josefsson  <jas@extundo.com>
69063
69064         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
69065
69066 2006-06-28  Simon Josefsson  <jas@extundo.com>
69067
69068         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
69069         functions there.  It will succeed on Windows XP, but on Windows
69070         2000 and (presumably) earlier, it will fail, and use the internal
69071         re-implementation.
69072         (use_win32_p): New function.
69073         (getaddrinfo): Use strtoul on servname, to support numeric ports.
69074         Support AI_NUMERICSERV to disable getservbyname.
69075         (getnameinfo): New function, only supports
69076         NI_NUMERICHOST|NI_NUMERICSERV for now.
69077
69078         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
69079         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
69080         getnameinfo.
69081
69082 2006-06-28  Eric Blake  <ebb9@byu.net>
69083
69084         * modules/wcwidth: New file.
69085         * modules/mbchar (Depends-on): Add wcwidth.
69086         * modules/mbswidth (Depends-on): Add wcwidth.
69087         * MODULES.html.sh: Add wcwidth.
69088
69089 2006-06-28  Eric Blake  <ebb9@byu.net>
69090
69091         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
69092         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
69093
69094 2006-06-28  Eric Blake  <ebb9@byu.net>
69095
69096         * lib/xvasprintf.h: Fix comments.
69097
69098 2006-06-28  Eric Blake  <ebb9@byu.net>
69099
69100         * lib/mbchar.h (wcwidth): Include wcwidth.h.
69101         * lib/mbswidth.c (wcwidth): Move from here...
69102         * lib/wcwidth.h: ...to this new file.
69103
69104 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69105
69106         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
69107
69108         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
69109         it's obsolete.
69110         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
69111
69112 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69113
69114         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
69115         Autoconf 2.60 says this stuff was obsolete.
69116
69117 2006-06-28  Bruno Haible  <bruno@clisp.org>
69118
69119         * modules/wcwidth (Files): Add m4/wchar_t.m4.
69120
69121 2006-06-28  Bruno Haible  <bruno@clisp.org>
69122
69123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
69124         gt_TYPE_WCHAR_T.
69125
69126 2006-06-28  Bruno Haible  <bruno@clisp.org>
69127
69128         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
69129         declaration for wcwidth.
69130         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
69131
69132 2006-06-28  Bruno Haible  <bruno@clisp.org>
69133
69134         * lib/mkdtemp.c [MINGW]: Include <io.h>.
69135         (mkdir): Define using _mkdir.
69136
69137 2006-06-28  Bruno Haible  <bruno@clisp.org>
69138
69139         * lib/getaddrinfo.h: Fix POSIX URL.
69140         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
69141         _WIN32.
69142         (use_win32_p): Make static.
69143         (getaddrinfo): Reject service name if it is empty or does not consist
69144         solely of decimal digits, or if its value is > 65535.
69145         (getnameinfo): Remove useless casts.
69146
69147 2006-06-27  Simon Josefsson  <jas@extundo.com>
69148
69149         * modules/sys_select: New file, suggested by Bruno Haible, Paul
69150         Eggert and Martin Lambers.
69151
69152 2006-06-27  Simon Josefsson  <jas@extundo.com>
69153
69154         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
69155         Eggert and Martin Lambers.
69156
69157 2006-06-27  Bruno Haible  <bruno@clisp.org>
69158
69159         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
69160         result to 0, not to empty.
69161         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
69162
69163 2006-06-27  Bruno Haible  <bruno@clisp.org>
69164
69165         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
69166
69167 2006-06-26  Simon Josefsson  <jas@extundo.com>
69168
69169         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
69170         present.
69171
69172 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
69175         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
69176         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
69177
69178 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
69179
69180         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
69181
69182 2006-06-26  Bruno Haible  <bruno@clisp.org>
69183
69184         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
69185
69186 2006-06-26  Bruno Haible  <bruno@clisp.org>
69187
69188         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
69189
69190 2006-06-26  Bruno Haible  <bruno@clisp.org>
69191
69192         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
69193         SGI C compiler in pre-C99 mode.
69194         Suggested by Mark D. Baushke and Larry Jones.
69195
69196 2006-06-26  Bruno Haible  <bruno@clisp.org>
69197
69198         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
69199         WCHAR_MAX.
69200         Reported by Mark D. Baushke and Larry Jones.
69201
69202 2006-06-26  Bruno Haible  <bruno@clisp.org>
69203
69204         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
69205         in pre-C99 mode.
69206         Suggested by Mark D. Baushke and Larry Jones.
69207
69208 2006-06-23  Simon Josefsson  <jas@extundo.com>
69209             Bruno Haible  <bruno@clisp.org>
69210
69211         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
69212         Emit mostlyclean-local rule.
69213         (func_emit_tests_Makefile_am): Likewise.
69214         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
69215
69216 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
69217
69218         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
69219
69220 2006-06-23  Bruno Haible  <bruno@clisp.org>
69221
69222         * tests/test-stdint.c: Update to match ISO C 99 Technical
69223         Corrigendum 1.
69224
69225 2006-06-23  Bruno Haible  <bruno@clisp.org>
69226
69227         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
69228
69229 2006-06-23  Bruno Haible  <bruno@clisp.org>
69230
69231         * lib/stdint_.h: Treat IRIX like OpenBSD.
69232
69233 2006-06-23  Bruno Haible  <bruno@clisp.org>
69234
69235         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
69236         ISO C 99 Technical Corrigendum 1.
69237
69238 2006-06-22  Simon Josefsson  <jas@extundo.com>
69239
69240         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
69241         MinGW.
69242
69243 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69244
69245         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
69246         needed.  Some compiler complained about some of them.  Problem reported
69247         by Larry Jones in
69248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
69249
69250 2006-06-21  Simon Josefsson  <jas@extundo.com>
69251
69252         * tests/test-getaddrinfo.c: New file.
69253
69254         * modules/getaddrinfo-tests: New file.
69255
69256         * MODULES.html.sh: Add inet_pton.
69257
69258         * modules/inet_pton: New file.
69259
69260 2006-06-21  Simon Josefsson  <jas@extundo.com>
69261
69262         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
69263         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
69264         of using the (limited) gnulib implementation on Windows XP.
69265
69266         * m4/inet_pton.m4: New file.
69267
69268 2006-06-21  Simon Josefsson  <jas@extundo.com>
69269
69270         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
69271         variable.
69272
69273         * lib/socket_.h: Don't define WINVER.
69274
69275         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
69276         slightly modified to work in gnulib.
69277
69278 2006-06-21  Simon Josefsson  <jas@extundo.com>
69279
69280         * doc/gnulib.texi (Windows sockets): Add.
69281
69282 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         * lib/read-file.c (fread_file): Start with buffer allocation of
69285         0 bytes rather than 1 byte; this simplifies the code.
69286         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
69287         code to free buffer and save/restore errno.
69288         (internal_read_file): Remove unused local.
69289
69290 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69291
69292         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
69293         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
69294         Problem reported by Denis Excoffier in
69295         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
69296
69297 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69298
69299         * modules/sys_socket, modules/socklen: Include sys/types since
69300         FreeBSD 4.x's sys/socket.h needs it.
69301
69302 2006-06-19  Simon Josefsson  <jas@extundo.com>
69303
69304         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
69305
69306 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69307
69308         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
69309
69310 2006-06-19  Bruno Haible  <bruno@clisp.org>
69311
69312         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
69313         and FULL_PATH_INTTYPES_H in angle brackets.
69314         Reported by Mark D. Baushke <mdb@gnu.org>.
69315
69316 2006-06-17  Eric Blake  <ebb9@byu.net>
69317
69318         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
69319         errno.
69320
69321 2006-06-17  Bruno Haible  <bruno@clisp.org>
69322
69323         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
69324         <sys/inttypes.h>.
69325
69326 2006-06-17  Bruno Haible  <bruno@clisp.org>
69327
69328         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
69329         whether errno is declared. Assume <errno.h> declares errno.
69330
69331 2006-06-17  Bruno Haible  <bruno@clisp.org>
69332
69333         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
69334
69335 2006-06-17  Bruno Haible  <bruno@clisp.org>
69336
69337         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
69338         problem on Solaris 2.5.1.
69339
69340 2006-06-16  Eric Blake  <ebb9@byu.net>
69341
69342         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
69343         * lib/unicodeio.c [!defined errno]: Likewise.
69344         * lib/strtol.c [!defined errno]: Likewise.
69345         * lib/strtod.c [!defined errno]: Likewise.
69346
69347 2006-06-15  Eric Blake  <ebb9@byu.net>
69348
69349         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
69350
69351 2006-06-15  Eric Blake  <ebb9@byu.net>
69352
69353         * config/srclist.txt (ssize_t.m4): Lose sync.
69354
69355 2006-06-15  Bruno Haible  <bruno@clisp.org>
69356
69357         * modules/stdint (Files): Include m4/full-header-path.m4,
69358         m4/size_max.m4, m4/wchar_t.m4.
69359         (Makefile.am): Many more substitutions.
69360         * modules/stdint-tests: New file.
69361         * tests/test-stdint.c: New file.
69362
69363 2006-06-15  Bruno Haible  <bruno@clisp.org>
69364
69365         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
69366         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
69367         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
69368         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
69369         gl_CHECK_TYPE_SAME): New macros.
69370
69371 2006-06-15  Bruno Haible  <bruno@clisp.org>
69372
69373         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
69374
69375 2006-06-15  Bruno Haible  <bruno@clisp.org>
69376
69377         * lib/stdint_.h: Rewritten to be fully auto-configured.
69378         Fixes bug on HP-UX/IA64.
69379
69380 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         * lib/getdate.y (__attribute__): Don't define if already defined.
69383         Problem reported by Larry Jones.
69384         * lib/utimens.c (__attribute__): Likewise.
69385
69386 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
69389         reported by Andreas Schwab.
69390
69391 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69392             Bruno Haible  <bruno@clisp.org>
69393
69394         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
69395         check for the declaration of strnlen and a run test that exposes the
69396         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
69397         rpl_strndup.
69398
69399 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69400             Bruno Haible  <bruno@clisp.org>
69401
69402         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
69403
69404 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69405
69406         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
69407         compile test, for Tru64 4.0D.
69408
69409 2006-05-28  Karl Berry  <karl@gnu.org>
69410
69411         * config/srclist.txt (printf-args.c): lose sync.
69412
69413 2006-05-26  Martin Lambers  <marlam@marlam.de>
69414
69415         * lib/getpass.c: Updates the test for the native W32 API, and adds
69416         missing includes, thus fixing compilation warnings.
69417
69418 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69419
69420         * lib/exclude.c (exclude_fnmatch): New function.
69421         (excluded_file_name): Call exclude_fnmatch.
69422         * lib/exclude.h (excluded_file_name): New prototype
69423
69424 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * lib/tempname.c (small_open, large_open): New macros.
69427         (__open, __open64) [!_LIBC]: Remove.
69428         (__gen_tempname): Use small_open and large_open instead of __open
69429         and __open64.  This fixes a portability bug on HP-UX 11.11i
69430         reported by Simon Wing-Tang in
69431         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
69432
69433 2006-05-24  Bruno Haible  <bruno@clisp.org>
69434
69435         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
69436         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
69437         Reported by Thorsten Maerz <torte@netztorte.de> via
69438         Aaron Stone <aaron@serendipity.cx>.
69439
69440 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69441
69442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
69443         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
69444         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
69445         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
69446         not really conditional on the cache.
69447         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
69448
69449 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69450
69451         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
69452         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
69453         (my_usleep): Don't mishandle maximum value.
69454
69455 2006-05-19  Jim Meyering  <jim@meyering.net>
69456
69457         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
69458
69459 2006-05-17  Bruno Haible  <bruno@clisp.org>
69460
69461         Cygwin portability.
69462         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
69463
69464 2006-05-17  Bruno Haible  <bruno@clisp.org>
69465
69466         * lib/stdint_.h: Fix recognition of Cygwin.
69467
69468 2006-05-15  Bruno Haible  <bruno@clisp.org>
69469
69470         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
69471         on libtool patch by Ralf Wildenhues.
69472
69473 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69474
69475         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
69476         test for C99 conformance; (bool) 0.5 is an integer constant
69477         expression, but (bool) -0.5 is not.  Problem reported by Fedor
69478         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
69479
69480 2006-05-11  Simon Josefsson  <jas@extundo.com>
69481
69482         * m4/xvasprintf.m4: Fix obvious typo.
69483
69484 2006-05-11  Jim Meyering  <jim@meyering.net>
69485
69486         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
69487         James Lemley.
69488
69489 2006-05-10  Simon Josefsson  <jas@extundo.com>
69490
69491         * lib/md4.c: Typo fix, update copyright years.
69492         (K1, K2): Don't use L because it turn computations into 64-bit on
69493         64-bit platforms.
69494
69495 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
69496
69497         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
69498         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
69499         unwanted sign propagation, e.g., on hosts with 64-bit int.
69500         There still are some problems with reeelly weird theoretical hosts
69501         (e.g., 33-bit int) but it's not worth worrying about now.
69502         * lib/sha1.c (rol): Likewise.
69503         (K1, K2, K3, K4): Remove unnecessary L suffix.
69504
69505 2006-05-10  Bruno Haible  <bruno@clisp.org>
69506
69507         * lib/des.c: Cast to avoid warnings.
69508
69509 2006-05-09  Bruno Haible  <bruno@clisp.org>
69510
69511         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
69512         (Depends-on): Depend also on xsize, stdarg.
69513         (configure.ac): Add gl_XVASPRINTF.
69514
69515 2006-05-09  Bruno Haible  <bruno@clisp.org>
69516
69517         * m4/xvasprintf.m4: New file.
69518
69519 2006-05-09  Bruno Haible  <bruno@clisp.org>
69520
69521         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
69522         (EOVERFLOW): Define fallback value.
69523         (xstrcat): New function.
69524         (xvasprintf): Recognize the special case of a string concatenation.
69525
69526 2006-05-08  Eric Blake  <ebb9@byu.net>
69527
69528         * gnulib-tool (func_version): Base copyright year on CVS date.
69529         (func_emit_copyright_notice): New function.
69530         (func_emit_lib_Makefile_am): Use it.
69531         (func_emit_tests_Makefile_am): Likewise.
69532         (func_import): Likewise.
69533
69534 2006-05-08  Bruno Haible  <bruno@clisp.org>
69535
69536         * modules/stdarg: New file.
69537         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
69538
69539 2006-05-08  Bruno Haible  <bruno@clisp.org>
69540
69541         * m4/stdarg.m4: New file, from GNU gettext.
69542
69543 2006-05-08  Bruno Haible  <bruno@clisp.org>
69544
69545         * config/srclist.txt (build-aux/config.rpath): different from latest
69546         release.
69547
69548 2006-05-08  Bruno Haible  <bruno@clisp.org>
69549
69550         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
69551
69552 2006-05-05  Jim Meyering  <jim@meyering.net>
69553
69554         * m4/warning.m4: New file, derived from bison's file by the same name.
69555
69556 2006-05-03  Bruno Haible  <bruno@clisp.org>
69557
69558         * lib/stdint_.h: Shorter URL.
69559         * lib/inttypes.h: Likewise.
69560
69561 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69562
69563         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
69564
69565 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69566
69567         * lib/verify.h: Document the internals better.  Most of this change
69568         was written by Bruno Haible.
69569
69570 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69571
69572         * doc/verify.texi: New file, partly based on a proposal by
69573         Bruno Haible.
69574
69575 2006-05-02  Bruno Haible  <bruno@clisp.org>
69576
69577         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
69578         test from here...
69579         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
69580
69581 2006-04-29  Bruno Haible  <bruno@clisp.org>
69582
69583         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
69584         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
69585
69586 2006-04-29  Bruno Haible  <bruno@clisp.org>
69587
69588         * gnulib-tool: Make --update option actually work.
69589
69590 2006-04-29  Bruno Haible  <bruno@clisp.org>
69591
69592         * doc/gcd.texi: New file.
69593         * doc/gnulib.texi: Include it.
69594
69595 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
69596
69597         * lib/getdate.y (get_date): When adding relative date, start with the
69598         initial time, not with the result of the first mktime call.
69599
69600 2006-04-25  Bruno Haible  <bruno@clisp.org>
69601
69602         * gnulib-tool (func_import): Output the include directives in three
69603         blocks, sorted separately.
69604         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69605
69606 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69607
69608         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
69609         to define main with arguments, for C++.  Reported by Eric Blake.
69610         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
69611         Prefer 'int main ()' to 'int main (void)', for C++.
69612         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
69613         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
69614         for 'main', for C99 and C++.
69615
69616 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69617
69618         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
69619         Don't assume that exit status -1 is valid.
69620         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69621         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
69622         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
69623         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
69624         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
69625         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
69626         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
69627         functions can be used without declaring them, or that you can
69628         exit with status -1.
69629         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
69630
69631 2006-04-24  Karl Berry  <karl@gnu.org>
69632
69633         * config/srclist.txt (longdouble.m4): sync lost.
69634
69635 2006-04-24  Eric Blake  <ebb9@byu.net>
69636
69637         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
69638
69639 2006-04-24  Bruno Haible  <bruno@clisp.org>
69640
69641         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
69642         poll() implementation in AIX.
69643         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69644
69645 2006-04-24  Bruno Haible  <bruno@clisp.org>
69646
69647         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
69648         assigned exactly once.
69649
69650 2006-04-23  Claudio Fontana  <claudio@gnu.org>
69651             Bruno Haible  <bruno@clisp.org>
69652
69653         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
69654         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
69655         for AM_CPPFLAGS.
69656
69657 2006-04-23  Bruno Haible  <bruno@clisp.org>
69658
69659         * modules/copy-file: Depend on unistd.
69660         * modules/execute: Likewise.
69661         * modules/fatal-signal: Likewise.
69662         * modules/findprog: Likewise.
69663         * modules/mkdtemp : Likewise.
69664         * modules/pipe: Likewise.
69665         * modules/wait-process: Likewise.
69666
69667 2006-04-23  Bruno Haible  <bruno@clisp.org>
69668
69669         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
69670         condition was already detected.
69671         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69672
69673 2006-04-23  Bruno Haible  <bruno@clisp.org>
69674
69675         * lib/copy-file.c: Include <unistd.h> unconditionally.
69676         * lib/execute.c: Likewise.
69677         * lib/fatal-signal.c: Likewise.
69678         * lib/findprog.c: Likewise.
69679         * lib/mkdtemp.c: Likewise.
69680         * lib/pipe.h: Likewise.
69681         * lib/pipe.c: Likewise.
69682         * lib/wait-process.h: Likewise.
69683
69684 2006-04-23  Bruno Haible  <bruno@clisp.org>
69685
69686         * gnulib-tool (func_usage): Fix --import description. Document
69687         --update.
69688         (func_import): Create temporary file in a temporary directory, if
69689         --dry-run is specified. Silence errors from 'grep' when there are no
69690         m4 files in $m4dir.
69691         (func_create_testdir): Silence errors from 'grep' when there are no
69692         m4 files in $m4dir.
69693         Reported by Karl Berry <karl@freefriends.org>.
69694
69695 2006-04-20  Bruno Haible  <bruno@clisp.org>
69696
69697         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
69698         one argument, so that the code will be portable to Autoconf 2.60.
69699         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
69700         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69701         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
69702
69703 2006-04-19  Derek Price  <derek@ximbiot.com>
69704             Eric Blake  <ebb9@byu.net>
69705
69706         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
69707         rather than "/full/path.h".  Update comment to match.  Shorten &
69708         generalize m4_translit call via AS_TR_CPP.
69709
69710 2006-04-19  Derek Price  <derek@ximbiot.com>
69711             Eric Blake  <ebb9@byu.net>
69712
69713         * lib/inttypes.h: Correct grammar in comment.
69714
69715 2006-04-18  Derek Price  <derek@ximbiot.com>
69716             Paul Eggert  <eggert@cs.ucla.edu>
69717
69718         * modules/inttypes: New file.
69719         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
69720
69721 2006-04-18  Derek Price  <derek@ximbiot.com>
69722             Paul Eggert  <eggert@cs.ucla.edu>
69723
69724         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
69725         New files.
69726
69727 2006-04-18  Derek Price  <derek@ximbiot.com>
69728             Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         * lib/inttypes.h: New file.
69731         * lib/strtoimax.c: Assume <inttypes.h>.
69732
69733 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
69734
69735         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
69736         isn't mounted.  Problem reported by Kir Kolyshkin.
69737
69738 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
69741         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
69742         Derek R. Price.
69743         * lib/regex.h (RE_DUP_MAX): Update comment to match current
69744         implementation.
69745
69746 2006-04-12  Eric Blake  <ebb9@byu.net>
69747
69748         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
69749         is now done automatically by the corresponding Autoconf macro.
69750
69751 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
69752
69753         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
69754         time_r.h.
69755
69756 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69757
69758         Merge regex changes from libc, removing some of our
69759         POSIX-conformance changes that were rejected and redoing them in a
69760         less-intrusive way.
69761
69762         * lib/regcomp.c (re_compile_internal, init_dfa):
69763         Length arg is now size_t, not Idx.  All uses changed.
69764         (peek_token): Forward decl now says internal_function.
69765         (__re_error_msgid, __re_error_msgid_idx):
69766         Now static rather than extern with attribute_hidden.
69767         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
69768         For some reason libc prefers K&R style defns for external functions.
69769         (regerror) [!defined _LIBC]: Likewise.
69770         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
69771         (seek_collating_symbol_entry, lookup_collation_sequence_value):
69772         (build_range_exp, build_collating_symbol):
69773         Use K&R-style defn.
69774         (re_compile_fastmap): Use '\0' to memset, not 0.
69775         (utf8_sb_map): Make the calculations more obvious.
69776         (init_dfa, parse_bracket_exp, build_charclass_op):
69777         Call calloc and cast result, as glibc does.
69778         (init_word_char, fetch_token, peek_token, peek_token_bracket):
69779         (build_range_exp, build_collating_symbol):
69780         Now internal functions.
69781
69782         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
69783
69784         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
69785         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
69786         Don't depend on VMS; depend on __VMS instead, for POSIX
69787         namespace cleanness.
69788         (regoff_t): Define to ssize_t, not long int.
69789
69790         Remove the REG_ macros named below.  Instead, make the old names
69791         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
69792         __USE_GNU_REGEX.
69793         (REG_BACKSLASH_ESCAPE_IN_LISTS):
69794         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
69795         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
69796         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
69797         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
69798         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
69799         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
69800         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
69801         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
69802         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
69803         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
69804         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
69805         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
69806         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
69807         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
69808         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
69809         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
69810         (REG_NREGS):
69811         Remove.  All uses replaced by the old RE_* names.
69812         (RE_BACKSLASH_ESCAPE_IN_LISTS):
69813         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
69814         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
69815         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
69816         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
69817         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
69818         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
69819         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
69820         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
69821         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
69822         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
69823         Don't bother having these macros be independent of each others'
69824         values, since they no longer exist in the POSIX name space.
69825
69826         Rename the following member names back to their old names,
69827         unless !__USE_GNU_REGEX.  All uses changed back.
69828         (buffer): Renamed from re_buffer.
69829         (allocated): Renamed from re_allocated.
69830         (used): Renamed from re_used.
69831         (syntax): Renamed from re_syntax.
69832         (fastmap): Renamed from re_fastmap.
69833         (translate): Renamed from re_translate.
69834         (can_be_null): Renamed from re_can_be_null.
69835         (regs_allocated): Renamed from re_regs_allocated.
69836         (fastmap_accurate): Renamed from re_fastmap_accurate.
69837         (no_sub): Renamed from re_no_sub.
69838         (not_bol): Renamed from re_not_bol.
69839         (not_eol): Renamed from re_not_eol.
69840         (newline_anchor): Renamed from re_newline_anchor.
69841         (num_regs): Renamed from rm_num_regs.
69842         (start): Renamed from rm_start.
69843         (end): Renamed from rm_end.
69844
69845         (free_state): Move up a bit.
69846
69847         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
69848         #define to be empty.
69849         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
69850         when that is what is intended.
69851         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
69852         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
69853         (MAX): New macro.
69854         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
69855         All uses changed back to re_malloc, etc.  It's now the caller's
69856         responsibility to check for overflow; all callers changed.
69857         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
69858         (re_x2nrealloc): Remove.
69859         (free_state): Remove decl.
69860
69861         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
69862         (re_set_registers, re_exec):
69863         Use K&R-style defn.
69864
69865         2006-01-31  Roland McGrath  <roland@redhat.com>
69866
69867         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
69868         Reported by Mike Frysinger <vapier@gentoo.org>.
69869
69870         2006-01-15  Andreas Jaeger  <aj@suse.de>
69871
69872         [BZ #1950]
69873         * lib/regex_internal.c (re_string_reconstruct): Adjust for
69874         build_wcs_upper_buffer change.
69875         (build_wcs_upper_buffer): Change return type.
69876
69877         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
69878
69879         * lib/regex_internal.h: Include <stdint.h> if available.
69880
69881         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
69882
69883         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
69884
69885         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69886
69887         * lib/regcomp.c: Adjust for changed secondary hash function.
69888
69889         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
69890
69891         * lib/regex.h: Pretty printing.
69892         Clean up namespace a bit.
69893
69894         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
69895
69896         * lib/regexec.c (update_cur_sifted_state, check_arrival,
69897         check_arrival_add_next_nodes): Avoid using uninitialized variable.
69898
69899         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69900                     Ulrich Drepper  <drepper@redhat.com>
69901
69902         [BZ #1302]
69903         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
69904         changed.
69905         (bitset_word_t): Renamed from bitset_word.  All uses changed.
69906
69907         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
69908
69909         [BZ #281]
69910         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
69911         * lib/regcomp.c: Remove unnecessary uses of
69912         unsigned RE_TRANSLATE_TYPE.
69913         * lib/regex_internal.h: Likewise.
69914         * lib/regex_internal.c: Likewise.
69915         * lib/regexec.c: Likewise.
69916         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
69917
69918         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
69919
69920         * lib/regexec.c (find_recover_state): Remove unnecessary
69921         initialization.
69922         (transit_state_bkref): Make DFA a const pointer.
69923         (get_subexp): Likewise.
69924         (check_arrival): Likewise.
69925         (update_cur_sifted_state): Likewise.
69926         (re_search_internal): Likewise.
69927         (prune_impossible_nodes): Likewise.
69928         (acquire_init_state_context): Likewise.
69929         (proceed_next_node): Likewise.
69930         (set_regs): Likewise.
69931         (free_fail_stack_return): Likewise.
69932         (check_arrival_expand_ecl): Mark DFA parameter as const.
69933         (check_arrival_expand_ecl_sub): Likewise.
69934         (check_subexp_limits): Likewise.
69935         (sub_epsilon_src_nodes):  Likewise.
69936         (add_epsilon_src_nodes):  Likewise.
69937         (merge_state_array): Likewise.
69938         (update_regs): Likewise.
69939         (build_trtable): Likewise.
69940         (sift_states_backward): Mark MCTX parameter as const.
69941         (build_sifted_states): Likewise.
69942         (update_cur_sifted_state): Likewise.
69943         (sift_states_mkref): Likewise.
69944         (check_arrival_expand_ecl): Mark eclosure as const.
69945         (check_dst_limits_calc_pos_1): Likewise.
69946         * lib/regex_internal.h (re_match_context_t): Make dfa a const
69947         pointer.
69948
69949         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
69950
69951         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
69952         (transit_state_sb): Likewise.
69953         (transit_state_mb): Likewise.
69954         (sift_states_iter_mb): Likewise.
69955         (check_arrival_add_next_nodes): Likewise.
69956         (check_node_accept_bytes): Change first parameter to pointer-to-const.
69957         [_LIBC] (re_search_2_stub): Use mempcpy.
69958
69959         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
69960         mbrtowc for very simple UTF-8 case.
69961
69962         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
69963         a pointer-to-const.
69964         (re_acquire_state_context): Likewise.
69965         * lib/regex_internal.h: Adjust prototypes.
69966
69967         * lib/regex.c: Prevent using C++ compilers.
69968
69969         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
69970         (re_acquire_state_context): Likewise.
69971
69972 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69973
69974         * modules/regex (Depends-on): Add ssize_t.
69975
69976 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69977
69978         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69979         translation table.
69980
69981 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69982
69983         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69984
69985 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69986             Bruno Haible  <bruno@clisp.org>
69987
69988         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69989         <sys/types.h> and <inttypes.h>.
69990
69991 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69992
69993         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69994         `__error_t_defined', so argp.h will not typedef the former.
69995
69996 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69997
69998         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69999         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
70000         glibc names.  Even if glibc is changed to conform to POSIX, the
70001         traditional names will be available anyway, since regex depends on
70002         the extensions module.  Also, fix a longstanding typo in the
70003         implementation of Spencer ERE test #75 from grep 2.3.  Problems
70004         reported by Emanuele Giaquinta.  Also, change sense of cached
70005         variable, so that the message makes sense.
70006
70007 2006-03-24  Simon Josefsson  <jas@extundo.com>
70008
70009         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
70010         including some doc fixes.
70011         (base64_encode_alloc): Fix +1 bug on allocation failures.
70012
70013 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70014
70015         * lib/base64.c (base64_encode): Do not read past end of array with
70016         unsanitized input on systems with CHAR_BIT > 8.
70017
70018 2006-03-24  Eric Blake  <ebb9@byu.net>
70019
70020         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
70021
70022 2006-03-22  Karl Berry  <karl@gnu.org>
70023
70024         * config/srclist.txt (*setenv.[ch]): get from coreutils.
70025         * config/srclistvars.sh (COREUTILS): new var.
70026
70027 2006-03-17  Jim Meyering  <jim@meyering.net>
70028
70029         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
70030         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
70031
70032 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70033
70034         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
70035         no longer needs it.  Instead, check that regoff_t is as least
70036         as wide as ptrdiff_t.
70037
70038         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
70039         so that our regex.h stays compatible with the installed regex.
70040         This is helpful for installers who configure --without-included-regex.
70041         Problem reported by Emanuele Giaquinta.
70042
70043 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
70046         Typedef to long int, not to off_, as POSIX will likely change
70047         in that direction.
70048
70049 2006-03-15  Eric Blake  <ebb9@byu.net>
70050
70051         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
70052
70053 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70054
70055         * lib/argp-help.c (validate_uparams): Fix typo
70056         * lib/argp-parse.c (argp_default_options): Consistently begin help
70057         messages with a lowercase letter.
70058
70059 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
70060
70061         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
70062         overrun buffers and shouldn't be used (much as gets shouldn't be
70063         used).
70064         * lib/time_r.c (asctime_r, ctime_r): Likewise.
70065
70066 2006-03-08  Simon Josefsson  <jas@extundo.com>
70067
70068         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
70069         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70070
70071 2006-03-08  Simon Josefsson  <jas@extundo.com>
70072
70073         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
70074         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70075
70076 2006-03-08  Simon Josefsson  <jas@extundo.com>
70077
70078         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
70079         signal that configure disabled the device.
70080
70081 2006-03-08  Simon Josefsson  <jas@extundo.com>
70082
70083         * build-aux/maint.mk: Fix refresh-po, to handle no translated
70084         languages.
70085
70086 2006-03-07  Simon Josefsson  <jas@extundo.com>
70087
70088         * modules/getopt (Depends-on): Add unistd.
70089
70090         * modules/unistd: New file.
70091
70092 2006-03-07  Simon Josefsson  <jas@extundo.com>
70093
70094         * modules/gc-random: New file.
70095
70096 2006-03-07  Simon Josefsson  <jas@extundo.com>
70097
70098         * m4/unistd_h.m4: New file.
70099
70100 2006-03-07  Simon Josefsson  <jas@extundo.com>
70101
70102         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
70103         test to be side-effect free by storing the result in the cache
70104         variable gl_cv_lib_readline, and moving the assignment of
70105         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
70106         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70107
70108 2006-03-07  Simon Josefsson  <jas@extundo.com>
70109
70110         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
70111         error on missing devices (the functions will return an error).
70112
70113         * m4/gc.m4: Move random stuff to gc-random.m4
70114
70115 2006-03-07  Simon Josefsson  <jas@extundo.com>
70116
70117         * lib/unistd_.h: New file.
70118
70119 2006-03-07  Simon Josefsson  <jas@extundo.com>
70120
70121         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
70122
70123 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70124
70125         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
70126         Problem reported by Juan Manuel Guerrero.
70127
70128 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70129
70130         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
70131         the unistd module.
70132         * lib/getlogin_r.c: Likewise.
70133         * lib/getlogin_r.h: Likewise.
70134         * lib/glob.c: Likewise.
70135         * lib/pagealign_alloc.c: Likewise.
70136         * lib/unistd_.h: Remove; no longer needed.
70137
70138 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70139
70140         * MODULES.html.sh (Support for systems lacking POSIX:2001):
70141         Add unistd.
70142         * modules/c-stack (Depends-on): Add unistd.
70143         * modules/getlogin_r: Likewise.
70144         * modules/glob: Likewise.
70145         * modules/pagealign_alloc: Likewise.
70146         * modules/unistd (Files): Remove lib/unistd_.h.
70147         (EXTRA_DIST): Remove.
70148         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
70149         need unistd_.h.
70150         (MOSTLYCLEANFILES): Remove unistd.h-t.
70151
70152 2006-03-03  Simon Josefsson  <jas@extundo.com>
70153
70154         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
70155
70156 2006-03-03  Simon Josefsson  <jas@extundo.com>
70157
70158         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
70159         libidn and bison.
70160
70161 2006-03-03  Simon Josefsson  <jas@extundo.com>
70162
70163         * build-aux/maint.mk: Add indent target.
70164
70165 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
70166
70167         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
70168         our replacement poll.h in any case, to avoid a differing
70169         declaration from a system header.  Seen on AIX.
70170
70171 2006-03-01  Simon Josefsson  <jas@extundo.com>
70172
70173         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
70174         <kasal@ucw.cz>.
70175
70176 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70177
70178         * modules/gettime (Depends-on): Add extensions module.
70179         * modules/nanosleep (Depends-on): Likewise.
70180         * modules/settime (Depends-on): Likewise.
70181
70182 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70183
70184         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
70185         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
70186         pedantically.
70187         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70188         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
70189
70190         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
70191         not "==".  Reported by Ralf Wildenhues.
70192
70193 2006-03-01  Karl Berry  <karl@gnu.org>
70194
70195         * doc/Copyright/request-*: new files, synced from gnuorg.
70196
70197 2006-03-01  Karl Berry  <karl@gnu.org>
70198
70199         * config/srclist.txt (Copyright/*): new entries.
70200
70201 2006-02-28  Simon Josefsson  <jas@extundo.com>
70202
70203         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
70204
70205 2006-02-27  Simon Josefsson  <jas@extundo.com>
70206
70207         * lib/base64.h: Indent #define's.  From Jim Meyering
70208         <jim@meyering.net>.
70209
70210 2006-02-27  Jim Meyering  <jim@meyering.net>
70211
70212         Revert the change of 2006-02-24, so these files can continue
70213         to be sync'd from gettext.
70214         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
70215         of `config.h'.
70216
70217 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70218
70219         * modules/intprops: New file.
70220         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70221         Add intprops.
70222         * modules/getloadavg (Files): Remove lib/intprops.h.
70223         (Depends-on): Add intprops.
70224         * modules/human: Likewise.
70225         * modules/inttostr: Likewise.
70226         * modules/openat: Likewise.
70227         * modules/sig2str: Likewise.
70228         * modules/userspec: Likewise.
70229         * modules/utimecmp: Likewise.
70230         * modules/xnanosleep: Likewise.
70231         * modules/xstrtol: Likewise.
70232
70233 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
70234
70235         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
70236         * modules/lock-tests (TESTS): Use $(EXEEXT).
70237         * modules/tls-tests: Likewise.
70238         * modules/argp-tests: Likewise.
70239         (check_PROGRAMS): New var, replacing...
70240         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
70241
70242 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70243
70244         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
70245         `config.h'.
70246
70247 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70248
70249         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
70250
70251 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70252
70253         Sync from coreutils.
70254         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
70255         gl_CHDIR_SAFER.
70256
70257 2006-02-22  Jim Meyering  <jim@meyering.net>
70258
70259         Sync from coreutils.
70260         * m4/chdir-safer.m4: New file.
70261
70262 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70263
70264         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
70265         AT_FDCWD exceeds INT_MAX.
70266         * lib/openat.h (AT_FDCWD): Likewise.
70267
70268 2006-02-17  Eric Blake  <address@hidden>
70269
70270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
70271
70272 2006-02-16  Simon Josefsson  <jas@extundo.com>
70273
70274         * modules/getaddrinfo (Depends-on): Add sys_socket.
70275
70276 2006-02-15  Simon Josefsson  <jas@extundo.com>
70277
70278         * build-aux/maint.mk: Add dsyntax-check rule.
70279
70280 2006-02-15  Eric Blake  <ebb9@byu.net>
70281
70282         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
70283         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
70284         'present but cannot compile' warnings on cygwin.
70285         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
70286         use ws2tcpip.h if sys/socket.h works.
70287         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
70288         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
70289
70290 2006-02-14  Simon Josefsson  <jas@extundo.com>
70291
70292         * modules/maintainer-makefile (Files): Rename.
70293
70294         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
70295         and (the local) Makefile.cfg to maint-cfg.mk.
70296
70297         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
70298         to the latter.
70299
70300         * modules/maintainer-makefile: New module.
70301
70302         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
70303         severaly stripped to make it possible to build it up from scratch
70304         with reliable tests.
70305
70306         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
70307         fixes to permit overriding the default actions when configure and
70308         makefile are not available.
70309
70310 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70311
70312         Sync from coreutils.
70313         * modules/lstat (Depends-on): Don't depend on xalloc.
70314         (License): Change from GPL to LGPL, since this is now simply a
70315         replacement for a libc function.
70316
70317 2006-02-14  Jim Meyering  <jim@meyering.net>
70318
70319         Sync from coreutils.
70320
70321         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
70322         failure on deficient systems, and simplify gnulib lgpl dependencies.
70323         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
70324         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
70325
70326         * lib/xalloc-die.c: Remove unused definition of N_.
70327
70328 2006-02-14  Jim Meyering  <jim@meyering.net>
70329
70330         Sync from coreutils.
70331         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
70332         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
70333         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
70334         double-quote uses of that variable, to accommodate the rare case in
70335         which getmntent is available in none of the libraries checked.  This
70336         happens at least on FreeBSD 5.0.
70337
70338 2006-02-13  Simon Josefsson  <jas@extundo.com>
70339
70340         * gnulib-tool (Usage): Fix --import, from
70341         karl@freefriends.org (Karl Berry).
70342
70343 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70344
70345         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
70346
70347 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
70348
70349         * lib/argp-namefrob.h: Restore changes accidentally lost during the
70350         "autoupdate" on 2005-12-12.
70351
70352 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
70353
70354         * modules/closeout (Depends-on): Remove atexit.
70355
70356 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
70357
70358         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
70359         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
70360
70361 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70362
70363         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
70364         __EXTENSIONS__ if this causes compilation to fail.  Problem
70365         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
70366         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
70367
70368 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
70369
70370         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
70371         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
70372         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
70373         All uses changed.
70374
70375 2006-01-26  Simon Josefsson  <jas@extundo.com>
70376
70377         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
70378         prototype is visible on mingw32.
70379
70380         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
70381         for mingw32.
70382
70383         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
70384         mingw32).
70385
70386 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70387
70388         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
70389         attempt to open for write; this always fails, at least on POSIX
70390         hosts.  This reinstates the 2006-01-09 change, which was
70391         inadvertently removed.
70392
70393 2006-01-26  Bruno Haible  <bruno@clisp.org>
70394
70395         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
70396         Reported by Paul Eggert.
70397
70398 2006-01-26  Bruno Haible  <bruno@clisp.org>
70399             Paul Eggert  <eggert@cs.ucla.edu>
70400
70401         * lib/stdbool_.h (_Bool)
70402         [(! (defined __cplusplus || defined __BEOS__)
70403           && !defined __GNUC__
70404           && !(defined __HP_cc || defined __xlc__
70405                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
70406                || defined __sgi))]:
70407         #define to signed char in these cases too; this simplifies
70408         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
70409         etc., separately) and makes it more conservative.
70410
70411 2006-01-25  Simon Josefsson  <jas@extundo.com>
70412
70413         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
70414         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
70415         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
70416
70417 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70418
70419         * lib/argp-namefrob.h: Bugfix. Remove stray #
70420
70421 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
70422
70423         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
70424         so that we test the test.
70425         Check for yet another HP-UX cc bug involving *bool |= bool.
70426
70427 2006-01-25  Karl Berry  <karl@gnu.org>
70428
70429         * config/srclist.txt (vasnprintf.c): sync lost.
70430
70431 2006-01-25  Jim Meyering  <jim@meyering.net>
70432
70433         Sync from the stable (b5) branch of coreutils:
70434
70435         * lib/fts.c (fts_children): Don't let close() clobber errno from
70436         failed fchdir().
70437
70438         * lib/fts.c (fts_stat): When following a symlink-to-directory,
70439         don't necessarily interpret stat-fails+lstat-succeeds as indicating
70440         a dangling symlink.  That can also happen at least for ELOOP.
70441         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
70442         FYI, this bug predates the inclusion of fts.c in coreutils.
70443
70444         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
70445         in their own block, so pre-c99 compilers don't object.
70446
70447         Avoid the double-free (first in fts_read, second in fts_close) that
70448         would occur when an `active' directory is made inaccessible (e.g.,
70449         via chmod a-x) during a traversal.
70450         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70451         before returning.  Reproduce this failure by
70452         mkdir -p a/b; cd a; chmod a-x . b
70453         Reported by Stavros Passas.
70454
70455 2006-01-25  Jim Meyering  <jim@meyering.net>
70456
70457         * lib/fileblocks.c: Remove more useless parentheses.
70458         * lib/readutmp.h: Likewise.
70459
70460 2006-01-25  Bruno Haible  <bruno@clisp.org>
70461
70462         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
70463         warnings.
70464         Reported by Paul Eggert.
70465
70466 2006-01-25  Bruno Haible  <bruno@clisp.org>
70467
70468         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
70469         rid of a trap command. For Solaris sh.
70470         Reported by Mark D. Baushke <mdb@gnu.org>.
70471
70472 2006-01-24  Simon Josefsson  <jas@extundo.com>
70473
70474         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
70475         Bruno.
70476
70477 2006-01-24  Karl Berry  <karl@gnu.org>
70478
70479         * config/srclist.txt (argp-namefrob.h): sync lost.
70480
70481 2006-01-24  Jim Meyering  <jim@meyering.net>
70482
70483         * modules/openat (Files): Add lib/intprops.h.
70484         From Mark D. Baushke.
70485
70486 2006-01-24  Jim Meyering  <jim@meyering.net>
70487
70488         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
70489         Reported by Mark D. Baushke.
70490
70491 2006-01-24  Jim Meyering  <jim@meyering.net>
70492
70493         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
70494
70495 2006-01-24  Bruno Haible  <bruno@clisp.org>
70496
70497         * modules/strnlen (Maintainer): Change from glibc to all.
70498
70499 2006-01-24  Bruno Haible  <bruno@clisp.org>
70500
70501         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
70502         Patch by Paul Eggert.
70503
70504 2006-01-24  Bruno Haible  <bruno@clisp.org>
70505
70506         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
70507         already has it.
70508         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
70509         2005-11-26.
70510
70511         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
70512         'signed char' to avoid problems with the built-in _Bool type.
70513         Reported by Paul Eggert on 2005-11-26.
70514
70515 2006-01-24  Bruno Haible  <bruno@clisp.org>
70516
70517         * gnulib-tool (func_import): Avoid constructing complicated sed
70518         expressions inside backquote.
70519         Report and solution by Mark D. Baushke <mdb@gnu.org>.
70520
70521 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
70522
70523         These changes imported from libc.
70524         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
70525         test and two separate function calls.
70526         * lib/strndup.c (__strndup): Add libc_hidden_def.
70527
70528 2006-01-23  Simon Josefsson  <jas@extundo.com>
70529
70530         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
70531         Remove the test_*_SOURCES variable: automake infers it by default.
70532         * modules/tls-tests: Likewise.
70533
70534 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70535
70536         Work around porting bugs reported by Dieter in
70537         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
70538         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
70539         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
70540         Include "getopt.h" first, to check interface.
70541         (getenv): Declare only if defined HAVE_DECL_GETENV &&
70542         !HAVE_DECL_GETENV.
70543         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
70544         (__strndup): Revert to K&R-style function dfns, the glibc style.
70545         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
70546         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
70547         Include strnlen.h first, to get prototype properly.
70548         (strnlen): Renamed from __strnlen.
70549         Remove weak alias.
70550
70551 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70552
70553         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
70554
70555 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70556
70557         * config/srclist.txt: Adjust to reflect glibc reorganization.
70558         This affects only comments.
70559
70560 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70561
70562          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
70563          Reported by Bruce Korb <bkorb@gnu.org>.
70564
70565 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70566
70567         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
70568         to pacify gcc -Wswitch-default.
70569
70570 2006-01-22  Bruno Haible  <bruno@clisp.org>
70571
70572         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
70573         temporary buffer for sprintf, take into account the precision also
70574         for 'd', 'i', 'u', 'o', 'x', 'X'.
70575
70576 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70577
70578         * modules/argp-tests: New module
70579         * tests/test-argp.c: New file
70580         * tests/test-argp-2.sh: New file
70581
70582 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70583
70584         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
70585         (__argp_base_name): Removed
70586         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
70587         typo.
70588         (__argp_base_name): Provide macro definition or extern declaration
70589         depending on the configuration
70590
70591 2006-01-20  Simon Josefsson  <jas@extundo.com>
70592
70593         * modules/inet_ntop (Depends-on): Depend on sys_socket.
70594
70595 2006-01-20  Simon Josefsson  <jas@extundo.com>
70596
70597         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
70598
70599 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70600
70601         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
70602         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
70603         Suggested by Bruno Haible.
70604
70605 2006-01-20  Karl Berry  <karl@gnu.org>
70606
70607         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
70608         until changes propagate, I guess.
70609
70610 2006-01-19  Simon Josefsson  <jas@extundo.com>
70611
70612         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
70613
70614 2006-01-19  Simon Josefsson  <jas@extundo.com>
70615
70616         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
70617
70618 2006-01-19  Simon Josefsson  <jas@extundo.com>
70619
70620         * gnulib-tool: Set check_PROGRAMS.
70621
70622         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70623         modules/des-tests, modules/gc-arcfour-tests,
70624         modules/gc-arctwo-tests, modules/gc-des-tests,
70625         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70626         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70627         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70628         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70629         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70630         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
70631         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
70632         test_*_SOURCES.
70633
70634 2006-01-18  Simon Josefsson  <jas@extundo.com>
70635
70636         * modules/socklen (Depends-on): Depend on sys_socket.
70637
70638 2006-01-18  Simon Josefsson  <jas@extundo.com>
70639
70640         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70641         modules/des-tests, modules/gc-arcfour-tests,
70642         modules/gc-arctwo-tests, modules/gc-des-tests,
70643         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70644         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70645         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70646         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70647         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70648         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
70649         $(EXEEXT) to automake TESTS variable, for mingw32.
70650
70651 2006-01-17  Simon Josefsson  <jas@extundo.com>
70652
70653         * modules/socklen (Include): Need sys/socket.h.
70654
70655 2006-01-17  Bruno Haible  <bruno@clisp.org>
70656
70657         * modules/ssize_t (Include): Add <sys/types.h>.
70658
70659 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
70660
70661         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
70662         it's not portable and it doesn't work with cross-compiles.
70663         Problem reported by Bruno Haible.  Fix missing-$ typo in
70664         'test "gl_cv_ignore_unused_libraries" ...' that prevented
70665         -zignore from being used with Sun's C compiler.
70666
70667 2006-01-12  Simon Josefsson  <jas@extundo.com>
70668
70669         * lib/base64.c: Fix warning, reported by Bruno Haible
70670         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
70671
70672 2006-01-12  Bruno Haible  <bruno@clisp.org>
70673
70674         * modules/ldd: New file.
70675         * build-aux/ldd.sh.in: New file.
70676         * MODULES.html.sh (Support for building libraries and executables): Add
70677         ldd.
70678
70679 2006-01-12  Bruno Haible  <bruno@clisp.org>
70680
70681         * m4/ldd.m4: New file.
70682
70683 2006-01-12  Bruno Haible  <bruno@clisp.org>
70684
70685         * gnulib-tool (func_import, func_create_testdir): Don't go into an
70686         endless loop while replacing $auxdir with build-aux.
70687
70688 2006-01-11  Simon Josefsson  <jas@extundo.com>
70689
70690         * lib/stdint_.h (SIZE_MAX): Add missing (.
70691
70692 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
70693
70694         Sync from coreutils.
70695         * lib/md5.c: Fix commentary typos.
70696         (alignof, UNALIGNED_P): No need for a GCC-specific version.
70697         * lib/md5.h (__attribute__): Remove; unused.
70698         * lib/sha1.c: Fix commentary to match md5 better.
70699         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
70700         so that we don't need to worry about alignment.  All uses changed.
70701         This merges the 2005-10-28 md5 change into sha1.
70702
70703 2006-01-11  Jim Meyering  <jim@meyering.net>
70704
70705         Sync from coreutils.
70706         * lib/md5.c (OP): Fix spacing.
70707
70708 2006-01-11  Bruno Haible  <bruno@clisp.org>
70709
70710         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70711         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
70712         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
70713
70714 2006-01-11  Bruno Haible  <bruno@clisp.org>
70715
70716         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70717         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
70718         the "early" section as well.
70719
70720 2006-01-11  Bruno Haible  <bruno@clisp.org>
70721
70722         Avoid "ar: no archive members specified" error on MacOS X.
70723         * gnulib-tool (func_modules_add_dummy): New function.
70724         (func_import, func_create_testdir): Invoke it.
70725
70726 2006-01-11  Bruno Haible  <bruno@clisp.org>
70727
70728         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
70729         with $auxdir in AC_CONFIG_FILES statements.
70730
70731 2006-01-11  Bruno Haible  <bruno@clisp.org>
70732
70733         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70734         Initialize also noinst_HEADERS to empty.
70735
70736 2006-01-11  Bruno Haible  <bruno@clisp.org>
70737
70738         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
70739         variables.
70740         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
70741         autoreconf.
70742
70743 2006-01-11  Bruno Haible  <bruno@clisp.org>
70744
70745         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
70746         overridable by the user.
70747         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70748
70749 2006-01-10  Simon Josefsson  <jas@extundo.com>
70750
70751         * modules/sys_socket: New file.
70752
70753 2006-01-10  Simon Josefsson  <jas@extundo.com>
70754
70755         * m4/sys_socket_h.m4: New file.
70756
70757 2006-01-10  Simon Josefsson  <jas@extundo.com>
70758
70759         * lib/socket_.h: New file.
70760
70761 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70762
70763         * modules/readutmp (Maintainer): Add myself.
70764
70765 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70766
70767         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
70768         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
70769         People who are still concerned with buggy memcmp implementations
70770         can invoke gl_FUNC_MEMCMP themselves.
70771
70772 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70773
70774         * lib/regex_internal.h (BITSET_WORD_BITS):
70775         Work around a bug in 64-bit PGC (before version 6.1-2), where the
70776         preprocessor mishandles large unsigned values as if they were signed.
70777         Problem reported by Claudio Fontana in
70778         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
70779
70780 2006-01-10  Jim Meyering  <jim@meyering.net>
70781
70782         Avoid the double-free (first in fts_read, second in fts_close) that
70783         would occur when an `active' directory is made inaccessible (e.g.,
70784         via chmod a-x) during a traversal.
70785         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70786         before returning.  Reproduce this failure by
70787         mkdir -p a/b; cd a; chmod a-x . b
70788         Reported by Stavros Passas.
70789
70790         Sync from coreutils.
70791         * lib/sha1.c: Tweak grammar in a comment.
70792
70793 2006-01-10  Jim Meyering  <jim@meyering.net>
70794
70795         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
70796         Patch by Joerg Sonnenberger.
70797
70798 2006-01-10  Bruno Haible  <bruno@clisp.org>
70799
70800         * modules/readutmp: Depend on module free.
70801         * modules/strtok_r: Depend on module restrict.
70802
70803 2006-01-10  Bruno Haible  <bruno@clisp.org>
70804
70805         * modules/gettext (configure.ac): Add an invocation of
70806         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
70807
70808 2006-01-10  Bruno Haible  <bruno@clisp.org>
70809
70810         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
70811         Reported by Werner Lemberg <wl@gnu.org>.
70812
70813 2006-01-10  Bruno Haible  <bruno@clisp.org>
70814
70815         * lib/localcharset.c: Update from GNU gettext.
70816
70817 2006-01-10  Bruno Haible  <bruno@clisp.org>
70818
70819         * lib/argp.h (__const): Remove macro. Use const instead.
70820         * lib/argp-fmtstream.h (__const): Likewise.
70821         * lib/glob_.h (__const): Remove macro.
70822         * lib/glob-libc.h: Use const instead of __const.
70823
70824 2006-01-10  Bruno Haible  <bruno@clisp.org>
70825
70826         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
70827         variable.
70828         Needed to avoid an automake error regarding the 'gettext' module.
70829
70830 2006-01-09  Simon Josefsson  <jas@extundo.com>
70831
70832         * modules/inet_ntop (Depends-on): Add restrict.
70833
70834 2006-01-09  Simon Josefsson  <jas@extundo.com>
70835
70836         * modules/gc-rijndael-tests (License): Put under LGPL.
70837
70838         * modules/gc-des-tests (License): Likewise.
70839
70840         * modules/gc-arcfour-tests (License): Likewise.
70841
70842         * modules/gc-arctwo-tests (License): Likewise.
70843
70844         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
70845
70846         * modules/gc-hmac-sha1-tests (Files): Likewise.
70847
70848         * modules/gc-hmac-md5-tests (License): Likewise.
70849
70850         * modules/gc-sha1-tests (License): Likewise.
70851
70852         * modules/gc-md5-tests (License): Likewise.
70853
70854         * modules/gc-md4-tests (License): Likewise.
70855
70856         * modules/gc-md2-tests (License): Likewise.
70857
70858         * modules/gc-tests (License): Likewise.
70859
70860         * modules/des-tests (License): Likewise.
70861
70862         * modules/md4-tests (License): Likewise.
70863
70864         * modules/md2-tests (License): Likewise.
70865
70866 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70867
70868         Sync from coreutils:
70869
70870         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
70871         * modules/lib-ignore: New file.
70872         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
70873         chdir-safer.m4, lchmod.m4.
70874         * modules/openat: Add mkdirat.c, openat-priv.h.
70875
70876 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70877
70878         Sync from coreutils.
70879         * m4/lib-ignore.m4: New file.
70880         * m4/lchmod.m4: New file.
70881
70882 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70883
70884         Sync from coreutils.
70885         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
70886         for write access: POSIX says that must fail.
70887         * lib/fts.c (diropen): Likewise.
70888         * lib/save-cwd.c (save_cwd): Likewise.
70889         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
70890         well, for minor improvements on hosts that lack O_DIRECTORY.
70891         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
70892         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
70893         Fall back on chown if open failed with EACCES.
70894
70895         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
70896         Report an error at compile-time if only a 1-second nominal clock
70897         resolution is found.
70898
70899         * lib/lchmod.h: New file.
70900         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
70901         (make_dir_parents): Use lchown rather than chown, and
70902         lchmod rather than chmod.
70903
70904         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
70905         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
70906         "proc" reported by n0dalus.
70907
70908         * lib/mountlist.c: Include <limits.h>.
70909         (dev_from_mount_options)
70910         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
70911         New function.  It no longer assumes "dev=" has the System V meaning
70912         on Linux (since it doesn't).  It also parses "dev=" more carefully.
70913         (read_file_system_list)
70914         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
70915         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
70916         dev= in that case.
70917
70918         * lib/posixtm.h (PDS_PRE_2000): New macro.
70919         * lib/posixtm.c (year): Arg is now syntax_bits rather than
70920         allow_century.  All usages changed.  Reject dates outside the range
70921         1969-1999 if PDS_PRE_2000 is used.
70922
70923 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70924
70925         Sync from coreutils.
70926         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
70927         (Time of day items): Mention the possibility of leap seconds.
70928         Problem reported by Dr. David Alan Gilbert.
70929
70930 2006-01-09  Jim Meyering  <jim@meyering.net>
70931
70932         Sync from coreutils.
70933
70934         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
70935
70936         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
70937
70938         * lib/modechange.c (mode_compile): Reject an invalid mode string
70939         that starts with an octal digit.  From Andreas Gruenbacher.
70940
70941         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
70942         and dup to open_safer and dup_safer, respectively.
70943         (openat_permissive): Fix typo in comment.
70944
70945         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
70946         "gettext.h"; either no longer needed or are guaranteed by openat.h.
70947         (_): Remove; no longer needed.
70948         (openat): Renamed from rpl_openat; no need for rpl_openat
70949         since openat.h renames openat for us.
70950         Replace most of the body with a call to openat_permissive,
70951         to avoid duplicate code.
70952         Port to (probably hypothetical) environments were mode_t is
70953         wider than int.
70954         (openat_permissive): Require mode arg, so that we can check
70955         types better.  Put it just after flags.  Change cwd failure
70956         indicator from pointer-to-bool to pointer-to-errno-value.
70957         All callers changed.
70958         Invoke openat_save_fail and/or openat_restore_fail if
70959         cwd_errno is null, so that openat can call us.
70960         (openat_permissive, fdopendir, fstatat, unlinkat):
70961         Simplify errno handling to avoid some duplicate code,
70962         as it's OK to set errno on success.
70963         * lib/openat.h: Revamp code so that function macros depend on
70964         __OPENAT_PREFIX only, not also on AT_FDCWD.
70965         (openat_ro): Remove.  Caller changed to use openat_permissive.
70966         (openat_permissive): Now a macro, if not a function.
70967         (openat_restore_fail, openat_save_fail): Now always functions,
70968         since mkdirat needs them even if __OPENAT_PREFIX is defined.
70969
70970         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
70971         and openat.c.
70972         * lib/mkdirat.c: Include openat-priv.h.
70973         Remove definitions of macros defined therein.
70974         * lib/openat.c: Likewise.
70975
70976         * lib/mkdirat.c (mkdirat): New file and function.
70977         * lib/openat.h (mkdirat): Declare.
70978
70979         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70980
70981         * lib/openat.h (openat_permissive): Declare.
70982         (openat_ro): Define.
70983
70984         * lib/openat.c (EXPECTED_ERRNO): New macro.
70985         (openat_permissive): New function -- used in remove.c rewrite.
70986         (all functions): Set errno just before returning, only if there
70987         was an actual failure.
70988         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70989
70990         Emulate openat-family functions using Linux's procfs, if possible.
70991         Idea and some code based on Ulrich Drepper's glibc changes.
70992
70993         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70994         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70995         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70996         before falling back on save_cwd and restore_cwd.
70997         (fdopendir, fstatat, unlinkat): Likewise.
70998
70999         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
71000         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
71001
71002         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
71003         as second argument to va_arg.  Otherwise, some versions of gcc
71004         warn that `if this code is reached, the program will abort'.
71005
71006 2006-01-09  Jim Meyering  <jim@meyering.net>
71007
71008         Sync from coreutils.
71009         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
71010         Require openat-priv.h.
71011
71012 2006-01-09  Bruno Haible  <bruno@clisp.org>
71013
71014         * modules/strnlen (Include): Use strnlen.h.
71015
71016 2006-01-09  Bruno Haible  <bruno@clisp.org>
71017
71018         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
71019
71020 2006-01-09  Bruno Haible  <bruno@clisp.org>
71021
71022         * lib/sysexit_.h (EX_OK): New macro.
71023         Suggested by Martin Lambers <marlam@marlam.de>.
71024
71025 2006-01-09  Bruno Haible  <bruno@clisp.org>
71026
71027         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
71028         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
71029
71030 2006-01-09  Bruno Haible  <bruno@clisp.org>
71031
71032         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
71033         numbers.
71034
71035 2006-01-09  Bruno Haible  <bruno@clisp.org>
71036
71037         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
71038         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
71039         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
71040         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
71041
71042 2006-01-09  Bruno Haible  <bruno@clisp.org>
71043
71044         * build-aux/javacomp.sh.in: New file, moved from lib/.
71045         * modules/javacomp-script (Files): Update.
71046         (configure.ac): Add AC_CONFIG_FILES invocation.
71047         (EXTRA_DIST): Remove variable.
71048
71049         * build-aux/javaexec.sh.in: New file, moved from lib/.
71050         * modules/javaexec (Files): Update.
71051         (configure.ac): Add AC_CONFIG_FILES invocation.
71052         (EXTRA_DIST): Remove javaexec.sh.in.
71053
71054         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
71055         * modules/csharpcomp-script (Files): Update.
71056         (configure.ac): Add AC_CONFIG_FILES invocation.
71057         (EXTRA_DIST): Remove variable.
71058
71059         * build-aux/csharpexec.sh.in: New file, moved from lib/.
71060         * modules/csharpexec (Files): Update.
71061         (configure.ac): Add AC_CONFIG_FILES invocation.
71062         (EXTRA_DIST): Remove csharpexec.sh.in.
71063
71064 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71065
71066         Sync from coreutils.
71067
71068         Add POSIX ACL support
71069         * lib/acl.h (copy_acl, set_acl): Add declarations.
71070         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
71071         systems other than Linux.
71072         (chmod_or_fchmod): New function: use fchmod when possible,
71073         and chmod otherwise.
71074         (file_has_acl): Add a POSIX ACL implementation, with a
71075         Linux-specific subcase.
71076         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
71077         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
71078         acls are unsupported.
71079         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
71080         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
71081         are unsupported.
71082
71083 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71084
71085         Sync from coreutils.
71086         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
71087
71088 2006-01-07  Bruno Haible  <bruno@clisp.org>
71089
71090         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
71091         gl_EARLY.
71092
71093 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71094
71095         * lib/strftime.c (tzname): Don't declare if it is already #defined.
71096         Problem reported for Mingw by Mark Junker.
71097
71098 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71099
71100         * README: Gnulib normally doesn't generate a tarball.
71101
71102 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
71103
71104         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
71105         long int, not int, for nanosecond counts, so that people who are
71106         used to POSIX struct timespec won't be surprised.  Reported by Jim
71107         Meyering.
71108
71109 2005-12-28  Bruno Haible  <bruno@clisp.org>
71110
71111         * build-aux/config.rpath: Update from GNU gettext.
71112
71113 2005-12-16  Jim Meyering  <jim@meyering.net>
71114
71115         * modules/fprintftime: New module.
71116         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
71117
71118 2005-12-16  Jim Meyering  <jim@meyering.net>
71119
71120         * m4/fprintftime.m4: New file.
71121
71122 2005-12-16  Jim Meyering  <jim@meyering.net>
71123
71124         * lib/fprintftime.c, lib/fprintftime.h: New files.
71125
71126 2005-12-15  Simon Josefsson  <jas@extundo.com>
71127
71128         * modules/socklen (configure.ac): Fix M4 macro name, to align with
71129         new m4/socklen.m4.
71130
71131 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71132
71133         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
71134         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
71135
71136 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71137
71138         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
71139         * lib/argp-help.c (fill_in_uparams): Check if the constructed
71140         struct uparams is valid. Fall back to the default values if it is
71141         not.
71142
71143 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71144
71145         * modules/argp (Files): Add argp-pin.c
71146         (Depends-on): dirname
71147         (lib_SOURCES): Add argp-pin.c
71148
71149 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71150
71151         * m4/argp.m4:  Check if program_invocation_name and
71152         program_invocation_short_name are declared and define appropriate
71153         macros if they are not.
71154
71155 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71156
71157         * lib/argp-help.c (__argp_base_name): New function
71158         (__argp_short_program_name): Rewrite using __argp_base_name
71159         * lib/argp-namefrob.h: Define program_invocation_name and
71160         program_invocation_short_name if requested
71161         (__argp_base_name): Add prototype
71162         * lib/argp-parse.c (argp_def): Use gettext wrappers
71163         (argp_default_parser): Use __argp_base_name
71164         * lib/argp-pin.c: New file. Defines program_invocation_name and
71165         program_invocation_short_name on systems that lack them.
71166
71167 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
71170         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
71171         porting problem reported by Georg Schwarz in
71172         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
71173
71174 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
71177         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
71178         porting problem reported by Georg Schwarz in
71179         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
71180
71181 2005-12-05  Bruno Haible  <bruno@clisp.org>
71182
71183         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
71184         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
71185         Reported by Mark Junker <mjscod@gmx.de>.
71186
71187 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
71188
71189         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
71190         Use implementation from Albert Chin, with some
71191         comments/corrections by Stepan Kasal and myself.
71192
71193 2005-12-02  Bruno Haible  <bruno@clisp.org>
71194
71195         * gnulib-tool (func_import): Accept GPLed build tool modules when
71196         --lgpl is given.
71197         * modules/csharpcomp-script: New file.
71198         * modules/csharpcomp: Depend on it.
71199         * modules/javacomp-script: New file.
71200         * modules/javacomp: Depend on it.
71201         Suggested by Simon Josefsson.
71202
71203 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
71204
71205         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
71206         statement, to work around an HP-UX 10.20 compiler bug reported by
71207         Peter O'Gorman.
71208
71209 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71210
71211         * modules/savedir (Depends-on): Add openat.
71212
71213 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71214
71215         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
71216         (uintmax_t) [defined uintmax_t]: Do not declare.
71217         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
71218         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
71219         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
71220         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
71221         sake of portability to weird hosts that C allows (though we don't
71222         know of any practical examples).
71223
71224         * lib/savedir.h (fdsavedir): New decl.
71225         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
71226         contains most of the former guts of savedir.
71227         (savedir): Use savedirstream.
71228         Include "openat.h".
71229
71230 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71231
71232         * modules/obstack (Files): Add m4/ulonglong.m4.
71233         Problem reported by Davide Angelocola.
71234
71235 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
71238         coreutils no longer futzes with rounding modes.
71239
71240 2005-11-14  Jim Meyering  <jim@meyering.net>
71241
71242         * lib/mkstemp-safer.c: Include <config.h>, required for possible
71243         replacement of mkstemp.
71244
71245 2005-11-10  Simon Josefsson  <jas@extundo.com>
71246
71247         * lib/readline.c: Remove EOL.
71248
71249 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71250
71251         * modules/gethrxtime (Depends-on): Add gettime.
71252
71253 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71254
71255         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
71256         or gettimeofday; no longer needed.
71257
71258 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71259
71260         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
71261         time business.
71262         (gethrxtime) [! (HAVE_NANOUPTIME
71263         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
71264         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
71265         our own approximation.
71266
71267 2005-11-08  Eric Blake  <ebb9@byu.net>
71268
71269         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
71270
71271 2005-11-08  Eric Blake  <ebb9@byu.net>
71272
71273         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
71274
71275 2005-11-04  Bruno Haible  <bruno@clisp.org>
71276
71277         * gnulib-tool: Implement --update mode.
71278
71279 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71280
71281         Fix porting problem reported by Theodoros V. Kalamatianos.
71282         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
71283         Don't assume that futimes failing means we must fail.
71284
71285 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71286
71287         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
71288         variables to suggest the intended function of the PATH_MAX check.
71289
71290 2005-10-30  Kean Johnston  <jkj@sco.com>
71291
71292         Trivial changes to support SCO systems.
71293         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
71294         as PATH_MAX.
71295         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
71296         where __ptr is null when no I/O is pending.
71297
71298 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71299
71300         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
71301         leave errno alone.  Problem reported by Dmitry V. Levin.
71302
71303 2005-10-28  Simon Josefsson  <jas@extundo.com>
71304
71305         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
71306         Test more.
71307
71308         * tests/test-gc-md2.c, tests/test-md2.c: New files.
71309
71310         * modules/md2, modules/md2-tests: New files.
71311
71312 2005-10-28  Simon Josefsson  <jas@extundo.com>
71313
71314         * m4/inet_ntop.m4: More tests.
71315
71316         * m4/gc-md2.m4, md2.m4: New file.
71317
71318 2005-10-28  Simon Josefsson  <jas@extundo.com>
71319
71320         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
71321         "restrict" keywords, as per POSIX.  Protect the function
71322         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
71323         Don't use K&R prototypes.  Check the sprintf return values.
71324         Re-define EAFNOSUPPORT if not present.  Indent.
71325
71326         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
71327         suggested by Bruno Haible <bruno@clisp.org>.
71328
71329         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
71330
71331         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
71332
71333         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
71334         libgcrypt).
71335
71336         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
71337
71338         * lib/md2.h, lib/md2.c: New files.
71339
71340 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
71341
71342         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
71343         errno alone.  Problem reported by Frederic Jolliton.
71344
71345 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71346
71347         * modules/verify (License): Change from GPL to LGPL.  This is a
71348         tiny module and there are apparently near-equivalents that are
71349         under the BSD license.
71350
71351 2005-10-24  Simon Josefsson  <jas@extundo.com>
71352
71353         * modules/sha1: Relicense to LGPL.
71354
71355 2005-10-24  Simon Josefsson  <jas@extundo.com>
71356
71357         * lib/md4.h: Shrink buffer size, now that we changed the type.
71358
71359 2005-10-23  Simon Josefsson  <jas@extundo.com>
71360
71361         * gnulib-tool (func_import): Fix --tests-base.
71362
71363 2005-10-22  Simon Josefsson  <jas@extundo.com>
71364
71365         * modules/arcfour (Depends-on): Need stdint.
71366
71367 2005-10-22  Simon Josefsson  <jas@extundo.com>
71368
71369         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
71370         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
71371
71372 2005-10-22  Simon Josefsson  <jas@extundo.com>
71373
71374         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
71375         suggested by Bruno Haible <bruno@clisp.org>.
71376
71377 2005-10-22  Simon Josefsson  <jas@extundo.com>
71378
71379         * lib/crc.h: Include stddef.h, for size_t.
71380
71381 2005-10-22  Simon Josefsson  <jas@extundo.com>
71382
71383         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
71384         arcfour_context struct (simplify test vector testing in GNU
71385         Shishi).
71386
71387 2005-10-21  Simon Josefsson  <jas@extundo.com>
71388
71389         * modules/des, modules/des-tests: New files.
71390
71391         * modules/gc-des, modules/gc-des-tests: New files.
71392
71393         * tests/test-des.c, tests/test-gc-des.c: New file.
71394
71395 2005-10-21  Simon Josefsson  <jas@extundo.com>
71396
71397         * modules/arctwo, modules/arctwo-tests: New files.
71398
71399         * tests/test-arctwo.c: New file.
71400
71401         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
71402
71403         * tests/test-gc-arctwo.c: New file.
71404
71405 2005-10-21  Simon Josefsson  <jas@extundo.com>
71406
71407         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
71408         Bruno Haible <bruno@clisp.org>.
71409
71410         * m4/gc-des.m4: New file.
71411
71412 2005-10-21  Simon Josefsson  <jas@extundo.com>
71413
71414         * m4/arctwo.m4: New file.
71415
71416         * m4/gc-arctwo.m4: New file.
71417
71418 2005-10-21  Simon Josefsson  <jas@extundo.com>
71419
71420         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
71421         block.
71422
71423 2005-10-21  Simon Josefsson  <jas@extundo.com>
71424
71425         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
71426         <bruno@clisp.org>.
71427
71428         * lib/hmac-sha1.c (hmac_sha1): Likewise.
71429
71430         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
71431         Bruno Haible <bruno@clisp.org>.
71432
71433         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
71434         <bruno@clisp.org>.
71435
71436 2005-10-21  Simon Josefsson  <jas@extundo.com>
71437
71438         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
71439
71440 2005-10-21  Simon Josefsson  <jas@extundo.com>
71441
71442         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
71443
71444 2005-10-21  Simon Josefsson  <jas@extundo.com>
71445
71446         * lib/des.h, lib/des.c: New files.
71447
71448         * lib/gc-gnulib.c: Support DES.c
71449
71450 2005-10-21  Simon Josefsson  <jas@extundo.com>
71451
71452         * lib/arctwo.h, lib/arctwo.c: New files.
71453
71454         * lib/gc-gnulib.c: Support ARCTWO.
71455
71456 2005-10-21  Simon Josefsson  <jas@extundo.com>
71457
71458         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
71459         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71460
71461 2005-10-21  Simon Josefsson  <jas@extundo.com>
71462
71463         * gnulib-tool (func_import, func_create_testdir): Define automake
71464         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
71465         Makefile.am snippet),
71466         suggested by Bruno Haible <bruno@clisp.org>.
71467
71468         * modules/gc (Makefile.am): Use it.
71469
71470 2005-10-21  Bruno Haible  <bruno@clisp.org>
71471
71472         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
71473         patch.
71474
71475 2005-10-19  Simon Josefsson  <jas@extundo.com>
71476
71477         * tests/test-gc-rijndael.c: New file.
71478
71479         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
71480
71481 2005-10-19  Simon Josefsson  <jas@extundo.com>
71482
71483         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
71484         interface too.
71485
71486 2005-10-19  Simon Josefsson  <jas@extundo.com>
71487
71488         * tests/test-gc-arcfour.c: New file.
71489
71490         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
71491
71492 2005-10-19  Simon Josefsson  <jas@extundo.com>
71493
71494         * modules/gc-md4, modules/gc-md4-tests: New file.
71495
71496         * tests/test-gc-md4.c: New file.
71497
71498 2005-10-19  Simon Josefsson  <jas@extundo.com>
71499
71500         * m4/gc-md4.m4: New file.
71501
71502 2005-10-19  Simon Josefsson  <jas@extundo.com>
71503
71504         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
71505         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
71506         <kasal@ucw.cz>.
71507
71508 2005-10-19  Simon Josefsson  <jas@extundo.com>
71509
71510         * m4/gc-arcfour.m4: New file.
71511
71512         * m4/gc-rijndael.m4: New file.
71513
71514 2005-10-19  Simon Josefsson  <jas@extundo.com>
71515
71516         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
71517
71518 2005-10-19  Simon Josefsson  <jas@extundo.com>
71519
71520         * lib/gc-gnulib.c: Support ARCFOUR.
71521
71522 2005-10-19  Simon Josefsson  <jas@extundo.com>
71523
71524         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
71525         support.
71526
71527         * lib/gc.h: Add ECB enum type.
71528
71529         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
71530
71531 2005-10-18  Simon Josefsson  <jas@extundo.com>
71532
71533         * tests/test-md5.c: New file.
71534
71535         * modules/md5-tests: New file.
71536
71537 2005-10-18  Simon Josefsson  <jas@extundo.com>
71538
71539         * tests/test-md4.c: New file.
71540
71541         * modules/md4, modules/md4-tests: New files.
71542
71543 2005-10-18  Simon Josefsson  <jas@extundo.com>
71544
71545         * m4/md4.m4: New file.
71546
71547 2005-10-18  Simon Josefsson  <jas@extundo.com>
71548
71549         * lib/md4.h, lib/md4.c: New files, based on md5.?.
71550
71551 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
71552
71553         * gnulib-tool (func_create_testdir): Omit the second check whether
71554         BUILT_SOURCES in nonempty.
71555
71556 2005-10-17  Simon Josefsson  <jas@extundo.com>
71557
71558         * tests/test-rijndael.c: New file.
71559
71560 2005-10-17  Simon Josefsson  <jas@extundo.com>
71561
71562         * modules/sha1: Depend on stdint instead of md5.
71563
71564         * modules/md5: Depend on stdint, remove uint32_t.
71565
71566 2005-10-17  Simon Josefsson  <jas@extundo.com>
71567
71568         * modules/gc-sha1-tests: New file.
71569
71570         * tests/test-gc-sha1.c: New file.
71571
71572 2005-10-17  Simon Josefsson  <jas@extundo.com>
71573
71574         * m4/md5.m4: Remove call to uint32_t.m4.
71575
71576 2005-10-17  Simon Josefsson  <jas@extundo.com>
71577
71578         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
71579
71580         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
71581         md5.h.
71582
71583         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
71584
71585         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
71586
71587 2005-10-17  Simon Josefsson  <jas@extundo.com>
71588
71589         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
71590
71591 2005-10-17  Simon Josefsson  <jas@extundo.com>
71592
71593         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
71594
71595 2005-10-17  Simon Josefsson  <jas@extundo.com>
71596
71597         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
71598
71599         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
71600
71601 2005-10-17  Bruno Haible  <bruno@clisp.org>
71602
71603         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
71604         that it can also be used in a test.
71605
71606 2005-10-16  Bruno Haible  <bruno@clisp.org>
71607
71608         * gnulib-tool (func_emit_tests_Makefile_am): Also define
71609         TESTS_ENVIRONMENT, so that individual tests can augment it.
71610
71611         * gnulib-tool (func_create_testdir): Use an intermediate target for
71612         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
71613         macros, like $(ALLOCA_H), which cannot be passed through the command
71614         line.
71615
71616 2005-10-15  Simon Josefsson  <jas@extundo.com>
71617
71618         * modules/rijndael-tests: New file.
71619
71620         * modules/rijndael: New file.
71621
71622 2005-10-15  Simon Josefsson  <jas@extundo.com>
71623
71624         * m4/rijndael.m4: New file.
71625
71626 2005-10-15  Simon Josefsson  <jas@extundo.com>
71627
71628         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
71629
71630         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
71631
71632 2005-10-14  Simon Josefsson  <jas@extundo.com>
71633
71634         * tests/test-arcfour.c: New file.
71635
71636         * modules/arcfour, modules/arcfour-tests: New files.
71637
71638 2005-10-14  Simon Josefsson  <jas@extundo.com>
71639
71640         * m4/arcfour.m4: New file.
71641
71642 2005-10-14  Simon Josefsson  <jas@extundo.com>
71643
71644         * lib/arcfour.h, lib/arcfour.c: New files.
71645
71646 2005-10-14  Roland McGrath  <roland@redhat.com>
71647
71648         Import from libc.  [BZ #1331]
71649         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
71650         macro argument.
71651         Reported by Matej Vela <vela@debian.org>.
71652
71653 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71654
71655         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
71656         include <wchar.h>; no longer needed.
71657
71658 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71659
71660         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
71661
71662 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
71663         and  Ulrich Drepper  <drepper@redhat.com>
71664
71665         Import from libc.
71666         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
71667         instead of inline stream orientation test and two separate
71668         function calls.  Pay no attention to USE_IN_LIBIO.
71669
71670 2005-10-13  Simon Josefsson  <jas@extundo.com>
71671
71672         * modules/gc-hmac-md5-tests: New file.
71673
71674         * tests/test-gc-hmac-sha1.c: New file.
71675
71676         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
71677
71678         * modules/gc-hmac-md5-tests: New file.
71679
71680         * tests/test-gc-md5.c: New file.
71681
71682         * modules/gc-md5-tests: New file.
71683
71684 2005-10-13  Simon Josefsson  <jas@extundo.com>
71685
71686         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
71687         Move memory allocation outside of loop.
71688
71689 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
71692         intermediate directory is in a read-only file system.  Problem
71693         reported by Eric Blake.
71694
71695 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
71696
71697         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
71698
71699 2005-10-12  Simon Josefsson  <jas@extundo.com>
71700
71701         * tests/test-hmac-sha1.c: New file.
71702
71703         * modules/hmac-sha1-tests: New file.
71704
71705         * modules/hmac-sha1: New file.
71706
71707 2005-10-12  Simon Josefsson  <jas@extundo.com>
71708
71709         * modules/gc-sha1: New file.
71710
71711 2005-10-12  Simon Josefsson  <jas@extundo.com>
71712
71713         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
71714
71715         * tests/test-gc-pbkdf2-sha1.c: New file.
71716
71717 2005-10-12  Simon Josefsson  <jas@extundo.com>
71718
71719         * modules/gc-md5, modules/gc-hmac-md5: New files.
71720
71721         * modules/gc (Files): Remove md5, memxor and hmac files.
71722
71723 2005-10-12  Simon Josefsson  <jas@extundo.com>
71724
71725         * m4/gc-pbkdf2-sha1.m4: New file.
71726
71727         * m4/gc-hmac-sha1.m4: New file.
71728
71729         * m4/gc-sha1: New file.
71730
71731         * m4/hmac-sha1.m4: New file.
71732
71733 2005-10-12  Simon Josefsson  <jas@extundo.com>
71734
71735         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
71736
71737         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
71738
71739 2005-10-12  Simon Josefsson  <jas@extundo.com>
71740
71741         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
71742         suggested by Bruno Haible <bruno@clisp.org>.
71743
71744 2005-10-12  Simon Josefsson  <jas@extundo.com>
71745
71746         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
71747
71748 2005-10-12  Simon Josefsson  <jas@extundo.com>
71749
71750         * lib/gc-pbkdf2-sha1.c: New file.
71751
71752         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
71753
71754 2005-10-12  Simon Josefsson  <jas@extundo.com>
71755
71756         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
71757
71758         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
71759
71760 2005-10-12  Simon Josefsson  <jas@extundo.com>
71761
71762         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
71763         GC_USE_HMAC_MD5, respectively.
71764
71765         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
71766         (gc_md5): Fix typo.
71767
71768         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
71769
71770         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
71771
71772         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
71773
71774 2005-10-12  Bruno Haible  <bruno@clisp.org>
71775
71776         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
71777         Reported by Stepan Kasal <kasal@ucw.cz>.
71778
71779 2005-10-11  Simon Josefsson  <jas@extundo.com>
71780
71781         * tests/test-crc.c: New file.
71782
71783         * modules/crc, modules/crc-tests: New files.
71784
71785 2005-10-11  Simon Josefsson  <jas@extundo.com>
71786
71787         * m4/crc.m4: New file.
71788
71789 2005-10-11  Simon Josefsson  <jas@extundo.com>
71790
71791         * lib/gc.h: Add gc_hash and gc_hash_buffer.
71792
71793         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
71794
71795         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
71796
71797 2005-10-11  Simon Josefsson  <jas@extundo.com>
71798
71799         * lib/crc.h, lib/crc.c: New files.
71800
71801         * lib/gc.h (gc_hash_buffer): Add doc.
71802
71803 2005-10-11  Bruno Haible  <bruno@clisp.org>
71804
71805         * modules/c-strcasestr: New file.
71806         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
71807
71808 2005-10-11  Bruno Haible  <bruno@clisp.org>
71809
71810         * modules/c-strcase: New file.
71811         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
71812
71813 2005-10-11  Bruno Haible  <bruno@clisp.org>
71814
71815         * lib/strcasecmp.c: Include limits.h.
71816         (strcasecmp): Avoid integer overflow on exotic platforms.
71817         * lib/strncasecmp.c: Include limits.h.
71818         (strncasecmp): Avoid integer overflow on exotic platforms.
71819         Reported by Paul Eggert.
71820
71821 2005-10-11  Bruno Haible  <bruno@clisp.org>
71822
71823         * lib/c-strcasestr.h: New file, from GNU gettext.
71824         * lib/c-strcasestr.c: New file, from GNU gettext.
71825
71826 2005-10-11  Bruno Haible  <bruno@clisp.org>
71827
71828         * lib/c-strcase.h: New file, from GNU gettext.
71829         * lib/c-strcasecmp.c: New file, from GNU gettext.
71830         * lib/c-strncasecmp.c: New file, from GNU gettext.
71831
71832 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71833
71834         * modules/mempcpy (License): GPL -> LGPL.
71835         * modules/strchrnul (License): Likewise.
71836         * modules/sysexits (License): Likewise.
71837
71838 2005-10-08  Simon Josefsson  <jas@extundo.com>
71839
71840         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
71841
71842 2005-10-07  Simon Josefsson  <jas@extundo.com>
71843
71844         * m4/memxor.m4: Remove gl_C_RESTRICT call.
71845
71846 2005-10-06  Simon Josefsson  <jas@extundo.com>
71847
71848         * tests/test-hmac-md5.c: New file.
71849
71850         * modules/hmac-md5-tests: New file.
71851
71852         * modules/hmac-md5: New file.
71853
71854 2005-10-06  Simon Josefsson  <jas@extundo.com>
71855
71856         * m4/hmac-md5.m4: New file.
71857
71858         * m4/memxor.m4: Require gl_C_RESTRICT.
71859
71860 2005-10-06  Simon Josefsson  <jas@extundo.com>
71861
71862         * lib/memxor.c (memxor): Avoid casts and warnings.
71863
71864 2005-10-06  Simon Josefsson  <jas@extundo.com>
71865
71866         * lib/hmac-md5.c: New file.
71867
71868         * lib/hmac.h: New file.
71869
71870 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71871
71872         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
71873         promotes to int, not unsigned int, to catch the AIX 5.3
71874         compiler bug.
71875
71876 2005-10-05  Simon Josefsson  <jas@extundo.com>
71877
71878         * modules/memxor: New file.
71879
71880         * modules/iconv (Files): Move config.rpath to havelib, it is used
71881         there.
71882
71883         * modules/havelib (Files): Add config.rpath.
71884
71885 2005-10-05  Simon Josefsson  <jas@extundo.com>
71886
71887         * m4/memxor.m4: New file.
71888
71889 2005-10-05  Simon Josefsson  <jas@extundo.com>
71890
71891         * lib/memxor.c (memxor): Fix compiler error.
71892
71893         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
71894         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
71895
71896         * lib/memxor.h, lib/memxor.c: New files.
71897
71898         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
71899         we assume all systems have it, suggested by Jim Meyering
71900         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
71901         any systems lack sys/socket.h; mingw32 is known to lack it, but we
71902         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
71903         same reasons.
71904
71905 2005-10-05  Simon Josefsson  <jas@extundo.com>
71906
71907         * config/srclist.txt: Add glibc bug 1423 for md5.h.
71908
71909 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71910
71911         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
71912         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
71913         needed, since the source code now assumes these .h files.
71914
71915 2005-10-05  Derek Price  <derek@ximbiot.com>
71916
71917         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
71918
71919 2005-10-05  Bruno Haible  <bruno@clisp.org>
71920
71921         * modules/stdint (License): Change to LGPL.
71922
71923 2005-10-04  Simon Josefsson  <jas@extundo.com>
71924
71925         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
71926         D. Baushke" <mdb@gnu.org>.
71927
71928 2005-10-04  Bruno Haible  <bruno@clisp.org>
71929
71930         * lib/verify.h (verify_true): Provide alternative definition for C++.
71931
71932 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
71933
71934         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
71935         (SSIZE_MAX): New macro, if not already defined.
71936         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
71937         than 2 GiB.
71938
71939 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71940
71941         Sync from coreutils.
71942         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
71943         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
71944         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
71945         ULLONG_MAX doesn't work with 2.7.2.1.
71946
71947 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71948
71949         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
71950         From Ben Pfaff.
71951
71952         * modules/exclude (Depends-on): Depend on verify.
71953         * modules/strtoimax (Depends-on): Likewise.
71954         * modules/utimecmp (Depends-on): Likewise.
71955
71956 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71957
71958         * lib/exclude.c: Include verify.h.
71959         (verify): Remove.  All callers changed to use verify.h's version.
71960         * lib/strtoimax.c: Likewise.
71961         * lib/utimecmp.c: Likewis.e
71962
71963         Sync from coreutils.
71964         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
71965         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
71966         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
71967         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
71968         bother returning ENOSYS if settimeofday or stime fails; just let
71969         them return whatever errno they want to return.
71970         * lib/utimens.c: Include unistd.h, for dup2.
71971         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
71972         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
71973
71974 2005-10-02  Jim Meyering  <jim@meyering.net>
71975
71976         Sync from coreutils.
71977         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71978         from glibc-2.2.5 that fails for read-only files.
71979
71980 2005-10-02  Jim Meyering  <jim@meyering.net>
71981
71982         Sync from coreutils.
71983         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71984         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71985         `#if HAVE_CONFIG_H'.
71986         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71987         Remove AT_FDCWD test.
71988         Do not consume the fd unless successful.
71989         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71990         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71991         block, so that we don't even try to compile it if settimeofday is
71992         available.  This works around a compilation failure on OSF1 V5.1,
71993         due to stime requiring a `long int*' while tv_sec is `int'.
71994
71995 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71996
71997         Sync from coreutils.
71998         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71999         against `yes', rather than just testing for nonempty.
72000
72001 2005-10-01  Simon Josefsson  <jas@extundo.com>
72002
72003         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
72004         and Darwin.
72005
72006         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
72007         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
72008         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
72009         freeaddrinfo and gai_strerror are declared by the POSIX headers.
72010         Check if struct addrinfo is declared.
72011
72012 2005-10-01  Simon Josefsson  <jas@extundo.com>
72013
72014         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
72015         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
72016         AI_* and EAI_* definitions.  Protect function declarations.
72017
72018 2005-10-01  Jim Meyering  <jim@meyering.net>
72019
72020         Sync from coreutils.
72021
72022         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
72023         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
72024         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
72025         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72026         in the inet and nsl libraries.  Required on Solaris 5.7.
72027
72028 2005-10-01  Jim Meyering  <jim@meyering.net>
72029
72030         Sync from coreutils.
72031         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72032         in the inet and nsl libraries.  Required on Solaris 5.7.
72033
72034 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
72035
72036         * lib/getdelim.c (getdelim): Remove unused variables.
72037
72038 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72039
72040         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
72041         so that the code works even with ancient cpp.  Portability problem
72042         with GCC 2.7.2.1 reported by Thomas M.Ott.
72043
72044 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72045
72046         * modules/regex (Depends-on): Add strcase.
72047
72048         * modules/gethostname (Licence): Change from GPL to LGPL, since
72049         gethostname.c is a trivial implementation of a standard library
72050         function.
72051         * modules/poll (License): Change from GPL to LGPL, since it's
72052         derived from LGPL code.
72053
72054 2005-09-27  Jim Meyering  <jim@meyering.net>
72055
72056         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
72057         HAVE_CONFIG_H.
72058
72059         * lib/intprops.h (signed_type_or_expr__): Define.
72060         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
72061         for unsigned types.
72062
72063 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72064
72065         * lib/verify.h (verify_expr): Remove, replacing with:
72066         (verify_true): New macro that returns true instead of void.
72067         (verify_type__): Remove.
72068         (verify): Use verify_true rather than verify_type__.
72069
72070 2005-09-26  Bruno Haible  <bruno@clisp.org>
72071
72072         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
72073         is necessary.
72074         (lib_SOURCES): Remove mbchar.c.
72075         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
72076         (Files): Add m4/mbrtowc.m4.
72077         * modules/mbiter: Likewise.
72078         * modules/mbuiter: Likewise.
72079
72080 2005-09-26  Bruno Haible  <bruno@clisp.org>
72081
72082         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
72083         compile mbchar.c if they are not both present.
72084         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
72085         * m4/mbiter.m4 (gl_MBITER): Likewise.
72086         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
72087         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
72088         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
72089
72090 2005-09-25  Jim Meyering  <jim@meyering.net>
72091
72092         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
72093         also uses socklen_t.
72094
72095 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
72096
72097         * lib/utimens.c (ENOSYS): Define if not already defined.
72098         (futimens): Support having a null PATH if the file descriptor
72099         is nonnegative.
72100
72101         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
72102         Remove.
72103         (__attribute): Define to empty unless GCC 3.1 or later.
72104         This works around a core dump on OpenBSD 3.4, which has GCC
72105         2.95.3, which dumps core when given __attribute__(()).  It also
72106         simplifies other tests, since we really don't want to bother with
72107         worrying about which ancient version of GCC supported what.
72108         Original problem reported by Yoann Vandoorselaere, with part of
72109         the fix suggested by Derek Price.
72110
72111 2005-09-24  Jim Meyering  <jim@meyering.net>
72112
72113         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
72114         so we can once again use a positive bitfield width of 1 -- now we
72115         don't have to explain why we were using a bitfield width of 2.
72116
72117 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
72118
72119         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
72120         and similarly for the other external symbols.  Problem reported
72121         by James Gallager.
72122
72123         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
72124         bug reported by Jim Meyering.
72125
72126         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
72127         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
72128         not needed, since socklen is a prerequisite module.
72129
72130 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
72131
72132         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
72133         Problem reported by Eric Blake.
72134         (getaddrinfo): Initialize se so that it's not garbage.
72135         Redo internal storage allocation so that it doesn't make unportable
72136         assumptions about alignment.
72137         Fix a memory leak.
72138
72139         * lib/utimens.c (futimens): Use futimesat if available.
72140         Prefer it to futimes since it doesn't have the futimes bug.
72141
72142         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
72143         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
72144         Instead, declare a function that returns a pointer to an array,
72145         and use verify_type__ to declare the size of the array.
72146         Problem and germ of a solution reported by Bruno Haible.
72147         (verify_type__): Use 2, not 1, for bitfield size, to avoid
72148         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
72149
72150 2005-09-23  Jim Meyering  <jim@meyering.net>
72151
72152         Sync from coreutils.
72153         Correct build failure (socklen_t not defined) on at least
72154         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
72155         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
72156
72157 2005-09-23  Jim Meyering  <jim@meyering.net>
72158
72159         * modules/getaddrinfo (Depends-on): Add socklen.
72160
72161 2005-09-23  Bruno Haible  <bruno@clisp.org>
72162
72163         * tests/test-verify.c: New file.
72164
72165 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72166
72167         Sync from coreutils.
72168
72169         * modules/argmatch (Depends-on): Add verify.
72170         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
72171         unistd-safer.
72172         * modules/save-cwd (Depends-on): Likewise.
72173
72174         * modules/openat (Files): Add lib/openat-die.c.
72175         (Depends-on): Remove error, exitfail.
72176         Add dirname.
72177
72178         * modules/verify: New file.
72179         * MODULES.html.sh (Diagnostics <assert.h>): New section,
72180         with "verify" module.
72181
72182 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72183
72184         Sync from coreutils.
72185
72186         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
72187         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
72188         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
72189         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
72190         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
72191         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
72192         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
72193         Don't bother checking for string.h, stdlib.h, unistd.h.
72194         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
72195         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
72196         module's job.
72197         * m4/jm-macros.m4 (gl_MACROS): Likewise.
72198         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
72199
72200         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
72201         (gl_GETDATE): Use it.
72202
72203         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
72204
72205 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72206
72207         Sync from coreutils.
72208
72209         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
72210         stat-time.h.
72211         * lib/argmatch.h: Include verify.h
72212         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
72213         (ARGMATCH_ASSERT): Remove; unused.
72214         * lib/canonicalize.c: Assume STDC_HEADERS.
72215         * lib/exclude.c: Include "strcase.h".
72216         * lib/regex_internal.h [!defined _LIBC]: Likewise.
72217         * lib/getusershell.c: Include stdio--.h rather than stdio.h
72218         and stdio-safer.h.
72219         (getusershell): Call fopen, not fopen_safer.
72220         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
72221         Do not include unistd-safer.h.
72222         (save_cwd): Don't call fd_safer; no longer needed
72223         now that we include fcntl--.h.
72224
72225         * lib/getdate.y (relative_time): New type.
72226         (RELATIVE_TIME_0): New constant.
72227         (parser_control): Use relative_time instead of doing it ourselves.
72228         (%union): Add new relative_time rel member.
72229         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
72230         Now typeless.
72231         (relunit, relunit_snumber): Now of type rel.
72232         (zone, rel, relunit, get_date): Adjust to above changes.
72233
72234         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
72235         Do not include unistd-safer.h.
72236         (getloadavg): Don't call fd_safer; no longer needed
72237         now that we include fcntl--.h.
72238
72239         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
72240         (make_dir_parents): Treat ENOSYS like EEXIST.
72241
72242         Improve quality of diagnostics on restore_cwd failure.
72243         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
72244         (make_dir_parents): Last arg is now int * (for errno), not bool *.
72245         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
72246         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
72247         each time through the loop.  Do not diagnose restore_cwd failure;
72248         that is the caller's job (and perhaps the caller does not care).
72249
72250         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
72251         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
72252         If the file already exists but is not a directory, don't bother
72253         to try to make its parents.
72254         Close potential file descriptor leak if we can't chdir("/") (!).
72255         Don't always return true if chdir($PWD) fails; return true only
72256         if the requested action was done successfully (except for the
72257         chdir($PWD)).
72258         Don't log final directory unless we actually made it.
72259         Refactor to avoid duplicate code to fix up permissions.
72260         Don't attempt to fix up parent permissions if chdir($PWD) fails.
72261
72262         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
72263         to make it a bit faster and (I hope) clearer.
72264         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
72265         Fix bug in formats like %2N.
72266
72267         * lib/verify.h: New file.
72268
72269 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72270
72271         Sync from coreutils.
72272         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
72273
72274 2005-09-22  Jim Meyering  <jim@meyering.net>
72275
72276         Sync from coreutils.
72277
72278         * m4/lstat.m4 (gl_FUNC_LSTAT):
72279         Use AC_LIBSOURCES to require lstat.c and lstat.h.
72280         Remove obsolete comment.
72281         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
72282         * m4/xstrtod.m4: Likewise.
72283
72284         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
72285
72286 2005-09-22  Jim Meyering  <jim@meyering.net>
72287
72288         Sync from coreutils.
72289
72290         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
72291
72292         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
72293         the .tm_year member, since otherwise gcc-4.0 would now warn about
72294         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
72295
72296         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
72297         order to avoid an unsuppressible warning from gcc on 64-bit systems.
72298
72299         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
72300         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
72301         when run in a time zone for which daylight savings time is in effect
72302         for the starting date.
72303
72304         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
72305         stop us from restricting permissions of just-created absolute-named
72306         directories.
72307         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
72308         to restore initial working directory.
72309         * lib/mkdir-p.c (make_dir_parents): New parameter:
72310         different_working_dir, to tell caller if/when we change the working
72311         directory and are unable to return to the initial one.
72312         * lib/mkdir-p.h (make_dir_parents): Update prototype.
72313         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
72314         `return false'.  This fixes a bug introduced on 2004-07-30.
72315
72316         * lib/openat.c (fdopendir): Be sure to close the supplied
72317         file descriptor before returning.  This makes our replacement
72318         implementation a little closer to Solaris's, where fdopendir
72319         ties the file descriptor to the returned DIR* pointer.
72320         * lib/openat.c (unlinkat): New function.
72321         * lib/openat.h (unlinkat): Add prototype.
72322         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
72323         (openat_restore_fail): Rename from openat_restore_die.
72324         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
72325
72326         Provide an alternative to exiting immediately upon save_cwd or
72327         restore_cwd failure.  Now, an application can arrange e.g.,
72328         to perform a longjump in that case.
72329         * lib/openat.c: Include dirname.h.
72330         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
72331         (rpl_openat, fdopendir, fstatat): Call openat_save_die
72332         and openat_restore_die rather than calling error directly.
72333         Don't include "error.h" or "exitfail.h"; they're no longer needed.
72334
72335         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
72336         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
72337         define.
72338
72339         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
72340         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
72341                             int utc, int nanoseconds);
72342         Background:
72343         date should not have to allocate a megabyte of virtual memory to
72344         handle a format argument like +%1048575T.  When implemented with
72345         strftime, it must allocate such a buffer, use strftime to fill it
72346         in, print it, then free it.
72347         With fprintftime, it simply prints everything and exits.
72348         With no need for memory allocation, that's one fewer way to fail.
72349         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
72350         optional field width, not before, so we accept %9:z, not %:9z.
72351         (my_strftime): Be sure to use L_('x') for literals.
72352
72353         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
72354         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
72355         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
72356         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
72357         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
72358         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
72359         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
72360         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
72361         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
72362         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
72363         * lib/xgethostname.c, lib/xreadlink.c:
72364         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
72365
72366         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
72367         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
72368         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
72369         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72370         and don't include <sys/file.h>).
72371
72372 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
72373
72374         Sync from coreutils.
72375
72376         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
72377         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
72378         [!LDAV_DONE]: Avoid unused variable warning.
72379
72380 2005-09-21  Bruno Haible  <bruno@clisp.org>
72381
72382         * lib/unicodeio.h (unicode_to_mb): New declaration.
72383
72384 2005-09-20  Derek Price  <derek@ximbiot.com>
72385
72386         * lib/getaddrinfo.c: Don't include <netdb.h> included from
72387         getaddrinfo.h.
72388
72389 2005-09-20  Bruno Haible  <bruno@clisp.org>
72390
72391         * gnulib-tool: Remove trailing slashes from the values specified for
72392         --source-base, --m4-base, --tests-base, --aux-dir.
72393         Suggested by Simon Josefsson <jas@extundo.com>.
72394
72395 2005-09-20  Bruno Haible  <bruno@clisp.org>
72396
72397         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
72398         func_modules_to_filelist, func_import, func_create_testdir): Make all
72399         sorting results locale-independent, so that gnulib-cache.m4 doesn't
72400         change when gnulib-tool is invoked in a different locale.
72401
72402 2005-09-19  Simon Josefsson  <jas@extundo.com>
72403
72404         * m4/socklen.m4: Fix typo.
72405
72406 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72407
72408         Use a consistent style for including <config.h>.
72409         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
72410         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
72411         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
72412         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
72413         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
72414         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
72415         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
72416         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
72417         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
72418         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
72419         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
72420         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
72421         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
72422         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
72423         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
72424         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
72425         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
72426         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
72427         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
72428         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
72429         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
72430         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
72431         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
72432         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
72433         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
72434         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
72435         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
72436         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
72437         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
72438         lib/xstrtoumax.c, lib/yesno.c:
72439         Standardize inclusion of config.h.
72440         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
72441         lib/inttostr.h:  Removed inclusion of config.h from header files.
72442         * lib/inttostr.c:  Adjusted in-tree users.
72443         * lib/timespec.h: Remove superfluous warning to include config.h.
72444         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
72445         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
72446         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
72447         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
72448         config.h with HAVE_CONFIG_H.
72449
72450 2005-09-19  Jim Meyering  <jim@meyering.net>
72451
72452         * modules/pathmax (License): Change to LGPL.
72453
72454 2005-09-19  Derek Price  <derek@ximbiot.com>
72455
72456         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
72457
72458 2005-09-19  Bruno Haible  <bruno@clisp.org>
72459
72460         * gnulib-tool (import): Provide default for --tests-base.
72461
72462 2005-09-19  Bruno Haible  <bruno@clisp.org>
72463
72464         * doc/quote.texi: New file, extracted from gnulib.texi.
72465         * doc/ctime.texi: New file, extracted from gnulib.texi.
72466         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
72467         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
72468         * doc/gnulib.texi: Include them.
72469
72470 2005-09-18  Bruno Haible  <bruno@clisp.org>
72471
72472         Portability fix.
72473         * gnulib-tool (func_readlink): New function.
72474         (func_ln_if_changed): Use it.
72475
72476 2005-09-18  Bruno Haible  <bruno@clisp.org>
72477
72478         * gnulib-tool: Support --with-tests also with --import.
72479         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
72480         (func_import): Use variables $testsbase and $inctests. Emit a
72481         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
72482         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
72483         SUBDIRS += $testsdir.
72484         (func_create_testdir): Update.
72485
72486 2005-09-18  Bruno Haible  <bruno@clisp.org>
72487
72488         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
72489         instead of $dry_run.
72490         (func_cp_if_changed, func_mv_if_changed): Remove functions.
72491         (func_ln_if_changed): Don't handle dry-run here.
72492         (func_import): In dry-run mode, detect more precisely which actions
72493         would be performed, and don't use "...ing" verbs.
72494
72495 2005-09-18  Bruno Haible  <bruno@clisp.org>
72496
72497         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
72498         (func_import): Use join on two temporary files instead of three nested
72499         loops, in order to determine which files are new or old.
72500
72501 2005-09-18  Bruno Haible  <bruno@clisp.org>
72502
72503         * gnulib-tool (func_import): Comment out code that spits out the
72504         new files with --dry-run.
72505
72506 2005-09-18  Bruno Haible  <bruno@clisp.org>
72507
72508         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
72509
72510 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72511
72512         * lib/stat-time.h: New file.
72513         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
72514         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
72515         in a different way.
72516         (timespec_cmp): New function.
72517         * lib/utimecmp.c: Include stat-time.h.
72518         (SYSCALL_RESOLUTION): Depend on whether various struct stat
72519         members exist, not on the obsolescent ST_MTIM_NSEC.
72520         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
72521
72522 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72523
72524         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
72525
72526 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72527
72528         * MODULES.html.sh (File system functions): Add stat-time.
72529         * modules/stat-time: New file.
72530         * modules/timespec (Files): Remove m4/st_mtim.m4; this
72531         is now done in a different way, by the stat-time module.
72532         * modules/utimecmp (Depends-on): Add stat-time.
72533
72534 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72535
72536         * m4/st_mtim.m4: Remove.  Superseded by...
72537         * m4/stat-time.m4: New file.
72538         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
72539         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
72540
72541 2005-09-15  Derek Price  <derek@ximbiot.com>
72542
72543         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
72544
72545 2005-09-15  Derek Price  <derek@ximbiot.com>
72546
72547         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
72548         * lib/regex_internal.c: Ditto, using this...
72549         (__GNUC_PREREQ): ...new macro.
72550         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
72551         using...
72552         (__GNUC_PREREQ): ...this new macro.
72553
72554         * lib/strstr.h: Include string.h. Define strstr as a macro here.
72555
72556 2005-09-15  Derek Price  <derek@ximbiot.com>
72557             Paul Eggert  <eggert@cs.ucla.edu>
72558
72559         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
72560         changes, consolidating in...
72561         * lib/regex_internal.h: ...this file.
72562
72563 2005-09-13  Jim Meyering  <jim@meyering.net>
72564
72565         * lib/canon-host.c: Filter through gnu indent and reword comments
72566         slightly.
72567         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
72568
72569 2005-09-13  Derek Price  <derek@ximbiot.com>
72570
72571         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
72572         failure.
72573         Reported by Jim Meyering  <jim@meyering.net>.
72574
72575 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72576
72577         * lib/base64.c: Typo.
72578         (base64_encode): Put b64str in initialized data section.
72579
72580 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
72581
72582         Merge glibc and coreutils changes into gnulib, plus a few
72583         extra fixes.
72584         * lib/md5.c: Use #error rather than a string.
72585         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
72586         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
72587         (__attribute__): Define to empty for non recent-GCC.
72588         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
72589         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
72590         Renamed from their non-__ counterparts, with new macros replacing
72591         them if not _LIBC.  Add __THROW attribute.
72592         (rol): Remove.
72593         (struct md5_ctx): Align buffer if using GCC.
72594         * lib/sha1.h (struct sha1_ctx): Likewise.
72595         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
72596         The old name was backwards.
72597         (NOTSWAP): Remove; not used.
72598         (rol): New macro, moved here from md5.h.
72599         (sha1_process_block): Remove a FIXME that doesn't make sense.
72600
72601 2005-09-12  Derek Price  <derek@ximbiot.com>
72602
72603         Return usable errors from canon-host.
72604         * lib/canon-host.h: New file.
72605         * lib/canon-host.c (canon_host): Wrap...
72606         (canon_host_r): ...this new function, which now relies exclusively on
72607         getaddrinfo.
72608         (ch_strerror): New function.
72609         (last_cherror): New global.
72610         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
72611         interface.
72612         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
72613         void *.
72614         (freeaddrinfo): Free ai->ai_canonname when set.
72615
72616 2005-09-12  Derek Price  <derek@ximbiot.com>
72617
72618         Make canon-host require getaddrinfo.
72619         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
72620         AC_LIBSOURCE canon-host.h.  Call...
72621         (gl_PREREQ_CANON_HOST): ...this new function, which requires
72622         gl_GETADDRINFO.
72623         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
72624
72625 2005-09-12  Derek Price  <derek@ximbiot.com>
72626
72627         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
72628         LGPL.
72629         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
72630
72631 2005-09-12  Derek Price  <derek@ximbiot.com>
72632
72633         * lib/gai_strerror.c: Include config.h when available.  Include
72634         getaddrinfo.h before other headers to test interface.
72635         Reported by Larry Jones <lawrence.jones@ugs.com>.
72636
72637 2005-09-12  Derek Price  <derek@ximbiot.com>
72638             Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         * modules/glob (Files): Add glob-libc.h.
72641
72642 2005-09-12  Derek Price  <derek@ximbiot.com>
72643             Paul Eggert  <eggert@cs.ucla.edu>
72644
72645         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
72646         glob_.h, glob-libc.h.
72647         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
72648
72649 2005-09-12  Derek Price  <derek@ximbiot.com>
72650             Paul Eggert  <eggert@cs.ucla.edu>
72651
72652         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
72653         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
72654         protecting things that should be done only in gnulib contexts.
72655         * lib/glob_.h: New file, containing only the glob things needed for
72656         gnulib.
72657         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
72658         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
72659         (glob, globfree, glob_pattern_p): Now defined simply in terms of
72660         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
72661         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
72662         and to respect the namespace rules better.
72663
72664 2005-09-08  Simon Josefsson  <jas@extundo.com>
72665
72666         * modules/socklen: New file.
72667
72668 2005-09-08  Simon Josefsson  <jas@extundo.com>
72669
72670         * m4/socklen.m4: New file.
72671
72672 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72673
72674         * modules/utimens (Files): Add m4/utimbuf.m4, since
72675         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
72676         Reported by Sergey Poznyakoff.
72677
72678 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72679
72680         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
72681         definitions, since that's the preferred style in glibc.
72682         Fix a minor spacing issue, and update copyright notice to match
72683         glibc's.
72684
72685 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
72688
72689 2005-09-06  Simon Josefsson  <jas@extundo.com>
72690
72691         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
72692         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
72693
72694 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72695
72696         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
72697         warning.
72698
72699 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72700
72701         * config/srclist.txt: Add glibc bug 1302.
72702
72703 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
72704
72705         Change bitset word type from unsigned int to unsigned long int,
72706         as this has better performance on typical 64-bit hosts.
72707         Port bitset code to hosts with unusual word sizes.
72708         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
72709         (build_collating_symbol):
72710         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
72711         argument is a bitset.  This is merely a style issue, but it makes
72712         it clearer that an entire array is expected.
72713         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
72714         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
72715         Port to the case where bitset_word is not the same as unsigned int.
72716         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72717         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
72718         Likewise.
72719         * lib/regexec.c (check_dst_limits_calc_pos_1,
72720         check_subexp_matching_top):
72721         (build_trtable, group_nodes_into_DFAstates):
72722         Likewise.
72723         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
72724         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
72725         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
72726         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
72727         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
72728         * lib/regcomp.c (optimize_subexps, lower_subexp):
72729         Work even if bitset_word has holes in its bitwise representation.
72730         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
72731         * lib/regexec.c (check_dst_limits_calc_pos_1,
72732         check_subexp_matching_top):
72733         Likewise.
72734         * lib/regex_internal.c (re_string_reconstruct):
72735         Don't assume UCHAR_MAX == 255.
72736         * lib/regex_internal.h (bitset_set_all): Likewise.
72737         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
72738         All uses changed.
72739         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
72740         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
72741         All uses changed.
72742         (BITSET_WORD_MAX): New macro.
72743         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
72744         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
72745         (bitset_empty, bitset_copy):
72746         Prefer sizeof (bitset) to multiplying it out ourselves.
72747         (bitset_not_merge): Remove; unused.
72748         (bitset_contain): Return bool, not unsigned int with one bit on.
72749         All callers changed.
72750         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
72751         alignment than re_node_set; do this by defining a new internal
72752         type struct dests_alloc and using it to allocate memory.
72753
72754 2005-09-05  Bruno Haible  <bruno@clisp.org>
72755
72756         * gnulib-tool (func_import): Fix comparison in handling of symbolic
72757         links.
72758
72759 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
72760
72761         * modules/size_max (Makefile.am): Add size_max.h
72762
72763 2005-09-04  Derek Price  <derek@ximbiot.com>
72764
72765         * gnulib-tool (func_import): Fix reversed $symbolic logic.
72766
72767 2005-09-03  Simon Josefsson  <jas@extundo.com>
72768
72769         * gnulib-tool: Fix typo.
72770
72771 2005-09-03  Simon Josefsson  <jas@extundo.com>
72772
72773         * config/srclist.txt: Add glibc bug 1293.
72774
72775 2005-09-03  Derek Price  <derek@ximbiot.com>
72776
72777         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
72778         From Larry Jones <lawrence.jones@ugs.com>.
72779
72780 2005-09-02  Simon Josefsson  <jas@extundo.com>
72781
72782         * modules/socklen: New file.
72783
72784 2005-09-02  Simon Josefsson  <jas@extundo.com>
72785
72786         * modules/havelib: New module.
72787
72788         * modules/gettext, modules/iconv, modules/lock, modules/readline:
72789         Use havelib.
72790
72791 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72792
72793         Check for arithmetic overflow when calculating sizes, to prevent
72794         some buffer-overflow issues.  These patches are conservative, in the
72795         sense that when I couldn't determine whether an overflow was possible,
72796         I inserted a run-time check.
72797         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
72798         macros.
72799         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
72800         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
72801         (re_xnrealloc, re_x2nrealloc): New inline functions.
72802         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
72803         parse_bracket_exp):
72804         (build_equiv_class, build_charclass): Check for arithmetic overflow
72805         in size expression calculations.
72806         * lib/regex_internal.c (re_string_realloc_buffers):
72807         (build_wcs_upper_buffer, re_node_set_add_intersect):
72808         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
72809         (re_dfa_add_node, register_state): Likewise.
72810         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
72811         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
72812         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
72813         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
72814
72815 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72816
72817         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72818         m4/ulonglong.m4.  Problem reported by Martin Lambers.
72819
72820 2005-09-02  Bruno Haible  <bruno@clisp.org>
72821
72822         Support for lib vs. lib64 distinction on biarch platforms.
72823         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
72824         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
72825         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
72826
72827 2005-09-02  Bruno Haible  <bruno@clisp.org>
72828
72829         * gnulib-tool (import): In the other first-use case, provide defaults
72830         as well.
72831
72832 2005-09-02  Bruno Haible  <bruno@clisp.org>
72833
72834         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
72835         patches not yet found in the latest gettext release.
72836
72837 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72838
72839         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
72840         to avoid a collision with bits/local_lim.h in glibc.
72841         All uses changed.  Problem reported by Dmitry V. Levin in
72842         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
72843
72844         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
72845         bugs in int versus size_t comparisons.
72846         (re_string_context_at): Fix bug where the code assumed that
72847         Idx is signed.
72848
72849         Use bool where appropriate.
72850         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
72851         All callers changed.
72852         (calc_eclosure_iter): Likewise, for ROOT arg.
72853         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
72854         (build_charclass_op): Likewise, for NON_MATCH arg.
72855         * lib/regex_internal.c (re_string_allocate, re_string_construct):
72856         (re_string_construct_common): Likewise, for ICASE arg.
72857         * lib/regexec.c (re_search_2_stub, re_search_stub):
72858         Likewise, for RET_LEN arg.
72859         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
72860         (set_regs): Likewise, for FL_BACKTRACK arg.
72861         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
72862         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
72863         (calc_eclosure_iter, parse_bracket_exp):
72864         Use bool for internal variables that are booleans.
72865         * lib/regexec.c (re_search_internal, check_matching,
72866         proceed_next_node):
72867         (set_regs, build_sifted_states, sift_states_bkref):
72868         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
72869         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72870         (find_collation_sequence_value):
72871         Likewise.
72872         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
72873         (re_node_set_compare):
72874         Return bool, not int. All callers changed.
72875         * lib/regexec.c (check_halt_node_context, check_dst_limits):
72876         (build_trtable, check_node_accept): Likewise.
72877         * lib/regex_internal.h: Include stdbool.h.
72878
72879         Fix bugs uncovered when converting to bool.
72880         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
72881         failure instead of charging ahead blindly.
72882         * lib/regex_internal.c (register_state): Likewise.
72883         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
72884         for freeing internal storage.
72885         (group_nodes_into_DFA_states): Use unsigned int, not int, for
72886         bitset pieces used as boolean, to avoid undefined behavior
72887         on hosts that do int overflow checking.
72888
72889 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72890
72891         * config/srclist.txt: Add glibc bugs 1285-1287.
72892
72893 2005-09-01  Jim Meyering  <jim@meyering.net>
72894
72895         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
72896         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
72897         Require gl_STAT_MACROS, too.
72898
72899 2005-09-01  Bruno Haible  <bruno@clisp.org>
72900
72901         * gnulib-tool (import): In the first-use case, provide defaults.
72902
72903 2005-09-01  Bruno Haible  <bruno@clisp.org>
72904
72905         * gnulib-tool (func_import): Remove the .tmp files.
72906
72907 2005-09-01  Bruno Haible  <bruno@clisp.org>
72908
72909         * gnulib-tool (func_import): Fix handling of symbolic links.
72910
72911 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
72914         old glibc regex code mishandles strings longer than 2**31 bytes.
72915         This patch fixes this when the regex code is used in gnulib
72916         (i.e., outside glibc).
72917
72918         This patch should not affect the use of the regex code inside
72919         glibc.  No doubt this problem also needs to be handled for glibc
72920         as well, but the result will be an incompatible change to the
72921         glibc ABI, and the old ABI will have to be supported too.  That
72922         can be the the subject for another patch.
72923
72924         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
72925         governing whether the rest of this patch is active.  By default,
72926         the macro is disabled and the patch has no effect.
72927         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
72928         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
72929         (struct re_pattern_buffer, re_search, re_search_2, re_match):
72930         (re_match_2, re_set_registers): Use the new types.
72931         * lib/regex_internal.h (Idx, re_hashval_t): New types.
72932         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
72933         New macros.
72934         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
72935         (re_string_context_at, bin_tree_t, re_dfastate_t):
72936         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
72937         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
72938         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
72939         (re_string_char_size_at, re_string_wchar_at):
72940         (re_string_elem_size_at):
72941         Use the new types and macros to port to 64-bit hosts.
72942         Use unsigned types for internal values, so that the code
72943         mostly works even for arrays larger than SSIZE_MAX.
72944         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
72945         (search_duplicated_node, calc_eclosure_iter, fetch_number):
72946         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
72947         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
72948         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
72949         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
72950         (calc_inveclosure, parse_dup_op, build_range_exp):
72951         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
72952         (fetch_number, create_token_tree, mark_opt_subexp):
72953         Likewise.
72954         * lib/regex_internal.c (re_string_construct_common,
72955         create_ci_newstate):
72956         (create_cd_newstate, re_string_allocate, re_string_construct):
72957         (re_string_realloc_buffers, build_wcs_upper_buffer):
72958         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72959         (re_string_reconstruct, re_string_peek_byte_case):
72960         (re_string_fetch_byte_case, re_string_context_at):
72961         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72962         (re_node_set_init_copy, re_node_set_add_intersect):
72963         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72964         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72965         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72966         (re_acquire_state, re_acquire_state_context, register_state):
72967         Likewise.
72968         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
72969         search_cur_bkref_entry):
72970         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
72971         (re_search_internal, re_search_2_stub, re_search_stub)
72972         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
72973         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72974         (update_cur_sifted_state, check_dst_limits):
72975         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72976         (check_subexp_limits, sift_states_bkref, merge_state_array):
72977         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72978         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72979         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72980         (expand_bkref_cache, check_node_accept_bytes):
72981         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72982         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72983         (acquire_init_state_context, check_halt_node_context):
72984         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72985         (sift_states_backward, clean_state_log_if_needed):
72986         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72987         (find_recover_state, transit_state_sb, transit_state_mb):
72988         (transit_state_bkref, build_trtable, match_ctx_clean):
72989         Likewise.
72990         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72991         to work around an assumption that REG_MISSING is negative.
72992
72993         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72994         (seek_collating_symbol_entry) [defined _LIBC]:
72995         (lookup_collation_sequence_value) [defined _LIBC]:
72996         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72997         Use prototypes rather than old-style function definitions.
72998         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72999         (transit_state_sb) [0]:
73000         (find_collation_sequence_value) [defined _LIBC]: Likewise.
73001
73002         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
73003         rm_eo.
73004
73005         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
73006         (optimize_subexps, lower_subexp):
73007         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
73008         since the signed shift might overflow.  Use 1u<<31 instead.
73009         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73010         Likewise.
73011         * lib/regexec.c (check_dst_limits_calc_pos_1,
73012         check_subexp_matching_top): Likewise.
73013
73014         * lib/regcomp.c (optimize_subexps, lower_subexp):
73015         Use CHAR_BIT rather than 8, for clarity.
73016         * lib/regexec.c (check_dst_limits_calc_pos_1):
73017         (check_subexp_matching_top): Likewise.
73018         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
73019         have to worry about portability issues when shifting it left.
73020         Remove no-longer-needed test for table_size > 0.
73021         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
73022         in a word, as the resulting behavior is undefined.
73023         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
73024         in one case, a <= should have been an <, and in another case the
73025         whole test was missing.
73026         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
73027         the standard name CHAR_BIT.
73028         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
73029         this is not true on one's complement and signed-magnitude hosts.
73030
73031         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
73032         next_last_offset.
73033         (struct re_dfa_t): Remove unused member states_alloc.
73034         * lib/regcomp.c (init_dfa): Don't initialize unused members.
73035
73036 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73037
73038         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
73039         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
73040         and large-file glibc and in 32-bit large-file Solaris.
73041
73042 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73043
73044         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
73045         lengths fit in regoff_t; this isn't true if regoff_t is the same
73046         width as size_t.
73047         * lib/regex.c (re_search_internal): 5th arg is LAST_START
73048         (= START + RANGE) instead of RANGE.  This avoids overflow
73049         problems when regoff_t is the same width as size_t.
73050         All callers changed.
73051         (re_search_2_stub): Check for overflow when adding the
73052         sizes of the two strings.
73053         (re_search_stub): Check for overflow when adding START
73054         to RANGE; if it occurs, substitute the extreme value.
73055
73056 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73057
73058         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
73059
73060 2005-08-31  Jim Meyering  <jim@meyering.net>
73061
73062         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
73063         a pointer-to-const.
73064         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
73065         (register_state): Likewise.
73066         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
73067         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73068         (group_nodes_into_DFAstates): Likewise.
73069
73070 2005-08-31  Jim Meyering  <jim@meyering.net>
73071
73072         * check-module: Add a FIXME comment.
73073
73074 2005-08-31  Eric Blake  <ebb9@byu.net>
73075
73076         * modules/unistd-safer (Files): Add unistd--.h.
73077         * modules/stdio-safer (Files): Add stdio--.h.
73078
73079 2005-08-31  Derek Price  <derek@ximbiot.com>
73080
73081         * lib/getdelim.c (getdelim): Return EOF on EOF.
73082         Reported by Larry Jones <lawrence.jones@ugs.com>.
73083
73084 2005-08-31  Bruno Haible  <bruno@clisp.org>
73085
73086         Avoid unnecessary diffs in the generated lib/Makefile.am.
73087         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
73088         the generated files.
73089         (func_import): Don't set cmd.
73090
73091 2005-08-31  Bruno Haible  <bruno@clisp.org>
73092
73093         * lib/strstr.c: Include <stddef.h>, for NULL.
73094         * lib/strcasestr.c: Likewise.
73095         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73096
73097 2005-08-31  Bruno Haible  <bruno@clisp.org>
73098
73099         * gnulib-tool: New option --macro-prefix.
73100         (func_import): Use macro_prefix.
73101         (import): Handle option --macro-prefix.
73102
73103 2005-08-31  Bruno Haible  <bruno@clisp.org>
73104
73105         * gnulib-tool (import): Rename most ac_* variables to cached_*.
73106         Also use new variables cached_lgpl, cached_libtool.
73107
73108 2005-08-31  Bruno Haible  <bruno@clisp.org>
73109
73110         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
73111         always instantiating them.
73112
73113 2005-08-31  Bruno Haible  <bruno@clisp.org>
73114
73115         * gnulib-tool (func_import): Read the previous cached settings
73116         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
73117         earlier added by gnulib but are now dropped. Warn when a gnulib file
73118         overwrites a non-gnulib file.
73119
73120 2005-08-31  Bruno Haible  <bruno@clisp.org>
73121
73122         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
73123         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
73124         projects that don't keep autogenerated files in CVS. Put into
73125         actioncmd only the specified modules, not the transitive closure.
73126
73127 2005-08-31  Bruno Haible  <bruno@clisp.org>
73128
73129         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
73130         Create directories that shall be filled.
73131         (import): Don't look for gl_* macros in configure.ac. Recurse across
73132         all directories containing a gnulib-cache.m4 files, if meaningful.
73133
73134 2005-08-31  Bruno Haible  <bruno@clisp.org>
73135
73136         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
73137         (import): Set seen_libtool when we see gl_LIBTOOL.
73138
73139 2005-08-31  Bruno Haible  <bruno@clisp.org>
73140
73141         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
73142         declaration macro definitions from generated gnulib.m4.
73143
73144 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
73145
73146         * lib/iconvme.h: Add prototype for iconv_alloc.
73147
73148 2005-08-29  Simon Josefsson  <jas@extundo.com>
73149
73150         * lib/iconvme.c: Fix errno.
73151
73152 2005-08-29  Bruno Haible  <bruno@clisp.org>
73153
73154         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
73155         that it works when the directory contains spaces.
73156
73157 2005-08-29  Bruno Haible  <bruno@clisp.org>
73158
73159         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
73160
73161 2005-08-29  Bruno Haible  <bruno@clisp.org>
73162
73163         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
73164         Emit more advice.
73165
73166 2005-08-29  Bruno Haible  <bruno@clisp.org>
73167         and Stepan Kasal  <kasal@ucw.cz>
73168
73169         * check-module: If more parameters are given, check each of them
73170         separately; add more exceptions, as noted by Jim Meyering.
73171         (check_module): New procedure.
73172         (%exempt_header): Now contains all exceptions.
73173
73174 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
73175
73176         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
73177
73178 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73179
73180         * lib/iconvme.c: Split iconv_string into iconv_alloc.
73181
73182 2005-08-28  Bruno Haible  <bruno@clisp.org>
73183
73184         * m4/gnulib-tool.m4: New file.
73185
73186 2005-08-27  Jim Meyering  <jim@meyering.net>
73187
73188         * modules/unistd-safer (Files): Add pipe-safer.c.
73189         * modules/fcntl-safer (Files): Add creat-safer.c.
73190
73191 2005-08-27  Jim Meyering  <jim@meyering.net>
73192
73193         * m4/stdlib-safer.m4: New file.  From coreutils.
73194         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
73195         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
73196         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
73197         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
73198         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
73199
73200 2005-08-27  Jim Meyering  <jim@meyering.net>
73201
73202         * lib/fopen-safer.c: Merge minor changes from coreutils.
73203         * lib/dup-safer.c: Likewise.
73204         * lib/fd-safer.c: Likewise.
73205
73206         Merge from coreutils.
73207         * lib/stdio--.h: New file.
73208         * lib/stdlib--.h: New file.
73209         * lib/mkstemp-safer.c: New file.
73210
73211         GNU tar needs these.
73212         * lib/pipe-safer.c: New file.
73213         * lib/creat-safer.c: New file.
73214         * lib/fcntl--.h (creat): Define to creat_safer.
73215         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
73216         * lib/unistd--.h (pipe): Define to pipe_safer.
73217         * lib/unistd-safer.h: Declare pipe_safer.
73218
73219 2005-08-26  Simon Josefsson  <jas@extundo.com>
73220
73221         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
73222         Haible <bruno@clisp.org>.
73223
73224 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
73225
73226         * lib/regex_internal.h: Remove all references to
73227         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
73228         or better.
73229         (bitset_not, bitset_merge, bitset_not_merge):
73230         (bitset_mask, re_string_allocate, re_string_construct):
73231         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
73232         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
73233         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
73234         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
73235         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73236         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73237         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
73238         (re_acquire_state_context):
73239         Remove unnecessary forward decls.
73240         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
73241         Put __attribute at function definition,
73242         now that the function decl has been removed.
73243         * lib/regex_internal.c (re_string_peek_byte_case):
73244         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
73245         Likewise.
73246
73247 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
73248
73249         * m4/regex.m4: Add AC_PREREQ(2.50).
73250         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
73251
73252 2005-08-25  Simon Josefsson  <jas@extundo.com>
73253
73254         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
73255         __fsetlocking.
73256
73257 2005-08-25  Simon Josefsson  <jas@extundo.com>
73258
73259         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
73260         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
73261         GLIBC specific code.
73262
73263 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73264
73265         Make regex safe for g++.  This fixes one real bug (an "err"
73266         that should have been "*err").  g++ problem reported by
73267         Sam Steingold.
73268         * lib/regex_internal.h (re_calloc): New macro, consistent with
73269         re_malloc etc.  All callers of calloc changed to use re_calloc.
73270         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
73271         not int.  All callers changed.
73272         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
73273         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
73274         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
73275         (find_recover_state): Change "err" to "*err"; this fixes what
73276         appears to be a real bug.
73277         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
73278         versus int.
73279
73280 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73281
73282         * modules/regex (Depends-on): Add malloc, since the code
73283         assumes that !malloc(0) means failure.
73284
73285 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73286
73287         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
73288
73289         alloca modernization/simplification for regex.
73290         * lib/regex.c: Remove portability cruft for alloca.  This no longer
73291         needs to be at the start of the file, and can be moved into
73292         regex_internal.h and simplified.
73293         * lib/regex_internal.h: Include <alloca.h>.
73294         (__libc_use_alloca) [!defined _LIBC]: New macro.
73295         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
73296         now works outside glibc.
73297
73298 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73299
73300         * config/srclist.txt: Add glibc bugs 1241, 1245.
73301
73302 2005-08-25  Jim Meyering  <jim@meyering.net>
73303
73304         * lib/open-safer.c: Include <config.h>.
73305         Otherwise, we'd lose LARGEFILE support in any file using
73306         e.g. "fcntl--.h"
73307
73308 2005-08-25  Bruno Haible  <bruno@clisp.org>
73309
73310         * m4/minmax.m4: Require autoconf 2.52.
73311         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
73312         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
73313         alternatives of translit over the alphabet.
73314         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
73315
73316 2005-08-24  Simon Josefsson  <jas@extundo.com>
73317
73318         * tests/test-getpass.c: New file.
73319
73320 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73321
73322         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
73323         for GNU regex features.
73324
73325 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73326
73327         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
73328         * lib/regex.h (regerror): Likewise.
73329
73330         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
73331         requires this.  (The code never needed it.)
73332
73333         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
73334         All uses of recently-renamed identifiers changed to use the new,
73335         POSIX-compliant names.  The code will build and run just fine
73336         without these changes, but it's better to eat our own dog food
73337         and use the standard-conforming names.
73338
73339         * lib/regex.h: Fix a multitude of POSIX name space violations.
73340         These changes have an effect only for programs that define
73341         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
73342         do not change anything for programs compiled in the normal way.
73343         Also, there is no effect on the ABI.
73344
73345         (_REGEX_SOURCE): New macro.
73346         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
73347         defined and _GNU_SOURCE is not; this fixes a name space violation.
73348
73349         Rename the following macros to obey POSIX requirements.
73350         The old names are still visible as macros if _REGEX_SOURCE is defined.
73351         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
73352         RE_BACKSLASH_ESCAPE_IN_LISTS.
73353         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
73354         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
73355         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
73356         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
73357         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
73358         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
73359         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
73360         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
73361         (REG_INTERVALS): renamed from RE_INTERVALS.
73362         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
73363         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
73364         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
73365         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
73366         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
73367         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
73368         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
73369         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
73370         RE_UNMATCHED_RIGHT_PAREN_ORD.
73371         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
73372         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
73373         (REG_DEBUG): renamed from RE_DEBUG.
73374         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
73375         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
73376         unusual, since we can't clash with the POSIX REG_ICASE.
73377         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
73378         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
73379         (REG_NO_SUB): renamed from RE_NO_SUB.
73380         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
73381         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
73382         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
73383         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
73384         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
73385         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
73386         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
73387         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
73388         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
73389         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
73390         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
73391         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
73392         RE_SYNTAX_POSIX_MINIMAL_BASIC.
73393         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
73394         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
73395         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
73396         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
73397         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
73398         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
73399         (REG_FIXED): Renamed from REGS_FIXED.
73400         (REG_NREGS): Renamed from RE_NREGS.
73401
73402         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
73403         of other REG_* macros, since POSIX says the user is allowed to
73404         #undef these macros selectively.
73405
73406         (reg_errcode_t): Update comment stating what other tables need
73407         to be consistent.
73408
73409         Rename the following enum values to obey POSIX requirements.
73410         The old names are still visible as macros.
73411         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
73412         is not defined, since GNU is supposed to be a superset of POSIX as
73413         much as possible, and since we want reg_errcode_t to be a signed
73414         type for implementation consistency.
73415         (_REG_NOERROR): Renamed from REG_NOERROR.
73416         (_REG_NOMATCH): Renamed from REG_NOMATCH.
73417         (_REG_BADPAT): Renamed from REG_BADPAT.
73418         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
73419         (_REG_ECTYPE): Renamed from REG_ECTYPE.
73420         (_REG_EESCAPE): Renamed from REG_EESCAPE.
73421         (_REG_ESUBREG): Renamed from REG_ESUBREG.
73422         (_REG_EBRACK): Renamed from REG_EBRACK.
73423         (_REG_EPAREN): Renamed from REG_EPAREN.
73424         (_REG_EBRACE): Renamed from REG_EBRACE.
73425         (_REG_BADBR): Renamed from REG_BADBR.
73426         (_REG_ERANGE): Renamed from REG_ERANGE.
73427         (_REG_ESPACE): Renamed from REG_ESPACE.
73428         (_REG_BADRPT): Renamed from REG_BADRPT.
73429         (_REG_EEND): Renamed from REG_EEND.
73430         (_REG_ESIZE): Renamed from REG_ESIZE.
73431         (_REG_ERPAREN): Renamed from REG_ERPAREN.
73432         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
73433         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
73434         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
73435         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
73436
73437         (_REG_RE_NAME, _REG_RM_NAME): New macros.
73438         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
73439         changed.  But support the old name if the new one is not defined
73440         and if _REGEX_SOURCE.
73441
73442         Change the following member names in struct re_pattern_buffer.
73443         The old names are still supported if !_REGEX_SOURCE.
73444         The new names are always supported, regardless of _REGEX_SOURCE.
73445         (re_buffer): Renamed from buffer.
73446         (re_allocated): Renamed from allocated.
73447         (re_used): Renamed from used.
73448         (re_syntax): Renamed from syntax.
73449         (re_fastmap): Renamed from fastmap.
73450         (re_translate): Renamed from translate.
73451         (re_can_be_null): Renamed from can_be_null.
73452         (re_regs_allocated): Renamed from regs_allocated.
73453         (re_fastmap_accurate): Renamed from fastmap_accurate.
73454         (re_no_sub): Renamed from no_sub.
73455         (re_not_bol): Renamed from not_bol.
73456         (re_not_eol): Renamed from not_eol.
73457         (re_newline_anchor): Renamed from newline_anchor.
73458
73459         Change the following member names in struct re_registers.
73460         The old names are still supported if !_REGEX_SOURCE.
73461         The new names are always supported, regardless of _REGEX_SOURCE.
73462         (rm_num_regs): Renamed from num_regs.
73463         (rm_start): Renamed from start.
73464         (rm_end): Renamed from end.
73465
73466         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
73467         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
73468         Prepend __ to parameter names.
73469
73470         Undo yesterday's changes.
73471
73472 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73473
73474         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
73475         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
73476         lib/regex.c.
73477
73478 2005-08-24  Jim Meyering  <jim@meyering.net>
73479
73480         Sync from coreutils.
73481         * m4/fcntl-safer.m4: New file.
73482
73483         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
73484         and object files for this module.
73485
73486 2005-08-24  Jim Meyering  <jim@meyering.net>
73487
73488         Sync from coreutils.
73489         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
73490
73491 2005-08-24  Jim Meyering  <jim@meyering.net>
73492
73493         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
73494         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
73495
73496 2005-08-24  Jim Meyering  <jim@meyering.net>
73497
73498         * modules/fcntl-safer: New module.
73499         * modules/fts (Depends-on): Add fcntl-safer.
73500         * MODULES.html.sh (File descriptor based Input/Output):
73501         Add fcntl-safer.
73502
73503 2005-08-24  Bruno Haible  <bruno@clisp.org>
73504
73505         Support for unit test modules.
73506         * modules/README: Mention tests modules.
73507         * modules/TEMPLATE-TESTS: New file.
73508         * gnulib-tool: New options --extract-tests-module, --with-tests and
73509         --tests-base (unused for the moment).
73510         (testsbase, inctests): New variables.
73511         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
73512         (func_verify_module): Exclude TEMPLATE-TESTS.
73513         (func_verify_nontests_module, func_verify_tests_module): New functions.
73514         (func_get_dependencies): Add implicit dependency for tests modules.
73515         (func_get_tests_module): New function.
73516         (func_modules_transitive_closure): When --with-tests was specified,
73517         include the unit tests as well, unless explicitly avoided.
73518         (func_emit_lib_Makefile_am): Ignore the tests modules here.
73519         (func_emit_tests_Makefile_am): New function.
73520         (func_create_testdir): When --with-tests was specified, emit a
73521         tests/ directory.
73522         * MODULES.html.sh (Future developments): Update.
73523
73524 2005-08-24  Bruno Haible  <bruno@clisp.org>
73525
73526         * modules/tls-tests: New file.
73527         * tests/test-tls.c: New file, from GNU gettext.
73528
73529 2005-08-24  Bruno Haible  <bruno@clisp.org>
73530
73531         * modules/lock-tests: New file.
73532         * tests/test-lock.c: New file, from GNU gettext.
73533
73534 2005-08-24  Bruno Haible  <bruno@clisp.org>
73535
73536         * lib/lock.h: Add multiple inclusion guard.
73537         * lib/tls.h: Add multiple inclusion guard.
73538
73539 2005-08-24  Bruno Haible  <bruno@clisp.org>
73540
73541         * gnulib-tool: Add support for the --aux-dir option to
73542         --create-testdir, --create-megatestdir, --test, --megatest.
73543         (func_create_testdir, func_create_megatestdir): Optionally emit a
73544         AC_CONFIG_AUX_DIR directive.
73545         (create-testdir, create-megatestdir, test, megatest): Provide a
73546         default value for $auxdir.
73547
73548 2005-08-24  Bruno Haible  <bruno@clisp.org>
73549
73550         * gnulib-tool (import): Use compound statement instead of subshell
73551         where possible.
73552
73553 2005-08-24  Bruno Haible  <bruno@clisp.org>
73554
73555         * gnulib-tool (import): Change --aux-dir default to "build-aux".
73556
73557 2005-08-24  Bruno Haible  <bruno@clisp.org>
73558
73559         * gnulib-tool (func_version): Update.
73560
73561 2005-08-24  Bruno Haible  <bruno@clisp.org>
73562
73563         * gnulib-tool (func_import, func_create_testdir,
73564         func_create_megatestdir): Quote all autoconf macro arguments.
73565
73566 2005-08-24  Bruno Haible  <bruno@clisp.org>
73567
73568         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
73569         option --force, because --force causes the aclocal.m4 of each
73570         subdirectory to be newer than the corresponding config.h.in.
73571
73572 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73573
73574         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
73575         All contents moved to gl_REGEX.
73576         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
73577         assume that it does.
73578
73579 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73580
73581         * lib/regex.h (REG_NOSYS)
73582         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
73583         Define, since POSIX requires it as of 2001.
73584         (_REG_ENOSYS)
73585         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
73586         New private symbol, used to keep the enum signed in all cases.
73587         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
73588         Youngman in
73589         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
73590
73591         * lib/regex_internal.c (re_string_skip_chars, register_state):
73592         (calc_state_hash):
73593         Remove forward decls; no longer needed now that we use prototypes.
73594         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
73595         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
73596         (clean_state_log_if_needed): Likewise.
73597
73598 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73599
73600         * config/srclist.txt: Add glibc bugs 1231-1233.
73601
73602 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73603
73604         Fix problems reported by Sam Steingold in
73605         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
73606         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
73607         assumed that reg_errcode_t is a signed type, which is not
73608         necessarily true if _XOPEN_SOURCE is not defined.
73609         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
73610         since some compilers warn about it otherwise.
73611
73612 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73613
73614         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
73615         (init_word_char, create_initial_state, duplicate_node_closure):
73616         (fetch_token, peek_token_bracket, build_range_exp):
73617         (build_collating_symbol): Remove forward decls; no longer needed
73618         now that we use prototypes.
73619
73620         * lib/regcomp.c:
73621         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
73622         (re_compile_fastmap_iter, regcomp, regerror, regfree):
73623         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
73624         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
73625         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
73626         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
73627         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
73628         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
73629         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
73630         (build_range_exp, build_collating_symbol, parse_bracket_exp):
73631         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
73632         (build_charclass, build_charclass_op, fetch_number, create_tree):
73633         (create_token_tree, mark_opt_subexp, duplicate_tree):
73634         Use prototypes rather than old-style definitions.
73635
73636         * lib/regex_internal.c:
73637         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
73638         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
73639         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73640         (re_string_reconstruct, re_string_peek_byte_case):
73641         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
73642         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73643         (re_node_set_init_copy, re_node_set_add_intersect):
73644         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73645         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73646         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73647         (re_acquire_state, re_acquire_state_context, register_state):
73648         (create_ci_newstate, create_cd_newstate, free_state):
73649         Likewise.
73650         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
73651         re_search_2):
73652         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
73653         (re_search_internal, prune_impossible_nodes):
73654         (acquire_init_state_context, check_matching, static):
73655         (check_halt_node_context, check_halt_state_context, proceed_next_node):
73656         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
73657         (update_regs, sift_states_backward, build_sifted_states):
73658         (clean_state_log_if_needed, merge_state_array):
73659         (update_cur_sifted_state, add_epsilon_src_nodes):
73660         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
73661         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
73662         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
73663         (find_recover_state, check_subexp_matching_top, transit_state_mb):
73664         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
73665         (check_arrival, check_arrival_add_next_nodes):
73666         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73667         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73668         (check_node_accept_bytes, check_node_accept, extend_buffers):
73669         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
73670         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
73671         (sift_ctx_init):
73672         Likewise.
73673
73674         * lib/regex_internal.h:
73675         (re_string_allocate, re_string_construct, re_string_reconstruct):
73676         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
73677         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
73678         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
73679         (re_string_context_at, re_string_peek_byte_case):
73680         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
73681         is defined, since we now use prototypes always.
73682
73683         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
73684         C89 or better.  All uses removed.
73685
73686 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73687
73688         * config/srclist.txt: Add glibc bugs 1220-1227.
73689
73690 2005-08-20  Jim Meyering  <jim@meyering.net>
73691
73692         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
73693         of unused local, dfa.
73694
73695 2005-08-20  Bruno Haible  <bruno@clisp.org>
73696
73697         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
73698
73699 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73700
73701         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
73702         (re_node_set_insert_last, re_dfa_add_node):
73703         Rename local variables to avoid GCC shadowing warnings.
73704
73705 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73706
73707         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
73708         [defined lint]: Suppress bogus uninitialized-variable warnings.
73709
73710         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
73711         and let the caller return REG_ESPACE if out of space.  This
73712         removes an uninitialied-variable warning with GCC 4.0.1, and also
73713         avoids taking the address of a local variable.  All callers
73714         changed.
73715
73716 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73717
73718         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
73719         $LIBCSRC/posix/regexec.c.
73720         Add glibc bug 1217 for regcomp.c.
73721
73722 2005-08-19  Jim Meyering  <jim@meyering.net>
73723
73724         * lib/regexec.c (proceed_next_node): Redo local variables to
73725         avoid GCC shadowing warnings.
73726
73727 2005-08-18  Bruno Haible  <bruno@clisp.org>
73728
73729         * lib/strstr.c (strstr): Fix return value in multibyte case.
73730         * lib/strcasestr.c (strcasestr): Likewise.
73731
73732 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73733
73734         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
73735
73736 2005-08-17  Jim Meyering  <jim@meyering.net>
73737
73738         Make the %s format (seconds since the epoch) work for a negative
73739         number and when used with a zero-padded field width, e.g. %015s.
73740
73741         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
73742         label so that it precedes the code to set `digits'.  Otherwise,
73743         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
73744         print `00-22'.  Now, it prints `-0022', as it should.
73745
73746 2005-08-17  Bruno Haible  <bruno@clisp.org>
73747
73748         * modules/strstr (Files): Add m4/mbrtowc.m4.
73749         (Depends-on): Add mbuiter.
73750
73751 2005-08-17  Bruno Haible  <bruno@clisp.org>
73752
73753         * modules/strcasestr: New file.
73754         * MODULES.html.sh (String handling, based on ANSI C 89): Add
73755         strcasestr.
73756
73757 2005-08-17  Bruno Haible  <bruno@clisp.org>
73758
73759         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
73760
73761 2005-08-17  Bruno Haible  <bruno@clisp.org>
73762
73763         * modules/mbuiter: New file.
73764         * MODULES.html.sh (Extended multibyte and wide character utilities):
73765         Add mbuiter.
73766
73767 2005-08-17  Bruno Haible  <bruno@clisp.org>
73768
73769         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
73770         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
73771
73772 2005-08-17  Bruno Haible  <bruno@clisp.org>
73773
73774         * m4/strcasestr.m4: New file.
73775
73776 2005-08-17  Bruno Haible  <bruno@clisp.org>
73777
73778         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
73779         * lib/strstr.c: Completely rewritten, with multibyte locale support.
73780
73781 2005-08-17  Bruno Haible  <bruno@clisp.org>
73782
73783         * lib/strcasestr.h: New file.
73784         * lib/strcasestr.c: New file.
73785
73786 2005-08-17  Bruno Haible  <bruno@clisp.org>
73787
73788         * lib/strcasecmp.c: Use mbuiter.h.
73789
73790 2005-08-17  Bruno Haible  <bruno@clisp.org>
73791
73792         * lib/mbuiter.h: New file.
73793
73794 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73795
73796         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
73797         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
73798         and gl_GETOPT are both invoked via different paths (as happens
73799         with GNU tar CVS because it uses both argp and getopt), the former
73800         wins.
73801
73802 2005-08-16  Bruno Haible  <bruno@clisp.org>
73803
73804         * modules/tls: New file.
73805         * MODULES.html.sh (Multithreading): Add tls.
73806
73807 2005-08-16  Bruno Haible  <bruno@clisp.org>
73808
73809         * modules/strnlen1: New file.
73810         * MODULES.html.sh (String handling): Add strnlen1.
73811
73812 2005-08-16  Bruno Haible  <bruno@clisp.org>
73813
73814         * modules/strcase (Files): Add m4/mbrtowc.m4.
73815         (Depends-on): Add strnlen1, mbchar.
73816
73817 2005-08-16  Bruno Haible  <bruno@clisp.org>
73818
73819         * modules/mbiter: New file.
73820         * MODULES.html.sh (Extended multibyte and wide character utilities):
73821         Add mbiter.
73822
73823 2005-08-16  Bruno Haible  <bruno@clisp.org>
73824
73825         * modules/mbfile: New file.
73826         * MODULES.html.sh (Extended multibyte and wide character utilities):
73827         Add mbfile.
73828
73829 2005-08-16  Bruno Haible  <bruno@clisp.org>
73830
73831         * modules/mbchar: New file.
73832         * MODULES.html.sh (Extended multibyte and wide character utilities):
73833         New section.
73834
73835 2005-08-16  Bruno Haible  <bruno@clisp.org>
73836
73837         * m4/tls.m4: New file, from GNU gettext.
73838
73839 2005-08-16  Bruno Haible  <bruno@clisp.org>
73840
73841         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
73842         always.
73843         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
73844
73845 2005-08-16  Bruno Haible  <bruno@clisp.org>
73846
73847         * m4/mbiter.m4: New file.
73848
73849 2005-08-16  Bruno Haible  <bruno@clisp.org>
73850
73851         * m4/mbfile.m4: New file.
73852
73853 2005-08-16  Bruno Haible  <bruno@clisp.org>
73854
73855         * m4/mbchar.m4: New file.
73856
73857 2005-08-16  Bruno Haible  <bruno@clisp.org>
73858
73859         * lib/tls.h: New file, from GNU gettext.
73860         * lib/tls.c: New file, from GNU gettext.
73861
73862 2005-08-16  Bruno Haible  <bruno@clisp.org>
73863
73864         * lib/strnlen1.h: New file.
73865         * lib/strnlen1.c: New file.
73866
73867 2005-08-16  Bruno Haible  <bruno@clisp.org>
73868
73869         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
73870         (mbi_init): Update.
73871         (mbi_avail, mbi_advance): Let the iteration end before the terminating
73872         NUL byte, not after it.
73873
73874 2005-08-16  Bruno Haible  <bruno@clisp.org>
73875
73876         * lib/strcase.h (strcasecmp): Add note in comments.
73877         * lib/strncasecmp.c: Use code from strcasecmp.c.
73878         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
73879         (strcasecmp): Work correctly in multibyte locales.
73880
73881 2005-08-16  Bruno Haible  <bruno@clisp.org>
73882
73883         * lib/mbiter.h: New file.
73884
73885 2005-08-16  Bruno Haible  <bruno@clisp.org>
73886
73887         * lib/mbfile.h: New file.
73888
73889 2005-08-16  Bruno Haible  <bruno@clisp.org>
73890
73891         * lib/mbchar.h: New file.
73892         * lib/mbchar.c: New file.
73893
73894 2005-08-16  Bruno Haible  <bruno@clisp.org>
73895
73896         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
73897         the valid ones. Makes the comparison operations transitive:
73898         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
73899         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
73900
73901 2005-08-15  Simon Josefsson  <jas@extundo.com>
73902
73903         * modules/ssize_t (License): Change to 'unlimited'.
73904
73905         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
73906
73907 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73908
73909         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
73910         Add comments for each pending glibc patch.
73911
73912 2005-08-15  Bruno Haible  <bruno@clisp.org>
73913
73914         * lib/regex.h (__restrict_arr): Don't define to __restrict if
73915         __cplusplus is defined.
73916
73917 2005-08-14  Jim Meyering  <jim@meyering.net>
73918
73919         Sync from coreutils.
73920
73921         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
73922         Use the hash-table-based cycle-detection code not just when
73923         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
73924         Reported by James Youngman in
73925         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
73926         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
73927         FTS_TIGHT_CYCLE_CHECK.
73928         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
73929         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
73930         once again.
73931         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
73932         * lib/fts.c (fd_safer): Remove decl.
73933         Include fcntl--.h rather than unistd-safer.h
73934         (fts_safe_changedir): Don't call fd_safer; no longer needed
73935         now that we include fcntl--.h.
73936
73937 2005-08-12  Simon Josefsson  <jas@extundo.com>
73938
73939         * modules/getndelim2: Use ssize_t module.
73940         * modules/getnline: Likewise.
73941         * modules/safe-read: Likewise.
73942         * modules/xreadlink: Likewise.
73943
73944         * modules/ssize_t: New file.
73945
73946 2005-08-12  Simon Josefsson  <jas@extundo.com>
73947
73948         * m4/readline.m4: Look for termcap, curses or ncurses if required.
73949
73950 2005-08-12  Simon Josefsson  <jas@extundo.com>
73951
73952         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73953         ssize_t.
73954
73955 2005-08-12  Simon Josefsson  <jas@extundo.com>
73956
73957         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
73958         readline, getdelim and check_version.
73959         (Support for systems lacking ISO C 99: Sizes of integer types):
73960         Add size_max.
73961
73962 2005-08-12  Bruno Haible  <bruno@clisp.org>
73963
73964         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
73965
73966 2005-08-11  Simon Josefsson  <jas@extundo.com>
73967
73968         * modules/readline: New file.
73969
73970         * modules/strnlen (Files): Add strnlen.h.
73971
73972 2005-08-11  Simon Josefsson  <jas@extundo.com>
73973
73974         * m4/readline.m4: New file.
73975
73976 2005-08-11  Simon Josefsson  <jas@extundo.com>
73977
73978         * lib/readline.h, readline.c: New file.
73979
73980 2005-08-11  Simon Josefsson  <jas@extundo.com>
73981
73982         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73983         gl_AVOID.
73984
73985 2005-08-11  Bruno Haible  <bruno@clisp.org>
73986
73987         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73988
73989 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73990
73991         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73992
73993 2005-08-10  Simon Josefsson  <jas@extundo.com>
73994
73995         * tests/test-iconvme.c: New file.
73996
73997 2005-08-10  Simon Josefsson  <jas@extundo.com>
73998
73999         * m4/strnlen.m4: New file.
74000
74001         * m4/strndup.m4: Don't check for strnlen declaration, done in
74002         strnlen.m4.
74003
74004 2005-08-10  Simon Josefsson  <jas@extundo.com>
74005
74006         * lib/strndup.c: Use strnlen.h.
74007
74008         * lib/strnlen.h: New file.
74009
74010 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74011
74012         * README: Typos.
74013
74014 2005-08-02  Simon Josefsson  <jas@extundo.com>
74015
74016         * modules/readline: New file.
74017
74018 2005-08-02  Simon Josefsson  <jas@extundo.com>
74019
74020         * modules/getdelim: New file.
74021
74022         * modules/getline: Rewrite, don't use getndelim2.
74023
74024 2005-08-02  Simon Josefsson  <jas@extundo.com>
74025
74026         * m4/getline.m4: Separate out getdelim stuff into separate module.
74027
74028         * m4/getdelim.m4: New file.
74029
74030 2005-08-02  Simon Josefsson  <jas@extundo.com>
74031
74032         * lib/getline.h, getline.c: Rewrite.
74033
74034         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
74035
74036 2005-07-31  Bruno Haible  <bruno@clisp.org>
74037
74038         * lib/lock.h (gl_lock_initializer): New macro.
74039         (gl_lock_define_initialized): Use it.
74040         (gl_rwlock_initializer): New macro.
74041         (gl_rwlock_define_initialized): Use it.
74042         (gl_recursive_lock_initializer): New macro.
74043         (gl_recursive_lock_define_initialized): Use it.
74044
74045 2005-07-30  Karl Berry  <karl@gnu.org>
74046
74047         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
74048         Report from Ben Pfaff, regarding getopt.
74049
74050 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
74051
74052         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
74053         normal way.
74054         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
74055         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
74056         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
74057         (gl_GETOPT): Use the new macros.  Most of the implementation
74058         is moved to the new macros.  This is for programs like Emacs
74059         that don't want all the functionality of gl_GETOPT.
74060
74061 2005-07-26  Bruno Haible  <bruno@clisp.org>
74062
74063         * m4/lock.m4: Update from GNU gettext.
74064
74065 2005-07-26  Bruno Haible  <bruno@clisp.org>
74066
74067         * lib/lock.h: Update from GNU gettext.
74068         * lib/lock.c: Update from GNU gettext.
74069
74070 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
74071
74072         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
74073         obsolescent AC_TRY_RUN.  Include the default includes files, for
74074         'exit'.
74075
74076 2005-07-24  Bruno Haible  <bruno@clisp.org>
74077
74078         * modules/visibility: New file.
74079         * MODULES.html.sh (Misc): Add visibility.
74080
74081 2005-07-24  Bruno Haible  <bruno@clisp.org>
74082
74083         * m4/visibility.m4: New file.
74084
74085 2005-07-24  Bruno Haible  <bruno@clisp.org>
74086
74087         * doc/visibility.texi: New file.
74088
74089 2005-07-22  Bruno Haible  <bruno@clisp.org>
74090
74091         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
74092         $(ALLOCA_H), redundant through BUILT_SOURCES.
74093         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
74094         redundant through BUILT_SOURCES.
74095         * modules/byteswap (Makefile.am): Remove explicit dependency on
74096         $(BYTESWAP_H), redundant through BUILT_SOURCES.
74097         * modules/fnmatch (Makefile.am): Remove explicit dependency on
74098         $(FNMATCH_H), redundant through BUILT_SOURCES.
74099         * modules/getopt (Makefile.am): Remove explicit dependency on
74100         $(GETOPT_H), redundant through BUILT_SOURCES.
74101         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
74102         redundant through BUILT_SOURCES.
74103         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
74104         redundant through BUILT_SOURCES.
74105         * modules/stdbool (Makefile.am): Remove explicit dependency on
74106         $(STDBOOL_H), redundant through BUILT_SOURCES.
74107         * modules/stdint (Makefile.am): Remove explicit dependency on
74108         $(STDINT_H), redundant through BUILT_SOURCES.
74109         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
74110         Remove explicit dependency on $(SYSEXITS_H).
74111         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
74112
74113 2005-07-18  Simon Josefsson  <jas@extundo.com>
74114
74115         * lib/check-version.c (check_version): Accept identical versions too.
74116
74117 2005-07-18  Bruno Haible  <bruno@clisp.org>
74118
74119         * modules/lock: New file.
74120         * MODULES.html.sh (Multithreading): New section.
74121
74122 2005-07-18  Bruno Haible  <bruno@clisp.org>
74123
74124         * m4/lock.m4: New file, from GNU gettext.
74125
74126 2005-07-18  Bruno Haible  <bruno@clisp.org>
74127
74128         * lib/lock.h: New file, from GNU gettext.
74129         * lib/lock.c: New file, from GNU gettext.
74130
74131 2005-07-18  Bruno Haible  <bruno@clisp.org>
74132
74133         * lib/lock.h (gl_once_t): New type.
74134         (gl_once_define, gl_once): New macros.
74135         * lib/lock.c (fresh_once): New variable.
74136         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
74137         functions.
74138
74139 2005-07-16  Simon Josefsson  <jas@extundo.com>
74140
74141         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
74142         workaround, suggested by Bruno.
74143
74144 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
74145
74146         * modules/xalloc (Depends-on): Add xalloc-die.
74147         * modules/xvasprintf (Depends-on): Add xalloc-die.
74148
74149 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
74150
74151         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
74152         with a minor change.
74153
74154 2005-07-15  Bruno Haible  <bruno@clisp.org>
74155
74156         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
74157         When using lib/poll.c, define poll as rpl_poll.
74158
74159 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
74160
74161         * modules/argp (Depends-on): Remove unlocked-io.
74162
74163 2005-07-14  Derek Price  <derek@ximbiot.com>
74164
74165         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
74166         for glob symlink bug.
74167
74168 2005-07-14  Bruno Haible  <bruno@clisp.org>
74169
74170         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
74171         Instead, test for *_unlocked function declarations directly.
74172
74173 2005-07-11  Simon Josefsson  <jas@extundo.com>
74174
74175         * modules/size_max: New file.
74176
74177         * modules/xsize: Depend on size_max module for size_max.m4.
74178
74179 2005-07-11  Simon Josefsson  <jas@extundo.com>
74180
74181         * lib/size_max.h: New file.
74182
74183 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
74184
74185         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
74186         copyright symbol and the year.
74187         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
74188         (version_etc_va): Use parameterized copyright notice.
74189         Reword to conform to the current GNU coding standards.
74190
74191 2005-07-11  Karl Berry  <karl@gnu.org>
74192
74193         * doc/gnulib.texi (Quoting): new node.
74194         (Initial import): more info, from Patrice.
74195
74196 2005-07-11  Bruno Haible  <bruno@clisp.org>
74197
74198         * gnulib-tool (func_usage): Document option --avoid.
74199         (Command line options): Handle --avoid.
74200         (func_acceptable): New function.
74201         (func_modules_transitive_closure): Use it.
74202
74203 2005-07-11  Bruno Haible  <bruno@clisp.org>
74204
74205         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
74206         Reported by Jim Meyering.
74207
74208 2005-07-10  Bruno Haible  <bruno@clisp.org>
74209
74210         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
74211         Needed when size_t is smaller than 'unsigned int'.
74212         Reported by Paul Eggert.
74213
74214 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74215
74216         * modules/argp (Depends-on): Add unlocked-io
74217
74218 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74219
74220         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
74221         block of defines.
74222
74223 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74224
74225         * config/srclist.txt: Comment out regcomp.c, since we have a porting
74226         fix now.
74227
74228 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
74229         and Paul Eggert  <eggert@cs.ucla.edu>
74230
74231         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
74232         in wint_t, not wchar_t.  Remove now-unnecessary cast.
74233
74234 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74235
74236         * modules/regex (Files): Add lib/regex_internal.c,
74237         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
74238         (Depends-on): Add extensions.
74239         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
74240
74241 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74242
74243         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
74244         pathconf.
74245         * m4/same.m4 (gl_SAME): Likewise.
74246         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
74247
74248         * m4/regex.m4: Adjust to new libc regex implementation.
74249         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
74250         all the .c and .h parts of (the new) regex.
74251         Quote the m4 stuff better.
74252         Check for RE_ICASE bug of old gnulib.
74253         Check for REG_STARTEND of recent libc.
74254         Rename local variables from jm_* to gl_*.
74255         Quote operand of "test -f".
74256         Say "recent enough" version of libc, not "version 2".
74257         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
74258         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
74259         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
74260         Remove check for btowc, isascii.
74261         Require AM_LANGINFO_CODESET.
74262
74263 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74264
74265         * lib/regex.c, regex.h: Sync from libc.
74266         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
74267         * lib/regexec.c:
74268         New files, synced from libc, except that regex_internal.h
74269         currently has a small porting fix.
74270
74271 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74272
74273         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
74274         regex_internal.c, regexec.c.
74275         Add regex_internal.h too, but as a comment, since the libc version
74276         is currently broken in gnulib mode.
74277
74278 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74279
74280         Support programs like Emacs that use gnulib but not gettext.
74281         * MODULES.html.sh (Internationalization functions): Add gettext-h.
74282         * modules/gettext-h: New file.
74283         * modules/gettext (Files): Remove lib/gettext.h.
74284         (Depends-on): Add gettext-h.
74285         (Makefile.am): Remove lib_SOURCES.
74286         * modules/argmatch, modules/c-stack, modules/closeout:
74287         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
74288         * modules/execute, modules/file-type, modules/getaddrinfo:
74289         * modules/getopt, modules/human, modules/javacomp:
74290         * modules/javaexec, modules/mkdir-p, modules/obstack:
74291         * modules/openat, modules/pagealign_alloc, modules/pipe:
74292         * modules/quotearg, modules/regex, modules/rpmatch:
74293         * modules/unicodeio, modules/userspec, modules/version-etc:
74294         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
74295         * modules/xsetenv:
74296         Depend on gettext-h, not gettext.
74297
74298 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74299
74300         * gnulib-tool (func_import): Add support for 'public domain' license.
74301         * modules/alloca, modules/atexit, modules/memmove:
74302         Now public domain, not GPL.
74303         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
74304         * modules/realloc, modules/strerror, modules/strtod:
74305         Now LGPL, not GPL.
74306
74307 2005-07-05  Bruno Haible  <bruno@clisp.org>
74308
74309         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
74310         autoconf CVS. Needed for mingw.
74311
74312 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74313
74314         Remove the dependency of the strftime module on the tzset module.
74315         * modules/strftime (Depends-on): Remove dependency on tzset.
74316
74317 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74318
74319         Remove the dependency of the strftime module on the tzset module.
74320         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
74321         gl_FUNC_TZSET_CLOBBER.
74322
74323 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74324
74325         Remove the dependency of the strftime module on the tzset module.
74326         * lib/strftime.c (my_strftime)
74327         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
74328         Copy the input structure, to work around some of the bug with
74329         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
74330         Solaris releases, you should also use the tzset module, but we won't
74331         require it as a dependency any more since we don't want LGPLed code
74332         to depend on GPLed code.
74333
74334 2005-07-02  Jim Meyering  <jim@meyering.net>
74335
74336         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
74337         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
74338         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
74339         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
74340
74341 2005-07-02  Jim Meyering  <jim@meyering.net>
74342
74343         * lib/backupfile.c (backup_args): Change a `0' to NULL.
74344
74345 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74346
74347         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
74348         declares only 'struct timespec;' (!).
74349
74350 2005-07-01  Jim Meyering  <jim@meyering.net>
74351
74352         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
74353         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
74354         * lib/save-cwd.c, tempname.c:
74355         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74356         and don't include <sys/file.h>).
74357
74358 2005-06-29  Jim Meyering  <jim@meyering.net>
74359
74360         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
74361         type name.  Use the variable name instead.
74362         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
74363         Likewise.
74364
74365 2005-06-28  Simon Josefsson  <jas@extundo.com>
74366
74367         * modules/check-version (Files): Add check-version.m4.
74368
74369 2005-06-28  Simon Josefsson  <jas@extundo.com>
74370
74371         * m4/check-version.m4: New file, suggested by Jim Meyering
74372         <jim@meyering.net>.
74373
74374 2005-06-28  Simon Josefsson  <jas@extundo.com>
74375
74376         * lib/check-version.h, lib/check-version.c: New files.
74377
74378 2005-06-28  Simon Josefsson  <jas@extundo.com>
74379
74380         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
74381         collision with global variable.  Better indentation.  Don't
74382         increment buffer pointer beyond buffer end.  Based on comments
74383         from Paul Eggert <eggert@cs.ucla.edu>.
74384
74385         * lib/base64.h: Indent.
74386
74387 2005-06-28  Simon Josefsson  <jas@extundo.com>
74388
74389         * doc/gnulib.texi (Library version handling): New section.
74390
74391 2005-06-28  Jim Meyering  <jim@meyering.net>
74392
74393         * check-module (find_included_lib_files): Hard-code another
74394         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
74395         but modules/fts-lgpl (correctly) does not list those files.
74396
74397         * modules/canonicalize (Files): Add lib/pathmax.h.
74398
74399 2005-06-25  Simon Josefsson  <jas@extundo.com>
74400
74401         * modules/check-version: New file.
74402
74403 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
74404
74405         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
74406         initializer of struct addrinfo, as an indication that we don't
74407         care how many members the structure has.
74408
74409 2005-06-24  Derek Price  <derek@ximbiot.com>
74410         and Bruno Haible  <bruno@clisp.org>
74411
74412         Remove stat module & update lstat.
74413         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
74414         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74415         * m4/stat.m4: Remove this file.
74416
74417 2005-06-24  Derek Price  <derek@ximbiot.com>
74418         and Bruno Haible  <bruno@clisp.org>
74419
74420         Remove stat module & update lstat.
74421         * lib/stat.c: Remove this file...
74422         (slash_aware_lstat): ...moving this content and its support...
74423         * lib/lstat.c (rpl_lstat): ...into here.
74424         * lib/lstat.h: New file.
74425
74426 2005-06-24  Derek Price  <derek@ximbiot.com>
74427         and Bruno Haible  <bruno@clisp.org>
74428
74429         Remove stat module & update lstat.
74430         * config/srclist.txt (libc sources): Remove stat.
74431
74432 2005-06-24  Derek Price  <derek@ximbiot.com>
74433         and Bruno Haible  <bruno@clisp.org>
74434
74435         Remove stat module & update lstat.
74436         * MODULES.html.sh (stat): Remove.
74437         * MODULES.html: Regenerated.
74438         * modules/lstat (Description): Correct function name.
74439         (Files): Add "lstat.h".
74440         (Depends-on): Remove stat, add xalloc, stat-macros.
74441         * modules/stat: Remove this file.
74442         (Include): Add "lstat.h", remove <sys/stat.h>.
74443
74444 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
74447         (ranged_convert): Don't save conversion in a temporary struct.
74448         This causes a warning with GCC 4.0.0, and anyway in the typical
74449         case it's not worth the extra 100 bytes or so of code.
74450         (ranged_convert, __mktime_internal): When calling a function via a
74451         pointer P, use P () rather than (*P) (), as we now assume C89 or
74452         better.
74453
74454 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74455
74456         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
74457         "who -r" failed to give output.  Problem reported by Tim Waugh.
74458
74459         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
74460         (xcalloc): Use it to avoid needless tests.
74461         Problem reported by Jim Meyering.
74462
74463 2005-06-20  Derek Price  <derek@ximbiot.com>
74464
74465         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
74466         unnecessary for Autoconfs > 2.59c.
74467
74468 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74469
74470         * lib/argp.h (__option_is_short): Check upper limit of
74471         __key. Isprint() requires its argument to have the value
74472         of an unsigned char or EOF.
74473
74474 2005-06-16  Jim Meyering  <jim@meyering.net>
74475
74476         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
74477         when either N or S is zero.
74478
74479 2005-06-16  Derek Price  <derek@ximbiot.com>
74480
74481         * m4/bison.m4: Declare YACC & YFLAGS precious.
74482
74483 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
74484
74485         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
74486         multibyte string or pattern, fall back on unibyte matching.
74487         Problem reported by James Youngman.
74488
74489 2005-06-08  Bruno Haible  <bruno@clisp.org>
74490
74491         * modules/csharpcomp: New file.
74492         * MODULES.html.sh (C#): Add csharpcomp.
74493
74494 2005-06-08  Bruno Haible  <bruno@clisp.org>
74495
74496         * m4/csharpcomp.m4: New file, from GNU gettext.
74497
74498 2005-06-08  Bruno Haible  <bruno@clisp.org>
74499
74500         * lib/csharpcomp.h: New file, from GNU gettext.
74501         * lib/csharpcomp.c: New file, from GNU gettext.
74502         * lib/csharpcomp.sh.in: New file, from GNU gettext.
74503
74504 2005-06-08  Bruno Haible  <bruno@clisp.org>
74505
74506         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
74507         warning on mingw.
74508
74509 2005-06-07  Derek Price  <derek@ximbiot.com>
74510
74511         Sync from CVS.
74512         * lib/glob_.h: Indent nested #ifdef.
74513
74514 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74515
74516         Sync from coreutils.
74517         Use "file name" when talking about file names, instead of "filename"
74518         or "path", as per the GNU coding standards.
74519         * lib/mkdir-p.c: Renamed from makepath.c.
74520         (make_dir_parents): Renamed from make_path.  All callers changed.
74521         * lib/mkdir-p.h: Likewise.  All includers changed.
74522         * lib/filenamecat.c: Renamed from path-concat.c.
74523         (file_name_concat): Renamed from path_concat.  All callers changed.
74524         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
74525         * lib/filenamecat.h: Likewise.  All includers changed.
74526         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
74527         in comments or local variable names.
74528         * lib/basename.c: Likewise.
74529         * lib/canonicalize.c, canonicalize.h: Likewise.
74530         * lib/dirname.c, dirname.h: Likewise.
74531         * lib/euidaccess.c: Likewise.
74532         * lib/exclude.c: Likewise
74533         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
74534         * lib/fsusage.c, fsuage.h: Likewise.
74535         * lib/fts.c, fts_.h: Likewise.
74536         * lib/getcwd.c: Likewise.
74537         * lib/getloadavg.c: Likewise.
74538         * lib/mkstemp.c: Likewise.
74539         * lib/mountlist.c, mountlist.h: Likewise.
74540         * lib/openat.c, openat.h: Likewise.
74541         * lib/readlink-stub.c: Likewise.
74542         * lib/readutmp.c, readutmp.h: Likewise.
74543         * lib/rename.c: Likewise.
74544         * lib/rmdir.c: Likewise.
74545         * lib/same.c: Likewise.
74546         * lib/savedir.c: Likewise.
74547         * lib/stripslash.c: Likewise.
74548         * lib/tempname.c: Likewise.
74549         * lib/xreadlink.c: Likewise.
74550         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
74551         All uses changed.
74552         * lib/exclude.h: Likewise.
74553
74554         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
74555         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74556         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
74557         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74558         * lib/pathmax.h: Include <limits.h> unconditionally, since other
74559         files have been getting away with it for years (MORE/BSD 4.3
74560         is extinct now).
74561         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
74562         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74563
74564         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
74565         Define to 256, not 255, as per modern POSIX.
74566
74567 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74568
74569         Sync from coreutils.
74570         Use "file name" when talking about file names, instead of "filename"
74571         or "path", as per the GNU coding standards.
74572         * MODULES.html.sh: mkdir-p renamed from makepath.
74573         filenamecat renamed from path-concat.
74574         * modules/filenamecat: Renamed from modules/path-concat.
74575         (Files): filenamecat.h and filenamecat.c renamed from
74576         path-concat.h and path-concat.c.
74577         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
74578         (Include): filenamecat.h, not path-concat.h.
74579         * modules/mkdir-p: Renamed from modules/makepath.
74580         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
74581         makepath.c.
74582         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
74583         (Include): mkdir-p.h, not makepath.h.
74584
74585 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74586
74587         Sync from coreutils.
74588         * m4/mkdir-p.m4: Renamed from makepath.m4.
74589         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
74590         Rename files from makepath.c to mkdir-p.c, and from
74591         makepath.h to mkdir-p.h.
74592         * m4/filenamecat.m4: Renamed from path-concat.m4.
74593         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
74594         Rename files from path-concat.c to filenamecat.c,
74595         and from path-concat.h to filenamecat.h.
74596         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
74597         "file name" in local variables or comments.
74598         * m4/rename.m4: Likewise.
74599
74600 2005-06-01  Bruno Haible  <bruno@clisp.org>
74601
74602         * modules/csharpexec: New file.
74603         * MODULES.html.sh (C#): New section.
74604
74605 2005-06-01  Bruno Haible  <bruno@clisp.org>
74606
74607         * m4/csharp.m4: New file, from GNU gettext.
74608         * m4/csharpexec.m4: New file, from GNU gettext.
74609
74610 2005-06-01  Bruno Haible  <bruno@clisp.org>
74611
74612         * lib/csharpexec.h: New file, from GNU gettext.
74613         * lib/csharpexec.c: New file, from GNU gettext.
74614         * lib/csharpexec.sh.in: New file, from GNU gettext.
74615
74616 2005-05-31  Derek Price  <derek@ximbiot.com>
74617             Paul Eggert  <eggert@cs.ucla.edu>
74618
74619         Sync from cvs.
74620         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74621
74622 2005-05-31  Derek Price  <derek@ximbiot.com>
74623             Paul Eggert  <eggert@cs.ucla.edu>
74624
74625         Sync from cvs.
74626         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74627
74628 2005-05-29  Derek Price  <derek@ximbiot.com>
74629
74630         * config/srclist.txt (glob_.h, glob.c): Add these files.
74631
74632 2005-05-29  Derek Price  <derek@ximbiot.com>
74633
74634         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
74635         * modules/glob: New file.
74636         * modules/getlogin_r: Add link to POSIX spec in description.
74637
74638 2005-05-29  Derek Price  <derek@ximbiot.com>
74639             Paul Eggert  <eggert@cs.ucla.edu>
74640
74641         * m4/glob.m4: New file.
74642
74643 2005-05-29  Derek Price  <derek@ximbiot.com>
74644             Paul Eggert  <eggert@cs.ucla.edu>
74645
74646         * lib/glob_.h, lib/glob.c: New files.
74647
74648 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74649
74650         * modules/fts (Files): Remove m4/inttypes-pri.m4.
74651         * modules/fts-lgpl (Depends-on): Remove gettext.
74652
74653 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74654
74655         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
74656         and don't require gt_INTTYPES_PRI.
74657
74658 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74659
74660         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
74661
74662         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
74663         the configuration hassle isn't worth it.
74664         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
74665         (LONGEST_MODIFIER, PRIuMAX): Remove.
74666
74667 2005-05-27  Bruno Haible  <bruno@clisp.org>
74668
74669         * lib/getlogin_r.h: Remove second include of <stddef.h>.
74670
74671 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
74672
74673         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
74674         _POSIX_PTHREAD_SEMANTICS for Solaris.
74675
74676 2005-05-25  Derek Price  <derek@ximbiot.com>
74677
74678         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
74679
74680 2005-05-25  Derek Price  <derek@ximbiot.com>
74681             Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         * modules/getlogin_r, m4/getlogin_r.m4: New files.
74684         * lib/getlogin_r.c, getlogin_r.h: New files.
74685
74686 2005-05-25  Bruno Haible  <bruno@clisp.org>
74687             Derek Price  <derek@ximbiot.com>
74688
74689         * lib/getlogin_r.h: Simplify API documentation.
74690
74691 2005-05-23  Derek Price  <derek@ximbiot.com>
74692
74693         * modules/minmax (Files): Add m4/minmax.m4.
74694         (configure.ac): Add gl_MINMAX.
74695
74696 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74697
74698         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
74699         so that unistd-safer.h (GPL'ed code) need not be included.
74700
74701 2005-05-22  Bruno Haible  <bruno@clisp.org>
74702
74703         * m4/minmax.m4: New file.
74704         Based on a patch by Derek Price <derek@ximbiot.com>.
74705
74706 2005-05-22  Bruno Haible  <bruno@clisp.org>
74707
74708         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
74709         (INT64_MIN): Fix definition.
74710         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
74711
74712         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
74713         NEED_SIGNED_INT_TYPES.
74714
74715         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
74716         HAVE_SYSTEM_INTTYPES.
74717
74718 2005-05-22  Bruno Haible  <bruno@clisp.org>
74719
74720         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
74721         Also include <sys/param.h> if it defines MIN, MAX.
74722         Based on a patch by Derek Price <derek@ximbiot.com>.
74723
74724 2005-05-21  Jim Meyering  <jim@meyering.net>
74725
74726         * modules/fts (Files): Add m4/inttypes-pri.m4.
74727         (Depends-on): Add lstat and remove gettext.  Alphabetize.
74728
74729 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74730
74731         New fts module.
74732         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
74733         (setup_dir, free_dir): New functions.
74734         (enter_dir, leave_dir): Define trivial
74735         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
74736         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
74737         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
74738         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
74739         Move to fts-cycle.c.
74740         (fts_open): Use setup_dir.
74741         (fts_close): Use free_dir.
74742         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
74743         This adds a label and some gotos, but the alternatives were messier.
74744         Check for memory allocation failure when entering a dir.
74745         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
74746         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
74747         (FTS): New member fts_cycle, that is a union that contains the
74748         old active_dir_ht and cycle_state.  All uses changed to mention
74749         fts_cycle.ht and fts_cycle.state.
74750         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
74751         fts.c, with the following changes:
74752         (setup_dir, free_dir): New functions.
74753         (enter_dir): Now returns bool.  Return true if successful, false
74754         if memory exhausted.  All callers changed.
74755         Do not bother partly cleaning up on
74756         memory allocation failure; that is free_dir's job.
74757         However, free ad if hash_insert fails, to avoid memory leak.
74758         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
74759         fts->fts_options to see which union member to use.
74760
74761 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74762
74763         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
74764         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
74765
74766 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74767
74768         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
74769
74770 2005-05-20  Jim Meyering  <jim@meyering.net>
74771
74772         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
74773         Now a macro, to pacify GCC.
74774
74775 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74776
74777         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
74778         of -1.
74779
74780 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74781
74782         * lib/chown.c (rpl_chown): Return -1 on failure.
74783
74784 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74785
74786         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
74787         Don't check for stddef.h.
74788         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
74789         don't use its results.
74790         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
74791         since we include them unconditionally.  Don't require
74792         AM_STDBOOL_H, since stdbool is a prerequisite.
74793         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
74794         since we assume C89 or better.
74795         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
74796         as we don't use their results.
74797         Don't check for fchdir, memmove, memset, strrchr, as we use
74798         them unconditionally.
74799         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
74800         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
74801
74802 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74803
74804         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
74805         Include <stddef.h> unconditionally, since we assume C89 now.
74806         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
74807         * lib/fts.c: Include fts_.h first, to check interface.
74808         Do not include intprops.h; no longer needed.
74809         Include cycle-check.h and hash.h, since fts_.h no longer does.
74810         Remove unnecessary casts of closedir to void.
74811         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
74812         decide whether to decrement nlinks.
74813         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
74814         (FTS): Use struct hash_table * instead of Hash_table, so that
74815         we no longer need to include hash.h here.
74816
74817 2005-05-18  Jim Meyering  <jim@meyering.net>
74818
74819         * modules/dirfd (License): Change to LGPL.  Most of the code
74820         is already in the public domain.
74821
74822 2005-05-18  Jim Meyering  <jim@meyering.net>
74823
74824         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
74825         Reported by Yoann Vandoorselaere.
74826
74827 2005-05-17  Jim Meyering  <jim@meyering.net>
74828
74829         * m4/fts.m4: New file, from coreutils.
74830
74831 2005-05-17  Jim Meyering  <jim@meyering.net>
74832
74833         * lib/fts.c, lib/fts_.h: New files, from coreutils.
74834
74835 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74836
74837         Sync from coreutils.
74838         * m4/unlinkdir.m4: New file.
74839
74840 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74841
74842         Sync from coreutils.
74843         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
74844         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
74845         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
74846         White space changes only.
74847         * lib/makepath.c (make_path): Port to hosts where leading "//" is
74848         special.
74849         * lib/yesno.c: Include getline.h, not ctype.h.
74850         (yesno): Don't remove leading white space; POSIX doesn't allow it.
74851         Use getline to remove arbitrary restriction on response length.
74852
74853 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74854
74855         * config/srclist-update: Spell out "Street" in FSF postal
74856         mail address; this is the style the FSF seems to prefer.
74857
74858         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
74859         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
74860         this updates FSF postal mail address.
74861
74862         Sync from coreutils.
74863         * modules/unlinkdir: New file.
74864         * modules/yesno (Depends-on): Add getline.
74865         * MODULES.html.sh (File system functions): Add unlinkdir.
74866
74867 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74868
74869         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
74870         lib/strsep.h:
74871         Change the initial comment to refer to GPL, not LGPL.
74872         gnulib-tool will change it to LGPL as needed.
74873
74874         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
74875         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
74876         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
74877         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
74878         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
74879         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
74880         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
74881         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
74882         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
74883         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
74884         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
74885         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
74886         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
74887         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
74888         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
74889         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
74890         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
74891         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
74892         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
74893         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
74894         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
74895         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
74896         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
74897         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
74898         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
74899         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
74900         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
74901         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
74902         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
74903         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
74904         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
74905         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
74906         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
74907         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
74908         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
74909         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
74910         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
74911         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
74912         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
74913         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
74914         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
74915         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
74916         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
74917         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
74918         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
74919         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
74920         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
74921         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
74922         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
74923         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
74924         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74925         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
74926         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
74927         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
74928         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
74929         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
74930         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
74931         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
74932         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
74933         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
74934         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
74935         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
74936         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
74937         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
74938         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
74939         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
74940         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
74941         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
74942         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
74943         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
74944         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
74945         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
74946         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
74947         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
74948         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
74949         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
74950         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
74951         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
74952         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
74953         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
74954         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
74955         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
74956         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
74957         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
74958         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
74959         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
74960         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
74961         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
74962         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
74963         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
74964         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
74965         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
74966         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
74967         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
74968         lib/yesno.c, lib/yesno.h:
74969         Update FSF postal mail address.
74970
74971 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74972
74973         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74974         tests/test-memmem.c, tests/test-stpncpy.c:
74975         Update FSF postal mail address.
74976
74977 2005-05-13  Bruno Haible  <bruno@clisp.org>
74978
74979         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74980         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74981         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74982         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74983         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74984         Add support for 64-bit integers in the MSVC compiler.
74985
74986 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74987
74988         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74989
74990 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74991
74992         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74993
74994 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74995
74996         * doc/getdate.texi (General date syntax): Don't say that date
74997         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74998         Problem reported by Nic Ferrier.
74999
75000 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75001
75002         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
75003         specified in ai_socktype. Fix invalid ai_protocol
75004         check. ai_protocol is usually set to 0 or depending on
75005         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
75006         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
75007         ai_socktype / ai_protocol in the returned addrinfo structure.
75008
75009 2005-05-10  Simon Josefsson  <jas@extundo.com>
75010
75011         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
75012         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75013
75014 2005-05-10  Karl Berry  <karl@gnu.org>
75015
75016         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
75017         (from http://www.gnu.org/licenses).
75018         * doc/COPYING.LIB: also rename to COPYING.LESSER.
75019         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
75020         fdl.texi suffices.
75021
75022 2005-05-10  Karl Berry  <karl@gnu.org>
75023
75024         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
75025         (COPYING.DOC): remove.
75026
75027         * config/srclist-update: new FSF address.
75028
75029 2005-05-10  Derek Price  <derek@ximbiot.com>
75030
75031         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
75032         possible.
75033
75034 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75035             Bruno Haible  <bruno@clisp.org>
75036
75037         * modules/inet_ntop: New file.
75038         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75039         inet_ntop.
75040
75041 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75042             Bruno Haible  <bruno@clisp.org>
75043
75044         * m4/inet_ntop.m4: New file.
75045
75046 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75047             Bruno Haible  <bruno@clisp.org>
75048
75049         * lib/inet_ntop.h: New file.
75050         * lib/inet_ntop.c: New file, from glibc with modifications.
75051
75052 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
75053
75054         * modules/time_r (License): Change to LGPL.
75055         * modules/extensions (License): Change to LGPL.  Actually,
75056         the license is more permissive than that, but currently gnulib-tool
75057         doesn't know how to handle more-permissive licenses.
75058
75059         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
75060         Problem reported by Dave Love.
75061
75062 2005-05-08  Jim Meyering  <jim@meyering.net>
75063
75064         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
75065         blank.
75066
75067 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75068
75069         * modules/argmatch (Depends-on): Add stdbool.
75070         * modules/backupfile (Depends-on): Likewise.
75071         * modules/chdir-long (Depends-on): Likewise.
75072         * modules/closeout (Depends-on): Likewise.
75073         * modules/cycle-check (Depends-on): Likewise.
75074         * modules/dirname (Depends-on): Likewise.
75075         * modules/fnmatch (Depends-on): Likewise.
75076         * modules/fsusage (Depends-on): Likewise.
75077         * modules/fwriteerror (Depends-on): Likewise.
75078         * modules/getcwd (Depends-on): Likewise.
75079         * modules/getloadavg (Depends-on): Likewise.
75080         * modules/hard-locale (Depends-on): Likewise.
75081         * modules/makepath (Depends-on): Likewise.
75082         * modules/mountlist (Depends-on): Likewise.
75083         * modules/nanosleep (Depends-on): Likewise.
75084         * modules/posixtm (Depends-on): Likewise.
75085         * modules/quotearg (Depends-on): Likewise.
75086         * modules/readtokens (Depends-on): Likewise.
75087         * modules/readtokens0 (Depends-on): Likewise.
75088         * modules/readutmp (Depends-on): Likewise.
75089         * modules/save-cwd (Depends-on): Likewise.
75090         * modules/strftime (Depends-on): Likewise.
75091         * modules/userspec (Depends-on): Likewise.
75092         * modules/utimecmp (Depends-on): Likewise.
75093         * modules/xgetcwd (Depends-on): Likewise.
75094         * modules/xnanosleep (Depends-on): Likewise.
75095         * modules/xstrtod (Depends-on): Likewise.
75096         * modules/yesno (Depends-on): Likewise.
75097
75098 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
75099
75100         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
75101         needless checks.
75102
75103 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75104
75105         Merge from coreutils.  Among other things,
75106         add bulletproofing for cases where stdin, stdout, or stderr are closed.
75107         * lib/fd-safer.c: New file.
75108         * lib/fcntl-safer.h, open-safer.c: Remove.
75109         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
75110         * lib/dup-safer.c: Include unistd-safer.h first.
75111         Don't include errno.h.
75112         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
75113         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
75114         * lib/file-type.c: Rely on file-type.h change.
75115         * lib/getloadavg.c: Include unistd-safer.h.
75116         (getloadavg): Use safer open.
75117         * lib/getusershell.c: Include "stdio-safer.h".
75118         (getusershell): Use safer fopen.
75119         * lib/long-options.c (long_options): Use NULL rather than 0.
75120         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
75121         'free'.
75122         * lib/modechange.c: Likewise.
75123         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
75124         (MODE_DONE): New constant.
75125         (struct mode_change): Remove 'next' member.
75126         (make_node_op_equals): New function; like the old one of the
75127         same name, except it allocates an array.
75128         (mode_compile, mode_create_from_ref): Use it.
75129         (mode_compile): Allocate result as an array, not a linked list.
75130         Parse octal string ourself, so that we catch mistakes like "+0".
75131         (mode_adjust): Arg is an array, not a linked list.
75132         * lib/modechange.c: Include stat-macros.h, xalloc.h.
75133         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
75134         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
75135         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
75136         Remove.  This is now stat-macros.h's job.
75137         (talloc): Remove.  All callers replaced by xalloc, so that
75138         our invokers don't have to worry about reporting memory failures.
75139         (make_node_op_equals): Remove.
75140         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
75141         New constants.
75142         (struct mode_change): Moved here from modechange.h.
75143         (mode_append_entry): Remove.
75144         (mode_compile): Remove MASKED_OPS arg, since it encouraged
75145         apps to have incorrect behavior.  Use simpler algorithm for head
75146         and tail.  Don't futz with umask; that's now the job of mode_adjust.
75147         Detect more invalid usages rather than having somewhat-random behavior.
75148         Don't insert an "a=" action, as that leads to incorrect behavior.
75149         (mode_compile, mode_create_from_ref): Return NULL on error instead
75150         of an enum, since now there's only one way to have an error.  All
75151         callers changed.
75152         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
75153         at the correct time.  Simplify calculation of "+u" and its ilk.
75154         Don't mishandle "+X".
75155         (mode_free): Remove "register" and localize decls.
75156         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
75157         (struct mode_change): Move to modechange.c; callers don't
75158         need to see this stuff.
75159         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
75160         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
75161         (mode_change, mode_adjust): Reflect the new signatures noted above.
75162         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
75163         that might redefine system include files.
75164         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
75165         (my_usleep): Use NULL rather than (void *) 0.
75166         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
75167         Use siginterrupt to specify that system calls should be interrupted.
75168         (rpl_nanosleep): Move initialization of suspended closer to call of
75169         my_usleep.
75170         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
75171         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
75172         (desirable_utmp_entry): New function.
75173         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
75174         using x2nrealloc, to simplify logic.
75175         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
75176         size calculation.  Do not assume utmp file is a regular file.
75177         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
75178         (READ_UTMP_CHECK_PIDS): New constant.
75179         * lib/save-cwd.c: Include unistd-safer.h.
75180         (save_cwd): Use fd_safer.
75181         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
75182         [!_LIBC] Include "stat-macros.h" instead.
75183         * lib/unistd-safer.h (fd_safer): New decl.
75184
75185 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75186
75187         * modules/getloadavg (Depends-on): Add unistd-safer.
75188         * modules/getusershell (Depends-on): Add stdio-safer.
75189         * modules/lstat (Depends-on): Remove xalloc.
75190         * modules/mkstemp (Depends-on): Add stat-macros.
75191         * modules/modechange (Depends-on): Remove xstrtol.
75192         Add stat-macros, xalloc.
75193         * modules/save-cwd (Depends-on): Add unistd-safer.
75194         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
75195         * modules/unistd-safer (Files): Add lib/fd-safer.c
75196         (Makefile.am): Remove lib_SOURCES.
75197
75198         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
75199         Remove fcntl-safer; unistd-safer supersedes it.
75200
75201 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75202
75203         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
75204         AC_HEADER_STAT.
75205         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
75206         (gl_PREREQ_CHOWN): Remove.
75207         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
75208         it.  Don't require AC_HEADER_STAT.
75209         (gl_PREREQ_LSTAT): Remove.
75210         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
75211         Don't require AC_HEADER_STAT.
75212         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
75213         (gl_PREREQ_RMDIR): Remove.
75214         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
75215         mention stat-macros.h or AC_HEADER_STAT, since we'll make
75216         the stat-macros module a prerequisite.
75217         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
75218         * m4/filemode.m4 (gl_FILEMODE): Likewise.
75219         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
75220         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
75221         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
75222         variable names.
75223         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
75224         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
75225         variable prefixes.
75226         * m4/fcntl-safer.m4: Remove.
75227         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
75228         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
75229         Invoke gl_PREREQ_FD_SAFER.
75230         (gl_PREREQ_FD_SAFER): New macro.
75231         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
75232         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
75233         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
75234         Remove duplicate call to AC_LIBOBJ(readutmp).
75235         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
75236
75237         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
75238         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
75239
75240 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75241
75242         * MODULES.html.sh (Misc): Add byteswap.
75243
75244 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75245
75246         * modules/getcwd (Depends-on): Add extensions.
75247         * modules/openat (Depends-on): Likewise.
75248
75249 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75250
75251         * modules/byteswap: New file.
75252
75253 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75254
75255         * m4/byteswap.m4: New file.
75256
75257 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75258
75259         * lib/byteswap_.h: New file.
75260
75261 2005-04-25  Karl Berry  <karl@gnu.org>
75262
75263         * m4/gettext.m4: Update from GNU gettext 0.14.4.
75264
75265 2005-04-25  Albert Chin  <china@thewrittenword.com>
75266
75267         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
75268         Toolkit C bug.
75269
75270 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
75271
75272         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
75273         (func_ln_if_changed): Remove forcibly for no error message
75274         in case file does not exist.
75275
75276 2005-04-19  Simon Josefsson  <jas@extundo.com>
75277
75278         * gnulib-tool (Options): Make --symlink mean --symbolic.
75279
75280 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
75281
75282         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
75283
75284 2005-04-16  Simon Josefsson  <jas@extundo.com>
75285
75286         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
75287
75288 2005-04-15  Simon Josefsson  <jas@extundo.com>
75289
75290         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
75291
75292 2005-04-15  Simon Josefsson  <jas@extundo.com>
75293
75294         * gnulib-tool: Rename --symlink to --symbolic.
75295
75296 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
75297
75298         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
75299         symbolic links to files instead of copying/moving.  Add --aux-dir,
75300         specifying directory relative --dir where auxiliary build tools
75301         are placed.
75302
75303 2005-04-14  Bruno Haible  <bruno@clisp.org>
75304
75305         * modules/allocsa (License): Change to LGPL.
75306         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
75307
75308 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
75309
75310         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
75311         that "UTC +1 second" continues to work.  Problem reported
75312         by Dmitry V. Levin.
75313         (relunit_snumber): New rule.
75314         (relunit): Use it.
75315
75316 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75317
75318         * lib/getdate.y (universal_time_zone_table): New constant.
75319         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
75320         universal_time_zone_table.
75321         (lookup_zone): Prefer universal_time_zone_table to
75322         local_time_zone_table, so that "GMT" time stamps are allowed in
75323         London during the summer.  Problem reported by Ian Abbott.
75324
75325 2005-04-12  Jim Meyering  <jim@meyering.net>
75326
75327         * lib/human.c (humblock): Set *options even when returning due to
75328         xstrtoumax conversion failure.  Thanks to a used-uninitialized
75329         warning from gcc-4.
75330
75331 2005-04-09  Jim Meyering  <jim@meyering.net>
75332
75333         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
75334         -Wuninitialized: initialize tm0.tm_year.
75335
75336 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
75337
75338         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
75339         count, since there's no maximum.  All uses changed.
75340         Add member dsts_seen.
75341         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
75342         not being INT_MAX.
75343         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
75344         Use pc_rels_seen to decide whther a date is absolute.
75345
75346         * lib/getdate.y (number): Don't overwrite year.
75347         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
75348         check.
75349
75350 2005-04-02  Simon Josefsson  <jas@extundo.com>
75351
75352         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
75353         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
75354
75355 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
75356
75357         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
75358         where no absolute path name can be longer than PATH_MAX.
75359
75360 2005-03-27  Jim Meyering  <jim@meyering.net>
75361
75362         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
75363
75364 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
75365
75366         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
75367         "one's complement" -> "ones' complement" in comment, as per Knuth.
75368         "value of type" -> "type or expression" in comment.
75369         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
75370
75371 2005-03-26  Jim Meyering  <jim@meyering.net>
75372
75373         Comment nits.
75374         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
75375         Correct typos: s/or/of/.
75376
75377 2005-03-26  Jim Meyering  <jim@meyering.net>
75378
75379         * modules/check-include-files: Move to ../ and rename to...
75380         * check-module: ...this.
75381
75382 2005-03-25  Jim Meyering  <jim@meyering.net>
75383
75384         * modules/xvasprintf (Files): Add xalloc.h.
75385
75386 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
75387
75388         * modules/gettext (Files): config/config.rpath ->
75389         build-aux/config.rpath
75390         * modules/iconv (Files): Likewise.
75391         Problem reported by Oskar Liljeblad.
75392
75393 2005-03-23  Jim Meyering  <jim@meyering.net>
75394
75395         * modules/check-include-files: New script to check for
75396         missing dependencies, multiple includes, etc.
75397
75398         * modules/c-strtold (Depends-on): Add xalloc.
75399         * modules/c-strtod (Depends-on): Add xalloc.
75400         * modules/hash (Depends-on): Add xalloc.
75401         (Files): Remove lib/xalloc.h.
75402
75403         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
75404         * modules/userspec (Files): Add lib/inttostr.h.
75405
75406 2005-03-23  Jim Meyering  <jim@meyering.net>
75407
75408         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
75409
75410 2005-03-22  Jim Meyering  <jim@meyering.net>
75411
75412         * modules/stat-macros: New module.
75413         * modules/canonicalize, modules/euidaccess, modules/file-type,
75414         * modules/filemode, modules/lchown, modules/makepath,
75415         * modules/rmdir, modules/stat: Depend on new stat-macros module
75416         rather than listing lib/stat-macros.h manually.
75417         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
75418
75419 2005-03-22  Jim Meyering  <jim@meyering.net>
75420
75421         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
75422
75423 2005-03-22  Bruno Haible  <bruno@clisp.org>
75424
75425         * config/srclist.txt: Replace target directory 'config' with
75426         'build-aux'.
75427         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
75428         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
75429         ../build-aux/.
75430
75431 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
75432
75433         * modules/chdir-long (Depends-on): Add mempcpy.
75434
75435         * modules/acl, modules/backupfile, modules/c-strtod,
75436         modules/c-strtold, modules/canon-host, modules/canonicalize,
75437         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
75438         modules/exclude, modules/exitfail, modules/file-type,
75439         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
75440         modules/getdate, modules/getline, modules/getpagesize,
75441         modules/getpass, modules/getugroups, modules/group-member,
75442         modules/hard-locale, modules/hash, modules/human, modules/idcache,
75443         modules/inttostr, modules/long-options, modules/makepath,
75444         modules/md5, modules/memcasecmp, modules/memcoll,
75445         modules/modechange, modules/mountlist, modules/path-concat,
75446         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
75447         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
75448         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
75449         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
75450         modules/strftime, modules/strndup, modules/strverscmp,
75451         modules/timespec, modules/unlocked-io, modules/userspec,
75452         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
75453         modules/yesno:
75454         Remove lib_SOURCES line from Makefile.am section, as this is now
75455         done automatically by the corresponding Autoconf macro.
75456
75457 2005-03-21  Jim Meyering  <jim@meyering.net>
75458
75459         Changes imported from coreutils.
75460
75461         * lib/cycle-check.c: Don't include xalloc.h.
75462
75463         * lib/path-concat.c: Don't include assert.h.
75464         (path_concat): Remove assertion that would have triggered
75465         for ABASE starting with more than one slash.
75466         Reported by Andreas Schwab.
75467
75468         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
75469         properly when ABASE is an absolute file name.
75470         Correct the description of this function.
75471         Include <assert.h>.
75472         Add an assertion and a test driver.
75473         This fixes a bug introduced on 2004-07-02.
75474         Andreas Schwab reported the resulting failure of cp --parents:
75475         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
75476
75477 2005-03-21  Jim Meyering  <jim@meyering.net>
75478
75479         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
75480         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
75481
75482 2005-03-21  Jim Meyering  <jim@meyering.net>
75483         and  Paul Eggert  <eggert@cs.ucla.edu>
75484
75485         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
75486         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
75487         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
75488         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
75489         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
75490         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
75491         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
75492         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
75493         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
75494         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
75495         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
75496         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
75497         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
75498         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
75499         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
75500         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
75501         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
75502         for these modules.
75503
75504 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
75505
75506         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
75507         (which shouldn't happen), generate nothing instead of returning 0
75508         immediately, so that nstrftime (NULL, ...) doesn't return 0.
75509
75510 2005-03-16  Bruno Haible  <bruno@clisp.org>
75511
75512         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
75513         HAVE_LONGLONG_64BIT.
75514
75515 2005-03-16  Bruno Haible  <bruno@clisp.org>
75516
75517         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
75518         HAVE_LONGLONG_64BIT.
75519
75520 2005-03-16  Bruno Haible  <bruno@clisp.org>
75521
75522         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
75523         HAVE_LONGLONG_64BIT.
75524
75525 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75526
75527         * lib/strftime.c (my_strftime): Prepend space to format so that we can
75528         reliably distinguish strftime failure from empty output on POSIX
75529         hosts.
75530
75531 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75532
75533         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
75534         (iconv_string): Don't guess a size-zero buffer, as that might cause
75535         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
75536         result would be 'too large', where 'too large' is (heuristically)
75537         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
75538         overflow concerns.  This will prevent some unwanted malloc failures
75539         when the inputs are very large.
75540
75541 2005-03-15  Karl Berry  <karl@gnu.org>
75542
75543         * config/srclist.txt (config.rpath): from gettext.
75544         * config/config.rpath: update.
75545
75546 2005-03-15  Bruno Haible  <bruno@clisp.org>
75547
75548         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
75549         to 'negate'.
75550
75551         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
75552         variable.
75553
75554         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
75555         results.
75556
75557 2005-03-14  Simon Josefsson  <jas@extundo.com>
75558
75559         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
75560         <fx@gnu.org>.
75561
75562 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
75565         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
75566         intprops.h.
75567         * lib/strtol.c: Likewise.
75568
75569 2005-03-14  Jim Meyering  <jim@meyering.net>
75570
75571         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
75572         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
75573         to be nonzero so that we (and caller) can detect the difference
75574         between a valid zero-length expansion and an error return, even
75575         when the underlying strftime fails before writing anything into
75576         that location.
75577
75578 2005-03-14  Bruno Haible  <bruno@clisp.org>
75579
75580         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
75581         Update from GNU gettext 0.14.3.
75582
75583 2005-03-10  Jim Meyering  <jim@meyering.net>
75584
75585         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
75586
75587 2005-03-10  Jim Meyering  <jim@meyering.net>
75588
75589         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
75590         so that this module works on systems without fchdir.
75591
75592 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
75593
75594         Factor int-properties macros into a single file, except for
75595         glibc-related files.
75596         * lib/intprops.h: New file.
75597         * lib/getloadavg.c: Include it instead of limits.h.
75598         (INT_STRLEN_BOUND): Remove.
75599         * lib/human.c: Include intprops.h.
75600         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
75601         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
75602         302/1000.
75603         * lib/inttostr.h: Include intprops.h instead of limits.h.
75604         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
75605         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
75606         for consistency with intprops.h.
75607         (time_t_is_integer, twos_complement_arithmetic): Use them.
75608         * lib/sig2str.h: Include <signal.h>, intprops.h.
75609         (INT_STRLEN_BOUND): Remove.
75610         * lib/strftime.c (TYPE_SIGNED): Remove.
75611         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
75612         * lib/strtol.c: Adjust comments to match intprops.h.
75613         * lib/userspec.c: Include intprops.h.
75614         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
75615         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
75616         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
75617         instead of rolling our own expressions.
75618         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
75619
75620         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
75621         instead of int.
75622         (my_strftime): Do not mishandle years close to INT_MAX, by doing
75623         the right thing even if adding 1900 would overflow.  Similarly
75624         for tm_mon + 1 and tm_yday + 1.
75625         Make %Y always equivalent to %C%y, and similarly for %G and %g.
75626         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
75627         (DO_SIGNED_NUMBER): New macro.
75628         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
75629
75630 2005-03-07  Bruno Haible  <bruno@clisp.org>
75631
75632         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
75633
75634 2005-03-07  Bruno Haible  <bruno@clisp.org>
75635
75636         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
75637
75638 2005-03-04  Derek R. Price  <derek@ximbiot.com>
75639
75640         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
75641         (func_import): Only replace files via --import when they have actually
75642         changed.
75643
75644 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75645
75646         * m4/mmap-anon.m4: New file.
75647         * m4/pagealign_alloc.m4: New file.
75648
75649 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75650             Bruno Haible  <bruno@clisp.org>
75651
75652         * modules/pagealign_alloc: New file.
75653         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
75654
75655 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75656             Bruno Haible  <bruno@clisp.org>
75657
75658         * lib/pagealign_alloc.h: New file.
75659         * lib/pagealign_alloc.c: New file.
75660
75661 2005-03-03  Bruno Haible  <bruno@clisp.org>
75662
75663         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
75664         Use an all-permissive copyright notice, recommended by RMS.
75665
75666 2005-03-02  Bruno Haible  <bruno@clisp.org>
75667
75668         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
75669         of AIX, the replacement has to be done only after <string.h> is
75670         included, therefore not in config.h. stpncpy.h does the replacement,
75671         and stpncpy.c uses it.
75672
75673 2005-03-02  Bruno Haible  <bruno@clisp.org>
75674
75675         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
75676         stpncpy.c uses it.
75677
75678 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75679
75680         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
75681         The workaround isn't strictly needed for POSIX conformance, and
75682         it's too much of a pain to configure and maintain.  We'll ask
75683         people to fix their kernels instead.
75684         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
75685         (NANOSLEEP_BUG_WORKAROUND): Remove.
75686         (xnanosleep): Remove the workaround.
75687
75688 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75689
75690         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
75691         Reported by Derek Price.
75692         (Include): Add "timespec.h".
75693
75694         * modules/xnanosleep (Depends-on): Remove gethrxtime.
75695
75696 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75697
75698         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
75699         to detect nanosleep bug.
75700
75701 2005-03-01  Bruno Haible  <bruno@clisp.org>
75702
75703         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
75704
75705 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75706
75707         * modules/gethrxtime: New file.
75708         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
75709         (Depends-on): Add gethrxtime.
75710         (configure.ac): Add gl_XNANOSLEEP.
75711         (Makefile.am): Remove lib_SOURCES line.
75712
75713 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75714
75715         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
75716         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
75717
75718 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
75721         * lib/timespec.h (gettime): Return void, since it always
75722         succeeds now.  All uses changed.
75723         * lib/gettime.c (gettime): Likewise.
75724         [HAVE_NANOTIME]: Prefer nanotime.
75725         Assume gettimeofday succeeds, as POSIX requires.
75726         Assime time () succeeds, since other code already does.
75727         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
75728         (timespec_subtract): Remove.
75729         (NANOSLEEP_BUG_WORKAROUND): New constant.
75730         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
75731         things considerably.  Use it only on GNU/Linux hosts, since the
75732         workaround shouldn't be needed elsewhere.
75733
75734 2005-02-24  Bruno Haible  <bruno@clisp.org>
75735
75736         * modules/gettext (Files): Add m4/glibc2.m4.
75737
75738 2005-02-24  Bruno Haible  <bruno@clisp.org>
75739
75740         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
75741         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
75742         * m4/progtest.m4:
75743         Update from GNU gettext 0.14.2.
75744         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
75745
75746 2005-02-24  Bruno Haible  <bruno@clisp.org>
75747
75748         * lib/localcharset.c: Update from GNU gettext 0.14.2.
75749         * lib/config.charset: Update from GNU gettext 0.14.2.
75750
75751 2005-02-24  Bruno Haible  <bruno@clisp.org>
75752
75753         * lib/gettext.h: Update from GNU gettext 0.14.2.
75754
75755 2005-02-23  Simon Josefsson  <jas@extundo.com>
75756
75757         * m4/iconvme.m4: New file.
75758
75759 2005-02-23  Jim Meyering  <jim@meyering.net>
75760
75761         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
75762         change.
75763         Thanks to Bruno Haible for catching it.
75764
75765 2005-02-22  Simon Josefsson  <jas@extundo.com>
75766
75767         * modules/iconvme: New file.
75768
75769         * MODULES.html.sh: Add iconvme.
75770
75771 2005-02-22  Simon Josefsson  <jas@extundo.com>
75772
75773         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
75774
75775 2005-02-22  Simon Josefsson  <jas@extundo.com>
75776
75777         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
75778
75779 2005-02-22  Jim Meyering  <jim@meyering.net>
75780
75781         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
75782         s/ifndef/ifdef/.
75783
75784 2005-02-20  Neil Conway  <neilc@samurai.com>
75785
75786         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
75787         returned by OSX/Darwin if the specified buffer is not large
75788         enough for the hostname.
75789
75790 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75791
75792         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
75793         pass it to _help, otherwise the latter coredumps trying to
75794         dereference state.root_argp.
75795
75796 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75797
75798         * modules/chdir-long (Depends-on): Add memrchr.
75799         * modules/memrchr (Files): Add lib/memrchr.h.
75800         (Include): "memrchr.h".
75801
75802 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75803
75804         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
75805
75806 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75807
75808         * lib/memrchr.h: New file.
75809         * lib/chdir-long.c: Include it.
75810         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
75811         Don't bother including stddef.h.
75812
75813 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
75816         inclusion.
75817         Include <sys/types.h>, for dev_t.
75818         (ME_DUMMY, ME_REMOTE): Move from here....
75819         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
75820         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
75821         Dmitry V. Levin.
75822         Include mountlist.h first, to test the interface.
75823
75824 2005-01-29  Bruno Haible  <bruno@clisp.org>
75825
75826         * lib/progname.c (program_name): Initialize.
75827         Needed when linking statically on MacOS X.
75828
75829 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75830
75831         Sync from coreutils.
75832         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
75833         (Depends-on): Add c-strtod.
75834         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
75835
75836 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75837
75838         Sync from coreutils.
75839         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
75840
75841         Remove files that are specific to coreutils.
75842         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
75843
75844 2005-01-28  Bruno Haible  <bruno@clisp.org>
75845
75846         * modules/javacomp: New file.
75847         * MODULES.html.sh (Java): Add javacomp.
75848
75849 2005-01-28  Bruno Haible  <bruno@clisp.org>
75850
75851         * m4/javacomp.m4: New file, from GNU gettext.
75852
75853 2005-01-28  Bruno Haible  <bruno@clisp.org>
75854
75855         * lib/javacomp.sh.in: New file, from GNU gettext.
75856         * lib/javacomp.h: New file, from GNU gettext.
75857         * lib/javacomp.c: New file, from GNU gettext.
75858
75859 2005-01-26  Simon Josefsson  <jas@extundo.com>
75860
75861         * lib/gai_strerror.c: Use GPL in header.
75862
75863 2005-01-26  Bruno Haible  <bruno@clisp.org>
75864
75865         * modules/javaexec: New file.
75866         * MODULES.html.sh (Java): Add javaexec.
75867
75868 2005-01-26  Bruno Haible  <bruno@clisp.org>
75869
75870         * m4/javaexec.m4: New file, from GNU gettext.
75871
75872 2005-01-26  Bruno Haible  <bruno@clisp.org>
75873
75874         * lib/javaexec.sh.in: New file, from GNU gettext.
75875         * lib/javaexec.h: New file, from GNU gettext.
75876         * lib/javaexec.c: New file, from GNU gettext.
75877
75878 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75879
75880         * modules/lchown (Depends-on): Remove lchown.h
75881
75882 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75883
75884         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
75885         must be defined if the header file was not found, in order
75886         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
75887
75888 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75889
75890         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
75891         initializers for struct pentry_state.
75892         (__argp_error): Check return value of __asprintf
75893         (__argp_failure): Translate error message
75894
75895         * lib/argp-parse.c: Removed braces around the expansion of N_()
75896
75897 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75898
75899         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
75900         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
75901         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
75902         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
75903         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
75904         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
75905         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
75906         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
75907         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
75908         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
75909         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
75910         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
75911         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
75912         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
75913         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
75914         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
75915         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
75916         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
75917         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
75918         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
75919         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
75920         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
75921         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
75922         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
75923         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
75924         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
75925         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
75926         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
75927         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
75928         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
75929         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
75930         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
75931         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
75932         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
75933         xstrtol.m4, xstrtoumax.m4, yesno.m4:
75934         Use an all-permissive copyright notice, recommended by RMS.
75935
75936 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
75937
75938         * modules/chdir-long (Depends-on): Remove mempcpy.
75939
75940 2005-01-21  Jim Meyering  <jim@meyering.net>
75941
75942         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
75943         same value as for Solaris 9.
75944
75945         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
75946         component length.  This included changing the parameter to be
75947         of type `char *' rather than `char const *'.
75948         * lib/chdir-long.h (chdir_long): Update prototype.
75949
75950         * lib/openat.c (fdopendir, fstatat): New functions.
75951         * lib/openat.h: Include headers required for use of DIR and struct
75952         stat.
75953         [AT_SYMLINK_NOFOLLOW]: Define.
75954         (fdopendir, fstatat): Add prototypes.
75955
75956 2005-01-21  Bruno Haible  <bruno@clisp.org>
75957
75958         * modules/classpath: New file.
75959         * MODULES.html.sh (Java): Add classpath.
75960
75961 2005-01-21  Bruno Haible  <bruno@clisp.org>
75962
75963         * lib/classpath.h: New file, from GNU gettext.
75964         * lib/classpath.c: New file, from GNU gettext.
75965
75966 2005-01-20  Simon Josefsson  <jas@extundo.com>
75967
75968         * modules/version-etc-fsf: New file.
75969
75970 2005-01-20  Simon Josefsson  <jas@extundo.com>
75971
75972         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
75973         * lib/version-etc.c: Remove version_etc_copyright.
75974         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75975         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75976
75977 2005-01-20  Simon Josefsson  <jas@extundo.com>
75978
75979         * lib/base64.h (isbase64): Add.
75980
75981         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75982         using a unsigned prototype, don't inline.
75983         (base64_decode): Use it.
75984
75985 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75986
75987         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75988         it.
75989
75990 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75991
75992         * lib/save-cwd.c (save_cwd): Remove code to support the case
75993         where fchdir is missing or flaky.
75994
75995 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75996
75997         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75998
75999 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
76002         AC_LIBSOURCES now does this.
76003         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
76004         with new ullong_max module.
76005
76006 2005-01-19  Bruno Haible  <bruno@clisp.org>
76007
76008         * modules/sh-quote: New file.
76009         * MODULES.html.sh (Executing programs): Add sh-quote.
76010
76011 2005-01-19  Bruno Haible  <bruno@clisp.org>
76012
76013         * lib/sh-quote.h: New file, from GNU gettext.
76014         * lib/sh-quote.c: New file, from GNU gettext.
76015
76016 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76017
76018         Merge from coreutils.
76019         * m4/ullong_max.m4: New file.
76020         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
76021         (gl_MACROS): Assume localeconv exists.
76022
76023 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76024
76025         Merge changes from coreutils, as described below in several
76026         changelogs dated today.
76027
76028         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
76029         (O_DIRECTORY): Remove; not needed here, since "." must be
76030         a directory.  All uses removed.
76031         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
76032         universal on Suns, and we also need to test for IRIX.
76033         Revamp code to use 'if' rather than '#if'.
76034         Avoid unnecessary comparison of cwd->desc to 0.
76035
76036         * lib/utimens.c (futimens): Robustify the previous patch, by checking
76037         for known valid error numbers rather than observed invalid ones.
76038
76039 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76040
76041         * modules/ullong_max: New file.
76042
76043         * modules/chdir-long, modules/openat: New files.
76044         * modules/save-cwd (Depends-on): Depend on chdir-long.
76045         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
76046
76047 2005-01-18  Jim Meyering  <jim@meyering.net>
76048
76049         Merge from coreutils.
76050         * m4/chdir-long.m4, m4/openat.m4: New files.
76051         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
76052         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
76053         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
76054         is sane and DOES follow symlinks.  Besides, testing 20 different
76055         systems found no broken chown implementations.
76056         Prompted by a change in rsync's copy of this macro.
76057         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
76058
76059         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
76060
76061         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
76062         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
76063         NULL-means-set-to-current-time semantics.
76064         Remove temporary file immediately, rather than waiting
76065         for configure's at-exit trap code to do it.
76066
76067 2005-01-18  Jim Meyering  <jim@meyering.net>
76068
76069         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76070
76071         * lib/utimens.c (futimens): Account for the fact that futimes
76072         can also fail with errno == ENOSYS or errno == ENOENT.
76073         Patch from Dmitry V. Levin.
76074
76075         Change the name of the robust chdir function from chdir to chdir_long.
76076         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
76077         (restore_cwd): Use chdir_long, not chdir.
76078         * lib/chdir-long.c: Renamed from chdir.c.
76079         * lib/chdir-long.h: Renamed from chdir.h.
76080         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
76081         Hurd.
76082
76083 2005-01-18  Bruno Haible  <bruno@clisp.org>
76084
76085         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
76086         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
76087         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
76088         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
76089         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
76090         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
76091         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
76092         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
76093         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
76094         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
76095         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
76096         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
76097         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
76098         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
76099         Use an all-permissive copyright notice, recommended by RMS.
76100
76101 2005-01-18  Bob Proulx  <bob@proulx.com>
76102
76103         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
76104         simplify offsetof() macro construct to avoid compile failure with
76105         native HP-UX 11.0 ANSI C compiler.
76106
76107 2005-01-17  Bruno Haible  <bruno@clisp.org>
76108
76109         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
76110         redundant because stpncpy.m4 takes care of it.
76111
76112 2005-01-17  Bruno Haible  <bruno@clisp.org>
76113
76114         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
76115
76116 2005-01-17  Bruno Haible  <bruno@clisp.org>
76117
76118         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
76119         used.
76120
76121 2005-01-17  Bruno Haible  <bruno@clisp.org>
76122
76123         * lib/fwriteerror.h (fwriteerror): Change specification to include
76124         fclose.
76125         * lib/fwriteerror.c: Include <stdbool.h>.
76126         (fwriteerror): At the end, close the file stream. Record whether
76127         stdout was already closed.
76128
76129 2005-01-17  Bruno Haible  <bruno@clisp.org>
76130
76131         * lib/execute.c (environ): Declare if needed.
76132         * lib/pipe.c (environ): Likewise.
76133         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
76134
76135 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76136
76137         * modules/argp: Depend on vsnprintf
76138
76139 2005-01-10  Jim Meyering  <jim@meyering.net>
76140
76141         * modules/closeout (Depends-on): Add atexit.
76142
76143 2005-01-06  Bruno Haible  <bruno@clisp.org>
76144
76145         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
76146
76147 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76148
76149         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
76150         definitions to be after all include files, to avoid collisions.
76151         Problem reported by Bob Proulx.
76152
76153 2005-01-04  Jim Meyering  <jim@meyering.net>
76154
76155         Changes imported from coreutils.
76156         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
76157         as the mkstemp template, use a temporary directory and an
76158         8.3-friendly template to avoid trouble on systems like DJGPP.
76159         Reported by Juan M. Guerrero via Stepan Kasal.
76160         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
76161         close. Remove the temporary directory right away, rather than waiting
76162         for configure's at-exit trap code to do it.
76163         Suggestion from Stepan Kasal.
76164
76165 2005-01-01  Simon Josefsson  <jas@extundo.com>
76166
76167         * gnulib-tool: Print #include directives when --import'ing.
76168
76169 2004-12-28  Simon Josefsson  <jas@extundo.com>
76170
76171         * tests/test-base64.c: Include required header files.  Remove
76172         unused variables.
76173
76174 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76175
76176         * modules/error (Depends-on): Remove gettext.
76177
76178 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76179
76180         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
76181         not needed.  This removes a dependency on the gettext module.
76182         [defined _LIBC]: Do not include <libintl.h>; not needed.
76183
76184 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76185
76186         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
76187         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
76188
76189 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
76192         HAVE_DECL_STRTOLD.
76193
76194 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76195
76196         * modules/getdate (Depends-on): Remove alloca-opt.
76197
76198 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76199
76200         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
76201
76202 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76203
76204         * lib/argp-parse.c: Include <stddef.h>.
76205         (alignof, alignto): New macros.
76206         (parser_init): Don't assume that void * is aligned sufficiently
76207         for struct option.
76208
76209         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
76210         need to extend the stack.
76211         (YYINITDEPTH): New macro, so that the initial stack isn't overly
76212         large.
76213
76214 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76215
76216         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
76217
76218 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76219
76220         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
76221         (2004-10-24) change.  Apparently this was a false alarm.
76222
76223         * modules/getdate: Depend on alloca-opt, not alloca.
76224
76225 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76226
76227         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
76228         Remove now-obsolete comment about AIX.
76229         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
76230         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
76231         (YYMAXDEPTH): New macro.
76232
76233 2004-12-18  Simon Josefsson  <jas@extundo.com>
76234
76235         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
76236
76237 2004-12-18  Bruno Haible  <bruno@clisp.org>
76238
76239         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
76240
76241 2004-12-18  Bruno Haible  <bruno@clisp.org>
76242
76243         * lib/fatal-signal.c (fatal_signals): Make non-const.
76244         (init_fatal_signals): New function.
76245         (uninstall_handlers, install_handlers): Ignore signals that were set to
76246         SIG_IGN.
76247         (at_fatal_signal): Call init_fatal_signals.
76248         (init_fatal_signal_set): Likewise. Ignore signals that were set to
76249         SIG_IGN.
76250         Reported by Paul Eggert.
76251
76252 2004-12-18  Bruno Haible  <bruno@clisp.org>
76253
76254         * doc/alloca.texi: New file.
76255         * doc/alloca-opt.texi: New file.
76256
76257 2004-12-17  Jim Meyering  <jim@meyering.net>
76258
76259         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
76260         Otherwise, install-sh could exit with improper exit status when
76261         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
76262
76263 2004-12-16  Simon Josefsson  <jas@extundo.com>
76264
76265         * tests/test-base64.c: Add license.
76266
76267 2004-12-15  Stepan Kasal  <address@hidden>
76268
76269         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
76270
76271 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
76272
76273         * modules/getcwd (Files): Add m4/d-ino.m4.
76274         Suggested by Mark D. Baushke.
76275
76276 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
76277
76278         * lib/getdate.y (textint): New member "negative".
76279         (time_zone_hhmm): New function.
76280         Expect 14 shift-reduce conflicts, not 13.
76281         (o_colon_minutes): New rule.
76282         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
76283         (yylex): Set the "negative" member of signed numbers.
76284
76285 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
76286
76287         * doc/getdate.texi (Time of day items, Time zone items):
76288         Describe new formats +00:00, UTC+00:00.
76289
76290 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76291
76292         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
76293         spurious "-l"s.  Problem reported by Stepan Kasal.
76294
76295 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
76296
76297         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
76298         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
76299
76300 2004-12-04  Simon Josefsson  <jas@extundo.com>
76301
76302         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
76303         Vandoorselaere <yoann@prelude-ids.org>.
76304
76305 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76306
76307         Changes imported from coreutils.
76308         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
76309         exist.
76310         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
76311
76312 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76313
76314         Changes imported from coreutils.
76315         * lib/hard-locale.c: Assume <locale.h> exists.
76316         Include "strdup.h".
76317         (GLIBC_VERSION): New macro.
76318         (hard_locale): Assume setlocale exists.
76319         Rewrite to avoid #ifdef.
76320         Use strdup rather than malloc + strcpy.
76321         * lib/human.c: Assume <locale.h> exists.
76322         (human_readable): Assume localeconv exists.
76323
76324 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76325
76326         * modules/hard-locale (Depends-on): Add strdup.
76327
76328 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
76329
76330         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
76331         convert T2, not T.  (Imported from libc.)
76332
76333 2004-11-30  Simon Josefsson  <jas@extundo.com>
76334
76335         * modules/restrict (License): Change to LGPL.
76336
76337 2004-11-30  Simon Josefsson  <jas@extundo.com>
76338
76339         * m4/restrict.m4: Add copyright and copying conditions.
76340
76341 2004-11-30  Simon Josefsson  <jas@extundo.com>
76342
76343         * m4/base64.m4: New file.
76344
76345 2004-11-30  Simon Josefsson  <jas@extundo.com>
76346
76347         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
76348         base64.
76349
76350         * tests/test-base64.c: New file.
76351
76352         * modules/base64: New file.
76353
76354 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
76355
76356         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
76357         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
76358
76359         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
76360
76361 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
76362
76363         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
76364         (__getcwd.c): Don't restore errno; glibc doesn't.
76365         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
76366         first, falling back to our code only if its results look suspicious.
76367         Ensure that the resulting buffer is only as large as necessary.
76368
76369         * lib/readutmp.c: Include readutmp.h first.
76370         Include <errno.h>, since readutmp.h no longer does that.
76371         * lib/readutmp.h: Don't include <errno.h>,
76372         <sys/param.h>, <time.h>; not needed to establish interface.
76373         (errno): Remove decl.
76374         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
76375         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
76376         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
76377
76378 2004-11-28  Simon Josefsson  <jas@extundo.com>
76379
76380         * lib/base64.h, base64.c: New file.
76381
76382 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76383
76384         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
76385
76386 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76387
76388         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
76389         (Depends-on): Remove pathmax, same.  Add mempcpy.
76390         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
76391         (Makefile.am): Append getcwd.h to lib_SOURCES.
76392         (Include): Add getcwd.h.
76393         (Maintainer): Change from Jim Meyering to "all, glibc",
76394         since getdate now uses intended-for-glibc code.
76395         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
76396         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
76397
76398 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76399
76400         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
76401         HP's ANSI C compiler.
76402         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
76403         Declaring int functions causes warnings on some modern systems and
76404         shouldn't be needed to compile on ancient ones.
76405         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
76406         defined.
76407
76408         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
76409         with the following changes.
76410         (__set_errno): Parenthesize properly.
76411         Include <stdbool.h>.
76412         (MIN, MAX, MATCHING_INO): New macros.
76413         (__getcwd): Define with prototype, not K&R form.
76414         Use heuristics to allocate default buffer on stack if possible.
76415         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
76416         behavior, and to avoid the PATH_MAX limit when computing
76417         ../../../../...
76418         Use MATCHING_INO to compare inode number to file.
76419         Check for arithmetic overflow in size calculations.
76420         Fix bug in reallocation of dot array that caused getcwd to fail
76421         on directories nested deeper than 75.
76422         Be more careful about saving errno on error.
76423         Do not use realloc; use only free+malloc, as this is a bit
76424         more flexible and avoids a needless copy operation.
76425         Do not inspect st_dev and st_ino for symbolic links; POSIX
76426         doesn't specify the latter.
76427         Check for closedir errors.
76428         Avoid needless casts.
76429         Use "#ifdef weak_alias" around weak_alias, to be like other
76430         glibc code.
76431         The following changes to getcwd.c have effect only when used in
76432         gnulib; they have no effect inside glibc proper.
76433         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
76434         as alloca isn't used.
76435         (alloca, __alloca): Likewise.
76436         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
76437         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76438         unconditionally, as gnulib assumes C89 or better.
76439         Do not include <sys/param.h>.
76440         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
76441         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
76442         better.
76443         (NULL) [!defined NULL]: Remove; we assume C89 or better.
76444         Include <dirent.h> in a way that is compatible with modern Autoconf.
76445         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
76446         New macros, if not already defined.
76447         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
76448         Use "_LIBC", not "defined _LIBC", for consistency.
76449         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
76450         a mempcpy module.
76451         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
76452         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
76453         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
76454         credit only to Jim Meyering and adjust the copyright dates.
76455         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
76456         <stdlib.h>, <unistd.h>, "pathmax.h".
76457         Instead, include "xgetcwd.h" (first) and "getcwd.h".
76458         (INITIAL_BUFFER_SIZE): Remove.
76459         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
76460
76461 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76462
76463         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
76464         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
76465         Use the _ONCE methods, for efficiency.
76466         Check for fcntl.h.  In test program, include <errno.h>
76467         and <fcntl.h> if available.  Remove old K&R cruft from
76468         test program.  Check for common errors in GNU/Linux,
76469         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
76470         don't do AC_LIBOBJ, as that's getcwd.m4's job.
76471         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
76472         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
76473         name accordingly.
76474         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
76475         accommodate new getcwd.c.
76476         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
76477         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
76478         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
76479         that's all we need now.
76480
76481 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76482
76483         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
76484         argp-parse.c depends on getopt internals, that means we should
76485         always use our getopt, to be on the safe side.
76486         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
76487         order not to spoil the result of an eventual previous invocation
76488         of gl_GETOPT_SUBSTITUTE.
76489
76490 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76491
76492         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
76493         redefinition warnings. To avoid them, include the defines
76494         in `#if !defined __need_getopt ... #endif'. The only place
76495         where __getopt_argv_const is used is in definitions
76496         of getopt_long and getopt_long_only below, which are as well
76497         protected by `#ifndef __need_getopt'.
76498         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
76499         __need_getopt after including <stdio.h> and <unistd.h> These
76500         headers might have defined it.
76501
76502 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76503
76504         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
76505
76506 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76507
76508         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
76509         (futimens): New function, which uses futimes if available.
76510         (futimens, utimens): Support timespec==NULL, with same semantics
76511         as utime and utimens.
76512         * lib/utimens.h (futimens): New decl.
76513
76514 2004-11-23  Jim Meyering  <jim@meyering.net>
76515
76516         * lib/getopt_.h: Remove trailing blanks.
76517
76518 2004-11-23  Jim Meyering  <jim@meyering.net>
76519
76520         * lib/__fpending.c: Add comment.
76521
76522 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
76523
76524         * modules/canonicalize (Depends-on): Add xreadlink.
76525         Problem reported by James Youngman.
76526
76527 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
76530         New macros.
76531         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
76532         optopt): Use them instead of invoking ## directly; otherwise, the
76533         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
76534
76535 2004-11-19  Bruno Haible  <bruno@clisp.org>
76536
76537         * lib/strtok_r.c: Move comments from here...
76538         * lib/strtok_r.h: ... to here.
76539
76540 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76541
76542         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
76543         implementations that mishandle size_t overflow.
76544
76545 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76546
76547         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
76548         might fail.  Problem reported by Yoann Vandoorselaere.
76549         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
76550         implementations that mishandle size_t overflow.
76551
76552 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76553
76554         * modules/canon-host (Depends-on): Add strdup.
76555
76556 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76557
76558         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
76559
76560 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76561
76562         * lib/canon-host.c: Include "strdup.h".
76563         (canon_host): Use getaddrinfo if available, so that IPv6 works.
76564         Use strdup instead of malloc/strcpy to duplicate strings.
76565
76566         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
76567         (human_space_before_unit): New constant.
76568         * lib/human.c (human_readable): Support it.
76569
76570         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
76571         (xgetcwd): Set errno correctly when failing.
76572         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
76573         the failure is actually due to a PATH_MAX problem.
76574
76575         Further getopt changes to make it more likely that glibc will
76576         buy the changes back.
76577         * lib/getopt.c (POSIXLY_CORRECT): New constant.
76578         (getopt): Use it, so to preserve glibc semantic
76579         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
76580         when compiling for libc.
76581         * lib/getopt_.h (__getopt_argv_const): Bring it back.
76582         (getopt_long, getopt_long_only): Use it.
76583
76584         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76585         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
76586         (getopt): Argv is now char * const *, as per standard.
76587         (_getopt_internal_r, _getopt_internal): Argv is now char **,
76588         not char *__getopt_argv_const *.
76589         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76590         _getopt_long_only_r): Likewise.
76591         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
76592         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76593         _getopt_long_r, _getopt_long_only_r): Likewise.
76594         * lib/getopt_.h (__getopt_argv_const): Remove.
76595         (getopt): Argv is now char * const *, as per standard.
76596
76597         * lib/getdate.y (tORDINAL): New token.
76598         (day, relunit): Allow it for relative times.
76599         (relative_time_table): Use tORDINAL for ordinals.
76600
76601 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76602
76603         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
76604         Document that "second" isn't allowed as an ordinal number.
76605
76606 2004-11-16  Jim Meyering  <jim@meyering.net>
76607
76608         * modules/closeout (Depends-on): Add fpending.
76609
76610 2004-11-15  Jim Meyering  <jim@meyering.net>
76611
76612         * lib/closeout.c: Include "__fpending.h" once again.
76613         Include <stdbool.h>.
76614         (close_stdout): Don't fail just because stdout was closed initially,
76615         since some programs don't write to stdout in the normal course of
76616         operation (other than --version and --help), and we don't want this
76617         function to make e.g. `touch file >&-' fail.
76618         But do fail if it was closed and someone has tried to write to it.
76619         E.g., `printf foo >&-' must fail.
76620
76621 2004-11-13  Jim Meyering  <jim@meyering.net>
76622
76623         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
76624
76625 2004-11-12  Simon Josefsson  <jas@extundo.com>
76626
76627         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
76628         small doc fix is still pending.
76629
76630 2004-11-11  Simon Josefsson  <jas@extundo.com>
76631
76632         * modules/strtok_r: New file.
76633
76634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76635         strtok_r.
76636
76637 2004-11-11  Simon Josefsson  <jas@extundo.com>
76638
76639         * m4/strtok_r.m4: New file.
76640
76641         * m4/getopt.m4: Replace opterr.
76642
76643 2004-11-11  Simon Josefsson  <jas@extundo.com>
76644
76645         * lib/strtok_r.h, strtok_r.c: New file.
76646
76647 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76648
76649         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
76650         of replacing opterr, getopt, etc.  This should handle the
76651         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
76652
76653 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76654
76655         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
76656         we can stop lying to compilers about the constness of argv when we
76657         are compiled outside glibc.
76658         (getopt, getopt_long, getopt_long_only): Use it.
76659         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76660         _getopt_internal, getopt): Likewise.
76661         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76662         _getopt_long_only_r): Likewise.
76663         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76664         _getopt_long_r, _getopt_long_only_r): Likewise.
76665
76666         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
76667         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
76668         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
76669         the other external symbols.
76670         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
76671         declaration, since the above renaming now works around collisions.
76672
76673 2004-11-11  Jim Meyering  <jim@meyering.net>
76674
76675         * lib/linebreak.c: Remove trailing blanks.
76676         * lib/alloca_.h: Likewise.
76677         * lib/acosl.c: Likewise.
76678         * lib/euidaccess.c: Likewise.
76679         * lib/allocsa.h: Likewise.
76680
76681 2004-11-10  Simon Josefsson  <jas@extundo.com>
76682
76683         * m4/getaddrinfo.m4: New file.
76684
76685 2004-11-10  Simon Josefsson  <jas@extundo.com>
76686
76687         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
76688
76689 2004-11-10  Simon Josefsson  <jas@extundo.com>
76690
76691         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76692         getaddrinfo.
76693
76694         * modules/getaddrinfo: New file.
76695
76696 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76697
76698         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
76699
76700 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76701
76702         * lib/mktime.c (SHR): New macro, which is a portable
76703         substitute for >> that should work even on Crays.
76704         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
76705         Problem reported by Mark D. Baushke in
76706         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
76707         * lib/getdate.y (SHR): Likewise.
76708         (tm_diff): Use it.
76709         * lib/strftime.c (SHR): Likewise.
76710         (tm_diff): Use it.
76711         * lib/quotearg.c (struct quoting_options): Use unsigned int for
76712         quote_these_too, so that right shifts are well defined.  All uses
76713         changed.
76714
76715 2004-11-10  Jim Meyering  <jim@meyering.net>
76716
76717         Ensure that no close failure goes unreported.
76718         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
76719         return early when it seems there's nothing to flush.
76720         Don't include __fpending.h.
76721
76722 2004-11-10  Jim Meyering  <jim@meyering.net>
76723
76724         * modules/closeout (Depends-on): Remove fpending.
76725
76726 2004-11-10  Jim Meyering  <jim@meyering.net>
76727
76728         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
76729
76730 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76731
76732         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
76733         gl_FUNC_STRFTIME.
76734         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
76735         and AC_REQUIRE when possible, to avoid duplicate checks.
76736         Check for <wchar.h>.
76737
76738 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76739
76740         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
76741
76742 2004-11-09  Bruno Haible  <bruno@clisp.org>
76743
76744         * m4/sockpfaf.m4: New file.
76745
76746 2004-11-05  Bruno Haible  <bruno@clisp.org>
76747
76748         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
76749         Reported by Mark D. Baushke <mdb@cvshome.org>.
76750
76751 2004-11-04  Bruno Haible  <bruno@clisp.org>
76752
76753         2004-09-11  Bruno Haible  <bruno@clisp.org>
76754                 * allocsa.valgrind: New file.
76755         2004-02-06  Bruno Haible  <bruno@clisp.org>
76756                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
76757                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
76758                 Reported by Christopher Seip <chris.seip@hp.com>.
76759
76760 2004-11-04  Bruno Haible  <bruno@clisp.org>
76761
76762         * modules/allocsa (Files): Add lib/allocsa.valgrind.
76763         (Makefile.am): Distribute it.
76764
76765 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76766
76767         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
76768         with errno == ERANGE if the buffer is too small.
76769         Problem reported by Mark D. Baushke.
76770
76771 2004-11-03  Albert Chin  <china@thewrittenword.com>
76772             Paul Eggert  <eggert@cs.ucla.edu>
76773
76774         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
76775         equivalent, substitute $ac_type for equivalent type rather than
76776         blindly using uint32_t *always* which won't work if uint32_t is not
76777         available.  Define _UINT32_T to work around typedef of uint32_t if
76778         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
76779         2.5.1.
76780
76781 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76782
76783         * m4/jm-macros.m4: Sync from coreutils.
76784         (gl_MACROS): Check for mbrlen, for pathchk.
76785         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
76786
76787 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76788
76789         * lib/xreadlink.c (MAXSIZE): New macro.
76790         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
76791         size does not exceed MAXSIZE.  Avoid cast.
76792         As suggested by Mark D. Baushke in
76793         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
76794         if readlink fails with buffer size just under MAXSIZE, try again
76795         with MAXSIZE.
76796
76797 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76798
76799         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
76800
76801 2004-11-02  Derek R. Price  <derek@ximbiot.com>
76802         and  Paul Eggert  <eggert@cs.ucla.edu>
76803
76804         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
76805         (get_date): Overparenthesize to avoid GCC warning.
76806
76807 2004-11-02  Bruno Haible  <bruno@clisp.org>
76808
76809         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
76810         returns void.
76811
76812 2004-11-02  Bruno Haible  <bruno@clisp.org>
76813
76814         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
76815         function returns void.
76816
76817 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76818
76819         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
76820         fflush_unlocked, flockfile, funlockfile, funlockfile,
76821         fputs_unlocked, putc_unlocked.
76822
76823 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76824
76825         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76826         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
76827         already declared.
76828
76829 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76830
76831         * modules/getdate (Files): Add doc/getdate.texi.
76832         (Depends-on): Add setenv, xalloc.
76833
76834 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76835
76836         * lib/getdate.y: Add support for TZ="foo" within a date string.
76837         Fix some bugs near time_t boundaries.  Reject dates with
76838         out-of-range components, e.g., "Sept 31".
76839         Include <stdlib.h>, "setenv.h", "xalloc.h".
76840         (ISDIGIT_LOCALE): Remove; unused.
76841         Note that the TZ and time functions used here are not reentrant.
76842         (mktime_ok, get_tz): New functions.
76843         (TZBUFSIZE): New constant.
76844         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
76845         This requires that we sometimes generate our own TZ="XXX..." setting.
76846
76847 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76848
76849         * doc/getdate.texi: New file, from coreutils with modifications for
76850         the new TZ parsing.
76851
76852 2004-10-27  Derek R. Price  <derek@ximbiot.com>
76853
76854         * lib/mktime.c (not_equal_tm): Remove redundant check.
76855
76856 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76857
76858         * modules/regex (lib_SOURCES): Add regex.c.
76859         Reported by James Youngman in
76860         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
76861
76862 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76863
76864         * lib/getdate.y: Use Bison 1.875 features, and some minor
76865         code cleanups.  This change does not affect semantics.
76866         Don't include <stdlib.h>; no longer needed.
76867         Don't include unlocked-io.h; only the "#if TEST" code uses
76868         stdio, and performance isn't crucial there.
76869         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
76870         Bison 1.875 features as described below.
76871         All uses of "PC." replaced by "pc->".
76872         (YYSTYPE): Add a forward declaration.
76873         (yylex, yyerror): Use full prototypes in forward decls.
76874         Use "%pure-parser" rather than obsolescent "%pure_parser".
76875         Use %parse-param and %lex-param instead of obsolescent
76876         YYPARSE_PARAM and YYLEX_PARAM.
76877         (meridian_table, month_and_day_table, time_units_table,
76878         relative_time_table, time_zone_table, military_table,
76879         lookup_zone, lookup_word, get_date):
76880         Use NULL instead of 0 where appropriate.
76881         (to_hour): Avoid abort (), to avoid a dependency on
76882         stdlib.h.
76883         (yyerror, yylex): Now accepts parser_control * arg.
76884         (main) [TEST]: Use '\0' rather than 0 for char.
76885
76886 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76887
76888         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
76889
76890 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76891
76892         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
76893         It's now the caller's responsibility to handle the case where
76894         !HAVE_GETPAGESIZE && !defined getpagesize.
76895
76896         * lib/mktime.c (leapyear): Arg is long int, not int.
76897
76898 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
76899
76900         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
76901
76902 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76903
76904         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
76905         missing.  Problem reported by James Youngman.
76906
76907 2004-10-16  Simon Josefsson  <jas@extundo.com>
76908
76909         * gnulib-tool: Fix comments.  Fix parse problem.
76910         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
76911
76912 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
76913
76914         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
76915         implementation of getopt_long.  Problem reported by Alexander Taler in:
76916         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
76917
76918 2004-10-15  Bruno Haible  <bruno@clisp.org>
76919
76920         * gnulib-tool: Untabify. Initialize supplied_libname.
76921         (func_usage): More homogenous output.
76922         (func_modules_transitive_closure, func_modules_to_filelist,
76923         func_emit_lib_Makefile_am): New functions.
76924         (func_import): New function, extracted from big case statement. Use
76925         func_get_license, func_modules_transitive_closure,
76926         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
76927         opt_lgpl. Don't use test -a, as it's not portable.
76928         (func_create_testdir): Use func_modules_transitive_closure,
76929         func_modules_to_filelist, func_emit_lib_Makefile_am.
76930
76931 2004-10-15  Bruno Haible  <bruno@clisp.org>
76932
76933         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
76934
76935 2004-10-15  Bruno Haible  <bruno@clisp.org>
76936
76937         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
76938         the portions belonging to each module.
76939         Suggested by Derek Robert Price <derek@ximbiot.com>.
76940
76941 2004-10-12  Simon Josefsson  <jas@extundo.com>
76942
76943         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76944         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
76945         to real functions.
76946
76947 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76948
76949         * modules/vsnprintf: New file.
76950
76951 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76952
76953         * m4/vsnprintf.m4: New file.
76954
76955 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76956
76957         * lib/vsnprintf.h: New file.
76958         * lib/vsnprintf.c: New file.
76959
76960 2004-10-11  Bruno Haible  <bruno@clisp.org>
76961
76962         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
76963         vsnprintf.
76964
76965 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76966
76967         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
76968
76969 2004-10-07  Bruno Haible  <bruno@clisp.org>
76970
76971         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
76972         fits into the provided buffer.
76973
76974 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76975
76976         * lib/diacrit.c, diacrit.h: Add GPL notice.
76977
76978         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76979         notice.
76980         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76981         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76982         This avoids a potential constant-folding bug.
76983
76984 2004-10-05  Bruno Haible  <bruno@clisp.org>
76985
76986         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76987         for the declaration of strsep.
76988
76989 2004-10-05  Bruno Haible  <bruno@clisp.org>
76990
76991         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76992
76993 2004-10-04  Simon Josefsson  <jas@extundo.com>
76994
76995         * modules/memmem: New file.
76996         * tests/test-memmem.c: New file.
76997         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76998
76999 2004-10-04  Simon Josefsson  <jas@extundo.com>
77000
77001         * m4/memmem.m4: New file.
77002
77003 2004-10-04  Simon Josefsson  <jas@extundo.com>
77004
77005         * lib/memmem.h: New file.
77006         * lib/memmem.c: New file, taken from glibc.
77007
77008 2004-10-04  Simon Josefsson  <jas@extundo.com>
77009
77010         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
77011         '#ifdef USE_UNLOCKED_IO'.
77012
77013 2004-10-04  Simon Josefsson  <jas@extundo.com>
77014
77015         * config/srclist.txt: Add memmem from glibc.
77016
77017 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77018
77019         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
77020
77021         * modules/argmatch, modules/argp, modules/closeout, modules/error,
77022         modules/exclude, modules/getdate, modules/getline,
77023         modules/getndelim2, modules/getpass, modules/getpass-gnu,
77024         modules/getusershell, modules/linebuffer, modules/md5,
77025         modules/mountlist, modules/posixtm, modules/readtokens,
77026         modules/readutmp, modules/regex, modules/sha1,
77027         modules/version-etc, modules/yesno:
77028         Remove dependency on unlocked-io.
77029
77030 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
77033
77034         * m4/unlocked-io.m4: Add copyright notice.
77035         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
77036
77037 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77038
77039         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
77040         * lib/xmalloc.c (xmemdup): Likewise.
77041         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
77042         XFREE): Remove these long-obsolescent macros.
77043         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
77044         * lib/xstrdup.c: Remove.
77045
77046         * lib/regex.c (re_comp): Cast gettext return value to char *,
77047         Problem reported by Martin Neitzel via Mark D. Baushke.
77048
77049 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77050
77051         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
77052         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
77053         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
77054         regex.c, sha1.c, version-etc.c, yesno.c:
77055         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
77056         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
77057         the includer's responsibility.
77058
77059         Sync from coreutils.
77060
77061         * lib/modechange.c (mode_compile): Don't decrement a pointer that
77062         points to the start of a string, as the C Standard says the
77063         resulting behavior is undefined.
77064
77065         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
77066         simple -> simple_backups, numbered_existing ->
77067         numbered_existing_backups, numbered -> numbered_backups
77068         to avoid shadowing problems.  All uses changed.
77069         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
77070         * lib/backupfile.c (check_extension, numbered_backup):
77071         Rename locals to avoid shadowing 'basename'.
77072         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
77073         once.
77074
77075         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
77076         * lib/.cvsignore: Add getopt.h.
77077
77078 2004-10-04  Bruno Haible  <bruno@clisp.org>
77079
77080         * modules/README: New file.
77081         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
77082         not a module.
77083
77084 2004-10-02  Jim Meyering  <jim@meyering.net>
77085
77086         * lib/dirfd.h, getpagesize.h: Add copyright notice.
77087
77088 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77089
77090         * modules/strsep: New file.
77091
77092 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77093
77094         * m4/strsep.m4: New file.
77095
77096 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77097
77098         * lib/strsep.h: New file.
77099         * lib/strsep.c: New file.
77100
77101 2004-10-01  Simon Josefsson  <jas@extundo.com>
77102
77103         * lib/snprintf.c (snprintf): Handle size==0.
77104
77105 2004-10-01  Simon Josefsson  <jas@extundo.com>
77106             Bruno Haible  <bruno@clisp.org>
77107
77108         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
77109         (snprintf): Declare 'args'.
77110
77111 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
77112
77113         * lib/snprintf.c: Remove comments as to why each header is needed.
77114
77115 2004-10-01  Bruno Haible  <bruno@clisp.org>
77116
77117         * MODULES.html.sh: Add strsep.
77118
77119 2004-09-30  Simon Josefsson  <jas@extundo.com>
77120
77121         * modules/snprintf: New file.
77122
77123 2004-09-30  Simon Josefsson  <jas@extundo.com>
77124
77125         * m4/snprintf.m4: New file.
77126
77127 2004-09-30  Simon Josefsson  <jas@extundo.com>
77128
77129         * lib/snprintf.h, lib/snprintf.c: New files.
77130
77131 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77132
77133         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
77134         (hol_entry_help): Never translate an empty string.
77135         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
77136         * lib/argp.h (OPTION_NO_TRANS): New option.
77137
77138 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77139
77140         * modules/argp (Maintainer): Replace Simon Josefsson
77141         by Sergey Poznyakoff.
77142
77143 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77144
77145         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
77146         changes merged back into glibc.
77147
77148 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77149
77150         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
77151
77152 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77153
77154         * lib/xvasprintf.c: Include xalloc.h.
77155         (xvasprintf): Use xalloc_die, not xmalloc_die.
77156
77157 2004-09-29  Bruno Haible  <bruno@clisp.org>
77158
77159         * modules/alloca-opt: New file, derived from modules/alloca.
77160         * modules/allocsa: Depend on alloca-opt instead of alloca.
77161         * modules/setenv: Likewise.
77162         * modules/vasnprintf: Likewise.
77163         * MODULES.html.sh: Add alloca-opt.
77164
77165 2004-09-28  Simon Josefsson  <jas@extundo.com>
77166
77167         * gnulib-tool: New parameter --lgpl, to asseert that modules are
77168         LGPL, and to replace license template from GPL to LGPL.
77169
77170 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
77171
77172         * modules/dummy: Change license to LGPL.
77173
77174 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
77175
77176         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
77177
77178 2004-09-24  Simon Josefsson  <jas@extundo.com>
77179
77180         * modules/minmax (License): Change from GPL to LGPL.
77181
77182 2004-09-23  Simon Josefsson  <jas@extundo.com>
77183
77184         * gnulib-tool (--import): Typo.
77185
77186 2004-09-23  Simon Josefsson  <jas@extundo.com>
77187
77188         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
77189
77190 2004-09-22  Bruno Haible  <bruno@clisp.org>
77191
77192         * modules/*: Add 'License' field.
77193         * gnulib-tool: Accept --extract-license option.
77194         (func_get_license): New function.
77195
77196 2004-09-21  Bruno Haible  <bruno@clisp.org>
77197
77198         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
77199         Reported by Simon Josefsson.
77200
77201 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77202
77203         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
77204         gl_AC_TYPE_LONG_LONG.
77205
77206 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77207
77208         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
77209
77210 2004-09-18  Simon Josefsson  <jas@extundo.com>
77211         and  Paul Eggert  <eggert@cs.ucla.edu>
77212
77213         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
77214         calls with autoreconf.  Define GL_LIB.
77215
77216 2004-09-14  Karl Berry  <karl@gnu.org>
77217
77218         * config/srclist.txt: unsync setenv.c, sigh.
77219
77220 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77221
77222         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
77223         Problem reported by Bruno Haible in:
77224         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
77225
77226 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77227
77228         * config/srclist.txt: Comment out argp-pvh.c.
77229
77230 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
77231
77232         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
77233         in case some system header has #define'd it.  Problem reported by
77234         Soeren D. Schulze in
77235         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
77236
77237 2004-09-09  Karl Berry  <karl@gnu.org>
77238
77239         * regex.[ch]: delete from the root.  These were supposed to be
77240                 synced with emacs cvs, but this has not happened for about
77241                 a year, and anyway nothing else uses emacs regex.[ch].
77242                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
77243                 lib/regex[.ch] is untouched.
77244
77245 2004-09-09  Bruno Haible  <bruno@clisp.org>
77246
77247         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
77248
77249 2004-09-09  Bruno Haible  <bruno@clisp.org>
77250
77251         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
77252         modifications.
77253         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
77254
77255 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77256
77257         * modules/xvasprintf: New file.
77258         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
77259
77260 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77261
77262         * lib/xvasprintf.h: New file.
77263         * lib/xvasprintf.c: New file.
77264         * lib/xasprintf.c: New file.
77265
77266 2004-09-08  Bruno Haible  <bruno@clisp.org>
77267
77268         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
77269
77270 2004-09-08  Bruno Haible  <bruno@clisp.org>
77271
77272         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
77273         length is > INT_MAX.
77274         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
77275         more.
77276
77277 2004-09-08  Bruno Haible  <bruno@clisp.org>
77278
77279         * lib/stdint_.h: New file, taken from GNU clisp.
77280
77281 2004-09-08  Bruno Haible  <bruno@clisp.org>
77282             Oskar Liljeblad  <oskar@osk.mine.nu>
77283
77284         * modules/stdint: New file.
77285         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
77286
77287 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77288
77289         Import from coreutils.
77290         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
77291         strings on unbounded length.  alloca's performance benefits aren't
77292         that important here.
77293         (V_STRDUP): Remove.
77294         (parse_with_separator): New function, with most of the internals
77295         of the old parse_user_spec.  Allow user to omit both user and group,
77296         for compatibility with FreeBSD.
77297         Clone only the user name, not the entire spec.
77298         Do not set *uid, *gid unless entirely successful.
77299         Avoid memory leak in some failing cases.
77300         Fix regression for USER.GROUP reported by Dmitry V. Levin in
77301         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
77302         (parse_user_spec): Rewrite to use parse_with_separator.
77303
77304 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77305
77306         * modules/userspec: Don't depend on alloca.
77307
77308 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77309
77310         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
77311
77312 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77313
77314         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
77315         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
77316         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
77317
77318 2004-08-16  Simon Josefsson  <jas@extundo.com>
77319
77320         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
77321         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
77322         Add --dry-run for --import.
77323         Let user provided command line parameters override configure.ac
77324         settings.
77325
77326 2004-08-12  Simon Josefsson  <jas@extundo.com>
77327
77328         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
77329         as discussed with Paul Eggert in threads rooted at
77330         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
77331         and
77332         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
77333         Before, the test was empty, and relied on ELIDE_CODE in source
77334         code.)
77335         (gl_PREREQ_GETOPT): New macro.
77336         (gl_GETOPT): Use them.
77337
77338 2004-08-12  Simon Josefsson  <jas@extundo.com>
77339
77340         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
77341         * lib/getopt_.h: Renamed from getopt.h.
77342
77343 2004-08-12  Simon Josefsson  <jas@extundo.com>
77344
77345         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
77346         Change default library name from libfoo to libgnu.
77347         Now, if you have a configure.ac that says:
77348                 gl_SOURCE_BASE(gl)
77349                 gl_M4_BASE(gl/m4)
77350                 gl_MODULES(error getopt etcetera)
77351                 gl_INIT
77352         you can import all you need by running:
77353                 ../gnulib/gnulib-tool --import
77354
77355         * modules/getopt (Files): Rename getopt.h to getopt_.h.
77356         (Makefile.am): Rewrite, use logic from argz.
77357         (Include): Use <getopt.h> instead of "getopt.h".
77358
77359 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77360
77361         * modules/argp (Files): Add m4/unlocked-io.m4.
77362         (Depends-on): Add extensions.
77363
77364 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77365
77366         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
77367         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
77368         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
77369         Check for program_invocation_name, program_invocation_short_name,
77370         flockfile, funlockfile, features.h, _getopt_long_only_r.
77371
77372 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77373
77374         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
77375         its complicated substitute.
77376         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
77377         and program_invocation_name.
77378         (__argp_basename) [!_LIBC]: Remove; the only use was
77379         replaced by its body.
77380         (__argp_short_program_name): Change condition from
77381         !defined __argp_short_program_name to
77382         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
77383         to match argp-namefrob.h.
77384         (__argp_failure): Don't assume strerror_r returns char *.
77385         * lib/argp-parse.c (N_): Define unconditionally.
77386         (argp_default_options): Fill out initializers with 0 to avoid
77387         gcc warnings.
77388
77389 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77390
77391         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
77392         getopt1.c.
77393
77394 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77395
77396         Merge from coreutils.
77397
77398         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
77399
77400         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
77401         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
77402
77403 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77404
77405         Merge from coreutils.
77406
77407         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
77408         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
77409         for Reliant Unix 5.43.
77410
77411         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
77412         (union fooround): Use uintmax_t, not long int.
77413         The rest is a merge from libc:
77414         [defined _LIBC]: Include <shlib-compat.h>.
77415         (_obstack) [defined _LIBC]: Remove after 2.3.4.
77416
77417         * lib/settime.c (settime): Recode to avoid warning with
77418         Sun Forte C 6U2.
77419
77420         * lib/strverscmp.c: Convert to UTF-8.
77421
77422 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77423
77424         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77425         m4/uintmax_t.m4.
77426
77427 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77428
77429         * modules/xalloc-die: New file.
77430         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
77431
77432         * modules/md5 (Files): Add m4/uint32_t.m4.
77433         * modules/sha1: Renamed from modules/sha.
77434         (Files):
77435         Rename lib/sha.h to lib/sha1.h.
77436         Rename lib/sha.c to lib/sha1.c.
77437         Rename m4/sha.m4 to m4/sha1.m4.
77438         (lib_SOURCES): Likewise.
77439         (configure.ac): Rename gl_SHA to gl_SHA1.
77440         (Include): sha.h -> sha1.h.
77441
77442 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77443
77444         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
77445         * m4/sha1.m4: Renamed from sha.m4.
77446         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
77447
77448 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77449
77450         * lib/obstack.h (obstack_empty_p):
77451         Don't assume that chunk->contents is suitably aligned.
77452         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
77453         Likewise. Problem reported by Benno in
77454         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
77455
77456         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
77457         readable.  This could be improved further but it'd take some work.
77458
77459 2004-08-08  Simon Josefsson  <jas@extundo.com>
77460
77461         * modules/xgethostname (Depends-on): Remove exit and error (not
77462         used).
77463
77464         * modules/getpass-gnu: Add getpass.h.
77465         (Depends-on): Add stdbool.
77466         * modules/getpass: Add getpass.h.
77467
77468 2004-08-08  Simon Josefsson  <jas@extundo.com>
77469
77470         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
77471         Check getpass declaration.
77472
77473 2004-08-08  Simon Josefsson  <jas@extundo.com>
77474
77475         * lib/xgethostname.c: Don't include error.h (not used).
77476
77477         * lib/getpass.h: Add.
77478         * lib/getpass.c: Include getpass.h first.
77479
77480 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
77481
77482         * lib/xalloc-die.c: New file.
77483         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
77484         All uses removed.
77485         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
77486         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
77487         xalloc-die.c.
77488         (_, N_, xalloc_die): Move to xalloc-die.c.
77489         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
77490         so that we needn't mess with xalloc_msg_memory_exhausted.
77491
77492         * lib/sha1.h: Renamed from sha.h.
77493         (SHA1_H): Renamed from _SHA_H.
77494         (sha1_ctx): Renamed from sha_ctx.
77495         (sha1_init_ctx): Renamed from sha_init_ctx.
77496         (sha1_process_block): Renamed from sha_process_block.
77497         (sha1_process_bytes): Renamed from sha_process_bytes.
77498         (sha1_finish_ctx): Renamed from sha_finish_ctx.
77499         (sha1_read_ctx): Renamed from sha_read_ctx.
77500         (sha1_stream): Renamed from sha_stream.
77501         (sha1_buffer): Renamed from sha_buffer.
77502         * lib/sha1.c: Likewise; renamed from sha.c.
77503         Do not include <sys/types.h>.
77504         Include <stddef.h> rather than <stdlib.h>.
77505
77506 2004-08-08  Bruno Haible  <bruno@clisp.org>
77507
77508         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
77509         FILESYSTEM_PREFIX_LEN.
77510         * lib/progreloc.c: Likewise.
77511         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
77512
77513 2004-08-06  Simon Josefsson  <jas@extundo.com>
77514
77515         * modules/progname (Depends-on): Don't depend on stdbool.
77516
77517 2004-08-06  Simon Josefsson  <jas@extundo.com>
77518
77519         * modules/getsubopt: New file.
77520         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77521         getsubopt.
77522
77523 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77524
77525         More merge from coreutils.
77526
77527         * m4/utimens.m4, m4/utimecmp.m4: New files.
77528         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
77529         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
77530         prereq.m4, sha.m4: Import changes from coreutils.
77531
77532 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77533
77534         More merge from coreutils.
77535         * modules/raise, modules/readtokens0, modules/utimens:
77536         * modules/utimecmp, module/xnanosleep: New files.
77537         * modules/strftime: Add lib/strftime.h.
77538         Change include from <time.h> to "strftime.h".
77539         * modules/yesno: Add lib/yesno.h.
77540         * modules/backupfile: Remove lib/addext.c.
77541         * modules/euidaccess: Add stat-macros.h.
77542         * modules/canonicalize, modules/euidaccess,
77543         modules/filemode, modules/lchown, modules/makepath,
77544         modules/rmdir, modules/stat: Likewise.
77545
77546 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77547
77548         Merge from tar.
77549         * lib/argp-help.c (make_hol, hol_append): Don't assume that
77550         SIZE_MAX is a valid preprocessor constant.
77551         (__argp_basename): Change from "#ifndef _LIBC"
77552         to "#ifndef __argp_short_program_name", so that
77553         we don't compile these functions for tar.
77554
77555         More merges from coreutils.
77556         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
77557         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
77558         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
77559         * lib/addext.c: Remove; no longer needed.
77560         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
77561         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
77562         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
77563         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
77564         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
77565         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
77566         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
77567         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
77568         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
77569         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77570         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
77571         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
77572         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
77573         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
77574         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
77575         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
77576         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
77577         Import changes from coreutils.
77578
77579 2004-08-05  Simon Josefsson  <jas@extundo.com>
77580
77581         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
77582
77583 2004-08-05  Simon Josefsson  <jas@extundo.com>
77584
77585         * m4/getsubopt.m4: New file.
77586
77587 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77588
77589         Merge from coreutils.
77590
77591         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
77592         * m4/getcwd-path-max.m4: New files.
77593
77594         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
77595         FILESYSTEM_PREFIX_LEN ->
77596         FILE_SYSTEM_PREFIX_LEN.
77597         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
77598         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
77599         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
77600         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
77601
77602         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
77603         prerequisite modules now handle the DOS stuff.
77604         Don't check for unistd.h.
77605
77606 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77607
77608         Merge from coreutils.
77609
77610         * lib/.gdb-history: Remove; this doesn't belong here.
77611
77612         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
77613         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
77614         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
77615         * lib/getcwd.c: New files.
77616
77617         * lib/dirname.h: Include <stdbool.h>.
77618         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
77619         for consistency with POSIX terminology.  All uses changed.
77620         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
77621         (strip_trailing_slashes): Use bool for booleans.
77622         * lib/stripslash.c (strip_trailing_slashes): Likewise.
77623
77624         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
77625         sometimes returns a positive errno value even when it succeeds.
77626         (print_errno_message) [!LIBC]: Fall back on strerror if
77627         __strerror_r fails.
77628
77629         * lib/path-concat.c (mempcpy): Don't define if a system header defines
77630         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
77631         (longest_relative_suffix): New function.
77632         (path_concat): Use it.  Assume first argument is not NULL.
77633         Port to DOS.  Omit redundant separators.
77634         Report an error instead of returning NULL.
77635         Use mempcpy instead of memcpy.
77636         (xpath_concat): Remove: not declared or used.
77637
77638         * lib/same.h: Include <stdbool.h>
77639         (same_name): Return bool, not int.
77640         * lib/same.c (same_name): Likewise.
77641         (errno): Don't declare; we assume C89 or better now.
77642
77643         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
77644         if not already defined.
77645
77646         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
77647         * lib/dup-safer.c (errno): Likewise.
77648
77649 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77650
77651         Merge from coreutils.
77652         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
77653         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
77654         * modules/path-concat: Don't depend on strdup.
77655
77656 2004-08-03  Simon Josefsson  <jas@extundo.com>
77657
77658         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
77659         * lib/progname.h: Don't include stdbool.h.
77660
77661 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77662
77663         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
77664         * MODULES.html.sh (func_all_modules): Remove fatal.
77665
77666 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77667
77668         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
77669
77670 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77671
77672         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
77673         working.
77674
77675 2004-08-02  Simon Josefsson  <jas@extundo.com>
77676
77677         * lib/getsubopt.h: New file, with comments from Bruno Haible.
77678         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
77679         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
77680
77681 2004-08-01  Simon Josefsson  <jas@extundo.com>
77682
77683         * lib/xgetdomainname.c: Include stdlib.h, for free().
77684
77685 2004-07-19  Bruno Haible  <bruno@clisp.org>
77686
77687         * MODULES.html.sh (func_all_modules): Add dummy.
77688
77689 2004-07-16  Simon Josefsson  <jas@extundo.com>
77690
77691         * modules/dummy: New file.
77692
77693 2004-07-16  Simon Josefsson  <jas@extundo.com>
77694
77695         * lib/dummy.c: New file.
77696
77697 2004-07-16  Bruno Haible  <bruno@clisp.org>
77698
77699         * lib/backupfile.h: Add extern "C" for C++.
77700         * lib/closeout.h: Likewise.
77701         * lib/copy-file.h: Likewise.
77702         * lib/findprog.h: Likewise.
77703         * lib/full-write.h: Likewise.
77704         * lib/pathname.h: Likewise.
77705         * lib/progname.h: Likewise.
77706         * lib/stpcpy.h: Likewise.
77707         * lib/stpncpy.h: Likewise.
77708         * lib/strcase.h: Likewise.
77709         * lib/strstr.h: Likewise.
77710         * lib/xalloc.h: Likewise.
77711
77712         * lib/mbswidth.h: Add extern "C" for C++.
77713         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
77714
77715 2004-07-13  Robert Millan  <robertmh@gnu.org>
77716
77717         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
77718
77719 2004-07-09  Simon Josefsson  <jas@extundo.com>
77720
77721         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
77722         failed without this.)
77723
77724 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77725
77726         * modules/chown (Files): Add lib/fchown-stub.c, since
77727         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
77728
77729 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77730
77731         * lib/fchown-stub.c: New file.
77732
77733 2004-06-24  Jim Meyering  <jim@meyering.net>
77734
77735         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
77736
77737 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77738
77739         * modules/argz: Omit "#include".
77740
77741         * MODULES.html.sh (func_all_modules): Add calloc, to match
77742         2004-06-01 addition of calloc module.
77743
77744 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77745
77746         * m4/argz.m4: New file, which is autoupdated from libtool.
77747
77748 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77749
77750         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
77751         libtool.
77752
77753 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77754
77755         * config/srclist-update: Don't insist on "USA." before the
77756         close-comment, as libtool omits the period and puts the */ on a
77757         separate line.
77758         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
77759         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
77760
77761 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
77762
77763         * modules/argz: New file.
77764         * MODULES.html.sh (func_all_modules): Add argz.
77765
77766 2004-06-12  Jim Meyering  <jim@meyering.net>
77767         and  Paul Eggert  <eggert@cs.ucla.edu>
77768
77769         * modules/hash (Files): Add lib/xalloc.h.
77770         * modules/pipe (Depends-on): Add wait-process.
77771         * modules/stat (Depends-on): Add xalloc.
77772         * modules/userspec (Files): Add lib/userspec.h.
77773         * modules/xstrto
77774
77775         Upgrade from gettext-0.13.
77776         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
77777         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
77778         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
77779
77780 2004-06-10  Jim Meyering  <jim@meyering.net>
77781
77782         * lib/calloc.c: New file.
77783
77784 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
77785
77786         * lib/getdate.y (yylex): Allow space between sign and number.
77787         Problem reported by Dan Jacobson.
77788
77789 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77790
77791         Merge from coreutils CVS.
77792
77793         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
77794         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
77795         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
77796         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
77797         xstrtol.m4: Fix copyright date and/or serial number.
77798
77799         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
77800         See if we need an fchown replacement.
77801         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
77802         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
77803         and use the replacement function if we detect either defect.
77804
77805         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
77806         gl_UTIMECMP.
77807
77808 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77809         and  Jim Meyering  <jim@meyering.net>
77810
77811         Merge from coreutils CVS.
77812
77813         * lib/stat-macros.h: New file, with contents from file-type.h
77814         and coreutils' system.h.
77815         * lib/file-type.c: Include "stat-macros.h".
77816         * lib/file-type.h (file_type): Move all macro definitions to new file,
77817         stat-macros.h.
77818
77819         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
77820         Wrap old code with this conditional.
77821         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
77822         function that does not dereference symlinks.
77823         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
77824
77825         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
77826         dependency problems.
77827         (xreadlink): Accept new arg SIZE, for efficiency.
77828         All decls and uses changed.
77829         * lib/xreadlink.h: Include <stddef.h>, for size_t.
77830
77831         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
77832         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
77833
77834         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
77835         sysexits.h.
77836
77837 2004-06-01  Jim Meyering  <jim@meyering.net>
77838
77839         * m4/calloc.m4: New file.
77840
77841 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
77842
77843         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
77844         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
77845         Also, fix a typo in a diagnostic.
77846
77847 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77848
77849         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
77850         or AC_FUNC_REALLOC.
77851
77852 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77853
77854         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
77855         macros to be defined.
77856         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
77857         the allocator returns NULL because the requested size is zero.
77858
77859 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77860
77861         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
77862         var.  Add comment explaining why libc still defines it.  This
77863         merges the following patch from glibc:
77864         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
77865
77866 2004-05-20  Andreas Schwab  <schwab@suse.de>
77867
77868         * m4/free.m4: Replace free if it not known to work, not the other
77869         way round.
77870
77871 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77872
77873         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
77874         present in glibc since revision 1.1 of this file.
77875         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
77876         obstack_alignment_mask, obstack_alloc, obstack_base,
77877         obstack_blank, obstack_blank_fast, obstack_chunk_size,
77878         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
77879         obstack_grow0, obstack_init, obstack_int_grow,
77880         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
77881         obstack_next_free, obstack_object_size, obstack_ptr_grow,
77882         obstack_ptr_grow_fast, obstack_room): Remove declarations of
77883         nonexistent functions.
77884
77885 2004-05-18  Karl Berry  <karl@gnu.org>
77886
77887         * config/srclist.txt: break link for vasnprintf.c.
77888
77889 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77890
77891         Port obstack to the AS/400, where pointers are 16 bytes wide and
77892         you cannot cast an integer to a valid pointer.  This patch is
77893         currently waiting to be integrated into glibc; see
77894         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
77895
77896         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
77897         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
77898         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
77899         (struct obstack): temp member is now a union of a pointer and
77900         an integer, instead of an integer.  All integer uses changed.
77901         This does not affect the physical layout of struct obstack,
77902         except on hosts (like the AS/400) where the size or alignment of
77903         void * is greater than that of ptrdiff_t.
77904         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
77905         __STDC__)]: Store temporary in pointer member of union, not
77906         integer member.
77907         * lib/obstack.c: Include <stddef.h>, for offsetof.
77908         (struct fooalign): Remove; it doesn't need a name.
77909         (union fooround): Change double to long double, and add void *.
77910         (DEFAULT_ALIGNMENT): Use offsetof to compute.
77911         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
77912         not a macro.  Hence the values are always int; so remove all
77913         casts-to-int in uses.
77914
77915 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77916
77917         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
77918         we can get this patch merged into glibc.
77919
77920 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77921             Paul Eggert  <eggert@cs.ucla.edu>
77922
77923         * m4/argp: Depend on alloca.
77924
77925 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77926             Paul Eggert  <eggert@cs.ucla.edu>
77927
77928         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
77929         freecoding.
77930
77931 2004-05-17  Bruno Haible  <bruno@clisp.org>
77932
77933         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
77934         precision that consists of a '.' followed by an empty digit string.
77935         Patch by Tor Lillqvist <tml@iki.fi>.
77936
77937 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77938
77939         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
77940         for backward compatibility with older code.  We need our own
77941         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
77942         it under some other name, and our alloca.h will define it.
77943
77944 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77945             Derek Price  <derek@ximbiot.com>
77946
77947         * lib/alloca.c: Include <alloca.h>, to get our interface.
77948         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
77949         include <alloca.h> first.  Use C89 prototype for alloca; this
77950         requires including <stddef.h> for size_t.  Use extern "C" if C++.
77951         Use #elif for simplicity, since we can assume C89 now.
77952         Don't try to source the system alloca.h since it will not be found
77953         and to prevent recursively including its replacement.
77954         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
77955         * lib/regex.c: Likewise.
77956
77957 2004-05-16  Derek Price  <derek@ximbiot.com>
77958             Paul Eggert  <eggert@cs.ucla.edu>
77959
77960         getline cleanup.  This changes the getndelim2 API: both order of
77961         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
77962         no delimiter).
77963
77964         * lib/getline.c: Don't include stddef.h or stdio.h, since our
77965         interface does that.
77966         (getline): Always use getdelim, so that we don't have two
77967         copies of this code.
77968         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
77969         if available.
77970         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
77971         (GETNDELIM2_MAXIMUM): New macro.
77972         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
77973         instead of the old practice of delim2==0.  All callers changed.
77974         Return -1 on overflow, instead of returning junk.
77975         Do not set *linesize unless allocation succeeds.
77976         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77977         that we include sys/types.h.
77978         * lib/getnline.h: Likewise.
77979         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77980         (getndelim2): Reorder arguments.
77981         * lib/getnline.c (getnline, getndelim):
77982         Don't discard the NMAX argument.
77983         (getnline): Invoke getndelim, to avoid code duplication.
77984         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77985         of (size_t) -1 by callers of the getnline family.
77986
77987 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77988
77989         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77990         Check for gettimeofday.
77991         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77992         Check for settimeofday, stime.
77993
77994 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77995
77996         * lib/nanosleep.c (suspended): Change its type from int to
77997         sig_atomic_t volatile.
77998         (first_call): Make it private to rpl_nanosleep, and have it
77999         be zero initially as that's a bit faster.
78000         (my_usleep): Round up fractional times instead of truncating them,
78001         as this is the usual meaning for 'sleep'.
78002
78003         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
78004         doesn't work.
78005         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
78006         (ENOSYS): Define if not defined.
78007         (settime): Fall back on stime if it exists and settimeofday fails.
78008         But don't bother with fallbacks if a method fails with errno == EPERM.
78009
78010 2004-05-11  Jim Meyering  <jim@meyering.net>
78011
78012         Prior to this change, the save_cwd caller required read access to the
78013         current directory on most systems (ones with the fchdir function).
78014
78015         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
78016         fails, try write-only, and finally, resort to using xgetcwd.
78017
78018 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78019
78020         * lib/obstack.c, obstack.h: Import changes from libc.
78021
78022 2004-04-28  Bruno Haible  <bruno@clisp.org>
78023
78024         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
78025         also implicitly appends .exe to executables.
78026         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
78027         accepts Windows pathnames.
78028         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78029         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78030         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78031         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78032         Reported by Derek Robert Price <derek@ximbiot.com>.
78033
78034 2004-04-21  Karl Berry  <karl@gnu.org>
78035
78036         * config/srclist.txt (localcharset.c): break sync.
78037
78038 2004-04-20  Paul Eggert  <eggert@twinsun.com>
78039
78040         * m4/host-os.m4: Add a copyright notice.
78041
78042 2004-04-20  Jim Meyering  <jim@meyering.net>
78043
78044         Change UTILS_ to gl_ in AC_DEFINE'd names.
78045         Change utils_- and jm_-prefixed variables, too.
78046         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
78047         UTILS_FUNC_MKDIR_TRAILING_SLASH.
78048         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
78049
78050         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
78051         Don't emit trailing blanks.
78052         Also rename jm_-prefixed variables to have gl_ prefix.
78053
78054         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
78055         Also rename jm_-prefixed variables to have gl_ prefix.
78056
78057         * m4/jm-macros.m4: Reflect the renamings.
78058         * m4/prereq.m4: Likewise.
78059
78060 2004-04-20  Jim Meyering  <jim@meyering.net>
78061
78062         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
78063         memory.
78064
78065 2004-04-20  Jim Meyering  <jim@meyering.net>
78066             Bruno Haible  <bruno@clisp.org>
78067
78068         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
78069         memory when realloc fails.
78070
78071 2004-04-19  Jim Meyering  <jim@meyering.net>
78072
78073         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
78074         now that readutmp.c may call `free (0)'.
78075
78076 2004-04-19  Bruno Haible  <bruno@clisp.org>
78077
78078         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
78079         * m4/inttypes_h.m4: Likewise.
78080         * m4/stdint_h.m4: Likewise.
78081         * m4/intmax_t.m4: Likewise.
78082         * m4/uintmax_t.m4: Likewise.
78083
78084 2004-04-18  Jim Meyering  <jim@meyering.net>
78085
78086         * m4/prereq.m4: Don't forbid jm_ prefix.
78087
78088         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
78089         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
78090         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
78091         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
78092         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
78093         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
78094         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
78095         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
78096         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
78097         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
78098         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
78099         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
78100         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
78101         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
78102         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
78103         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
78104         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
78105         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
78106         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
78107
78108 2004-04-18  Jim Meyering  <jim@meyering.net>
78109
78110         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
78111         failure, don't leak memory and do call END_UTMP_ENT.
78112
78113 2004-04-16  Jim Meyering  <jim@meyering.net>
78114
78115         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
78116         coreutils' stat program.
78117         (gl_PREREQ): Don't require jm_PREREQ_STAT.
78118
78119 2004-04-11  Paul Eggert  <eggert@twinsun.com>
78120
78121         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
78122         C89.
78123         (CHAR_BIT): Remove, since we assume C89.
78124         Include <stdint.h> if available, as per current Autoconf CVS advice.
78125
78126 2004-03-31  Jim Meyering  <jim@meyering.net>
78127
78128         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
78129         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
78130         * m4/xalloc.m4: Likewise.
78131
78132 2004-03-30  Paul Eggert  <eggert@twinsun.com>
78133
78134         Merge from coreutils.
78135
78136         * m4/inttostr.m4: New file.
78137         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
78138         Require AM_STDBOOL_H and gl_TIMESPEC instead.
78139         Require gl_CLOCK_TIME.
78140         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
78141
78142 2004-03-30  Paul Eggert  <eggert@twinsun.com>
78143
78144         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
78145         not bool, to be more consistent with Unix conventions.
78146         Suggested by Bruno Haible.
78147
78148         Merge from coreutils.
78149
78150         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
78151         * lib/umaxtostr.c: New files.
78152
78153         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
78154         the usual <time.h> dance.
78155         (get_date): Change signature to support fractional time stamps.
78156         All callers changed.
78157         * lib/getdate.y: Include "getdate.h" first, as we can now
78158         assume C89 and don't need to worry about 'const'.
78159         Similarly, include "unlocked-io.h" near start, not in middle.
78160         Include <limits.h>.
78161         (textint.value): Use long int rather than int.
78162         (textint.digits): Use size_t rather than int.
78163         (BILLION, LOG10_BILLION): New constants.
78164         (parser_control): New member rel_ns.  Members day_ordinal,
78165         time_zone, month, day, hour, minutes, rel_year, rel_month,
78166         rel_day, rel_hour, rel_minutes, rel_seconds
78167         are now long int, not int.  Member seconds is now struct timespec,
78168         not int.  New member timespec_seen.  Members dates_seen, days_seen,
78169         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
78170         not int.
78171         (%union.intval): Now long int, not int.
78172         New member timespec.
78173         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
78174         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
78175         (spec): Now is a timespec or an item list.
78176         (timespec, items): New nonterminals.
78177         (time, rel, relunit, number, get_date):
78178         Add support for fractional seconds.
78179         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
78180         (gmtime, localtime, mktime): Remove decls; not needed with C89.
78181         (to_hour): First arg is now long int, not int.
78182         (to_year): Returns long int, not int.
78183         Don't treat year -70 like 70.
78184         (tm_diff): Returns long int, not int.
78185         (lookup_word): Use bool instead of int when appropriate.
78186         (yylex): Use size_t for count, not int.
78187         Detect overflow when parsing large integer constants.
78188         Add support for fractions.
78189         (get_date): Make pointers 'const' if possible.
78190         Use more-portable code to detect integer overflow.
78191         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
78192         Don't use ctime; it's not reliable if the year has >4 digits.
78193
78194         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
78195         This is for compatibility with BSD.
78196
78197         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
78198         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
78199         From coreutils' system.h.
78200
78201         * lib/userspec.c: Don't include "posixver.h".
78202         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
78203         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
78204         compatible extension.  Simplify code by removing a boolean int
78205         that was always nonzero if a string was nonnull.
78206
78207 2004-03-30  Jim Meyering  <jim@meyering.net>
78208
78209         Merge from coreutils.
78210
78211         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
78212         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
78213         on some systems one must include <grp.h> before it.
78214         Reported by Christian Krackowizer.
78215
78216 2004-03-30  Jim Meyering  <jim@meyering.net>
78217
78218         Merge from coreutils.
78219
78220         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
78221
78222         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
78223         an empty input stream.
78224
78225         * lib/readtokens.c: Include <stdbool.h>.
78226         (readtoken): Use `size_t' rather than int/long.
78227         All callers adjusted.
78228         Use `bool' rather than `int' where appropriate.
78229         Use memset rather than an explicit loop.
78230         Use x2nrealloc rather than xrealloc.
78231         Allow the use of `\0' as a delimiter.
78232         (readtokens): Likewise.
78233         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
78234
78235 2004-03-30  Jim Meyering  <jim@meyering.net>
78236
78237         * m4/realloc.m4: Remove file, since now it does no more than
78238         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
78239         the `configure.ac' section of module/realloc.
78240         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
78241
78242 2004-03-30  Bruno Haible  <bruno@clisp.org>
78243
78244         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
78245         nonnull.
78246
78247 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78248
78249         Merge changes to getloadavg.c from coreutils and Emacs.
78250
78251         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
78252         Define to an expression, not to the empty string.
78253         Include cloexec.h and xalloc.h.
78254         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
78255         Use set_cloexec_flag rather than rolling our own.
78256         * lib/cloexec.c, lib/cloexec.h: New files.
78257
78258 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78259
78260         * m4/cloexec.m4: New file.
78261
78262 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78263
78264         * lib/getopt.h: Sync with libc CVS.
78265
78266 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78267             Bruno Haible  <bruno@clisp.org>
78268
78269         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
78270         mbswidth.
78271
78272 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78273             Bruno Haible  <bruno@clisp.org>
78274
78275         * lib/mbswidth.h: Include <wchar.h> only if
78276         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
78277         <wchar.h>.
78278         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
78279
78280 2004-03-09  Paul Eggert  <eggert@twinsun.com>
78281
78282         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
78283         Sync with libc CVS.
78284         * lib/getopt_int.h: New file, also synced from libc.
78285
78286 2004-03-09  Paul Eggert  <eggert@twinsun.com>
78287
78288         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
78289         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
78290         Bring back getopt.c, getopt.h, getopt1.c.
78291
78292 2004-03-07  Paul Eggert  <eggert@twinsun.com>
78293
78294         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
78295         All uses changed.  Check for sa_sigaction member; this fixes
78296         a bug first reported by Jason Andrade in
78297         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
78298
78299 2004-03-07  Paul Eggert  <eggert@twinsun.com>
78300
78301         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
78302         '#if' expressions.  Unlike the code it replaces, it does not
78303         depend on (defined _SC_PAGESIZE).  However, it does depend on
78304         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
78305         first reported by Jason Andrade in
78306         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
78307
78308 2004-02-25  Simon Josefsson  <jas@extundo.com>
78309
78310         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
78311
78312 2004-02-25  Simon Josefsson  <jas@extundo.com>
78313
78314         * lib/strdup.h: New file.
78315         * lib/strdup.c: Include it.
78316         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
78317         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
78318
78319 2004-02-23  Karl Berry  <karl@gnu.org>
78320
78321         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
78322         (from fencepost.gnu.org:/gd/gnuorg).
78323
78324 2004-02-23  Karl Berry  <karl@gnu.org>
78325
78326         * config/srclistvars.sh (GNUORG) [karl]: redefine.
78327         * config/srclist.txt: add maintain/standards documents.
78328
78329 2004-02-18  Bruno Haible  <bruno@clisp.org>
78330
78331         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
78332         Reported by Derek Robert Price <derek@ximbiot.com>.
78333
78334 2004-02-16  Karl Berry  <karl@gnu.org>
78335
78336         * config/mkinstalldirs, install-sh: update from automake.
78337
78338 2004-02-06  Karl Berry  <karl@gnu.org>
78339
78340         * m4/po.m4: update from gettext 0.14.1.
78341
78342 2004-02-06  Karl Berry  <karl@gnu.org>
78343
78344         * lib/config.charset: update from gettext 0.14.1.
78345
78346 2004-02-05  Paul Eggert  <eggert@twinsun.com>
78347
78348         Add comments and code, prompted by suggestions from Bruno Haible
78349         for sh-quote.
78350         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
78351         describing the enum quoting_style values.
78352         * lib/quotearg.c (quotearg_alloc): New function.
78353         (quotearg_buffer_restyled): Treat lone { and } as special.
78354         Treat = as special.  Work around bug with older shells
78355         that "see" a '\' that is really the 2nd byte of a multibyte char.
78356         Quote empty string with shell_quoting_style.
78357
78358 2004-02-03  Bruno Haible  <bruno@clisp.org>
78359
78360         * m4/pipe.m4: New file, from GNU gettext.
78361
78362 2004-02-03  Bruno Haible  <bruno@clisp.org>
78363
78364         * lib/pipe.h: New file, from GNU gettext.
78365         * lib/pipe.c: New file, from GNU gettext.
78366
78367 2004-01-27  Bruno Haible  <bruno@clisp.org>
78368
78369         * m4/execute.m4: New file, from GNU gettext.
78370
78371 2004-01-27  Bruno Haible  <bruno@clisp.org>
78372
78373         * lib/execute.h: New file, from GNU gettext.
78374         * lib/execute.c: New file, from GNU gettext.
78375         * lib/w32spawn.h: New file, from GNU gettext.
78376
78377 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78378
78379         Merge from diffutils.
78380
78381         * lib/file-type.c (file_type): Add typed memory objects.
78382         * lib/file-type.h (S_TYPEISTMO): New macro.
78383
78384         * lib/c-stack.h (c_stack_action): Remove argv argument.
78385         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
78386         (die): Don't calculate message unless segv_action returns.
78387         (get_stack_location, min_address_from_argv, max_address_from_argv,
78388         volatile stack_base, volatile_stack_size): Remove.
78389         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
78390         that every segmentation violation is a stack overflow.  (Ouch!)
78391         See Debian bug 136249 (still outstanding) for more info about why
78392         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
78393
78394 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78395
78396         Exit-status fix from coreutils.
78397
78398         Use exit_failure consistently in place of EXIT_FAILURE,
78399         so that program exit statuses are consistent on failure.
78400
78401         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
78402         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
78403         * lib/argmatch.h: Comment fix to match the above.
78404         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
78405         Now a macro referring to exit_failure, instead of a separate
78406         variable.  Include "exitfail.h" to get it.
78407         * lib/xstrtol.h: Include "exitfail.h".
78408         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
78409
78410         * lib/long-options.c (parse_long_options): Use prototype
78411         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
78412         for clarity.
78413
78414 2004-01-21  Jim Meyering  <jim@meyering.net>
78415
78416         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
78417         so as not to conflict with a different-sized __mktime_internal
78418         function in GNU libc.
78419         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
78420         Problem building statically-linked `ls' reported by Michael Brunnbauer.
78421
78422 2004-01-20  Karl Berry  <karl@gnu.org>
78423
78424         * config/config.guess: update from config.
78425
78426         * config/srclistvars.sh: GNUWWWLICENSES for karl.
78427
78428 2004-01-20  Bruno Haible  <bruno@clisp.org>
78429
78430         Safer stack allocation.
78431         * lib/setenv.c: Include allocsa.h.
78432         (alloca): Remove fallback definition.
78433         (freea): Remove macro.
78434         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
78435         instead of freea.
78436
78437 2004-01-20  Bruno Haible  <bruno@clisp.org>
78438
78439         * m4/eealloc.m4: New file, from GNU gettext.
78440
78441 2004-01-20  Bruno Haible  <bruno@clisp.org>
78442
78443         * m4/allocsa.m4: New file, from GNU gettext.
78444
78445 2004-01-20  Bruno Haible  <bruno@clisp.org>
78446
78447         * lib/xallocsa.h: New file, from GNU gettext.
78448         * lib/xallocsa.c: New file, from GNU gettext.
78449
78450 2004-01-20  Bruno Haible  <bruno@clisp.org>
78451
78452         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
78453
78454 2004-01-20  Bruno Haible  <bruno@clisp.org>
78455
78456         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
78457         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
78458         specially.
78459
78460 2004-01-20  Bruno Haible  <bruno@clisp.org>
78461
78462         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
78463         patch.
78464
78465 2004-01-20  Bruno Haible  <bruno@clisp.org>
78466
78467         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
78468
78469 2004-01-20  Bruno Haible  <bruno@clisp.org>
78470
78471         * lib/eealloc.h: New file.
78472
78473 2004-01-20  Bruno Haible  <bruno@clisp.org>
78474
78475         * lib/binary-io.h: Avoid warnings on Cygwin.
78476
78477 2004-01-20  Bruno Haible  <bruno@clisp.org>
78478
78479         * lib/allocsa.h: New file, from GNU gettext.
78480         * lib/allocsa.c: New file, from GNU gettext.
78481
78482 2004-01-18  Karl Berry  <karl@gnu.org>
78483
78484         * doc/gpl.texi, doc/lgpl.texi: new files.
78485
78486 2004-01-18  Karl Berry  <karl@gnu.org>
78487
78488         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
78489         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
78490
78491 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78492
78493         Merge from coreutils.
78494
78495         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
78496         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
78497         (gl_DEFAULT_POSIX2_VERSION): Move
78498         the documentation from 'configure' into 'config.hin',
78499         so that 'configure --help' isn't burdened by it and
78500         we don't have to worry about its formatting there.
78501         Reword the documentation so that it's more succinct
78502         and can be run together into a single paragraph.
78503         * m4/same.m4 (gl_SAME): Check for pathconf.
78504
78505 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78506
78507         Merge from coreutils.
78508
78509         * lib/posixver.c: Include posixver.h.
78510
78511         * lib/same.c: Include <stdbool.h>, <limits.h>.
78512         (_POSIX_NAME_MAX): Define if not defined.
78513         (MIN): New macro.
78514         (same_name): If file names are silently truncated, report
78515         that the file names are the same if they are the same after
78516         the silent truncation.
78517
78518         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
78519         conversion function.
78520         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
78521         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
78522         longer needed.
78523
78524 2004-01-15  Jim Meyering  <jim@meyering.net>
78525
78526         Merge from coreutils.
78527
78528         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
78529         if no library is required.
78530         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
78531         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
78532         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
78533         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
78534         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
78535         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
78536         value, $ac_cv_search_crypt, if it's "none required".
78537         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
78538         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
78539         not gl_FUNC_GETLOADAVG.
78540         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
78541         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
78542
78543 2004-01-15  Jim Meyering  <jim@meyering.net>
78544
78545         Merge from coreutils.
78546
78547         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
78548         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
78549         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
78550
78551         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
78552         optional configure-time default.
78553
78554         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78555
78556         * lib/xreadlink.c (xreadlink): Correct outdated comment.
78557
78558 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
78559
78560         Merge from coreutils.
78561
78562         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
78563         value, $ac_cv_search_nanosleep, if it's "none required".
78564
78565 2004-01-14  Paul Eggert  <eggert@twinsun.com>
78566
78567         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
78568         with like-named macro in fnmatch.c.
78569         (EXT): Use an internal constant instead.
78570
78571         Merge fnmatch patches from glibc.
78572         * lib/fnmatch.c (mbsinit): Remove define.
78573         Add libc_hidden_ver (__fnmatch, fnmatch).
78574         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
78575         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
78576
78577 2004-01-14  Karl Berry  <karl@gnu.org>
78578
78579         * config/install-sh: update from automake.
78580
78581 2004-01-13  Karl Berry  <karl@gnu.org>
78582
78583         * config/install-sh: update from automake.
78584
78585 2004-01-09  Karl Berry  <karl@gnu.org>
78586
78587         * config/install-sh: update from automake.
78588
78589 2004-01-05  Karl Berry  <karl@gnu.org>
78590
78591         * config/config.{sub,guess}: update from config.
78592
78593 2003-12-31  Karl Berry  <karl@gnu.org>
78594
78595         * config/depcomp: update from automake.
78596
78597 2003-12-14  Karl Berry  <karl@gnu.org>
78598
78599         * lib/config.charset: update from gettext-runtime.
78600
78601 2003-12-03  Paul Eggert  <eggert@twinsun.com>
78602
78603         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
78604         Bug reported by Alfred M. Szmidt.
78605
78606 2003-12-03  Bruno Haible  <bruno@clisp.org>
78607
78608         * m4/gettext.m4: Upgrade from gettext-0.13.
78609         * m4/po.m4: Upgrade from gettext-0.13.
78610         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
78611         * m4/intmax.m4: New file, from gettext-0.13.
78612         * m4/printf-posix.m4: New file, from gettext-0.13.
78613
78614 2003-11-29  Karl Berry  <karl@gnu.org>
78615
78616         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
78617
78618 2003-11-25  Paul Eggert  <eggert@twinsun.com>
78619             Bruno Haible  <bruno@clisp.org>
78620
78621         * lib/printf-parse.h: Don't include sys/types.h.
78622         (ARG_NONE): New macro.
78623         (char_directive): Change type of *arg_index fields to size_t.
78624         * lib/printf-parse.c: Don't include sys/types.h.
78625         (SSIZE_MAX): Remove macro.
78626         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
78627         Remove unnecessary overflow check.
78628         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
78629         fields.
78630
78631 2003-11-25  Bruno Haible  <bruno@clisp.org>
78632
78633         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
78634
78635 2003-11-25  Bruno Haible  <bruno@clisp.org>
78636
78637         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
78638         gt_TYPE_SSIZE_T.
78639
78640 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78641
78642         * modules/alloca: Remove dependency on xalloc.
78643
78644 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78645
78646         * lib/alloca.c: Remove dependency on xalloc module.
78647         (xalloc_die): Remove.
78648         (memory_full) [!defined emacs]: New macro.
78649         [!defined emacs]: Don't include xalloc.h.
78650         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
78651         address arithmetic overflows.  Change datatypes a bit to avoid
78652         unnecessary casts.
78653
78654 2003-11-22  Jim Meyering  <jim@meyering.net>
78655
78656         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
78657         s/size/size_t/.
78658
78659 2003-11-21  Karl Berry  <karl@gnu.org>
78660
78661         * config/config.{sub,guess}: update from config.
78662
78663 2003-11-18  Karl Berry  <karl@gnu.org>
78664
78665         * config/config.{sub,guess}: update from config.
78666
78667         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
78668
78669 2003-11-17  Paul Eggert  <eggert@twinsun.com>
78670
78671         * README: Mention that S+T cannot overflow if S is the size of
78672         an existing object and T is sufficiently small.
78673
78674 2003-11-17  Jim Meyering  <jim@meyering.net>
78675
78676         On systems without utime and without a utimes function capable of
78677         dealing with a NULL struct utimbuf* argument, this utime replacement
78678         could -- in unusual circumstances -- leak a file descriptor.
78679         * lib/utime.c: Include <unistd.h> and <errno.h>.
78680         (utime_null): Be sure to close `fd' and to preserve errno.
78681         Reported by Geoff Collyer via Arnold Robbins.
78682
78683 2003-11-17  Bruno Haible  <bruno@clisp.org>
78684
78685         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
78686         (Depends-on): Add xsize.
78687
78688 2003-11-17  Bruno Haible  <bruno@clisp.org>
78689
78690         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
78691
78692 2003-11-17  Bruno Haible  <bruno@clisp.org>
78693
78694         * lib/vasnprintf.c (alloca): Remove fallback definition.
78695         (freea): Remove definition.
78696         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
78697         Reported by Paul Eggert.
78698
78699 2003-11-16  Paul Eggert  <eggert@twinsun.com>
78700             Bruno Haible  <bruno@clisp.org>
78701
78702         Protect against address arithmetic overflow.
78703         * lib/printf-args.h: Include stddef.h.
78704         (arguments): Change type of field 'count' to size_t.
78705         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
78706         'unsigned int' where appropriate.
78707         * lib/printf-parse.h: Include sys/types.h.
78708         (char_directive): Change type of *arg_index fields to ssize_t.
78709         (char_directives): Change type of fields 'count', max_*_length to
78710         size_t.
78711         * lib/printf-parse.c: Include sys/types.h and xsize.h.
78712         (SSIZE_MAX): Define fallback value.
78713         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
78714         instead of 'int' where appropriate. Check a_allocated, d_allocated
78715         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
78716         * lib/vasnprintf.c: Include xsize.h.
78717         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
78718         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
78719         overflow. Avoid wraparound when converting a width or precision from
78720         decimal to binary.
78721
78722 2003-11-16  Bruno Haible  <bruno@clisp.org>
78723
78724         Update from GNU gettext.
78725         * lib/printf-parse.c: Generalize to it can be compiled for wide
78726         strings.
78727         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
78728         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
78729         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
78730         SNPRINTF): New macros.
78731         Don't include <alloca.h> if the file is used inside libintl.
78732         (local_wcslen): New function, for Solaris 2.5.1.
78733         (VASNPRINTF): Use it instead of wcslen.
78734
78735 2003-11-16  Bruno Haible  <bruno@clisp.org>
78736
78737         * lib/xsize.h (xmax): New function.
78738         (xsum, xsum3, xsum4): Declare as "pure" functions.
78739
78740 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78741
78742         * modules/xalloc (Files): Undo latest change, since xalloc.h
78743         no longer needs SIZE_MAX or PTRDIFF_MAX.
78744
78745 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78746
78747         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
78748         gl_PTRDIFF_MAX.
78749
78750 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78751
78752         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
78753         "return", to pacify some unknown compiler.  Problem reported
78754         by Joerg Schilling.
78755
78756 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78757
78758         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
78759         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
78760         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
78761         heuristic is just as accurate as far as we know, and it removes a
78762         dependency on size_max.m4 and ptrdiff_max.m4.
78763
78764 2003-11-11  Bruno Haible  <bruno@clisp.org>
78765
78766         * modules/xsize (Files): Add m4/size_max.m4.
78767         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
78768
78769 2003-11-11  Bruno Haible  <bruno@clisp.org>
78770
78771         * m4/size_max.m4: New file.
78772         * m4/ptrdiff_max.m4: New file.
78773         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
78774         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
78775         (gl_XALLOC): Invoke it.
78776
78777 2003-11-11  Bruno Haible  <bruno@clisp.org>
78778
78779         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
78780         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
78781         defined.
78782
78783 2003-11-10  Paul Eggert  <eggert@twinsun.com>
78784
78785         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
78786         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
78787         rejected some allocations of exactly SIZE_MAX - 2 bytes.
78788         From Bruno Haible.
78789         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
78790         not (size_t) -1, since it's defined here.
78791
78792 2003-11-09  Karl Berry  <karl@gnu.org>
78793
78794         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
78795
78796 2003-11-06  Paul Eggert  <eggert@twinsun.com>
78797
78798         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
78799         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
78800         Reject sizes of exactly SIZE_MAX bytes.
78801         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
78802         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
78803
78804 2003-11-05  Bruno Haible  <bruno@clisp.org>
78805
78806         * lib/xsize.h: Include limits.h, to avoid a possible collision with
78807         SIZE_MAX defined in <limits.h> on Solaris.
78808
78809 2003-11-04  Jim Meyering  <jim@meyering.net>
78810
78811         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
78812         variable names, rather than @VAR@.
78813         * modules/poll: Likewise.
78814
78815 2003-11-04  Bruno Haible  <bruno@clisp.org>
78816
78817         * modules/xsize: New file.
78818         * modules/linebreak: Depend on xsize.
78819         * MODULES.html.sh (func_all_modules): Add xsize.
78820
78821 2003-11-04  Bruno Haible  <bruno@clisp.org>
78822
78823         * m4/xsize.m4: New file.
78824
78825 2003-11-04  Bruno Haible  <bruno@clisp.org>
78826
78827         * lib/xsize.h: New file.
78828         * lib/linebreak.c: Include xsize.h.
78829         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
78830         argument for overflow.
78831         Suggested by Paul Eggert.
78832
78833 2003-11-03  Karl Berry  <karl@gnu.org>
78834
78835         * config/config.{guess,sub}: update from config.
78836
78837 2003-11-03  Jim Meyering  <jim@meyering.net>
78838
78839         * modules/userspec (lib_SOURCES): Add userspec.h.
78840         (Include): Add "userspec.h".
78841         Improve description.
78842
78843 2003-11-03  Jim Meyering  <jim@meyering.net>
78844
78845         * lib/userspec.c: Include "userspec.h".
78846         * lib/userspec.h: New file.
78847
78848 2003-11-03  Bruno Haible  <bruno@clisp.org>
78849
78850         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
78851
78852 2003-11-03  Bruno Haible  <bruno@clisp.org>
78853
78854         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
78855         available, to avoid (extremely rare) race condition.
78856         Suggested by Paul Eggert.
78857
78858 2003-11-02  Karl Berry  <karl@gnu.org>
78859
78860         * config/srclist.txt (vasprintf.c): sync broken, sigh.
78861
78862 2003-10-31  Paul Eggert  <eggert@twinsun.com>
78863
78864         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
78865         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
78866         (read_filesystem_list): Set and use me_type_malloced.
78867         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
78868         whatever the type happens to be), for brevity and consistency.
78869         Check for size calculation overflow on Alphas running OSF/1.
78870
78871 2003-10-31  Jim Meyering  <jim@meyering.net>
78872
78873         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
78874
78875         * lib/linebuffer.c: Include <string.h> for declaration of memset.
78876
78877 2003-10-30  Paul Eggert  <eggert@twinsun.com>
78878             Bruno Haible  <bruno@clisp.org>
78879
78880         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
78881         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
78882
78883 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
78886         netbsd*-gnu*.  Suggested by Robert Millan.
78887
78888 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78889
78890         * modules/group-member: Depend on stdbool.
78891
78892 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78893
78894         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
78895
78896 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78897
78898         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
78899         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
78900         after the 'gnu' in these cases.  This fixes some bugs in the
78901         previous change, and is based on suggestions by Robert Millan.
78902
78903 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78904
78905         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
78906         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
78907         no longer needed.
78908         * lib/quotearg.c (quotearg_n_options): Use it.
78909         * lib/group-member.c: Include <stdbool.h>.
78910         (free_group_info): Arg is now const *; don't free arg.
78911         (get_group_info): Now returns bool and accepts struct group_info *,
78912         rather than returning a malloc'ed struct group_info *.
78913         All uses changed.  Check for overflow in internal size calculation.
78914
78915         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
78916         rather than xmalloc/xrealloc.
78917         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
78918         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
78919         conformance bug: the old code used a pointer after freeing the
78920         storage that it addressed.
78921         * lib/hash.c (hash_initialize): Simplify the code by using
78922         xalloc_oversized rather than doing it by hand.
78923         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
78924         the buffer preserved.  Use free and xmalloc instead.
78925         * lib/quotearg.c (quotearg_n_options): Likewise.
78926         Use a simpler test for size overflow.  Don't use xalloc_oversized
78927         because unsigned int might be wider than size_t (!); this suggests
78928         that we should switch from unsigned int to size_t for slot numbers.
78929
78930 2003-10-28  Paul Eggert  <eggert@twinsun.com>
78931
78932         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
78933         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
78934         NetBSD kernels.  Requested by Richard Stallman.
78935
78936 2003-10-27  Paul Eggert  <eggert@twinsun.com>
78937
78938         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
78939         to allocate the returned structure.  Do not allocate a subarray,
78940         as x2nrealloc will do that.
78941         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
78942         instead of xnrealloc.
78943         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
78944
78945 2003-10-27  Bruno Haible  <bruno@clisp.org>
78946
78947         * lib/stdbool_.h: Better support for BeOS.
78948
78949 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78950
78951         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
78952         now uses inline.
78953
78954 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78955
78956         * lib/xalloc.h (xalloc_oversized): New static inline function, for
78957         callers that want to do their own size-overflow checking.  Include
78958         <stdbool.h>, since xalloc_oversized returns bool.
78959         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
78960         to use xalloc_oversized.
78961
78962         Add two functions x2realloc, x2nrealloc, for programs that grow
78963         arrays dynamically by doubling their sizes.
78964         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
78965         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
78966         New functions.
78967
78968         Port to C99 semantics for 'inline' of external functions.
78969         Bug reported by Bruno Haible.
78970         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
78971         with the old contents of xnmalloc.
78972         (xnmalloc, xmalloc): Use it.
78973         (xnrealloc_inline): New static inline function,
78974         with the old contents of xnrealloc.
78975         (xnrealloc, xrealloc): Use it.
78976
78977         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78978         that.
78979
78980 2003-10-26  Karl Berry  <karl@gnu.org>
78981
78982         * config/srclist.txt (COPYING.DOC): no longer available from
78983         /gd/gnuorg; don't know where the ultimate source is.
78984
78985 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78986
78987         Fix several address-calculation bugs in the hash modules,
78988         plus some minor code cleanup.
78989
78990         * lib/hash.h: Include <stdbool.h>, for bool.
78991         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78992         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78993         hash_get_n_entries, hash_get_max_bucket_length,
78994         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78995         hash_rehash): Use size_t rather than unsigned.
78996         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78997         hash_get_n_buckets_used, hash_get_n_entries,
78998         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78999         hash_get_entries, hash_do_for_each, hash_string, is_prime,
79000         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
79001         Likewise.
79002         (SIZE_MAX): Define if not defined.
79003         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
79004         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
79005         hash_print):
79006         Use const * when possible.
79007         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
79008         (check_tuning): Fix bug: if tuning parameters were very close to
79009         0 or 1, rounding errors could have caused subscript violations.
79010         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
79011         (hash_initialize): Add 'fail:' label
79012         to free table and return NULL, and use it to simplify code.
79013         Use calloc rather than clearing the storage ourself.
79014         (hash_initialize, hash_rehash): Check for arithmetic overflow in
79015         buffer size calculations.
79016         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
79017         Include <stddef.h>, for size_t.
79018         * lib/hash-pjw.c (hash_pjw): Likewise.
79019         Switch to method described by Bruno Haible.
79020         Include <limits.h>, for CHAR_BIT.
79021         (SIZE_BITS): New macro.
79022
79023 2003-10-23  Paul Eggert  <eggert@twinsun.com>
79024
79025         * m4/getline.m4 (AM_FUNC_GETLINE):
79026         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
79027         hosts.  Problem reported by Derek Robert Price in
79028         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
79029         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
79030         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
79031
79032 2003-10-21  Paul Eggert  <eggert@twinsun.com>
79033
79034         * lib/getndelim2.c (getndelim2): When size calculation overflows,
79035         ceiling the allocation at NMAX bytes rather than silently
79036         discarding input bytes before NMAX is reached.  This makes
79037         a difference only if NMAX exceeds SIZE_MAX / 2.
79038
79039         * lib/obstack.c: Merge from glibc.
79040         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
79041         Add libc_hidden_def (_obstack_newchunk).
79042         (_obstack_free) [! defined _LIBC]: Remove.
79043         [defined _LIBC]: Make a strong alias from obstack_free, rather than
79044         a clone of the function body.
79045         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
79046         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
79047
79048         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
79049         glibc.
79050         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
79051         arg to memcpy.
79052
79053         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
79054         (obstack_ptr_grow_fast, obstack_int_grow_fast):
79055         Don't use lvalue casts, as GCC plans to remove support for them
79056         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
79057         was also present in the non-GCC version, indicating that this
79058         code had always been buggy and had never been widely used.
79059         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
79060         Use the fast variant of each macro, rather than copying the
79061         definiens of the fast variant; that way, we'll be more likely to
79062         catch future bugs in the fast variants.
79063
79064 2003-10-20  Bruno Haible  <bruno@clisp.org>
79065
79066         * modules/wait-process: New file.
79067         * MODULES.html.sh (func_all_modules): Add wait-process.
79068
79069 2003-10-20  Bruno Haible  <bruno@clisp.org>
79070
79071         * m4/wait-process.m4: New file.
79072
79073 2003-10-20  Bruno Haible  <bruno@clisp.org>
79074
79075         * lib/wait-process.h: New file, from GNU gettext.
79076         * lib/wait-process.c: New file, from GNU gettext.
79077
79078 2003-10-19  Jim Meyering  <jim@meyering.net>
79079
79080         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
79081         HPUX 10.20.
79082
79083 2003-10-18  Karl Berry  <karl@gnu.org>
79084
79085         * config/config.guess: update from config.
79086
79087 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79088
79089         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
79090         (getgroups): First arg is int, not size_t.
79091         Don't let 'free' mangle errno.
79092
79093 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79094
79095         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
79096
79097 2003-10-16  Karl Berry  <karl@gnu.org>
79098
79099         * config/config.{guess,sub}: update from config.
79100
79101 2003-10-16  Jim Meyering  <jim@meyering.net>
79102
79103         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
79104         memcpy.
79105
79106 2003-10-15  Paul Eggert  <eggert@twinsun.com>
79107
79108         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
79109         (SIZE_MAX): Remove.
79110         (new_exclude, add_exclude_file): Initial size no longer needs to
79111         be a power of 2.
79112         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
79113         our own address arithmetic overflow checking.
79114
79115         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
79116         (fnmatch): Do not alloca more than 2000 wide characters;
79117         instead, use malloc for large buffers.
79118         Check for address arithmetic overflow, and return -1
79119         with errno set to ENOMEM in that case.
79120         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
79121         (NEW_PATTERN): Do not alloca more than 8000 bytes;
79122         instead, return -1.  Check for address arithmetic overflow.
79123
79124 2003-10-14  Paul Eggert  <eggert@twinsun.com>
79125
79126         Handle invalid suffixes and overflow independently, so that
79127         callers can treat them independently as needed.  Fix some bugs in
79128         suffix handling, e.g., "100k@" was not diagnosed as an invalid
79129         suffix for a human-readable blocksize.  The major caller-visible
79130         change is the addition of a new
79131         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
79132         that both overflow and suffix chars were found.
79133
79134         * lib/human.c (humblock): Don't check separately for invalid suffix
79135         char; that is xstrtoumax's job (now that its bug is fixed).
79136         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
79137         INTMAX_MAX]: New macros.
79138         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
79139         TYPE_MAXIMUM): New macros.
79140         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
79141         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
79142         if overflow occurs, as it's what __strtol does and it's more useful
79143         in practice.
79144         (__xstrtol): If __strtol reports some error other than ERANGE,
79145         reflect it to the caller as LONGINT_INVALID.  If it reports
79146         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
79147         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
79148         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
79149         value.
79150         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
79151         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
79152         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
79153         [defined UINTMAX_MAX]: New macros.
79154
79155 2003-10-14  Bruno Haible  <bruno@clisp.org>
79156
79157         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
79158
79159 2003-10-14  Bruno Haible  <bruno@clisp.org>
79160
79161         * m4/sig_atomic_t: New file, from GNU gettext.
79162         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
79163
79164 2003-10-14  Bruno Haible  <bruno@clisp.org>
79165
79166         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
79167         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
79168         Also use volatile where needed.
79169
79170 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79171
79172         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
79173         Change maintainer from Bruno Haible to 'all'.
79174
79175 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79176
79177         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
79178
79179 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79180
79181         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
79182         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
79183         and define in terms of the other primitives.
79184         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
79185         (SIZE_MAX): Define if not already defined.
79186         (array_size_overflow): New function.
79187         (xalloc_die): Abort instead of exiting if 'error' returns.
79188         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
79189         (xmalloc, xrealloc): Use them.
79190         (xcalloc): Check for address arithmetic overflow.
79191         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
79192         a bit faster than strcpy.
79193
79194 2003-10-10  Simon Josefsson  <jas@extundo.com>
79195
79196         * modules/argp (Depends-on): Add restrict and strcase.
79197
79198 2003-10-10  Simon Josefsson  <jas@extundo.com>
79199
79200         * m4/argp.m4: Add AC_C_INLINE.
79201
79202 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79203
79204         Merge getpass from libc, plus a few fixes.
79205
79206         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
79207         Include <stdbool.h>.
79208         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
79209         __fsetlocking to empty.
79210         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
79211         do include <bits/libc-lock.h>.
79212         Do not include <fcntl.h>; not needed.
79213         [_LIBC]: Include <wchar.h>.
79214         (NOTCANCEL_MODE): New macro.
79215         (flockfile, funlockfile) [_LIBC]: New macros.
79216         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
79217         [!_LIBC]: New macros.
79218         (call_fclose): New function.
79219         (getpass): Use it.  Save tty stream separately; this simplifies the
79220         code and makes it more reliable if stdin happens to equal stdout.
79221         Invoke __fsetlocking on tty.
79222         Handle thread cancellation if needed.
79223         Namespace cleanup (use __tcgetattr, __getline).
79224         Use bool for Booleans.
79225         [USE_IN_LIBIO]: Handle wide streams.
79226         [!_LIBC]: Unconditionally do the fseek, since we don't know what
79227         stream might go where.
79228
79229         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
79230         doesn't have to include <stdio.h> before us.
79231         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
79232         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
79233         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
79234         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
79235         if not declared, so that we can use getpass.c code from libc without
79236         rewriting it.
79237         (flockfile, ftrylockfile, funlockfile): New macros.
79238
79239 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79240
79241         * modules/getpass: Depend on stdbool.
79242
79243 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79244
79245         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
79246
79247 2003-10-07  Karl Berry  <karl@gnu.org>
79248
79249         * config/config.{guess,sub}: update from config.
79250
79251 2003-10-06  Jim Meyering  <jim@meyering.net>
79252             Bruno Haible  <bruno@clisp.org>
79253
79254         This lets translators provide better translations for the
79255         "Written by ..." part of --version output.
79256         * lib/version-etc.h: Include stdarg.h.
79257         (version_etc_copyright): Declare as readonly.
79258         (version_etc): Make this function variadic with a NULL-terminated list
79259         of author name strings.
79260         (version_etc_va): New declaration.
79261         * lib/version-etc.c: Include stdarg.h, stdlib.h.
79262         (version_etc_copyright): Declare as readonly.
79263         (version_etc_va): New function. Provide a different translatable string
79264         for each possible number of authors < 10. Abbreviate when there are 10
79265         authors or more.
79266         (version_etc): Make this function variadic. Call version_etc_va.
79267         Suggestion from Gary V. Vaughan.
79268
79269         * lib/long-options.h (parse_long_options): Change prototype: the
79270         authors string is moved to the end and becomes variadic.
79271         * lib/long-options.c: Include stdarg.h.
79272         (parse_long_options): Make this function variadic, too.
79273         Call version_etc_va, not version_etc.
79274
79275 2003-10-06  Bruno Haible  <bruno@clisp.org>
79276
79277         * modules/version-etc-2: Remove file.
79278         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
79279
79280 2003-10-06  Bruno Haible  <bruno@clisp.org>
79281
79282         * modules/fatal-signal: New file.
79283         * MODULES.html.sh (func_all_modules): Add fatal-signal.
79284
79285 2003-10-06  Bruno Haible  <bruno@clisp.org>
79286
79287         * m4/fatal-signal.m4: New file.
79288         * m4/signalblocking.m4: New file, from GNU gettext.
79289
79290 2003-10-06  Bruno Haible  <bruno@clisp.org>
79291
79292         * lib/version-etc-2.h: Remove file.
79293         * lib/version-etc-2.c: Remove file.
79294
79295 2003-10-06  Bruno Haible  <bruno@clisp.org>
79296
79297         * lib/fatal-signal.h: New file, from GNU gettext.
79298         * lib/fatal-signal.c: New file, from GNU gettext.
79299
79300 2003-10-05  Paul Eggert  <eggert@twinsun.com>
79301
79302         * README: Rework advice for preventing empty .o files.
79303         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
79304         not <sys/types.h>.
79305
79306 2003-10-04  Karl Berry  <karl@gnu.org>
79307
79308         * lib/argp*: update from libc.
79309
79310 2003-10-04  Karl Berry  <karl@gnu.org>
79311
79312         * config/config.{guess,sub}: update from config.
79313
79314 2003-10-02  Bruno Haible  <bruno@clisp.org>
79315
79316         * modules/lchown (Include): Add lchown.h.
79317         * modules/time_r (Include): Use "..." syntax.
79318         * modules/xgetdomainname (Include): Add xgetdomainname.h.
79319
79320 2003-10-01  Simon Josefsson  <jas@extundo.com>
79321
79322         * MODULES.html.sh (func_all_modules): Move gethostname from section
79323         'based on' to section 'lacking' POSIX:2001.
79324
79325 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
79326
79327         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
79328         to output mode on the same stream.
79329
79330 2003-09-29  Paul Eggert  <eggert@twinsun.com>
79331
79332         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
79333         Fix arg typo in previous patch.
79334
79335 2003-09-28  Jim Meyering  <jim@meyering.net>
79336
79337         * lib/error.c: Correct cpp indentation.
79338
79339 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79340
79341         * modules/free: New file.
79342
79343 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79344
79345         * m4/free.m4: New file.
79346
79347 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79348
79349         * lib/minmax.h (MIN, MAX)
79350         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
79351         Omit the special code that used __typeof__, since we worry that
79352         it could be more trouble than it's worth.  See:
79353         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
79354         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
79355
79356         * lib/free.c: New file.
79357
79358 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
79359
79360         Trivial fixes to Makefile.am parts of module listings.
79361         * modules/strstr: Append strstr.h to lib_SOURCES.
79362         * modules/strcase: Likewise, for strcase.h.
79363
79364 2003-09-27  Karl Berry  <karl@gnu.org>
79365
79366         * config/mkinstalldirs: update from automake.
79367
79368 2003-09-26  Paul Eggert  <eggert@twinsun.com>
79369
79370         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
79371         (error_tail): Do not loop, reallocating temporary buffer, since
79372         the output cannot contain more wide characters than the input
79373         contains bytes, the size must be big enough already.  This avoids
79374         one potential size overflow calculation.  Check for size overflow
79375         when calculating temporary buffer size.  Free temporary buffer
79376         when done, if it was allocated with malloc; this plugs a memory
79377         leak.  Remove casts from void * to pointers, that are no longer
79378         needed now that we're assuming C89 or better.
79379
79380         Merge error changes from glibc.
79381
79382         * lib/error.c, error.h: Update copyright notice header to match glibc.
79383         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
79384         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
79385         Disable cancellation while printing error.
79386         * lib/error.h: Prepend __ to parameter names.
79387
79388 2003-09-26  Jim Meyering  <jim@meyering.net>
79389
79390         * lib/error.c (error_tail): Move some declarations
79391         into inner scope where the local variables are used.
79392
79393 2003-09-26  Bruno Haible  <bruno@clisp.org>
79394
79395         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
79396         stpncpy().
79397         Don't define stpncpy through config.h; it's now done through stpncpy.h.
79398
79399 2003-09-26  Bruno Haible  <bruno@clisp.org>
79400
79401         * lib/stpncpy.h (gnu_stpncpy): New declaration.
79402         (stpncpy): Define as alias for gnu_stpncpy.
79403         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
79404
79405 2003-09-25  Simon Josefsson  <jas@extundo.com>
79406
79407         * lib/xgetdomainname.h: New file.
79408         * lib/xgetdomainname.c: New file.
79409
79410 2003-09-25  Simon Josefsson  <jas@extundo.com>
79411             Bruno Haible  <bruno@clisp.org>
79412
79413         * modules/getdomainname: New file.
79414         * modules/xgetdomainname: New file.
79415         * MODULES.html.sh (func_all_modules): Add getdomainname,
79416         xgetdomainname.
79417
79418 2003-09-25  Simon Josefsson  <jas@extundo.com>
79419             Bruno Haible  <bruno@clisp.org>
79420
79421         * m4/getdomainname.m4: New file.
79422
79423 2003-09-25  Simon Josefsson  <jas@extundo.com>
79424             Bruno Haible  <bruno@clisp.org>
79425
79426         * lib/getdomainname.h: New file.
79427         * lib/getdomainname.c: New file.
79428
79429 2003-09-25  Karl Berry  <karl@gnu.org>
79430
79431         * lib/argp-fmtstream.c, argp-help.c: update from libc.
79432
79433 2003-09-25  Karl Berry  <karl@gnu.org>
79434
79435         * config/install-sh: update from automake.
79436
79437 2003-09-25  Bruno Haible  <bruno@clisp.org>
79438
79439         * modules/version-etc-2: New file, from modules/version-etc with
79440         modifications.
79441         * MODULES.html.sh (func_all_modules): Add version-etc-2.
79442
79443 2003-09-25  Bruno Haible  <bruno@clisp.org>
79444
79445         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
79446         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
79447
79448 2003-09-24  Simon Josefsson  <jas@extundo.com>
79449
79450         * modules/xgethostname: Add xgethostname.h.
79451
79452 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79453
79454         * lib/linebuffer.c (freebuffer): Don't free the argument, just
79455         the buffer associated with the argument.  Bug reported by
79456         Simon Josefsson.
79457
79458 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79459
79460         * README: Document assumptions that 'int' is at least 32 bits
79461         wide, that integer arithmetic is 2's complement without overflow,
79462         that there are no holes in integer values, that adding sizes of
79463         two nonoverlapping objects can't overflow, and that all-bits-zero
79464         yields scalar zero.  Fix spelling and capitalization typos.
79465
79466 2003-09-19  Karl Berry  <karl@gnu.org>
79467
79468         * lib/argp.h: update from libc.
79469
79470 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79471
79472         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
79473         to avoid spurious warnings like "AC_RUN_IFELSE was called before
79474         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
79475
79476 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79477
79478         * gnulib-tool: Use "test -h", not "test -L", for portability
79479         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
79480         (tags_regexp): Remove, since \| doesn't conform to POSIX.
79481         (sed_extract_prog): Issue s commands one-by-one, rather than
79482         using \| in one s command.
79483
79484 2003-09-16  Paul Eggert  <eggert@twinsun.com>
79485
79486         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
79487         input error, instead of returning NULL the next time we are called
79488         (and therefore losing track of errno).
79489
79490 2003-09-16  Bruno Haible  <bruno@clisp.org>
79491
79492         * gnulib-tool (func_create_testdir): Warn about duplicated
79493         dependencies.
79494
79495 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79496
79497         * modules/argmatch, modules/fatal, modules/obstack,
79498         modules/xalloc, modules/xgethostname: Sort dependencies by
79499         importance, not alphabetically.
79500
79501 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79502
79503         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
79504         fails, so that the caller gets the proper errno.
79505
79506         * lib/readutmp.c (read_utmp): Likewise.
79507         Check for fstat error.  Close stream and free storage
79508         when failing.
79509
79510 2003-09-14  Karl Berry  <karl@gnu.org>
79511
79512         * config/srclist.txt (strdup.c): disable for c89 changes.
79513
79514 2003-09-14  Jim Meyering  <jim@meyering.net>
79515
79516         * lib/getloadavg.c: Correct cpp indentation.
79517         * lib/strdup.c: Likewise.
79518         * lib/vasnprintf.c: Likewise.
79519
79520 2003-09-14  Bruno Haible  <bruno@clisp.org>
79521
79522         * modules/fwriteerror: New file.
79523         * MODULES.html.sh (func_all_modules): Add fwriteerror.
79524
79525 2003-09-14  Bruno Haible  <bruno@clisp.org>
79526
79527         * lib/fwriteerror.h: New file.
79528         * lib/fwriteerror.c: New file.
79529
79530 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79531
79532         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
79533         modules/xgethostname, modules/xalloc: Depend on exit.
79534
79535 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79536
79537         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
79538
79539         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
79540         and AC_MINIX, too, so that their extensions are available.
79541
79542         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
79543         This macro has been superseded by gl_BACKUPFILE.
79544
79545         More patches to assume C89 or better.
79546
79547         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
79548
79549         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
79550         unconditionally.
79551         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
79552         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
79553         Include <string.h>, <stdlib.h> unconditionally.
79554         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
79555         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
79556         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
79557         headers or for string.h.
79558         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
79559         or strtoul.
79560
79561         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
79562         headers.
79563         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
79564         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79565         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
79566         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
79567         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79568         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
79569         memcpy, memset.
79570         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
79571         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
79572         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
79573         strtol.
79574         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
79575         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
79576         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
79577         strtoul.
79578
79579 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79580
79581         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
79582         * lib/obstack.c [!defined _LIBC]: Likewise.
79583         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
79584         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
79585         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
79586
79587         More changes to assume C89 or better.
79588
79589         * lib/error.c (error_tail): Assume vprintf.
79590
79591         * lib/argmatch.c (getenv): Remove decl.
79592         * lib/progreloc.c (get_full_program_name): Define via prototype.
79593         * lib/setenv.c (clearenv): Likewise.
79594         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
79595         needed.
79596         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
79597         (malloc, memcpy): Remove decls.
79598         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
79599         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
79600         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79601         (memcpy): Remove macro.
79602         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
79603         (__P): Remove.  All uses removed.
79604         (PTR): Remove.  All uses changed to void *.
79605         (CHAR_BIT, NULL): Remove.
79606         (spaces, zeros, memset_space, memset_zero)
79607         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
79608         Remove.
79609         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
79610         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
79611         Define with prototype.
79612         Remove now-unnecessary prototype decl.
79613         (extra_args_spec): Assume ANSI C.  All uses changed.
79614         (extra_args_spec_iso): Remove.
79615         (my_strftime, emacs_strftimeu): Define via prototype.
79616         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
79617         unconditionally.
79618         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
79619         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
79620         (strtoul, strtol): Remove decls.
79621         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
79622         LONG_MAX): Remove.
79623         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79624         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
79625         (LOCALE_PARAM_PROTO): New macro.
79626         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
79627         (INTERNAL (strtol), strtol): Define with a prototype.
79628         (PARAMS): Remove.  All uses removed.
79629         * lib/tempname.c: Include <string.h> unconditionally.
79630         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
79631         * lib/xgethostname.c (main): Define with a prototype.
79632         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
79633         Include <stdlib.h> unconditionally.
79634         (calloc, malloc, realloc, free): Remove decls.
79635         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
79636         Include <stdlib.h> unconditionally.  Sort include file names.
79637         (strtod): Remove.
79638         (xstrtod): Define with a prototype.
79639         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
79640         (strtol, strtoul): Remove decls.
79641
79642 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79643
79644         More patches to assume C89 or better.
79645         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
79646         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
79647         string.h, memchr, STDC_HEADERS.
79648
79649 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79650
79651         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
79652         Include <stdlib.h>, <string.h> unconditionally.
79653         Remove now-unnecessary cast to char *.
79654         * lib/strnlen.c: Include <string.h> unconditionally.
79655         * lib/yesno.c (yesno): Define with a prototype.
79656
79657 2003-09-11  Bruno Haible  <bruno@clisp.org>
79658
79659         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
79660
79661 2003-09-10  Jim Meyering  <jim@meyering.net>
79662
79663         * lib/error.c: Correct indentation of cpp directives.
79664
79665 2003-09-10  Bruno Haible  <bruno@clisp.org>
79666
79667         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
79668         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
79669         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
79670         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
79671         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
79672         <stdlib.h> and <string.h> checks.
79673         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
79674         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
79675
79676 2003-09-10  Bruno Haible  <bruno@clisp.org>
79677
79678         * lib/strcspn.c: Include <string.h> unconditionally.
79679         * lib/strpbrk.c: Include <string.h> unconditionally.
79680         * lib/strstr.c: Include <string.h> unconditionally.
79681         * lib/unicodeio.c: Include <string.h> unconditionally.
79682         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
79683         * lib/unsetenv.c: Likewise.
79684         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
79685         * lib/yesno.c: Include <stdlib.h> unconditionally.
79686         (rpmatch): Add prototype.
79687
79688 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79689
79690         More patches to assume C89 or better.
79691         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
79692         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
79693         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
79694         or for string.h.
79695         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
79696         stdlib.h.
79697         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
79698         C headers.
79699         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
79700         string.h.
79701         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
79702         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
79703         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
79704         or for string.h.
79705         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
79706         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
79707         C headers.
79708         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
79709         memcpy.
79710         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
79711         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
79712         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
79713         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
79714         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
79715         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
79716         string.h, free.
79717         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
79718         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
79719         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
79720         C headers, or for string.h.
79721         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
79722         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
79723         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
79724         headers, memory.h, stdlib.h, string.h, strings.h.
79725         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
79726         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
79727         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
79728         strchr.
79729         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
79730         headers, memory.h, string.h.
79731         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
79732         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
79733         free.
79734         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
79735         headers.
79736         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
79737         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
79738         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
79739         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
79740         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
79741
79742 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79743
79744         More K&R removal.
79745
79746         * lib/acosl.c (main): Use a prototype.
79747         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
79748         tanl.c: Likewise.
79749
79750         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
79751
79752         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
79753         (getopt, etopt_long, getopt_long_only, _getopt_internal)
79754         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
79755         with a prototype.
79756         * lib/getopt.c (const): Remove macro.
79757         Include <string.h> unconditionally.
79758         (my_index): Remove; all uses changed to strchr.
79759         (strlen): Remove decl.
79760         (exchange): Remove forward decl; no longer needed.
79761         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
79762         Define with prototype.
79763         * lib/getopt1.c (const): Remove macro.
79764         (getopt_long, getopt_long_only, main): Define with prototype.
79765
79766         * lib/getugroups.c: Include <string.h> unconditionally.
79767
79768         * lib/getusershell.c: Include <stdlib.h> unconditionally.
79769         (getusershell, setusershell, endusershell, readname, main):
79770         Define with prototypes.
79771
79772         * lib/group-member.c: Include group-member.h first.
79773         Include <stdlib.h> unconditionally.
79774
79775         * lib/hard-locale.c: Include hard-locale.h first.
79776         Include <stdlib.h>, <string.h> unconditionally.
79777
79778         * lib/hash.c (free, malloc): Remove decls.
79779         Include <stdlib.h> unconditionally.
79780
79781         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
79782         (getenv): Do not declare.
79783
79784         * lib/idcache.c: Include <string.h> unconditionally.
79785
79786         * lib/long-options.c: Include long-options.h first, to test interface.
79787         Include <stdlib.h> unconditionally.
79788
79789         * lib/makepath.c: Include makepath.h first, to test interface.
79790         Include <stdlib.h> and <string.h> unconditionally.
79791
79792         * lib/linebuffer.c: Include <stdlib.h>.
79793         (free): Remove decl.
79794
79795         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
79796         stddef.h. rpl_malloc returns void *, not char *.
79797         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
79798         prototype.
79799
79800         * lib/md5.h: Include <limits.h> unconditionally.
79801         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
79802         (__P): Remove; all uses removed.
79803         * lib/md5.c: Include "md5.h" first.
79804         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
79805         md5_buffer, md5_process_bytes, md5_process_block):
79806         Define with prototypes.
79807         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
79808         * lib/sha.c: Include "sha.h" first.
79809         Include <stdlib.h>, <string.h> unconditionally.
79810
79811         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
79812         * lib/memcmp.c (__ptr_t): Likewise.
79813         * lib/memrchr.c (__ptr_t): Likewise.
79814         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
79815         Include <string.h> unconditionally.
79816         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
79817         * lib/memchr.c: Include <stdlib.h> unconditionally.
79818         * lib/memchr.c (LONG_MAX): Remove.
79819         * lib/memrchr.c (LONG_MAX): Likewise.
79820         * lib/memchr.c (__memchr): Define via a prototype.
79821         * lib/memrchr.c (__memrchr): Likewise.
79822         * lib/memcmp.c (__P): Remove, and remove all uses.
79823         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
79824         Remove forward decls; no longer needed.
79825         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
79826         Use types required by C89 in prototype.
79827
79828         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
79829         * lib/savedir.c: Likewise.
79830         * lib/mkdir.c (free): Remove decl.
79831         * lib/rmdir.c (rmdir): Define with a prototype.
79832         * lib/savedir.c: Include savedir.h first, to test interface.
79833
79834         * lib/mktime.c (STDC_HEADERS): Remove.
79835         Include <stdlib.h>, <string.h> unconditionally.
79836
79837         * lib/modechange.c: Include <stdlib.h> unconditionally.
79838         (malloc): Remove decl.
79839
79840         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
79841         (free): Remove decl.
79842
79843         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
79844         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
79845         (This type really should be intptr_t, but that's a C99ism.)
79846         (_obstack_memcpy): Remove: all uses changed to memcpy.
79847         Include <string.h> unconditionally.
79848         (struct obstack): Assume __STDC__ for types of members
79849         chunkfun, freefun, extra_arg.
79850         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
79851         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
79852         obstack_begin, obstack_specify_allocation,
79853         obstack_specify_allocation_with_arg, obstack_chunkfun,
79854         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
79855         Remove unprototyped decls and the macros that use them.
79856         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
79857         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
79858         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
79859         (defined __STDC__ && __STDC__)]:
79860         Remove nonprototyped code.
79861         Include <stdlib.h> unconditionally.
79862         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
79863         _obstack_allocated_p, _obstack_free, obstack_free,
79864         _obstack_memory_used, print_and_abort):
79865         Define using prototypes.
79866         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
79867         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
79868         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
79869         obstack_next_free, obstack_object_size, obstack_room) [0]:
79870         Remove unused, unprototyped code.
79871
79872         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
79873
79874         * lib/physmem.c (physmem_total, physmem_available, main): Define
79875         with prototypes.
79876
79877         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
79878         (main): Define with a prototype.
79879
79880         * lib/posixver.c (getenv): Remove decl.
79881
79882         * lib/putenv.c (malloc): Returns void *, not char *.
79883         Include <string.h> unconditionally.
79884         (strchr, memcpy, NULL): Do not define.
79885
79886         * lib/readtokens.c: Include readtokens.h first, to test interface.
79887         Include <stdlib.h>, <string.h> unconditionally.
79888         (init_tokenbuffer): Define with a prototype.
79889
79890         * lib/regex.c (PARAMS): Remove.  All uses removed.
79891         All uses of _RE_ARGS removed, too.
79892         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79893         unconditionally.
79894         (bzero): Assume memset exists.
79895         (memcmp, memcpy, NULL): Remove.
79896         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
79897         char, or assignments to local vars of type signed char.
79898         (init_syntax_once, PREFIX(extract_number_and_incr),
79899         PREFIX(print_partial_compiled_pattern),
79900         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
79901         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
79902         PREFIX(regex_grow_registers), PREFIX(regex_compile),
79903         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
79904         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
79905         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
79906         wcs_compile_range, byte_compile_range, truncate_wchar,
79907         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
79908         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
79909         count_mbs_length, wcs_re_match_2_internal,
79910         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
79911         PREFIX(alt_match_null_string_p),
79912         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
79913         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
79914         regfree, PREFIX(extract_number)): Define with prototype.  Remove
79915         now-unnecessary declaration, if any.
79916         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
79917         regcomp, regexec):
79918         Remove now-unnecessary casts among pointer types.
79919         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
79920
79921         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
79922         (free): Remove decl.
79923
79924         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
79925
79926         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
79927         (free): Remove decl.
79928
79929         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
79930         * lib/xgetcwd.c: Likewise.
79931
79932         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
79933         (free): Remove decl.
79934
79935         * lib/strchrnul.c (strchrnul): Define with a prototype.
79936         Fix bug: c_in was not converted to char before searching.
79937
79938         The following changes are not K&R related:
79939
79940         * lib/group-member.h: Include <sys/types.h>, so that this file is
79941         self-contained.
79942         * lib/makepath.h: Likewise.
79943
79944         * lib/getusershell.c (readname, default_index, line_size, readname):
79945         Use size_t, not int, for sizes.
79946         (readname): If the size overflows, report an error instead of
79947         looping forever.
79948
79949 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79950
79951         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
79952         libc.
79953
79954 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79955
79956         * README: New section: portability guidelines.
79957
79958 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79959
79960         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
79961         C89 spec.
79962
79963 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79964
79965         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
79966
79967 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79968
79969         Assume C89 or better; remove K&R cruft.
79970         A few of these changes were first proposed by Derek Robert Price
79971         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
79972
79973         * lib/addext.c: Include <string.h> unconditionally.
79974         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79975         Don't declare getenv or malloc.
79976
79977         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79978         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79979         (NULL): Remove.
79980         (find_stack_direction, alloca): Use prototypes.
79981
79982         * lib/atexit.c (atexit): Define using a prototype.
79983
79984         * lib/basename.c, dirname.c, stripslash.c:
79985         Include <string.h> unconditionally.
79986
79987         * lib/bcopy.c: Include <stddef.h>.
79988         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79989
79990         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79991
79992         * lib/error.h (error, error_at_line, error_print_progname)
79993         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79994         * lib/error.c: Include error.h first, to check interface.
79995         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79996         (VA_START): Remove; all uses changeed to va_start.
79997         (exit, strerror): Remove decls.
79998         (error_print_progname): Prototype uncondionally.
79999         Don't include <errno.h>; no longer needed.
80000         (private_strerror): Remove.
80001         (error_tail): Always define.
80002         (error, error_at_line): Assume C89 or better; always use prototypes.
80003         * lib/fatal.c: Include "fatal.h" first, to test interface.
80004         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80005         (VA_START): Remove; all uses changed to va_start.
80006         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
80007         this case.
80008         (exit): Remove decl.
80009         (fatal): Prototype unconditionally.  Assume va_start works.
80010         Abort at end, to pacify gcc.
80011
80012         * lib/euidaccess.c (main): Define with a prototype.
80013
80014         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
80015
80016         * lib/exitfail.c: Include <stdlib.h> unconditionally.
80017
80018         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
80019         prototypes.
80020         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
80021         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
80022         (getenv): Remove decl.
80023         (fnmatch): Define using a prototype.
80024         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
80025         (FCT): Define using a prototype.
80026
80027         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
80028
80029         * lib/gethostname.c: Include <stddef.h>.
80030         (gethostname): Define with prototype.  Length is size_t, not int.
80031
80032 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80033
80034         Assume C89 or better; remove K&R cruft.
80035         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
80036         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
80037         string.h, getenv, malloc.
80038         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
80039         headers.
80040         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
80041         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
80042         do not check for strerror.
80043         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
80044         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
80045         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
80046         do not check for doprnt or vprintf.
80047         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
80048         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
80049
80050 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80051
80052         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
80053         getversion.c should have been removed then, but was accidentally
80054         preserved.
80055
80056         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
80057         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
80058
80059 2003-09-08  Karl Berry  <karl@gnu.org>
80060
80061         * config/config.sub, config.guess, srclistvars.sh: update from savannah
80062                 config, forget about prep.
80063
80064         * config/depcomp, missing: update from automake.
80065
80066 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80067
80068         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
80069         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80070
80071 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80072
80073         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
80074         copy_tm_result.  Bug reported by Simon Josefsson in
80075         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80076
80077 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80078
80079         * m4/time_r.m4: New file.
80080         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
80081         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
80082         is. Check for timegm declaration.
80083         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
80084         Do not check for gmtime_r.
80085         Replace mktime if __mktime_internal does not exist and if mktime
80086         hasn't been replaced already.
80087
80088 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80089
80090         * lib/time_r.c, lib/time_r.h: New files.
80091
80092         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
80093         __localtime_r.
80094         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
80095         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
80096
80097         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
80098         __gmtime_r.
80099         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
80100         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
80101         Include <time_r.h>.
80102
80103         * lib/timegm.c: Switch to glibc implementation, with the following
80104         changes:
80105         [defined HAVE_CONFIG_H]: Include <config.h>.
80106         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
80107         (__mktime_internal) [!defined _LIBC]: New decl.
80108         (__gmtime_r) [!defined _LIBC]: New macro and function.
80109         (timegm): Use a prototype, since gnulib assumes C89.
80110         Do not bother declaring tmp to be const, as it's not really usefu.
80111         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
80112         (timegm): Declare only if HAVE_DECL_TIMEGM.
80113
80114 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80115
80116         * MODULES.html.sh (func_all_modules): Add time_r.
80117         * modules/time_r: New file.
80118         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
80119         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
80120
80121 2003-09-03  Paul Eggert  <eggert@twinsun.com>
80122
80123         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
80124         Bug reported by Lute Kamstra in
80125         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
80126
80127         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
80128         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
80129         course with correspondingly smaller numbers for tomorrow and
80130         yesterday.  From Tadayoshi Funaba.  Originally installed into
80131         sh-utils on 1999-08-07, but the patch got lost (I guess during the
80132         coreutils merge?).
80133
80134 2003-08-31  Simon Josefsson  <jas@extundo.com>
80135
80136         * modules/timegm: New file.
80137         * MODULES.html.sh (func_all_modules): Add timegm.
80138
80139 2003-08-31  Simon Josefsson  <jas@extundo.com>
80140
80141         * m4/timegm.m4: New file.
80142
80143 2003-08-31  Simon Josefsson  <jas@extundo.com>
80144
80145         * lib/timegm.h: New file.
80146         * lib/timegm.c: New file.  Based on
80147         wget-1.8.2/src/http.c:mktime_from_utc.
80148
80149 2003-08-31  Karl Berry  <karl@gnu.org>
80150
80151         * lib/argp.h: update from libc.
80152
80153 2003-08-28  Bruno Haible  <bruno@clisp.org>
80154
80155         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
80156         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
80157         followed by '#define fnmatch fnmatch_posix' gives an error.
80158
80159 2003-08-28  Bruno Haible  <bruno@clisp.org>
80160
80161         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
80162         warning on QNX, which defines O_BINARY to 000000.
80163
80164 2003-08-27  Jim Meyering  <jim@meyering.net>
80165
80166         * m4/mkstemp.m4: Require that the system mkstemp be able to create
80167         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
80168         would fail after 32.  Reported by Danny Levinson.  Details here:
80169         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
80170
80171 2003-08-24  Bruno Haible  <bruno@clisp.org>
80172
80173         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
80174         MSVC7 <stdio.h> is included later.
80175
80176 2003-08-22  Simon Josefsson  <jas@extundo.com>
80177
80178         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
80179
80180 2003-08-20  Karl Berry  <karl@gnu.org>
80181
80182         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
80183
80184 2003-08-20  Bruno Haible  <bruno@clisp.org>
80185
80186         * modules/progname: New file.
80187         * MODULES.html.sh (func_all_modules): Add progname.
80188
80189 2003-08-20  Bruno Haible  <bruno@clisp.org>
80190
80191         * lib/progname.h: New file, from GNU gettext.
80192         * lib/progname.c: New file, from GNU gettext.
80193         * lib/progreloc.c: New file, from GNU gettext.
80194
80195 2003-08-19  Jim Meyering  <jim@meyering.net>
80196
80197         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
80198         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
80199
80200 2003-08-19  Bruno Haible  <bruno@clisp.org>
80201
80202         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
80203         more.
80204
80205 2003-08-19  Bruno Haible  <bruno@clisp.org>
80206
80207         * lib/xstrdup.c: Assume <string.h> exists.
80208
80209 2003-08-18  Paul Eggert  <eggert@twinsun.com>
80210
80211         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
80212         in makefile rules.
80213
80214 2003-08-18  Jim Meyering  <jim@meyering.net>
80215
80216         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
80217         * m4/lib-ld.m4: Likewise.
80218
80219 2003-08-18  Jim Meyering  <jim@meyering.net>
80220
80221         * lib/setenv.h: Indent nested cpp directive.
80222         * lib/vasnprintf.c: Remove trailing blanks.
80223
80224 2003-08-17  Simon Josefsson  <jas@extundo.com>
80225
80226         * modules/xstrndup: New file.
80227         * MODULES.html.sh (func_all_modules): Add xstrndup.
80228
80229 2003-08-17  Simon Josefsson  <jas@extundo.com>
80230
80231         * modules/argp: Fix autoconf macro name. Add more dependencies.
80232
80233 2003-08-17  Simon Josefsson  <jas@extundo.com>
80234
80235         * m4/xstrndup.m4: New file.
80236
80237 2003-08-17  Simon Josefsson  <jas@extundo.com>
80238
80239         * m4/argp.m4: New file.
80240
80241 2003-08-17  Simon Josefsson  <jas@extundo.com>
80242             Bruno Haible  <bruno@clisp.org>
80243
80244         * lib/xstrndup.h: New file.
80245         * lib/xstrndup.c: New file.
80246
80247 2003-08-17  Bruno Haible  <bruno@clisp.org>
80248
80249         * modules/strndup (Files, Include): Add lib/strndup.h.
80250
80251 2003-08-17  Bruno Haible  <bruno@clisp.org>
80252
80253         * modules/euidaccess (Files): Add lib/euidaccess.h.
80254
80255 2003-08-17  Bruno Haible  <bruno@clisp.org>
80256
80257         * lib/strndup.h: New file.
80258
80259 2003-08-17  Bruno Haible  <bruno@clisp.org>
80260
80261         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
80262         like AC_GNU_SOURCE.
80263         * modules/extensions (configure.ac): Comment out the invocation of
80264         gl_USE_SYSTEM_EXTENSIONS.
80265
80266 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80267
80268         Merges from coreutils, etc.
80269         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
80270         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
80271         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
80272         fixing a typo.
80273         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
80274         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
80275
80276 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80277
80278         Document merge from coreutils.
80279         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
80280         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
80281         * modules/utime: Add m4/utimes-null.m4.
80282
80283 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80284
80285         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
80286         space, undoing this 2003-08-12 change:
80287         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
80288
80289 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80290
80291         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
80292         strtoul.c from libc, undoing this 2003-08-12 change:
80293         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
80294
80295 2003-08-16  Jim Meyering  <jim@meyering.net>
80296
80297         Merges from coreutils.
80298         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
80299         prefix.  Adjust cache variables similarly.  Create 500 rather than
80300         just 300 files, to exercise bug on Darwin6.5, too.
80301         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
80302         $missing_dir.
80303         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
80304         AM_SYS_POSIX_TERMIOS.
80305         Reported by mkc@mathdogs.com.
80306         Also change use of $am_cv_sys_posix_termios
80307         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
80308         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
80309         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
80310         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
80311         in /proc/mounts until it finds one with matching device number.  This
80312         is unnecessary when the FILE argument *is* a mount point.  No stat call
80313         is necessary in that case.  So, disable the statvfs-testing code on
80314         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
80315         as RedHat bug# 84846.
80316         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
80317         to 1MB, so as not to render systems with no stack size limit (e.g.,
80318         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
80319         Include <unistd.h>.  On some systems,
80320         it is required for the definition of _SC_PAGESIZE.
80321
80322 2003-08-16  Jim Meyering  <jim@meyering.net>
80323
80324         Merge from coreutils.
80325         * lib/xstrtoimax.c: #else #if -> #elif.
80326         * lib/xstrtoumax.c: Likewise.
80327
80328 2003-08-16  Jim Meyering  <jim@meyering.net>
80329
80330         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
80331         * m4/utimes.m4: Removed.
80332         * m4/utimes-null.m4: Renamed from utimes.m4.
80333
80334         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
80335         to 1MB, so as not to render systems with no stack size limit (e.g.,
80336         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
80337         Include <unistd.h>.  On some systems,
80338         it is required for the definition of _SC_PAGESIZE.
80339
80340 2003-08-16  Jim Meyering  <jim@meyering.net>
80341         and Paul Eggert  <eggert@cs.ucla.edu>
80342
80343         Merges from coreutils, etc.
80344
80345         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
80346         using the latest version from cvs.  This avoids problems with #line
80347         directives using a vendor (Sun) compiler.
80348         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
80349         Don't set GETGROUPS_LIB here; now it's
80350         done via getgroups.m4's wrapper function.
80351         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
80352         rather than just in sh-util/configure.in, so that the
80353         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
80354         same.
80355         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
80356         AC_FUNC_GETLOADAVG where to find getloadavg.c.
80357         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
80358         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
80359         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
80360         Remove code that is now done by the newly-required macros.
80361         Append $(EXEEXT) to DF_PROG.
80362         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
80363         Do not invoke or require the following here,
80364         since prereq.m4 or some gnulib .m4 now does this for us:
80365         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
80366         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
80367         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
80368         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
80369         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
80370         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
80371         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
80372         AC_FUNC_OBSTACK.
80373         Do not replace the following functions, as this is now the job
80374         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
80375         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
80376         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
80377         atexit getpass, strdup, getpagesize.
80378         Replace 'raise'.
80379         Do not check for the following functions, as this is now the job
80380         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
80381         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
80382         setregid.
80383         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
80384         Check for sys/sysctl.h.
80385         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
80386         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
80387         of checking for ssize_t ourselves.
80388
80389         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
80390         Require every macro that gnulib/modules/* suggests for us.
80391         (jm_PREREQ_ADDEXT): New macro.
80392         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
80393         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
80394
80395         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
80396         (gl_PHYSMEM): Use it.
80397         Also check for `table' function.
80398         Check for new headers and functions.
80399         Add check for sys/sysmp.h.
80400         With suggestions from Kaveh Ghazi.
80401         Ignore headers that are present but cannot be compiled.  This
80402         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
80403         C 5.4.
80404
80405 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80406
80407         Document merge from coreutils.
80408         * modules/userspec: Depend on posixver.
80409         * modules/strftime: Depend on tzset.
80410
80411 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80412
80413         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
80414         rather than tab, after '#' in shell-script copyright notices.
80415         Suggested by Bruno Haible.
80416
80417 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80418
80419         * config/srclist-update: Use three spaces, rather than tab, after '#'
80420         in shell-script copyright notices.  Suggested by Bruno Haible.
80421         Remove unnecessary parenthesization in regular expression.
80422
80423 2003-08-15  Jim Meyering  <jim@meyering.net>
80424
80425         Merge from coreutils.
80426         * lib/xgethostname.c: Include <stdlib.h>.
80427         (xghostname): Don't exit for anything other than memory-related
80428         failure; just return NULL.
80429         * lib/userspec.c: Include "posixver.h".
80430         (parse_user_spec): Accept `.' as a separator only
80431         in pre-POSIX-200112 mode.
80432         * lib/strtoimax.c: Use #elif rather than #else #if.
80433         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
80434         Remove function, now that we can rely on a working tzset function.
80435         [!_LIBC]: Ensure that the required autoconf test has been run.
80436         [!defined _NL_CURRENT && HAVE_STRFTIME]:
80437         Use underlying_strftime for %r.
80438         * lib/sha.c: Merge in some clean-up and optimization changes from
80439         glibc.
80440         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
80441         Ensure that it is a multiple of 64.
80442         Rearrange loop exit tests so as to avoid performing an
80443         additional fread after encountering an error or EOF.
80444         * lib/realloc.c: Update copyright date.
80445
80446 2003-08-15  Jim Meyering  <jim@meyering.net>
80447         and Paul Eggert  <eggert@twinsun.com>
80448
80449         Merge from coreutils.
80450         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
80451         member but strut utmpx does not.  Needed for AIX 4.3.3.
80452         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
80453
80454 2003-08-15  Jim Meyering  <jim@meyering.net>
80455         and Paul Eggert  <eggert@cs.ucla.edu>
80456
80457         Merges from coreutils, etc.
80458         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
80459         Require gl_FUNC_TZSET_CLOBBER.
80460         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
80461         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
80462         members.
80463
80464 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80465
80466         Help the merge from coreutils.
80467         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
80468         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
80469         * m4/tzset.m4: Use it too.
80470
80471 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80472
80473         * modules/tzset: New file.
80474
80475 2003-08-14  Jim Meyering  <jim@meyering.net>
80476
80477         Merges from coreutils.
80478         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
80479         variable names, rather than @FNMATCH_H@.
80480         * modules/alloca: Likewise for $(ALLOCA_H).
80481
80482         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
80483         the three copies of the literal target, `fnmatch.h'.
80484         * modules/alloca (alloca.h): Likewise.
80485
80486 2003-08-14  Jim Meyering  <jim@meyering.net>
80487
80488         Merge from coreutils.
80489         * m4/tzset.m4: New file.
80490         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
80491         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
80492         otherwise, AIX 5.1 systems would end up using the latter.
80493         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
80494         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
80495         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
80496         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
80497
80498 2003-08-14  Jim Meyering  <jim@meyering.net>
80499
80500         Merge from coreutils.
80501         * lib/obstack.h: Whitespace changes.
80502         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
80503         and xcalloc return values.
80504         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
80505         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
80506         hang on OSF/1 5.1 for DIR on both local and remote file systems.
80507         Reported by (and fix confirmed by) Nelson H. F. Beebe.
80508         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80509         error from mntctl.
80510         Use mntctl's return value to drive the entry-processing loop, since
80511         we can't rely on the value of the vmt_length member in the last
80512         entry.  On some systems doing so could result in exhausting
80513         virtual memory.  Based in part on a patch from Mike Jetzer.
80514
80515 2003-08-14  Jim Meyering  <jim@meyering.net>
80516         and Paul Eggert  <eggert@twinsun.com>
80517
80518         Merges from coreutils, plus other fixes.
80519         * lib/physmem.c: Merge in portability changes from gcc/libiberty
80520         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
80521         for credits and details.  Thanks to Kaveh Ghazi for helping
80522         to keep these files in sync.
80523         (ARRAY_SIZE): Define it.
80524         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
80525         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
80526         (memcasecmp): Don't assume size_t fits in unsigned int.
80527         Remove casts and duplicate code.
80528         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
80529         (memcpy): Remove definition.
80530         Merge in some clean-up and optimization changes from glibc.
80531         [BLOCKSIZE]: Move definition to top of file.
80532         Ensure that it is a multiple of 64.
80533         Rearrange loop exit tests so as to avoid performing an
80534         additional fread after encountering an error or EOF.
80535         * lib/md5.h (md5_uintptr): Define.
80536         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
80537         return to the initial working directory.  Preserve errno
80538         for caller.
80539         * lib/idcache.c: Include "xalloc.h".
80540         (xmalloc, xrealloc): Remove decls.
80541         (getuser): Remove casts no longer required in C89.
80542         * lib/human.c: Include stdio.h, for sprintf.
80543         * lib/group-member.c: Include "xalloc.h".
80544         (xmalloc, xrealloc): Remove decls.
80545         (get_group_info): Remove casts no longer required in C89.
80546         * lib/getusershell.c (readname): Remove casts no longer required in
80547         C89.
80548         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
80549         * lib/getline.c: Whitespace fix, from coreutils.
80550
80551 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80552
80553         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
80554         Check for isascii.
80555
80556         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80557         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80558         Undo previous (whitespace-only) change.
80559
80560 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80561
80562         * lib/exclude.c: Include <ctype.h>
80563         (IN_CTYPE_DOMAIN): New macro.
80564         (is_space): New fn.
80565         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
80566         and empty lines.
80567
80568         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80569         Undo previous (whitespace-only) change.
80570
80571 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80572
80573         * config/srclist-update: Change update back to the old behavior,
80574         leaving whitespace alone.  Use one 'sed' command rather than a
80575         pipeline.
80576         (fixlicense): Now a variable, not a function.
80577         (remove_trailing_blanks): Remove.
80578         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
80579         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80580         Undo previous (whitespace-only) change.
80581
80582 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80583
80584         Merge from coreutils.
80585         * modules/euidaccess: Add lib_SOURCES, include for new
80586         file euidaccess.h
80587
80588 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80589
80590         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80591         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80592         Normalize leading white space and remove trailing white space.
80593
80594         Merge from coreutils
80595         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
80596
80597         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
80598         0.12.1.  These files are now being upgraded automatically by
80599         ../config/srclist-update.
80600
80601 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80602
80603         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80604         Normalize leading white space and remove trailing white space.
80605         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
80606         notice, as per ../config/srclist-update.
80607
80608         Merge from coreutils.
80609         * lib/euidaccess.h: New file.
80610         * lib/euidaccess.c: Include it.
80611         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
80612         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
80613         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
80614
80615 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80616
80617         * config/srclist-update: Add copyright notice.
80618         (remove_id_lines, remove_trailing_blanks): New constants.
80619         (fixfile): Use them to normalize spacing a bit in copied files.
80620         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80621         Normalize leading white space and remove trailing white space.
80622
80623         * config/texinfo.tex: Sync with texinfo.
80624
80625         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
80626         strtoul.c from libc, to merge coreutils whitespace changes.
80627
80628         * config/srclist.txt: Get the following m4 files from gettext:
80629         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
80630         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
80631         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
80632         wint_t.m4.
80633
80634 2003-08-12  Karl Berry  <karl@gnu.org>
80635
80636         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
80637         been made.
80638
80639 2003-08-11  Paul Eggert  <eggert@twinsun.com>
80640
80641         * modules/gnu-source, m4/gnu-source.m4:
80642         Remove; we're assuming Autoconf 2.54 or later now.
80643         Suggested by Bruno Haible.
80644         * MODULES.html.sh (func_all_modules): Remove gnu-source.
80645
80646 2003-08-11  Bruno Haible  <bruno@clisp.org>
80647
80648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
80649
80650 2003-08-11  Bruno Haible  <bruno@clisp.org>
80651
80652         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
80653         (vasnprintf): Use it instead of wcslen.
80654
80655 2003-08-11  Bruno Haible  <bruno@clisp.org>
80656
80657         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
80658         value to ensure that _Bool promotes to int. Use #define for _Bool when
80659         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
80660
80661 2003-08-10  Karl Berry  <karl@gnu.org>
80662
80663         * lib/regex.h: update from libc (whitespace fix).
80664
80665 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80666
80667         Merge some files from coreutils.  These changes were
80668         originally made by Jim Meyering.
80669         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
80670         many older Unixes require this.
80671         * lib/alloca.c (alloca): Remove cast to argument of free;
80672         no longer needed in C89.
80673         * lib/alloca_.h, regex.h: Fix white space to match
80674         what GNU indent does.
80675
80676 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80677
80678         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
80679         apparently Emacs's Unicode mode got confused before my 2003-08-05
80680         checkin.
80681
80682 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80683
80684         * m4/extensions.m4: New file.
80685         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
80686         Require gl_USE_SYSTEM_EXTENSIONS.
80687         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
80688         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
80689
80690 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80691
80692         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
80693         * modules/extensions, modules/gnu-source: New files.
80694         * modules/timespec, modules/unlocked-io: Depend on extensions.
80695
80696 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80697
80698         * modules/restrict: New file.
80699         * MODULES.html.sh (func_all_modules): Add restrict.
80700         * modules/regex: Depend on restrict.
80701
80702 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80703
80704         * m4/restrict.m4: New file.
80705         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
80706
80707 2003-08-07  Bruno Haible  <bruno@clisp.org>
80708
80709         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
80710         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
80711
80712 2003-08-07  Bruno Haible  <bruno@clisp.org>
80713
80714         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
80715         makes the module 'getndelim2' compatible with the module 'getline'.
80716
80717 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80718
80719         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
80720         byte with "\201" to avoid glitches when editing that source file
80721         with multi-gnome-terminal.
80722
80723 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80724
80725         * lib/bumpalloc.h: Remove.
80726
80727 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80728
80729         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
80730         * modules/bumpalloc: Remove.
80731
80732 2003-08-04  Paul Eggert  <eggert@twinsun.com>
80733
80734         * lib/getloadavg.c: Change copyright notice and spacing to conform to
80735         GNU coding style.
80736
80737         Merge from coreutils.
80738         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
80739         1. From glibc.
80740         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
80741         from Karl Berry, implemented by Jim Meyering.
80742         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
80743         from Dmitry V. Levin.
80744         Remove anachronistic cast of xrealloc.
80745         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
80746         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
80747         type. Otherwise, it wouldn't compile with at least /bin/cc on
80748         ymp-cray-unicos9.0.2.X.
80749         Combine two mostly-identical uses of alloca into one.
80750         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
80751
80752 2003-08-04  Dave Love  <d.love@dl.ac.uk>
80753
80754         [From Emacs.]
80755
80756         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
80757         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
80758         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
80759         obsolete NLIST_NAME_UNION.
80760         [__GNU__]: Undef BSD and FSCALE.
80761         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
80762
80763 2003-08-03  Paul Eggert  <eggert@twinsun.com>
80764
80765         * lib/stdbool_.h (_Bool): Make it signed char, instead of
80766         an enum type, so that it's guaranteed to promote to int.  See:
80767         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
80768
80769 2003-08-03  Karl Berry  <karl@gnu.org>
80770
80771         * config/depcomp: update from automake.
80772
80773 2003-07-31  Paul Eggert  <eggert@twinsun.com>
80774
80775         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
80776         (strerror): Don't assume that a printable int fits in 14 bytes.
80777
80778 2003-07-31  Bruno Haible  <bruno@clisp.org>
80779
80780         * modules/getpass-gnu: New file.
80781         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
80782
80783 2003-07-31  Bruno Haible  <bruno@clisp.org>
80784
80785         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
80786
80787 2003-07-24  Karl Berry  <karl@gnu.org>
80788
80789         * config/missing: update from automake.
80790
80791 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
80792             Bruno Haible  <bruno@clisp.org>
80793
80794         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
80795         * lib/getline.c (getline, getdelim): Likewise.
80796         Remove _GNU_SOURCE define; now it's defined in config.h through
80797         m4/getline.m4.
80798
80799 2003-07-23  Karl Berry  <karl@gnu.org>
80800
80801         * config/config.sub: update from prep.
80802
80803 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80804
80805         * modules/xalloc (Depends-on): Add exitfail.
80806         * modules/xmemcoll: Likewise.
80807
80808 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80809
80810         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
80811         over-parenthesization in macros.
80812
80813         Sync with coreutils.
80814
80815         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
80816         required by C99.
80817
80818         Use `exit_failure' for xalloc and xmemcoll instead of their own
80819         private exit-failure variables.
80820         * lib/xalloc.h (xalloc_exit_failure): Remove.
80821         * lib/xmalloc.c: Likewise.  Include exitfail.h.
80822         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
80823         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
80824         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
80825         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
80826
80827 2003-07-20  Jim Meyering  <jim@meyering.net>
80828
80829         * modules/closeout (Depends-on): Add exitfail.
80830         Suggestion from Bruno Haible.
80831
80832 2003-07-19  Karl Berry  <karl@gnu.org>
80833
80834         * config/config.sub: update from prep.
80835
80836 2003-07-18  Paul Eggert  <eggert@twinsun.com>
80837
80838         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
80839         Remove.
80840         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
80841         to test that it can stand by itself.  Include "exitfail.h".
80842         Clients should set exit_failure instead.
80843         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
80844
80845 2003-07-18  Bruno Haible  <bruno@clisp.org>
80846
80847         * modules/getndelim2: New file.
80848         * modules/getline: Share files with module getndelim2.
80849         * modules/getnline: Depend on getndelim2 instead of sharing files with
80850         it. Add getnline.c to lib_SOURCES.
80851         * MODULES.html.sh (func_all_modules): Add getndelim2.
80852
80853 2003-07-18  Bruno Haible  <bruno@clisp.org>
80854
80855         * m4/getndelim2.m4: New file.
80856         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
80857         invoke gl_PREREQ_GETNDELIM2.
80858         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
80859         gl_PREREQ_GETNDELIM2.
80860         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
80861         gl_GETNDELIM2.
80862
80863 2003-07-18  Bruno Haible  <bruno@clisp.org>
80864
80865         * lib/getndelim2.h: New file.
80866         * lib/getndelim2.c: Make into a module of its own. Include config.h,
80867         getndelim2.h.
80868         (getndelim2): Make non-static. Change return type to ssize_t.
80869         * lib/getline.h: Change argument names.
80870         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
80871         * lib/getnline.c: Include getndelim2.h.
80872
80873 2003-07-18  Andreas Schwab  <schwab@suse.de>
80874
80875         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
80876
80877 2003-07-17  Karl Berry  <karl@gnu.org>
80878
80879         * config/config.sub: update from prep.
80880
80881 2003-07-17  Bruno Haible  <bruno@clisp.org>
80882
80883         * modules/getnline: New file.
80884         * modules/getline: Add lib/getndelim2.c to source file list.
80885         * MODULES.html.sh (func_all_modules): Add getnline.
80886
80887 2003-07-17  Bruno Haible  <bruno@clisp.org>
80888
80889         * m4/getnline.m4: New file.
80890
80891 2003-07-17  Bruno Haible  <bruno@clisp.org>
80892
80893         * m4/Makefile.am.in: Remove file.
80894         * m4/Makefile.am: Remove file.
80895         * m4/Makefile.in: Remove file.
80896
80897 2003-07-17  Bruno Haible  <bruno@clisp.org>
80898
80899         * lib/getnline.h: New file.
80900         * lib/getnline.c: New file.
80901         * lib/getndelim2.c: New file, extracted from getline.c.
80902         (getndelim2): Renamed from getdelim2, with added nmax argument.
80903         * lib/getline.c: Include getndelim2.c.
80904         (getdelim2): Moved out to getndelim2.c.
80905         (getline, getdelim): Update.
80906
80907 2003-07-17  Bruno Haible  <bruno@clisp.org>
80908
80909         * lib/Makefile.am: Remove file.
80910         * lib/Makefile.in: Remove file.
80911
80912 2003-07-17  Bruno Haible  <bruno@clisp.org>
80913
80914         * configure.in: Remove file.
80915         * Makefile.in: Remove file.
80916
80917 2003-07-17  Bruno Haible  <bruno@clisp.org>
80918
80919         * MODULES.html.sh: Put the </BODY> right before </HTML>.
80920
80921 2003-07-16  Karl Berry  <karl@gnu.org>
80922
80923         * config/srclist-update: was running fixlicense twice, which caused
80924                 texinfo.tex to be nullified for some reason.  Simplify,
80925                 $gplsrc is no longer needed as far as I can see?
80926
80927 2003-07-16  Jim Meyering  <jim@meyering.net>
80928
80929         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
80930
80931 2003-07-15  Paul Eggert  <eggert@twinsun.com>
80932
80933         * config/srclist.txt: Get the following files from gettext-runtime/intl
80934         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
80935         ref-del.sin.  From Bruno Haible.
80936         * config/srclist-update (fixfile): Change grep pattern again, since the
80937         previous fix didn't work (there was another trailing $).  Use
80938         '[$]' to escape the $s.
80939
80940 2003-07-15  Karl Berry  <karl@gnu.org>
80941
80942         * lib/vasnprintf.c: update from gettext.
80943
80944 2003-07-15  Karl Berry  <karl@gnu.org>
80945
80946         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
80947         gets expanded when surrounded by '$'.
80948
80949 2003-07-15  Jim Meyering  <jim@meyering.net>
80950
80951         * modules/save-cwd: Don't depend on error.  From Derek Price.
80952
80953 2003-07-15  Jim Meyering  <jim@meyering.net>
80954
80955         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
80956
80957 2003-07-14  Simon Josefsson  <jas@extundo.com>
80958
80959         * modules/mempcpy: New file.
80960         * MODULES.html.sh (func_all_modules): Add mempcpy.
80961
80962 2003-07-14  Simon Josefsson  <jas@extundo.com>
80963
80964         * m4/mempcpy.m4: New file.
80965
80966 2003-07-14  Simon Josefsson  <jas@extundo.com>
80967
80968         * lib/mempcpy.h: New file.
80969         * lib/mempcpy.c: New file.
80970
80971 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80972
80973         * modules/getdate, modules/posixtm: Depend on mktime.
80974
80975 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80976
80977         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80978         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80979         unicodeio.c, unicodeio.h, unlocked-io.h:
80980         Switch from LGPL to GPL.
80981
80982 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80983
80984         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80985         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80986         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80987         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80988         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80989         updated automatically by ../config/srclist-update.  This changes
80990         their license from LPGL to GPL.
80991
80992 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80993
80994         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80995         assumed to refer to the root of the most recent stable gettext version.
80996         * config/srclistvars.sh: Add defaults for eggert.
80997         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80998         Match "This program" as well as "The program".  This is needed
80999         for gettext.
81000
81001 2003-07-14  Jim Meyering  <jim@meyering.net>
81002
81003         Don't emit diagnostics.  Let callers do that.
81004         * lib/save-cwd.c: Don't include "error.h".
81005         (save_cwd): Don't call error.  Ensure that errno is valid
81006         when returning nonzero.
81007
81008         * lib/save-cwd.h (restore_cwd): Update prototype.
81009         * lib/save-cwd.c (restore_cwd): Remove two parameters.
81010         Simplify.  Don't call error upon failure.  Let callers do that.
81011         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
81012         when auditing is enabled.  But don't bother updating the #if.
81013
81014 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
81015
81016         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
81017         it breaks C++ compilation.
81018         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
81019
81020 2003-07-10  Simon Josefsson  <jas@extundo.com>
81021
81022         * modules/strchrnul (Makefile.am): Add strchrnul.h.
81023
81024 2003-07-10  Jim Meyering  <jim@meyering.net>
81025
81026         * m4/clock_time.m4: Remove trailing blank.
81027         * m4/intmax_t.m4: Likewise.
81028
81029 2003-07-10  Jim Meyering  <jim@meyering.net>
81030
81031         * lib/vasnprintf.c: Remove trailing blanks.
81032         Make cpp indentation consistent.
81033
81034 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81035
81036         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
81037         posixver.c, strftime.c, strnlen.c, strverscmp.c:
81038         Switch from LGPL to GPL.
81039
81040 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81041
81042         * config/srclist.txt: Sort sublists.  Add
81043         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
81044         that differ from gnulib for one reason or another; we'd like this list
81045         to be smaller but for now let's document what we have.
81046
81047 2003-07-08  Paul Eggert  <eggert@twinsun.com>
81048
81049         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
81050         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
81051         and sweeter "eval x=$x".
81052         * config/srclist.txt: Get lib/argp* from glibc.
81053
81054 2003-07-07  Paul Eggert  <eggert@twinsun.com>
81055
81056         * lib/mktime.c: Fix some boundary cases and remove need for floating
81057         point.
81058
81059         Issue a compile-time diagnostic if time_t is floating point, or if
81060         two's complement arithmetic is not in effect, or if arithmetic
81061         right shift does not propagate the sign.  These assumptions were
81062         all in the original code but they weren't checked.
81063
81064         (TIME_T_MIDPOINT, verify): New macros.
81065         (__isleap): Remove; it has integer overflow problems.
81066         (leapyear): New function, without those problems.
81067         (ydhms_tm_diff): Remove; splitting into two parts.
81068         (ydhms_diff): New function, containing the arithmetic part of
81069         the old ydhms_tm_diff function.  Issue a compile-time
81070         diagnostic if we are not using C99 integer division.
81071         Avoid casts when possible.
81072         (guess_time_tm): New function, containing the checking part of
81073         the old ydhms_tm_diff function.  Return the new value, rather than
81074         the difference between it and the old.  Accept a new argument T
81075         so that *T specifies the old value.  Check for overflow in the result.
81076
81077         (__mktime_internal): Use a time_t offset, not a long int offset.
81078         This undoes the 2003-06-04 change, which is no longer needed now
81079         that we have better overflow checking.
81080         (localtime_offset): Likewise.
81081
81082         (__mktime_internal): Avoid harmful overflow on hosts where time_t
81083         and long are 64-bit but int is only 32-bit.
81084         (ydhms_diff): Use long int to store year1 and yday1.
81085         Issue a compile-time diagnostic if long int is not wide enough.
81086
81087         (__mktime_internal): Use long int to store adjusted year and yday.
81088         Use plain C rather than preprocessor commands, if that doesn't
81089         affect efficiency.
81090         Check for overflow (and try to repair) after each probe
81091         rather than checking only at the very end.  This avoids some bugs
81092         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
81093         does not equal GMT offset at maximum time).
81094         Use integer to check for overflow rather than floating point; this
81095         is more portable to non-IEEE hosts, and is a tad faster.
81096         When we detect that we are oscillating between two values,
81097         don't check whether tm_isdst has the requested value, since
81098         we already know the answer.  When tm_isdst has the wrong value,
81099         use a different heuristic to find the right one, based on the
81100         extreme values actually observed in practice in tz2003a,
81101         rather than the (overly optimistic) "previous 3 calendar quarters".
81102
81103         (not_equal_tm, print_tm, check_result): Use "const T" rather than
81104         "T const" to accommodate glibc style.
81105         (check_result): Use less-confusing report format.  "long" -> "long int.
81106         (main): Likewise.
81107         Don't loop if the iteration overflows time_t.
81108         Allow a negative step in the iteration.
81109
81110 2003-07-06  Karl Berry  <karl@gnu.org>
81111
81112         * config/depcomp: update from automake.
81113         * config/config.sub: update from prep.
81114
81115 2003-07-03  Karl Berry  <karl@gnu.org>
81116
81117         * config/config.guess: update from prep.
81118
81119 2003-07-01  Paul Eggert  <eggert@twinsun.com>
81120
81121         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
81122         xreadlink.c now includes it unconditionally.
81123
81124 2003-07-01  Paul Eggert  <eggert@twinsun.com>
81125
81126         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
81127         having it depend on HAVE_SYS_TYPES_H.
81128
81129 2003-07-01  Bruno Haible  <bruno@clisp.org>
81130
81131         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
81132         <sys/types.h> should be sufficient.
81133         Reported by Paul Eggert.
81134
81135 2003-06-26  Karl Berry  <karl@gnu.org>
81136
81137         * config/depcomp: update from automake.
81138
81139 2003-06-26  Bruno Haible  <bruno@clisp.org>
81140
81141         * modules/human: Depend on module stdbool.
81142
81143 2003-06-25  Bruno Haible  <bruno@clisp.org>
81144
81145         * modules/readlink: New file.
81146         * modules/xreadlink: Depend on it.
81147         * MODULES.html.sh (func_all_modules): Add readlink.
81148
81149 2003-06-25  Bruno Haible  <bruno@clisp.org>
81150
81151         * m4/readlink.m4: New file.
81152
81153 2003-06-25  Bruno Haible  <bruno@clisp.org>
81154
81155         * lib/readlink.c: New file.
81156
81157 2003-06-22  Karl Berry  <karl@gnu.org>
81158
81159         * config/srclist.txt: update mkinstalldirs from automake.
81160         * config/mkinstalldirs: update.
81161
81162 2003-06-22  Bruno Haible  <bruno@clisp.org>
81163
81164         Portability to mingw32.
81165         * m4/ssize_t.m4: New file, from GNU gettext.
81166         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
81167         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
81168
81169 2003-06-22  Bruno Haible  <bruno@clisp.org>
81170
81171         * modules/safe-read: Add m4/ssize_t.m4.
81172         * modules/xreadlink: Add m4/ssize_t.m4.
81173
81174 2003-06-20  Bruno Haible  <bruno@clisp.org>
81175
81176         Assume C89, so PARAMS isn't needed.
81177         * lib/unicodeio.h (PARAMS): Remove.
81178         * lib/unicodeio.c: Don't use PARAMS.
81179
81180 2003-06-18  Karl Berry  <karl@gnu.org>
81181
81182         * config/config.{guess,sub}: update from prep.
81183
81184 2003-06-18  Jim Meyering  <jim@meyering.net>
81185
81186         Merge changes from coreutils.
81187         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
81188         Remove explicit declarations of xmalloc and realloc.
81189         Include xalloc.h.
81190         (read_utmp): Remove anachronistic cast of xmalloc.
81191
81192 2003-06-17  Paul Eggert  <eggert@twinsun.com>
81193
81194         Assume C89, so PARAMS isn't needed.
81195         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
81196         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
81197         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
81198         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
81199         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
81200         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
81201         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
81202         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
81203         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
81204         lib/xstrtod.h, lib/xstrtol.h: Likewise.
81205         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
81206         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
81207         no longer needed. Anyway, config.h should always be included before any
81208         other file.
81209
81210 2003-06-11  Simon Josefsson  <jas@extundo.com>
81211
81212         * modules/sysexits: New file.
81213         * MODULES.html.sh (func_all_modules): Add sysexits.
81214
81215 2003-06-11  Simon Josefsson  <jas@extundo.com>
81216
81217         * lib/sysexit_.h: New file.
81218
81219 2003-06-11  Derek Price  <derek@ximbiot.com>
81220
81221         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
81222         necessary.
81223
81224 2003-06-11  Bruno Haible  <bruno@clisp.org>
81225
81226         * m4/sysexits.m4: New file.
81227
81228 2003-06-10  Simon Josefsson  <jas@extundo.com>
81229
81230         * lib/argp.h: New file, from glibc.
81231         * lib/argp-ba.c: New file, from glibc.
81232         * lib/argp-eexst.c: New file, from glibc.
81233         * lib/argp-fmtstream.c: New file, from glibc.
81234         * lib/argp-fmtstream.h: New file, from glibc.
81235         * lib/argp-fs-xinl.c: New file, from glibc.
81236         * lib/argp-help.c: New file, from glibc.
81237         * lib/argp-namefrob.h: New file, from glibc.
81238         * lib/argp-parse.c: New file, from glibc.
81239         * lib/argp-pv.c: New file, from glibc.
81240         * lib/argp-pvh.c: New file, from glibc.
81241         * lib/argp-xinl.c: New file, from glibc.
81242
81243 2003-06-10  Simon Josefsson  <jas@extundo.com>
81244
81245         * modules/strchrnul: New file.
81246
81247 2003-06-10  Simon Josefsson  <jas@extundo.com>
81248
81249         * modules/argp: New file.
81250
81251 2003-06-10  Simon Josefsson  <jas@extundo.com>
81252
81253         * m4/strchrnul.m4: New file.
81254
81255 2003-06-10  Simon Josefsson  <jas@extundo.com>
81256
81257         * lib/strchrnul.h: New file.
81258         * lib/strchrnul.c: New file.
81259
81260 2003-06-10  Bruno Haible  <bruno@clisp.org>
81261
81262         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
81263
81264 2003-06-07  Karl Berry  <karl@gnu.org>
81265
81266         * config/config.{guess,sub}: update from prep.
81267
81268 2003-06-07  Jim Meyering  <jim@meyering.net>
81269
81270         * modules/strtod: Use $(...) notation, not @...@ for
81271         AC_REPLACE'd variables.
81272         * modules/localcharset: Likewise.
81273
81274 2003-06-07  Jim Meyering  <jim@meyering.net>
81275
81276         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
81277         in place of my name in the copyright comment.
81278         Remove definition and uses of __P.
81279
81280         From coreutils.
81281         * lib/stat.c: Don't declare xmalloc explicitly.
81282         Instead, include "xalloc.h".
81283         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
81284         xrealloc, and xcalloc return values.
81285         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
81286         Improve comment.
81287         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
81288
81289 2003-06-07  Bruno Haible  <bruno@clisp.org>
81290
81291         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
81292         avoid AC_CONFIG_LINKS.
81293         * modules/fnmatch (Makefile.am): Use explicit creation rule for
81294         fnmatch.h, to avoid AC_CONFIG_LINKS.
81295         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
81296
81297 2003-06-07  Bruno Haible  <bruno@clisp.org>
81298
81299         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
81300         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
81301         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
81302         directory.
81303         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
81304         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
81305         directory.
81306
81307 2003-06-06  Jim Meyering  <jim@meyering.net>
81308
81309         Merge from coreutils.
81310         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
81311         Consolidate declarations and initializations of *_base* locals.
81312
81313         Merge from coreutils.
81314         This avoids a core dump on systems without GNU putenv,
81315         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
81316         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
81317         (unsetenv): New static function, from GNU libc.
81318         (rpl_putenv): Use it.
81319
81320         * lib/modechange.c: Remove trailing blanks.
81321
81322         Merge from coreutils.
81323         * lib/fsusage.c: Remove declaration of statfs.
81324         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
81325
81326         * lib/posixtm.c: Include <stdbool.h> unconditionally.
81327
81328 2003-06-06  Jim Meyering  <jim@meyering.net>
81329
81330         * lib/stdbool_.h: Renamed from stdbool.h.in.
81331
81332 2003-06-06  Jim Meyering  <jim@meyering.net>
81333             Bruno Haible  <bruno@clisp.org>
81334
81335         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
81336         Adjust Makefile.am snippet not to redirect directly to target.
81337         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
81338
81339 2003-06-05  Paul Eggert  <eggert@twinsun.com>
81340
81341         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
81342         mismatch, look in future quarters as well as past.  This fixes a
81343         bug when processing fall-backwards gaps immediately after a long
81344         period of daylight-saving time.
81345
81346         * lib/mktime.c: Assume freestanding C89 or better.
81347         (HAVE_LIMITS_H): Remove.  Assume it's 1.
81348         (__P): Remove; not used.
81349         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
81350         (mktime, not_equal_tm, print_tm, check_result,
81351         main): Use prototypes.  Use const * where appropriate.
81352         (main): Fix typo in testing code that uncovered by above changes.
81353         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
81354
81355 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81356
81357         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
81358         locale.h, localeconv.  This merges changes from coreutils.
81359
81360         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
81361         It can be removed after the next Autoconf is released.
81362         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
81363         needed.
81364
81365 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81366
81367         * lib/mktime.c: Fix Debian bug 177940
81368         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
81369         (localtime_offset): Now long int, not time_t, because we want it
81370         to be guaranteed to be signed.  All uses changed.
81371         (__mktime_internal): If overflow would occur when adding offset,
81372         don't add it.
81373
81374         Merge 'human' changes from coreutils.  Rewrite to support
81375         locale-specific notations like thousands separators.
81376         * lib/human.c: Simplify authorship notice.
81377         Include human.h immediately after config.h.
81378         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
81379         <limits.h>: Do not include, since human.h does.
81380         (SIZE_MAX, UINTMAX_MAX): New macros.
81381         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
81382         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
81383         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
81384         (power_letter): Renamed from suffixes.
81385         (generate_suffix_backwards): Remove.
81386         (adjust_value): Now takes int style (because of human.h changes)
81387         and long double value (for greater precision on some platforms).
81388         (group_number): New function.
81389         (human_readable): Use it.  Use integer options, not enum.
81390         Put the options before the sizes in the arg list.
81391         Support all the new options.
81392         The old human_readable function has been removed;
81393         use inttostr.h instead.
81394         (human_readable, default_block_size, humblock):
81395         Use uintmax_t, not int, for block sizes.
81396         (human_readable_inexact, block_size_types): Remove.
81397         (block_size_opts): New constant.
81398         (human_options): Renamed from human_block_size, with new signature
81399         that allows block sizes up to UINTMAX_MAX.  All callers changed.
81400         * lib/human.h: Add copyright and authorship notice.
81401         Include <limits.h> and <stdbool.h> unconditionally.
81402         (PARAMS): Remove.  All uses removed.
81403         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
81404         (enum human_inexact_style): Remove tag; now a nameless enum.
81405         (human_floor, human_ceiling, human_round_to_even): Now have
81406         values 2, 0, 1 rather than -1, 1, 0.
81407         (human_group_digits, human_suppress_point_zero, human_autoscale,
81408         human_base_1024, human_SI, human_B): New constants.
81409         (human_readable_inexact, human_block_size): Remove.
81410         (human_readable): Size args are now uintmax_t, not int.
81411         (human_options): New decl.
81412
81413         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
81414         unnecessary now that we assume C89 or better.  This change
81415         imported from coreutils.
81416
81417         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81418         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
81419         in the 2003-05-30 sync from glibc.
81420
81421         .h files should stand alone, but we shouldn't include <sys/types.h>
81422         if we can get away with just <stddef.h>.
81423
81424         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
81425         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
81426         rather than <sys/types.h>, as we merely need size_t.
81427         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
81428         to get size_t.
81429         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
81430         Include <stdio.h>, to get FILE.
81431         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
81432         memcasecmp.h has included <stddef.h> and all we need is size_t.
81433         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
81434         our interface, instead of including <sys/types.h>
81435
81436 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81437
81438         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
81439         now, as glibc mktime is buggy on non-glibc systems.
81440
81441 2003-06-03  Karl Berry  <karl@gnu.org>
81442
81443         * config/config.sub: update from prep.
81444
81445 2003-06-02  Paul Eggert  <eggert@twinsun.com>
81446
81447         [from coreutils]
81448         Fix some minor time-related bugs with POSIX time arguments.
81449         Some valid time stamps were being rejected (notably -1, and
81450         time stamps before 1900 on 64-bit hosts).  And some invalid
81451         time stamps were being accepted, e.g. September 31.
81452
81453         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
81454         that we can return (time_t) -1 successfully.
81455         * lib/posixtm.c: Likewise.
81456         [HAVE_STDBOOL_H]: Include <stdbool.h>.
81457         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
81458         (t): Remove static var.
81459         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
81460         of static var.  All uses changed.
81461         (year): Do not reject years before 1900; they can occur with
81462         64-bit time_t.
81463         (posix_time_parse): Do not check for out-of-range components;
81464         that is now the caller's responsibility, since our checks were
81465         only approximations.
81466         (posixtime): Use mktime to check for out-of-range components,
81467         since it knows them exactly.
81468         If mktime returns (time_t) -1, check whether an error actually occurred
81469         by invoking localtime on -1.
81470         (main) [TEST_POSIXTIME]: Check for input data errors, and report
81471         posixtime failures better.
81472         Improve the test data (in comments only).
81473
81474 2003-06-02  Karl Berry  <karl@gnu.org>
81475
81476         * config/mkinstalldirs (version): new variable.
81477         (--version): new option.
81478         (usage): improve message.
81479
81480 2003-05-30  Karl Berry  <karl@gnu.org>
81481
81482         * lib/mktime.c: update from libc.
81483
81484 2003-05-30  Bruno Haible  <bruno@clisp.org>
81485
81486         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
81487         * config/config.rpath: Upgrade to gettext-0.12.1.
81488
81489 2003-05-30  Bruno Haible  <bruno@clisp.org>
81490
81491         * m4/gettext.m4: Upgrade to gettext-0.12.1.
81492         * m4/nls.m4: New file, from gettext-0.12.1.
81493         * m4/po.m4: New file, from gettext-0.12.1.
81494         * m4/progtest.m4: Upgrade to gettext-0.12.1.
81495
81496 2003-05-30  Bruno Haible  <bruno@clisp.org>
81497
81498         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
81499         * lib/localcharset.h: Likewise.
81500         * lib/localcharset.c: Likewise.
81501
81502 2003-05-29  Karl Berry  <karl@gnu.org>
81503
81504         * config/config.rpath: update from gettext.
81505
81506 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81507
81508         Assume the headers required for C89 freestanding compilers.
81509         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
81510         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
81511         * m4/human.m4 (gl_HUMAN): Likewise.
81512         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
81513         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
81514         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81515         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
81516         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81517         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
81518
81519 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81520
81521         Assume the headers required for C89 freestanding compilers.
81522         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
81523         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
81524         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
81525         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
81526         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
81527         define, since <limits.h> is guaranteed to do that.
81528         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
81529         * lib/exclude.c: Include <stdbool.h> unconditionally.
81530         * lib/tempname.c: Include <stddef.h> unconditionally.
81531         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
81532         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
81533         <stddef.h> does that.
81534         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
81535         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
81536         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
81537         needed.
81538         * lib/xstrtol.c: Likewise.
81539         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
81540         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
81541
81542         * lib/addext.c (addext): Use assignment rather than cast, to avoid
81543         warnings on some platforms.
81544
81545         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81546         arbitrarily.
81547
81548 2003-05-26  Jim Meyering  <jim@meyering.net>
81549
81550         Merge in a change from coreutils:
81551         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
81552         that is guaranteed to be `no'.  Use `no_such_member' to indicate
81553         that condition, rather than `-1' which is slightly misleading.
81554         Change the name of the cache variable to have the gl_ prefix.
81555         Prompted by a patch from Richard Dawe for DJGPP.
81556
81557 2003-05-24  Karl Berry  <karl@gnu.org>
81558
81559         * config/config.guess: update from prep.
81560
81561 2003-05-22  Karl Berry  <karl@gnu.org>
81562
81563         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
81564
81565 2003-05-20  Karl Berry  <karl@gnu.org>
81566
81567         * config/config.guess: update from prep.
81568
81569 2003-05-18  Karl Berry  <karl@gnu.org>
81570
81571         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
81572         might actually be set by the user.
81573
81574         * config/depcomp, install-sh, mdate-sh: update from automake.
81575
81576 2003-05-17  Bruno Haible  <bruno@clisp.org>
81577
81578         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
81579         invalid expansion for AC_EGREP_CPP.
81580         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
81581         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
81582         Suggested by Akim Demaille <akim@epita.fr> in
81583         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
81584
81585 2003-05-12  Jim Meyering  <jim@meyering.net>
81586
81587         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
81588         the space-padded-by-default conversion specifiers, %e, %k, %l.
81589
81590 2003-05-12  Bruno Haible  <bruno@clisp.org>
81591
81592         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
81593         the string is longer than 4 KB.
81594
81595 2003-05-11  Karl Berry  <karl@gnu.org>
81596
81597         * config/config.{guess,sub}: update from prep.
81598
81599 2003-05-09  Bruno Haible  <bruno@clisp.org>
81600
81601         * modules/error: Add m4/strerror_r.m4 to file list.
81602
81603 2003-05-03  Bruno Haible  <bruno@clisp.org>
81604
81605         Upgrade to Unicode-4.0.
81606         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
81607         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
81608         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
81609         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
81610         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
81611         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
81612         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
81613         Change width of U+E0100..U+E01EF from 1 to 0.
81614
81615 2003-04-25  Jim Meyering  <jim@meyering.net>
81616
81617         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
81618         of type size_t, not int.
81619
81620 2003-04-25  Bruno Haible  <bruno@clisp.org>
81621
81622         * lib/copy-file.c: Include <stddef.h>, for size_t.
81623
81624 2003-04-21  Paul Eggert  <eggert@twinsun.com>
81625
81626         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
81627         code which expansion is under static control.  Patch imported from
81628         Akim Demaille's patch to Bison; see
81629         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
81630
81631 2003-04-14  Bruno Haible  <bruno@clisp.org>
81632
81633         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
81634
81635 2003-04-11  Jim Meyering  <jim@meyering.net>
81636
81637         Merge changes from Coreutils.
81638
81639         2003-03-22  Jim Meyering  <jim@meyering.net>
81640
81641         * lib/strftime.c (widen): Cast alloca return value to proper type.
81642
81643         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
81644
81645         From GNU libc.
81646         * lib/strftime.c (my_strftime): Handle very large width
81647         specifications for numeric values correctly.  Improve checks for
81648         overflow.
81649
81650         2003-01-19  Jim Meyering  <jim@meyering.net>
81651
81652         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
81653         definitions.
81654         (nl_get_alt_digit) [! defined my_strftime]: Define.
81655         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
81656         _nl_get_alt_digit and _nl_get_walt_digit.
81657
81658         * lib/strftime.c (my_strftime): Merge in locale-related changes from
81659         libc. These changes have no effect outside of _LIBC.
81660
81661 2003-04-10  Bruno Haible  <bruno@clisp.org>
81662
81663         * modules/findprog: New file.
81664         * MODULES.html.sh (func_all_modules): Add it.
81665
81666 2003-04-10  Bruno Haible  <bruno@clisp.org>
81667
81668         * m4/findprog.m4: New file.
81669         * m4/eaccess.m4: New file.
81670
81671 2003-04-10  Bruno Haible  <bruno@clisp.org>
81672
81673         * lib/findprog.h: New file, from GNU gettext.
81674         * lib/findprog.c: New file, from GNU gettext.
81675
81676 2003-04-05  Jim Meyering  <jim@meyering.net>
81677
81678         Merge changes from Coreutils.
81679
81680         * lib/exclude.h (PARAMS): Remove definition and uses.
81681         * lib/exclude.c: Remove uses of `PARAMS'.
81682
81683         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
81684         Add test-cases for DOS filenames. Declare program_name.
81685         (main): Set up program_name.  Patch by Rich Dawe.
81686
81687         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81688         error from mntctl.
81689         Use mntctl's return value to drive the entry-processing loop, since
81690         we can't rely on the value of the vmt_length member in the last
81691         entry.  On some systems doing so could result in exhausting
81692         virtual memory.  Based in part on a patch from Mike Jetzer.
81693
81694 2003-04-04  Bruno Haible  <bruno@clisp.org>
81695
81696         * modules/linebreak: New file.
81697         * MODULES.html.sh (func_all_modules): Add it.
81698
81699 2003-04-04  Bruno Haible  <bruno@clisp.org>
81700
81701         * m4/linebreak.m4: New file.
81702
81703 2003-04-04  Bruno Haible  <bruno@clisp.org>
81704
81705         * lib/linebreak.h: New file, from GNU gettext.
81706         * lib/linebreak.c: New file, from GNU gettext with slight
81707         modifications.
81708         * lib/lbrkprop.h: New file, from GNU gettext.
81709
81710 2003-04-03  Bruno Haible  <bruno@clisp.org>
81711
81712         * modules/utf8-ucs4: New file.
81713         * modules/utf16-ucs4: New file.
81714         * modules/ucs4-utf8: New file.
81715         * modules/ucs4-utf16: New file.
81716         * MODULES.html.sh (func_all_modules): Add them.
81717
81718 2003-04-03  Bruno Haible  <bruno@clisp.org>
81719
81720         * m4/utf-ucs4.m4: New file.
81721         * m4/ucs4-utf.m4: New file.
81722
81723 2003-04-03  Bruno Haible  <bruno@clisp.org>
81724
81725         * lib/utf8-ucs4.h: New file, from GNU gettext.
81726         * lib/utf16-ucs4.h: New file, from GNU gettext.
81727         * lib/ucs4-utf8.h: New file, from GNU gettext.
81728         * lib/ucs4-utf16.h: New file, from GNU gettext.
81729
81730 2003-04-02  Bruno Haible  <bruno@clisp.org>
81731
81732         * modules/binary-io: New file.
81733         * MODULES.html.sh (func_all_modules): Add it.
81734
81735 2003-04-02  Bruno Haible  <bruno@clisp.org>
81736
81737         * lib/binary-io.h: New file, from GNU gettext.
81738
81739 2003-04-01  Bruno Haible  <bruno@clisp.org>
81740
81741         * modules/pathname: New file.
81742         * MODULES.html.sh (func_all_modules): Add it.
81743
81744 2003-04-01  Bruno Haible  <bruno@clisp.org>
81745
81746         * lib/pathname.h: New file, from GNU gettext.
81747         * lib/concatpath.c: New file, from GNU gettext.
81748
81749 2003-03-30  Bruno Haible  <bruno@clisp.org>
81750
81751         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
81752
81753 2003-03-30  Bruno Haible  <bruno@clisp.org>
81754
81755         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
81756         function chown() doesn't exist.
81757
81758 2003-03-28  Bruno Haible  <bruno@clisp.org>
81759
81760         * modules/copy-file: New file.
81761         * MODULES.html.sh (func_all_modules): Add it.
81762
81763 2003-03-28  Bruno Haible  <bruno@clisp.org>
81764
81765         * m4/copy-file.m4: New file.
81766
81767 2003-03-28  Bruno Haible  <bruno@clisp.org>
81768
81769         * lib/copy-file.h: New file, from GNU gettext.
81770         * lib/copy-file.c: New file, from GNU gettext.
81771
81772 2003-03-18  Jim Meyering  <jim@meyering.net>
81773
81774         * lib/quote.c (quote_n): Fix typo in comment.
81775
81776 2003-03-18  Bruno Haible  <bruno@clisp.org>
81777
81778         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
81779         checking.
81780         * m4/onceonly_2_57.m4: Likewise.
81781
81782 2003-03-17  Bruno Haible  <bruno@clisp.org>
81783
81784         * m4/onceonly.m4: Require autoconf 2.54 or newer.
81785         (m4_quote): Remove macro.
81786         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
81787
81788 2003-03-14  Jim Meyering  <jim@meyering.net>
81789
81790         Merge changes from Coreutils.
81791         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
81792         to be const, in order to avoid warnings.
81793         (obstack_room): Likewise.
81794         (obstack_empty_p): Likewise.
81795
81796 2003-03-14  Bruno Haible  <bruno@clisp.org>
81797
81798         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
81799         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
81800
81801 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81802
81803         Merge changes from Bison.
81804         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
81805         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
81806         when compiling Bison 1.875's `bitset bset = obstack_alloc
81807         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
81808         * lib/hash.c: Include <stdbool.h> unconditionally.
81809
81810 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81811
81812         * m4/onceonly.m4 (m4_quote): New macro.
81813         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
81814         Quote AC_FOREACH variable-expansions properly.
81815
81816 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81817
81818         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
81819
81820 2003-03-09  Paul Eggert  <eggert@twinsun.com>
81821
81822         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
81823         Reported by Bruce Becker; see:
81824         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
81825
81826 2003-03-03  Paul Eggert  <eggert@twinsun.com>
81827             Bruno Haible  <bruno@clisp.org>
81828
81829         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
81830         Reported by John Hughes, see
81831         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
81832
81833 2003-02-20  Bruno Haible  <bruno@clisp.org>
81834
81835         * MODULES.html.sh (func_all_modules): Add poll.
81836
81837 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81838
81839         * modules/poll: New file.
81840
81841 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81842
81843         * lib/poll_.h: New file.
81844         * lib/poll.c: New file.
81845
81846 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81847
81848         * m4/poll.m4: New file.
81849
81850 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81851
81852         * modules/mathl: New file.
81853
81854 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81855
81856         * lib/mathl.h: New file.
81857         * lib/acosl.c: New file.
81858         * lib/asinl.c: New file.
81859         * lib/atanl.c: New file.
81860         * lib/ceill.c: New file.
81861         * lib/cosl.c: New file.
81862         * lib/expl.c: New file.
81863         * lib/floorl.c: New file.
81864         * lib/frexpl.c: New file.
81865         * lib/ldexpl.c: New file.
81866         * lib/logl.c: New file.
81867         * lib/sincosl.c: New file.
81868         * lib/sinl.c: New file.
81869         * lib/sqrtl.c: New file.
81870         * lib/tanl.c: New file.
81871         * lib/trigl.c: New file.
81872         * lib/trigl.h: New file.
81873
81874 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81875
81876         * m4/mathl.m4: New file.
81877
81878 2003-02-18  Bruno Haible  <bruno@clisp.org>
81879
81880         * MODULES.html.sh (func_all_modules): Add mathl.
81881
81882 2003-02-17  Bruno Haible  <bruno@clisp.org>
81883
81884         * modules/mkdtemp: New module.
81885         * MODULES.html.sh (func_all_modules): Add it.
81886
81887 2003-02-17  Bruno Haible  <bruno@clisp.org>
81888
81889         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
81890
81891 2003-02-17  Bruno Haible  <bruno@clisp.org>
81892
81893         * lib/mkdtemp.h: New file, from GNU gettext.
81894         * lib/mkdtemp.c: New file, from GNU gettext.
81895
81896 2003-02-02  Jim Meyering  <jim@meyering.net>
81897
81898         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
81899         e.g. glibc-2.2.93.
81900
81901 2003-01-31  Bruno Haible  <bruno@clisp.org>
81902
81903         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
81904         'rpl_rename'.
81905         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
81906         'rpl_strnlen'.
81907         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
81908         'rpl_strtod'.
81909         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
81910         'rpl_utime'.
81911
81912 2003-01-31  Bruno Haible  <bruno@clisp.org>
81913
81914         * lib/rename.c: #undef rename before defining rpl_rename.
81915         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
81916
81917 2003-01-30  Bruno Haible  <bruno@clisp.org>
81918
81919         * modules/vasnprintf, modules/vasprintf: New modules.
81920         * MODULES.html.sh (func_all_modules): Add them.
81921
81922 2003-01-30  Bruno Haible  <bruno@clisp.org>
81923
81924         * m4/signed.m4: New file, from GNU gettext.
81925         * m4/longdouble.m4: New file, from GNU gettext.
81926         * m4/wchar_t.m4: New file, from GNU gettext.
81927         * m4/wint_t.m4: New file, from GNU gettext.
81928         * m4/vasnprintf.m4: New file.
81929         * m4/vasprintf.m4: New file.
81930
81931 2003-01-30  Bruno Haible  <bruno@clisp.org>
81932
81933         * lib/printf-args.h: New file, from GNU gettext.
81934         * lib/printf-args.c: New file, from GNU gettext.
81935         * lib/printf-parse.h: New file, from GNU gettext.
81936         * lib/printf-parse.c: New file, from GNU gettext.
81937         * lib/vasnprintf.h: New file, from GNU gettext.
81938         * lib/vasnprintf.c: New file, from GNU gettext.
81939         * lib/asnprintf.c: New file, from GNU gettext.
81940         * lib/vasprintf.h: New file, from GNU gettext with modifications.
81941         * lib/vasprintf.c: New file, from GNU gettext.
81942         * lib/asprintf.c: New file, from GNU gettext.
81943
81944 2003-01-29  Bruno Haible  <bruno@clisp.org>
81945
81946         * modules/stpncpy: New module.
81947         * MODULES.html.sh (func_all_modules): Add it.
81948
81949 2003-01-29  Bruno Haible  <bruno@clisp.org>
81950
81951         * m4/stpncpy.m4: New file.
81952
81953 2003-01-29  Bruno Haible  <bruno@clisp.org>
81954
81955         * lib/stpncpy.h: New file, from GNU gettext with modifications.
81956         * lib/stpncpy.c: New file, from GNU gettext with modifications.
81957
81958 2003-01-28  Bruno Haible  <bruno@clisp.org>
81959
81960         * modules/c-ctype: New module.
81961         * MODULES.html.sh (func_all_modules): Add it.
81962
81963 2003-01-28  Bruno Haible  <bruno@clisp.org>
81964
81965         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
81966         Paul Eggert.
81967         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
81968         Paul Eggert.
81969
81970 2003-01-27  Bruno Haible  <bruno@clisp.org>
81971
81972         * modules/xsetenv: New module.
81973         * MODULES.html.sh (func_all_modules): Add it.
81974
81975 2003-01-27  Bruno Haible  <bruno@clisp.org>
81976
81977         * lib/xsetenv.h: New file, from GNU gettext.
81978         * lib/xsetenv.c: New file, from GNU gettext.
81979
81980 2003-01-23  Jim Meyering  <jim@meyering.net>
81981
81982         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81983         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81984
81985 2003-01-23  Bruno Haible  <bruno@clisp.org>
81986
81987         * modules/minmax: New module.
81988         * MODULES.html.sh (func_all_modules): Add it.
81989
81990 2003-01-23  Bruno Haible  <bruno@clisp.org>
81991
81992         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81993         Eggert.
81994
81995 2003-01-22  Bruno Haible  <bruno@clisp.org>
81996
81997         * modules/exit: New module.
81998         * MODULES.html.sh (func_all_modules): Add it.
81999
82000 2003-01-22  Bruno Haible  <bruno@clisp.org>
82001
82002         * lib/exit.h: New file, from GNU gettext.
82003
82004 2003-01-19  Bruno Haible  <bruno@clisp.org>
82005
82006         * gnulib-tool: Recognize option --extract-maintainer.
82007         (func_get_maintainer): New function.
82008         * modules/*: Add Maintainer entry.
82009
82010 2003-01-16  Jim Meyering  <jim@meyering.net>
82011
82012         * m4/regex.m4: The `regex' struct is both input and output.
82013         Initialize it before each use.  Patch by Tim Waugh.
82014
82015 2003-01-16  Bruno Haible  <bruno@clisp.org>
82016
82017         * MODULES.html.sh: Add a table of contents. Add the module name as
82018         leftmost column. Add hyperlinks.
82019
82020 2003-01-15  Bruno Haible  <bruno@clisp.org>
82021
82022         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
82023
82024 2003-01-15  Bruno Haible  <bruno@clisp.org>
82025
82026         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
82027         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
82028         suffix.
82029
82030 2003-01-15  Bruno Haible  <bruno@clisp.org>
82031
82032         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
82033
82034 2003-01-15  Bruno Haible  <bruno@clisp.org>
82035
82036         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
82037         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
82038
82039 2003-01-14  Jim Meyering  <jim@meyering.net>
82040
82041         * lib/same.c (same_name): Tweak a comment.
82042
82043 2003-01-14  Bruno Haible  <bruno@clisp.org>
82044
82045         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
82046         when a string comparison is sufficient.
82047
82048 2003-01-14  Bruno Haible  <bruno@clisp.org>
82049
82050         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
82051         'unsigned int'.
82052
82053 2003-01-14  Bruno Haible  <bruno@clisp.org>
82054
82055         * lib/hash-pjw.c: Add comment about low quality of this function.
82056
82057 2003-01-13  Bruno Haible  <bruno@clisp.org>
82058
82059         * modules/stpcpy: Distribute lib/stpcpy.h.
82060         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
82061
82062 2003-01-13  Bruno Haible  <bruno@clisp.org>
82063
82064         * modules/*: Add a description.
82065         * modules/strpbrk: Fix Makefile.am snippet.
82066         * modules/strtoimax: Fix dependencies.
82067         * modules/strtoumax: Likewise.
82068
82069 2003-01-13  Bruno Haible  <bruno@clisp.org>
82070
82071         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
82072         * modules/alloca (Makefile.am): All object files depend on alloca.h.
82073         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
82074
82075 2003-01-13  Bruno Haible  <bruno@clisp.org>
82076
82077         * gnulib-tool (func_create_testdir): Store config/* files in the main
82078         directory.
82079         * config.rpath: Move to ...
82080         * config/config.rpath: ... here.
82081         * modules/gettext: Contains config/config.rpath, not config.rpath.
82082         * modules/iconv: Likewise.
82083
82084 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82085
82086         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82087         to avoid collisions with libcurses and libreadline.
82088
82089         * m4/getstr.m4: Remove.
82090         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
82091
82092 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82093
82094         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82095         to avoid collisions with libcurses and libreadline.
82096
82097         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
82098         * lib/getstr.h, getstr.c: Remove.
82099         * lib/getline.c: Include "getline.h", to check interface.
82100         Move body of old getstr.c here: this defines MIN_CHUNK and
82101         declares getdelim2, which is renamed from getstr.
82102         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
82103
82104         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
82105         All uses changed.
82106         * lib/linebuffer.h: Likewise.
82107         (readline): Remove backward-compatibility macro.
82108
82109 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82110
82111         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82112         to avoid collisions with libcurses and libreadline.
82113         * getstr: Remove.
82114         * MODULES.html.sh: Remove getstr.
82115         * modules/getline: Depend on unlocked-io, not getstr.
82116
82117 2003-01-12  Jim Meyering  <jim@meyering.net>
82118
82119         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
82120
82121 2003-01-10  Bruno Haible  <bruno@clisp.org>
82122
82123         * modules/alloca: Change Makefile.am requirements. Simplify Include
82124         requirements. Add lib/alloca_.h to file list.
82125
82126 2003-01-10  Bruno Haible  <bruno@clisp.org>
82127
82128         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
82129
82130 2003-01-10  Bruno Haible  <bruno@clisp.org>
82131
82132         * lib/alloca_.h: New file.
82133         * lib/getdate.y: Unconditionally include alloca.h.
82134         * lib/makepath.c: Likewise.
82135         * lib/setenv.c: Likewise.
82136         * lib/userspec.c: Likewise.
82137
82138 2003-01-09  Karl Berry  <karl@gnu.org>
82139
82140         * MODULES.html.sh: include `dirname $0` in PATH, to find
82141         gnulib-tool.
82142
82143 2003-01-09  Bruno Haible  <bruno@clisp.org>
82144
82145         * modules/stdbool: Change configure.ac, Makefile.am requirements.
82146         Simplify Include requirements. Add lib/stdbool.h.in to file list.
82147
82148 2003-01-09  Bruno Haible  <bruno@clisp.org>
82149
82150         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
82151
82152 2003-01-09  Bruno Haible  <bruno@clisp.org>
82153
82154         * lib/stdbool.h.in: New file.
82155
82156 2003-01-09  Bruno Haible  <bruno@clisp.org>
82157
82158         * gnulib-tool (func_all_modules): Ignore files ending in ~.
82159         * MODULES.html.sh: Likewise.
82160
82161 2003-01-08  Jim Meyering  <jim@meyering.net>
82162
82163         * lib/full-write.c: Undefine and define-away `const' after inclusion
82164         of errno.h, not before.  Suggestion from Bruno Haible.
82165
82166 2003-01-08  Bruno Haible  <bruno@clisp.org>
82167
82168         * modules/full-read: Depend on full-write.
82169
82170 2003-01-08  Bruno Haible  <bruno@clisp.org>
82171
82172         * lib/safe-read.c: Include specification header first, to ensure its
82173         selfcontainedness.
82174         * lib/full-write.c: Likewise.
82175
82176 2003-01-07  Jim Meyering  <jim@meyering.net>
82177
82178         * lib/full-write.c: Rework so that it may serve to define full_read,
82179         too.
82180         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
82181
82182 2003-01-07  Bruno Haible  <bruno@clisp.org>
82183
82184         * lib/strtoimax.c: Include <stdint.h> as an alternative to
82185         <inttypes.h>.
82186         * lib/xstrtol.h: Likewise.
82187         * lib/xstrtoimax.c: Likewise.
82188         * lib/xstrtoumax.c: Likewise.
82189         * lib/human.h: Likewise.
82190
82191         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
82192         on systems that have <inttypes.h> but not <stdint.h>.
82193
82194 2003-01-07  Bruno Haible  <bruno@clisp.org>
82195
82196         * MODULES.html.sh: Add copyright notice.
82197         (missed_files): Omit CVS directory entries.
82198         (func_module): Make it work with sed-3.02.
82199         * MODULES.txt: Remove file.
82200
82201 2003-01-06  Jim Meyering  <jim@meyering.net>
82202
82203         * lib/version-etc.c: Update year in translatable copyright string.
82204
82205 2003-01-03  Karl Berry  <karl@gnu.org>
82206
82207         * config/config.{guess,sub}: update from prep.
82208
82209 2003-01-02  Karl Berry  <karl@gnu.org>
82210
82211         * doc/COPYING.DOC: belatedly updated to 1.2.
82212
82213 2003-01-01  Karl Berry  <karl@gnu.org>
82214
82215         * gnulib-tool (func_verify_module): report module name $module in
82216         error message, not $1.
82217         * gnulib-tool (create-testdir): don't complain if destdir couldn't
82218         be created, only if it doesn't exist.
82219         * gnulib-tool (last_checkin_date): don't expand the $Date here.
82220
82221 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82222
82223         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
82224
82225 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82226
82227         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
82228         memcmp if strcoll doesn't work.
82229
82230 2002-12-31  Bruno Haible  <bruno@clisp.org>
82231
82232         * lib/utime.c (utime_null): No need to call ftruncate if the file was
82233         nonempty.
82234
82235 2002-12-31  Bruno Haible  <bruno@clisp.org>
82236
82237         * lib/memcoll.c (STRCOLL): New macro.
82238         (memcoll): Use it.
82239
82240 2002-12-31  Bruno Haible  <bruno@clisp.org>
82241
82242         * lib/localcharset.h: New file.
82243         * lib/localcharset.c: Include it.
82244         * lib/unicodeio.c: Likewise.
82245
82246 2002-12-31  Bruno Haible  <bruno@clisp.org>
82247
82248         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
82249         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
82250
82251 2002-12-31  Bruno Haible  <bruno@clisp.org>
82252
82253         * lib/getline.h: Include <stddef.h>, for size_t.
82254
82255         * lib/unicodeio.h: Include <stddef.h>, for size_t.
82256         * lib/unicodeio.c: Don't include <stddef.h>.
82257
82258 2002-12-31  Bruno Haible  <bruno@clisp.org>
82259
82260         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
82261         HAVE_TM_ZONE.
82262
82263 2002-12-24  Karl Berry  <karl@gnu.org>
82264
82265         * config/config.guess: update from prep.
82266
82267 2002-12-24  Bruno Haible  <bruno@clisp.org>
82268
82269         General infrasructure.
82270         * m4/README: Rewritten.
82271         * m4/onceonly.m4: New file.
82272         * m4/onceonly_2_57.m4: New file.
82273
82274         Module atexit.
82275         * m4/atexit.m4: New file.
82276
82277         Module strtod.
82278         * m4/strtod.m4: New file.
82279
82280         Module strtol.
82281         * m4/strtol.m4: New file.
82282
82283         Module strtoul.
82284         * m4/strtoul.m4: New file.
82285
82286         Module memchr.
82287         * m4/memchr.m4: New file.
82288
82289         Module memcmp.
82290         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
82291         (jm_FUNC_MEMCMP): Invoke it.
82292
82293         Module memcpy.
82294         * m4/memcpy.m4: New file.
82295
82296         Module memmove.
82297         * m4/memmove.m4: New file.
82298
82299         Module memset.
82300         * m4/memset.m4: New file.
82301
82302         Module strcspn.
82303         * m4/strcspn.m4: New file.
82304
82305         Module strpbrk.
82306         * m4/strpbrk.m4: New file.
82307
82308         Module strstr.
82309         * m4/strstr.m4: New file.
82310
82311         Module strerror.
82312         * m4/strerror.m4: New file.
82313
82314         Module mktime.
82315         * m4/mktime.m4: Renamed from jm-mktime.m4.
82316         (gl_PREREQ_MKTIME): New macro.
82317         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
82318
82319         Module malloc.
82320         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
82321         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
82322         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
82323
82324         Module realloc.
82325         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
82326         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
82327         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
82328
82329         Module strftime.
82330         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
82331         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
82332         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
82333         gl_TM_GMTOFF.
82334         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
82335
82336         Module xalloc.
82337         * m4/xalloc.m4: New file.
82338
82339         Module alloca.
82340         * m4/alloca.m4: New file.
82341
82342         Module putenv.
82343         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
82344         (jm_FUNC_PUTENV): Invoke it.
82345
82346         Module setenv.
82347         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
82348         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
82349         when invoked twice.
82350         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
82351         gt_FUNC_SETENV.
82352
82353         Module memrchr.
82354         * m4/memrchr.m4: New file.
82355
82356         Module stpcpy.
82357         * m4/stpcpy.m4: New file.
82358
82359         Module strcase.
82360         * m4/strcase.m4: New file.
82361
82362         Module strdup.
82363         * m4/strdup.m4: New file.
82364
82365         Module strnlen.
82366         * m4/strnlen.m4: New file.
82367
82368         Module strndup.
82369         * m4/strndup.m4: New file.
82370
82371         Module xstrtod.
82372         * m4/xstrtod.m4: New file.
82373
82374         Module xstrtol.
82375         * m4/xstrtol.m4: New file.
82376
82377         Module getdate.
82378         * m4/getdate.m4: New file.
82379
82380         Module unlocked-io.
82381         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
82382         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
82383         * m4/jm-glibc-io.m4n: Remove file.
82384
82385         Module long-options.
82386         * m4/long-options.m4: New file.
82387
82388         Module md5.
82389         * m4/md5.m4: New file.
82390
82391         Module sha.
82392         * m4/sha.m4: New file.
82393
82394         Module getstr.
82395         * m4/getstr.m4: New file.
82396
82397         Module getline.
82398         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
82399         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
82400         <sys/types.h>, for size_t. Use the function name gnu_getline, not
82401         simply getline. Infoke gl_PREREQ_GETLINE.
82402
82403         Module obstack.
82404         * m4/obstack.m4: New file.
82405
82406         Module hash.
82407         * m4/hash.m4: New file.
82408
82409         Module readtokens.
82410         * m4/readtokens.m4: New file.
82411
82412         Module strverscmp.
82413         * m4/strverscmp.m4: New file.
82414
82415         Module stdbool.
82416         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
82417         OSF/1.
82418
82419         Module strtoll.
82420         * m4/strtoll.m4: New file.
82421
82422         Module strtoull.
82423         * m4/strtoull.m4: New file.
82424
82425         Module strtoimax.
82426         * m4/strtoimax.m4: New file.
82427
82428         Module strtoumax.
82429         * m4/strtoumax.m4: New file.
82430
82431         Module xstrtoimax.
82432         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
82433         jm_AC_PREREQ_XSTRTOIMAX.
82434         Moved the strtol prerequisites to strtol.m4.
82435         Moved the strtoll prerequisites to strtoll.m4.
82436         Moved the strtoimax prerequisites to strtoimax.m4.
82437
82438         Module xstrtoumax.
82439         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
82440         jm_AC_PREREQ_XSTRTOUMAX.
82441         Moved the strtoul prerequisites to strtoul.m4.
82442         Moved the strtoull prerequisites to strtoull.m4.
82443         Moved the strtoumax prerequisites to strtoumax.m4.
82444
82445         Module chown.
82446         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
82447         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
82448
82449         Module dup2.
82450         * m4/dup2.m4: New file.
82451
82452         Module ftruncate.
82453         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
82454         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
82455
82456         Module getgroups.
82457         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
82458         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
82459
82460         Module gettimeofday.
82461         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
82462         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
82463         gl_PREREQ_GETTIMEOFDAY.
82464
82465         Module mkdir.
82466         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
82467         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
82468
82469         Module mkstemp.
82470         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
82471         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
82472         jm_AC_TYPE_UINTMAX_T.
82473         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
82474
82475         Module stat.
82476         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
82477         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
82478
82479         Module lstat.
82480         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
82481         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
82482
82483         Module timespec.
82484         * m4/timespec.m4 (gl_TIMESPEC): New macro.
82485         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
82486         * m4/st_mtim.m4: Indentation.
82487
82488         Module nanosleep.
82489         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
82490         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
82491         gl_PREREQ_NANOSLEEP.
82492
82493         Module regex.
82494         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
82495         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
82496         (gl_REGEX): New macro.
82497
82498         Module rename.
82499         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
82500         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
82501
82502         Module rmdir.
82503         * m4/rmdir.m4: New file.
82504
82505         Module utime.
82506         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
82507         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
82508         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
82509
82510         Module dirname.
82511         * m4/dirname.m4: New file.
82512
82513         Module getopt.
82514         * m4/getopt.m4: New file.
82515
82516         Module unistd-safer.
82517         * m4/unistd-safer.m4: New file.
82518
82519         Module fnmatch.
82520         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
82521         declaration.
82522         (gl_PREREQ_FNMATCH_EXTRA): New macro.
82523         (gl_FUNC_FNMATCH_POSIX): New macro.
82524         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
82525         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
82526         simply fnmatch.
82527
82528         Module exclude.
82529         * m4/exclude.m4: New file.
82530
82531         Module human.
82532         * m4/human.m4: New file.
82533
82534         Module acl.
82535         * m4/acl.m4: Nop.
82536
82537         Module backupfile.
82538         * m4/backupfile.m4: New file.
82539         * m4/d-ino.m4: Indentation.
82540
82541         Module fsusage.
82542         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
82543         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
82544         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
82545
82546         Module dirfd.
82547         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
82548         requirements.
82549
82550         Module euidaccess.
82551         * m4/euidaccess.m4: New file.
82552
82553         Module file-type.
82554         * m4/file-type.m4: New file.
82555
82556         Module fileblocks.
82557         * m4/fileblocks.m4: New file.
82558
82559         Module filemode.
82560         * m4/filemode.m4: New file.
82561
82562         Module isdir.
82563         * m4/isdir.m4: New file.
82564
82565         Module lchown.
82566         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
82567         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
82568
82569         Module makepath.
82570         * m4/makepath.m4: New file.
82571
82572         Module modechange.
82573         * m4/modechange.m4: New file.
82574
82575         Module mountlist.
82576         * m4/mountlist.m4: New file.
82577         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
82578         Indentation.
82579
82580         Module path-concat.
82581         * m4/path-concat.m4: New file.
82582
82583         Module pathmax.
82584         * m4/pathmax.m4: New file.
82585
82586         Module same.
82587         * m4/same.m4: New file.
82588
82589         Module save-cwd.
82590         * m4/save-cwd.m4: New file.
82591
82592         Module savedir.
82593         * m4/savedir.m4: New file.
82594
82595         Module xgetcwd.
82596         * m4/xgetcwd.m4: New file.
82597         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
82598
82599         Module xreadlink.
82600         * m4/xreadlink.m4: New file.
82601
82602         Module safe-read.
82603         * m4/safe-read.m4: New file.
82604
82605         Module safe-write.
82606         * m4/safe-write.m4: New file.
82607
82608         Module closeout.
82609         * m4/closeout.m4: New file.
82610
82611         Module stdio-safer.
82612         * m4/stdio-safer.m4: New file.
82613
82614         Module getpass.
82615         * m4/getpass.m4: New file.
82616
82617         Module getugroups.
82618         * m4/getugroups.m4: New file.
82619
82620         Module group-member.
82621         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
82622         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
82623
82624         Module idcache.
82625         * m4/idcache.m4: New file.
82626
82627         Module userspec.
82628         * m4/userspec.m4: New file.
82629
82630         Module gettime.
82631         * m4/clock_time.m4: New file.
82632         * m4/gettime.m4: New file.
82633
82634         Module settime.
82635         * m4/settime.m4: New file.
82636
82637         Module posixtm.
82638         * m4/posixtm.m4: New file.
82639
82640         Module gethostname.
82641         * m4/gethostname.m4: New file.
82642
82643         Module canon-host.
82644         * m4/canon-host.m4: New file.
82645
82646         Module gettext.
82647         * m4/codeset.m4: New file, from gettext-0.11.5.
82648         * m4/gettext.m4: New file, from gettext-0.11.5.
82649         * m4/glibc21.m4: New file, from gettext-0.11.5.
82650         * m4/iconv.m4: New file, from gettext-0.11.5.
82651         * m4/intdiv0.m4: New file, from gettext-0.11.5.
82652         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
82653         * m4/inttypes.m4: New file, from gettext-0.11.5.
82654         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
82655         * m4/isc-posix.m4: New file, from gettext-0.11.5.
82656         * m4/lcmessage.m4: New file, from gettext-0.11.5.
82657         * m4/lib-ld.m4: New file, from gettext-0.11.5.
82658         * m4/lib-link.m4: New file, from gettext-0.11.5.
82659         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
82660         * m4/progtest.m4: New file, from gettext-0.11.5.
82661         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
82662         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
82663         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
82664
82665         Module localcharset.
82666         * m4/localcharset.m4: New file.
82667
82668         Module hard-locale.
82669         * m4/hard-locale.m4: New file.
82670
82671         Module mbswidth.
82672         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
82673         onceonly macros.
82674         * m4/mbrtowc.m4: Add comment.
82675
82676         Module memcasecmp.
82677         * m4/memcasecmp.m4: New file.
82678
82679         Module memcoll.
82680         * m4/memcoll.m4: New file.
82681
82682         Module unicodeio.
82683         * m4/unicodeio.m4: New file.
82684
82685         Module rpmatch.
82686         * m4/rpmatch.m4: New file.
82687
82688         Module yesno.
82689         * m4/yesno.m4: New file.
82690
82691         Module exitfail.
82692         * m4/exitfail.m4: New file.
82693
82694         Module c-stack.
82695         * m4/c-stack.m4 (gl_C_STACK): New macro.
82696         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
82697
82698         Module error.
82699         * m4/error.m4 (gl_ERROR): New macro.
82700         (jm_PREREQ_ERROR): Use onceonly macros.
82701
82702         Module fatal.
82703         * m4/fatal.m4: New file.
82704
82705         Module getloadavg.
82706         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
82707         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
82708
82709         Module getpagesize.
82710         * m4/getpagesize.m4: New file.
82711
82712         Module getusershell.
82713         * m4/getusershell.m4: New file.
82714
82715         Module physmem.
82716         * m4/physmem.m4: New file.
82717
82718         Module posixver.
82719         * m4/posixver.m4: New file.
82720
82721         Module quotearg.
82722         * m4/quotearg.m4: New file.
82723
82724         Module quote.
82725         * m4/quote.m4: New file.
82726
82727         Module readutmp.
82728         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
82729
82730         Module sig2str.
82731         * m4/sig2str.m4: New file.
82732
82733         Other.
82734         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
82735         ulonglong.m4.
82736         * m4/intmax_t.m4: New file.
82737         * m4/d-type.m4: Indentation.
82738         * m4/jm-macros.m4: Update.
82739         * m4/prereq.m4 (jm_PREREQ): Update.
82740         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
82741         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
82742         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
82743         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
82744         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
82745         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
82746         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
82747         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
82748         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
82749         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
82750         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
82751         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
82752         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
82753         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
82754         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
82755         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
82756         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
82757         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
82758         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
82759
82760 2002-12-24  Bruno Haible  <bruno@clisp.org>
82761
82762         * MODULES.txt: Update according to m4/ changes.
82763
82764         Module gettext.
82765         * config.rpath: New file, from gettext-0.11.5.
82766
82767         * modules/*: New module descriptions.
82768         * gnulib-tool: New file.
82769         * MODULES.html.sh: New file.
82770
82771 2002-12-21  Karl Berry  <karl@gnu.org>
82772
82773         * doc/fdl.texi: update to version 1.2.
82774
82775 2002-12-19  Karl Berry  <karl@gnu.org>
82776
82777         * config/config.guess: update from prep.
82778
82779 2002-12-18  Bruno Haible  <bruno@clisp.org>
82780
82781         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
82782         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
82783
82784 2002-12-17  Bruno Haible  <bruno@clisp.org>
82785
82786         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
82787         stdlib.h, string.h.
82788
82789 2002-12-17  Bruno Haible  <bruno@clisp.org>
82790
82791         * lib/canon-host.c (strdup): Remove unused declaration.
82792
82793         * lib/fsusage.c: Include full_read.h.
82794         (get_fs_usage): Use full_read instead of safe_read.
82795
82796         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
82797
82798 2002-12-12  Karl Berry  <karl@gnu.org>
82799
82800         * config/config.guess: update from prep.
82801
82802 2002-12-11  Bruno Haible  <bruno@clisp.org>
82803
82804         * m4/setenv.m4: New file, from gettext-0.11.5.
82805
82806 2002-12-11  Bruno Haible  <bruno@clisp.org>
82807
82808         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
82809         not unsetenv().
82810         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
82811         modifications:
82812
82813         2002-12-11  Bruno Haible  <bruno@clisp.org>
82814
82815                 * setenv.c (alloca): Fall back to malloc.
82816                 (freea): New macro.
82817                 (setenv): Use freea() to free memory allocated with alloca().
82818
82819         2002-11-13  Bruno Haible  <bruno@clisp.org>
82820
82821                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
82822                 function declarations.
82823                 * unsetenv.c (unsetenv): Likewise.
82824
82825         2002-03-04  Bruno Haible  <bruno@clisp.org>
82826
82827                 Portability to AIX 4.3.3.
82828                 * unsetenv.c: New file, extracted from setenv.c.
82829                 * setenv.c: Move the unsetenv() function to unsetenv.c.
82830
82831         2001-12-20  Bruno Haible  <bruno@clisp.org>
82832
82833                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
82834                 use malloc instead. For SunOS 4.
82835
82836         2001-12-11  Bruno Haible  <bruno@clisp.org>
82837
82838                 * setenv.c: Declare alloca.
82839                 (compar_fn_t): New typedef.
82840                 (KNOWN_VALUE, STORE_VALUE): Use it.
82841
82842         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
82843         setenv.h.
82844
82845 2002-12-10  Paul Eggert  <eggert@twinsun.com>
82846
82847         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
82848         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
82849         Choose values that are less likely to collide with system fnmatch
82850         options.
82851         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
82852         defined (e.g., a pure POSIX system).
82853         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
82854         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
82855
82856 2002-12-06  Paul Eggert  <eggert@twinsun.com>
82857
82858         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
82859         a pain in practice to deal with generated m4 files.  This change
82860         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
82861
82862         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
82863         and jm-glibc-io.m4, as they are no longer a special case.
82864         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
82865         kludge and the auto-generation stuff.  Check only whether the
82866         functions are declared, not whether they exist, since older hosts
82867         that don't declare the functions can't use the optimization anyway.
82868
82869 2002-12-06  Jim Meyering  <jim@meyering.net>
82870
82871         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
82872
82873         Merge in changes from libc's misc/error.c, in preparation
82874         for the merge of gnulib's changes back into libc.
82875
82876         * lib/error.c (_): Define only if not already defined.
82877         Move definition to follow all #include directives.
82878         Include unlocked-io.h only if !_LIBC.
82879         [_LIBC]: Include <libio/libioP.h>.
82880         [USE_IN_LIBIO]: Include <libio/iolibio.h>
82881         (fflush): Tweak definition to use INTUSE.
82882         (putc): Define.
82883
82884 2002-12-05  Paul Eggert  <eggert@twinsun.com>
82885
82886         * lib/alloca.c [defined emacs]: Include "lisp.h".
82887         (xalloc_die) [defined emacs]: New macro.
82888         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
82889         [! defined emacs]: Include <xalloc.h>.
82890         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
82891         (pointer): Typedef to POINTER_TYPE *.
82892         (malloc): Remove decl; we now always use xmalloc.
82893         (alloca): Use old-style definition, since Emacs needs this.
82894         Check for arithmetic overflow when computing combined size.
82895
82896 2002-12-04  Paul Eggert  <eggert@twinsun.com>
82897
82898         Do not generate unlocked-io.h automatically, since it's easier to
82899         maintain it by hand.
82900
82901         * lib/unlocked-io.h: New file, from GNU diffutils,
82902         but with proper copyright notice and attribution.
82903         * lib/gen-uio: Remove.
82904         * lib/Makefile.am: Add copyright notice.
82905         (libfetish_a_SOURCES): Add unlocked-io.h.
82906         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
82907         (DISTCLEANFILES, io_functions): Remove macros.
82908         (EXTRA_DIST): Remove gen_uio.
82909         (unlocked-io.h): Remove rule.
82910
82911 2002-12-04  Jim Meyering  <jim@meyering.net>
82912
82913         Reflect the fact that stat.c and lstat.c are no longer generated.
82914         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
82915         (DISTCLEANFILES): Likewise.
82916         (EXTRA_DIST): Likewise.
82917         (all_local): Don't depend on stat.c or lstat.c.
82918         (stat.c, lstat.c): Remove rules.
82919         (EXTRA_DIST): Remove xstat.in.
82920
82921         * lib/xstat.in: Remove file.  Contents moved into stat.c.
82922         * lib/stat.c: New file.  Contents mostly from xstat.in.
82923         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
82924         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
82925
82926         * lib/safe-read.c: Rework so that it may serve to define safe_write,
82927         too.
82928         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
82929
82930 2002-12-03  Jim Meyering  <jim@meyering.net>
82931
82932         * lib/safe-read.c, safe-write.c: Change variable names and comments,
82933         but not semantics, to minimize the differences between these two files.
82934         (safe_read): Change comment to mention SAFE_READ_ERROR.
82935
82936         * lib/safe-read.c (IS_EINTR): Define.
82937         (safe_read): Use IS_EINTR in place of in-function cpp directives.
82938
82939 2002-12-02  Jim Meyering  <jim@meyering.net>
82940
82941         * lib/safe-read.c (EINTR): Define.
82942         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82943         (INT_MAX): Provide fallback.
82944         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
82945
82946         * lib/safe-read.h (SAFE_READ_ERROR): Define.
82947
82948 2002-12-02  Bruno Haible  <bruno@clisp.org>
82949
82950         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
82951         Define, taken from safe-read.c.
82952         (INT_MAX): Provide fallback.
82953         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
82954         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
82955
82956         * lib/safe-read.c (EINTR): Remove definition.
82957         (safe_read): Don't use EINTR if it is absent.
82958
82959 2002-12-01  Jim Meyering  <jim@meyering.net>
82960
82961         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
82962         zero.
82963         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
82964
82965 2002-11-27  Paul Eggert  <eggert@twinsun.com>
82966
82967         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
82968         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
82969         with `if (! (value < limit)) abort ();', for readability.
82970
82971 2002-11-26  Karl Berry  <karl@gnu.org>
82972
82973         * lib/strdup.c: copy from libc again, with jim's ok.
82974         * lib/.cppi-disable: re-add strdup.c
82975
82976 2002-11-25  Karl Berry  <karl@gnu.org>
82977
82978         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82979         instead of "strtol.c".
82980
82981 2002-11-25  Karl Berry  <karl@gnu.org>
82982
82983         * config/install-sh: update from automake for variable quoting, $0 in
82984         error msgs, etc.
82985
82986         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82987         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82988         entry.
82989
82990 2002-11-25  Jim Meyering  <jim@meyering.net>
82991
82992         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82993
82994 2002-11-24  Karl Berry  <karl@gnu.org>
82995
82996         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82997         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82998
82999 2002-11-24  Jim Meyering  <jim@meyering.net>
83000
83001         Update from coreutils:
83002
83003         * lib/mktime.c: Merge in changes from libc.
83004
83005         Avoid a link-time failure on some Linux systems.
83006         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
83007         (otherwise).
83008         (__mon_yday): Declare with the STATIC attribute.
83009         (__mktime_internal): Likewise.
83010         Based on a report from Greg Schafer.
83011
83012 2002-11-23  Jim Meyering  <jim@meyering.net>
83013
83014         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
83015         Use `unsigned', not `int', as type of index.
83016
83017         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
83018
83019         * lib/fsusage.c: Remove unneeded parentheses around operands of
83020         `defined'.
83021
83022 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83023
83024         * lib/quotearg.h: Allow multiple inclusion by surrounding with
83025         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
83026         so that we can be included first.
83027         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
83028         * lib/quotearg.c: Include quotearg.h immediately after config.h.
83029         No need to include stddef.h or sys/types.h any more.
83030         Surround local include files with "", not "<>".
83031         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
83032         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
83033         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
83034         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
83035         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
83036         (ISPRINT): Remove; no longer needed now that we assume C89.
83037
83038         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
83039         Preserve errno.
83040
83041         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
83042         quotearg_char): Use SIZE_MAX rather than
83043         (size_t) -1 when we are talking about "infinity".
83044
83045         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
83046
83047 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83048
83049         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
83050         hint that one should use `if (! x) abort ();' rather than `assert
83051         (x);', and anyway it's one less thing to worry about configuring.
83052         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
83053         hash_rehash, hash_insert): Use abort rather than assert.
83054
83055 2002-11-22  Bruno Haible  <bruno@clisp.org>
83056
83057         * lib/safe-read.h: Assume C89. Add comments.
83058         (safe_read): Change return type to size_t.
83059         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
83060         byte counts > SSIZE_MAX correctly.
83061         * lib/safe-write.h: New file.
83062         * lib/safe-write.c: New file.
83063         * lib/full-read.h: New file.
83064         * lib/full-read.c: New file.
83065         * lib/full-write.h: Assume C89. Add comments.
83066         * lib/full-write.c: Include safe-write.h.
83067         (full_write): Rewritten to use safe_write.
83068         Suggested by Jim Meyering and Paul Eggert.
83069
83070 2002-11-21  Jim Meyering  <jim@meyering.net>
83071
83072         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
83073
83074         Merge in changes from the coreutils.
83075
83076         2002-09-25  Paul Eggert  <eggert@twinsun.com>
83077         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
83078         <stdint.h>.
83079         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
83080         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
83081         int.  Work more efficiently if X is the same width as uintmax_t.
83082         Do not compare X to -1, to avoid bogus compiler warning.
83083         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
83084         Don't assume that f_frsize and f_bsize are the same type.
83085
83086         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
83087         warning on FreeBSD.
83088
83089         * lib/makepath.c (make_path): Restore umask *before* creating the final
83090         component.
83091         (make_path): Minor reformatting.
83092
83093         * lib/xmalloc.c: Adjust to work with new autoconf macros,
83094         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
83095         HAVE_MALLOC/HAVE_REALLOC.
83096
83097         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
83098         dummy ones.  At least on GNU/Linux systems, `auto' means something
83099         else.
83100         From Michael Stone.
83101
83102 2002-11-21  Bruno Haible  <bruno@clisp.org>
83103
83104         Remove case insensitive option matching.
83105         * lib/argmatch.h (argcasematch): Remove declaration.
83106         (ARGCASEMATCH): Remove macro.
83107         (__xargmatch_internal): Remove case_sensitive argument.
83108         (XARGMATCH): Update.
83109         (XARGCASEMATCH): Remove macro.
83110         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
83111         case_sensitive argument.
83112         (argcasematch): Remove function.
83113         (__xargmatch_internal): Remove case_sensitive argument.
83114         (main): Use XARGMATCH instead of XARGCASEMATCH.
83115
83116         * lib/xmalloc.c: Change compile-time error message. Add comment about
83117         required autoconf version.
83118
83119 2002-11-20  Paul Eggert  <eggert@twinsun.com>
83120
83121         Merge argmatch cleanups from Bison.  Assume C89.
83122
83123         * lib/argmatch.c: Include config.h here, not in argmatch.h.
83124         Include stdlib.h, for EXIT_FAILURE.
83125         Always include <string.h>, since we assume C89.
83126         (EXIT_FAILURE): Remove pre-C89 bug workaround.
83127         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
83128         Include <stddef.h> instead, since it's all we need for size_t.
83129         (PARAMS): Remove.  All uses removed.
83130         (ARRAY_CARDINALITY): Do not bother to #undef.
83131         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
83132         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
83133         Remove unnecessary parentheses.
83134         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
83135         Insert necessary parentheses.
83136         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
83137         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
83138
83139 2002-11-19  Bruno Haible  <bruno@clisp.org>
83140
83141         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
83142         * lib/mbswidth.h: Include <stddef.h>, for size_t.
83143
83144         * lib/mbswidth.h (PARAMS): Remove macro.
83145         (mbswidth, mbsnwidth): Use ANSI C function declarations.
83146         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
83147
83148         * lib/gcd.h (PARAMS): Remove macro.
83149         (gcd): Use ANSI C function declarations.
83150         * lib/gcd.c (gcd): Likewise.
83151
83152 2002-11-15  Bruno Haible  <bruno@clisp.org>
83153
83154         * lib/strcspn.c: Include <stddef.h>.
83155         (strcspn): Use ANSI C function declaration. Change return type to
83156         size_t. Use NULL.
83157         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
83158         (strpbrk): Use NULL.
83159         * lib/strpbrk.h (PARAMS): Remove macro.
83160         (strpbrk): Use ANSI C function declaration.
83161         * lib/strstr.c: Don't include <sys/types.h>.
83162         * lib/strstr.h (PARAMS): Remove macro.
83163         (strstr): Use ANSI C function declarations.
83164
83165 2002-11-14  Karl Berry  <karl@gnu.org>
83166
83167         * config/mkinstalldirs: `do' on separate line, instead of
83168         `for var; do'.
83169
83170 2002-11-06  Bruno Haible  <bruno@clisp.org>
83171
83172         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
83173         * lib/gcd.c (gcd): Likewise.
83174
83175 2002-11-05  Bruno Haible  <bruno@clisp.org>
83176
83177         * lib/gcd.h: New file, from gettext-0.11.5.
83178         * lib/gcd.c: New file, from gettext-0.11.5.
83179
83180 2002-11-05  Bruno Haible  <bruno@clisp.org>
83181
83182         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83183         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83184         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83185         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83186
83187         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
83188         <libintl.h>.
83189         * lib/makepath.c: Include gettext.h instead of <locale.h> and
83190         <libintl.h>.
83191
83192         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
83193         * lib/human.c: Include gettext.h instead of <libintl.h>.
83194         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
83195         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
83196         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
83197         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
83198         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
83199         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
83200         (textdomain): Remove definition.
83201         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
83202
83203         * lib/long-options.c: Remove include of <libintl.h> and definition of
83204         _.
83205         * lib/same.c: Remove include of <libintl.h> and definition of _.
83206
83207 2002-11-04  Owen Taylor  <otaylor@redhat.com>
83208
83209         * lib/config.charset: A few additions for Solaris.
83210
83211 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83212
83213         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
83214         * lib/localcharset.c (locale_charset): Declare as extern "C".
83215
83216 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83217
83218         * lib/config.charset: msdos in uk_UA uses CP1125.
83219
83220 2002-11-04  Bruno Haible  <bruno@clisp.org>
83221
83222         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
83223         * lib/strcase.h: New file, from GNU gettext-0.11.5.
83224         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
83225         * lib/strstr.h: New file, from GNU gettext-0.11.5.
83226         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
83227
83228 2002-11-04  Bruno Haible  <bruno@clisp.org>
83229
83230         * lib/localcharset.c (locale_charset): Don't return an empty string.
83231
83232 2002-11-04  Bruno Haible  <bruno@clisp.org>
83233
83234         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
83235         aliases.
83236
83237 2002-11-04  Bruno Haible  <bruno@clisp.org>
83238
83239         * lib/config.charset: Update for newest glibc. Add canonical names
83240         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
83241
83242 2002-11-04  Bruno Haible  <bruno@clisp.org>
83243
83244         * lib/config.charset: Add support for NetBSD.
83245
83246 2002-11-04  Bruno Haible  <bruno@clisp.org>
83247
83248         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
83249
83250 2002-11-01  Bruno Haible  <bruno@clisp.org>
83251
83252         * configure.in: Add AC_CONFIG_AUX_DIR call.
83253         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
83254         test/Makefile.
83255         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
83256
83257 2002-09-28  Karl Berry  <karl@gnu.org>
83258
83259         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
83260         installed automake until the next release, since changes have been
83261         made.
83262
83263 2002-09-25  Karl Berry  <karl@gnu.org>
83264
83265         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
83266         * lib/getopt*: copy from libc/posix.
83267         * lib/gettext.h: copy from gettext.
83268         * lib/.cppi-disable: add strdup.c, gettext.h.
83269
83270 2002-09-25  Karl Berry  <karl@gnu.org>
83271
83272         * config/srclist.txt: enable gettext.h check.
83273         * config/config.{guess,sub}: update from prep.
83274         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
83275                 from automake 1.6.3.
83276         See srclist*.
83277
83278 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
83279
83280         * regex.c (PATFETCH): Remove the translating fetch.
83281         (PATFETCH_RAW): Rename to PATFETCH.
83282         (set_image_of_range): New fun.
83283         (SET_RANGE_TABLE_WORK_AREA): Use it.
83284         (regex_compile): Don't translate the pattern chars so eagerly.
83285         Only do it when inserting an `exactn' bytecode or when handling
83286         a char-range.
83287         (mutually_exclusive_p): Avoid empty statement.
83288
83289 2002-07-06  Jim Meyering  <meyering@lucent.com>
83290
83291         * m4/README: Don't mention Makefile.am.in.
83292         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
83293
83294 2002-07-01  Jim Meyering  <meyering@lucent.com>
83295
83296         * lib/c-stack.c: Include sys/time.h.
83297         From Volker Borchert.
83298
83299 2002-06-26  Paul Eggert  <eggert@twinsun.com>
83300
83301         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
83302
83303 2002-06-26  Paul Eggert  <eggert@twinsun.com>
83304
83305         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
83306         New macro.  Use it uniformly instead of
83307         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
83308         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
83309         reported by Vin Shelton.
83310
83311 2002-06-22  Paul Eggert  <eggert@twinsun.com>
83312
83313         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
83314         Do not assume SA_SIGINFO behavior.
83315         Bug reported by Jim Meyering on NetBSD 1.5.2.
83316
83317 2002-06-22  Jim Meyering  <meyering@lucent.com>
83318
83319         * m4/c-stack.m4: New file, from diffutils-2.8.2.
83320         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
83321
83322         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
83323         now that configure.ac uses AC_GNU_SOURCE.
83324         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
83325         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
83326
83327         Update to latest tools.  Suggestions from Paul Eggert.
83328         * m4/stdbool.m4: New file, from diffutils-2.8.2.
83329         * m4/gnu-source.m4: Update from diffutils-2.8.2.
83330         * m4/fnmatch.m4: Likewise.
83331         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
83332         to AC_HEADER_STDBOOL
83333
83334 2002-06-22  Jim Meyering  <meyering@lucent.com>
83335
83336         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
83337         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
83338
83339 2002-06-22  Jim Meyering  <meyering@lucent.com>
83340
83341         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
83342
83343         * lib/exitfail.c, exitfail.h: Likewise.
83344         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
83345
83346         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
83347         of fnmatch.h.
83348         (EXTRA_DIST): Add fnmatch_loop.c.
83349         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
83350
83351         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
83352         * lib/fnmatch.c: Update from diffutils-2.8.2.
83353         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
83354         * lib/fnmatch.h: Remove file.
83355
83356 2002-06-21  Jim Meyering  <meyering@lucent.com>
83357
83358         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
83359         * m4/mbrtowc.m4: Likewise.
83360
83361         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
83362         * m4/mbswidth.m4: Reflect name change:
83363         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
83364         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83365
83366         * m4/lib-link.m4: Update from gettext-0.11.2.
83367         * m4/gettext.m4: Likewise.
83368
83369         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
83370         From Alfred M. Szmidt.
83371
83372 2002-06-18  Paul Eggert  <eggert@twinsun.com>
83373
83374         * lib/file-type.h: Report an error if neither S_ISREG nor
83375         S_IFREG is defined, instead of using a test specific to glibc
83376         2.2.  This should be safe, since POSIX requires S_ISREG and
83377         Unix Version 7 had S_IFREG.  We don't need to check for
83378         <sys/types.h> since we don't use any symbols that it defines.
83379
83380 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
83381
83382         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
83383         $@-t, so that each temporary file name is unique and valid in the first
83384         8 characters, for operation under DOS.
83385
83386 2002-06-15  Paul Eggert  <eggert@twinsun.com>
83387
83388         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
83389
83390 2002-06-15  Jim Meyering  <meyering@lucent.com>
83391
83392         Work even with DJGPP 2.03, which lacks support for symlinks.
83393         From Richard Dawe.
83394         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
83395         is defined.
83396         * lib/lchown.c (S_ISLNK): Likewise.
83397
83398 2002-06-15  Jim Meyering  <meyering@lucent.com>
83399
83400         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
83401         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
83402         have been included before this file.
83403
83404 2002-06-14  Jim Meyering  <meyering@lucent.com>
83405
83406         * lib/file-type.h: Use the version from diffutils-2.8.2.
83407         * lib/file-type.c: Likewise.
83408
83409 2002-06-07  Jim Meyering  <meyering@lucent.com>
83410
83411         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
83412         They're needed at least for NetBSD 1.5.2.
83413         ($statxfs_includes): Include those same headers.
83414         ($statxfs_includes): Include sys/vfs.h if available.
83415         ($statxfs_includes): Likewise for sys/statvfs.h.
83416         Check for the following members in both structs statfs and statvfs:
83417         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
83418
83419 2002-06-01  Jim Meyering  <meyering@lucent.com>
83420
83421         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
83422         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
83423
83424 2002-05-28  Jim Meyering  <meyering@lucent.com>
83425
83426         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
83427         Reported by Volker Borchert.
83428
83429 2002-05-27  Jim Meyering  <meyering@lucent.com>
83430
83431         Fix a problem seen only on nonconforming systems whereby ls.c's
83432         use of localtime, and then of gettimeofday would cause trouble:
83433         the localtime call used to initialize rpl_gettimeofday's save
83434         mechanism would clobber ls's current local time information so
83435         that in any long listing the first file would always be listed
83436         with date 1970-01-01.  Analysis by Volker Borchert.
83437
83438         * lib/gettimeofday.c (localtime): Undefine.
83439         (rpl_localtime): New function.
83440
83441 2002-05-27  Jim Meyering  <meyering@lucent.com>
83442
83443         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
83444         localtime.
83445
83446         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
83447         use the replacement function; it wouldn't resolve at link time.
83448         Reported by Volker Borchert.
83449
83450 2002-05-22  Jim Meyering  <meyering@lucent.com>
83451
83452         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
83453         file-type.h.
83454         * lib/file-type.h: New file.
83455         * lib/file-type.c (file_type): New file/function.  Extracted from
83456         diffutils.
83457
83458 2002-04-30  Jim Meyering  <meyering@lucent.com>
83459
83460         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
83461
83462 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83463
83464         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
83465
83466 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83467
83468         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
83469         Do not check for alloca.h (no longer used) or stdbool.h (was never
83470         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
83471
83472 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83473
83474         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
83475
83476 2002-04-29  Jim Meyering  <meyering@lucent.com>
83477
83478         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
83479         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
83480         Use AC_FUNC_STRNLEN here instead.
83481
83482         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
83483         With autoconf-2.53a, it's part of AC_PROG_CC.
83484
83485 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83486
83487         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
83488         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
83489
83490 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83491
83492         * lib/sig2str.h, lib/sig2str.c: New files.
83493         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
83494
83495 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83496
83497         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
83498         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
83499         of 127, since 64 is the largest conceivable number for ancient
83500         nonstandard hosts.
83501         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
83502
83503 2002-04-28  Jim Meyering  <meyering@lucent.com>
83504
83505         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
83506
83507 2002-04-24  Jim Meyering  <meyering@lucent.com>
83508
83509         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
83510         (jm_PREREQ): Use it.
83511
83512         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
83513         mach/mach.h fcntl.h.
83514         Check for this function: setlocale.
83515
83516 2002-04-24  Jim Meyering  <meyering@lucent.com>
83517
83518         * lib/gettext.h: New file, from Gettext.
83519         * lib/Makefile.am (INCLUDES): Remove -I../intl.
83520         (libfetish_a_SOURCES): Add gettext.h.
83521
83522 2002-04-16  Jim Meyering  <meyering@lucent.com>
83523
83524         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
83525         ut_pid, ut_id, ut_exit.
83526
83527 2002-04-16  Jim Meyering  <meyering@lucent.com>
83528
83529         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
83530         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
83531         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
83532
83533 2002-04-12  Jim Meyering  <meyering@lucent.com>
83534
83535         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
83536         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
83537         existence of the getmntinfo function.  Needed for Darwin 5.3.
83538
83539         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
83540         This is necessary at least on Darwin 5.3.
83541
83542         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
83543         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
83544         strnlen.o in the library, and that makes some versions of ranlib
83545         object.
83546
83547 2002-04-12  Jim Meyering  <meyering@lucent.com>
83548
83549         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
83550
83551 2002-04-09  Jim Meyering  <meyering@lucent.com>
83552
83553         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
83554         to be more precise.  Rather than saying we're checking whether the
83555         function `works', say what we're testing.
83556         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
83557         Reported by Bruno Haible.
83558
83559 2002-03-10  Jim Meyering  <meyering@lucent.com>
83560
83561         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
83562         Suggestion from Santiago Vila.
83563
83564 2002-03-08  Jim Meyering  <meyering@lucent.com>
83565
83566         * lib/rename.c: Mention that this wrapper is needed also on
83567         mips-dec-ultrix4.4 systems.
83568
83569 2002-03-02  Jim Meyering  <meyering@lucent.com>
83570
83571         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
83572         not HAVE_CLOCK_SETTIME.
83573
83574 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83575
83576         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
83577         Check for clock_settime.
83578
83579 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83580
83581         * lib/nanosleep.h: Rename to....
83582         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
83583
83584         * lib/gettime.c: New file.
83585         * lib/settime.c: New file.
83586         * lib/stime.c: Remove.
83587
83588         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
83589         timespec.h.  Remove nanosleep.h.
83590
83591 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83592
83593         * m4/acl.m4: New file.
83594         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
83595         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
83596
83597 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83598
83599         * lib/acl.c, lib/acl.h: New files.
83600         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
83601
83602 2002-02-24  Jim Meyering  <meyering@lucent.com>
83603
83604         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
83605         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
83606         cause trouble.  Reported by Nelson Beebe.
83607
83608 2002-02-23  Paul Eggert  <eggert@twinsun.com>
83609
83610         * lib/path-concat.c (xpath_concat): Reorder code to pacify
83611         compilers that don't know that xalloc_die never returns.
83612
83613 2002-02-20  Jim Meyering  <meyering@lucent.com>
83614
83615         * lib/getdate.c: Regenerate using bison-1.33.
83616
83617 2002-02-17  Jim Meyering  <meyering@lucent.com>
83618
83619         * config/config.guess (main): Don't use `head -1'; it's no longer
83620         portable. Use `sed 1q' instead.
83621
83622 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
83623
83624         * m4/codeset.m4: Upgrade to gettext-0.11.
83625         * m4/gettext.m4: Upgrade to gettext-0.11.
83626         * m4/glibc21.m4: Upgrade to gettext-0.11.
83627         * m4/iconv.m4: Upgrade to gettext-0.11.
83628         * m4/isc-posix.m4: Upgrade to gettext-0.11.
83629         * m4/lcmessage.m4: Upgrade to gettext-0.11.
83630         * m4/lib-ld.m4: New file, from gettext-0.11.
83631         * m4/lib-link.m4: New file, from gettext-0.11.
83632         * m4/lib-prefix.m4: New file, from gettext-0.11.
83633         * m4/progtest.m4: Upgrade to gettext-0.11.
83634
83635 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83636
83637         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
83638         (jm_PREREQ): Use it.
83639
83640 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83641
83642         * lib/posixver.c, lib/posixver.h: New files.
83643         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83644
83645 2002-02-02  Paul Eggert  <eggert@twinsun.com>
83646             Bruno Haible  <bruno@clisp.org>
83647
83648         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
83649         (fwrite_success_callback): New declaration.
83650         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
83651         print_unicode_char. Call failure callback instead of error.
83652         (fwrite_success_callback): New function.
83653         (exit_failure_callback): New function.
83654         (fallback_failure_callback): New function.
83655         (print_unicode_char): Call unicode_to_mb.
83656
83657 2002-01-26  Jim Meyering  <meyering@lucent.com>
83658
83659         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
83660         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
83661
83662 2002-01-26  Jim Meyering  <meyering@lucent.com>
83663
83664         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
83665
83666 2002-01-22  Paul Eggert  <eggert@twinsun.com>
83667
83668         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
83669
83670 2002-01-22  Jim Meyering  <meyering@lucent.com>
83671
83672         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
83673         Otherwise, some versions of automake would omit the rule that makes
83674         Makefile from Makefile.in.
83675
83676 2002-01-21  Paul Eggert  <eggert@twinsun.com>
83677
83678         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
83679         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83680         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
83681         (memcoll): Set errno to zero if there is no error.
83682
83683         * lib/quotearg.c (quotearg_buffer_restyled):
83684         Fix bug with quoting buffers containing NUL when backslashing escapes.
83685         This bug was exposed by the other changes in this patch.
83686         (quotearg_n_options): New arg ARGSIZE.
83687         All callers changed.
83688         (quoting_options_from_style): New function.
83689         (quotearg_n_style): Use it.
83690         (quotearg_n_style_mem): New function.
83691
83692         * lib/quotearg.h (quotearg_n_style_mem): New function.
83693
83694 2002-01-19  Jim Meyering  <meyering@lucent.com>
83695
83696         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
83697         Remove useless quotes: DF_PROG="df".
83698         * m4/strnlen.m4: New file.
83699
83700 2002-01-16  Paul Eggert  <eggert@twinsun.com>
83701
83702         * lib/backupfile.c (ISDIGIT): Comment fix.
83703         * lib/getdate.y (ISDIGIT): Likewise.
83704         * lib/posixtm.c (ISDIGIT, year): Likewise.
83705         * lib/strverscmp.c (ISDIGIT): Likewise.
83706         * lib/userspec.c (ISDIGIT): Likewise.
83707
83708 2002-01-16  Jim Meyering  <meyering@lucent.com>
83709
83710         * lib/getdate.y: Add three semicolons, each just before a closing
83711         brace. Bison (as of version 1.31) no longer papers over that mistake.
83712
83713 2002-01-05  Jim Meyering  <meyering@lucent.com>
83714
83715         * lib/version-etc.c (version_etc_copyright): Update copyright year.
83716
83717 2001-12-19  Paul Eggert  <eggert@twinsun.com>
83718
83719         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
83720         not silently exit merely because the output buffer happens to
83721         have nothing pending.
83722
83723 2001-12-18  Paul Eggert  <eggert@twinsun.com>
83724
83725         See the big note in ../ChangeLog.
83726         * lib/human.c (suffixes): Prefer K to k for 1024.
83727         (generate_suffix_backwards): New function.
83728         (human_readable_inexact): Use it.
83729         * lib/xstrtol.c (__xstrtol): If there is no number but there
83730         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
83731         Accept 'K' as well as 'k'.
83732
83733 2001-12-15  Jim Meyering  <meyering@lucent.com>
83734
83735         * lib/regex.h (__restrict_arr): Update from libc.
83736
83737         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
83738         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
83739         (STREQ): Define.
83740
83741 2001-12-14  Jim Meyering  <meyering@lucent.com>
83742
83743         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
83744         Suggestion from Bruno Haible.
83745
83746 2001-12-10  Jim Meyering  <meyering@lucent.com>
83747
83748         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
83749         xrealloc, Instead, include "xalloc.h".
83750         (initbuffer): Don't cast xmalloc return value to char*.
83751         (readline): Reword comment.
83752         Don't cast xrealloc return value to char*
83753         Return NULL, not 0.
83754
83755 2001-12-09  Jim Meyering  <meyering@lucent.com>
83756
83757         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
83758         about `signed and unsigned type in conditional expression'.
83759         * lib/posixtm.c (posix_time_parse): Likewise.
83760
83761         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
83762
83763         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
83764         to avoid a pedantic warning.
83765
83766         * lib/getstr.c: Don't include assert.h.
83767         (getstr): Remove warning-evoking assertions.
83768         Return -1 if offset parameter is out of bounds.
83769         Change the type of a local from int to size_t.
83770
83771         * lib/strftime.c (my_strftime_localtime_r): Include this function
83772         definition in the `#if ! HAVE_TM_GMTOFF' block.
83773
83774         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
83775         Include xalloc.h instead.
83776
83777 2001-12-02  Jim Meyering  <meyering@lucent.com>
83778
83779         * lib/tempname.c: Don't declare getenv, thus reverting the change of
83780         2001-11-18.  It's no longer necessary, now that stdlib.h is always
83781         included.
83782
83783         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
83784         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
83785
83786 2001-11-30  Akim Demaille  <akim@epita.fr>
83787
83788         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
83789         before being defined.
83790
83791 2001-11-27  Paul Eggert  <eggert@twinsun.com>
83792
83793         * lib/quotearg.h (quotearg_n, quotearg_n_style):
83794         First arg is int, not unsigned.
83795         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
83796         (SIZE_MAX, UINT_MAX): New macros.
83797         (quotearg_n_options): Abort if N is negative.
83798         Avoid overflow check on hosts where size_t is 64 bits and int
83799         is 32 bits, as overflow is impossible there.
83800         Fix off-by-one typo that caused unnecessary reallocation.
83801
83802 2001-11-27  Jim Meyering  <meyering@lucent.com>
83803
83804         * lib/tempname.c: Merge with version from libc.
83805         * lib/regex.c: Likewise.
83806
83807         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
83808         systems for which STDC_HEADERS is 0, it was not included, resulting in
83809         a warning about an integer-to-pointer conversion problem with getenv.
83810         Reported by Volker Borchert.
83811
83812 2001-11-26  Jim Meyering  <meyering@lucent.com>
83813
83814         * lib/gtod.h: Remove file.
83815         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
83816         * lib/gettimeofday.c: Don't include gtod.h.
83817         (GTOD_init): Remove function.
83818         (rpl_gettimeofday): Do its job here instead, rather than aborting.
83819         Suggestion from Volker Borchert.
83820
83821 2001-11-23  Jim Meyering  <meyering@lucent.com>
83822
83823         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
83824         it.
83825         * lib/hash.c (struct hash_table): Define it here instead.
83826
83827 2001-11-22  Jim Meyering  <meyering@lucent.com>
83828
83829         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
83830
83831 2001-11-20  Jim Meyering  <meyering@lucent.com>
83832
83833         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
83834         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
83835
83836 2001-11-19  Jim Meyering  <meyering@lucent.com>
83837
83838         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
83839         directory.  Use "conftestXXXXXX" as the template.
83840         Suggestion from Paul Eggert.
83841
83842         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
83843         immediately, so the test doesn't mistakenly hit the max-open-files
83844         limit.
83845
83846 2001-11-18  Paul Eggert  <eggert@twinsun.com>
83847
83848         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
83849         (TEMPORARIES): New macro.
83850         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
83851         removes an artificial limitation (e.g. HP-UX 10.20, where
83852         TMP_MAX is 17576).
83853
83854 2001-11-18  Jim Meyering  <meyering@lucent.com>
83855
83856         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
83857
83858 2001-11-18  Jim Meyering  <meyering@lucent.com>
83859
83860         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
83861         on SunOS 4.
83862
83863         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
83864         files will be created before anything else.
83865
83866 2001-11-17  Paul Eggert  <eggert@twinsun.com>
83867
83868         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
83869         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
83870
83871 2001-11-17  Jim Meyering  <meyering@lucent.com>
83872
83873         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
83874         Prompted by a report from Bob Proulx.
83875
83876         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
83877         Instead, require UTILS_FUNC_MKSTEMP.
83878
83879 2001-11-17  Jim Meyering  <meyering@lucent.com>
83880
83881         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
83882         Now, that's done as part of AC_FUNC_STRTOD.
83883
83884 2001-11-17  Jim Meyering  <meyering@lucent.com>
83885
83886         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
83887         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
83888         rather than group writable.  Patch by Juan F. Codagnone.
83889
83890         * lib/readtokens.c: Remove explicit declarations of xmalloc and
83891         xrealloc, Instead, include "xalloc.h".
83892
83893         * lib/mountlist.c: Include unlocked-io.h after all system headers.
83894         Remove explicit declarations of xmalloc, xrealloc,
83895         and xstrdup.  Instead, include "xalloc.h".
83896
83897         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
83898         unlocked-io.h.
83899         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
83900         Likewise.
83901         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
83902
83903         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
83904         Reported by Padraig Brady.
83905
83906         * lib/mkstemp.c: #undef mkstemp.
83907         Include config.h.
83908         (rpl_mkstemp): Rename from mkstemp.
83909         Protoize.
83910
83911 2001-11-16  Jim Meyering  <meyering@lucent.com>
83912
83913         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
83914         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
83915         determine the amount of total physical memory, use pstat_getstatic.
83916         HPUX-11 doesn't define _SC_PHYS_PAGES.
83917         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
83918         If sysconf couldn't be used to determine the amount of available
83919         physical memory, use both pstat_getstatic and pstat_getdynamic.
83920         Based on a patch from Bob Proulx.
83921
83922 2001-11-10  Jim Meyering  <meyering@lucent.com>
83923
83924         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
83925         (jm_PREREQ): Use it.
83926
83927 2001-11-09  Jim Meyering  <meyering@lucent.com>
83928
83929         * m4/jm-macros.m4: Require autoconf-2.52f.
83930         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
83931         Use these AC_-prefixed names, not the AM_-prefixed ones.
83932
83933         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
83934
83935 2001-11-05  Jim Meyering  <meyering@lucent.com>
83936
83937         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
83938
83939 2001-11-04  Jim Meyering  <meyering@lucent.com>
83940
83941         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
83942         $DEFS.
83943
83944 2001-11-03  Jim Meyering  <meyering@lucent.com>
83945
83946         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
83947         of AC_DEFUN.
83948
83949         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
83950         know the name of the variable in the macro definition.
83951
83952 2001-11-03  Jim Meyering  <meyering@lucent.com>
83953
83954         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
83955         in argmatch_to_argument call.
83956
83957         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
83958         argument.
83959
83960         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
83961         e.g., a fault due to an attempt to free a NULL pointer.
83962
83963 2001-11-01  Jim Meyering  <meyering@lucent.com>
83964
83965         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
83966         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
83967
83968 2001-11-01  Jim Meyering  <meyering@lucent.com>
83969
83970         * lib/dirfd.c, lib/dirfd.h: New files.
83971         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
83972
83973         * lib/hash.c (hash_print) [TESTING]: Clean up.
83974
83975 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83976
83977         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83978         to avoid a warning if -Wall.
83979
83980 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83981
83982         * README: New file
83983         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83984         (per RMS's instructions, this is now the canonical source)
83985         * lgpl/, gpl/: New directories.
83986
83987 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83988
83989         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83990
83991 2001-10-21  Jim Meyering  <meyering@lucent.com>
83992
83993         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83994         this code would end up calling gettext even in packages built
83995         with --disable-nls.
83996         * lib/getopt.c (_): Likewise.
83997         * lib/regex.c (_): Likewise.
83998
83999 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84000
84001         * m4/error.m4 (jm_PREREQ_ERROR):
84002         Do not invoke AC_CHECK_FUNCS with strerror_r, as
84003         AC_FUNC_STRERROR_R does that.
84004         Check for strerror declaration.
84005
84006         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
84007         are supposed to have them these days.
84008         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
84009         Merge changes from latest Autoconf CVS.
84010         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
84011         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
84012         POSIX decided to standardize on the int flavor of strerror_r.
84013
84014 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84015
84016         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
84017         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
84018         Use strerror_r that is only a macro, even if it is not a function.
84019         (strerror): Check for HAVE_DECL_STRERROR before declaring.
84020         (private_strerror): Use prototypes, not old-style function definition.
84021         (print_errno_message): New function.
84022         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
84023         char*-flavored one.
84024         (error_tail, error, error_at_line): Use it.
84025
84026 2001-10-11  Jim Meyering  <meyering@lucent.com>
84027
84028         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
84029         and quote_n (1, ... to avoid clobbering a buffer.
84030
84031 2001-10-05  Jim Meyering  <meyering@lucent.com>
84032
84033         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
84034         hash-pjw.h.
84035         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
84036         * lib/hash-pjw.h: New file.
84037
84038 2001-09-30  Jim Meyering  <meyering@lucent.com>
84039
84040         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
84041         `struct fsstat' has the `f_fstypename' member.
84042         Use that to define FS_TYPE, which is now used to make
84043         the getfsstat link test tighter.
84044
84045 2001-09-30  Jim Meyering  <meyering@lucent.com>
84046
84047         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
84048         Include <sys/ucred.h>, for Apple Darwin.
84049         Include sys/mount.h and sys/fs_types.h only if available.
84050         (FS_TYPE): Define.
84051         (read_filesystem_list): Use FS_TYPE.
84052
84053 2001-09-29  Paul Eggert  <eggert@twinsun.com>
84054
84055         * lib/exclude.c (excluded_filename): 0 -> false, since it's
84056         a boolean context.
84057
84058 2001-09-29  Jim Meyering  <meyering@lucent.com>
84059
84060         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84061         [one-argument getmntent function]): Include stdio.h before mntent.h.
84062         SunOS 4.1.x needs it for the declaration of `FILE'.
84063         Patch by Volker Borchert.
84064
84065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84066         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
84067         sys/fs_types.h, and make the link-test for getfsstat guard #include
84068         directives with appropriate #if HAVE_*_H tests so that we can
84069         detect getfsstat on Apple Darwin1.3.7 systems.
84070         Reported by Nelson Beebe.
84071         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
84072
84073 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84074
84075         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84076         #defines strtoimax.  Also treat the other strto* functions
84077         like strtoimax.
84078
84079         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84080         Check for strtoul and strtoumax,
84081         as those declarations are made even in the signed case.
84082         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
84083         Likewise, for strtol and strtoimax.
84084
84085 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84086
84087         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84088         #defines strtoimax.  Also treat the other strto* functions
84089         like strtoimax.
84090
84091         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
84092         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
84093         (strtoimax, strtoumax): Do not declare if already defined as a macro.
84094
84095 2001-09-26  Jim Meyering  <meyering@lucent.com>
84096
84097         Most macros in unlocked-io.h had the wrong number of arguments.
84098         * lib/gen-uio: New script.
84099         (USE_UNLOCKED_IO): Define to 1 if not already defined.
84100         * lib/unlocked-io.hin: Remove file.
84101         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
84102         rather than trying to embed it here.
84103         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
84104         Reported by Padraig Brady.
84105
84106 2001-09-25  Volker Borchert  <bt@teknon.de>
84107
84108         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
84109         `result'.
84110
84111 2001-09-24  Jim Meyering  <meyering@lucent.com>
84112
84113         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
84114
84115 2001-09-23  Jim Meyering  <meyering@lucent.com>
84116
84117         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
84118         instead of the mere test for existence of mntent.h.  The latter
84119         would get a false-positive on AIX 3.4 systems.
84120         In the outer getmntent if-block, don't die if neither of the getmntent
84121         tests succeeds.  Instead, just fall through and continue with the
84122         remaining tests.
84123
84124 2001-09-23  Jim Meyering  <meyering@lucent.com>
84125
84126         * lib/mountlist.c: Remove useless parentheses in #if directives.
84127         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
84128         the deprecated MOUNTED symbol is no longer defined in mntent.h.
84129
84130 2001-09-22  Jim Meyering  <meyering@lucent.com>
84131
84132         * m4/gettext.m4: New file.  From gettext.
84133         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
84134         * m4/progtest.m4: Likewise
84135         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
84136         * m4/glibc21.m4: Likewise.
84137
84138         * m4/libintl.m4: Remove.  No longer used.
84139
84140 2001-09-22  Jim Meyering  <meyering@lucent.com>
84141
84142         * lib/localcharset.c: Update from latest gettext.
84143         * lib/config.charset: Likewise.
84144
84145 2001-09-20  Jim Meyering  <meyering@lucent.com>
84146
84147         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
84148         strtoimax.
84149         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
84150         strtoumax.
84151
84152 2001-09-20  Jim Meyering  <meyering@lucent.com>
84153
84154         * lib/xstrtol.c (strtoimax): Guard declaration with
84155         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
84156         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
84157         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
84158         (strtoumax): Likewise, for completeness (it wasn't necessary).
84159
84160 2001-09-17  Paul Eggert  <eggert@twinsun.com>
84161
84162         * lib/strtoimax.c (HAVE_LONG_LONG):
84163         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
84164         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
84165         to work around bug in IBM C compiler.
84166
84167 2001-09-17  Jim Meyering  <meyering@lucent.com>
84168
84169         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
84170         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
84171         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
84172         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
84173         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
84174         whenever the right hand side need not be expanded by the shell.
84175
84176 2001-09-16  Paul Eggert  <eggert@twinsun.com>
84177
84178         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
84179         library.  It's not correct, as some older glibcs are buggy.
84180         fnmatch wasn't fixed until glibc 2.2.
84181
84182         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
84183         special shell magic here.
84184
84185 2001-09-16  Jim Meyering  <meyering@lucent.com>
84186
84187         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
84188         * m4/jm-macros.m4: Require it.
84189
84190 2001-09-16  Jim Meyering  <meyering@lucent.com>
84191
84192         * lib/mkdir.c: New file.
84193
84194 2001-09-15  Jim Meyering  <meyering@lucent.com>
84195
84196         * m4/jm-macros.m4: Check for help2man.
84197
84198 2001-09-11  Jim Meyering  <meyering@lucent.com>
84199
84200         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
84201         The body, by Paul Eggert, was moved here from configure.in.
84202         * m4/jm-macros.m4: Require UTILS_HOST_OS.
84203
84204 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84205
84206         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
84207         (jm_PREREQ): Use it.
84208
84209 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84210
84211         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
84212         Use ssize_t, not int, to store result of readlink.
84213         Check for ssize_t overflow as well as size_t overflow,
84214         as POSIX says the result of readlink is implementation-defined
84215         when ssize_t overflows.
84216         Remove unnecessary cast to char*.
84217         Use free+malloc instead of realloc, as the storage doesn't need
84218         to be preserved and it's clearer and can be more efficient that way.
84219         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
84220         * lib/xreadlink.h (xreadlink): Update prototype.
84221
84222 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84223
84224         * lib/xgetcwd.c: Revert some of the previous change; intead,
84225         fix the HAVE_GETCWD_NULL code to behave more like the
84226         !HAVE_GETCWD_NULL code used to.
84227
84228         Include "xalloc.h".
84229         (xgetcwd): Do not return NULL when memory is exhausted; instead,
84230         invoke xalloc_die.
84231
84232 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84233
84234         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
84235         sys/param.h, as pathmax.h includes them.
84236
84237 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84238
84239         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
84240         (jm_PREREQ_XGETCWD): New macro.
84241
84242         * m4/getcwd.m4: New file.
84243
84244 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84245
84246         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
84247         like the HAVE_GETCWD_NULL code.
84248         Include pathmax.h if not HAVE_GETCWD.
84249         Do not include xalloc.h.
84250         (INITIAL_BUFFER_SIZE): New symbol.
84251         Do not use xmalloc / xrealloc, since the caller is responsible for
84252         handling errors.  Preserve errno around `free' during failure.
84253         Do not overrun buffer when using getwd.
84254
84255 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84256
84257         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
84258         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
84259         getcwd (NULL, 0).
84260
84261 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84262
84263         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
84264         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
84265         spotted by Jim Meyering.
84266
84267 2001-09-03  Jim Meyering  <meyering@lucent.com>
84268
84269         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
84270         failure.
84271
84272 2001-09-02  Jim Meyering  <meyering@lucent.com>
84273
84274         * lib/error.c: Update from GNU libc.
84275
84276 2001-09-01  Jim Meyering  <meyering@lucent.com>
84277
84278         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
84279         Used by df.
84280
84281 2001-09-01  Jim Meyering  <meyering@lucent.com>
84282
84283         * lib/xreadlink.c: New file.
84284         * lib/xreadlink.h: New file.
84285         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
84286         xreadlink.h.
84287
84288         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
84289         doesn't conflict with sparc Solaris 7's definition in
84290         /usr/include/sys/int_types.h.
84291
84292         * lib/exclude.c: Use `""', not `<>' to #include non-system header
84293         files.
84294         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
84295         and strncasecmp as r-values.  Unixware didn't have declarations.
84296
84297 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84298
84299         * lib/xstrtol.h: Add copyright notice.
84300         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
84301         LONGINT_INVALID_SUFFIX_CHAR.
84302
84303 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84304
84305         * lib/xstrtol.c (strtoimax): New decl.
84306
84307 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84308
84309         * lib/xgetcwd.c: Don't include pathmax.h.
84310         Include stdlib.h and unistd.h if available.
84311         Include xalloc.h.
84312         (xmalloc, xstrdup, free): Remove decls.
84313         (xgetcwd): Don't assume sizes fit in unsigned.
84314         Check for overflow when computing sizes.
84315         Simplify reallocation code.
84316
84317 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84318
84319         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
84320         a directory's st_size can have an arbitrary value, so the old
84321         usage could waste an arbitrary amount of memory.  All uses
84322         changed.
84323         * lib/savedir.h: Update prototype.
84324
84325 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84326
84327         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
84328
84329         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
84330         old strtoimax.c.
84331
84332         Also, make the following further changes to make this file's
84333         configuration more similar to that of strtol.c:
84334         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
84335         (strtoumax, uintmax_t, strtoull, strtol): Remove.
84336         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
84337         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
84338         changed to signed values.
84339
84340         And make the following changes as well:
84341         Fix copyright notice, as 1999 was missing.
84342         (verify): New macro.
84343         (strtoimax): Check sizes at compile-time, not run-time.
84344         Prefer strtol to strtoll if both work.
84345         (main): Remove; it was not that useful and was a pain to maintain.
84346
84347         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
84348
84349 2001-08-31  Jim Meyering  <meyering@lucent.com>
84350
84351         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
84352         Use an initial, malloc'd, buffer of length 128 rather than
84353         a statically allocated one of length 1024.
84354
84355 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84356
84357         Simplify code, partly by assuming autoconf 2.52 semantics.
84358
84359         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
84360
84361         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
84362         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
84363         All uses removed.
84364         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
84365         Move AC_REQUIRE to next-to-top level, to avoid confusion.
84366         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
84367         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
84368         jm_AC_HEADER_INTTYPES_H.
84369         * m4/jm-macros.m4 (jm_MACROS): Likewise.
84370
84371         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
84372
84373         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84374         Quote first arg of AC_DEFUN.
84375         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
84376         since they are needed to parse the include file even if we need
84377         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
84378         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
84379         but with opposite signedness.
84380
84381 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84382
84383         Merge 'exclude' changes from tar 1.13.22.
84384         This fixes one or two unlikely storage allocation overflow bugs,
84385         but doesn't change user-visible behavior otherwise.
84386
84387 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84388
84389         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
84390         (jm_PREREQ_EXCLUDE): New macro.
84391
84392 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84393
84394         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
84395         tm to be declared.
84396
84397 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84398
84399         * lib/hash.c: Remove '2001' from copyright notice.
84400
84401 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84402
84403         * lib/full-write.h: New file.
84404         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
84405         * lib/full-write.c: Correct credits, as cccp.c no longer
84406         exists and anyway it was so heavily changed from the old cccp
84407         code as to be unrecognizable.  Include full-write.h.
84408         (full_write): Return size_t, with short writes meaning failure.
84409         All callers changed.  This fixes a bug with large buffers
84410         on 64-bit hosts.
84411         * lib/utime.c: Include full-write.h.
84412
84413 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84414
84415         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
84416         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
84417         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
84418         Include if available.
84419         (<xalloc.h>): Include
84420         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
84421         (verify): New macro.  Use it to verify that EXCLUDE macros do not
84422         collide with FNM macros.
84423         (struct patopts): New struct.
84424         (struct exclude): Use it, as exclude patterns now come with options.
84425         (new_exclude): Support above changes.
84426         (new_exclude, add_exclude_file):
84427         Initial size must now be a power of two to simplify overflow checking.
84428         (free_exclude, fnmatch_no_wildcards): New function.
84429         (excluded_filename): No longer requires options arg, as the options
84430         are determined by add_exclude.  Now returns bool, not int.
84431         (excluded_filename, add_exclude):
84432         Add support for the fancy new exclusion options.
84433         (add_exclude, add_exclude_file): Now takes int options arg.
84434         Check for arithmetic overflow when computing sizes.
84435         (add_exclude_file): xrealloc might modify errno, so don't
84436         realloc until after errno might be used.
84437
84438         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
84439         New macros.
84440         (free_exclude): New decl.
84441         (add_exclude, add_exclude_file): Now takes int options arg.
84442         (excluded_filename): No longer requires options arg, as the options
84443         are determined by add_exclude.  Now returns bool, not int.
84444
84445 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84446
84447         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
84448
84449 2001-08-27  Jim Meyering  <meyering@lucent.com>
84450
84451         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
84452
84453         * lib/version-etc.c (N_): Remove definition.
84454         Revert most of last change.
84455         Instead, simply don't mark the `Copyright...' string for translation.
84456         Based on advice from Paul Eggert.
84457
84458         * lib/strtoxmax.c: Tweak comment.
84459
84460 2001-08-26  Jim Meyering  <meyering@lucent.com>
84461
84462         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
84463
84464         * m4/xstrtoimax.m4: New file.
84465         * m4/xstrtoumax.m4: Add comments explaining why we
84466         AC_REPLACE_FUNCS(strtol).
84467
84468 2001-08-26  Jim Meyering  <meyering@lucent.com>
84469
84470         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
84471         of copyright with `%s' so translators don't get an untranslated
84472         message in 2002.
84473         (COPYRIGHT_YEAR): Define.
84474         (version_etc): Use fprintf rather than fputs.
84475         Suggestion from Ulrich Drepper.
84476
84477         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
84478
84479         * lib/strtoll.c: New file, from GNU libc.
84480         * lib/xstrtoimax.c: New file.
84481
84482         * lib/xstrtol.h: Add xstrtoimax.
84483         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
84484         * lib/strtoimax.c: New file.  Likewise, but first define
84485         STRTOUXMAX_SIGNED.
84486
84487         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
84488         ...
84489         * lib/strtoxmax.c: ... then renamed to this.
84490
84491 2001-08-18  Paul Eggert  <eggert@twinsun.com>
84492
84493         * m4/inttypes.m4: Add AC_PREREQ(2.13).
84494         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
84495         (jm_AC_TYPE_INTMAX_T): New macro.
84496         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
84497
84498         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
84499
84500         * m4/longlong.m4: Renamed from ulonglong.m4.
84501         * m4/inttypes.m4: Renamed from inttypes_h.m4.
84502         * m4/uintmax_t.m4: Removed.
84503
84504 2001-08-13  Paul Eggert  <eggert@twinsun.com>
84505
84506         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
84507         Port to Solaris 8, where 'sed' requires a space after the 'r'
84508         command, and where sh dislikes "$/".  Clean up the spacing a bit.
84509         Redirect output to $tmp just once.
84510
84511 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
84512
84513         * lib/addext.c (<errno.h>): Include.
84514         (errno): Declare if not defined.
84515         (addext): Work correctly when pathconf returns -1 and leaves
84516         errno alone because there is no limit.  Also, work even if
84517         pathconf returns a value greater than SIZE_MAX.
84518
84519 2001-08-12  Jim Meyering  <meyering@lucent.com>
84520
84521         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
84522         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
84523         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
84524         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
84525         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
84526         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
84527         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
84528         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
84529         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
84530         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
84531         utime.m4, utimes.m4, xstrtoumax.m4:
84532         Quote the first argument in each use of AC_DEFUN.
84533
84534 2001-08-12  Jim Meyering  <meyering@lucent.com>
84535
84536         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
84537         Simply `return getcwd (NULL, 0);'.
84538         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
84539         Use 1300 as initial value for length, not PATH_MAX.
84540
84541         * lib/pathmax.h: Clean up cpp syntax.
84542
84543 2001-08-12  Jim Meyering  <meyering@lucent.com>
84544
84545         * lib/gettimeofday.c: New file.
84546         * lib/gtod.h: New file.
84547         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
84548
84549 2001-08-05  Jim Meyering  <meyering@lucent.com>
84550
84551         * m4/jm-macros.m4: Require autoconf-2.52.
84552
84553 2001-08-04  Jim Meyering  <meyering@lucent.com>
84554
84555         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
84556         stmt, to get in sync with glibc.
84557
84558 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84559
84560         The following changes are from gettext 0.10.39 as maintained by
84561         Bruno Haible.
84562
84563         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
84564         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
84565         with inverted sense.  All uses changed.
84566
84567         * lib/mbswidth.c: Don't include <limits.h>.
84568         Include <stdlib.h> and <string.h> unconditionally.
84569         (iswcntrl, mbsinit, ISCNTRL): New macros.
84570         (mbsnwidth): Use K&R style function declarations.
84571         Don't bother checking for MB_LEN_MAX == 1, since the compiler
84572         can optimize it when MB_CUR_MAX == 1.
84573         The width of control characters is zero, not 1.
84574
84575 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84576
84577         The following changes are from gettext 0.10.39 as maintained by
84578         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
84579
84580         * m4/codeset.m4: Upgrade to serial AM1.
84581         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
84582         all uses changed.  Quote first arg of AC_DEFUN.
84583         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
84584
84585         * m4/iconv.m4: Upgrade to serial AM2.
84586         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
84587         Add --with-libconv-prefix.
84588         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
84589         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
84590         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
84591         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
84592         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
84593
84594         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
84595         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
84596         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
84597         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
84598         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
84599         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
84600         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84601         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
84602         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
84603
84604         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
84605         string.h any more.
84606
84607         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
84608         not the default value.
84609
84610         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
84611         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
84612         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
84613         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
84614         Also check for iswcntrl, used for wcwidth fallback.
84615         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
84616         to Autoconf 2.13.
84617
84618 2001-08-03  Jim Meyering  <meyering@lucent.com>
84619
84620         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
84621         as it was in the original.  Reported by Paul Eggert.
84622
84623 2001-07-16  Jim Meyering  <meyering@lucent.com>
84624
84625         * m4/gettimeofday.m4: New file.
84626         Prompted by a report from Bernhard Baehr.
84627
84628 2001-07-15  Jim Meyering  <meyering@lucent.com>
84629
84630         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
84631         stuff. Now it's in ../Makefile.cfg.
84632
84633 2001-07-15  Jim Meyering  <meyering@lucent.com>
84634
84635         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
84636         (BUILT_SOURCES): Add unlocked-io.h.
84637         (io_functions): Define.
84638         (unlocked-io.h): New rule.
84639         (DISTCLEANFILES): Add unlocked-io.h.
84640         (all-local): Depend on unlocked-io.h, to ensure it is created.
84641
84642         * lib/unlocked-io.hin: New file
84643
84644         * lib/regex.c: Update from glibc.
84645
84646 2001-07-05  Jim Meyering  <meyering@lucent.com>
84647
84648         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
84649         recommendation.
84650         (libfetish_a_SOURCES): Put all .h files here instead.
84651         Remove a thus-exposed (better checks in automake) duplicate and
84652         two unnecessary .h files.
84653
84654 2001-07-04  Jim Meyering  <meyering@lucent.com>
84655
84656         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
84657         that generates jm-glibc-io.m4 so that it doesn't trigger any make
84658         distcheck failure.
84659
84660 2001-07-02  Jim Meyering  <meyering@lucent.com>
84661
84662         The following changes were prompted by suggestions from Bruno Haible.
84663
84664         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
84665         is now generated.
84666         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
84667         definition of EXTRA_DIST.
84668         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
84669         ensure that the generated file is created/updated whenever the list
84670         of $(unlocked_functions) is changed.
84671         (jm-glibc-io.m4): New rule.
84672         (unlocked-io.h): New rule -- currently unused.
84673
84674 2001-06-24  Jim Meyering  <meyering@lucent.com>
84675
84676         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
84677         unmatched right bracket, rather than kludging it with an extra,
84678         falsely-matching quote in a comment.  Patch by Akim Demaille.
84679
84680 2001-06-11  Jim Meyering  <meyering@lucent.com>
84681
84682         * lib/regex.c: Update from GNU libc.
84683
84684 2001-05-27  Jim Meyering  <meyering@lucent.com>
84685
84686         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
84687         Check for ut_type in struct utmp.
84688
84689 2001-05-27  Jim Meyering  <meyering@lucent.com>
84690
84691         * lib/readutmp.h (UT_TYPE): Define.
84692
84693 2001-05-24  Jim Meyering  <meyering@lucent.com>
84694
84695         * lib/argmatch.c: Include "quote.h".
84696         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
84697         quote function.  Reported by Göran Uddeborg.
84698
84699 2001-05-22  Jim Meyering  <meyering@lucent.com>
84700
84701         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
84702         now that we use the package-supplied version unconditionally.
84703         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
84704
84705 2001-05-21  Jim Meyering  <meyering@lucent.com>
84706
84707         * m4/regex.m4: Change a couple backticks to single quotes to avoid
84708         shell syntax errors.
84709
84710 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84711
84712         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
84713
84714 2001-05-20  Paul Eggert  <eggert@twinsun.com>
84715
84716         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
84717         Don't bother to check library strftime, since
84718         we'll be using our own my_strftime function anyway.
84719         Define my_strftime instead of strftime.
84720
84721 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
84722
84723         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
84724         which is not yet declared.
84725
84726 2001-05-15  Jim Meyering  <meyering@lucent.com>
84727
84728         * m4/regex.m4: Use proper quoting so brackets appear in the test
84729         program.
84730         Reported by, and with help from, Bruno Haible.
84731
84732 2001-05-13  Jim Meyering  <meyering@lucent.com>
84733
84734         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
84735         undefined.
84736
84737 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84738
84739         dirname code cleanup.  base_name now behaves more compatibly
84740         with POSIX basename when given file names that have trailing
84741         slashes, and similarly for dir_name.  Add new primitives
84742         base_len and dir_len.  Put the directory-name-related decls
84743         into dirname.h.
84744
84745         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
84746         * lib/backupfile.c (base_name): Likewise.
84747         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
84748         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
84749         * lib/makepath.c (strip_trailing_slashes): Likewise.
84750         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
84751         ISSLASH): Likewise.
84752         * lib/rename.c (strip_trailing_slashes): Likewise.
84753         * lib/same.c (base_name): Likewise.
84754         * lib/stripslash.c (ISSLASH): Likewise.
84755
84756         * lib/addext.c: Include <dirname.h> after size_t is defined.
84757         * lib/backupfile.c: Likewise.
84758
84759         * lib/addext.c (addext): Use base_len to trim redundant
84760         trailing slashes instead of doing it ourselves.
84761         But do not trim the last slash if it is not redundant.
84762
84763         * lib/backupfile.c (find_backup_file_name,
84764         max_backup_version): Use base_len instead of rolling it ourselves.
84765         Handle the case of "" and (on DOS) "C:" correctly.
84766
84767         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
84768         needed. Include <string.h>, <dirname.h>.
84769         (base_name): Allow file names ending in slashes, other than names
84770         that are all slashes.  In this case, return the basename followed
84771         by the slashes.  This is more general, and can be used in places
84772         where the original base_name purposely had an assertion failure.
84773         (base_len): New function.
84774
84775         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
84776         Do not include <assert.h>; no longer needed.
84777         Include xalloc.h.
84778         (memrchr): Remove decl.
84779         (dir_name_r): Remove.
84780         (dir_len): Renamed from dirlen.  All callers changed.
84781         Rewrite in terms of base_name, for simplicity and consistency.
84782         (dir_name): Never return NULL.  All callers changed.
84783         Do not include <stdlib.h> in test program; no longer needed.
84784         return 0; is fine for test program.
84785
84786         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
84787         New macros.
84788         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
84789
84790         * lib/path-concat.c (path_concat): Use base_len to compute
84791         base length, not strlen; this means we cannot rely on memcpy
84792         to null-terminate.
84793
84794         * lib/same.c (STREQ): Remove.
84795         (same_name): Handle the case where the basename ends in trailing '/'.
84796
84797         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
84798         a slash was stripped.  Do not strip the last slash after a
84799         file system prefix.
84800
84801 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84802
84803         * lib/Makefile.am (libfetish_a_SOURCES):
84804         Add strftime.c, since we now compile it on all hosts.
84805
84806         * lib/strftime.c (my_strftime):
84807         Define to nstrftime if emacs, but only if my_strftime is not defined.
84808         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
84809         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
84810         Add one more extra argument: a nanoseconds value.
84811         All uses changed.
84812         (ns): New macro.
84813         (my_strftime function): Add %N format.
84814         (emacs_strftimeu): Renamed from emacs_strftime,
84815         with extra ut argument.
84816
84817 2001-05-09  Paul Eggert  <eggert@twinsun.com>
84818
84819         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
84820
84821 2001-04-21  Jim Meyering  <meyering@lucent.com>
84822
84823         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
84824         doesn't interfere.
84825
84826 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84827
84828         * m4/ftruncate.m4: Check for chsize.
84829         Link with ftruncate.o unconditionally if ftruncate is missing.
84830         This was required when cross-compiling to i586-mingw32msvc.
84831
84832 2001-04-08  Jim Meyering  <meyering@lucent.com>
84833
84834         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
84835         recomputed; that's necessary when the offset spans a DST transition.
84836         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
84837
84838 2001-04-02  Jim Meyering  <meyering@lucent.com>
84839
84840         * lib/regex.h, regex.c: Update from GNU libc.
84841
84842 2001-03-24  Jim Meyering  <meyering@lucent.com>
84843
84844         * m4/jm-macros.m4: Require autoconf-2.49d.
84845
84846 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
84847
84848         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
84849
84850 2001-03-19  Paul Eggert  <eggert@twinsun.com>
84851
84852         * lib/version-etc.c (version_etc_copyright): Update to 2001.
84853
84854 2001-03-17  Jim Meyering  <meyering@lucent.com>
84855
84856         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
84857         now that the version in autoconf is equivalent.
84858         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
84859
84860         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
84861         Suggestion from Akim Demaille.
84862
84863         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
84864         (jm_PREREQ_TEMPNAME): New function.
84865
84866 2001-03-16  Paul Eggert  <eggert@twinsun.com>
84867
84868         * lib/tempname.c (uint64_t): Define to uintmax_t if
84869         not defined, and if UINT64_MAX is not defined.
84870         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
84871         Reported by John David Anglin.
84872
84873 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
84874
84875         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
84876         resolve alias if codeset is empty.
84877         * lib/config.charset (BeOS): Use wildcard syntax.
84878
84879 2001-03-13  Jim Meyering  <meyering@lucent.com>
84880
84881         * lib/path-concat.c (path_concat)
84882         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
84883         concatenating e.g., `C:' and `foo'.
84884         From Bruno Haible.
84885
84886 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84887
84888         * lib/localcharset.c (locale_charset): Don't use
84889         setlocale(LC_CTYPE,NULL). Don't return NULL.
84890         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
84891
84892 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84893
84894         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
84895         support for DOS/DJGPP.
84896
84897 2001-03-01  Paul Eggert  <eggert@twinsun.com>
84898
84899         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
84900         lacks mkstemp.  Compile our own tempname.c if we compile our own
84901         mkstemp.c, as mkstemp relies on tempname.
84902
84903 2001-03-01  Jim Meyering  <meyering@lucent.com>
84904
84905         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
84906         AH_VERBATIM really does output its argument verbatim.
84907
84908 2001-02-28  Paul Eggert  <eggert@twinsun.com>
84909
84910         * lib/Makefile.am (libfetish_a_SOURCES):
84911         Add dup-safer.c, fopen-safer.c.
84912         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
84913
84914         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
84915         * lib/unistd-safer.h: New files.
84916
84917 2001-02-25  Paul Eggert  <eggert@twinsun.com>
84918
84919         The mkstemp replacement is taken from glibc 2.2.2, with some
84920         portability fixes for use outside glibc, as follows:
84921
84922         * lib/tempname.c (struct_stat64): New macro.
84923         (direxists, __gen_tempname): Use it.
84924         This avoids a portability problem with Solaris 8.
84925
84926         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
84927         (<stddef.h>, <stdint.h>, <string.h>):
84928         Include only if STDC_HEADERS || _LIBC.
84929         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
84930         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
84931         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
84932         (__set_errno): Define this macro if <errno.h> doesn't.
84933         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
84934         Define these macros if <stdio.h> doesn't.
84935         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
84936         Define these macros if <sys/stat.h>
84937         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
84938         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
84939         __xstat64): Define if not _LIBC.
84940         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
84941         (__gen_tempname): Invoke gettimeofday only if
84942         HAVE_GETTIMEOFDAY || _LIBC;
84943         otherwise, fall back on plain "time".
84944         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
84945
84946         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
84947
84948         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
84949
84950 2001-02-18  Paul Eggert  <eggert@twinsun.com>
84951
84952         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
84953
84954 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84955
84956         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
84957         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
84958         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
84959         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84960
84961 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84962
84963         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
84964         Remove workaround macros for hosts that have mbrtowc but not
84965         mbstate_t, as we now insist on proper declarations for both
84966         before using mbrtowc.
84967
84968 2001-02-17  Jim Meyering  <meyering@lucent.com>
84969
84970         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
84971         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
84972         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
84973         UnixWare 7.1.1.
84974
84975         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84976         rather than AC_CACHE_VAL.
84977
84978 2001-02-17  Jim Meyering  <meyering@lucent.com>
84979
84980         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84981         around included file name.
84982
84983         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84984
84985         * lib/strftime.c: Update from GNU libc (the only changes were to
84986         comments).
84987
84988 2001-02-17  Jim Meyering  <meyering@lucent.com>
84989
84990         * lib/regex.c: Update from libc.
84991
84992 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84993
84994         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84995         clash.
84996
84997 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84998
84999         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
85000         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
85001         Reported by Mark Hounschell via Paul Eggert.
85002
85003 2001-02-07  Jim Meyering  <meyering@lucent.com>
85004
85005         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
85006
85007 2001-02-05  Jim Meyering  <meyering@lucent.com>
85008
85009         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
85010         it includes the patch required for `large file' support with at least
85011         HP-UX's 10.20 /bin/cc.
85012
85013 2001-02-03  Jim Meyering  <meyering@lucent.com>
85014
85015         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
85016         AS_IF, now that it works once again (mysteriously).
85017         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85018
85019 2001-01-30  Jim Meyering  <meyering@lucent.com>
85020
85021         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
85022         * m4/chown.m4: Rename conftestchown to conftest.chown.
85023         * m4/rename.m4: s/conftestdir/conftest.d1/ and
85024         s/conftestdir2/conftest.d2/.
85025         * m4/utimes.m4: s/conftestdata/conftest.data/
85026         Inspired by Pavel Roskin's change in autoconf.
85027
85028 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
85029
85030         * lib/config.charset: Update for FreeBSD 4.2.
85031
85032 2001-01-27  Jim Meyering  <meyering@lucent.com>
85033
85034         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
85035         a use of AS_IF.
85036         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85037
85038 2001-01-26  Jim Meyering  <meyering@lucent.com>
85039
85040         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
85041         quotearg.c includes it.
85042
85043 2001-01-26  Jim Meyering  <meyering@lucent.com>
85044
85045         * lib/quotearg.c: Include stddef.h.
85046         * lib/quote.c: Include stddef.h.
85047         Reported by Axel Kittenberger.
85048
85049         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
85050         line in double quotes so that it evokes a better diagnostic.
85051         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
85052         Reported by Axel Kittenberger.
85053
85054 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
85055
85056         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
85057         as if it was a `charset'.
85058
85059 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85060
85061         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
85062         has const.
85063
85064 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85065
85066         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
85067         to avoid a warning.  Add back 'const' to inptr.
85068
85069 2001-01-20  Jim Meyering  <meyering@lucent.com>
85070
85071         Be sure that headers are checked before used in code compiled
85072         for the type checks.
85073         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
85074         In place of that, invoke jm_CHECK_ALL_TYPES.
85075         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
85076         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
85077         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
85078         The check for ssize_t was mistakenly run before the test for unistd.h.
85079
85080         The configure-time check for stdbool.h was missing.
85081         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
85082         (jm_PREREQ_HASH): New function.
85083
85084 2001-01-17  Jim Meyering  <meyering@lucent.com>
85085
85086         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
85087         for autoconf-2.49c.
85088         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
85089
85090 2001-01-16  Jim Meyering  <meyering@lucent.com>
85091
85092         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
85093         From Bruno Haible.
85094
85095 2001-01-14  Jim Meyering  <meyering@lucent.com>
85096
85097         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
85098         foo and bar.  Create conftestdir/ in the script, not in the C code.
85099         Remove directories in the script, not in the C code.
85100         Remove conftestdir{,2} before trying to create the directory.
85101         Make the entire configure script fail if the mkdir fails.
85102
85103 2001-01-14  Jim Meyering  <meyering@lucent.com>
85104
85105         * lib/rename.c: New file.  From Volker Borchert.
85106         Include stdlib.h, string.h or strings.h, and xalloc.h.
85107         Use strip_trailing_slashes rather than open-coding it.
85108
85109 2001-01-03  Paul Eggert  <eggert@twinsun.com>
85110
85111         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
85112
85113 2001-01-03  Jim Meyering  <meyering@lucent.com>
85114
85115         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
85116         of local `inptr' to avoid warning with some system declarations of
85117         iconv.
85118
85119 2001-01-02  Volker Borchert  <bt@teknon.de>
85120
85121         * m4/rename.m4: New file.
85122         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
85123
85124 2001-01-01  Jim Meyering  <meyering@lucent.com>
85125
85126         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
85127         even on systems with utmpx.h.  It's necessary for the declaration of
85128         utmp's ut_user member.  Reported by Andreas Jaeger.
85129
85130         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
85131         available. They are required for the declarations of getgrgid and
85132         getpwuid resp.
85133         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
85134         Reported by Andreas Jaeger.
85135
85136 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
85137
85138         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
85139         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
85140         so `make install' also works in VPATH builds.
85141
85142 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
85143
85144         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
85145         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
85146         can be used in subdirectories.
85147
85148 2000-12-29  Paul Eggert  <eggert@twinsun.com>
85149
85150         * lib/modechange.c: Do not assume that mode_t uses the
85151         traditional octal encoding.  E.g. "chmod 1 FOO" should set
85152         the other-execute bit of FOO even if S_IXOTH != 1.
85153
85154         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
85155         WOTH, XOTH, ALLM): New macros.
85156         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
85157          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
85158         Use them.
85159         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
85160         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
85161         (mode_compile):
85162         No need to use uintmax_t; unsigned long is long enough.
85163         Don't bother to get suffix since we don't use it.
85164
85165 2000-12-26  Jim Meyering  <meyering@lucent.com>
85166
85167         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
85168         better with autoheader.
85169
85170 2000-12-24  Jim Meyering  <meyering@lucent.com>
85171
85172         * lib/hash.c (is_prime): Return explicit boolean values.
85173         (hash_get_first): Return NULL to appease Irix5.6's 89.
85174         Reported by Nelson Beebe.
85175
85176 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
85177
85178         * lib/localcharset.c (locale_charset): Add support for Win32.
85179
85180 2000-12-18  Paul Eggert  <eggert@twinsun.com>
85181
85182         * lib/physmem.h, lib/physmem.c: New files.
85183
85184         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
85185         (noinst_HEADERS): Add physmem.h.
85186
85187         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
85188         't' for compatibility with Solaris 8 sort.
85189
85190 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
85191
85192         * lib/config.charset: Add support for BeOS.
85193
85194 2000-12-17  Jim Meyering  <meyering@lucent.com>
85195
85196         * m4/dos.m4 (jm_AC_DOS): New file and macro.
85197         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
85198
85199 2000-12-16  Jim Meyering  <meyering@lucent.com>
85200
85201         This bug had a serious impact on chown: `chown N:M FILE' (for integer
85202         N and M) would have treated it like `chown N:N FILE'.
85203
85204         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
85205
85206 2000-12-16  Jim Meyering  <meyering@lucent.com>
85207
85208         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
85209         SHELLS_FILE to a file name that's useful on djgpp systems.
85210         Include stdlib.h.
85211         (ADDITIONAL_DEFAULT_SHELLS): Define.
85212         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
85213         Based mostly on a patch from Prashant TR.
85214
85215 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
85216
85217         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
85218         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
85219         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
85220
85221 2000-12-08  Andreas Schwab  <schwab@suse.de>
85222
85223         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
85224         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
85225
85226 2000-12-07  Jim Meyering  <meyering@lucent.com>
85227
85228         * lib/stripslash.c (ISSLASH): Define.
85229         (strip_trailing_slashes): Use ISSLASH rather than comparing against
85230         `/'.
85231         From Prashant TR.
85232
85233         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
85234         (dir_name_r): Declare this function as static.
85235         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
85236         manifest itself on a name containing a mix of slashes and
85237         backslashes.
85238         Make this function work with names starting with a DOS-style
85239         drive letter and colon prefix.
85240         (dir_name): Append `.' if necessary.
85241         Based mostly on patches from Prashant TR and Eli Zaretskii.
85242
85243         * lib/dirname.h (dir_name_r): Remove prototype.
85244
85245 2000-12-06  Paul Eggert  <eggert@twinsun.com>
85246
85247         * m4/off_t-format.m4: Remove this file.
85248         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
85249
85250 2000-12-06  Jim Meyering  <meyering@lucent.com>
85251
85252         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
85253         replacement strtoull, we may well need the replacement strtoul, too.
85254         Check for declarations of strtoul and strtoull.
85255         Check for strtol.  Mainly as a cue to cause automake to include
85256         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
85257         Check for limits.h -- strtol.c needs it.
85258
85259 2000-12-05  Jim Meyering  <meyering@lucent.com>
85260
85261         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
85262
85263 2000-12-04  Jim Meyering  <meyering@lucent.com>
85264
85265         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
85266         Also include memory.h, stdlib.h, unistd.h if appropriate.
85267         Reported by Andreas Jaeger (conflicting declaration of malloc).
85268
85269 2000-12-02  Jim Meyering  <meyering@lucent.com>
85270
85271         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
85272         * m4/jm-macros.m4 (jm_MACROS): require it.
85273
85274 2000-12-02  Jim Meyering  <meyering@lucent.com>
85275
85276         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
85277
85278 2000-12-01  Paul Eggert  <eggert@twinsun.com>
85279
85280         * lib/memrchr.c: Include <config.h> before any system include file.
85281
85282 2000-11-30  Jim Meyering  <meyering@lucent.com>
85283
85284         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
85285
85286 2000-11-30  Jim Meyering  <meyering@lucent.com>
85287
85288         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
85289
85290 2000-11-29  Paul Eggert  <eggert@twinsun.com>
85291
85292         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
85293
85294 2000-11-26  Jim Meyering  <meyering@lucent.com>
85295
85296         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
85297
85298 2000-11-22  Paul Eggert  <eggert@twinsun.com>
85299
85300         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
85301         size of (size_t) -1; it's not portable.
85302
85303 2000-11-17  Jim Meyering  <meyering@lucent.com>
85304
85305         * lib/strstr.c: Update from GNU libc.
85306
85307 2000-11-17  Akim Demaille  <akim@epita.fr>
85308
85309         * lib/obstack.h: Formatting changes.
85310         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
85311         prevent type checking.
85312         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
85313         cast the value to (void *): assigning a `foo *' to a `void *'
85314         variable is valid.
85315         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
85316
85317 2000-11-16  Jim Meyering  <meyering@lucent.com>
85318
85319         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
85320
85321 2000-11-11  Jim Meyering  <meyering@lucent.com>
85322
85323         * lib/error.c: Add a couple #includes, merging from GNU libc version.
85324
85325 2000-11-10  Jim Meyering  <meyering@lucent.com>
85326
85327         * lib/obstack.h: Update from GNU libc.
85328         * lib/obstack.c: Likewise.
85329
85330 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
85331
85332         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
85333
85334 2000-11-06  Paul Eggert  <eggert@twinsun.com>
85335
85336         * lib/getusershell.c (setusershell): Use rewind rather than
85337         fseek/fseeko, to avoid configuration hassles with fseeko.
85338         Don't bother opening SHELLS_FILE if shellstream is NULL;
85339         it's not necessary.
85340
85341 2000-11-05  Jim Meyering  <meyering@lucent.com>
85342
85343         * lib/makepath.h (make_dir): Declare.
85344         * lib/makepath.c (make_dir): Remove `static' attribute.
85345         Tweak a comment.
85346
85347 2000-11-04  Jim Meyering  <meyering@lucent.com>
85348
85349         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
85350
85351 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
85352
85353         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
85354         last one in a bucket, advance to the next bucket.
85355
85356 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
85357
85358         * lib/fnmatch.c: Do not comment out all the code if we are using
85359         the GNU C library, because in some cases we are replacing buggy
85360         code in the GNU C library itself.
85361
85362 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
85363
85364         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
85365         (regex_compile): Catch bogus \(\1\).
85366
85367 2000-10-30  Paul Eggert  <eggert@twinsun.com>
85368
85369         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
85370         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
85371         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
85372
85373 2000-10-30  Paul Eggert  <eggert@twinsun.com>
85374
85375         * lib/error.h, getline.h, modechange.h:
85376         Remove "2000" from Copyright line, as the file hasn't been
85377         changed this year other than in the copyright notice.
85378
85379         * lib/xalloc.h: Add "2000" to Copyright line, as this file
85380         was changed this year.
85381
85382 2000-10-29  Jim Meyering  <meyering@lucent.com>
85383
85384         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
85385         renaming.
85386         * m4/ls-mntd-fs.m4: Likewise
85387
85388 2000-10-29  Jim Meyering  <meyering@lucent.com>
85389
85390         * lib/xstat.in: Fix grammar in comment.
85391
85392 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
85393
85394         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
85395         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
85396         doesn't define __restrict_arr.
85397
85398 2000-10-28  Jim Meyering  <meyering@lucent.com>
85399
85400         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
85401         (jm_PREREQ_MEMCHR): New function.
85402
85403 2000-10-28  Jim Meyering  <meyering@lucent.com>
85404
85405         * lib/memchr.c: Update from libc.
85406         Adjust for portability:
85407         [HAVE_STDLIB_H]: Include stdlib.h.
85408         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
85409         Undef __memchr, too.
85410         [!weak_alias]: Define __memchr to memchr.
85411
85412         * lib/regex.c: Update from libc.
85413         * lib/regex.h: Likewise.
85414         * lib/getopt1.c: Likewise.
85415         * lib/memcmp.c: Likewise.
85416
85417         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
85418         Avoid using fseek, when possible -- it's broken by design.
85419         Patch by Ulrich Drepper.
85420
85421 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
85422
85423         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
85424         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
85425         Giving in to popular pressure to shut up the compiler with casts.
85426
85427 2000-10-26  Jim Meyering  <meyering@lucent.com>
85428
85429         * lib/strftime.c: Update from libc.
85430
85431 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
85432
85433         * regex.c: More `unsigned char' -> `re_char' changes.
85434         Also change several `int' into `re_wchar_t'.
85435         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
85436         (PUSH_FAILURE_POINTER): Don't cast any more.
85437         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
85438         We want GCC to complain, since this piece of code makes
85439         re_match non-reentrant, which *should* be fixed.
85440         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
85441         (EXTEND_BUFFER): Use RETALLOC.
85442         (SET_LIST_BIT): Don't cast.
85443         (re_wchar_t): New type.
85444         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
85445         that those two functions will always properly return.
85446         (IMMEDIATE_QUIT_CHECK): Cast to void.
85447         (analyse_first): Use recursion rather than an explicit stack.
85448         (re_compile_fastmap): Can't fail anymore.
85449         (re_search_2): Don't check re_compile_fastmap for failure.
85450         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
85451         Now also sets the new value (passed in a new argument).
85452         (re_match_2_internal): Use it.
85453         Also, use a new var `reg' of type size_t when looping through regs
85454         rather than reuse the inappropriate `mcnt'.
85455
85456 2000-10-25  Jim Meyering  <meyering@lucent.com>
85457
85458         * lib/obstack.c: Update from libc.
85459
85460 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
85461
85462         * regex.c (regex_compile): Change the way of handling a range from
85463         a char less than 256 to a char not less than 256.
85464
85465 2000-10-24  Andrew Innes  <andrewi@gnu.org>
85466
85467         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
85468         NT-Emacs only.
85469         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
85470         so that re_search functions only quit when callers expect them to.
85471
85472 2000-10-23  Jim Meyering  <meyering@lucent.com>
85473
85474         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
85475         wrong.  That set_locale call must not have any side effects.
85476         From Paul Eggert.
85477
85478 2000-10-22  Jim Meyering  <meyering@lucent.com>
85479
85480         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
85481         [CYCLIC]: Remove now-unused definition.
85482
85483         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
85484         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
85485         Suggestion from Ulrich Drepper.
85486
85487 2000-10-21  Jim Meyering  <meyering@lucent.com>
85488
85489         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
85490         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
85491         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
85492
85493 2000-10-21  Jim Meyering  <meyering@lucent.com>
85494
85495         * lib/dirname.c (memrchr): Declare if necessary.
85496         (dir_name): Remove the restriction that there be no
85497         trailing slashes.  Now, this code skips past them, effectively
85498         ignoring them.
85499         [TEST_DIRNAME] (main): New unit tests.
85500
85501         * lib/memrchr.c: New file from GNU libc.
85502         Undef __memrchr, too.
85503         [!weak_alias]: Define __memrchr to memrchr.
85504         Guard weak_alias use with `#ifdef weak_alias'.
85505
85506 2000-10-21  Jim Meyering  <meyering@lucent.com>
85507
85508         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
85509         (dir_name): Use dir_name_r.
85510         * lib/dirname.h (dir_name_r): Declare it.
85511
85512 2000-10-17  Jim Meyering  <meyering@lucent.com>
85513
85514         * lib/quote.h (PARAMS): Define and use.
85515         Reported by Akim Demaille.
85516
85517         * lib/getopt.c: Update from libc.
85518
85519 2000-10-16  Jim Meyering  <meyering@lucent.com>
85520
85521         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
85522         setlocale.
85523         From Jan Fedak.
85524
85525 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
85526
85527         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
85528
85529 2000-09-25  Jim Meyering  <meyering@lucent.com>
85530
85531         * lib/md5.h (rol): Define (from GnuPG).
85532
85533         * lib/sha.c: Give credit (GnuPG) where due.
85534         (M): Use rol rather than open-coding it.
85535         Add a FIXME comment.
85536
85537 2000-09-21  Jim Meyering  <meyering@lucent.com>
85538
85539         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
85540         Reported by Michael Stone.
85541
85542 2000-09-20  Jim Meyering  <meyering@lucent.com>
85543
85544         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
85545         (noinst_HEADERS): Add sha.h.
85546         Based on code from Scott G. Miller and from GnuPG.
85547
85548 2000-09-18  Jim Meyering  <meyering@lucent.com>
85549
85550         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
85551         LIBS. Otherwise, everyone ends up linking with -lelf for some
85552         configurations.
85553         Reported by Mike Stone.
85554
85555 2000-09-15  Jim Meyering  <meyering@lucent.com>
85556
85557         * lib/regex.c: Update from libc.
85558
85559 2000-09-10  Jim Meyering  <meyering@lucent.com>
85560
85561         * lib/getopt.c (_getopt_internal): Update from glibc.
85562
85563 2000-09-09  Jim Meyering  <meyering@lucent.com>
85564
85565         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
85566         think it should be used as a general replacement for isascii.
85567         * lib/fnmatch.c: Likewise.
85568         * lib/mbswidth.c: Likewise
85569         * lib/regex.c: Likewise.
85570
85571         Don't use atoi.
85572         * lib/userspec.c: Include sys/param.h and limits.h.
85573         Include xstrtol.h.
85574         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85575         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
85576         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
85577         UID, GID.  Check range.
85578
85579 2000-09-06  Jim Meyering  <meyering@lucent.com>
85580
85581         * lib/getopt.c (_getopt_internal): Update from glibc.
85582
85583 2000-08-30  Jim Meyering  <meyering@lucent.com>
85584
85585         * lib/strftime.c: Merge in changes from GNU libc.
85586
85587 2000-08-26  Jim Meyering  <meyering@lucent.com>
85588
85589         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
85590         * m4/fpending.m4: New file.
85591
85592 2000-08-26  Jim Meyering  <meyering@lucent.com>
85593
85594         * lib/closeout.c: Include "__fpending.h".
85595         (close_stdout_status): Return right away if there's nothing to flush.
85596
85597         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
85598         * lib/__fpending.c: New file.
85599         * lib/__fpending.h: New file.
85600
85601 2000-08-20  Jim Meyering  <meyering@lucent.com>
85602
85603         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
85604         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
85605         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
85606
85607 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
85608
85609         Improve fileutils installation on systems where running
85610         programs (like install) can't be unlinked.
85611         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
85612         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
85613
85614 2000-08-07  Paul Eggert  <eggert@twinsun.com>
85615
85616         Standardize on "memory exhausted" instead of "Memory exhausted"
85617         or "virtual memory exhausted".
85618         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
85619         "virtual memory exhausted".
85620         * lib/same.c (same_name): Invoke xalloc_die instead of printing
85621         our own message.
85622         * lib/userspec.c (parse_user_spec): Likewise.
85623         * lib/bumpalloc.h: comment fix
85624         * lib/same.c, userspec.c: Include xalloc.h.
85625
85626         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
85627         not char *const and pointing to a constant array.
85628         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
85629         (xrealloc): Comment fix.
85630
85631         * lib/userspec.c (parse_user_spec):
85632         Don't translate a message until just before returning,
85633         to avoid unnecessary translation.
85634
85635 2000-08-07  Jim Meyering  <meyering@lucent.com>
85636
85637         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
85638         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
85639         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
85640         getgroups.c, gethostname.c, getopt.h, group-member.c,
85641         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
85642         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
85643         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
85644         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
85645         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
85646         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
85647         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
85648         yesno.c: Back out Copyright date changes for each file with no change
85649         this year.  This eases coordination with other programs using the same
85650         source code modules.  From Paul Eggert.
85651
85652 2000-08-06  Paul Eggert  <eggert@twinsun.com>
85653
85654         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
85655         not char, for compatibility with glibc 2.1.3 strftime.c.
85656
85657 2000-08-03  Greg McGary  <greg@mcgary.org>
85658
85659         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
85660         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
85661         (EXTEND_BUFFER): Use them.
85662
85663 2000-08-01  Jim Meyering  <meyering@lucent.com>
85664
85665         * lib/dirname.c (ISSLASH): Define.
85666         (BACKSLASH_IS_PATH_SEPARATOR): Define.
85667         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
85668         both `\' and `/' may be use as path separators.
85669         Based on a patch from Prashant TR.
85670
85671 2000-07-31  Paul Eggert  <eggert@twinsun.com>
85672
85673         * lib/quotearg.c (quotearg_n_options): Don't make the initial
85674         slot vector a constant, since it might get modified.
85675
85676 2000-07-31  Jim Meyering  <meyering@lucent.com>
85677
85678         * lib/xmalloc.c: Use `virtual memory exhausted', not
85679         `Memory exhausted'.
85680         * lib/obstack.c (print_and_abort): Likewise.
85681
85682 2000-07-30  Paul Eggert  <eggert@twinsun.com>
85683
85684         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
85685         buffer, so that the caller can always quote one small
85686         component of a "memory exhausted" message in slot 0.
85687         From a suggestion by Jim Meyering.
85688
85689 2000-07-30  Jim Meyering  <meyering@lucent.com>
85690
85691         * lib/makepath.c (make_path): Quote the other instance, too.
85692
85693         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
85694         (STATIC_BUF_SIZE): Define.
85695         (quotearg_n_options): Use only statically allocated storage when
85696         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
85697         than STATIC_BUF_SIZE.
85698
85699 2000-07-29  Jim Meyering  <meyering@lucent.com>
85700
85701         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
85702         * lib/dirname.c (dir_name): Likewise.
85703
85704         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
85705         `/'.
85706
85707         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
85708         (dir_name): Assert that there are no trailing slashes.
85709
85710 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
85711
85712         * lib/mbswidth.h (mbswidth): Add a flags argument.
85713         (mbswidth): New declaration.
85714         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
85715         * lib/mbswidth.c (mbswidth): Add a flags argument.
85716         (mbsnwidth): New function.
85717
85718 2000-07-24  Jim Meyering  <meyering@lucent.com>
85719
85720         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
85721
85722 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85723
85724         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
85725
85726 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85727
85728         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
85729         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
85730         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
85731         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
85732         invoke multibyte primitives.
85733
85734 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85735
85736         * lib/quotearg.c:
85737         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
85738         so that mbstate_t is always defined.
85739
85740         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
85741         be 1 in at least one GCC installation, and this configuration
85742         error is likely to be common.  Ignoring MB_LEN_MAX hurts
85743         performance on hosts that have mbrtowc but have only unibyte
85744         locales, but I assume these hosts are rare.
85745
85746 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85747
85748         * lib/mbswidth.c (_XOPEN_SOURCE):
85749         Don't define; this causes problems on Solaris 7.
85750         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
85751
85752 2000-07-23  Jim Meyering  <meyering@lucent.com>
85753
85754         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
85755         too: getgrgid, getpwuid, getuid.
85756
85757 2000-07-23  Jim Meyering  <meyering@lucent.com>
85758
85759         * lib/basename.c (base_name): Add an assertion.
85760
85761 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
85762
85763         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
85764         shadow its mbsinit function.
85765
85766 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85767
85768         * lib/mbswidth.h: New file.
85769         * lib/mbswidth.c: New file.
85770         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
85771         (noinst_HEADERS): Add mbswidth.h.
85772
85773 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85774
85775         * lib/config.charset: Add support for FreeBSD. Improve support for
85776         HP-UX and IRIX 6.
85777
85778 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
85779
85780         * m4/mbswidth.m4: New file.
85781         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
85782
85783 2000-07-15  Jim Meyering  <meyering@lucent.com>
85784
85785         * lib/makepath.c: Include quote.h.
85786         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
85787         corresponding argument in a `quote (...)' call.
85788         Give better diagnostics.
85789
85790         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
85791         (noinst_HEADERS): Add quote.h.
85792
85793         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
85794         from tar's src/misc.c.
85795         * lib/quote.h: New file.  Prototypes for same.
85796
85797 2000-07-14  Paul Eggert  <eggert@twinsun.com>
85798
85799         From a suggestion by Bruno Haible.
85800         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
85801         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
85802         to decide whether to define the BeOS workaround macro;
85803         this adjusts to the change to AC_MBSTATE_T.
85804
85805 2000-07-14  Jim Meyering  <meyering@lucent.com>
85806
85807         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
85808         jm_AC_TYPE_UINTMAX_T.
85809
85810 2000-07-13  Paul Eggert  <eggert@twinsun.com>
85811
85812         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
85813
85814         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
85815         quotearg_buffer_restyled): Add support for
85816         clocale_quoting_style.  Undo previous change to
85817         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
85818         and "{RIGHT QUOTATION MARK}" msgids.
85819
85820 2000-07-10  Paul Eggert  <eggert@twinsun.com>
85821
85822         From a suggestion by Bruno Haible.
85823         * m4/mbstate_t.m4 (AC_MBSTATE_T):
85824         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
85825         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
85826         and mbstate_t, to a single-part test that simply defines mbstate_t.
85827         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
85828         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
85829
85830 2000-07-10  Jim Meyering  <meyering@lucent.com>
85831
85832         * m4/strerror_r.m4: Mirror the correction made in autoconf.
85833
85834         * m4/gnu-source.m4: Output to confdefs.h directly.
85835         Suggestion from Akim Demaille.
85836
85837 2000-07-09  Paul Eggert  <eggert@twinsun.com>
85838
85839         The old behavior of quoting `like this' doesn't look good with
85840         newer, ISO-style fonts.  See:
85841         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
85842
85843         Instead, quote "like this" by default.  Let the translator
85844         tailor the locale-specific quoting behavior by providing
85845         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
85846
85847         * lib/quotearg.c (N_): New macro.
85848         (gettext_default): New function.
85849         (quotearg_buffer_restyled): Use
85850         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
85851         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
85852
85853 2000-07-09  Jim Meyering  <meyering@lucent.com>
85854
85855         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
85856         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
85857
85858         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
85859         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
85860
85861 2000-07-09  Jim Meyering  <meyering@lucent.com>
85862
85863         * lib/Most files: Update copyright dates to include 2000.
85864
85865 2000-07-08  Jim Meyering  <meyering@lucent.com>
85866
85867         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
85868         if not defined.
85869         (xgethostname): Remove now-unnecessary #ifdef.
85870         Move declaration of `err' into loop where it's used.
85871
85872 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85873         and Bruno Haible  <haible@clisp.cons.org>
85874
85875         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
85876         only if the test for an object-type mbstate_t fails.  This
85877         prevents us from mistakenly reporting that mbstate_t is a
85878         system object type after we "#define mbstate_t int" to work
85879         around its lack.
85880
85881 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85882         and Bruno Haible  <haible@clisp.cons.org>
85883
85884         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
85885
85886 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85887
85888         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
85889         to strerror_r.
85890         Include <ctype.h> for use of isalpha.
85891
85892 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85893
85894         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
85895         by allocating a larger buffer. Test the gethostname return value for
85896         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
85897         returns an error and ENAMETOOLONG isn't defined.
85898
85899 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85900
85901         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
85902         dimension.
85903
85904 2000-07-04  Jim Meyering  <meyering@lucent.com>
85905
85906         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
85907         of the deprecated AC_CHECKING.
85908
85909 2000-07-04  Jim Meyering  <meyering@lucent.com>
85910
85911         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
85912         Reported by Bruno Haible.
85913
85914 2000-07-04  Jim Meyering  <meyering@lucent.com>
85915
85916         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
85917         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
85918         lacks mbrtowc.
85919
85920 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85921
85922         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
85923         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
85924
85925 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85926         and Bruno Haible  <haible@clisp.cons.org>
85927
85928         * lib/quotearg.c (mbrtowc):
85929         Assign to *pwc, and return 1 only if result is nonzero.
85930         (iswprint): Use ISPRINT when substituting our own mbrtowc.
85931
85932 2000-07-03  Jim Meyering  <meyering@lucent.com>
85933
85934         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
85935
85936 2000-07-03  Jim Meyering  <meyering@lucent.com>
85937
85938         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
85939         This is necessary to get a definition of e.g., UTMP_FILE on
85940         HP-UX 10.20.
85941         From Bob Proulx.
85942
85943 2000-07-02  Jim Meyering  <meyering@lucent.com>
85944
85945         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
85946
85947         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
85948         AC_LIBOBJ(function_name).
85949         * m4/chown.m4: Likewise.
85950         * m4/fnmatch.m4: Likewise.
85951         * m4/ftruncate.m4: Likewise.
85952         * m4/getgroups.m4: Likewise.
85953         * m4/getline.m4: Likewise.
85954         * m4/group-member.m4: Likewise.
85955         * m4/jm-macros.m4: Likewise.
85956         * m4/lstat.m4: Likewise.
85957         * m4/malloc.m4: Likewise.
85958         * m4/memcmp.m4: Likewise.
85959         * m4/nanosleep.m4: Likewise.
85960         * m4/putenv.m4: Likewise.
85961         * m4/realloc.m4: Likewise.
85962         * m4/regex.m4: Likewise.
85963         * m4/stat.m4: Likewise.
85964         * m4/strftime.m4: Likewise.
85965
85966 2000-07-02  Jim Meyering  <meyering@lucent.com>
85967
85968         * lib/quotearg.c (mbstate_t): Don't define here.
85969
85970 2000-07-02  Jim Meyering  <meyering@lucent.com>
85971
85972         * lib/nanosleep.c (SIGCONT): Define if not already defined.
85973
85974 2000-07-01  Jim Meyering  <meyering@lucent.com>
85975
85976         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85977
85978 2000-07-01  Jim Meyering  <meyering@lucent.com>
85979
85980         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85981         problem.
85982
85983 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85984
85985         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85986         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85987
85988 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85989
85990         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85991         per change in ../m4/ls-mntd-fs.m4.
85992         (read_filesystem_list): Ignore symbolic links.
85993
85994 2000-06-29  Jim Meyering  <meyering@lucent.com>
85995
85996         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85997         for declaration of strcmp.
85998
85999         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
86000
86001         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
86002         Avoid warning by casting result to `char *' to remove `const'.
86003
86004 2000-06-28  Jim Meyering  <meyering@lucent.com>
86005
86006         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
86007         included by quotearg.c, for which we perform this test.  From
86008         Bruno Haible.
86009
86010 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86011
86012         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
86013         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
86014         <utmpx.h> exists, put readutmp.o into LIBOBJS.
86015
86016 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86017
86018         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
86019
86020 2000-06-26  Paul Eggert  <eggert@twinsun.com>
86021
86022         savedir now sets errno on failure and invokes xmalloc to get memory.
86023         Fix a couple of other minor bugs while we're at it.
86024
86025         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
86026         (NAMLEN): Remove macro.
86027         (malloc, realloc): Remove decls.
86028         (stpcpy): Likewise.
86029         ("xalloc.h"): Include.
86030         (NAME_SIZE_DEFAULT): New macro.
86031         (savedir): Use xmalloc / xrealloc to allocate memory.
86032         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
86033         Skip "" directory entries.
86034         Use strlen to calculate directory entry length, since the old method
86035         is rarely used these days and isn't worth supporting.
86036         Don't use a pointer after freeing it.
86037         Check for integer overflow when calculating allocation size.
86038         Use memcpy to copy entries, instead of stpcpy.
86039         Set errno properly when returning NULL.
86040         Check for readdir error.
86041
86042 2000-06-26  Jim Meyering  <meyering@lucent.com>
86043
86044         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
86045
86046 2000-06-25  Jim Meyering  <meyering@lucent.com>
86047
86048         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
86049         Linux header bug when _XOPEN_SOURCE is defined to 500.
86050
86051 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86052
86053         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
86054         deficiency.
86055
86056 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86057
86058         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
86059         Include xalloc.h.
86060         Don't include <stdlib.h>.  Don't declare malloc, realloc.
86061
86062 2000-06-24  Jim Meyering  <meyering@lucent.com>
86063
86064         * m4/strerror_r.m4: Revive this file -- to try out an experimental
86065         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
86066         for which strerror does return char*, but which lacks a conveniently
86067         accessible declaration of the function.  If the compile-test says
86068         strerror_r doesn't work, then resort to a `run'-test that works on
86069         BeOS and segfaults on DEC Unix.
86070
86071 2000-06-24  Jim Meyering  <meyering@lucent.com>
86072
86073         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
86074
86075 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86076
86077         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
86078         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
86079
86080 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86081
86082         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
86083         (mbrtowc, mbstate_t): Define substitutes if
86084         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
86085         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
86086         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
86087
86088 2000-06-23  Jim Meyering  <meyering@lucent.com>
86089
86090         * m4/afs.m4: Add missing AC_MSG_RESULT.
86091         Reported by Bruno Haible.
86092
86093         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
86094         Suggestion from Bruno Haible.
86095
86096 2000-06-23  Jim Meyering  <meyering@lucent.com>
86097
86098         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
86099
86100 2000-06-21  Jim Meyering  <meyering@lucent.com>
86101
86102         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
86103
86104 2000-06-21  Jim Meyering  <meyering@lucent.com>
86105
86106         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
86107         (noinst_HEADERS): Add getstr.h.
86108
86109         * lib/getline.c (getstr): Move into a separate file.
86110         * lib/getstr.c (getstr): New file, extracted from getline.c, with
86111         the following changes: new parameter, delim2; both delim[12]
86112         parameters have type `int', not `char'.  The latter would lose
86113         with 8-bit delimiters.
86114         * lib/getstr.h: New file.
86115
86116 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86117
86118         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
86119         than 1024, return a memory chunk of least possible size, instead
86120         of size PATH_MAX + 2. In the loop, increment the size proportionally.
86121         Use free/xmalloc instead of xrealloc to avoid copying for very long
86122         paths.
86123
86124 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86125
86126         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
86127         the empty string.
86128
86129 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86130
86131         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
86132         address, not strdup.  Include <stdlib.h> and don't declare free().
86133
86134 2000-06-19  Jim Meyering  <meyering@lucent.com>
86135
86136         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
86137
86138 2000-06-18  Jim Meyering  <meyering@lucent.com>
86139
86140         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
86141
86142         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
86143         `checking whether...' message to be consistent with that of the
86144         lstat test.
86145
86146 2000-06-18  Jim Meyering  <meyering@lucent.com>
86147
86148         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
86149         Besides, these days every porting target provides a mkdir function.
86150
86151         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
86152         needed. (this snippet comes from src/system.h).
86153
86154 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
86155
86156         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
86157
86158 2000-06-15  Paul Eggert  <eggert@twinsun.com>
86159
86160         * lib/human.c (adjust_value): New function.
86161         (human_readable_inexact): Apply rounding style even when
86162         printing approximate values.
86163
86164 2000-06-14  Paul Eggert  <eggert@twinsun.com>
86165
86166         * lib/human.c (human_readable_inexact): Allow an input block
86167         size that is not a multiple of the output block size, and vice versa.
86168         Reported by Piergiorgio Sartor.
86169
86170 2000-06-14  Paul Eggert  <eggert@twinsun.com>
86171
86172         * lib/getdate.y (get_date): Apply relative times after time
86173         zone indicator, not before.  Reported by Todd A. Jacobs.
86174
86175 2000-06-13  Jim Meyering  <meyering@lucent.com>
86176
86177         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
86178
86179         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
86180
86181 2000-06-12  Paul Eggert  <eggert@twinsun.com>
86182
86183         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
86184
86185 2000-06-12  Jim Meyering  <meyering@lucent.com>
86186
86187         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
86188         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
86189         optional argument.
86190         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
86191         the optional argument, `lib'.
86192
86193 2000-06-08  Jim Meyering  <meyering@lucent.com>
86194
86195         * m4/largefile.m4: Remove file (now that it's part of autoconf).
86196
86197 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86198
86199         Rewrite largefile configuration so that we don't need to run
86200         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
86201         AC_CANONICAL_HOST in configure.in -- jmm]
86202
86203         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
86204         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
86205         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
86206         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
86207         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
86208         All uses changed.
86209         Instead of inspecting the output of getconf, try to compile the
86210         test program without and with the macro definition.
86211         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
86212         for getconf.  Instead, check for the needed flags by compiling
86213         test programs.
86214
86215 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86216
86217         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
86218
86219 2000-06-04  Jim Meyering  <meyering@lucent.com>
86220
86221         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
86222         SunOS 4.1.4 for which gid_t is an unsigned type.
86223
86224 2000-06-03  Jim Meyering  <meyering@lucent.com>
86225
86226         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
86227         now that autoconf requires that.
86228
86229         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
86230         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
86231         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
86232
86233 2000-06-03  Jim Meyering  <meyering@lucent.com>
86234
86235         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
86236
86237 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86238
86239         * m4/glibc21.m4: New file.
86240         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
86241
86242 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86243
86244         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
86245         newer, don't install charset.alias.
86246         * lib/config.charset: Change the Linux/glibc rules so they become empty
86247         on glibc-2.1 or newer.
86248
86249 2000-06-02  Jim Meyering  <meyering@lucent.com>
86250
86251         * lib/mountlist.c: Back out last change.  Instead, do this...
86252         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
86253         me_dummy member using the same `ignore'-testing code.
86254         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
86255         fs_type strings.
86256         From Mark D. Roth.
86257
86258 2000-05-29  Jim Meyering  <meyering@lucent.com>
86259
86260         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
86261         mounts with the `ignore' attribute.  Based on a patch from
86262         Mark D. Roth.
86263
86264 2000-05-28  Jim Meyering  <meyering@lucent.com>
86265
86266         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
86267         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86268         * m4/stat.m4: Likewise.
86269         * m4/lstat.m4: Likewise.
86270         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
86271
86272         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
86273         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
86274
86275 2000-05-26  Jim Meyering  <meyering@lucent.com>
86276
86277         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
86278
86279 2000-05-24  Jim Meyering  <meyering@lucent.com>
86280
86281         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
86282         autoconf requires that.
86283         * m4/lib-check.m4: Likewise.
86284         * m4/jm-macros.m4: Likewise.
86285         * m4/strftime.m4: Likewise.
86286
86287         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
86288         AC_CHECK_DECLS, now that autoconf requires that.
86289
86290 2000-05-22  Jim Meyering  <meyering@lucent.com>
86291
86292         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86293         * m4/lstat.m4: Likewise.
86294
86295 2000-05-22  Jim Meyering  <meyering@lucent.com>
86296
86297         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
86298
86299 2000-05-20  Jim Meyering  <meyering@lucent.com>
86300
86301         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
86302         (jm_PREREQ): Use it.
86303
86304 2000-05-18  Jim Meyering  <meyering@lucent.com>
86305
86306         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
86307         back, too, since it may have been modified by allocate_entry.
86308         (hash_delete): Rewrite to use neither the assignment operator
86309         nor the comma operator in an if-expression.
86310
86311 2000-05-15  Paul Eggert  <eggert@twinsun.com>
86312
86313         * lib/closeout.c:
86314         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
86315         Remove; no longer needed.
86316         "quotearg.h": Add include.
86317         (file_name): Do not bother to explicitly initialize to NULL; it's less
86318         efficient on some hosts.
86319         (close_stdout_status): Remove test as to whether stdout was already
86320         closed; it breaks for the case "echo x | sort >&-".
86321         Quote file name colons.
86322         Do not assume that _("write error") lacks format strings.
86323
86324 2000-05-15  Jim Meyering  <meyering@lucent.com>
86325
86326         * lib/version-etc.c (version_etc_copyright): Update the copyright
86327         string used in all --version output.
86328
86329 2000-05-14  Jim Meyering  <meyering@lucent.com>
86330
86331         * lib/closeout.c (close_stdout_set_file_name): New function.
86332         (close_stdout_status): Use new file-scoped global.
86333         Return right away if fstat says the stdout file descriptor is invalid.
86334         * lib/closeout.h (close_stdout_set_file_name): Declare.
86335
86336 2000-05-10  Jim Meyering  <meyering@lucent.com>
86337
86338         * lib/closeout.c [default_exit_status]: New file-scoped variable.
86339         (close_stdout_set_status): New function.
86340         * lib/closeout.h (close_stdout_set_status): Declare.
86341
86342 2000-05-09  Jim Meyering  <meyering@lucent.com>
86343
86344         * m4/gettext.m4: Rename this...
86345         * m4/libintl.m4: ...to this.
86346
86347 2000-05-08  Jim Meyering  <meyering@lucent.com>
86348
86349         * lib/long-options.c: Don't include closeout.h.
86350         (parse_long_options): Don't call close_stdout for --version.
86351
86352 2000-05-06  Paul Eggert  <eggert@twinsun.com>
86353
86354         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
86355         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
86356         2.1.3 bug.  This avoids a clash when files like regex.c define
86357         _GNU_SOURCE.
86358
86359 2000-05-06  Jim Meyering  <meyering@lucent.com>
86360
86361         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
86362         (AC_REPLACE_FUNCS): Add strnlen.
86363
86364         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
86365         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
86366
86367         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
86368         AC_SEARCH_LIBS call for nanosleep.
86369         (LIB_NANOSLEEP): Set and AC_SUBST.
86370
86371 2000-05-06  Jim Meyering  <meyering@lucent.com>
86372
86373         * lib/strnlen.c: Undefine __strnlen and strnlen.
86374         [!weak_alias]: Define __strnlen to strnlen.
86375
86376         * lib/atexit.c: New file, from libiberty.
86377
86378 2000-05-06  Jim Meyering  <meyering@lucent.com>
86379
86380         * lib/closeout.c (close_stdout_status): Also check for errors on the
86381         stderr stream.
86382
86383 2000-05-05  Jim Meyering  <meyering@lucent.com>
86384
86385         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
86386         AC_SEARCH_LIBS call for clock_gettime.
86387         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
86388
86389         * m4/search-libs.m4: Update from autoconf.
86390
86391         su doesn't work on Solaris 2.6.
86392         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
86393         <shadow.h>.  Reported by Dragos Harabor.
86394
86395 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
86396
86397         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
86398         memcpy instead of xmalloc, xrealloc, path_concat.
86399         (locale_charset): Treat empty environment variables as absent.
86400         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
86401
86402 2000-05-04  Jim Meyering  <meyering@lucent.com>
86403
86404         * lib/getopt.c: Update from glibc.
86405         * lib/obstack.c: Likewise.
86406         * lib/obstack.h: Likewise.
86407         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
86408         file
86409
86410         * lib/regex.h: Likewise.
86411         * lib/strndup.c: Likewise.
86412         * lib/strnlen.c: New file, from glibc.
86413
86414 2000-05-03  Jim Meyering  <meyering@lucent.com>
86415
86416         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
86417
86418 2000-05-02  Paul Eggert  <eggert@twinsun.com>
86419
86420         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
86421         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
86422         compile-time test, rather than inspecting host and OS, to
86423         decide whether to define _LARGEFILE_SOURCE.
86424
86425 2000-05-01  Jim Meyering  <meyering@lucent.com>
86426
86427         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
86428
86429         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
86430         Based on a patch from Bruno Haible.
86431
86432 2000-05-01  Jim Meyering  <meyering@lucent.com>
86433
86434         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
86435
86436 2000-04-29  Jim Meyering  <meyering@lucent.com>
86437
86438         * lib/path-concat.c: Declare strdup only if it's not defined.
86439         * lib/canon-host.c: Likewise.
86440
86441 2000-04-28  Jim Meyering  <meyering@lucent.com>
86442
86443         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
86444         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
86445         is included first, then limits.h is included by locale.h by libintl.h.
86446         From John David Anglin.
86447
86448 2000-04-25  Jim Meyering  <meyering@lucent.com>
86449
86450         * lib/makepath.c (S_IRWXUGO): Define.
86451         (make_path): Always perform explicit chmod if MODE specifies any
86452         of the `special' permission bits.  Prompted by a bug report against
86453         install from Mate Wierdl and Joost van Baal.
86454
86455 2000-04-18  Jim Meyering  <meyering@lucent.com>
86456
86457         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
86458         (jm_PREREQ): Use it.
86459
86460 2000-04-18  Jim Meyering  <meyering@lucent.com>
86461
86462         * lib/README: New file.
86463
86464         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
86465         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
86466
86467 2000-04-17  Jim Meyering  <meyering@lucent.com>
86468
86469         Get it right :-)
86470         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
86471         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
86472         Suggestion from Akim Demaille.
86473
86474 2000-04-17  Jim Meyering  <meyering@lucent.com>
86475
86476         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
86477         the definition of it to rpl_strftime also defined-away the system's
86478         declaration.
86479
86480 2000-04-15  Jim Meyering  <meyering@lucent.com>
86481
86482         Use `C' to denote so-called `contiguous' files, the same way
86483         that tar does.
86484         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
86485         (ftypelet): Use S_ISCTG.
86486         From Michael Deutschmann.
86487
86488 2000-04-14  Jim Meyering  <meyering@lucent.com>
86489
86490         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
86491         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
86492         clobbered.
86493
86494 2000-04-14  Jim Meyering  <meyering@lucent.com>
86495
86496         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
86497
86498 2000-04-13  Jim Meyering  <meyering@lucent.com>
86499
86500         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
86501         AH_VERBATIM to insert required #ifndef into config.h.in.
86502         Suggestion from Akim Demaille.
86503
86504 2000-04-12  Jim Meyering  <meyering@lucent.com>
86505
86506         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
86507         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
86508         Christian Krackowizer.
86509
86510         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
86511         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
86512         (AC_SYS_LARGEFILE): Require.
86513         (AM_C_PROTOTYPES): Require.
86514
86515 2000-04-08  Jim Meyering  <meyering@lucent.com>
86516
86517         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
86518         names don't conflict.  Reported by Eli Zaretskii.
86519
86520 2000-04-07  Jim Meyering  <meyering@lucent.com>
86521
86522         * lib/putenv.c: Move inclusion of errno.h so it follows that of
86523         sys/types.h, to work around system header problems on AIX 3.2.5.
86524         From Bruno Haible.
86525
86526 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
86527
86528         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
86529         bug.  Deal with the different error behavior of Irix iconv.
86530
86531 2000-04-05  Paul Eggert  <eggert@twinsun.com>
86532
86533         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
86534         IRIX if the installer said otherwise.
86535
86536 2000-04-05  Jim Meyering  <meyering@lucent.com>
86537
86538         Portability tweaks required for ultrix4.3.
86539         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
86540         (jm_CHECK_DECLS): Add getutent to the list of functions.
86541         (_jm_DECL_HEADERS): Add utmpx.h.
86542         From John David Anglin.
86543
86544         * m4/strftime.m4: Back out the 2000-04-02 change.
86545         Instead of that change, simply undefine putenv in the test program.
86546
86547 2000-04-05  Jim Meyering  <meyering@lucent.com>
86548
86549         Portability tweaks required for ultrix4.3.
86550         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
86551         getutent.
86552         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
86553         * lib/canon-host.c: Declare strdup.
86554         * lib/path-concat.c: Likewise.
86555         From John David Anglin.
86556
86557 2000-04-04  Jim Meyering  <meyering@lucent.com>
86558
86559         Be more DOS 8.3-friendly.
86560         * lib/ref-add.sin: Renamed from ref-add.sed.in.
86561         * lib/ref-del.sin: Renamed from ref-del.sed.in.
86562         * lib/Makefile.am: Reflect renaming.
86563         Reported by Eli Zaretskii.
86564
86565         Use a temporary file name that won't clash with `charset.alias'
86566         in the DOS 8.3 name space.
86567         * lib/Makefile.am (charset_tmp): Define.
86568         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
86569         (uninstall-local): Likewise.
86570         Reported by Eli Zaretskii.
86571
86572 2000-04-03  Jim Meyering  <meyering@lucent.com>
86573
86574         * m4/gettext.m4: Fix typo in comment.
86575
86576         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
86577         textutils/configure.in).  Suggestion from Paul Eggert.
86578         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
86579
86580 2000-04-02  Paul Eggert  <eggert@twinsun.com>
86581
86582         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
86583         variable in the shell rather than using putenv, which isn't
86584         portable.  This avoids the configure-time inter-test dependency
86585         on the potentially-renamed putenv function.
86586
86587 2000-03-30  Paul Eggert  <eggert@twinsun.com>
86588
86589         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
86590         before checking struct stat.st_blksize, so that
86591         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
86592
86593 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86594
86595         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
86596         since strftime.c uses HAVE_STRFTIME to decide whether to use
86597         the underlying strftime.
86598
86599 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86600
86601         * lib/time/strftime.c (my_strftime): Make sure we call the system
86602         strftime, not ourselves, when invoking the underlying strftime.
86603
86604 2000-03-24  Jim Meyering  <meyering@lucent.com>
86605
86606         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
86607         (charset_alias): Define.
86608         (install-exec-local): Factor out common code.
86609         (uninstall-local): Split lines longer than 80.
86610         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
86611         (SUFFIXES): Define.
86612         (.sed.in.sed): New rule.  Don't redirect directly to $@.
86613         (CLEANFILES): Add ref-add.sed and ref-del.sed.
86614
86615 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
86616
86617         * lib/config.charset: Output a line containing "Packages using this
86618         file".
86619         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
86620         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
86621         ref-del.sed): New rules.
86622
86623 2000-03-17  Jim Meyering  <meyering@lucent.com>
86624
86625         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
86626         Otherwise, include <strings.h>
86627
86628 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
86629
86630         * lib/unicodeio.c (utf8_wctomb): New function.
86631         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
86632         format instead of in UCS-4 with platform dependent endianness.
86633
86634 2000-03-10  Jim Meyering  <meyering@lucent.com>
86635
86636         * m4/lib-check.m4: Look for getspnam in -lgen, too.
86637         From Marco Franzen.
86638
86639 2000-03-07  Paul Eggert  <eggert@twinsun.com>
86640
86641         * lib/savedir.c (savedir): Work even if directory size is
86642         negative; this can happen with some screwy NFS configurations.
86643
86644 2000-03-06  Jim Meyering  <meyering@lucent.com>
86645
86646         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
86647         if it's NULL (because we ran out of memory).  From Bruno Haible.
86648
86649 2000-03-05  Jim Meyering  <meyering@lucent.com>
86650
86651         * lib/localcharset.c ("path-concat.h"): Include.
86652         (get_charset_aliases): Use path_concat instead of ANSI string
86653         concatenation.
86654
86655         * lib/unicodeio.h (PARAMS): Define.
86656         Use it to guard prototype.
86657
86658 2000-03-04  Jim Meyering  <meyering@lucent.com>
86659
86660         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
86661         for lib/localcharset.c.
86662
86663 2000-03-04  Jim Meyering  <meyering@lucent.com>
86664
86665         * lib/Makefile.am (install-exec-local): Create $(libdir) before
86666         installing into it.
86667         (uninstall-local): Uncomment this rule so `make distcheck' works
86668         once again.
86669
86670         * lib/unicodeio.c (<errno.h>): Include it.
86671         (errno): Declare if not defined.
86672
86673         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
86674
86675         * lib/config.charset: New version, incorporating remarks from a linux
86676         i18n mailing list.  From Bruno Haible.
86677
86678 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
86679
86680         * m4/codeset.m4: New file.
86681         * m4/iconv.m4: New file.
86682         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
86683
86684 2000-03-03  Jim Meyering  <meyering@lucent.com>
86685
86686         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
86687
86688 2000-03-02  Jim Meyering  <meyering@lucent.com>
86689
86690         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
86691         the messages come out on separate lines.
86692
86693         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
86694         rather than jm_CHECK_DECLARATIONS.
86695         * m4/decl.m4: Remove now-unused file.
86696
86697         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
86698         geteuid.
86699
86700 2000-03-02  Jim Meyering  <meyering@lucent.com>
86701
86702         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
86703
86704 2000-03-01  Jim Meyering  <meyering@lucent.com>
86705
86706         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
86707         * lib/unicodeio.c: Likewise.
86708
86709 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
86710
86711         * lib/config.charset: New file.
86712         * lib/localcharset.c: New file.
86713         * lib/unicodeio.h, lib/unicodeio.c: New files.
86714         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
86715         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
86716         (noinst_HEADERS): Add unicodeio.h.
86717         (all-local, install-exec-local, charset.alias): New targets.
86718
86719 2000-02-28  Paul Eggert  <eggert@twinsun.com>
86720
86721         * lib/quotearg.c (ALERT_CHAR): New macro.
86722         (quotearg_buffer_restyled): Use it.
86723
86724 2000-02-27  Jim Meyering  <meyering@lucent.com>
86725
86726         * m4/check-decl.m4: Add getenv to the list.
86727
86728 2000-02-27  Jim Meyering  <meyering@lucent.com>
86729
86730         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
86731         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
86732
86733         * lib/backupfile.c: Guard inclusion of stdlib.h with
86734         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
86735         Declare malloc if needed.
86736
86737         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
86738         `#ifndef HAVE_DECL..'
86739         now that autoconf always defines the HAVE_DECL_ symbols.
86740         * lib/human.c: Likewise.
86741         * lib/same.c: Likewise.
86742         * lib/strtoumax.c: Likewise.
86743
86744         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
86745         declaration check was not run.
86746         * lib/hash.c: Likewise.
86747         * lib/human.c: Likewise.
86748         * lib/same.c: Likewise.
86749         * lib/strtoumax.c: Likewise.
86750
86751         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
86752         `.', then first look up the entire `.'-containing string as a login
86753         name.
86754
86755 2000-02-23  Jim Meyering  <meyering@lucent.com>
86756
86757         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
86758         in place of my hack.
86759
86760 2000-02-18  Paul Eggert  <eggert@twinsun.com>
86761
86762         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
86763         (textint): New typedef.
86764         (parser_control): Member year changed from int to textint.
86765         All uses changed.
86766         (YYSTYPE): Removed; replaced by %union with int and textint members.
86767         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
86768         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
86769         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
86770         (tSNUMBER, tUNUMBER): Now of type <textintval>.
86771         (date, number, to_year): Use width of number in digits, not its value,
86772         to determine whether it's a 2-digit year, or a 2-digit time.
86773         (yylex): Store number of digits of numeric tokens.
86774         Reported by John Kendall.
86775
86776         (parser_control): Changed from struct parser_control to typedef (for
86777         consistency).  All uses changed.
86778
86779         (tID): Removed; not used.
86780         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
86781
86782 2000-02-14  Paul Eggert  <eggert@twinsun.com>
86783
86784         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
86785         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
86786
86787 2000-02-12  Jim Meyering  <meyering@lucent.com>
86788
86789         * lib/userspec.c (ISDIGIT): Define it.
86790         (isdigit): Remove definition.
86791         (is_number): Use ISDIGIT, not isdigit.
86792         <libintl.h>: Include.
86793         (_ and N_): Define.
86794         (parse_user_spec): Mark translatable strings.
86795
86796 2000-02-10  Jim Meyering  <meyering@lucent.com>
86797
86798         With these changes, nanosleep.[ch] are finally enough like the other
86799         lib/* replacement files to compile on a few more losing systems.
86800
86801         * lib/nanosleep.h: Don't include config.h.
86802         Remove prototype from declaration of nanosleep.
86803         (PARAMS): Remove now-unneeded definition.
86804         * lib/nanosleep.c: #undef nanosleep.
86805         (rpl_nanosleep): Rename from nanosleep.
86806
86807 2000-02-10  Jim Meyering  <meyering@lucent.com>
86808
86809         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
86810         gnu_nanosleep to rpl_nanosleep.
86811
86812 2000-02-09  Jim Meyering  <meyering@lucent.com>
86813
86814         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
86815         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
86816
86817 2000-02-08  Akim Demaille  <akim@epita.fr>
86818
86819         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
86820         `[' and `]' and remove uses of `changequote'.
86821         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
86822         (AC_SYS_LARGEFILE): Likewise.
86823         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86824         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
86825         of changequote.
86826         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
86827         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
86828         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
86829         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
86830
86831 2000-02-05  Jim Meyering  <meyering@lucent.com>
86832
86833         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
86834         Remove explicit use of AC_HEADER_TIME.  It is required by
86835         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
86836         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
86837         in autoconf whereby the expansion of the latter ended up preceding
86838         the expansion of its prerequisite, AC_HEADER_TIME.
86839         Reported by Volker Borchert.
86840
86841 2000-02-03  Jim Meyering  <meyering@lucent.com>
86842
86843         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
86844
86845 2000-02-03  Jim Meyering  <meyering@lucent.com>
86846
86847         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
86848         rather than with `#if HAVE_UTMPNAME'.
86849
86850 2000-02-02  Jim Meyering  <meyering@lucent.com>
86851
86852         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
86853         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
86854         Reported by Eli Zaretskii.
86855
86856 2000-02-01  Jim Meyering  <meyering@lucent.com>
86857
86858         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
86859
86860 2000-01-31  Jim Meyering  <meyering@lucent.com>
86861
86862         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
86863         functions.  Add the time.h and sys/time.h headers along with the
86864         AC_REQUIRE'ment of AC_HEADER_TIME.
86865
86866 2000-01-31  Jim Meyering  <meyering@lucent.com>
86867
86868         * lib/nanosleep.h (nanosleep): Guard declaration with
86869         `#if ! HAVE_DECL_NANOSLEEP'.
86870         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
86871         the declaration in that vendor's sys/timers.h.
86872         Reported by Christian Krackowizer.
86873
86874         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
86875         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
86876         (ISPRINT): Likewise.
86877         Reported by Tom Tromey.
86878
86879 2000-01-30  Jim Meyering  <meyering@lucent.com>
86880
86881         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
86882
86883         * m4/prereq.m4 (utmp_includes): Define.
86884         Check for ut_user and ut_name members in both struct utmpx
86885         and struct utmp.
86886
86887 2000-01-30  Jim Meyering  <meyering@lucent.com>
86888
86889         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
86890         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
86891         header files where only utmpx.ut_user is declared.
86892
86893         * lib/readutmp.h (UT_USER): Define.
86894
86895 2000-01-29  Jim Meyering  <meyering@lucent.com>
86896
86897         * m4/lib-check.m4: New file containing library-related checks from
86898         fileutils and sh-utils (textutils had none).
86899
86900 2000-01-28  Jim Meyering  <meyering@lucent.com>
86901
86902         * m4/perl.m4: Change format of warning message to look more like that
86903         from the missing script.  Suggestion from François Pinard.
86904
86905 2000-01-25  Jim Meyering  <meyering@lucent.com>
86906
86907         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
86908         well as time.h in the compile check.
86909         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
86910         Fix typo in cross-compiling case: s/yes/no/.
86911
86912 2000-01-23  Jim Meyering  <meyering@lucent.com>
86913
86914         * m4/jm-macros.m4: Move df-related tests here from
86915         fileutils/configure.in
86916
86917         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
86918         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
86919
86920         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
86921         s/space/ac_fsusage_space/.
86922         (jm_FILE_SYSTEM_USAGE): Take two parameters.
86923
86924         * m4/ftruncate.m4: New file (derived from part of
86925         fileutils/configure.in).
86926         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
86927         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
86928
86929         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
86930         AC_SUBST these here, rather than just in sh-util/configure.in, so
86931         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
86932         all the same.
86933         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
86934         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
86935         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
86936         (AC_SUBST(POW_LIBM)): Likewise.
86937         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
86938
86939 2000-01-23  Jim Meyering  <meyering@lucent.com>
86940
86941         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
86942         obstack.c.
86943
86944 2000-01-22  Jim Meyering  <meyering@lucent.com>
86945
86946         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
86947
86948         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
86949
86950         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
86951         configure.in
86952         (AC_CHECK_HEADERS): Likewise for sh-utils.
86953         (AC_CHECK_HEADERS): Likewise for textutils.
86954         Merge the three lists of headers.
86955
86956         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
86957         from fileutils' configure.in.
86958
86959         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
86960         code. Moved tests into their own function (_jm_DECL_HEADERS) in
86961         check-decl.m4.
86962
86963         * m4/check-decl.m4: Use #if rather than #ifdef.
86964         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
86965         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
86966         (_jm_DECL_HEADERS): Define new function.
86967         (jm_CHECK_DECLARATIONS): Require it.
86968
86969 2000-01-22  Jim Meyering  <meyering@lucent.com>
86970
86971         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
86972         [! HAVE_DECL_STRTOULL]: Declare strtoull.
86973         Required for some AIX systems.  Reported by Christian Krackowizer.
86974         [TESTING] (main): New function.
86975
86976         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86977         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86978         letters.
86979
86980         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86981         iswprint.
86982
86983         * lib/strverscmp.c (ISDIGIT): Define.
86984         (strverscmp): Use ISDIGIT, not isdigit.
86985
86986 2000-01-19  Jim Meyering  <meyering@lucent.com>
86987
86988         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86989         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86990         defines `struct timespec' in <sys/time.h>
86991
86992         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86993         Thanks to Akim for explaining.
86994
86995 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86996
86997         * lib/nanosleep.c (nanosleep):
86998         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86999         POSIX.1 doesn't require SA_INTERRUPT and some systems
87000         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
87001         it's been part of POSIX.1 since day 1 (in 1988).
87002
87003 2000-01-17  Jim Meyering  <meyering@lucent.com>
87004
87005         * lib/interlock: Remove unused file.  Reported by François Pinard.
87006
87007 2000-01-16  Paul Eggert  <eggert@twinsun.com>
87008
87009         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
87010         alert, backslash, formfeed, and vertical tab unnecessarily in
87011         shell quoting style.
87012
87013 2000-01-16  Jim Meyering  <meyering@lucent.com>
87014
87015         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
87016         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
87017         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
87018         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
87019
87020 2000-01-16  Jim Meyering  <meyering@lucent.com>
87021
87022         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
87023         because the latter didn't work.
87024
87025 2000-01-15  Jim Meyering  <meyering@lucent.com>
87026
87027         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
87028         (AC_REPLACE_FUNCS): Add memcpy and memset.
87029         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
87030         Add strpbrk.
87031         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
87032
87033 2000-01-12  Jim Meyering  <meyering@lucent.com>
87034
87035         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
87036         (jm_PREREQ): Use it.
87037         (jm_PREREQ_READUTMP): New macro.
87038         (jm_PREREQ): Use it.
87039
87040 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87041
87042         Quote multibyte characters correctly.
87043         * m4/c-bs-a.m4: New file.
87044         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
87045         (jm_PREREQ): Use it.
87046
87047 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87048
87049         * m4/uintmax_t.m4: Port to autoconf 2.13.
87050
87051 2000-01-08  Jim Meyering  <meyering@ascend.com>
87052
87053         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
87054         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
87055
87056 2000-01-04  Jim Meyering  <meyering@ascend.com>
87057
87058         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
87059         jm_STRUCT_DIRENT_D_TYPE.
87060         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
87061         jm_STRUCT_DIRENT_D_INO.
87062         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
87063         jm_STRUCT_UTIMBUF.
87064         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
87065         renamings.
87066         * m4/utime.m4: Likewise.
87067
87068         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
87069         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
87070
87071 2000-01-03  Paul Eggert  <eggert@twinsun.com>
87072
87073         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
87074         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
87075
87076 2000-01-02  Jim Meyering  <meyering@ascend.com>
87077
87078         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
87079         remember if this is necessary.
87080
87081 1999-12-26  Jim Meyering  <meyering@ascend.com>
87082
87083         * m4/jm-macros.m4: Use it here.
87084         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
87085
87086 1999-12-23  Jim Meyering  <meyering@ascend.com>
87087
87088         * m4/jm-macros.m4: Check for clock_gettime (moved from
87089         fileutils/configure.in)
87090         Check for gettimeofday.
87091
87092 1999-12-20  Jim Meyering  <meyering@ascend.com>
87093
87094         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
87095         autoconf-2.14a-1999-12-20.
87096
87097 1999-12-19  Jim Meyering  <meyering@ascend.com>
87098
87099         * m4/lstat-slash.m4: New file.
87100         * m4/jm-macros.m4: Use the new macro:
87101         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87102
87103 1999-12-07  Jim Meyering  <meyering@ascend.com>
87104
87105         * m4/perl.m4: Require that File::Compare be available, too.
87106         Too many systems seem to lack it.
87107
87108         * m4/strftime.m4: Add checks for most of the cpp macros tested in
87109         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
87110
87111 1999-11-18  Paul Eggert  <eggert@twinsun.com>
87112
87113         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
87114         problem with the QNX 4.25 shell, which doesn't propagate exit
87115         status of failed commands inside shell assignments.
87116
87117 1999-11-17  Jim Meyering  <meyering@ascend.com>
87118
87119         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
87120
87121 1999-11-07  Jim Meyering  <meyering@ascend.com>
87122
87123         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
87124
87125 1999-11-06  Jim Meyering  <meyering@ascend.com>
87126
87127         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
87128         * m4/jm-macros.m4 (jm_MACROS): Use it here.
87129
87130 1999-11-05  Jim Meyering  <meyering@ascend.com>
87131
87132         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
87133         configure.in of textutils, fileutils, and sh-utils into this one
87134         (shared between those packages) file.
87135         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
87136         AC_STRUCT_ST_BLKSIZE.
87137
87138 1999-11-03  Jim Meyering  <meyering@ascend.com>
87139
87140         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
87141         of AC_CHECK_TYPE checks includes unistd.h.
87142         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
87143         Suggestion from Akim Demaille.
87144
87145 1999-10-30  Jim Meyering  <meyering@ascend.com>
87146
87147         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
87148         m4-quoted string.
87149         * m4/ls-mntd-fs.m4: Likewise.
87150         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
87151         * m4/jm-winsz1.m4: Likewise.
87152
87153         * m4/const.m4: Remove file, since the fix made it into the experimental
87154         version of autoconf.
87155         * m4/mktime.m4: Likewise.
87156
87157         * m4/check-type.m4: Remove file, now that the latest version of
87158         AC_CHECK_TYPE takes a third arg to specify additional #includes.
87159
87160         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
87161         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
87162         AC_CHECK_TYPE.
87163
87164 1999-10-04  Jim Meyering  <meyering@ascend.com>
87165
87166         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
87167
87168 1999-09-22  Paul Eggert  <eggert@twinsun.com>
87169
87170         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
87171         2.95.1 bug with HP-UX 10.20.
87172
87173 1999-09-17  Jim Meyering  <meyering@ascend.com>
87174
87175         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
87176         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
87177         due to missing strdup (against sh-utils-2.0).
87178
87179 1999-08-29  Jim Meyering  <meyering@ascend.com>
87180
87181         * m4/jm-macros.m4: Require jm_BISON.
87182         * m4/bison.m4: New file.
87183
87184 1999-08-17  Paul Eggert  <eggert@twinsun.com>
87185
87186         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
87187         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
87188
87189 1999-08-05  Jim Meyering  <meyering@ascend.com>
87190
87191         * m4/getline.m4: Rename test file from conftestdata to conftest.data
87192         to avoid conflicts with `conftest' on 8+3 filesystems.
87193         Suggestion from Eli Zaretskii.
87194
87195 1999-08-04  Jim Meyering  <meyering@ascend.com>
87196
87197         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
87198         fileutils and sh-utils (textutils's getline test was inadequate).
87199         (AM_FUNC_GETLINE): Run this test.
87200         (AC_CHECK_FUNCS): Check for getdelim.
87201         Reported by Bob Proulx.
87202
87203 1999-08-02  Jim Meyering  <meyering@ascend.com>
87204
87205         * m4/jm-macros.m4: Add a comment.
87206
87207 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87208
87209         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
87210         <inttypes.h> defines strtoumax as a macro (and not as a
87211         function).
87212
87213 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87214
87215         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
87216         that we can shift, multiply and divide unsigned long long
87217         values; Ultrix cc can't do it.
87218
87219 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87220
87221         * m4/mktime.m4: New file, which is a preview of what should appear
87222         in the next public autoconf release.
87223
87224 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87225
87226         * m4/lfs.m4: Remove this file.
87227         * m4/largefile.m4: New file.  It contains the old contents of
87228         lfs.m4, except that all names with prefix AC_LFS have been
87229         changed to use the prefix AC_SYS_LARGEFILE instead, to be
87230         compatible with future autoconf versions.  Also, some minor m4
87231         quoting problems have been fixed.
87232
87233 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87234
87235         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
87236         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
87237         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
87238         and simplify the shell code.
87239
87240 1999-08-01  Jim Meyering  <meyering@ascend.com>
87241
87242         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
87243         m4.
87244
87245 1999-07-20  Jim Meyering  <meyering@ascend.com>
87246
87247         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
87248
87249 1999-07-15  Jim Meyering  <meyering@ascend.com>
87250
87251         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
87252
87253 1999-05-22  Jim Meyering  <meyering@ascend.com>
87254
87255         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
87256
87257 1999-05-20  Jim Meyering  <meyering@ascend.com>
87258
87259         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
87260         Add a colon after each `then' in case $4 is empty.
87261
87262 1999-05-16  Jim Meyering  <meyering@ascend.com>
87263
87264         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
87265
87266 1999-05-10  Jim Meyering  <meyering@ascend.com>
87267
87268         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
87269
87270         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
87271         AC_FUNC_MKTIME.
87272
87273 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
87274
87275         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
87276
87277 1999-05-04  Paul Eggert  <eggert@twinsun.com>
87278
87279         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
87280         not CPPFLAGS, so that linking works correctly in IRIX.
87281
87282 1999-04-30  Paul Eggert  <eggert@twinsun.com>
87283
87284         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
87285
87286 1999-04-20  Paul Eggert  <eggert@twinsun.com>
87287
87288         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
87289         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
87290         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
87291         jm_AC_TYPE_UNSIGNED_LONG_LONG.
87292         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
87293
87294         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
87295
87296 1999-04-20  Jim Meyering  <meyering@ascend.com>
87297
87298         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
87299         AC_REPLACE xstroull if necessary.  From Paul Eggert.
87300         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
87301
87302 1999-04-18  Jim Meyering  <meyering@ascend.com>
87303
87304         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
87305         * m4/jm-macros.m4: Use it.
87306
87307 1999-04-06  Jim Meyering  <meyering@ascend.com>
87308
87309         * m4/strftime.m4: Remove test for %f.
87310
87311 1999-03-29  Jim Meyering  <meyering@ascend.com>
87312
87313         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
87314         superset of the AC_TYPE_* checks in the textutils, fileutils,
87315         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
87316         AC_TYPE_PID_T.
87317
87318 1999-03-28  Jim Meyering  <meyering@ascend.com>
87319
87320         * m4/jm-macros.m4: Define GNU_PACKAGE here.
87321         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
87322         replaced e.g., in the *.sh files of the sh-utils.
87323
87324 1999-03-20  Jim Meyering  <meyering@ascend.com>
87325
87326         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
87327         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
87328         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
87329
87330 1999-03-19  Jim Meyering  <meyering@ascend.com>
87331
87332         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
87333
87334 1999-03-12  Jim Meyering  <meyering@ascend.com>
87335
87336         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
87337
87338 1999-03-07  Jim Meyering  <meyering@ascend.com>
87339
87340         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
87341         declared.
87342
87343 1999-02-17  Jim Meyering  <meyering@ascend.com>
87344
87345         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
87346         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
87347
87348 1999-02-07  Jim Meyering  <meyering@ascend.com>
87349
87350         * m4/group-member.m4: New file -- extracted from sh-utils'
87351         configure.in.
87352
87353         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
87354         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
87355
87356 1999-02-06  Jim Meyering  <meyering@ascend.com>
87357
87358         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
87359         * m4/fnmatch.m4: Likewise.
87360         * m4/getgroups.m4: Likewise.
87361         * m4/lstat.m4: Likewise.
87362         * m4/malloc.m4: Likewise.
87363         * m4/putenv.m4: Likewise.
87364         * m4/realloc.m4: Likewise.
87365         * m4/regex.m4: Likewise.
87366         * m4/stat.m4: Likewise.
87367         * m4/strftime.m4: Likewise.
87368         Suggestion from Alain Magloire.
87369
87370         * m4/chown.m4: Use `.$ac_objext', not `.o'.
87371         * m4/fnmatch.m4: Likewise.
87372         * m4/getgroups.m4: Likewise.
87373         * m4/getline.m4: Likewise.
87374         * m4/lstat.m4: Likewise.
87375         * m4/malloc.m4: Likewise.
87376         * m4/memcmp.m4: Likewise.
87377         * m4/putenv.m4: Likewise.
87378         * m4/realloc.m4: Likewise.
87379         * m4/regex.m4: Likewise.
87380         * m4/stat.m4: Likewise.
87381         * m4/strftime.m4: Likewise.
87382         Suggestion from Alain Magloire.
87383
87384         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
87385         an argument.
87386
87387         * m4/regex.m4: Add a run-time Test for proper operation of
87388         re_compile_pattern.
87389
87390 1999-01-31  Jim Meyering  <meyering@ascend.com>
87391
87392         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
87393
87394 1999-01-30  Jim Meyering  <meyering@ascend.com>
87395
87396         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
87397
87398         * m4/jm-mktime.m4: Make this a wrapper around the official
87399         AM_FUNC_MKTIME rather than my private copy, now that the official one
87400         is up to date.
87401         * m4/mktime.m4: Remove file.
87402
87403         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
87404         * m4/uptime.m4: Likewise.
87405         * m4/uintmax_t.m4: Likewise.
87406
87407 1999-01-28  Jim Meyering  <meyering@ascend.com>
87408
87409         * m4/jm-macros.m4: Use jm_AFS.
87410         * m4/afs.m4: New file (from fileutils' configure.in).
87411
87412         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
87413         * m4/chown.m4: Likewise.
87414         * m4/d-ino.m4: Likewise.
87415         * m4/d-type.m4: Likewise.
87416         * m4/fnmatch.m4: Likewise.
87417         * m4/getgroups.m4: Likewise.
87418         * m4/gettext.m4: Likewise.
87419         * m4/jm-mktime.m4: Likewise.
87420         * m4/jm-winsz2.m4: Likewise.
87421         * m4/lcmessage.m4: Likewise.
87422         * m4/ls-mntd-fs.m4: Likewise.
87423         * m4/malloc.m4: Likewise.
87424         * m4/memcmp.m4: Likewise.
87425         * m4/putenv.m4: Likewise.
87426         * m4/realloc.m4: Likewise.
87427         * m4/st_mtim.m4: Likewise.
87428         * m4/strftime.m4: Likewise.
87429
87430 1999-01-16  Jim Meyering  <meyering@ascend.com>
87431
87432         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
87433         (ARGMATCH_DIE_DECL): Define.
87434
87435 1999-01-12  Jim Meyering  <meyering@ascend.com>
87436
87437         * m4/Makefile.am.in: Rewrite to avoid using fmt.
87438         Reported by Lars Hecking.
87439
87440 1999-01-10  Jim Meyering  <meyering@ascend.com>
87441
87442         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
87443         gross kludge.
87444         * m4/inttypes_h.m4: Likewise.
87445         * m4/lstat.m4: Likewise.
87446         * m4/malloc.m4: Likewise.
87447         * m4/readdir.m4: Likewise.
87448         * m4/realloc.m4: Likewise.
87449         * m4/st_dm_mode.m4: Likewise.
87450         * m4/stat.m4: Likewise.
87451         * m4/utimbuf.m4: Likewise.
87452         * m4/utimes.m4: Likewise.
87453
87454         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
87455         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
87456         comments in config.h.in are meaningful.
87457
87458         * m4/jm-macros.m4: Require autoconf-2.13 here.
87459
87460         * m4/regex.m4: By default, don't use the included regex.c on systems
87461         with glibc 2.  Suggestion from Uli Drepper.
87462
87463 1999-01-02  Jim Meyering  <meyering@ascend.com>
87464
87465         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
87466
87467 1998-12-18  Jim Meyering  <meyering@ascend.com>
87468
87469         * m4/Makefile.am.in (Makefile.am): Simplify rule.
87470         Based on a suggestion from Lars Hecking.
87471
87472 1998-11-16  Paul Eggert  <eggert@twinsun.com>
87473
87474         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
87475
87476 1998-11-16  Jim Meyering  <meyering@ascend.com>
87477
87478         * m4/lfs.m4: Double-quote the `uname...` expression.
87479
87480 1998-11-14  Jim Meyering  <meyering@ascend.com>
87481
87482         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
87483         * m4/stat.m4: Likewise.
87484
87485 1998-11-03  Jim Meyering  <meyering@ascend.com>
87486
87487         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
87488         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
87489
87490 1998-10-18  Jim Meyering  <meyering@ascend.com>
87491
87492         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
87493
87494 1998-10-17  Jim Meyering  <meyering@ascend.com>
87495
87496         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
87497         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
87498         calls for those previously hard-coded headers.  Instead, take a new
87499         parameter.
87500         (jm_CHECK_DECLARATIONS): Reflect interface change.
87501         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
87502         (jm_CHECK_DECL_LOCALTIME_R): New macro.
87503
87504         * m4/mktime.m4: Test for spring-forward gap before long-running test.
87505
87506 1998-10-14  Jim Meyering  <meyering@ascend.com>
87507
87508         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
87509         instead of "TZ=America/Vancouver".  From Paul Eggert.
87510
87511 1998-10-11  Jim Meyering  <meyering@ascend.com>
87512
87513         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
87514         This adds a test for a recently added compatibility fix for mktime.c.
87515         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
87516
87517 1998-09-27  Jim Meyering  <meyering@ascend.com>
87518
87519         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
87520
87521         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
87522         ../configure.in, including a change from Gordon Matzigkeit to allow
87523         cross-compiling for the Hurd.
87524
87525         * m4/glibc.m4: New file/macro to test for the GNU C Library
87526         versions 1 and 2.  From Gordon Matzigkeit.
87527         Indent.
87528
87529 1998-09-21  Jim Meyering  <meyering@ascend.com>
87530
87531         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
87532
87533 1998-08-18  Paul Eggert  <eggert@twinsun.com>
87534
87535         Port nanosecond-resolution times to UnixWare 2.1.2 and
87536         pedantic Solaris 2.6.
87537
87538         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
87539         AC_STRUCT_ST_MTIM.
87540         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
87541         Generate name of ns member, instead of just 1 or undef.
87542         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
87543
87544 1998-08-15  Jim Meyering  <meyering@ascend.com>
87545
87546         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
87547         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
87548         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
87549         instead of jm_TYPE_SSIZE_T.
87550
87551 1998-08-12  Jim Meyering  <meyering@ascend.com>
87552
87553         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
87554
87555 1998-08-02  Jim Meyering  <meyering@ascend.com>
87556
87557         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
87558         in acconfig.h manually.
87559
87560 1998-07-31  Paul Eggert  <eggert@twinsun.com>
87561
87562         * m4/st_mtim.m4: New file.
87563
87564 1998-07-28  Jim Meyering  <meyering@ascend.com>
87565
87566         * m4/utimes.m4: Undef stat.
87567
87568 1998-07-25  Jim Meyering  <meyering@ascend.com>
87569
87570         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
87571         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
87572
87573 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
87574
87575         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
87576         uid and gid actually remain unchanged.
87577
87578 1998-07-07  Jim Meyering  <meyering@ascend.com>
87579
87580         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
87581
87582 1998-07-04  Jim Meyering  <meyering@ascend.com>
87583
87584         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
87585         to prove that this macro can be used in packages without regex.c.
87586
87587 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
87588
87589         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
87590         is to be used.
87591
87592 1998-07-03  Jim Meyering  <meyering@ascend.com>
87593
87594         * m4/gettext.m4: Add -lintl if it's found to be necessary.
87595
87596         * m4/gettext.m4: New file -- from gettext-0.10.35.
87597         * m4/lcmessage.m4: Likewise.
87598         * m4/progtest.m4: Likewise.
87599
87600         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
87601         * m4/jm-macros.m4: Require the new macro.
87602
87603 1998-06-29  Jim Meyering  <meyering@ascend.com>
87604
87605         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
87606         for the definition of NGROUPS (used in a system header included
87607         by sys/mount.h).
87608
87609 1998-06-28  Jim Meyering  <meyering@ascend.com>
87610
87611         * m4/ls-mntd-fs.m4: New file.
87612         * m4/fstypename.m4: New file.
87613
87614         * m4/jm-macros.m4: Require the new macro.
87615         * m4/jm-glibc-io.m4: New file.
87616
87617 1998-05-19  Jim Meyering  <meyering@ascend.com>
87618
87619         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
87620         * m4/lchown.m4: New file.
87621
87622         * m4/Makefile.am.in: New file.
87623         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
87624
87625 1998-05-14  Jim Meyering  <meyering@ascend.com>
87626
87627         * m4/Makefile.am (EXTRA_DIST): Add them.
87628         * m4/jm-macros.m4: New file.
87629         * m4/utimbuf.m4: New file.
87630
87631 1998-05-12  Jim Meyering  <meyering@ascend.com>
87632
87633         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
87634
87635 1998-05-11  Jim Meyering  <meyering@ascend.com>
87636
87637         * m4/isc-posix.m4: New file.
87638
87639 1998-05-10  Jim Meyering  <meyering@ascend.com>
87640
87641         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
87642
87643 1998-05-09  Jim Meyering  <meyering@ascend.com>
87644
87645         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
87646         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
87647         with automake.
87648
87649         * m4/ssize_t.m4: New file.
87650         * m4/mktime.m4: Remove file -- the new automake has this now.
87651
87652 1998-04-26  Jim Meyering  <meyering@ascend.com>
87653
87654         * m4/assert.m4: New file.
87655         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
87656
87657 1998-04-05  Jim Meyering  <meyering@ascend.com>
87658
87659         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
87660         (jm_PREREQ): Use it here.
87661
87662 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
87663
87664         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
87665         in acconfig.h.
87666
87667 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
87668
87669         * m4/prereq.m4: New file.
87670         * m4/error.m4: New file.
87671         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
87672
87673 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
87674
87675         * m4/getline.m4: Don't set am_cv_func_working_getline before the
87676         cache-check for the same variable -- that defeated the purpose of
87677         the test; the test program was never run.  This was a problem only
87678         on systems with losing getline functions -- HP-UX 10.20 is one.
87679         Reported by Bjorn Helgaas.
87680
87681 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
87682
87683         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
87684
87685 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
87686
87687         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
87688
87689         * m4/const.m4: New file.  Use an initializer in this declaration
87690         typedef int charset[2]; const charset x;
87691         Reported by Bob Glickstein.
87692
87693 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
87694
87695         * m4/chown.m4: Fix reversed types on -1 args to chown.
87696         From Kaveh Ghazi.
87697
87698 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
87699
87700         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
87701         Add lseek and memchr.
87702
87703         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
87704         T.E.Dickey <dickey@clark.net> said that some older preprocessors
87705         have a 20-character limit on names.
87706
87707 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
87708
87709         * m4/inttypes_h.m4: New file.
87710         * m4/uintmax_t.m4: New file.
87711         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
87712
87713
87714         -----
87715
87716         Local Variables:
87717         coding: utf-8
87718         End:
87719
87720         Copyright (C) 1997-2011 Free Software Foundation, Inc.
87721
87722         Copying and distribution of this file, with or without
87723         modification, are permitted provided the copyright notice
87724         and this notice are preserved.