a12450ef3bb99d73e37d5461b5b1cd905c5c816c
[gnulib.git] / ChangeLog
1 2011-10-03  Bruno Haible  <bruno@clisp.org>
2
3         acl: Fix specification.
4         * lib/file-has-acl.c (file_has_acl): Fix specification.
5
6 2011-10-03  Bruno Haible  <bruno@clisp.org>
7
8         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
10         (compute_curr_prefix, shared_library_fullname,
11         find_shared_library_fullname, get_shared_library_fullname, relocate):
12         Use it together with PIC && INSTALLDIR.
13         Reported by <jojelino@gmail.com>
14         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
15
16 2011-10-01  Jim Meyering  <meyering@redhat.com>
17
18         maint.mk: adjust a release-related rule not to require use of gzip
19         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
20         Instead, check each file in $(DIST_ARCHIVES).  This is better for
21         projects that build only .tar.xz files.  Also fix an erroneous test.
22
23         test-linkat: don't leave behind a temporary file
24         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
25         Otherwise, coreutils' "make distcheck" would fail with this:
26           Only in /c/cu/tests/torture/coreutils/test/\
27             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
28           make[2]: *** [my-distcheck] Error 1
29
30         float, math: add omitted file
31         * lib/itold.c: Add file, required for yesterday's float change.
32
33 2011-10-01  Bruno Haible  <bruno@clisp.org>
34
35         isinf: Fix for OpenBSD/x86.
36         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
37         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
38         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
39
40 2011-10-01  Bruno Haible  <bruno@clisp.org>
41
42         isfinite: Fix syntax error in configure test.
43         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
44
45         isfinite: Fix typo.
46         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
47         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
48
49 2011-10-01  Bruno Haible  <bruno@clisp.org>
50
51         nonblocking tests: Fix test failure on Linux/IA-64.
52         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
53         Set to 270000.
54
55 2011-10-01  Bruno Haible  <bruno@clisp.org>
56
57         mkfifoat tests: Fix a test failure on mingw.
58         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
59         with error ENOSYS.
60
61 2011-09-30  Bruno Haible  <bruno@clisp.org>
62
63         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
64         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
65         'long double'. Set REPLACE_ITOLD.
66         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
67         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
68         * lib/itold.c: New file.
69         * modules/float (Files): Add lib/itold.c.
70         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
71         (Makefile.am): Substitute REPLACE_ITOLD.
72         * modules/math (Depends-on): Add float.
73         (Makefile.am): Substitute REPLACE_ITOLD.
74         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
75         * doc/posix-headers/math.texi: Likewise.
76         * doc/posix-functions/logl.texi: Likewise.
77
78 2011-09-30  Bruno Haible  <bruno@clisp.org>
79
80         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
81         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
82         Set to 140000.
83
84 2011-09-30  Bruno Haible  <bruno@clisp.org>
85
86         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
87         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
88         invocation, say "right after AC_PROG_CC_STDC", not "right after
89         AC_PROG_CC".
90         Reported by Gary V. Vaughan <gary@gnu.org>.
91
92 2011-09-30  Bruno Haible  <bruno@clisp.org>
93
94         Centralize C99 requirement.
95         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
96         * modules/stdarg (configure.ac-early): Invoke it instead of
97         AC_PROG_CC_STDC.
98         Reported by Gary V. Vaughan and Paul Eggert.
99
100 2011-09-29  Bruno Haible  <bruno@clisp.org>
101
102         float: Fix LDBL_MAX value on Linux/PowerPC.
103         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
104         on Linux/PowerPC.
105         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
106         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
107         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
108         platform.
109         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
110
111 2011-09-29  Bruno Haible  <bruno@clisp.org>
112
113         doc: Improve doc about gl_EARLY.
114         * doc/gnulib-tool.texi (Initial import): Mention where to place an
115         AC_PROG_CC_STDC invocation.
116         Reported by Gary V. Vaughan <gary@gnu.org>.
117
118 2011-09-28  Bruno Haible  <bruno@clisp.org>
119
120         fgetc, fputc, fread, fwrite tests: Fix link error.
121         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
122         on non-MSVC platforms.
123         * tests/test-fputc.c (main): Likewise.
124         * tests/test-fread.c (main): Likewise.
125         * tests/test-fwrite.c (main): Likewise.
126         Reported by Jim Meyering.
127
128 2011-09-27  Bruno Haible  <bruno@clisp.org>
129
130         fputc, fwrite tests: Avoid test failure on MSVC.
131         * tests/test-fgetc.c: Include msvc-inval.h.
132         (main): Invoke gl_msvc_inval_ensure_handler.
133         * tests/test-fputc.c: Include msvc-inval.h.
134         (main): Invoke gl_msvc_inval_ensure_handler.
135         * tests/test-fread.c: Include msvc-inval.h.
136         (main): Invoke gl_msvc_inval_ensure_handler.
137         * tests/test-fwrite.c: Include msvc-inval.h.
138         (main): Invoke gl_msvc_inval_ensure_handler.
139         * modules/fgetc-tests (Depends-on): Add msvc-inval.
140         * modules/fputc-tests (Depends-on): Likewise.
141         * modules/fread-tests (Depends-on): Likewise.
142         * modules/fwrite-tests (Depends-on): Likewise.
143
144 2011-09-27  Bruno Haible  <bruno@clisp.org>
145
146         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
147         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
148         (raise): Remove older, duplicated declaration.
149         (_gl_raise_SIGPIPE): New declaration.
150         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
151         (rpl_raise): Remove function.
152         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
153         a gnulib-defined SIGPIPE here.
154         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
155         'sigprocmask' has detected missing signal-blocking and the module
156         'sigpipe' is enabled.
157         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
158
159 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
160
161         base64-tests: avoid memory leak
162         * tests/test-base64.c (main): Plug memory leak.
163
164         base32: new module
165         * modules/base32: New module.
166         * lib/base32.c: New file.
167         * lib/base32.h: Likewise.
168         * m4/base32.m4: Likewise.
169         * modules/base32-tests: New test.
170         * tests/test-base32.c: Likewise.
171         * MODULES.html.sh (Misc): Mention it.
172
173 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
174
175         gnulib: use more-standard license notice wording
176         * gnulib-tool (func_emit_copyright_notice): When emitting a
177         license notice into a file, use the standard wording as suggested
178         by the current information for GNU maintainers, except say "file"
179         rather than "program".  The new wording gives a license version
180         number, which addresses an issue raised by Glenn Morris in
181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
182         * m4/onceonly.m4: Use that same wording here, too.
183
184         dup2: minor simplification
185         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
186         as lib/dup2.c no longer uses 'inline'.
187
188 2011-09-25  Bruno Haible  <bruno@clisp.org>
189
190         strings: Fix compilation error on MSVC.
191         * lib/strings.in.h: Include <stddef.h> for size_t.
192
193 2011-09-25  Bruno Haible  <bruno@clisp.org>
194
195         fflush et al.: Document limitation on MSVC.
196         * doc/posix-functions/fflush.texi: Document possible crash in handling
197         mode other than DEFAULT_HANDLING.
198         * doc/posix-functions/fgetc.texi: Likewise.
199         * doc/posix-functions/fputc.texi: Likewise.
200         * doc/posix-functions/fread.texi: Likewise.
201         * doc/posix-functions/fwrite.texi: Likewise.
202
203 2011-09-25  Bruno Haible  <bruno@clisp.org>
204
205         msvc-inval: Allow three invalid parameter handling modes.
206         * lib/msvc-inval.h: Don't include <stdlib.h> here.
207         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
208         macros.
209         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
210         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
211         SANE_LIBRARY_HANDLING as a no-op.
212         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
213         <stdlib.h>.
214         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
215
216 2011-09-25  Bruno Haible  <bruno@clisp.org>
217
218         msvc-inval: Make handler multithread-safe.
219         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
220         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
221         declarations.
222         (gl_msvc_inval_current): New declaration.
223         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
224         Operate on the structure returned by gl_msvc_inval_current().
225         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
226         Remove varaiables.
227         (tls_index, tls_initialized): New variables.
228         (not_per_thread): New variable.
229         (gl_msvc_inval_current): New function.
230         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
231         returned by gl_msvc_inval_current().
232
233 2011-09-25  Bruno Haible  <bruno@clisp.org>
234
235         msvc-inval: Install handler globally.
236         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
237         !_MSC_VER.
238         (gl_msvc_invalid_parameter_handler): Remove declaration.
239         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
240         declarations.
241         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
242         Install the handler globally, don't uninstall it.
243         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
244         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
245         currently valid, call RaiseException instead.
246         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
247         for !_MSC_VER.
248
249 2011-09-25  Bruno Haible  <bruno@clisp.org>
250
251         strerror_r-posix: Fix for MSVC 9.
252         * lib/strerror_r.c (local_snprintf): New function.
253         (snprintf): Define to local_snprintf, not to _snprintf.
254
255 2011-09-25  Bruno Haible  <bruno@clisp.org>
256
257         ftruncate: Support for MSVC 9.
258         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
259         (chsize_nothrow): New function.
260         (chsize): Redefine as a macro.
261         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
262         * modules/ftruncate (Depends-on): Add msvc-inval.
263
264 2011-09-25  Bruno Haible  <bruno@clisp.org>
265
266         New module 'fstat'.
267         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
268         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
269         * lib/fchdir.c (rpl_fstat): Remove function.
270         * m4/fstat.m4: New file.
271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
272         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
273         declared.
274         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
275         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
276         * modules/fstat: New file.
277         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
278         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
279         is set.
280         * doc/posix-functions/fstat.texi: Mention the new module and the
281         problem on MSVC.
282         * NEWS: Mention the change.
283         * modules/acl (Depends-on): Add fstat.
284         * modules/chdir-safer (Depends-on): Likewise.
285         * modules/chown (Depends-on): Likewise.
286         * modules/copy-file (Depends-on): Likewise.
287         * modules/fchdir (Depends-on): Likewise.
288         * modules/fdopendir (Depends-on): Likewise.
289         * modules/fopen (Depends-on): Likewise.
290         * modules/fts (Depends-on): Likewise.
291         * modules/getcwd (Depends-on): Likewise.
292         * modules/isapipe (Depends-on): Likewise.
293         * modules/linkat (Depends-on): Likewise.
294         * modules/lseek (Depends-on): Likewise.
295         * modules/mkdir-p (Depends-on): Likewise.
296         * modules/open (Depends-on): Likewise.
297         * modules/openat (Depends-on): Likewise.
298         * modules/read-file (Depends-on): Likewise.
299         * modules/renameat (Depends-on): Likewise.
300         * modules/utimens (Depends-on): Likewise.
301
302 2011-09-25  Bruno Haible  <bruno@clisp.org>
303
304         linkat: Fix compilation on MSVC 9.
305         * lib/linkat.c: Don't include <stdint.h>.
306
307 2011-09-25  Bruno Haible  <bruno@clisp.org>
308
309         fclose: Support for MSVC 9.
310         * lib/fclose.c: Include msvc-inval.h.
311         (fclose_nothrow): New function.
312         (rpl_fclose): Use it.
313         * modules/fclose (Depends-on): Add msvc-inval.
314         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
315
316 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
317
318         dup2: minor simplifications
319         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
320         that it's a performance win.
321         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
322         ! defined __CYGWIN__)" to "ifdef F_GETFL".
323
324 2011-09-24  Jim Meyering  <meyering@redhat.com>
325
326         test-futimens: avoid a warning from gcc -Wshadow
327         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
328         to avoid a shadowing warning.
329
330 2011-09-24  Bruno Haible  <bruno@clisp.org>
331
332         fdopen: Support for MSVC 9.
333         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
334         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
335         * lib/fdopen.c: Include msvc-inval.h.
336         (fdopen_nothrow): New function.
337         (rpl_fdopen): Use it.
338         * modules/fdopen (Depends-on): Add msvc-inval.
339         * modules/fclose-tests (Depends-on): Add fdopen.
340         * modules/fflush-tests (Depends-on): Likewise.
341         * modules/fgetc-tests (Depends-on): Likewise.
342         * modules/fputc-tests (Depends-on): Likewise.
343         * modules/fread-tests (Depends-on): Likewise.
344         * modules/freopen-tests (Depends-on): Likewise.
345         * modules/fseeko-tests (Depends-on): Likewise.
346         * modules/ftello-tests (Depends-on): Likewise.
347         * modules/fwrite-tests  (Depends-on): Likewise.
348         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
349
350 2011-09-24  Bruno Haible  <bruno@clisp.org>
351
352         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
353         * modules/fgetc-tests (Depends-on): Add unistd.
354         * modules/fputc-tests (Depends-on): Likewise.
355         * modules/fread-tests (Depends-on): Likewise.
356         * modules/fwrite-tests (Depends-on): Likewise.
357
358 2011-09-24  Bruno Haible  <bruno@clisp.org>
359
360         dup: Simplify autoconf test.
361         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
362         on gl_MSVC_INVAL's result.
363
364 2011-09-24  Bruno Haible  <bruno@clisp.org>
365
366         Tests for function fwrite().
367         * modules/fwrite-tests: New file.
368         * tests/test-fwrite.c: New file.
369         * modules/stdio-tests (Depends-on): Add fwrite-tests.
370
371         Tests for function fread().
372         * modules/fread-tests: New file.
373         * tests/test-fread.c: New file.
374         * modules/stdio-tests (Depends-on): Add fread-tests.
375
376         Activate fputc tests.
377         * modules/stdio-tests (Depends-on): Add fputc-tests.
378
379         Enhance fgetc, fputc tests.
380         * tests/test-fgetc.c (main): Also test the stream's error indicator.
381         * tests/test-fputc.c (main): Likewise.
382
383 2011-09-24  Bruno Haible  <bruno@clisp.org>
384
385         write: Support for MSVC 9.
386         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
387         is not 1.
388         * lib/write.c (write_nothrow): New function.
389         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
390         not 1. Use write_nothrow.
391         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
392         invalid parameter handler.
393         (gl_PREREQ_WRITE): New macro.
394         * modules/write (Depends-on): Add msvc-inval.
395         (configure.ac): Invoke gl_PREREQ_WRITE.
396         * doc/posix-functions/write.texi: Mention the problem on MSVC.
397
398 2011-09-24  Bruno Haible  <bruno@clisp.org>
399
400         read: Fix last commit.
401         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
402
403 2011-09-24  Bruno Haible  <bruno@clisp.org>
404
405         dup2: Fix last commit.
406         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
407         (rpl_dup2): Disable fcntl workaround on native Windows.
408
409         sigprocmask: Make code safer.
410         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
411         section that changes macro definitions for this compilation unit.
412
413 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
414
415         dup2: clarify by coalescing Windows-specific material
416         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
417         "msvc-nothrow.h"' to the Windows-specific section, so that the
418         Emacs source need not contain these include files.
419         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
420         Windows-specific fixes into this function rather than just the
421         nothrow fix, as this shortens and clarifies the code.  Always
422         define as a function, as that's a bit cleaner than having it be
423         sometimes a function and sometimes a macro.
424         (rpl_dup2): Move the Windows-specific stuff out of here and into
425         ms_windows_dup2.  Don't protect the Haiku-related fix with
426         "#if !defined __linux__", as the same code also works around
427         a Linux kernel bug, and it doesn't add any system calls on any
428         platform.  Add comment about FreeBSD 6.1.
429
430         sigprocmask: move #include directive
431         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
432         Windows-specific section, so that the Emacs source need not
433         contain msvc-inval.h.
434
435 2011-09-23  Bruno Haible  <bruno@clisp.org>
436
437         read: Support for MSVC 9.
438         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
439         is not 1.
440         * lib/read.c (read_nothrow): New function.
441         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
442         read_nothrow.
443         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
444         invalid parameter handler.
445         (gl_PREREQ_READ): New macro.
446         * modules/read (Depends-on): Add msvc-inval.
447         (configure.ac): Invoke gl_PREREQ_READ.
448         * doc/posix-functions/read.texi: Mention the problem on MSVC.
449
450 2011-09-23  Bruno Haible  <bruno@clisp.org>
451
452         close: Support for MSVC 9.
453         * lib/close.c: Include <errno.h>, msvc-inval.h.
454         (close_nothrow): New function.
455         (rpl_close): Use it.
456         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
457         invalid parameter handler.
458         * modules/close (Depends-on): Add msvc-inval.
459         * modules/dup2-tests (Depends-on): Add close.
460         * modules/dup3-tests (Depends-on): Likewise.
461         * modules/fcntl-tests (Depends-on): Likewise.
462         * modules/spawn-pipe-tests (Depends-on): Likewise.
463         * modules/unistd-safer-tests (Depends-on): Likewise.
464         * doc/posix-functions/close.texi: Mention the problem on MSVC.
465
466 2011-09-23  Bruno Haible  <bruno@clisp.org>
467
468         New module 'dup'.
469         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
470         Allow replacement.
471         * lib/dup.c: New file.
472         * lib/fchdir.c (rpl_dup): Remove function.
473         * m4/dup.m4: New file.
474         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
475         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
476         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
477         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
478         * modules/dup: New file.
479         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
480         'dup' module is in use.
481         * modules/fdopendir (Depends-on): Add dup.
482         * modules/fdutimensat-tests (Depends-on): Likewise.
483         * modules/fts (Depends-on): Likewise.
484         * modules/futimens-tests (Depends-on): Likewise.
485         * modules/posix_spawnp-tests (Depends-on): Likewise.
486         * modules/unistd-safer-tests (Depends-on): Likewise.
487         * modules/utimens-tests (Depends-on): Likewise.
488         * doc/posix-functions/dup.texi: Mention the new module and the problem
489         on MSVC.
490
491 2011-09-23  Bruno Haible  <bruno@clisp.org>
492
493         getdtablesize: Support for MSVC 9.
494         * lib/getdtablesize.c: Include msvc-inval.h.
495         (_setmaxstdio_nothrow): New function.
496         (_setmaxstdio): Redefine it.
497         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
498         * modules/getdtablesize (Depends-on): Add msvc-inval.
499         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
500
501 2011-09-23  Bruno Haible  <bruno@clisp.org>
502
503         signal-h: Rename from signal.
504         * modules/signal-h: Renamed from modules/signal.
505         * modules/pthread_sigmask (Depends-on): Update.
506         * modules/raise (Depends-on): Likewise.
507         * modules/sigaction (Depends-on): Likewise.
508         * modules/sigpipe (Depends-on): Likewise.
509         * modules/sigprocmask (Depends-on): Likewise.
510         * modules/sys_select (Depends-on): Likewise.
511         * modules/signal-h-tests: Renamed from modules/signal-tests.
512         (Files, Depends-on, Makefile.am): Update.
513         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
514         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
515         (Files, Makefile.am): Update.
516         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
517         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
518         * modules/signal: New placeholder file.
519         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
520         * doc/posix-headers/signal.texi: Update.
521         * NEWS: Mention the change.
522
523 2011-09-23  Bruno Haible  <bruno@clisp.org>
524
525         sigprocmask: Avoid crashes through signal() on MSVC 9.
526         * lib/sigprocmask.c: Include msvc-inval.h.
527         (signal_nothrow): New function.
528         (signal): Redefine it.
529         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
530         * modules/sigprocmask (Depends-on): Add msvc-inval.
531         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
532
533 2011-09-23  Bruno Haible  <bruno@clisp.org>
534
535         Tests for module 'raise'.
536         * modules/raise-tests: New file.
537         * tests/test-raise.c: New file.
538
539         raise: Support for MSVC.
540         * lib/signal.in.h (raise): New declaration.
541         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
542         for native Windows platforms.
543         * m4/raise.m4: New file.
544         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
545         HAVE_RAISE, REPLACE_RAISE.
546         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
547         REPLACE_RAISE.
548         * modules/raise (Status, Notice): Remove fields.
549         (Files): Add m4/raise.m4.
550         (Depends-on): Add signal, msvc-inval.
551         (configure.ac): Use the common idioms.
552         (Maintainer): Add me.
553         * tests/test-signal-c++.cc: Check the signature of raise.
554         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
555
556 2011-09-23  Bruno Haible  <bruno@clisp.org>
557
558         pipe2: Fix compilation on pre-C99 compilers.
559         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
560
561 2011-09-23  Bruno Haible  <bruno@clisp.org>
562
563         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
564         * lib/msvc-nothrow.h: New file.
565         * lib/msvc-nothrow.c: New file.
566         * m4/msvc-nothrow.m4: New file.
567         * modules/msvc-nothrow: New file.
568         * lib/dup2.c: Include msvc-nothrow.h.
569         (rpl_dup2): No need to protect _get_osfhandle call here.
570         * lib/accept4.c: Include msvc-nothrow.h.
571         * lib/error.c: Likewise.
572         * lib/fcntl.c: Likewise.
573         * lib/lseek.c: Likewise.
574         * lib/nonblocking.c: Likewise.
575         * lib/poll.c: Likewise.
576         * lib/read.c: Likewise.
577         * lib/select.c: Likewise.
578         * lib/sockets.h: Likewise.
579         * lib/sockets.c: Likewise.
580         * lib/stdio-read.c: Likewise.
581         * lib/stdio-write.c: Likewise.
582         * lib/write.c: Likewise.
583         * lib/w32sock.h: Likewise.
584         * lib/w32spawn.h: Likewise.
585         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
586         * lib/fsync.c: Likewise.
587         * lib/isapipe.c: Likewise.
588         * modules/dup2 (Depends-on): Add msvc-nothrow.
589         * modules/accept4 (Depends-on): Likewise.
590         * modules/error (Depends-on): Likewise.
591         * modules/fcntl (Depends-on): Likewise.
592         * modules/lseek (Depends-on): Likewise.
593         * modules/nonblocking (Depends-on): Likewise.
594         * modules/poll (Depends-on): Likewise.
595         * modules/read (Depends-on): Likewise.
596         * modules/select (Depends-on): Likewise.
597         * modules/sockets (Depends-on): Likewise.
598         * modules/sigpipe (Depends-on): Likewise.
599         * modules/write (Depends-on): Likewise.
600         * modules/accept (Depends-on): Likewise.
601         * modules/bind (Depends-on): Likewise.
602         * modules/connect (Depends-on): Likewise.
603         * modules/gethostname (Depends-on): Likewise.
604         * modules/getpeername (Depends-on): Likewise.
605         * modules/getsockname (Depends-on): Likewise.
606         * modules/getsockopt (Depends-on): Likewise.
607         * modules/ioctl (Depends-on): Likewise.
608         * modules/listen (Depends-on): Likewise.
609         * modules/recv (Depends-on): Likewise.
610         * modules/recvfrom (Depends-on): Likewise.
611         * modules/send (Depends-on): Likewise.
612         * modules/sendto (Depends-on): Likewise.
613         * modules/setsockopt (Depends-on): Likewise.
614         * modules/shutdown (Depends-on): Likewise.
615         * modules/socket (Depends-on): Likewise.
616         * modules/execute (Depends-on): Likewise.
617         * modules/spawn-pipe (Depends-on): Likewise.
618         * modules/flock (Depends-on): Likewise.
619         * modules/fsync (Depends-on): Likewise.
620         * modules/isapipe (Depends-on): Likewise.
621         * tests/test-cloexec.c: Include msvc-nothrow.h.
622         * tests/test-dup-safer.c: Likewise.
623         * tests/test-dup2.c: Likewise.
624         * tests/test-dup3.c: Likewise.
625         * tests/test-fcntl.c: Likewise.
626         * tests/test-pipe.c: Likewise.
627         * tests/test-pipe2.c: Likewise.
628         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
629         * modules/unistd-safer-tests (Depends-on): Likewise.
630         * modules/dup2-tests (Depends-on): Likewise.
631         * modules/dup3-tests (Depends-on): Likewise.
632         * modules/fcntl-tests (Depends-on): Likewise.
633         * modules/pipe-posix-tests (Depends-on): Likewise.
634         * modules/pipe2-tests (Depends-on): Likewise.
635
636 2011-09-23  Bruno Haible  <bruno@clisp.org>
637
638         dup2: Make code more maintainable.
639         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
640         (rpl_dup2): Use it.
641         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
642         * modules/dup2 (configure.ac): Invoke it.
643         Reported by Paul Eggert.
644
645 2011-09-23  Bruno Haible  <bruno@clisp.org>
646
647         msvc-inval: Fix compilation error.
648         * lib/msvc-inval.h: Include <excpt.h>.
649
650 2011-09-23  Bruno Haible  <bruno@clisp.org>
651
652         mkdir: Tweak for MSVC 9.
653         * lib/sys_stat.in.h: Update comments.
654         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
655
656         Tests for module 'chdir'.
657         * modules/chdir-tests: New file.
658         * tests/test-chdir.c: New file.
659
660         New module 'chdir'.
661         * modules/chdir: New file.
662         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
663         (chdir): New declaration.
664         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
665         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
666         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
667         * tests/test-unistd-c++.cc: Check signature of chdir.
668         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
669         * modules/chdir-long (Depends-on): Add chdir.
670         * modules/fchdir (Depends-on): Likewise.
671         * modules/rename (Depends-on): Likewise.
672         * modules/savewd (Depends-on): Likewise.
673
674         rmdir: Support for mingw, MSVC 9.
675         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
676         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
677
678         getcwd: Tweak for MSVC 9.
679         * lib/unistd.in.h: Update comments.
680         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
681
682 2011-09-22  Bruno Haible  <bruno@clisp.org>
683
684         strerror_r-posix: Avoid a link error on MSVC.
685         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
686         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
687
688 2011-09-22  Bruno Haible  <bruno@clisp.org>
689
690         select: Avoid link errors on MSVC.
691         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
692         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
693         * modules/pselect (Link): Likewise.
694         * NEWS: Mention the change.
695         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
696         test-select-stdin against $(LIB_SELECT).
697         * modules/pselect-tests (Makefile.am): Link test-pselect against
698         $(LIB_SELECT).
699
700 2011-09-22  Bruno Haible  <bruno@clisp.org>
701
702         select: Avoid compilation error on MSVC.
703         * lib/select.c: Don't include <stdbool.h>.
704
705 2011-09-21  Bruno Haible  <bruno@clisp.org>
706
707         Consolidate all uses of PATH_MAX in *.m4 files.
708         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
709         macros.
710         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
711         and gl_PATHMAX_SNIPPET.
712         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
713         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
714         * modules/chdir-long (Files): Add m4/pathmax.m4.
715         * modules/getcwd (Files): Likewise.
716
717 2011-09-21  Bruno Haible  <bruno@clisp.org>
718
719         ftruncate: Un-deprecate, concentrate on Win32 support.
720         * modules/ftruncate (Status, Notice): Remove sections.
721         (Depends-on): Add largefile.
722         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
723         non-mingw platforms.
724         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
725         include <io.h>.
726         * modules/perror-tests (Depends-on): Add ftruncate.
727         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
728         'ftruncate' module.
729
730 2011-09-21  Bruno Haible  <bruno@clisp.org>
731
732         Add dependencies to new dirent related modules.
733         * modules/opendir (Depends-on): Add closedir.
734         * modules/getcwd (Depends-on): Add opendir, closedir.
735         * modules/dirent-safer-tests (Depends-on): Likewise.
736         * modules/fdopendir-tests (Depends-on): Likewise.
737         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
738         * modules/renameat-tests (Depends-on): Likewise.
739
740 2011-09-21  Bruno Haible  <bruno@clisp.org>
741
742         opendir: Avoid compilation error on mingw.
743         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
744         * modules/opendir (Depends-on): Add unistd.
745
746 2011-09-21  Bruno Haible  <bruno@clisp.org>
747
748         ftruncate tests: Avoid a test failure on mingw.
749         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
750
751 2011-09-21  Bruno Haible  <bruno@clisp.org>
752
753         select tests: Avoid test failures on OSF/1 5.1 and mingw.
754         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
755         native Windows.
756
757 2011-09-21  Bruno Haible  <bruno@clisp.org>
758
759         New module 'fdopen'.
760         * lib/stdio.in.h (fdopen): New declaration.
761         * lib/fdopen.c: New file.
762         * m4/fdopen.m4: New file.
763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
764         REPLACE_FDOPEN.
765         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
766         REPLACE_FDOPEN.
767         * modules/fdopen: New file.
768         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
769         * tests/test-stdio-c++.cc: Check signature of fdopen.
770         * doc/posix-functions/fdopen.texi: Mention the new module.
771
772 2011-09-21  Bruno Haible  <bruno@clisp.org>
773
774         unlockpt tests: Avoid test failure on NetBSD 5.1.
775         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
776         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
777
778 2011-09-21  Bruno Haible  <bruno@clisp.org>
779
780         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
781         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
782         * tests/test-getlogin_r.c (main): Likewise.
783
784 2011-09-20  Bruno Haible  <bruno@clisp.org>
785
786         time tests: Don't require pid_t.
787         * doc/posix-headers/time.texi: Revert last change.
788         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
789         * tests/test-time.c: Comment out the check for pid_t.
790
791 2011-09-20  Bruno Haible  <bruno@clisp.org>
792
793         fsync tests: Avoid a test failure on mingw.
794         * tests/test-fsync.c (main): Allow a failure with EIO.
795
796 2011-09-20  Bruno Haible  <bruno@clisp.org>
797
798         euidaccess: Update comments.
799         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
800
801 2011-09-20  Bruno Haible  <bruno@clisp.org>
802
803         Ensure EBADF returns for socket functions on mingw.
804         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
805         descriptor is invalid.
806         * lib/bind.c (rpl_bind): Likewise.
807         * lib/connect.c (rpl_connect): Likewise.
808         * lib/getpeername.c (rpl_getpeername): Likewise.
809         * lib/getsockname.c (rpl_getsockname): Likewise.
810         * lib/getsockopt.c (rpl_getsockopt): Likewise.
811         * lib/listen.c (rpl_listen): Likewise.
812         * lib/recv.c (rpl_recv): Likewise.
813         * lib/recvfrom.c (rpl_recvfrom): Likewise.
814         * lib/send.c (rpl_send): Likewise.
815         * lib/sendto.c (rpl_sendto): Likewise.
816         * lib/setsockopt.c (rpl_setsockopt): Likewise.
817         * lib/shutdown.c (rpl_shutdown): Likewise.
818
819 2011-09-20  Bruno Haible  <bruno@clisp.org>
820
821         select tests: EBADF tests.
822         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
823         test_bad_fd): New functions.
824         (test_function): Invoke also test_bad_fd.
825
826 2011-09-20  Bruno Haible  <bruno@clisp.org>
827
828         Tests for module 'posix_spawn_file_actions_addopen.
829         * modules/posix_spawn_file_actions_addopen-tests: New file.
830         * tests/test-posix_spawn_file_actions_addopen.c: New file.
831
832         Tests for module 'posix_spawn_file_actions_adddup2'.
833         * modules/posix_spawn_file_actions_adddup2-tests: New file.
834         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
835
836         Tests for module 'posix_spawn_file_actions_addclose'.
837         * modules/posix_spawn_file_actions_addclose-tests: New file.
838         * tests/test-posix_spawn_file_actions_addclose.c: New file.
839
840 2011-09-20  Bruno Haible  <bruno@clisp.org>
841
842         Tests for module 'unlockpt'.
843         * modules/unlockpt-tests: New file.
844         * tests/test-unlockpt.c: New file.
845         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
846
847         Tests for module 'grantpt'.
848         * modules/grantpt-tests: New file.
849         * tests/test-grantpt.c: New file.
850         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
851
852 2011-09-20  Bruno Haible  <bruno@clisp.org>
853
854         freopen tests: EBADF tests.
855         * tests/test-freopen.c: Include errno.h, unistd.h.
856         (main): Add tests for EBADF, commented out for the moment.
857
858         fclose tests: EBADF tests.
859         * tests/test-fclose.c (main): Add tests for EBADF.
860
861         fflush tests: EBADF tests.
862         * tests/test-fflush.c: Include errno.h, macros.h.
863         (main): Add tests for EBADF.
864
865         ftello tests: EBADF tests.
866         * tests/test-ftello4.sh: New file.
867         * tests/test-ftello4.c: New file.
868         * modules/ftello-tests (Files): Add them.
869         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
870
871         fseeko tests: EBADF tests.
872         * tests/test-fseeko4.sh: New file.
873         * tests/test-fseeko4.c: New file.
874         * modules/fseeko-tests (Files): Add them.
875         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
876
877         Tests for function fputc().
878         * modules/fputc-tests: New file.
879         * tests/test-fputc.c: New file.
880         * modules/stdio-tests (Depends-on): Add fputc-tests.
881
882         Tests for function fgetc().
883         * modules/fgetc-tests: New file.
884         * tests/test-fgetc.c: New file.
885         * modules/stdio-tests (Depends-on): Add fgetc-tests.
886
887         Tests for function fdopen().
888         * modules/fdopen-tests: New file.
889         * tests/test-fdopen.c: New file.
890         * modules/stdio-tests (Depends-on): Add fdopen-tests.
891
892         Tests for module 'vdprintf'.
893         * modules/vdprintf-tests: New file.
894         * tests/test-vdprintf.c: New file.
895
896         Tests for module 'dprintf'.
897         * modules/dprintf-tests: New file.
898         * tests/test-dprintf.c: New file.
899
900 2011-09-20  Bruno Haible  <bruno@clisp.org>
901
902         Tests for module 'ioctl'.
903         * modules/ioctl-tests: New file.
904         * tests/test-ioctl.c: New file.
905
906 2011-09-20  Bruno Haible  <bruno@clisp.org>
907
908         fcntl tests: EBADF tests.
909         * tests/test-fcntl.c (main): Add more tests for EBADF.
910
911 2011-09-20  Bruno Haible  <bruno@clisp.org>
912
913         utimensat tests: EBADF tests.
914         * tests/test-utimensat.c (main): Add tests for EBADF.
915
916         renameat tests: EBADF tests.
917         * tests/test-renameat.c (main): Add tests for EBADF.
918
919         mkfifoat tests: EBADF tests.
920         * tests/test-mkfifoat.c (main): Add tests for EBADF.
921
922         readlinkat tests: EBADF tests.
923         * tests/test-readlinkat.c (main): Add tests for EBADF.
924
925         symlinkat tests: EBADF tests.
926         * tests/test-symlinkat.c (main): Add tests for EBADF.
927
928         linkat tests: EBADF tests.
929         * tests/test-linkat.c (main): Add tests for EBADF.
930
931         Tests for module 'faccessat'.
932         * modules/faccessat-tests: New file.
933         * tests/test-faccessat.c: New file.
934
935         fdopendir tests: EBADF tests.
936         * tests/test-fdopendir.c (main): Add more tests for EBADF.
937
938         openat tests: EBADF tests.
939         * tests/test-fchownat.c (main): Add tests for EBADF.
940         * tests/test-fstatat.c (main): Likewise.
941         * tests/test-mkdirat.c (main): Likewise.
942         * tests/test-openat.c (main): Likewise.
943         * tests/test-unlinkat.c (main): Likewise.
944         * tests/test-fchmodat.c: New file.
945         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
946         (Makefile.am): Also run 'test-fchmodat'.
947
948 2011-09-20  Bruno Haible  <bruno@clisp.org>
949
950         utimens, futimens, fdutimensat tests: EBADF tests.
951         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
952
953         Tests for function fstat().
954         * modules/fstat-tests: New file.
955         * tests/test-fstat.c: New file.
956         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
957
958 2011-09-20  Bruno Haible  <bruno@clisp.org>
959
960         test-ttyname_r tests: EBADF tests.
961         * tests/test-ttyname_r.c (main): Add tests for EBADF.
962
963         Tests for module 'isatty'.
964         * modules/isatty-tests: New file.
965         * tests/test-isatty.c: New file.
966
967         Tests for module 'write'.
968         * modules/write-tests: New file.
969         * tests/test-write.c: New file.
970
971         Tests for module 'read'.
972         * modules/read-tests: New file.
973         * tests/test-read.c: New file.
974
975         pwrite tests: EBADF tests.
976         * tests/test-pwrite.c (main): Add tests for EBADF.
977
978         pread tests: EBADF tests.
979         * tests/test-pread.c (main): Add tests for EBADF.
980
981         lseek tests: EBADF tests.
982         * tests/test-lseek.c (main): Add more tests for EBADF.
983
984         Tests for module 'ftruncate'.
985         * modules/ftruncate-tests: New file.
986         * tests/test-ftruncate.sh: New file.
987         * tests/test-ftruncate.c: New file.
988
989         fsync tests: EBADF tests.
990         * tests/test-fsync.c (main): Add more tests for EBADF.
991
992         fdatasync tests: EBADF tests.
993         * tests/test-fdatasync.c (main): Add more tests for EBADF.
994
995         Tests for module 'fchown'.
996         * modules/fchown-tests: New file.
997         * tests/test-fchown.c: New file.
998
999         Tests for module 'fchmod'.
1000         * modules/fchmod-tests: New file.
1001         * tests/test-fchmod.c: New file.
1002
1003         fchdir tests: EBADF tests.
1004         * tests/test-fchdir.c (main): Add more tests for EBADF.
1005
1006         dup2 tests: EBADF tests.
1007         * tests/test-dup2.c (main): Add more tests for EBADF.
1008
1009         Tests for module 'dup'.
1010         * modules/dup-tests: New file.
1011         * tests/test-dup.c: New file.
1012
1013         Tests for module 'close'.
1014         * modules/close-tests: New file.
1015         * tests/test-close.c: New file.
1016
1017 2011-09-20  Bruno Haible  <bruno@clisp.org>
1018
1019         Tests for module 'shutdown'.
1020         * modules/shutdown-tests: New file.
1021         * tests/test-shutdown.c: New file.
1022
1023         Tests for module 'setsockopt'.
1024         * modules/setsockopt-tests: New file.
1025         * tests/test-setsockopt.c: New file.
1026
1027         Tests for module 'sendto'.
1028         * modules/sendto-tests: New file.
1029         * tests/test-sendto.c: New file.
1030
1031         Tests for module 'send'.
1032         * modules/send-tests: New file.
1033         * tests/test-send.c: New file.
1034
1035         Tests for module 'recvfrom'.
1036         * modules/recvfrom-tests: New file.
1037         * tests/test-recvfrom.c: New file.
1038
1039         Tests for module 'recv'.
1040         * modules/recv-tests: New file.
1041         * tests/test-recv.c: New file.
1042
1043         Tests for module 'listen'.
1044         * modules/listen-tests: New file.
1045         * tests/test-listen.c: New file.
1046
1047         Tests for module 'getsockopt'.
1048         * modules/getsockopt-tests: New file.
1049         * tests/test-getsockopt.c: New file.
1050
1051         Tests for module 'getsockname'.
1052         * modules/getsockname-tests: New file.
1053         * tests/test-getsockname.c: New file.
1054
1055         Tests for module 'getpeername'.
1056         * modules/getpeername-tests: New file.
1057         * tests/test-getpeername.c: New file.
1058
1059         Tests for module 'connect'.
1060         * modules/connect-tests: New file.
1061         * tests/test-connect.c: New file.
1062
1063         Tests for module 'bind'.
1064         * modules/bind-tests: New file.
1065         * tests/test-bind.c: New file.
1066
1067         accept4 tests: Fix for native Windows.
1068         * tests/test-accept4.c: Include sockets.h.
1069         (main): Invoke gl_sockets_startup.
1070         * modules/accept4-tests (Depends-on): Add sockets.
1071
1072         accept tests: Fix for native Windows.
1073         * tests/test-accept.c: Include sockets.h.
1074         (main): Invoke gl_sockets_startup.
1075         * modules/accept-tests (Depends-on): Add sockets.
1076
1077 2011-09-19  Bruno Haible  <bruno@clisp.org>
1078
1079         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
1080         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
1081         do...while(0).
1082         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
1083         Suggested by Paul Eggert.
1084
1085 2011-09-19  Bruno Haible  <bruno@clisp.org>
1086
1087         sched: Ensure pid_t is defined.
1088         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
1089         not define pid_t.
1090         * lib/sched.in.h: Include <sys/types.h>.
1091         * doc/posix-headers/sched.texi: Mention the pid_t problem.
1092         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1093
1094 2011-09-19  Bruno Haible  <bruno@clisp.org>
1095
1096         msvc-inval: Ensure the entire expansion is a single statement.
1097         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
1098         of braces.
1099
1100 2011-09-19  Jim Meyering  <meyering@redhat.com>
1101
1102         tests: use printf, not echo in init.sh's warn_ function
1103         * tests/init.sh (warn_): Use printf, not echo.  The latter would
1104         misbehave when given strings containing a backslash or starting
1105         with e.g., -n.  James Youngman suggested setting IFS.
1106
1107 2011-09-19  Eric Blake  <eblake@redhat.com>
1108
1109         futimens: enhance test
1110         * tests/test-futimens.h (test_futimens): Also check for EBADF on
1111         closed non-negative fd.
1112
1113         date: accept 'hence' as opposite of 'ago'
1114         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
1115         * tests/test-parse-datetime.c (main): Enhance test.
1116         Suggested by Jesse Wilson.
1117
1118 2011-09-19  Jim Meyering  <meyering@redhat.com>
1119
1120         getcwd: don't fail in a deep directory on a system without openat
1121         Before this change, getcwd would fail when called from a directory
1122         of depth PATH_MAX / 3 or greater.  That was due to the fact that
1123         the non-openat implementation used "..", "../..", "../../..", etc.
1124         to access ancestor directories.  With too many, that string would
1125         be longer than PATH_MAX.
1126         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
1127         using gnulib's openat replacement.
1128         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
1129         we're using the replacement function.
1130
1131 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
1132
1133         maint.mk: avoid warnings from perl about missing files
1134         * top/maint.mk (def_sym_regex): Ignore files listed in
1135         $(gl_other_headers_) that do not exist, say because a project
1136         does not use a corresponding module.
1137
1138 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1139
1140         stat: use pathmax.h only if needed
1141         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
1142         This is better for Emacs, which does not have a mingw port and
1143         therefore can avoid the pathmax module.
1144
1145         utimens: remove dependency on dup2
1146         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
1147         to work around the Linux kernel bug.
1148         * modules/utimens (Depends-on): Remove dup2.
1149
1150 2011-09-18  Bruno Haible  <bruno@clisp.org>
1151
1152         inet_ntop, inet_pton: Look for it also in libresolv.
1153         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
1154         libnsl, search for it in libresolv.
1155         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1156         Needed on Solaris 7.
1157
1158 2011-09-18  Bruno Haible  <bruno@clisp.org>
1159
1160         accept, accept4 tests: Avoid link error on Solaris.
1161         * modules/accept-tests (Makefile.am): Link test-accept against
1162         $(LIBSOCKET).
1163         * modules/accept4-tests (Makefile.am): Link test-accept4 against
1164         $(LIBSOCKET).
1165
1166         accept4: Avoid link error on Solaris.
1167         * modules/accept4 (Link): New section.
1168
1169         socket functions: Avoid link errors on Solaris.
1170         * modules/accept (Depends-on): Add socketlib.
1171         (Link): New section.
1172         * modules/bind (Depends-on): Add socketlib.
1173         (Link): New section.
1174         * modules/connect (Depends-on): Add socketlib.
1175         (Link): New section.
1176         * modules/getpeername (Depends-on): Add socketlib.
1177         (Link): New section.
1178         * modules/getsockname (Depends-on): Add socketlib.
1179         (Link): New section.
1180         * modules/getsockopt (Depends-on): Add socketlib.
1181         (Link): New section.
1182         * modules/listen (Depends-on): Add socketlib.
1183         (Link): New section.
1184         * modules/recv (Depends-on): Add socketlib.
1185         (Link): New section.
1186         * modules/recvfrom (Depends-on): Add socketlib.
1187         (Link): New section.
1188         * modules/send (Depends-on): Add socketlib.
1189         (Link): New section.
1190         * modules/sendto (Depends-on): Add socketlib.
1191         (Link): New section.
1192         * modules/setsockopt (Depends-on): Add socketlib.
1193         (Link): New section.
1194         * modules/shutdown (Depends-on): Add socketlib.
1195         (Link): New section.
1196         * modules/socket (Depends-on): Add socketlib.
1197         (Link): New section.
1198
1199 2011-09-18  Bruno Haible  <bruno@clisp.org>
1200
1201         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
1202         * tests/test-ptsname.c (main): Terminate the test if it takes longer
1203         than 5 seconds.
1204         * modules/ptsname-tests (configure.ac): Test for alarm.
1205
1206 2011-09-18  Bruno Haible  <bruno@clisp.org>
1207
1208         posix_spawn_file_actions_add*: Fix module dependencies.
1209         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
1210         posix_spawn_file_actions_init.
1211         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
1212         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
1213
1214 2011-09-18  Bruno Haible  <bruno@clisp.org>
1215
1216         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
1217         * tests/test-rename.h (test_rename): Allow error code EEXIST.
1218         * tests/test-renameat.c (main): Likewise.
1219
1220 2011-09-18  Bruno Haible  <bruno@clisp.org>
1221
1222         Tests for module 'accept4'.
1223         * modules/accept4-tests: New file.
1224         * tests/test-accept4.c: New file.
1225
1226 2011-09-18  Bruno Haible  <bruno@clisp.org>
1227
1228         Tests for module 'accept'.
1229         * modules/accept-tests: New file.
1230         * tests/test-accept.c: New file.
1231
1232 2011-09-18  Bruno Haible  <bruno@clisp.org>
1233
1234         dup2: Support for MSVC.
1235         * lib/dup2.c: Include msvc-inval.h.
1236         (rpl_dup2): Handle invalid parameter notifications during dup2 and
1237         _get_osfhandle calls.
1238         * modules/dup2 (Depends-on): Add msvc-inval.
1239         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
1240
1241         New module 'msvc-inval'.
1242         * lib/msvc-inval.h: New file.
1243         * lib/msvc-inval.c: New file.
1244         * m4/msvc-inval.m4: New file.
1245         * modules/msvc-inval: New file.
1246
1247 2011-09-17  Bruno Haible  <bruno@clisp.org>
1248
1249         Tests for module 'pclose'.
1250         * modules/pclose-tests: New file.
1251
1252         New module 'pclose'.
1253         * lib/stdio.in.h (pclose): New declaration.
1254         * lib/pclose.c: New file.
1255         * m4/pclose.m4: New file.
1256         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
1257         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
1258         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
1259         * modules/pclose: New file.
1260         * modules/popen-tests (Depends-on): Add pclose.
1261         * modules/popen-safer-tests (Depends-on): Likewise.
1262         * doc/posix-functions/pclose.texi: Mention the new module.
1263
1264 2011-09-17  Bruno Haible  <bruno@clisp.org>
1265
1266         popen: Support for MSVC.
1267         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
1268         * lib/popen.c (popen): Provide alternate definition for native Windows.
1269         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
1270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
1271         * modules/popen (Depends-on, configure.ac): Update condition.
1272         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
1273         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
1274         fixed.
1275
1276 2011-09-17  Bruno Haible  <bruno@clisp.org>
1277
1278         isnanl, isnand, isnanf: Work around MSVC bug.
1279         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
1280
1281 2011-09-17  Bruno Haible  <bruno@clisp.org>
1282
1283         sys_socket tests: Fix recent mistake.
1284         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
1285
1286 2011-09-17  Bruno Haible  <bruno@clisp.org>
1287
1288         putenv: Support for MSVC.
1289         * modules/putenv (Depends-on): Add environ.
1290         * lib/putenv.c (environ): Disable declaration.
1291         * lib/unistd.in.h: Update comment.
1292
1293 2011-09-17  Bruno Haible  <bruno@clisp.org>
1294
1295         math: Avoid macro redefinition warnings on MSVC.
1296         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
1297         Undefine before redefining.
1298
1299 2011-09-17  Bruno Haible  <bruno@clisp.org>
1300
1301         doc: Mention functions which are declared as macros.
1302         * doc/posix-functions/*[fl].texi: Mention that some functions are
1303         defined as macros with arguments only.
1304
1305 2011-09-17  Bruno Haible  <bruno@clisp.org>
1306
1307         Add dependencies to new dirent related modules.
1308         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
1309         * modules/fts (Depends-on): Likewise.
1310         * modules/glob (Depends-on): Likewise.
1311         * modules/savedir (Depends-on): Likewise.
1312         * modules/scandir (Depends-on): Likewise.
1313         * modules/dirent-safer (Depends-on): Add opendir, closedir.
1314         * modules/fdopendir (Depends-on): Add opendir.
1315
1316 2011-09-17  Bruno Haible  <bruno@clisp.org>
1317
1318         inet_pton: Support for MSVC on Windows Vista or newer.
1319         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
1320         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
1321         HAVE_DECL_INET_PTON is defined.
1322         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1323         On platforms with <winsock2.h>, test whether inet_pton is declared in
1324         <ws2tcpip.h>. If so, arrange to replace it.
1325         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1326         REPLACE_INET_PTON.
1327         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
1328         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
1329         (Depends-on, configure.ac): Update condition.
1330         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
1331
1332 2011-09-17  Bruno Haible  <bruno@clisp.org>
1333
1334         inet_ntop: Support for MSVC on Windows Vista or newer.
1335         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
1336         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
1337         HAVE_DECL_INET_NTOP is defined.
1338         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1339         On platforms with <winsock2.h>, test whether inet_ntop is declared in
1340         <ws2tcpip.h>. If so, arrange to replace it.
1341         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1342         REPLACE_INET_NTOP.
1343         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
1344         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
1345         (Depends-on, configure.ac): Update condition.
1346         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
1347
1348 2011-09-16  Eric Blake  <eblake@redhat.com>
1349
1350         test-fsync: yet another enhancement
1351         * tests/test-fsync.c (main): Also test behavior on read-only text
1352         file.
1353
1354 2011-09-16  Bruno Haible  <bruno@clisp.org>
1355
1356         Enhance fsync, fdatasync tests.
1357         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
1358         * tests/test-fdatasync.c (main): Likewise.
1359
1360 2011-09-16  Bruno Haible  <bruno@clisp.org>
1361
1362         Support for MSVC compiler: Ensure mode_t gets defined.
1363         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
1364         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1365         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1366         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
1367         * tests/test-fcntl-h.c: Check that mode_t is defined.
1368         * tests/test-sys_stat.c: Likewise.
1369         * tests/test-sys_types.c: Likewise.
1370         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
1371         * doc/posix-headers/sys_stat.texi: Likewise.
1372         * doc/posix-headers/sys_types.texi: Likewise.
1373
1374 2011-09-16  Bruno Haible  <bruno@clisp.org>
1375
1376         sys_stat: Support for MSVC.
1377         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
1378         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
1379         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
1380         MSVC.
1381
1382 2011-09-16  Bruno Haible  <bruno@clisp.org>
1383
1384         Support for MSVC compiler: Ensure off_t gets defined.
1385         * lib/unistd.in.h: Include <sys/types.h>.
1386         * tests/test-fcntl-h.c: Check that off_t is defined.
1387         * tests/test-sys_stat.c: Likewise.
1388         * tests/test-sys_types.c: Likewise.
1389
1390 2011-09-16  Eric Blake  <eblake@redhat.com>
1391
1392         fdatasync: port to Solaris
1393         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
1394         * modules/fdatasync (Link): Document it.
1395         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
1396
1397         fdatasync: port to MacOS X 10.7
1398         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
1399         declared.
1400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
1401         * modules/unistd (Makefile.am): Substitute it.
1402         * lib/unistd.in.h (fdatasync): Declare on MacOS.
1403         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
1404
1405         fdatasync: minor improvements
1406         * modules/fdatasync (Depends-on): Add condition for fsync.
1407         * lib/fdatasync.c (fdatasync): Add comment.
1408         * tests/test-unistd-c++.cc: Test fdatasync.
1409
1410         unistd: update refs to newer POSIX
1411         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
1412         Suggested by Bruno Haible.
1413
1414         fdatasync: new module
1415         * modules/fsync (Description): Document difference to fdatasync.
1416         * modules/fdatasync: New module.
1417         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
1418         * lib/fdatasync.c (fdatasync): Likewise.
1419         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
1420         defaults.
1421         * modules/unistd (Makefile.am): Set witnesses.
1422         * lib/unistd.in.h (fdatasync): Declare.
1423         * MODULES.html.sh: Document it.
1424         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
1425         * modules/fdatasync-tests: New test.
1426         * tests/test-fdatasync.c: Likewise.
1427
1428 2011-09-16  Eric Blake  <eblake@redhat.com>
1429
1430         test-fsync: enhance tests
1431         * modules/fsync-tests (Depends-on): Add errno, for mingw.
1432         * tests/test-fsync.c (main): Enhance test.
1433
1434 2011-09-15  Bruno Haible  <bruno@clisp.org>
1435
1436         Support for MSVC compiler: Ensure ssize_t gets defined.
1437         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
1438         * doc/posix-headers/stdio.texi: Likewise.
1439         * modules/stdio (Depends-on): Add ssize_t.
1440         * modules/sys_socket (Depends-on): Likewise.
1441         * modules/sys_types (Depends-on): Likewise.
1442         * modules/sys_uio (Depends-on): Likewise.
1443         * modules/unistd (Depends-on): Likewise.
1444         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
1445         * tests/test-sys_types.c: Check that ssize_t is defined.
1446
1447 2011-09-14  Bruno Haible  <bruno@clisp.org>
1448
1449         Avoid using #, the m4 comment starter character, near brackets.
1450         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
1451         delimiter character in sed expressions.
1452         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1453         Suggested by Eric Blake.
1454
1455         Properly quote AC_CHECK_DECLS' 4th argument.
1456         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
1457         argument.
1458         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1459         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1460         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1461         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
1462         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
1463         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
1464         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
1465         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
1466         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
1467         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
1468         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
1469         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1470         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1471         * m4/isinf.m4 (gl_ISINF): Likewise.
1472         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1473         * m4/readutmp.m4 (gl_READUTMP): Likewise.
1474         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1475         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1476         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1477         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1478         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1479         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1480         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
1481         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1482         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1483         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
1485         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1486         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1487         Reported by Eric Blake.
1488
1489         Properly quote AC_CHECK_DECL's 4th argument.
1490         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
1491         argument.
1492         * m4/argp.m4 (gl_ARGP): Likewise.
1493         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1494         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1495         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1496         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1497         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
1498         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
1499         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1500         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1501         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1502         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1503         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1504         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1505         Reported by Eric Blake.
1506
1507 2011-09-14  Eric Blake  <eblake@redhat.com>
1508
1509         opendir: avoid compile warning
1510         * lib/opendir.c (includes): Always include errno.h.
1511         Reported by Tatsuro MATSUOKA.
1512
1513 2011-09-14  Jim Meyering  <meyering@redhat.com>
1514
1515         maint.mk: sc_tight_scope: propagate failure from sub-make
1516         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
1517         Reported by Martin von Gagern.
1518
1519 2011-09-13  Bruno Haible  <bruno@clisp.org>
1520
1521         tempname: Support for MSVC.
1522         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
1523         MSVC.
1524         * modules/tempname (Depends-on): Add fcntl-h.
1525
1526 2011-09-13  Bruno Haible  <bruno@clisp.org>
1527
1528         sys_time: Support for MSVC.
1529         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
1530         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
1531         include <winsock2.h>.
1532         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
1533         function declarations that collide with POSIX.
1534         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
1535         (Makefile.am): Substitute HAVE_WINSOCK2_H.
1536
1537 2011-09-13  Bruno Haible  <bruno@clisp.org>
1538
1539         stat: Support for MSVC.
1540         * lib/stat.c: Include pathmax.h.
1541         * modules/stat (Depends-on): Add pathmax.
1542
1543         pathmax: Support for native Windows.
1544         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
1545
1546 2011-09-12  Bruno Haible  <bruno@clisp.org>
1547
1548         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
1549         * lib/dirent.in.h (struct dirent): New type.
1550         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
1551         DT_WHT): New macros.
1552         (DIR): New type.
1553         (opendir, closedir): Declare only if the module 'opendir' is enabled.
1554         (readdir, rewinddir): New declarations.
1555         * lib/dirent-private.h: New file.
1556         * lib/opendir.c: New file.
1557         * lib/readdir.c: New file.
1558         * lib/rewinddir.c: New file.
1559         * lib/closedir.c: New file.
1560         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
1561         * m4/opendir.m4: New file.
1562         * m4/readdir.m4: New file.
1563         * m4/rewinddir.m4: New file.
1564         * m4/closedir.m4: New file.
1565         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
1566         REPLACE_CLOSEDIR here.
1567         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
1568         readdir, rewinddir are declared.
1569         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
1570         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
1571         HAVE_REWINDDIR, HAVE_CLOSEDIR.
1572         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
1573         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
1574         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
1575         * modules/opendir: New file.
1576         * modules/readdir: New file.
1577         * modules/rewinddir: New file.
1578         * modules/closedir: New file.
1579         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
1580         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
1581         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
1582         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
1583         * NEWS: Mention the 'fchdir' change.
1584
1585 2011-09-11  Bruno Haible  <bruno@clisp.org>
1586
1587         asm-underscore.m4: Support for MSVC.
1588         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
1589         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
1590
1591 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
1592
1593         Doc about crypt functions.
1594         * doc/posix-functions/crypt.texi: Expand range of glibc versions
1595         needing for _GNU_SOURCE to get crypt.
1596         * doc/posix-functions/encrypt.texi: Likewise.
1597         * doc/posix-functions/setkey.texi: Likewise.
1598
1599 2011-09-11  Bruno Haible  <bruno@clisp.org>
1600
1601         doc: Update regarding MSVC 9.
1602         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
1603         tested".
1604         * doc/posix-functions/*.texi: Update with info about MSVC 9.
1605         * doc/posix-headers/*.texi: Likewise.
1606         * doc/pastposix-functions/*.texi: Likewise.
1607         * doc/glibc-functions/*.texi: Likewise.
1608         * doc/glibc-headers/*.texi: Likewise.
1609
1610 2011-09-11  Bruno Haible  <bruno@clisp.org>
1611
1612         unistd et al.: Don't assume <unistd.h> exists.
1613         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
1614         does not exist.
1615         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
1616         exist. But include <stdlib.h>.
1617         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
1618         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
1619         symlink() does not exist.
1620         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
1621         include <io.h> instead.
1622         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
1623         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
1624         include <direct.h> instead.
1625         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1626         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1627         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
1628         <io.h> instead.
1629         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
1630         correctly if the system does not have hard links.
1631         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
1632         <direct.h> instead.
1633         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
1634         it when looking for function declarations.
1635         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
1636         <direct.h> and <io.h> instead.
1637         * doc/posix-headers/unistd.texi: More details about MSVC problem.
1638
1639 2011-09-11  Bruno Haible  <bruno@clisp.org>
1640
1641         strcase: Support for MSVC.
1642         * modules/strcase (Status, Notice): Remove obsoletion mark.
1643         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
1644         * doc/posix-functions/strncasecmp.texi: Likewise.
1645
1646         strings: Don't assume <strings.h> exists.
1647         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
1648         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
1649         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
1650         * doc/posix-headers/strings.texi: Mention the MSVC problem.
1651
1652 2011-09-11  Bruno Haible  <bruno@clisp.org>
1653
1654         dirent: Don't assume <dirent.h> exists.
1655         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
1656         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
1657         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
1658         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
1659
1660 2011-09-11  Bruno Haible  <bruno@clisp.org>
1661
1662         Fix wint_t on MSVC.
1663         * lib/wchar.in.h (wint_t): On MSVC, override it.
1664         * lib/wctype.in.h (wint_t): Likewise.
1665         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
1666         MSVC.
1667         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
1668         * doc/posix-headers/wctype.texi: Likewise.
1669
1670 2011-09-11  Bruno Haible  <bruno@clisp.org>
1671
1672         sys_types: Fix typo.
1673         * lib/sys_types.in.h: Fix typo in comment.
1674         Reported by Paul Eggert.
1675
1676         Support for MSVC compiler: Ensure size_t gets defined.
1677         * modules/strings (Depends-on): Add 'sys_types'.
1678         * modules/sys_uio (Depends-on): Likewise.
1679         * lib/sys_uio.in.h: Update comment.
1680
1681         C++ tests for module 'sys_types'.
1682         * modules/sys_types-c++-tests: New file.
1683         * tests/test-sys_types-c++.cc: New file.
1684
1685         Tests for module 'sys_types'.
1686         * modules/sys_types-tests: New file.
1687         * tests/test-sys_types.c: New file.
1688
1689         New module 'sys_types'.
1690         * lib/sys_types.in.h: New file.
1691         * m4/sys_types_h.m4: New file.
1692         * modules/sys_types: New file.
1693         * doc/posix-headers/sys_types.texi: Mention the new module and the
1694         size_t problem on MSVC 9.
1695
1696 2011-09-11  Bruno Haible  <bruno@clisp.org>
1697
1698         Support for MSVC compiler: Avoid division by a literal 0.
1699         * lib/math.in.h (NAN): Define through a function call also on MSVC.
1700         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
1701         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
1702         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
1703         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
1704         * tests/infinity.h: New file.
1705         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
1706         on MSVC.
1707         * tests/test-ceilf1.c: Include infinity.h.
1708         (main): Use Infinityf.
1709         * tests/test-ceil1.c: Include infinity.h.
1710         (main): Use Infinityd.
1711         * tests/test-ceill.c: Include infinity.h.
1712         (main): Use Infinityl.
1713         * tests/test-dprintf-posix.c: Include infinity.h.
1714         (test_function): Use Infinityd.
1715         * tests/test-floorf1.c: Include infinity.h.
1716         (main): Use Infinityf.
1717         * tests/test-floor1.c: Include infinity.h.
1718         (main): Use Infinityd.
1719         * tests/test-floorl.c: Include infinity.h.
1720         (main): Use Infinityl.
1721         * tests/test-fprintf-posix.c: Include infinity.h.
1722         (test_function): Use Infinityd.
1723         * tests/test-frexp.c: Include infinity.h.
1724         (main): Use Infinityd.
1725         * tests/test-frexpl.c: Include infinity.h.
1726         (main): Use Infinityl.
1727         * tests/test-isfinite.c: Include infinity.h.
1728         (test_isfinitef): Use Infinityf.
1729         (test_isfinited): Use Infinityd.
1730         (test_isfinitel): Use Infinityl.
1731         * tests/test-isinf.c: Include infinity.h.
1732         (test_isinff): Use Infinityf.
1733         (test_isinfd): Use Infinityd.
1734         (test_isinfl): Use Infinityl.
1735         * tests/test-isnan.c: Include infinity.h.
1736         (test_float): Use Infinityf.
1737         (test_double): Use Infinityd.
1738         (test_long_double): Use Infinityl.
1739         * tests/test-isnanf.h: Include infinity.h.
1740         (main): Use Infinityf.
1741         * tests/test-isnand.h: Include infinity.h.
1742         (main): Use Infinityd.
1743         * tests/test-isnanl.h: Include infinity.h.
1744         (main): Use Infinityl.
1745         * tests/test-ldexpl.c: Include infinity.h.
1746         (main): Use Infinityl.
1747         * tests/test-printf-posix.h: Include infinity.h.
1748         (test_function): Use Infinityd.
1749         * tests/test-roundf1.c: Include infinity.h.
1750         (main): Use Infinityf.
1751         * tests/test-round1.c: Include infinity.h.
1752         (main): Use Infinityd.
1753         * tests/test-roundl.c: Include infinity.h.
1754         (main): Use Infinityl.
1755         * tests/test-signbit.c: Include infinity.h.
1756         (test_signbitf): Use Infinityf.
1757         (test_signbitd): Use Infinityd.
1758         (test_signbitl): Use Infinityl.
1759         * tests/test-snprintf-posix.h: Include infinity.h.
1760         (test_function): Use Infinityd, Infinityl.
1761         * tests/test-sprintf-posix.h: Include infinity.h.
1762         (test_function): Use Infinityd, Infinityl.
1763         * tests/test-truncf1.c: Include infinity.h.
1764         (main): Use Infinityf.
1765         * tests/test-trunc1.c: Include infinity.h.
1766         (main): Use Infinityd.
1767         * tests/test-truncl.c: Include infinity.h.
1768         (main): Use Infinityl.
1769         * tests/test-vasnprintf-posix.c: Include infinity.h.
1770         (test_function): Use Infinityd, Infinityl.
1771         * tests/test-vasprintf-posix.c: Include infinity.h.
1772         (test_function): Use Infinityd, Infinityl.
1773         * modules/ceilf-tests (Files): Add tests/infinity.h.
1774         * modules/ceil-tests (Files): Likewise.
1775         * modules/ceill-tests (Files): Likewise.
1776         * modules/dprintf-posix-tests (Files): Likewise.
1777         * modules/floorf-tests (Files): Likewise.
1778         * modules/floor-tests (Files): Likewise.
1779         * modules/floorl-tests (Files): Likewise.
1780         * modules/fprintf-posix-tests (Files): Likewise.
1781         * modules/frexp-tests (Files): Likewise.
1782         * modules/frexp-nolibm-tests (Files): Likewise.
1783         * modules/frexpl-tests (Files): Likewise.
1784         * modules/frexpl-nolibm-tests (Files): Likewise.
1785         * modules/isfinite-tests (Files): Likewise.
1786         * modules/isinf-tests (Files): Likewise.
1787         * modules/isnan-tests (Files): Likewise.
1788         * modules/isnanf-tests (Files): Likewise.
1789         * modules/isnanf-nolibm-tests (Files): Likewise.
1790         * modules/isnand-tests (Files): Likewise.
1791         * modules/isnand-nolibm-tests (Files): Likewise.
1792         * modules/isnanl-tests (Files): Likewise.
1793         * modules/isnanl-nolibm-tests (Files): Likewise.
1794         * modules/ldexpl-tests (Files): Likewise.
1795         * modules/printf-posix-tests (Files): Likewise.
1796         * modules/roundf-tests (Files): Likewise.
1797         * modules/round-tests (Files): Likewise.
1798         * modules/roundl-tests (Files): Likewise.
1799         * modules/signbit-tests (Files): Likewise.
1800         * modules/snprintf-posix-tests (Files): Likewise.
1801         * modules/sprintf-posix-tests (Files): Likewise.
1802         * modules/truncf-tests (Files): Likewise.
1803         * modules/trunc-tests (Files): Likewise.
1804         * modules/truncl-tests (Files): Likewise.
1805         * modules/vasnprintf-posix-tests (Files): Likewise.
1806         * modules/vasprintf-posix-tests (Files): Likewise.
1807         * modules/vdprintf-posix-tests (Files): Likewise.
1808         * modules/vfprintf-posix-tests (Files): Likewise.
1809         * modules/vprintf-posix-tests (Files): Likewise.
1810         * modules/vsnprintf-posix-tests (Files): Likewise.
1811         * modules/vsprintf-posix-tests (Files): Likewise.
1812         * modules/xprintf-posix-tests (Files): Likewise.
1813
1814 2011-09-11  Bruno Haible  <bruno@clisp.org>
1815
1816         Ensure pid_t gets defined.
1817         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1818         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1819         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1820         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1821         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1822         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1823         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1824         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1825         * tests/test-fcntl-h.c: Check that pid_t is defined.
1826         * tests/test-sched.c: Likewise.
1827         * tests/test-termios.c: Likewise.
1828         * tests/test-time.c: Likewise.
1829         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
1830         * doc/posix-headers/signal.texi: Likewise.
1831         * doc/posix-headers/sys_types.texi: Likewise.
1832         * doc/posix-headers/time.texi: Likewise.
1833
1834 2011-09-11  Bruno Haible  <bruno@clisp.org>
1835
1836         acl: Fix compilation on Solaris 10 (older version).
1837         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
1838         of ACE_EVERYONE.
1839         * lib/set-mode-acl.c (qset_acl): Likewise.
1840         Reported by Christian Jullien <eligis@orange.fr>.
1841
1842 2011-09-10  Bruno Haible  <bruno@clisp.org>
1843
1844         iconv, unsetenv: Add support for MSVC compiler.
1845         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
1846         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
1847
1848 2011-09-10  Bruno Haible  <bruno@clisp.org>
1849
1850         *printf: Add support for MSVC compiler.
1851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
1852         handles the exception caused by the %n directive. When cross-compiling,
1853         guess no on native Windows.
1854         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1855         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
1856         emulate it through vsnprintf.
1857         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
1858         * doc/posix-functions/dprintf.texi: Update documentation regarding
1859         MSVC 9.
1860         * doc/posix-functions/fprintf.texi: Likewise.
1861         * doc/posix-functions/printf.texi: Likewise.
1862         * doc/posix-functions/snprintf.texi: Likewise.
1863         * doc/posix-functions/sprintf.texi: Likewise.
1864         * doc/posix-functions/swprintf.texi: Likewise.
1865         * doc/posix-functions/vdprintf.texi: Likewise.
1866         * doc/posix-functions/vfprintf.texi: Likewise.
1867         * doc/posix-functions/vprintf.texi: Likewise.
1868         * doc/posix-functions/vsnprintf.texi: Likewise.
1869         * doc/posix-functions/vsprintf.texi: Likewise.
1870         * doc/glibc-functions/asprintf.texi: Likewise.
1871         * doc/glibc-functions/obstack_printf.texi: Likewise.
1872         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1873         * doc/glibc-functions/vasprintf.texi: Likewise.
1874
1875 2011-09-10  Bruno Haible  <bruno@clisp.org>
1876
1877         nocrash: Add support for native Windows.
1878         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
1879
1880 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
1881             Bruno Haible  <bruno@clisp.org>
1882
1883         absolute-header, include-next: Add support for MSVC compiler.
1884         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1885         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1886         directory separator in #line directives.
1887         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1888         recognize also backslash as directory separator in #line directives.
1889
1890 2011-09-08  Jim Meyering  <meyering@redhat.com>
1891
1892         maint.mk: mark the post-release commit log with "maint: " prefix
1893         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1894         one-line commit-log summary.
1895
1896 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1897             Bruno Haible  <bruno@clisp.org>
1898
1899         Doc about crypt functions.
1900         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1901         systems.
1902         * doc/posix-functions/encrypt.texi: Likewise.
1903         * doc/posix-functions/setkey.texi: Likewise.
1904
1905 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1906
1907         * lib/gc.h: Fix copyright header.
1908
1909 2011-09-07  Bruno Haible  <bruno@clisp.org>
1910
1911         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1912         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1913         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1914
1915 2011-09-07  Bruno Haible  <bruno@clisp.org>
1916
1917         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1918         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1919         * lib/freopen.c: Likewise.
1920         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1921         * lib/lstat.c: Likewise.
1922         * lib/stat.c: Likewise.
1923         * lib/open.c: Use different syntax for include of <fcntl.h>.
1924         * lib/openat.c: Include fcntl.h again, explicitly.
1925
1926 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1927
1928         parse-datetime: document the newly accepted format
1929         * doc/parse-datetime.texi (Combined date and time of day items):
1930         New section.
1931
1932 2011-09-06  Bruno Haible  <bruno@clisp.org>
1933
1934         acl: Fix a test failure on newer Solaris 10 with ZFS.
1935         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1936         ENOSYS as no ACL.
1937         Reported by Jim Meyering.
1938
1939 2011-09-06  Bruno Haible  <bruno@clisp.org>
1940
1941         acl: Update for AIX >= 5.3 with NFS.
1942         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1943         ENOSYS as no ACL.
1944
1945         acl: Fix a test failure on AIX >= 5.3 with NFS.
1946         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1947         as no ACL.
1948
1949 2011-09-06  Bruno Haible  <bruno@clisp.org>
1950
1951         acl: Fix a test failure on IRIX 6.5 with NFS.
1952         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1953         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1954         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1955         * lib/copy-acl.c (qcopy_acl): Likewise.
1956
1957 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1958
1959         openat: port to AIX 7.1 with large files
1960         AIX 7.1 does a "#define openat open64at" if large files are in use,
1961         so we can't simply #undef openat.  Use the orig_openat trick (similar
1962         to orig_open in lib/open.c) to work around the problem.  Problem
1963         reported by Kevin Brott for GNU tar, in the thread containing
1964         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1965         * lib/openat.c (__need_system_fcntl_h): Define first.
1966         Include <fcntl.h> and <sys/types.h> before undefining.
1967         (orig_openat) [HAVE_OPENAT]: New inline function.
1968         (openat) [HAVE_OPENAT]: Do not undef.
1969         (rpl_openat): Use orig_openat, not openat.
1970
1971 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1972             Bruno Haible  <bruno@clisp.org>
1973
1974         acl: Avoid errors on NonStop Kernel.
1975         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1976         ENOTSUP errors.
1977
1978 2011-09-05  Bruno Haible  <bruno@clisp.org>
1979
1980         acl: Clean up Solaris code.
1981         * lib/acl-internal.h: Remove no-op #if.
1982         * lib/file-has-acl.c: Likewise.
1983         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1984         * lib/copy-acl.c (qcopy_acl): Likewise.
1985
1986 2011-09-05  Bruno Haible  <bruno@clisp.org>
1987
1988         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1989         binaries built on the original Solaris 10.
1990         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1991         trivial.
1992
1993 2011-09-05  Bruno Haible  <bruno@clisp.org>
1994
1995         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1996         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1997         10.
1998         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1999         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
2000         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
2001         instead of acl_get, facl_get, acl_set, facl_set.
2002
2003 2011-09-05  Bruno Haible  <bruno@clisp.org>
2004
2005         copy-file: Try unit tests on more file systems.
2006         * tests/test-copy-file-1.sh: New file.
2007         * tests/test-copy-file-2.sh: New file.
2008         * modules/copy-file-tests (Files): Add them.
2009         (Makefile.am): Add them to TESTS.
2010
2011         acl: Try unit tests on more file systems.
2012         * tests/test-file-has-acl-1.sh: New file.
2013         * tests/test-file-has-acl-2.sh: New file.
2014         * tests/test-set-mode-acl-1.sh: New file.
2015         * tests/test-set-mode-acl-2.sh: New file.
2016         * tests/test-copy-acl-1.sh: New file.
2017         * tests/test-copy-acl-2.sh: New file.
2018         * modules/acl-tests (Files): Add them.
2019         (Makefile.am): Add them to TESTS.
2020
2021 2011-09-04  Bruno Haible  <bruno@clisp.org>
2022
2023         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
2024         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
2025         10.
2026         (OLD_ALLOW, OLD_DENY): New macros.
2027         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
2028         ACE_ACCESS_ALLOWED_ACE_TYPE.
2029         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
2030         ACE_ACCESS_DENIED_ACE_TYPE.
2031         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
2032         (NEW_ACE_EXECUTE): Fix value.
2033         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
2034         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
2035         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
2036         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
2037         NEW_ACE_SYNCHRONIZE): New macros.
2038         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
2039         instead of acl_fromtext, acl_set, facl_set.
2040         Fixes a coreutils/tests/cp/perm failure.
2041
2042 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
2043
2044         openat: test for fstatat (..., 0) bug
2045         Further testing with tar suggests that fstatat (..., 0)
2046         does not work in general, on AIX 7.1; see
2047         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
2048         So, give up entirely on AIX 7.1's fstatat, and fall back on our
2049         replacement fstatat (which is what older AIX releases were using
2050         anyway).
2051         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
2052         use is now changed to orig_fstatat.  This was probably the right
2053         thing to do anyway.
2054         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
2055         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
2056         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
2057         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
2058         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
2059         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
2060         if the bug is found.
2061
2062         openat: test for fstatat (AT_FDCWD, ..., 0) bug
2063         This tests for another fstatat bug on AIX 7.1:
2064         fstatat (AT_FDCWD, ..., 0) does not work.  See
2065         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
2066         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
2067         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
2068         (rpl_fstatat): Adjust so that it works around either (or both)
2069         bugs if present.
2070         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
2071
2072 2011-09-03  Karl Berry  <karl@gnu.org>
2073
2074         * doc/regex.texi (Character Class Operators): Avoid literal ":"
2075         in index entries.
2076
2077 2011-09-02  Bruno Haible  <bruno@clisp.org>
2078
2079         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
2080         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
2081         values of AR, ARFLAGS, RANLIB.
2082         Reported by John W. Eaton <jwe@gnu.org> for Octave.
2083
2084 2011-09-02  Bruno Haible  <bruno@clisp.org>
2085
2086         Find 'ar' program that fits with --host argument.
2087         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
2088
2089 2011-09-02  Bruno Haible  <bruno@clisp.org>
2090
2091         tests: init.sh: Support any non-GNU diff.
2092         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
2093         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
2094         Solaris 8.
2095
2096 2011-09-02  Bruno Haible  <bruno@clisp.org>
2097
2098         tests: init.sh: work also with any non-GNU diff that supports -u
2099         * tests/init.sh: Relax check for diff -u support.
2100         Rather than checking for GNU diff via --version, simply check
2101         for support for -u itself.  Useful at least on OpenBSD 4.9,
2102         AIX 7.1, IRIX 6.5, and Solaris 10.
2103
2104 2011-09-01  Bruno Haible  <bruno@clisp.org>
2105
2106         strtoimax, strtoumax: Document problem on HP-UX 11.
2107         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
2108         * doc/posix-functions/strtoumax.texi: Likewise.
2109
2110 2011-09-01  Bruno Haible  <bruno@clisp.org>
2111
2112         strtoumax: Avoid link error on OSF/1 with DTK cc.
2113         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
2114         defined as a function.
2115         * modules/strtoumax (Depends-on, configure.ac): Test only whether
2116         strtoumax is defined, not whether it is declared.
2117
2118 2011-09-01  Bruno Haible  <bruno@clisp.org>
2119
2120         strtoimax: Avoid link error on OSF/1 with DTK cc.
2121         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
2122         defined as a function.
2123         * modules/strtoimax (Depends-on, configure.ac): Test only whether
2124         strtoimax is defined, not whether it is declared.
2125
2126 2011-09-01  Bruno Haible  <bruno@clisp.org>
2127
2128         imaxdiv: Avoid link error on OSF/1 with DTK cc.
2129         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
2130         as a function.
2131         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
2132         whether it is declared.
2133
2134 2011-09-01  Bruno Haible  <bruno@clisp.org>
2135
2136         imaxabs: Avoid link error on OSF/1 with DTK cc.
2137         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
2138         as a function.
2139         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
2140         whether it is declared.
2141
2142 2011-09-01  Bruno Haible  <bruno@clisp.org>
2143
2144         Tests for module 'strtoumax'.
2145         * modules/strtoumax-tests: New file.
2146         * tests/test-strtoumax.c: New file.
2147
2148         Tests for module 'strtoimax'.
2149         * modules/strtoimax-tests: New file.
2150         * tests/test-strtoimax.c: New file.
2151
2152         Tests for module 'imaxdiv'.
2153         * modules/imaxdiv-tests: New file.
2154         * tests/test-imaxdiv.c: New file.
2155
2156         Tests for module 'imaxabs'.
2157         * modules/imaxabs-tests: New file.
2158         * tests/test-imaxabs.c: New file.
2159
2160 2011-09-01  Bruno Haible  <bruno@clisp.org>
2161
2162         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
2163         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
2164         pthread_create.
2165
2166 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2167
2168         openat: work around AIX 7.1 fstatat issue
2169         This should fix the problem that was not properly fixed
2170         in the previous change, dated 2011-08-30.
2171         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
2172         __need_system_stat_h defined.
2173         (orig_fstatat) [HAVE_FSTATAT]: New function.
2174         (rpl_fstatat): Go back to the old way of doing things,
2175         except call orig_fstatat instead of fstatat.
2176         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
2177         Remove unnecessary check whether fstatat fills in st_size etc.
2178
2179 2011-09-01  Bruno Haible  <bruno@clisp.org>
2180
2181         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
2182         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
2183         just include the system's header.
2184
2185 2011-08-31  Jim Meyering  <meyering@redhat.com>
2186
2187         tests: avoid spurious assertion failure in test-float.c on ppc64
2188         * tests/test-float.c (test_long_double): Comment out an assertion,
2189         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
2190         with gcc-4.4.4.
2191
2192         maint: indent with spaces, not TABs
2193         I need to get in the habit of running gnulib's "make check".
2194         Both of these would have been caught.
2195         * m4/largefile.m4: Indent with spaces, not TABs.
2196         * lib/parse-datetime.y (iso_8601_time): Likewise.
2197         Spotted by Pádraig Brady.
2198
2199         test-parse-datetime.c: accommodate a relatively strict gcc warning
2200         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
2201         to avoid a warning from gcc's -Werror=missing-declarations.
2202         Insert a few spaces-before-funcall-parenthesis.
2203
2204 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
2205
2206         parse-datetime: accept ISO 8601 date and time rep with "T" separator
2207         The parser now accepts ISO 8601 date-time strings with "T" as the
2208         separator.  It has long parsed dates like "2004-02-29 16:21:42"
2209         with a space between the date and time strings.  Now it also parses
2210         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
2211         variants like "2004-02-29T16:21:42.333-07:00"
2212         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
2213         of day representation using the 'T' separator character.
2214         * doc/parse-datetime.texi (General date syntax): replace use of
2215         deprecated --iso-8601 option with --rfc-3339 in example of date
2216         command output formats that can be parsed.
2217         * tests/test-parse-datetime.c (tm_diff): New function, taken from
2218         lib/parse-datetime.y.
2219         (gmt_offset): New function.
2220         (main): Add additional test cases to validate ISO8601 extended
2221         date and time of day parsing.
2222
2223 2011-08-31  Bruno Haible  <bruno@clisp.org>
2224
2225         freopen: Documentation.
2226         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
2227         name.
2228         Reported by Claudio Bley <claudio.bley@gmail.com>.
2229
2230 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
2231
2232         freopen: Don't crash if the filename argument is NULL.
2233         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
2234         NULL.
2235
2236 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2237
2238         openat: work around AIX 7.1 fstatat bug
2239         Problem reported by Kevin Brott for GNU tar, in the thread containing
2240         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
2241         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
2242         FSTATAT_ST_SIZE_ETC_BROKEN.
2243         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
2244         rpl_fstatat.
2245         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
2246         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
2247         AC_CHECK_FUNCS_ONCE for fstatat.
2248         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
2249         fchmodat, mkdirat, openat and unlinkat.
2250
2251 2011-08-30  Bruno Haible  <bruno@clisp.org>
2252
2253         Avoid endless recursions if config.h includes some header files.
2254         * lib/fopen.c (__need_FILE): Define already before including config.h.
2255         * lib/freopen.c (__need_FILE): Likewise.
2256         * lib/open.c (__need_system_fcntl_h): Likewise.
2257         * lib/stat.c (__need_system_sys_stat_h): Likewise.
2258         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
2259         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2260
2261 2011-08-25  Karl Berry  <karl@gnu.org>
2262
2263         * config/srclist.txt (ylwrap): new try.
2264         * build-aux/ylwrap: new file.
2265
2266 2011-08-23  Bruno Haible  <bruno@clisp.org>
2267
2268         tmpdir: Use a good default directory on native Windows.
2269         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
2270         (P_tmpdir): Default to _P_tmpdir on native Windows.
2271         (path_search): On native Windows, try the value returned by GetTempPath
2272         before trying P_tmpdir.
2273         * modules/tmpdir (Depends-on): Add pathmax.
2274         Suggested by John Darrington <john@darrington.wattle.id.au>.
2275
2276 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
2277
2278         doc: fix typo in README-release
2279         * top/README-release: Capitalize first word of a sentence.
2280
2281 2011-08-19  Jim Meyering  <meyering@redhat.com>
2282
2283         fts: do not exhaust memory when processing million-entry directories
2284         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
2285         directory would require about 256*N bytes of memory.  Thus, it was
2286         easy to construct a directory too large to be processed by any of
2287         those tools.  With this change, fts' maximum memory utilization is
2288         now limited to around 30MB.
2289         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
2290         (fts_read): When we've processed the final entry (i.e., when
2291         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
2292         using the parent entry to read any remaining entries.  Dispatch
2293         depending on what fts_build returns:
2294         - NULL+stop, aka failure: stop
2295         - NULL otherwise: move up in the dir hierarchy
2296         - non-NULL: handle this new entry
2297         (fts_build): Declare and use new local, continue_readdir.
2298         Prepare to be called from fts_read, when the entries
2299         from a partially-read directory have just been exhausted.
2300         In that case, we'll skip the opendir and instead use the parent's
2301         fts_dirp and derive dir_fd from that.
2302         Finally, in the readdir loop, if we read max_entries entries,
2303         exit the loop ensuring *not* to call closedir.  This is required
2304         so that fts_dirp can be reused on a subsequent call.
2305         Prompted by Ben England's report of memory exhaustion in find
2306         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
2307
2308         maint: fts: move decl of `dp' down into while loop; split a long line
2309         * lib/fts.c (fts_build): No semantic change.
2310
2311         fts: add/use new struct member, fts_dirp
2312         We are about to use this to manage any directory with
2313         too many entries to read all of them into memory at once.
2314         To do that, we'll need to save the DIR* pointer in each
2315         affected FTSENT struct.
2316         * lib/fts_.h: Include <dirent.h>.
2317         (struct FTSENT) [fts_dirp]: New member.
2318         * lib/fts.c (closedir_and_clear): Define.
2319         Use it in place of closedir so that we are sure to
2320         clear the new fts_dirp member when done with it.
2321         (fts_alloc): Initialize the new member.
2322         (fts_lfree): Free, if needed.
2323
2324         maint: fts: give __opendir2 a new parameter and rename
2325         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
2326         than surreptitiously using sole caller's "dir_fd".
2327         (fts_opendir): Rename from __opendir2.
2328
2329         maint: fts.c: remove __opendir2's now-unused parameter, oflag
2330         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
2331
2332         maint: fts.c: correct off-by-one indentation
2333         * lib/fts.c (fts_build): Correct indentation, change style
2334         of a couple of block comments, and bracing style.
2335
2336         maint: fts.c: move __opendir2 #define "up" out of function body
2337         * lib/fts.c (__opendir2): Move "up".  No semantic change.
2338
2339         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
2340         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
2341         out for a long time and besides was useful only on BSD systems.
2342
2343 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2344
2345         regex: port to Stratus OpenVOS
2346         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
2347         define to empty, rather than attempting nonportable optimizations.
2348         Problem reported by Paul Green in:
2349         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
2350         and fix suggested by Eric Blake in:
2351         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
2352
2353 2011-08-17  Eric Blake  <eblake@redhat.com>
2354
2355         getcwd: fix test failures on mingw
2356         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
2357         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
2358         test if long directory cannot be created, and allow mingw errno.
2359
2360         getcwd-lgpl: fix m4 to match relaxed test for BSD
2361         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
2362         (gl_FUNC_GETCWD_SIGNATURE): New macro.
2363         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
2364         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
2365         signature problem.
2366
2367         getcwd: fix compilation on mingw64
2368         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
2369         getcwd.
2370         Reported by Marc-André Lureau.
2371
2372         pipe2: silence compiler warning
2373         * lib/pipe2.c (pipe2): Hide label if it is not used.
2374
2375 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
2376
2377         relocatable-prog: fix link error
2378         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
2379         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
2380         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
2381         into modules/relocatable-lib without noticing that
2382         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
2383         also needs to build relocatable.c.
2384
2385 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2386
2387         getaddrinfo: fix sh typo in gai_strerrorA decl checking
2388         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
2389         shell code: it contained a 'break' that was not in a loop.
2390         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
2391         via a shell-language loop; this may have been true in old Autoconf
2392         versions, but it's not true in Autoconf 2.68.  I found this bug
2393         when testing coreutils git on Solaris 8, whose shell complains
2394         about the syntax error.
2395
2396 2011-08-12  Simon Josefsson  <simon@josefsson.org>
2397
2398         * lib/base64.c: Fix comment to reference RFC 4648.
2399         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
2400         <gvtulder@gmail.com>.
2401
2402 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2403
2404         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
2405
2406         po/Makefile.in.in: fix make -q problem
2407         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
2408         rule, since there's no file named 'check-macro-version' and its
2409         use as a file breaks make -q.
2410         (all): Don't depend on check-macro-version.
2411         (CHECK_MACRO_VERSION): New macro.
2412         (stamp-po): Use it.
2413
2414         configmake: fix make -q problem
2415         * modules/configmake (configmake.h): Update configmake.h's time stamp
2416         even if the file does not change.  Otherwise, 'make -q' fails.
2417         Problem reported by Simon Josefsson in
2418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
2419
2420 2011-08-11  Jim Meyering  <meyering@redhat.com>
2421
2422         git-version-gen: correct the advice in a comment
2423         * build-aux/git-version-gen: Correct comment.
2424         Don't recommend to list .tarball-version in .gitignore.
2425
2426 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2427
2428         base64: fix off-by-one buffer size bug
2429         Problem and (trivial) fix reported by Gijs van Tulder in
2430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
2431         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
2432         * tests/test-base64.c (main): Catch the bug.
2433
2434 2011-08-10  Eric Blake  <eblake@redhat.com>
2435
2436         closein: correct comments
2437         * lib/closein.c (close_stdin): Improve comments.
2438
2439 2011-08-09  Bruno Haible  <bruno@clisp.org>
2440
2441         More tests for 'fseeko'.
2442         * tests/test-fseeko3.c: New file, from Eric Blake.
2443         * tests/test-fseeko3.sh: New file.
2444         * modules/fseeko-tests (Files): Add them.
2445         (TESTS): Add test-fseeko3.sh.
2446         (check_PROGRAMS): Add test-fseeko3.
2447
2448 2011-08-09  Eric Blake  <eblake@redhat.com>
2449
2450         fseeko: remove unneeded hack
2451         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
2452
2453         fseeko: fix bug on glibc
2454         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
2455         Reported by John W. Eaton.
2456
2457 2011-08-08  Bruno Haible  <bruno@clisp.org>
2458
2459         unictype/base: Fix interoperability with preinstalled libunistring.
2460         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
2461         Reported by Simon Josefsson.
2462
2463 2011-08-08  Bruno Haible  <bruno@clisp.org>
2464
2465         iswblank: Detect declaration correctly.
2466         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
2467         AC_CHECK_DECLS invocation.
2468
2469 2011-08-08  Bruno Haible  <bruno@clisp.org>
2470
2471         tcgetsid: Detect declaration correctly.
2472         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
2473         AC_CHECK_DECLS invocation.
2474         Reported by Simon Josefsson.
2475
2476 2011-08-08  Eric Blake  <eblake@redhat.com>
2477
2478         largefile: fix typo that regressed large file support
2479         * modules/largefile (configure.ac-early): Fix section name.
2480
2481 2011-08-06  Karl Berry  <karl@gnu.org>
2482
2483         * MODULES.html.sh (func_all_files): _Noreturn is no longer
2484         a separate module.
2485
2486 2011-08-05  Simon Josefsson  <simon@josefsson.org>
2487
2488         openat: Fix warnings and commens when building unlinkat.c on Hurd.
2489         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
2490         get prototype for free.
2491
2492 2011-08-04  Bruno Haible  <bruno@clisp.org>
2493
2494         Tests for module 'pathmax'.
2495         * modules/pathmax-tests: New file.
2496         * tests/test-pathmax.c: New file.
2497
2498         canonicalize-lgpl: Support larger filenames on the Hurd.
2499         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
2500         Reported by Paul Eggert.
2501
2502         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
2503         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
2504         * lib/chdir-long.h: Include pathmax.h.
2505         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
2506         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
2507         (PATH_MAX): Remove code that is done by pathmax.h.
2508         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
2509         * lib/tmpfile.c: Add a comment.
2510         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
2511         * modules/chdir-long (Depends-on): Add pathmax.
2512         * modules/getcwd (Depends-on): Add pathmax.
2513         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
2514         is not defined.
2515         * doc/posix-headers/limits.texi: Mention the pathmax module.
2516         * NEWS: Mention the change.
2517
2518 2011-08-02  Bruno Haible  <bruno@clisp.org>
2519
2520         pthread_sigmask: Actually use results of gl_THREADLIB.
2521         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
2522         gl_THREADLIB, not gl_[]THREADLIB.
2523         Reported by Eric Blake.
2524
2525 2011-08-02  Jim Meyering  <meyering@redhat.com>
2526
2527         maint.mk: relax the default _gl_TS_function_match regexp
2528         * top/maint.mk (_gl_TS_function_match): Don't require at least one
2529         space between function name and "(" in an "extern" declaration.
2530         That would fail to match a decl with no space there: extern void foo();
2531
2532 2011-07-31  Iain Nicol  <iain@thenicols.net>
2533
2534         git-version-gen: document that EXTRA_DIST must include .version
2535         * build-aux/git-version-gen: In the how-to-use comment, document
2536         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
2537         will fail when run from an unpacked distribution tarball.
2538
2539 2011-08-01  Bruno Haible  <bruno@clisp.org>
2540
2541         wctype-h: Fix last change.
2542         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
2543         REPLACE_TOWLOWER to 0.
2544         Reported by Sam Steingold <sds@gnu.org>.
2545
2546 2011-07-31  Bruno Haible  <bruno@clisp.org>
2547
2548         frexpl: Update autoconf test.
2549         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
2550         according to changes of 2011-06-20.
2551
2552 2011-07-31  Bruno Haible  <bruno@clisp.org>
2553
2554         sys_utsname: Add support for Minix.
2555         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
2556         <sys/utsname.h>.
2557         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2558         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
2559
2560 2011-07-31  Bruno Haible  <bruno@clisp.org>
2561
2562         strings: Add support for Minix.
2563         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
2564         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2565         * doc/posix-headers/strings.texi: Document the Minix problem.
2566
2567 2011-07-31  Bruno Haible  <bruno@clisp.org>
2568
2569         wctype-h: Add support for Minix.
2570         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
2571         REPLACE_TOWLOWER.
2572         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
2573         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
2574         REPLACE_ISWCNTRL.
2575
2576 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
2577
2578         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
2579         This is a performance improvement for 64-bit hosts: it causes the
2580         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
2581
2582 2011-07-31  Bruno Haible  <bruno@clisp.org>
2583
2584         stdioext: Add support for Minix.
2585         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
2586         * lib/fpurge.c (fpurge): Likewise.
2587         * lib/freadahead.c (freadahead): Likewise.
2588         * lib/freadable.c (freadable): Likewise.
2589         * lib/freading.c (freading): Likewise.
2590         * lib/freadptr.c (freadptr): Likewise.
2591         * lib/freadseek.c (freadptrinc): Likewise.
2592         * lib/fseeko.c (rpl_fseeko): Likewise.
2593         * lib/fseterr.c (fseterr): Likewise.
2594         * lib/fwritable.c (fwritable): Likewise.
2595         * lib/fwriting.c (fwriting): Likewise.
2596         * lib/fflush.c (clear_ungetc_buffer): Update comment.
2597         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
2598
2599 2011-07-31  Bruno Haible  <bruno@clisp.org>
2600
2601         errno: Port to Minix.
2602         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
2603         ECONNABORTED are defined.
2604         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
2605         GNULIB_defined_ECONNABORTED): New macros.
2606         * lib/strerror-override.h (strerror_override): Test also
2607         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
2608         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
2609         ECONNABORTED.
2610         * doc/posix-headers/errno.texi: Mention the Minix problem.
2611
2612 2011-07-31  Bruno Haible  <bruno@clisp.org>
2613
2614         Work around declaration collisions on Minix.
2615         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
2616         defined, set REPLACE_MBSINIT.
2617         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
2618         defined, set REPLACE_MBRTOWC.
2619         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
2620         set REPLACE_MBRLEN.
2621         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
2622         defined, set REPLACE_MBSRTOWCS.
2623         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
2624         defined, set REPLACE_WCRTOMB.
2625         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
2626         defined, set REPLACE_WCSRTOMBS.
2627
2628 2011-07-31  Bruno Haible  <bruno@clisp.org>
2629
2630         Add support for Minix with ACK compiler.
2631         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
2632         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
2633         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
2634
2635 2011-07-31  Bruno Haible  <bruno@clisp.org>
2636
2637         Documentation about Minix.
2638         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
2639         * doc/glibc-headers/*.texi: Likewise.
2640         * doc/posix-functions/*.texi: Likewise.
2641         * doc/glibc-functions/*.texi: Likewise.
2642
2643 2011-07-31  Bruno Haible  <bruno@clisp.org>
2644
2645         snippet/warn-on-use: Fix indentation.
2646         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
2647
2648 2011-07-25  Jim Meyering  <meyering@redhat.com>
2649
2650         tests: test-update-copyright.sh: remove unnecessary "rm" commands
2651         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
2652         commands.
2653
2654 2011-07-27  Jim Meyering  <meyering@redhat.com>
2655
2656         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
2657         * top/maint.mk (gl_extract_significant_defines_): Now that
2658         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
2659         gnulib/lib/signal.in.h, and now that we recommend to
2660         define-if-undefined those two symbols in application code,
2661         we must filter them out of the "significant" list.
2662         This avoids a "make syntax-check" failure in coreutils.
2663
2664 2011-07-26  Eric Blake  <eblake@redhat.com>
2665
2666         warnings: add comments about previous patch
2667         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
2668         * m4/include_next.m4: Likewise.
2669         * m4/warn-on-use.m4: Likewise.
2670         * m4/warnings.m4: Likewise, and simplify use.
2671         Suggested by Stefano Lattarini.
2672
2673         include-next, warnings: support older autoconf
2674         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
2675         AS_VAR_PUSHDEF in a way that works with older autoconf.
2676         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
2677         Reported by Daniel P. Berrange.
2678
2679 2011-07-25  Bruno Haible  <bruno@clisp.org>
2680
2681         fseek, ftell: Fix doc.
2682         * doc/posix-functions/fseek.texi: Reword statement about
2683         AC_SYS_LARGEFILE.
2684         * doc/posix-functions/ftell.texi: Likewise.
2685
2686 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2687             Bruno Haible  <bruno@clisp.org>
2688
2689         Add dependencies to the 'largefile' module.
2690         * modules/fopen (Depends-on): Add 'largefile'.
2691         * modules/freopen (Depends-on): Likewise.
2692         * modules/fseeko (Depends-on): Likewise.
2693         * modules/ftello (Depends-on): Likewise.
2694         * modules/glob (Depends-on): Likewise.
2695         * modules/lseek (Depends-on): Likewise.
2696         * modules/lstat (Depends-on): Likewise.
2697         * modules/mkostemp (Depends-on): Likewise.
2698         * modules/mkostemps (Depends-on): Likewise.
2699         * modules/mkstemp (Depends-on): Likewise.
2700         * modules/mkstemps (Depends-on): Likewise.
2701         * modules/open (Depends-on): Likewise.
2702         * modules/openat (Depends-on): Likewise.
2703         * modules/pread (Depends-on): Likewise.
2704         * modules/pwrite (Depends-on): Likewise.
2705         * modules/scandir (Depends-on): Likewise.
2706         * modules/stat (Depends-on): Likewise.
2707         * modules/tmpfile (Depends-on): Likewise.
2708         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
2709         since the containing module now depends on the largefile module.
2710         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
2711         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
2712         off_t is fixed by gnulib.
2713         * doc/posix-functions/freopen.texi: Likewise.
2714         * doc/posix-functions/fseeko.texi: Likewise.
2715         * doc/posix-functions/fstatat.texi: Likewise.
2716         * doc/posix-functions/ftello.texi: Likewise.
2717         * doc/posix-functions/glob.texi: Likewise.
2718         * doc/posix-functions/lseek.texi: Likewise.
2719         * doc/posix-functions/lstat.texi: Likewise.
2720         * doc/posix-functions/mkstemp.texi: Likewise.
2721         * doc/posix-functions/open.texi: Likewise.
2722         * doc/posix-functions/openat.texi: Likewise.
2723         * doc/posix-functions/pread.texi: Likewise.
2724         * doc/posix-functions/pwrite.texi: Likewise.
2725         * doc/posix-functions/scandir.texi: Likewise.
2726         * doc/posix-functions/stat.texi: Likewise.
2727         * doc/posix-functions/tmpfile.texi: Likewise.
2728         * doc/glibc-functions/mkostemp.texi: Likewise.
2729         * doc/glibc-functions/mkostemps.texi: Likewise.
2730         * doc/glibc-functions/mkstemps.texi: Likewise.
2731
2732 2011-07-25  Bruno Haible  <bruno@clisp.org>
2733
2734         fcntl: Move AC_LIBOBJ invocation to module description.
2735         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
2736         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
2737
2738         fcntl: Remove call-in from fchdir.m4.
2739         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
2740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
2741
2742         dup3: Remove potential call-in from fchdir.m4.
2743         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
2744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
2745
2746         dup2: Move AC_LIBOBJ invocation to module description.
2747         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
2748         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
2749         Don't invoke AC_LIBOBJ.
2750         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
2751
2752         dup2: Remove call-in from fchdir.m4.
2753         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
2754         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
2755
2756         fclose: Move AC_LIBOBJ invocation to module description.
2757         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
2758         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
2759         to 1.
2760         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
2761
2762         fclose: Remove call-in from close.m4.
2763         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
2764         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
2765
2766         close: Move AC_LIBOBJ invocation to module description.
2767         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
2768         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
2769         1.
2770         * modules/close (configure.ac): Invoke AC_LIBOBJ.
2771
2772         close: Remove call-in from fchdir.m4.
2773         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
2774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
2775
2776         open: Move AC_LIBOBJ invocation to module description.
2777         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
2778         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
2779         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
2780
2781         open: Remove call-in from fchdir.m4.
2782         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
2783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
2784
2785         fchdir: Start to remove gl_REPLACE_* idiom.
2786         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
2787         (gl_FUNC_FCHDIR): Invoke it.
2788
2789 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2790
2791         * lib/ftell.c (ftell): Comment out cast.
2792
2793         close: use gl_REPLACE_FCLOSE only if defined
2794         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2795         is defined.  The close module doesn't depend on the fclose module
2796         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2798         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2799
2800 2011-07-24  Jim Meyering  <meyering@redhat.com>
2801
2802         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2803         * tests/test-select.h (test_function): Declare as "static".
2804
2805 2011-07-24  Bruno Haible  <bruno@clisp.org>
2806
2807         doc: Mention the effects of AC_SYS_LARGEFILE.
2808         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2809         on this function.
2810         * doc/posix-functions/aio_error.texi: Likewise.
2811         * doc/posix-functions/aio_fsync.texi: Likewise.
2812         * doc/posix-functions/aio_read.texi: Likewise.
2813         * doc/posix-functions/aio_return.texi: Likewise.
2814         * doc/posix-functions/aio_suspend.texi: Likewise.
2815         * doc/posix-functions/aio_write.texi: Likewise.
2816         * doc/posix-functions/fgetpos.texi: Likewise.
2817         * doc/posix-functions/fopen.texi: Likewise.
2818         * doc/posix-functions/freopen.texi: Likewise.
2819         * doc/posix-functions/fsetpos.texi: Likewise.
2820         * doc/posix-functions/fstatvfs.texi: Likewise.
2821         * doc/posix-functions/ftruncate.texi: Likewise.
2822         * doc/posix-functions/ftw.texi: Likewise.
2823         * doc/posix-functions/getrlimit.texi: Likewise.
2824         * doc/posix-functions/glob.texi: Likewise.
2825         * doc/posix-functions/lio_listio.texi: Likewise.
2826         * doc/posix-functions/lockf.texi: Likewise.
2827         * doc/posix-functions/mkstemp.texi: Likewise.
2828         * doc/posix-functions/mmap.texi: Likewise.
2829         * doc/posix-functions/nftw.texi: Likewise.
2830         * doc/posix-functions/openat.texi: Likewise.
2831         * doc/posix-functions/opendir.texi: Likewise.
2832         * doc/posix-functions/posix_fadvise.texi: Likewise.
2833         * doc/posix-functions/posix_fallocate.texi: Likewise.
2834         * doc/posix-functions/pread.texi: Likewise.
2835         * doc/posix-functions/pwrite.texi: Likewise.
2836         * doc/posix-functions/readdir.texi: Likewise.
2837         * doc/posix-functions/readdir_r.texi: Likewise.
2838         * doc/posix-functions/rewinddir.texi: Likewise.
2839         * doc/posix-functions/scandir.texi: Likewise.
2840         * doc/posix-functions/seekdir.texi: Likewise.
2841         * doc/posix-functions/setrlimit.texi: Likewise.
2842         * doc/posix-functions/statvfs.texi: Likewise.
2843         * doc/posix-functions/telldir.texi: Likewise.
2844         * doc/posix-functions/tmpfile.texi: Likewise.
2845         * doc/posix-functions/truncate.texi: Likewise.
2846         * doc/glibc-functions/fallocate.texi: Likewise.
2847         * doc/glibc-functions/fstatfs.texi: Likewise.
2848         * doc/glibc-functions/fts_children.texi: Likewise.
2849         * doc/glibc-functions/fts_read.texi: Likewise.
2850         * doc/glibc-functions/getdirentries.texi: Likewise.
2851         * doc/glibc-functions/mkostemp.texi: Likewise.
2852         * doc/glibc-functions/mkostemps.texi: Likewise.
2853         * doc/glibc-functions/mkstemps.texi: Likewise.
2854         * doc/glibc-functions/preadv.texi: Likewise.
2855         * doc/glibc-functions/pwritev.texi: Likewise.
2856         * doc/glibc-functions/sendfile.texi: Likewise.
2857         * doc/glibc-functions/statfs.texi: Likewise.
2858
2859 2011-07-24  Bruno Haible  <bruno@clisp.org>
2860
2861         doc: Fix typo.
2862         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
2863
2864 2011-07-24  Bruno Haible  <bruno@clisp.org>
2865
2866         doc: Mention fsusage.
2867         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
2868
2869 2011-07-24  Bruno Haible  <bruno@clisp.org>
2870
2871         doc: Mention new glibc headers and functions.
2872         * doc/glibc-headers/gshadow.texi: New file.
2873         * doc/glibc-functions/endsgent.texi: New file.
2874         * doc/glibc-functions/fgetsgent.texi: New file.
2875         * doc/glibc-functions/fgetsgent_r.texi: New file.
2876         * doc/glibc-functions/getsgent.texi: New file.
2877         * doc/glibc-functions/getsgent_r.texi: New file.
2878         * doc/glibc-functions/getsgnam.texi: New file.
2879         * doc/glibc-functions/getsgnam_r.texi: New file.
2880         * doc/glibc-functions/putsgent.texi: New file.
2881         * doc/glibc-functions/setsgent.texi: New file.
2882         * doc/glibc-functions/sgetsgent.texi: New file.
2883         * doc/glibc-functions/sgetsgent_r.texi: New file.
2884         * doc/glibc-functions/malloc_info.texi: New file.
2885         * doc/glibc-functions/preadv.texi: New file.
2886         * doc/glibc-functions/pwritev.texi: New file.
2887         * doc/glibc-functions/register_printf_modifier.texi: New file.
2888         * doc/glibc-functions/register_printf_specifier.texi: New file.
2889         * doc/glibc-functions/register_printf_type.texi: New file.
2890         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2891         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2892         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2893         * doc/glibc-functions/pthread_getname_np.texi: New file.
2894         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2895         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2896         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2897         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2898         * doc/glibc-functions/pthread_setname_np.texi: New file.
2899         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2900         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2901         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2902         * doc/glibc-functions/qsort_r.texi: New file.
2903         * doc/glibc-functions/quick_exit.texi: New file.
2904         * doc/glibc-functions/syncfs.texi: New file.
2905         * doc/gnulib.texi: Include them.
2906         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2907         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2908         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2909         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2910         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2911         * doc/glibc-functions/execvpe.texi: Likewise.
2912
2913 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2914
2915         ftell: don't include <unistd.h>
2916         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2917         guaranteed to define off_t, and the ftell module depends on the
2918         stdio module.
2919
2920         ftell: do not assume wraparound signed arithmetic
2921         * lib/ftell.c: Include <limits.h>.
2922         (ftell): Don't assume wraparound signed arithmetic.
2923
2924 2011-07-24  Bruno Haible  <bruno@clisp.org>
2925
2926         close: No longer depend on module 'fclose'.
2927         * modules/close (Depends-on): Remove fclose.
2928         * NEWS: Mention the change.
2929         Suggested by Sam Steingold <sds@gnu.org>.
2930
2931 2011-07-24  Bruno Haible  <bruno@clisp.org>
2932
2933         fsusage: Enable large volume support on AIX >= 5.2.
2934         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2935         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2936         instead of STAT_STATVFS.
2937         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2938
2939         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2940         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2941         f_blocks field only on MacOS X.
2942
2943         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2945         * modules/fsusage (Depends-on): Add largefile.
2946
2947 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2948
2949         * README: Modernize discussion of signed integers.
2950         Assuming overflow wraparound is no longer safe.
2951         Mention ones' complement and signed magnitude.
2952
2953 2011-07-22  Bruno Haible  <bruno@clisp.org>
2954
2955         select tests, pselect tests: Refactor.
2956         * tests/test-select.h: New file, extracted from tests/test-select.c.
2957         (select_fn): New type.
2958         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2959         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2960         test_pipe): Add my_select argument.
2961         (test_function): Renamed from main. Add my_select argument.
2962         * tests/test-select.c: Move most code to tests/test-select.h. Include
2963         test-select.h.
2964         * modules/select-tests (Files): Add tests/test-select.h.
2965         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2966         (my_select, main): New functions.
2967         * modules/pselect-tests (Files): Add tests/test-select.h,
2968         tests/macros.h, tests/signature.h.
2969         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2970         (configure.ac): Check for <sys/wait.h>.
2971
2972 2011-07-22  Bruno Haible  <bruno@clisp.org>
2973
2974         sys_select tests: Check the signature of FD_*.
2975         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2976         signature tests from here...
2977         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2978         here.
2979         * modules/sys_select-tests (Files): Add tests/signature.h.
2980
2981 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2982
2983         largefile: new module, replacing large-inode
2984         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2985         * MODULES.html.sh: Add largefile, remove large-inode.
2986         * modules/largefile, m4/largefile.m4: New files.
2987         * modules/large-inode, m4/large-inode.m4: Remove.
2988
2989         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2990         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2991         implementations that use only 32 bits to count blocks.
2992         On typical hosts with 1024-byte blocks, this fails with file
2993         systems as small as 4 TiB.  Problem reported by Herb Wartens
2994         <http://debbugs.gnu.org/9140> and this should also fix a similar
2995         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2996
2997         large-inode: New module
2998         * MODULES.html.sh: Add it.
2999         * modules/large-inode, m4/large-inode.m4: New files.
3000
3001         extensions: Enable extensions on MacOS X 10.5 and later.
3002         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
3003
3004 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
3005
3006         file-has-acl: use acl_extended_file_nofollow if available
3007         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
3008         (acl_extended_file): New macro.
3009         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
3010         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
3011
3012 2011-07-21  Bruno Haible  <bruno@clisp.org>
3013
3014         Declare system functions in a way that works with C++.
3015         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
3016         declare fdopendir as extern "C".
3017         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
3018         declare frexpl as extern "C".
3019         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
3020         declare gai_strerror as extern "C".
3021         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
3022         programs, declare gai_strerror as extern "C".
3023         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
3024         declare getlogin_r as extern "C".
3025         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
3026         as extern "C".
3027         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
3028         declare ldexpl as extern "C".
3029         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
3030         as extern "C".
3031         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
3032         program, declare getmntinfo as extern "C".
3033         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
3034         stpncpy as extern "C".
3035         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
3036         program, declare __xpg_strerror_r as extern "C".
3037         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
3038         strndup as extern "C".
3039         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
3040         declare memset and bzero as extern "C".
3041         Reported by Sam Steingold <sds@gnu.org>.
3042
3043 2011-07-12  Jim Meyering  <meyering@redhat.com>
3044
3045         maint.mk: prohibit inclusion of "verify.h" without use
3046         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
3047
3048 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3049
3050         timer-time: A new module to check for timer_settime()
3051         * m4/timer_time.m4: Check for the posix function.
3052         * modules/timer-time: Add the new module.
3053         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
3054         Mention it.
3055
3056 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
3057             Bruno Haible  <bruno@clisp.org>
3058
3059         pthread_sigmask: assume POSIX threads if --avoid=threadlib
3060         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
3061         not defined, assume POSIX threads and look for pthread_sigmask in
3062         $LIBS, without changing $CPPFLAGS.
3063
3064 2011-07-19  Bruno Haible  <bruno@clisp.org>
3065
3066         strstr: Update cross-compilation guess.
3067         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
3068         CPUs, guess no, in view of glibc
3069         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
3070         Suggested by Eric Blake. Reported by Reuben Thomas.
3071
3072 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3073
3074         getopt-gnu: suppress core dumps from detection code
3075         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
3076         to suppress core dumps that may well occur on glibc systems.
3077         * modules/getopt-gnu: Depend on nocrash.
3078
3079 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
3080
3081         pthread_sigmask: ensure usleep is declared
3082         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
3083         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
3084
3085 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3086
3087         doc: Document NonStop portability issues.
3088         * doc/posix-functions/sigaction.texi (sigaction):
3089         * doc/posix-headers/signal.texi (signal.h):
3090         Document NonStop.  See Joachim Schmitz in
3091         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
3092
3093 2011-07-15  Bruno Haible  <bruno@clisp.org>
3094
3095         ffsl, ffsll: Avoid unportable behaviour.
3096         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
3097
3098 2011-07-15  Bruno Haible  <bruno@clisp.org>
3099
3100         ffs: More tests.
3101         * tests/test-ffs.c (NBITS): New macro.
3102         (main): Add more tests.
3103         * tests/test-ffsl.c (NBITS): New macro.
3104         (main): Add more tests.
3105         * tests/test-ffsll.c (NBITS): New macro.
3106         (main): Add more tests.
3107
3108 2011-07-15  Eric Blake  <eblake@redhat.com>
3109
3110         ffsl, ffsll: new modules
3111         * modules/ffsl: New file.
3112         * modules/ffsll: Likewise.
3113         * m4/ffsl.m4: Likewise.
3114         * m4/ffsll.m4: Likewise.
3115         * lib/ffsl.c: Likewise.
3116         * lib/ffsl.h: Likewise.
3117         * lib/ffsll.c: Likewise.
3118         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
3119         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
3120         * modules/string (Makefile.am): Substitute witnesses.
3121         * lib/strings.in.h (ffsl, ffsll): Declare.
3122         * modules/ffsl-tests: New test file.
3123         * modules/ffsll-tests: Likewise.
3124         * tests/test-ffsl.c: Likewise.
3125         * tests/test-ffsll.c: Likewise.
3126         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3127         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
3128         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
3129
3130         ffs: fix m4 prerequisite
3131         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
3132
3133         ffs: avoid undefined behavior
3134         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
3135         * tests/test-ffs.c (naive, main): Avoid signed shifts.
3136         Reported by Bruno Haible.
3137
3138 2011-07-12  Bruno Haible  <bruno@clisp.org>
3139
3140         pthread_sigmask: Rely on module 'threadlib'.
3141         * modules/pthread_sigmask (Depends-on): Add threadlib.
3142         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
3143         is defined.
3144
3145 2011-07-12  Bruno Haible  <bruno@clisp.org>
3146
3147         regex: Depend on module 'strcase'.
3148         * modules/regex (Depends-on): Add strcase, for strcasecmp().
3149
3150 2011-07-12  Jim Meyering  <meyering@redhat.com>
3151
3152         warn-on-use: fix typo in file name
3153         * modules/snippet/warn-on-use (Files): Correct file name:
3154         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
3155
3156 2011-07-12  Bruno Haible  <bruno@clisp.org>
3157
3158         strings: Document module.
3159         * doc/posix-headers/strings.texi: Mention module 'strings'.
3160
3161 2011-07-12  Bruno Haible  <bruno@clisp.org>
3162
3163         Rename module '_Noreturn' to 'snippet/_Noreturn'.
3164         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
3165         (Files, Makefile.am): Update.
3166         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
3167         * modules/stdlib (Depends-on): Update.
3168
3169 2011-07-12  Bruno Haible  <bruno@clisp.org>
3170
3171         * NEWS: Mention the changes.
3172
3173         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
3174         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
3175         (Files, Makefile.am): Update.
3176         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
3177         * modules/arpa_inet (Depends-on): Update.
3178         * modules/ctype (Depends-on): Update.
3179         * modules/dirent (Depends-on): Update.
3180         * modules/fcntl-h (Depends-on): Update.
3181         * modules/glob (Depends-on): Update.
3182         * modules/iconv-h (Depends-on): Update.
3183         * modules/inttypes-incomplete (Depends-on): Update.
3184         * modules/langinfo (Depends-on): Update.
3185         * modules/locale (Depends-on): Update.
3186         * modules/math (Depends-on): Update.
3187         * modules/netdb (Depends-on): Update.
3188         * modules/poll-h (Depends-on): Update.
3189         * modules/pty (Depends-on): Update.
3190         * modules/search (Depends-on): Update.
3191         * modules/signal (Depends-on): Update.
3192         * modules/spawn (Depends-on): Update.
3193         * modules/stdio (Depends-on): Update.
3194         * modules/stdlib (Depends-on): Update.
3195         * modules/string (Depends-on): Update.
3196         * modules/strings (Depends-on): Update.
3197         * modules/sys_file (Depends-on): Update.
3198         * modules/sys_ioctl (Depends-on): Update.
3199         * modules/sys_select (Depends-on): Update.
3200         * modules/sys_socket (Depends-on): Update.
3201         * modules/sys_stat (Depends-on): Update.
3202         * modules/sys_time (Depends-on): Update.
3203         * modules/sys_times (Depends-on): Update.
3204         * modules/sys_utsname (Depends-on): Update.
3205         * modules/sys_wait (Depends-on): Update.
3206         * modules/termios (Depends-on): Update.
3207         * modules/time (Depends-on): Update.
3208         * modules/unistd (Depends-on): Update.
3209         * modules/wchar (Depends-on): Update.
3210         * modules/wctype-h (Depends-on): Update.
3211         * MODULES.html.sh (Support for building libraries and executables):
3212         Update.
3213
3214         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
3215         * modules/snippet/unused-parameter: Renamed from
3216         modules/unused-parameter.
3217         (Files, Makefile.am): Update.
3218         * build-aux/snippet/unused-parameter.h: Renamed from
3219         build-aux/unused-parameter.h.
3220         * modules/selinux-h (Depends-on): Update.
3221         * modules/unistr/base (Depends-on): Update.
3222         * MODULES.html.sh (Core language properties): Update.
3223
3224         Rename module 'link-warning' to 'snippet/link-warning'.
3225         * modules/snippet/link-warning: Renamed from modules/link-warning.
3226         (Files, Makefile.am): Update.
3227         * build-aux/snippet/link-warning.h: Renamed from
3228         build-aux/link-warning.h.
3229         * MODULES.html.sh (Support for building libraries and executables):
3230         Update.
3231
3232         Rename module 'c++defs' to 'snippet/c++defs'.
3233         * modules/snippet/c++defs: Renamed from modules/c++defs.
3234         (Files, Makefile.am): Update.
3235         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
3236         * modules/arpa_inet (Depends-on): Update.
3237         * modules/ctype (Depends-on): Update.
3238         * modules/dirent (Depends-on): Update.
3239         * modules/fcntl-h (Depends-on): Update.
3240         * modules/glob (Depends-on): Update.
3241         * modules/iconv-h (Depends-on): Update.
3242         * modules/langinfo (Depends-on): Update.
3243         * modules/locale (Depends-on): Update.
3244         * modules/math (Depends-on): Update.
3245         * modules/netdb (Depends-on): Update.
3246         * modules/poll-h (Depends-on): Update.
3247         * modules/pty (Depends-on): Update.
3248         * modules/search (Depends-on): Update.
3249         * modules/signal (Depends-on): Update.
3250         * modules/spawn (Depends-on): Update.
3251         * modules/stdio (Depends-on): Update.
3252         * modules/stdlib (Depends-on): Update.
3253         * modules/string (Depends-on): Update.
3254         * modules/strings (Depends-on): Update.
3255         * modules/sys_ioctl (Depends-on): Update.
3256         * modules/sys_select (Depends-on): Update.
3257         * modules/sys_socket (Depends-on): Update.
3258         * modules/sys_stat (Depends-on): Update.
3259         * modules/sys_time (Depends-on): Update.
3260         * modules/sys_wait (Depends-on): Update.
3261         * modules/termios (Depends-on): Update.
3262         * modules/time (Depends-on): Update.
3263         * modules/unistd (Depends-on): Update.
3264         * modules/wchar (Depends-on): Update.
3265         * modules/wctype-h (Depends-on): Update.
3266
3267         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
3268         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
3269         (Files, Makefile.am): Update.
3270         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
3271         * modules/argv-iter (Depends-on): Update.
3272         * modules/arpa_inet (Depends-on): Update.
3273         * modules/dirent (Depends-on): Update.
3274         * modules/fcntl-h (Depends-on): Update.
3275         * modules/fnmatch (Depends-on): Update.
3276         * modules/getopt-posix (Depends-on): Update.
3277         * modules/glob (Depends-on): Update.
3278         * modules/iconv-h (Depends-on): Update.
3279         * modules/inttypes-incomplete (Depends-on): Update.
3280         * modules/locale (Depends-on): Update.
3281         * modules/math (Depends-on): Update.
3282         * modules/netdb (Depends-on): Update.
3283         * modules/search (Depends-on): Update.
3284         * modules/signal (Depends-on): Update.
3285         * modules/spawn (Depends-on): Update.
3286         * modules/stdio (Depends-on): Update.
3287         * modules/stdlib (Depends-on): Update.
3288         * modules/string (Depends-on): Update.
3289         * modules/strings (Depends-on): Update.
3290         * modules/sys_socket (Depends-on): Update.
3291         * modules/sys_stat (Depends-on): Update.
3292         * modules/sys_time (Depends-on): Update.
3293         * modules/sys_times (Depends-on): Update.
3294         * modules/sys_utsname (Depends-on): Update.
3295         * modules/time (Depends-on): Update.
3296         * modules/unistd (Depends-on): Update.
3297         * modules/wchar (Depends-on): Update.
3298         * MODULES.html.sh (Support for building libraries and executables):
3299         Update.
3300
3301 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3302
3303         Improvements on _Noreturn and related modules.
3304
3305         modules/_Exit-tests: test _Noreturn too
3306         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
3307         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
3308         (main): Use them.
3309
3310         stdnoreturn, stdnoreturn-tests: remove modules
3311         They're not needed here and a bit premature for use elsewhere.  See
3312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
3313         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3314         * tests/test-stdnoreturn.c: Remove files.
3315         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
3316         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
3317         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
3318         and using noreturn.
3319         * modules/openat, modules/sigpipe-die, modules/xalloc:
3320         * modules/xmemdup0, modules/xstrtol:
3321         Remove dependency on stdnoreturn.
3322
3323         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
3324         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
3325         Reparenthesize to avoid GCC warning.
3326         Support Microsoft's syntax.
3327         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
3328
3329         _Noreturn-tests: remove module
3330         * modules/_Noreturn-tests: Remove.
3331         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
3332         * tests/test-_Noreturn.c: Remove.
3333         * tests/test-stdnoreturn.c: Merge from the old
3334         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
3335
3336 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3337
3338         _Noreturn, stdnoreturn, and related modules.
3339
3340         * top/maint.mk: Adjust to new noreturn support.
3341         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
3342         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
3343
3344         xalloc: use stdnoreturn.h
3345         * lib/xalloc.h: Include <stdnoreturn.h>.
3346         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3347         * modules/xalloc (Depends-on): Add stdnoreturn.
3348
3349         xstrtol: use stdnoreturn.h
3350         * lib/xstrtol.h: Include <stdnoreturn.h>.
3351         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3352         * modules/xstrtol (Depends-on): Add stdnoreturn.
3353
3354         xmemdup0: use stdnoreturn.h
3355         * lib/xmemdup0.h: Include <stdnoreturn.h>.
3356         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3357         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
3358
3359         sigpipe-die: use stdnoreturn.h
3360         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
3361         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3362         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
3363
3364         openat: use stdnoreturn.h
3365         * lib/openat.h: Include <stdnoreturn.h>.
3366         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3367         * modules/openat (Depends-on): Add stdnoreturn.
3368
3369         * lib/openat-die.c (openat_save_fail): Modernize comment.
3370
3371         * lib/xalloc-die.c (xalloc_die): Modernize comment.
3372
3373         * lib/glthread/thread.h: Modernize comment.
3374
3375         obstack: use _Noreturn
3376         * lib/obstack.c (__attribute__): Remove macro.
3377         (print_and_abort): Use _Noreturn.
3378
3379         c-stack: use _Noreturn
3380         * lib/c-stack.c (die, overflow_handler, segv_handler):
3381         Use _Noreturn rather than __attribute__((noreturn)).
3382
3383         argmatch-tests, exclude_tests: use _Noreturn
3384         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
3385         Remove.
3386         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
3387
3388         stdlib: use _Noreturn
3389         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
3390         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
3391         * modules/stdlib (Depends-on): Add _Noreturn.
3392         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
3393
3394         stdnoreturn-tests: new module
3395         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
3396
3397         stdnoreturn: new module
3398         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
3399         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
3400
3401         _Noreturn-tests: new module
3402         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
3403
3404         _Noreturn: new module
3405         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
3406         New section, mentioning it.
3407         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
3408
3409         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
3410
3411 2011-07-11  Eric Blake  <eblake@redhat.com>
3412
3413         ffs: new module
3414         * modules/ffs: New file.
3415         * m4/ffs.m4: Likewise.
3416         * lib/ffs.c: Likewise.
3417         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
3418         * modules/strings (Makefile.am): Substitute witness.
3419         (Depends-on): Add c++defs.
3420         * lib/strings.in.h (ffs): Declare.
3421         * modules/ffs-tests: New test file.
3422         * tests/test-ffs.c: Test new module.
3423         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3424         * doc/posix-functions/ffs.texi (ffs): Likewise.
3425
3426         regex: avoid compiler warning
3427         * lib/regex.c (includes): Include <strings.h>, for use of
3428         strcasecmp in regcomp.c.
3429         Reported by Joachim Schmitz.
3430
3431 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3432
3433         stdint: respect system's intmax_t if INTMAX_MAX
3434         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
3435         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
3436         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
3437         long but int64_t is long long, and where we will clash with the
3438         system intmax_t if we override it.  See
3439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
3440         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
3441         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
3442         similarly for UINTMAX_C.
3443
3444 2011-07-08  Bruno Haible  <bruno@clisp.org>
3445
3446         pthread_sigmask tests: Avoid a compiler warning.
3447         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
3448         non-zero.
3449
3450         sigprocmask tests: A better way to avoid a compiler warning.
3451         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
3452         (main): Complain if system() returns non-zero.
3453         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
3454
3455 2011-07-08  Bruno Haible  <bruno@clisp.org>
3456
3457         pthread_sigmask: Work around IRIX bug.
3458         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
3459         bug.
3460         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
3461         there may be unblocked pending signals.
3462         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
3463
3464 2011-07-08  Bruno Haible  <bruno@clisp.org>
3465
3466         pthread_sigmask: Work around Cygwin bug.
3467         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
3468         bug.
3469         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
3470         the system's pthread_sigmask function.
3471         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
3472
3473 2011-07-08  Bruno Haible  <bruno@clisp.org>
3474
3475         pthread_sigmask: Work around bug in single-threaded implementation.
3476         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
3477         FreeBSD, HP-UX, Solaris bug.
3478         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
3479         * lib/pthread_sigmask.c: Include <stddef.h>.
3480         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
3481         the system's pthread_sigmask function.
3482         * modules/pthread_sigmask (configure.ac): Invoke
3483         gl_PREREQ_PTHREAD_SIGMASK.
3484         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
3485         HP-UX, Solaris.
3486
3487 2011-07-08  Eric Blake  <eblake@redhat.com>
3488
3489         test-sigprocmask: avoid compiler warning
3490         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
3491         * tests/test-sigprocmask.c (main): Use it to silence warning.
3492         Reported by Jim Meyering.
3493
3494         test-snprintf: avoid compiler warning
3495         * tests/test-snprintf.c (main): Avoid shadowed declaration.
3496         * tests/test-vsnprintf.c (main): Likewise.
3497         Reported by Jim Meyering.
3498
3499 2011-07-08  Bruno Haible  <bruno@clisp.org>
3500
3501         Tests for module 'pthread_sigmask'.
3502         * modules/pthread_sigmask-tests: New file.
3503         * tests/test-pthread_sigmask1.c: New file, based on
3504         tests/test-sigprocmask.c.
3505         * tests/test-pthread_sigmask2.c: New file.
3506
3507 2011-07-08  Jim Meyering  <meyering@redhat.com>
3508
3509         test-getopt.h: avoid warning about an unused variable
3510         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
3511
3512 2011-07-07  Jim Meyering  <meyering@redhat.com>
3513
3514         maint: reduce list of files exempt from sc_prohibit_leading_TABs
3515         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
3516         now that it no longer contains leading TABs.
3517         Remove unused "url=FIXME" statement.
3518
3519 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3520
3521         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
3522         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3523         When gl_THREADLIB is not in use, assume that the POSIX sematics
3524         are desired.  This is better for Emacs, which uses POSIX semantics
3525         on GNUish and/or POSIXish platforms, and does not use threads at
3526         all otherwise.
3527
3528         pthread_sigmask: fix typo when testing for libraries
3529         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3530         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
3531
3532 2011-07-08  Eric Blake  <eblake@redhat.com>
3533
3534         fts: introduce FTS_NOATIME
3535         * lib/fts_.h (FTS_NOATIME): New bit flag.
3536         (FTS_OPTIONMASK): Adjust.
3537         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
3538         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
3539
3540 2011-07-08  Bruno Haible  <bruno@clisp.org>
3541
3542         Tests for module 'thread'.
3543         * modules/thread-tests: New file.
3544         * tests/test-thread_self.c: New file.
3545         * tests/test-thread_create.cc: New file.
3546
3547 2011-07-08  Bruno Haible  <bruno@clisp.org>
3548
3549         thread: Avoid gcc warnings when using gl_thread_self().
3550         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
3551         'void *'.
3552         (gl_thread_self_pointer): Update.
3553
3554 2011-07-07  Bruno Haible  <bruno@clisp.org>
3555
3556         signal-c++-tests: Check declaration of pthread_sigmask.
3557         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
3558         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
3559         $(LIB_PTHREAD_SIGMASK).
3560
3561 2011-07-07  Bruno Haible  <bruno@clisp.org>
3562
3563         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
3564         * lib/signal.in.h (pthread_sigmask): Override if
3565         REPLACE_PTHREAD_SIGMASK is 1.
3566         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3567         REPLACE_PTHREAD_SIGMASK.
3568         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
3569         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
3570         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
3571         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3572         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
3573
3574 2011-07-07  Bruno Haible  <bruno@clisp.org>
3575
3576         pthread_sigmask: Ensure declaration in <signal.h>.
3577         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
3578         include <pthread.h>.
3579         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
3580         problem.
3581
3582 2011-07-07  Bruno Haible  <bruno@clisp.org>
3583
3584         pthread_sigmask: Document the module.
3585         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
3586
3587 2011-07-07  Bruno Haible  <bruno@clisp.org>
3588
3589         pthread_sigmask: Follow gnulib conventions.
3590         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
3591         gl_PTHREAD_SIGMASK.
3592         * modules/pthread_sigmask (configure.ac): Update.
3593
3594 2011-07-07  Bruno Haible  <bruno@clisp.org>
3595
3596         pthread_sigmask: Make declaration C++ safe.
3597         * lib/signal.in.h: In two special conditions, just do an #include_next.
3598         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3599         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
3600         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3601         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3602         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
3603         not REPLACE_PTHREAD_MASK.
3604         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
3605         not REPLACE_PTHREAD_MASK.
3606         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3607
3608 2011-07-07  Bruno Haible  <bruno@clisp.org>
3609
3610         pthread_sigmask: Fix return value.
3611         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
3612         * lib/pthread_sigmask.c: New file.
3613         * modules/pthread_sigmask (Files): Add it.
3614         (configure.ac): Invoke AC_LIBOBJ.
3615
3616 2011-07-07  Eric Blake  <eblake@redhat.com>
3617
3618         getopt: more portable argv creation
3619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
3620         const, use char arrays rather than strings.
3621         Suggested by Paul Eggert.
3622
3623 2011-07-07  Bruno Haible  <bruno@clisp.org>
3624
3625         Tests for module 'sigprocmask'.
3626         * modules/sigprocmask-tests: New file.
3627         * tests/test-sigprocmask.c: New file.
3628
3629 2011-07-07  Bruno Haible  <bruno@clisp.org>
3630
3631         float tests: Tweak.
3632         * tests/test-float.c (main): Tweak skip message.
3633
3634 2011-07-07  Eric Blake  <eblake@redhat.com>
3635
3636         getopt: avoid compiler warning during configure
3637         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
3638         assigning string literals to non-const pointer.
3639
3640         getopt-gnu: avoid crash in glibc getopt
3641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
3642         * tests/test-getopt.h (test_getopt): Enhance test.
3643         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3644         * doc/posix-functions/getopt.texi (getopt): Document it.
3645         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3646         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3647         Likewise.
3648
3649 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
3650
3651         getopt: handle W; without long options in getopt [BZ #12922]
3652         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
3653         but no long options are defined, just return 'W'.
3654
3655 2011-07-07  Bruno Haible  <bruno@clisp.org>
3656
3657         Avoid literal tabs.
3658         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
3659         variable containing a tab instead of a literal tab.
3660         Reported by Jim Meyering.
3661
3662 2011-07-07  Bruno Haible  <bruno@clisp.org>
3663
3664         Comments.
3665         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
3666
3667 2011-07-06  Bruno Haible  <bruno@clisp.org>
3668
3669         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
3670         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
3671         <winsock2.h>.
3672         (rpl_fd_isset, FD_ISSET): New definitions, copied from
3673         lib/sys_socket.in.h.
3674         (close, gethostname): Hide declarations from <winsock2.h>.
3675         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
3676         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
3677         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
3678         (select): Don't override if gnulib's <sys/select.h> was already
3679         included.
3680         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3681         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3682         setsockopt, shutdown, select): Tweak indentation.
3683
3684 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3685
3686         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
3687         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
3688         in an application that does not use the sys_select module.
3689
3690 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
3691
3692         poll: do not return 0 on timeout=-1
3693         * lib/poll.c: Loop with yield if no events occured
3694
3695 2011-07-06  Eric Blake  <eblake@redhat.com>
3696
3697         pthread_sigmask: always replace when not using pthread
3698         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
3699         replacement when using some threading other than pthread.  Fix
3700         logic bug.
3701
3702 2011-07-06  Bruno Haible  <bruno@clisp.org>
3703
3704         Comments.
3705         * m4/printf.m4: Update comments about mingw.
3706
3707 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3708
3709         sys_select: define sigset_t more portably
3710         * lib/sys_select.in.h: Always include <sys/types.h>, since
3711         we now need sigset_t and mingw defines it there.
3712         Include <signal.h> before split inclusion guard, to avoid
3713         mishaps on Solaris, whose <signal.h> eventually includes us.
3714         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
3715         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
3716         which come from ...
3717         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
3718         gl_CHECK_TYPE_SIGSET_T.
3719         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
3720         does the real work.
3721         * modules/sys_select (Depends-on): Add 'signal'.
3722
3723         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
3724         Suggested by Bruno Haible.
3725
3726         pselect: Use pthread_sigmask, not sigprocmask.
3727         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
3728         multithreaded apps better than sigprocmask does.
3729         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
3730         sigprocmask directly.
3731
3732 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3733
3734         * lib/pselect.c (pselect): Use plain name, without "rpl_".
3735         Don't #undef,  since we don't need any underlying pselect.
3736         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
3737         (Depends-on): Add select.
3738         (Link): Add $(LIBSOCKET).
3739         These changes suggested by Bruno Haible.
3740
3741         pselect: document better
3742         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3743         * doc/posix-functions/pselect.texi (pselect): Document new module.
3744
3745         pthread_sigmask: new module
3746         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3747         * doc/posix-functions/pthread_sigmask.texi: Document new module.
3748         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
3749         This is done only as a macro; I don't know how well that'll
3750         work for C++.  Move <sys/types.h> include before the include_next,
3751         to avoid mishap on Solaris.
3752         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
3753         * modules/signal (Makefile.am): Substitute the check's results.
3754         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
3755
3756         test-pselect: new module
3757         * modules/pselect-tests, tests/test-pselect.c: New files.
3758         * tests/test-select.c, tests/test-sys_select-c++.cc:
3759         If TEST_PSELECT is defined, test pselect instead of testing select.
3760
3761         * tests/test-sys_select.c (sigset_t): Test for it, too.
3762         Suggested by Bruno Haible.
3763
3764 2011-07-05  Eric Blake  <eblake@redhat.com>
3765
3766         snprintf: guarantee %1$d, for libintl
3767         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
3768         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3769         * doc/posix-functions/snprintf.texi (snprintf): Update.
3770         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3771         * tests/test-snprintf.c (main): Enhance test.
3772         * tests/test-vsnprintf.c (main): Likewise.
3773
3774 2011-07-05  Jim Meyering  <meyering@redhat.com>
3775
3776         maint: exempt stdio-read.c and stdio-write.c from the cppi check
3777         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
3778         per Bruno's request, to accommodate this idiom (no space after "#")
3779         even when the function is inside an #if block:
3780         char *
3781         gets (char *s)
3782         #undef gets
3783         {
3784           ...
3785         }
3786
3787 2011-07-04  Jim Meyering  <meyering@redhat.com>
3788
3789         maint: indent with spaces, not TABs, and add a rule to check this
3790         * tests/test-userspec.c: Indent with spaces, not TABs.
3791         * tests/test-argp.c: Likewise.
3792         * tests/test-c-stack2.sh: Likewise.
3793         * tests/test-parse-duration.sh: Likewise
3794         * m4/strtod.m4: Likewise.
3795         * m4/alloca.m4: Likewise.
3796         * m4/pselect.m4: Likewise.
3797         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3798
3799 2011-07-03  Jim Meyering  <meyering@redhat.com>
3800
3801         maint.mk: correct omissions in prohibit_argmatch_without_use check
3802         This rule would mistakenly report that argmatch.h is included without
3803         use even when both the argmatch and invalid_arg macro were used.
3804         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3805         of argmatch and invalid_arg.
3806
3807 2011-07-03  Bruno Haible  <bruno@clisp.org>
3808
3809         Comments about EINTR.
3810         * lib/safe-read.h: Explain the purpose of this module.
3811         * lib/safe-write.h: Likewise.
3812         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3813         module.
3814         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3815         module.
3816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3817
3818 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3819
3820         xnanosleep: Rewrite to use new dtotimespec module.
3821         It has the conversion code that used to be in xnanosleep.
3822         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
3823         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
3824         (TIME_T_MAX): Remove.
3825         (xnanosleep): Rewrite in terms of dtotimespec.
3826         * modules/xnanosleep (Depends-on): Add dtotimespec.
3827         Remove intprops, stdbool.
3828
3829         timespec-add, timespec-sub: new modules
3830         * lib/timespec.h (timespec_add, timespec_sub): New decls.
3831         * lib/timespec-add.c, lib/timespec-sub.c:
3832         * modules/timespec-add, modules/timespec-sub: New files.
3833
3834         dtotimespec: new module
3835         * lib/timespec.h (dtotimespec): New decl.
3836         * lib/dtotimespec.c, modules/dtotimespec: New files.
3837
3838         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
3839
3840         pselect: new module
3841         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
3842         (pselect): New decls.
3843         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
3844         since the standard pselect decl uses 'restrict'.
3845         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
3846         HAVE_PSELECT, REPLACE_PSELECT.
3847         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
3848         HAVE_PSELECT, REPLACE_PSELECT.
3849         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
3850
3851         sys_select: don't depend on sys_socket
3852         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
3853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
3854         This fix works on GNU and GNU-like platforms, but has not been tested
3855         on native Windows.
3856         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
3857         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
3858         gl_HEADER_SYS_SOCKET.
3859         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
3860         gl_PREREQ_SYS_H_WINSOCK2.
3861
3862 2011-06-29  Eric Blake  <eblake@redhat.com>
3863
3864         pipe2: fix C89 compile problem
3865         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
3866         Reported by Bruno Haible.
3867
3868         pipe, pipe2: don't corrupt fd on error
3869         * lib/pipe.c (pipe): Leave fd unchanged on error.
3870         * lib/pipe2.c (pipe2): Likewise.
3871         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
3872         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3873
3874 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
3875
3876         mmap-anon: do not use regular expressions inadvertently
3877         * m4/mmap-anon.m4: Remove trailing period from strings sought
3878         in the output.
3879
3880 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3881
3882         nanosleep: fix integer overflow problem
3883         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3884         arithmetic wraps around on overflow.
3885
3886         nanosleep: simplify carrying
3887         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3888         first call to the underyling nanosleep, not for the last one.
3889         This doesn't fix any bugs, but it simplifies the computation of
3890         the remaining delay.  Found while auditing integer overflow issues.
3891
3892         dup2: remove test for existence of fcntl
3893         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3894         "#if HAVE_FCNTL", in the configure-time test program.
3895         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3896         and therefore speeds up "configure" a bit.  Found while
3897         adding the dup2 module to Emacs.
3898
3899 2011-06-24  Eric Blake  <eblake@redhat.com>
3900
3901         maint.mk: enhance useless header checks
3902         * top/maint.mk (_sc_header_without_use): Check both include
3903         styles.
3904         (sc_prohibit_assert_without_use)
3905         (sc_prohibit_close_stream_without_use)
3906         (sc_prohibit_getopt_without_use)
3907         (sc_prohibit_quotearg_without_use)
3908         (sc_prohibit_quote_without_use)
3909         (sc_prohibit_long_options_without_use)
3910         (sc_prohibit_inttostr_without_use)
3911         (sc_prohibit_ignore_value_without_use)
3912         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3913         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3914         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3915         (sc_prohibit_hash_pjw_without_use)
3916         (sc_prohibit_safe_read_without_use)
3917         (sc_prohibit_argmatch_without_use)
3918         (sc_prohibit_canonicalize_without_use)
3919         (sc_prohibit_root_dev_ino_without_use)
3920         (sc_prohibit_openat_without_use)
3921         (sc_prohibit_c_ctype_without_use)
3922         (sc_prohibit_signal_without_use)
3923         (sc_prohibit_stdio--_without_use)
3924         (sc_prohibit_stdio-safer_without_use)
3925         (sc_prohibit_strings_without_use)
3926         (sc_prohibit_intprops_without_use)
3927         (sc_prohibit_stddef_without_use)
3928         (sc_prohibit_xfreopen_without_use): Update clients.
3929
3930 2011-06-24  Jim Meyering  <meyering@redhat.com>
3931
3932         syntax-check: keep one maint.mk rule in sync with its header
3933         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3934         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3935         I prefer to avoid temporary files here, so use <(...), but that
3936         is not supported by /bin/sh, so...
3937         (SHELL): Define to /bin/bash.
3938
3939 2011-06-24  Eric Blake  <eblake@redhat.com>
3940
3941         maint.mk: update sc_prohibit_intprops_without_use
3942         * top/maint.mk (_intprops_names): Match recent changes.
3943
3944 2011-06-24  Bruno Haible  <bruno@clisp.org>
3945
3946         strerror-override: No-op tweak.
3947         * lib/strerror-override.h (strerror_override): Reorder conditions,
3948         for consistency with lib/strerror-override.c.
3949
3950 2011-06-23  Eric Blake  <eblake@redhat.com>
3951
3952         maint.mk: test further PATH_MAX issues
3953         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3954         (sc_prohibit_path_max_allocation): ...and also test alloca.
3955         Suggested by Jim Meyering.
3956
3957 2011-06-22  Eric Blake  <eblake@redhat.com>
3958
3959         maint.mk: add syntax-check to avoid char[PATH_MAX]
3960         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3961
3962         stat: be robust to PATH_MAX definition
3963         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3964         * modules/stat (Depends-on): Add verify.
3965
3966         link: work around IRIX bug
3967         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3968         * lib/link.c (rpl_link): Work around it.
3969         * tests/test-link.h (test_link): Enhance test.
3970         * doc/posix-functions/link.texi (link): Document the bug.
3971
3972         getopt: silence clang warning
3973         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3974         dereference.
3975         Reported by Gustavo Martin Domato.
3976
3977 2011-06-22  Jim Meyering  <meyering@redhat.com>
3978
3979         bootstrap: do not insert a blank line into each .gitignore file
3980         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3981
3982 2011-06-21  Eric Blake  <eblake@redhat.com>
3983
3984         perror: test for output mismatch
3985         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3986         perror on IRIX.
3987
3988         strerror_r: fix OpenBSD behavior on out-of-range
3989         * lib/strerror_r.c (strerror_r): Always use maximal string.
3990         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3991
3992         strerror_r: fix OpenBSD behavior on 0
3993         * lib/strerror-override.c (strerror_override): Also override 0
3994         when needed.
3995         * lib/strerror-override.h (strerror_override): Likewise.
3996         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3997         earlier.
3998         * lib/strerror_r.c (strerror_r): Likewise.
3999         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
4000         behavior...
4001         (gl_FUNC_STRERROR_0): ...into new macro.
4002         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
4003         is overridden.
4004         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
4005         * modules/strerror-override (Files): Add strerror.m4.
4006         (configure.ac): Also provide override for 0 when needed.
4007         * doc/posix-functions/strerror.texi (strerror): Document this.
4008         * doc/posix-functions/perror.texi (perror): Likewise.
4009
4010         perror: adjust array size
4011         * modules/perror (Depends-on): Add strerror-override.
4012         * lib/perror.c (perror): Use it to avoid magic number.
4013
4014         strerror-override: reduce size
4015         * lib/strerror-override.c (strerror_override): Use fewer lines.
4016
4017 2011-06-20  Bruno Haible  <bruno@clisp.org>
4018
4019         pathmax: Ensure correct value for PATH_MAX on HP-UX.
4020         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
4021
4022 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4023
4024         alloca: port to compilers that can optimize like GCC 4.6.0
4025         * lib/alloca.c (find_stack_direction): New signature, taken from
4026         Autoconf git.  This works with GCC 4.6.0.  This code should never
4027         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
4028         be used with other compilers that optimize as well as GCC 4.6.0 does.
4029         (alloca): Adjust to new signature.
4030         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
4031         New macro, which patches Autoconf in a similar way.
4032
4033         c-stack: stop worrying about stack direction
4034         * lib/c-stack.c (find_stack_direction): Remove.
4035         (segv_handler): Don't worry about stack direction growth, as it's
4036         too much of a pain to configure this correctly, given how compilers
4037         are optimizing-away our stack-growth detection code.  Instead, assume
4038         that any access to just before or just after the stack is OK.
4039         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
4040         Don't require AC_FUNC_ALLOCA; no longer needed.
4041
4042 2011-06-20  Eric Blake  <eblake@redhat.com>
4043
4044         test-stat: don't allocate PATH_MAX bytes
4045         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
4046         PATH_MAX-sized buffer.
4047         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
4048         * modules/stat-tests (Depends-on): Likewise.
4049         * tests/test-fstatat.c (includes): Drop pathmax.h.
4050         * tests/test-stat.c (includes): Likewise.
4051         Reported by Bruno Haible.
4052
4053 2011-06-20  Bruno Haible  <bruno@clisp.org>
4054
4055         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
4056         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
4057         * lib/float.c: New file.
4058         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
4059         REPLACE_FLOAT_LDBL.
4060         * modules/float (Files): Add lib/float.c.
4061         (configure.ac): Invoke AC_LIBOBJ.
4062         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
4063
4064 2011-06-20  Bruno Haible  <bruno@clisp.org>
4065
4066         Tests for module 'float'.
4067         * modules/float-tests: New file.
4068         * tests/test-float.c: New file.
4069
4070 2011-06-19  Bruno Haible  <bruno@clisp.org>
4071
4072         isinf: Coding style.
4073         * lib/isinf.c: Use GNU coding style.
4074
4075 2011-06-19  Bruno Haible  <bruno@clisp.org>
4076
4077         linkat test: Avoid test failure on AIX 7.1.
4078         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
4079         * tests/test-link.h (test_link): Likewise.
4080
4081 2011-06-19  Bruno Haible  <bruno@clisp.org>
4082
4083         pread test: Avoid test failure on OpenBSD 4.9.
4084         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
4085
4086 2011-06-19  Bruno Haible  <bruno@clisp.org>
4087
4088         sprintf-posix: Fix test failure on AIX 7.1.
4089         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
4090         * doc/posix-functions/dprintf.texi: Mention limited precision problem
4091         on AIX.
4092         * doc/posix-functions/fprintf.texi: Likewise.
4093         * doc/posix-functions/printf.texi: Likewise.
4094         * doc/posix-functions/snprintf.texi: Likewise.
4095         * doc/posix-functions/sprintf.texi: Likewise.
4096         * doc/posix-functions/vdprintf.texi: Likewise.
4097         * doc/posix-functions/vfprintf.texi: Likewise.
4098         * doc/posix-functions/vprintf.texi: Likewise.
4099         * doc/posix-functions/vsnprintf.texi: Likewise.
4100         * doc/posix-functions/vsprintf.texi: Likewise.
4101
4102 2011-06-19  Bruno Haible  <bruno@clisp.org>
4103
4104         roundl-ieee: Fix test failure on AIX 7.1.
4105         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
4106         * doc/posix-functions/roundl.texi: Mention problem with negative
4107         arguments.
4108
4109 2011-06-19  Bruno Haible  <bruno@clisp.org>
4110
4111         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
4112         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
4113         * doc/posix-functions/round.texi: Mention problem with negative
4114         arguments.
4115         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
4116
4117 2011-06-19  Bruno Haible  <bruno@clisp.org>
4118
4119         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
4120         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
4121         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
4122         * doc/posix-functions/roundf.texi: Mention problem with negative
4123         arguments.
4124         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
4125
4126 2011-06-19  Bruno Haible  <bruno@clisp.org>
4127
4128         ceilf-ieee: Work around bug on MacOS X 10.5.
4129         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
4130
4131         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
4132         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
4133         IEEE compliant, avoid compiler optimizations.
4134         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
4135         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4136         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
4137         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4138         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4139         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4140         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4141         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4142         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4143         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4144
4145 2011-06-19  Bruno Haible  <bruno@clisp.org>
4146
4147         ceilf-ieee: Work around bug on AIX 7.1.
4148         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
4149         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
4150
4151 2011-06-19  Bruno Haible  <bruno@clisp.org>
4152
4153         ceil-ieee: Work around bug on AIX 7.1.
4154         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
4155         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
4156
4157 2011-06-18  Bruno Haible  <bruno@clisp.org>
4158
4159         fsync test: Avoid test failure on MacOS X and AIX.
4160         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
4161         EINVAL.
4162
4163 2011-06-18  Bruno Haible  <bruno@clisp.org>
4164
4165         openat, fdopendir tests: Fix link errors.
4166         * modules/openat-tests (Depends-on): Add progname.
4167         * modules/fdopendir-tests (Depends-on): Likewise.
4168         * tests/test-fchownat.c: Include progname.h.
4169         (main): Call set_program_name.
4170         * tests/test-fstatat.c: Include progname.h.
4171         (main): Call set_program_name.
4172         * tests/test-mkdirat.c: Include progname.h.
4173         (main): Call set_program_name.
4174         * tests/test-openat.c: Include progname.h.
4175         (main): Call set_program_name.
4176         * tests/test-unlinkat.c: Include progname.h.
4177         (main): Call set_program_name.
4178         * tests/test-fdopendir.c: Include progname.h.
4179         (main): Call set_program_name.
4180
4181 2011-06-18  Bruno Haible  <bruno@clisp.org>
4182
4183         Doc update.
4184         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
4185         HP-UX.
4186         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
4187
4188 2011-06-18  Bruno Haible  <bruno@clisp.org>
4189
4190         getcwd tests: Avoid compilation error on HP-UX 11.31.
4191         * modules/getcwd-tests (Depends-on): Add pathmax.
4192         * tests/test-getcwd.c: Include pathmax.h.
4193
4194 2011-06-18  Bruno Haible  <bruno@clisp.org>
4195
4196         isfinite, isinf: Fix link error on AIX 6 and 7.
4197         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
4198         needed, also test the macro with a 'float' argument.
4199         * m4/isinf.m4 (gl_ISINF): Likewise.
4200
4201 2011-06-18  Bruno Haible  <bruno@clisp.org>
4202
4203         getloadavg: Don't clobber LIBS. Regression from previous commit.
4204         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
4205         AC_CHECK_LIB from here...
4206         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
4207         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
4208         gl_func_getloadavg_done.
4209         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4210
4211 2011-06-18  Bruno Haible  <bruno@clisp.org>
4212
4213         clean-temp: Improve documentation.
4214         * lib/clean-temp.h: Explain better how to use this module.
4215         Reported by John Darrington <john@darrington.wattle.id.au>.
4216
4217 2011-06-17  Bruno Haible  <bruno@clisp.org>
4218
4219         pread, pwrite: Avoid cc warning on AIX.
4220         * lib/unistd.in.h (pread): Undefine before defining as a macro.
4221         (pwrite): Likewise.
4222
4223 2011-06-17  Bruno Haible  <bruno@clisp.org>
4224
4225         spawn-pipe tests: Fix link error.
4226         * tests/test-spawn-pipe-child.c: Undefine fprintf.
4227         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4228
4229 2011-06-17  Bruno Haible  <bruno@clisp.org>
4230
4231         Tests: Remove unnecessary dependency.
4232         * modules/canonicalize-tests (Depends-on): Remove progname.
4233         * modules/chown-tests (Depends-on): Likewise.
4234         * modules/dirname-tests (Depends-on): Likewise.
4235         * modules/fdopendir-tests (Depends-on): Likewise.
4236         * modules/fdutimensat-tests (Depends-on): Likewise.
4237         * modules/hash-tests (Depends-on): Likewise.
4238         * modules/lchown-tests (Depends-on): Likewise.
4239         * modules/linkat-tests (Depends-on): Likewise.
4240         * modules/renameat-tests (Depends-on): Likewise.
4241         * modules/spawn-pipe-tests (Depends-on): Likewise.
4242         * modules/utimensat-tests (Depends-on): Likewise.
4243
4244 2011-06-17  Bruno Haible  <bruno@clisp.org>
4245
4246         spawn-pipe tests: Fix link error.
4247         * tests/test-spawn-pipe-child.c: Undefine fflush.
4248
4249 2011-06-17  Bruno Haible  <bruno@clisp.org>
4250
4251         Fix tests link errors.
4252         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
4253         * modules/chown-tests (Makefile.am): Don't link test-chown with
4254         LIBINTL.
4255         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
4256         LIBINTL.
4257         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
4258         LIBINTL.
4259         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
4260         LIBINTL.
4261
4262 2011-06-16  Bruno Haible  <bruno@clisp.org>
4263
4264         crypto/gc-sha1: Fix recent regression.
4265         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
4266         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
4267
4268         crypto/gc-md5: Fix recent regression.
4269         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
4270
4271         crypto/gc-md4: Fix recent regression.
4272         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
4273         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
4274
4275         crypto/gc-arctwo: Fix recent regression.
4276         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
4277         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
4278
4279         crypto/gc-rijndael: Fix recent regression.
4280         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
4281         (configure.ac): Invoke AC_LIBOBJ here.
4282         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
4283         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4284
4285         crypto/gc-hmac-sha1: Fix recent regression.
4286         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
4287         (configure.ac): Invoke AC_LIBOBJ here.
4288         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
4289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4290
4291         crypto/gc-hmac-md5: Fix recent regression.
4292         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
4293         (configure.ac): Invoke AC_LIBOBJ here.
4294         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
4295         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4296
4297         crypto/gc-des: Fix recent regression.
4298         * modules/crypto/gc-des (Files): Remove m4/des.m4.
4299         (configure.ac): Invoke AC_LIBOBJ here.
4300         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
4301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4302
4303         crypto/gc-arcfour: Fix recent regression.
4304         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
4305         (configure.ac): Invoke AC_LIBOBJ here.
4306         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
4307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4308
4309 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
4310
4311         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
4312         After the 2011-05-21 change, this macro requires
4313         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
4314         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4315
4316 2011-06-16  Bruno Haible  <bruno@clisp.org>
4317
4318         fprintftime: Move AC_LIBOBJ invocations to module description.
4319         * m4/fprintftime.m4: Remove file.
4320         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
4321         (configure.ac): Remove gl_FPRINTFTIME call.
4322         (Makefile.am): Augment lib_SOURCES.
4323         Reported by Jim Meyering.
4324
4325 2011-06-16  Bruno Haible  <bruno@clisp.org>
4326
4327         tmpfile-safer: Finish 2011-05-23 commit.
4328         * m4/stdio-safer.m4: Really remove file.
4329         Reported by Jim Meyering.
4330
4331 2011-06-16  Bruno Haible  <bruno@clisp.org>
4332
4333         syntax-check: Fix typo.
4334         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
4335         printf-posix.m4.
4336         Reported by Jim Meyering.
4337
4338 2011-06-13  Jim Meyering  <meyering@redhat.com>
4339
4340         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
4341         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
4342
4343 2011-05-23  Bruno Haible  <bruno@clisp.org>
4344
4345         yesno: Move AC_LIBOBJ invocations to module description.
4346         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
4347         * modules/yesno (Makefile.am): Augment lib_SOURCES.
4348
4349 2011-05-23  Bruno Haible  <bruno@clisp.org>
4350
4351         xstrtol: Move AC_LIBOBJ invocations to module description.
4352         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
4353         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
4354
4355 2011-05-23  Bruno Haible  <bruno@clisp.org>
4356
4357         xstrtold: Move AC_LIBOBJ invocations to module description.
4358         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
4359         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
4360
4361 2011-05-23  Bruno Haible  <bruno@clisp.org>
4362
4363         xstrtod: Move AC_LIBOBJ invocations to module description.
4364         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
4365         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
4366
4367 2011-05-23  Bruno Haible  <bruno@clisp.org>
4368
4369         xnanosleep: Move AC_LIBOBJ invocations to module description.
4370         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
4371         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
4372
4373 2011-05-23  Bruno Haible  <bruno@clisp.org>
4374
4375         xgetcwd: Move AC_LIBOBJ invocations to module description.
4376         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
4377         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
4378
4379 2011-05-23  Bruno Haible  <bruno@clisp.org>
4380
4381         xalloc: Move AC_LIBOBJ invocations to module description.
4382         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
4383         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
4384
4385 2011-05-23  Bruno Haible  <bruno@clisp.org>
4386
4387         write-any-file: Move AC_LIBOBJ invocations to module description.
4388         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
4389         invocation.
4390         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
4391
4392 2011-05-23  Bruno Haible  <bruno@clisp.org>
4393
4394         utimens: Move AC_LIBOBJ invocations to module description.
4395         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
4396         * modules/utimens (Makefile.am): Augment lib_SOURCES.
4397
4398 2011-05-23  Bruno Haible  <bruno@clisp.org>
4399
4400         utimecmp: Move AC_LIBOBJ invocations to module description.
4401         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
4402         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
4403
4404 2011-05-23  Bruno Haible  <bruno@clisp.org>
4405
4406         userspec: Move AC_LIBOBJ invocations to module description.
4407         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
4408         * modules/userspec (Makefile.am): Augment lib_SOURCES.
4409
4410 2011-05-23  Bruno Haible  <bruno@clisp.org>
4411
4412         unlinkdir: Move AC_LIBOBJ invocations to module description.
4413         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
4414         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
4415
4416 2011-05-23  Bruno Haible  <bruno@clisp.org>
4417
4418         unistd-safer: Move AC_LIBOBJ invocations to module description.
4419         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
4420         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
4421
4422 2011-05-23  Bruno Haible  <bruno@clisp.org>
4423
4424         tempname: Move AC_LIBOBJ invocations to module description.
4425         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
4426         * modules/tempname (Makefile.am): Augment lib_SOURCES.
4427
4428 2011-05-23  Bruno Haible  <bruno@clisp.org>
4429
4430         strftime: Move AC_LIBOBJ invocations to module description.
4431         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
4432         * modules/strftime (Makefile.am): Augment lib_SOURCES.
4433
4434 2011-05-23  Bruno Haible  <bruno@clisp.org>
4435
4436         stdlib-safer: Move AC_LIBOBJ invocations to module description.
4437         * m4/stdlib-safer.m4: Remove file.
4438         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
4439         (configure.ac): Remove gl_STDLIB_SAFER call.
4440         (Makefile.am): Augment lib_SOURCES.
4441
4442 2011-05-23  Bruno Haible  <bruno@clisp.org>
4443
4444         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
4445         * m4/stdio-safer.m4: Remove file.
4446         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
4447         (configure.ac): Remove gl_TMPFILE_SAFER call.
4448         (Makefile.am): Augment lib_SOURCES.
4449
4450 2011-05-23  Bruno Haible  <bruno@clisp.org>
4451
4452         popen-safer: Move AC_LIBOBJ invocations to module description.
4453         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
4454         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
4455         (configure.ac): Remove gl_POPEN_SAFER call.
4456         (Makefile.am): Augment lib_SOURCES.
4457
4458 2011-05-23  Bruno Haible  <bruno@clisp.org>
4459
4460         freopen-safer: Move AC_LIBOBJ invocations to module description.
4461         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
4462         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
4463         (configure.ac): Remove gl_FREOPEN_SAFER call.
4464         (Makefile.am): Augment lib_SOURCES.
4465
4466 2011-05-23  Bruno Haible  <bruno@clisp.org>
4467
4468         fopen-safer: Move AC_LIBOBJ invocations to module description.
4469         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
4470         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
4471         (configure.ac): Remove gl_FOPEN_SAFER call.
4472         (Makefile.am): Augment lib_SOURCES.
4473
4474 2011-05-23  Bruno Haible  <bruno@clisp.org>
4475
4476         crypto/sha512: Move AC_LIBOBJ invocations to module description.
4477         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
4478         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
4479
4480 2011-05-23  Bruno Haible  <bruno@clisp.org>
4481
4482         crypto/sha256: Move AC_LIBOBJ invocations to module description.
4483         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
4484         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
4485
4486 2011-05-23  Bruno Haible  <bruno@clisp.org>
4487
4488         crypto/sha1: Move AC_LIBOBJ invocations to module description.
4489         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
4490         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
4491
4492 2011-05-23  Bruno Haible  <bruno@clisp.org>
4493
4494         settime: Move AC_LIBOBJ invocations to module description.
4495         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
4496         * modules/settime (Makefile.am): Augment lib_SOURCES.
4497
4498 2011-05-23  Bruno Haible  <bruno@clisp.org>
4499
4500         savedir: Move AC_LIBOBJ invocations to module description.
4501         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
4502         * modules/savedir (Makefile.am): Augment lib_SOURCES.
4503
4504 2011-05-23  Bruno Haible  <bruno@clisp.org>
4505
4506         save-cwd: Move AC_LIBOBJ invocations to module description.
4507         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
4508         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
4509
4510 2011-05-23  Bruno Haible  <bruno@clisp.org>
4511
4512         same: Move AC_LIBOBJ invocations to module description.
4513         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
4514         * modules/same (Makefile.am): Augment lib_SOURCES.
4515
4516 2011-05-23  Bruno Haible  <bruno@clisp.org>
4517
4518         safe-write: Move AC_LIBOBJ invocations to module description.
4519         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
4520         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
4521         instead of gl_SAFE_WRITE.
4522         (Makefile.am): Augment lib_SOURCES.
4523
4524 2011-05-23  Bruno Haible  <bruno@clisp.org>
4525
4526         safe-read: Move AC_LIBOBJ invocations to module description.
4527         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
4528         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
4529         of gl_SAFE_READ.
4530         (Makefile.am): Augment lib_SOURCES.
4531
4532 2011-05-23  Bruno Haible  <bruno@clisp.org>
4533
4534         safe-alloc: Move AC_LIBOBJ invocations to module description.
4535         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
4536         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
4537
4538 2011-05-23  Bruno Haible  <bruno@clisp.org>
4539
4540         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
4541         * m4/rijndael.m4: Remove file.
4542         * modules/crypto/rijndael (Files): Remove it.
4543         (configure.ac): Remove gl_RIJNDAEL call.
4544         (Makefile.am): Augment lib_SOURCES.
4545
4546 2011-05-23  Bruno Haible  <bruno@clisp.org>
4547
4548         readtokens: Move AC_LIBOBJ invocations to module description.
4549         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
4550         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
4551
4552 2011-05-23  Bruno Haible  <bruno@clisp.org>
4553
4554         read-file: Move AC_LIBOBJ invocations to module description.
4555         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
4556         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
4557         of gl_FUNC_READ_FILE.
4558         (Makefile.am): Augment lib_SOURCES.
4559
4560 2011-05-23  Bruno Haible  <bruno@clisp.org>
4561
4562         quotearg: Move AC_LIBOBJ invocations to module description.
4563         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
4564         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
4565
4566 2011-05-23  Bruno Haible  <bruno@clisp.org>
4567
4568         quote: Move AC_LIBOBJ invocations to module description.
4569         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
4570         * modules/quote (Makefile.am): Augment lib_SOURCES.
4571
4572 2011-05-23  Bruno Haible  <bruno@clisp.org>
4573
4574         posixver: Move AC_LIBOBJ invocations to module description.
4575         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
4576         * modules/posixver (Makefile.am): Augment lib_SOURCES.
4577
4578 2011-05-23  Bruno Haible  <bruno@clisp.org>
4579
4580         posixtm: Move AC_LIBOBJ invocations to module description.
4581         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
4582         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
4583
4584 2011-05-23  Bruno Haible  <bruno@clisp.org>
4585
4586         physmem: Move AC_LIBOBJ invocations to module description.
4587         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
4588         * modules/physmem (Makefile.am): Augment lib_SOURCES.
4589
4590 2011-05-23  Bruno Haible  <bruno@clisp.org>
4591
4592         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
4593         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
4594         invocation.
4595         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
4596
4597 2011-05-23  Bruno Haible  <bruno@clisp.org>
4598
4599         mpsort: Move AC_LIBOBJ invocations to module description.
4600         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
4601         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
4602
4603 2011-05-23  Bruno Haible  <bruno@clisp.org>
4604
4605         modechange: Move AC_LIBOBJ invocations to module description.
4606         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
4607         * modules/modechange (Makefile.am): Augment lib_SOURCES.
4608
4609 2011-05-23  Bruno Haible  <bruno@clisp.org>
4610
4611         mkdir-p: Move AC_LIBOBJ invocations to module description.
4612         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
4613         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
4614
4615 2011-05-23  Bruno Haible  <bruno@clisp.org>
4616
4617         mkancesdirs: Move AC_LIBOBJ invocations to module description.
4618         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
4619         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
4620
4621 2011-05-23  Bruno Haible  <bruno@clisp.org>
4622
4623         mgetgroups: Move AC_LIBOBJ invocations to module description.
4624         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
4625         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
4626
4627 2011-05-23  Bruno Haible  <bruno@clisp.org>
4628
4629         memxor: Move AC_LIBOBJ invocations to module description.
4630         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
4631         * modules/memxor (Makefile.am): Augment lib_SOURCES.
4632
4633 2011-05-23  Bruno Haible  <bruno@clisp.org>
4634
4635         memcoll: Move AC_LIBOBJ invocations to module description.
4636         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
4637         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
4638
4639 2011-05-23  Bruno Haible  <bruno@clisp.org>
4640
4641         memcasecmp: Move AC_LIBOBJ invocations to module description.
4642         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
4643         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
4644
4645 2011-05-23  Bruno Haible  <bruno@clisp.org>
4646
4647         crypto/md5: Move AC_LIBOBJ invocations to module description.
4648         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
4649         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
4650
4651 2011-05-23  Bruno Haible  <bruno@clisp.org>
4652
4653         crypto/md4: Move AC_LIBOBJ invocations to module description.
4654         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
4655         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
4656
4657 2011-05-23  Bruno Haible  <bruno@clisp.org>
4658
4659         crypto/md2: Move AC_LIBOBJ invocations to module description.
4660         * m4/md2.m4: Remove file.
4661         * modules/crypto/md2 (Files): Remove it.
4662         (configure.ac): Remove gl_MD2 call.
4663         (Makefile.am): Augment lib_SOURCES.
4664
4665 2011-05-23  Bruno Haible  <bruno@clisp.org>
4666
4667         long-options: Move AC_LIBOBJ invocations to module description.
4668         * m4/long-options.m4: Remove file.
4669         * modules/long-options (Files): Remove it.
4670         (configure.ac): Remove gl_LONG_OPTIONS call.
4671         (Makefile.am): Augment lib_SOURCES.
4672
4673 2011-05-23  Bruno Haible  <bruno@clisp.org>
4674
4675         i-ring: Move AC_LIBOBJ invocations to module description.
4676         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
4677         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
4678
4679 2011-05-23  Bruno Haible  <bruno@clisp.org>
4680
4681         idcache: Move AC_LIBOBJ invocations to module description.
4682         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
4683         * modules/idcache (Makefile.am): Augment lib_SOURCES.
4684
4685 2011-05-23  Bruno Haible  <bruno@clisp.org>
4686
4687         human: Move AC_LIBOBJ invocations to module description.
4688         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
4689         * modules/human (Makefile.am): Augment lib_SOURCES.
4690
4691 2011-05-23  Bruno Haible  <bruno@clisp.org>
4692
4693         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
4694         * m4/hmac-sha1.m4: Remove file.
4695         * modules/crypto/hmac-sha1 (Files): Remove it.
4696         (configure.ac): Remove gl_HMAC_SHA1 call.
4697         (Makefile.am): Augment lib_SOURCES.
4698
4699 2011-05-23  Bruno Haible  <bruno@clisp.org>
4700
4701         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
4702         * m4/hmac-md5.m4: Remove file.
4703         * modules/crypto/hmac-md5 (Files): Remove it.
4704         (configure.ac): Remove gl_HMAC_MD5 call.
4705         (Makefile.am): Augment lib_SOURCES.
4706
4707 2011-05-23  Bruno Haible  <bruno@clisp.org>
4708
4709         hash: Move AC_LIBOBJ invocations to module description.
4710         * m4/hash.m4: Remove file.
4711         * modules/hash (Files): Remove it.
4712         (configure.ac): Remove gl_HASH call.
4713         (Makefile.am): Augment lib_SOURCES.
4714
4715 2011-05-23  Bruno Haible  <bruno@clisp.org>
4716
4717         hard-locale: Move AC_LIBOBJ invocations to module description.
4718         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
4719         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
4720
4721 2011-05-23  Bruno Haible  <bruno@clisp.org>
4722
4723         getugroups: Move AC_LIBOBJ invocations to module description.
4724         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
4725         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
4726
4727 2011-05-23  Bruno Haible  <bruno@clisp.org>
4728
4729         gettime: Move AC_LIBOBJ invocations to module description.
4730         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
4731         * modules/gettime (Makefile.am): Augment lib_SOURCES.
4732
4733 2011-05-23  Bruno Haible  <bruno@clisp.org>
4734
4735         getndelim2: Move AC_LIBOBJ invocations to module description.
4736         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
4737         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
4738
4739 2011-05-23  Bruno Haible  <bruno@clisp.org>
4740
4741         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
4742         * m4/gc-pbkdf2-sha1.m4: Remove file.
4743         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
4744         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
4745         (Makefile.am): Augment lib_SOURCES.
4746
4747 2011-05-23  Bruno Haible  <bruno@clisp.org>
4748
4749         fts: Move AC_LIBOBJ invocations to module description.
4750         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
4751         * modules/fts (configure.ac): ... to here.
4752
4753 2011-05-23  Bruno Haible  <bruno@clisp.org>
4754
4755         file-type: Move AC_LIBOBJ invocations to module description.
4756         * m4/file-type.m4: Remove file.
4757         * modules/file-type (Files): Remove it.
4758         (configure.ac): Remove gl_FILE_TYPE call.
4759         (Makefile.am): Augment lib_SOURCES.
4760
4761 2011-05-23  Bruno Haible  <bruno@clisp.org>
4762
4763         filenamecat*: Respect rules for use of AC_LIBOBJ.
4764         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
4765         Remove AC_LIBOBJ invocation.
4766         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
4767         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
4768
4769 2011-05-23  Bruno Haible  <bruno@clisp.org>
4770
4771         filemode: Move AC_LIBOBJ invocations to module description.
4772         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
4773         * modules/filemode (Makefile.am): Augment lib_SOURCES.
4774
4775 2011-05-23  Bruno Haible  <bruno@clisp.org>
4776
4777         openat-safer: Move AC_LIBOBJ invocations to module description.
4778         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
4779         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
4780
4781 2011-05-23  Bruno Haible  <bruno@clisp.org>
4782
4783         fcntl-safer: Move AC_LIBOBJ invocations to module description.
4784         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
4785         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
4786
4787 2011-05-23  Bruno Haible  <bruno@clisp.org>
4788
4789         exclude: Move AC_LIBOBJ invocations to module description.
4790         * m4/exclude.m4: Remove file.
4791         * modules/exclude (Files): Remove it.
4792         (configure.ac): Remove gl_EXCLUDE call.
4793         (Makefile.am): Augment lib_SOURCES.
4794
4795 2011-05-23  Bruno Haible  <bruno@clisp.org>
4796
4797         dirname*: Respect rules for use of AC_LIBOBJ.
4798         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4799         invocations.
4800         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4801         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4802
4803 2011-05-23  Bruno Haible  <bruno@clisp.org>
4804
4805         dirent-safer: Move AC_LIBOBJ invocations to module description.
4806         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4807         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4808
4809 2011-05-23  Bruno Haible  <bruno@clisp.org>
4810
4811         crypto/des: Move AC_LIBOBJ invocations to module description.
4812         * m4/des.m4: Remove file.
4813         * modules/crypto/des (Files): Remove it.
4814         (configure.ac): Remove gl_DES call.
4815         (Makefile.am): Augment lib_SOURCES.
4816
4817 2011-05-23  Bruno Haible  <bruno@clisp.org>
4818
4819         cycle-check: Move AC_LIBOBJ invocations to module description.
4820         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
4821         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
4822
4823 2011-05-23  Bruno Haible  <bruno@clisp.org>
4824
4825         c-strtold: Move AC_LIBOBJ invocations to module description.
4826         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
4827         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
4828
4829 2011-05-23  Bruno Haible  <bruno@clisp.org>
4830
4831         c-strtod: Move AC_LIBOBJ invocations to module description.
4832         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
4833         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
4834
4835 2011-05-23  Bruno Haible  <bruno@clisp.org>
4836
4837         crc: Move AC_LIBOBJ invocations to module description.
4838         * m4/crc.m4: Remove file.
4839         * modules/crc (Files): Remove it.
4840         (configure.ac): Remove gl_CRC call.
4841         (Makefile.am): Augment lib_SOURCES.
4842
4843 2011-05-23  Bruno Haible  <bruno@clisp.org>
4844
4845         close-stream: Move AC_LIBOBJ invocations to module description.
4846         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
4847         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
4848
4849 2011-05-23  Bruno Haible  <bruno@clisp.org>
4850
4851         closeout: Move AC_LIBOBJ invocations to module description.
4852         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
4853         * modules/closeout (Makefile.am): Augment lib_SOURCES.
4854
4855 2011-05-23  Bruno Haible  <bruno@clisp.org>
4856
4857         closein: Move AC_LIBOBJ invocations to module description.
4858         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
4859         * modules/closein (Makefile.am): Augment lib_SOURCES.
4860
4861 2011-05-23  Bruno Haible  <bruno@clisp.org>
4862
4863         cloexec: Move AC_LIBOBJ invocations to module description.
4864         * m4/cloexec.m4: Remove file.
4865         * modules/cloexec (Files): Remove it.
4866         (configure.ac): Remove gl_CLOEXEC call.
4867         (Makefile.am): Augment lib_SOURCES.
4868
4869 2011-05-23  Bruno Haible  <bruno@clisp.org>
4870
4871         check-version: Move AC_LIBOBJ invocations to module description.
4872         * m4/check-version.m4: Remove file.
4873         * modules/check-version (Files): Remove it.
4874         (configure.ac): Remove gl_CHECK_VERSION call.
4875         (Makefile.am): Augment lib_SOURCES.
4876
4877 2011-05-23  Bruno Haible  <bruno@clisp.org>
4878
4879         chdir-safer: Move AC_LIBOBJ invocations to module description.
4880         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
4881         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
4882
4883 2011-05-23  Bruno Haible  <bruno@clisp.org>
4884
4885         canonicalize: Move AC_LIBOBJ invocations to module description.
4886         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4887         AC_LIBOBJ invocation.
4888         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4889
4890 2011-05-23  Bruno Haible  <bruno@clisp.org>
4891
4892         canon-host: Move AC_LIBOBJ invocations to module description.
4893         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4894         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4895         instead of gl_CANON_HOST.
4896         (Makefile.am): Augment lib_SOURCES.
4897
4898 2011-05-23  Bruno Haible  <bruno@clisp.org>
4899
4900         backupfile: Move AC_LIBOBJ invocations to module description.
4901         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4902         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4903
4904 2011-05-23  Bruno Haible  <bruno@clisp.org>
4905
4906         argmatch: Move AC_LIBOBJ invocations to module description.
4907         * m4/argmatch.m4: Remove file.
4908         * modules/argmatch (Files): Remove it.
4909         (configure.ac): Remove gl_ARGMATCH call.
4910         (Makefile.am): Augment lib_SOURCES.
4911
4912 2011-05-23  Bruno Haible  <bruno@clisp.org>
4913
4914         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4915         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4916         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4917
4918 2011-05-23  Bruno Haible  <bruno@clisp.org>
4919
4920         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4921         * m4/arcfour.m4: Remove file.
4922         * modules/crypto/arcfour (Files): Remove it.
4923         (configure.ac): Remove gl_ARCFOUR call.
4924         (Makefile.am): Augment lib_SOURCES.
4925
4926 2011-05-22  Bruno Haible  <bruno@clisp.org>
4927
4928         write: Move AC_LIBOBJ invocations to module description.
4929         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4930         * modules/write (configure.ac): ... to here.
4931
4932 2011-05-22  Bruno Haible  <bruno@clisp.org>
4933
4934         wmemset: Move AC_LIBOBJ invocations to module description.
4935         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4936         here...
4937         * modules/wmemset (configure.ac): ... to here.
4938
4939 2011-05-22  Bruno Haible  <bruno@clisp.org>
4940
4941         wmemmove: Move AC_LIBOBJ invocations to module description.
4942         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4943         here...
4944         * modules/wmemmove (configure.ac): ... to here.
4945
4946 2011-05-22  Bruno Haible  <bruno@clisp.org>
4947
4948         wmemcpy: Move AC_LIBOBJ invocations to module description.
4949         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4950         here...
4951         * modules/wmemcpy (configure.ac): ... to here.
4952
4953 2011-05-22  Bruno Haible  <bruno@clisp.org>
4954
4955         wmemcmp: Move AC_LIBOBJ invocations to module description.
4956         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4957         here...
4958         * modules/wmemcmp (configure.ac): ... to here.
4959
4960 2011-05-22  Bruno Haible  <bruno@clisp.org>
4961
4962         wmemchr: Move AC_LIBOBJ invocations to module description.
4963         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4964         here...
4965         * modules/wmemchr (configure.ac): ... to here.
4966
4967 2011-05-22  Bruno Haible  <bruno@clisp.org>
4968
4969         wcswidth: Move AC_LIBOBJ invocations to module description.
4970         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4971         here...
4972         * modules/wcswidth (configure.ac): ... to here.
4973
4974 2011-05-22  Bruno Haible  <bruno@clisp.org>
4975
4976         wcwidth: Respect rules for use of AC_LIBOBJ.
4977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4978         invocation from here...
4979         * modules/wcwidth (configure.ac): ... to here.
4980         (Depends-on): Update conditions.
4981
4982 2011-05-22  Bruno Haible  <bruno@clisp.org>
4983
4984         wctype: Move AC_LIBOBJ invocations to module description.
4985         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4986         invocation from here...
4987         * modules/wctype (configure.ac): ... to here.
4988         (Depends-on): Update conditions.
4989
4990 2011-05-22  Bruno Haible  <bruno@clisp.org>
4991
4992         wctrans: Move AC_LIBOBJ invocations to module description.
4993         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4994         invocation from here...
4995         * modules/wctrans (configure.ac): ... to here.
4996
4997 2011-05-22  Bruno Haible  <bruno@clisp.org>
4998
4999         wctomb: Move AC_LIBOBJ invocations to module description.
5000         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
5001         invocations from here...
5002         * modules/wctomb (configure.ac): ... to here.
5003
5004 2011-05-22  Bruno Haible  <bruno@clisp.org>
5005
5006         wctob: Move AC_LIBOBJ invocations to module description.
5007         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
5008         gl_PREREQ_WCTOB invocations from here...
5009         * modules/wctob (configure.ac): ... to here.
5010         (Depends-on): Update conditions.
5011
5012 2011-05-22  Bruno Haible  <bruno@clisp.org>
5013
5014         wcsxfrm: Move AC_LIBOBJ invocations to module description.
5015         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
5016         here...
5017         * modules/wcsxfrm (configure.ac): ... to here.
5018
5019 2011-05-22  Bruno Haible  <bruno@clisp.org>
5020
5021         wcstok: Move AC_LIBOBJ invocations to module description.
5022         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
5023         * modules/wcstok (configure.ac): ... to here.
5024
5025 2011-05-22  Bruno Haible  <bruno@clisp.org>
5026
5027         wcsstr: Move AC_LIBOBJ invocations to module description.
5028         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
5029         * modules/wcsstr (configure.ac): ... to here.
5030
5031 2011-05-22  Bruno Haible  <bruno@clisp.org>
5032
5033         wcsspn: Move AC_LIBOBJ invocations to module description.
5034         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
5035         * modules/wcsspn (configure.ac): ... to here.
5036
5037 2011-05-22  Bruno Haible  <bruno@clisp.org>
5038
5039         wcsrtombs: Move AC_LIBOBJ invocations to module description.
5040         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
5041         gl_PREREQ_WCSRTOMBS invocations from here...
5042         * modules/wcsrtombs (configure.ac): ... to here.
5043
5044 2011-05-22  Bruno Haible  <bruno@clisp.org>
5045
5046         wcsrchr: Move AC_LIBOBJ invocations to module description.
5047         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
5048         here...
5049         * modules/wcsrchr (configure.ac): ... to here.
5050
5051 2011-05-22  Bruno Haible  <bruno@clisp.org>
5052
5053         wcspbrk: Move AC_LIBOBJ invocations to module description.
5054         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
5055         here...
5056         * modules/wcspbrk (configure.ac): ... to here.
5057
5058 2011-05-22  Bruno Haible  <bruno@clisp.org>
5059
5060         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
5061         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
5062         gl_PREREQ_WCSNRTOMBS invocations from here...
5063         * modules/wcsnrtombs (configure.ac): ... to here.
5064
5065 2011-05-22  Bruno Haible  <bruno@clisp.org>
5066
5067         wcsnlen: Move AC_LIBOBJ invocations to module description.
5068         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
5069         here...
5070         * modules/wcsnlen (configure.ac): ... to here.
5071
5072 2011-05-22  Bruno Haible  <bruno@clisp.org>
5073
5074         wcsncpy: Move AC_LIBOBJ invocations to module description.
5075         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
5076         here...
5077         * modules/wcsncpy (configure.ac): ... to here.
5078
5079 2011-05-22  Bruno Haible  <bruno@clisp.org>
5080
5081         wcsncmp: Move AC_LIBOBJ invocations to module description.
5082         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
5083         here...
5084         * modules/wcsncmp (configure.ac): ... to here.
5085
5086 2011-05-22  Bruno Haible  <bruno@clisp.org>
5087
5088         wcsncat: Move AC_LIBOBJ invocations to module description.
5089         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
5090         here...
5091         * modules/wcsncat (configure.ac): ... to here.
5092
5093 2011-05-22  Bruno Haible  <bruno@clisp.org>
5094
5095         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
5096         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
5097         from here...
5098         * modules/wcsncasecmp (configure.ac): ... to here.
5099
5100 2011-05-22  Bruno Haible  <bruno@clisp.org>
5101
5102         wcslen: Move AC_LIBOBJ invocations to module description.
5103         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
5104         * modules/wcslen (configure.ac): ... to here.
5105
5106 2011-05-22  Bruno Haible  <bruno@clisp.org>
5107
5108         wcsdup: Move AC_LIBOBJ invocations to module description.
5109         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
5110         * modules/wcsdup (configure.ac): ... to here.
5111
5112 2011-05-22  Bruno Haible  <bruno@clisp.org>
5113
5114         wcscspn: Move AC_LIBOBJ invocations to module description.
5115         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
5116         here...
5117         * modules/wcscspn (configure.ac): ... to here.
5118
5119 2011-05-22  Bruno Haible  <bruno@clisp.org>
5120
5121         wcscpy: Move AC_LIBOBJ invocations to module description.
5122         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
5123         * modules/wcscpy (configure.ac): ... to here.
5124
5125 2011-05-22  Bruno Haible  <bruno@clisp.org>
5126
5127         wcscoll: Move AC_LIBOBJ invocations to module description.
5128         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
5129         here...
5130         * modules/wcscoll (configure.ac): ... to here.
5131
5132 2011-05-22  Bruno Haible  <bruno@clisp.org>
5133
5134         wcscmp: Move AC_LIBOBJ invocations to module description.
5135         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
5136         * modules/wcscmp (configure.ac): ... to here.
5137
5138 2011-05-22  Bruno Haible  <bruno@clisp.org>
5139
5140         wcschr: Move AC_LIBOBJ invocations to module description.
5141         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
5142         * modules/wcschr (configure.ac): ... to here.
5143
5144 2011-05-22  Bruno Haible  <bruno@clisp.org>
5145
5146         wcscat: Move AC_LIBOBJ invocations to module description.
5147         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
5148         * modules/wcscat (configure.ac): ... to here.
5149
5150 2011-05-22  Bruno Haible  <bruno@clisp.org>
5151
5152         wcscasecmp: Move AC_LIBOBJ invocations to module description.
5153         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
5154         here...
5155         * modules/wcscasecmp (configure.ac): ... to here.
5156
5157 2011-05-22  Bruno Haible  <bruno@clisp.org>
5158
5159         wcrtomb: Move AC_LIBOBJ invocations to module description.
5160         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
5161         invocations from here...
5162         * modules/wcrtomb (configure.ac): ... to here.
5163
5164 2011-05-22  Bruno Haible  <bruno@clisp.org>
5165
5166         wcpncpy: Move AC_LIBOBJ invocations to module description.
5167         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
5168         here...
5169         * modules/wcpncpy (configure.ac): ... to here.
5170
5171 2011-05-22  Bruno Haible  <bruno@clisp.org>
5172
5173         wcpcpy: Move AC_LIBOBJ invocations to module description.
5174         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
5175         * modules/wcpcpy (configure.ac): ... to here.
5176
5177 2011-05-22  Bruno Haible  <bruno@clisp.org>
5178
5179         waitpid: Move AC_LIBOBJ invocations to module description.
5180         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
5181         invocation from here...
5182         * modules/waitpid (configure.ac): ... to here.
5183
5184 2011-05-22  Bruno Haible  <bruno@clisp.org>
5185
5186         utimensat: Move AC_LIBOBJ invocations to module description.
5187         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
5188         here...
5189         * modules/utimensat (configure.ac): ... to here.
5190
5191 2011-05-22  Bruno Haible  <bruno@clisp.org>
5192
5193         usleep: Move AC_LIBOBJ invocations to module description.
5194         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
5195         here...
5196         * modules/usleep (configure.ac): ... to here.
5197
5198 2011-05-22  Bruno Haible  <bruno@clisp.org>
5199
5200         unlockpt: Move AC_LIBOBJ invocations to module description.
5201         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
5202         gl_PREREQ_UNLOCKPT invocations from here...
5203         * modules/unlockpt (configure.ac): ... to here.
5204
5205 2011-05-22  Bruno Haible  <bruno@clisp.org>
5206
5207         unlink: Respect rules for use of AC_LIBOBJ.
5208         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
5209         * modules/unlink (configure.ac): ... to here.
5210
5211 2011-05-22  Bruno Haible  <bruno@clisp.org>
5212
5213         uname: Move AC_LIBOBJ invocations to module description.
5214         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
5215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
5216         here...
5217         * modules/uname (configure.ac): ... to here.
5218
5219 2011-05-22  Bruno Haible  <bruno@clisp.org>
5220
5221         ttyname_r: Move AC_LIBOBJ invocations to module description.
5222         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
5223         gl_PREREQ_TTYNAME_R invocations from here...
5224         * modules/ttyname_r (configure.ac): ... to here.
5225
5226 2011-05-22  Bruno Haible  <bruno@clisp.org>
5227
5228         tsearch: Move AC_LIBOBJ invocations to module description.
5229         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
5230         invocations from here...
5231         * modules/tsearch (configure.ac): ... to here.
5232
5233 2011-05-22  Bruno Haible  <bruno@clisp.org>
5234
5235         towctrans: Move AC_LIBOBJ invocations to module description.
5236         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
5237         AC_LIBOBJ invocation from here...
5238         * modules/towctrans (configure.ac): ... to here.
5239
5240 2011-05-22  Bruno Haible  <bruno@clisp.org>
5241
5242         tmpfile: Move AC_LIBOBJ invocations to module description.
5243         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
5244         invocations from here...
5245         * modules/tmpfile (configure.ac): ... to here.
5246
5247 2011-05-22  Bruno Haible  <bruno@clisp.org>
5248
5249         times: Move AC_LIBOBJ invocations to module description.
5250         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
5251         * modules/times (configure.ac): ... to here.
5252
5253 2011-05-22  Bruno Haible  <bruno@clisp.org>
5254
5255         time_r: Move AC_LIBOBJ invocations to module description.
5256         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
5257         invocations from here...
5258         * modules/time_r (configure.ac): ... to here.
5259
5260 2011-05-22  Bruno Haible  <bruno@clisp.org>
5261
5262         timegm: Move AC_LIBOBJ invocations to module description.
5263         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
5264         invocations from here...
5265         * modules/timegm (configure.ac): ... to here.
5266
5267 2011-05-22  Bruno Haible  <bruno@clisp.org>
5268
5269         tcgetsid: Move AC_LIBOBJ invocations to module description.
5270         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
5271         and gl_PREREQ_TCGETSID invocations from here...
5272         * modules/tcgetsid (configure.ac): ... to here.
5273         (Depends-on): Update conditions.
5274
5275 2011-05-22  Bruno Haible  <bruno@clisp.org>
5276
5277         symlinkat: Move AC_LIBOBJ invocations to module description.
5278         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
5279         here...
5280         * modules/symlinkat (configure.ac): ... to here.
5281
5282 2011-05-22  Bruno Haible  <bruno@clisp.org>
5283
5284         symlink: Move AC_LIBOBJ invocations to module description.
5285         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
5286         here...
5287         * modules/symlink (configure.ac): ... to here.
5288
5289 2011-05-22  Bruno Haible  <bruno@clisp.org>
5290
5291         strverscmp: Move AC_LIBOBJ invocations to module description.
5292         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
5293         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
5294         from here...
5295         * modules/strverscmp (configure.ac): ... to here.
5296
5297 2011-05-22  Bruno Haible  <bruno@clisp.org>
5298
5299         strtok_r: Move AC_LIBOBJ invocations to module description.
5300         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
5301         and gl_PREREQ_STRTOK_R invocations from here...
5302         * modules/strtok_r (configure.ac): ... to here.
5303         (Depends-on): Update conditions.
5304
5305 2011-05-22  Bruno Haible  <bruno@clisp.org>
5306
5307         strtoumax: Move AC_LIBOBJ invocations to module description.
5308         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
5309         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
5310         from here...
5311         * modules/strtoumax (configure.ac): ... to here.
5312
5313 2011-05-22  Bruno Haible  <bruno@clisp.org>
5314
5315         strtoimax: Move AC_LIBOBJ invocations to module description.
5316         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
5317         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
5318         from here...
5319         * modules/strtoimax (configure.ac): ... to here.
5320
5321 2011-05-22  Bruno Haible  <bruno@clisp.org>
5322
5323         strtoull: Move AC_LIBOBJ invocations to module description.
5324         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
5325         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
5326         from here...
5327         * modules/strtoull (configure.ac): ... to here.
5328
5329 2011-05-22  Bruno Haible  <bruno@clisp.org>
5330
5331         strtoll: Move AC_LIBOBJ invocations to module description.
5332         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
5333         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
5334         here...
5335         * modules/strtoll (configure.ac): ... to here.
5336
5337 2011-05-22  Bruno Haible  <bruno@clisp.org>
5338
5339         strtoul: Move AC_LIBOBJ invocations to module description.
5340         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
5341         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5342         * modules/strtoul (configure.ac): ... to here.
5343
5344 2011-05-22  Bruno Haible  <bruno@clisp.org>
5345
5346         strtol: Move AC_LIBOBJ invocations to module description.
5347         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
5348         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5349         * modules/strtol (configure.ac): ... to here.
5350
5351 2011-05-22  Bruno Haible  <bruno@clisp.org>
5352
5353         strtod: Move AC_LIBOBJ invocations to module description.
5354         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
5355         invocations from here...
5356         * modules/strtod (configure.ac): ... to here.
5357
5358 2011-05-22  Bruno Haible  <bruno@clisp.org>
5359
5360         strstr*: Move AC_LIBOBJ invocations to module description.
5361         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
5362         invocations from here...
5363         * modules/strstr-simple (configure.ac): ... to here.
5364         * modules/strstr (configure.ac): ... and here.
5365
5366 2011-05-22  Bruno Haible  <bruno@clisp.org>
5367
5368         strsignal: Move AC_LIBOBJ invocations to module description.
5369         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
5370         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
5371         * modules/strsignal (configure.ac): ... to here.
5372         (Depends-on): Update conditions.
5373
5374 2011-05-22  Bruno Haible  <bruno@clisp.org>
5375
5376         strsep: Move AC_LIBOBJ invocations to module description.
5377         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
5378         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
5379         here...
5380         * modules/strsep (configure.ac): ... to here.
5381
5382 2011-05-22  Bruno Haible  <bruno@clisp.org>
5383
5384         strptime: Move AC_LIBOBJ invocations to module description.
5385         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
5386         gl_PREREQ_STRPTIME invocations from here...
5387         * modules/strptime (configure.ac): ... to here.
5388
5389 2011-05-22  Bruno Haible  <bruno@clisp.org>
5390
5391         strpbrk: Move AC_LIBOBJ invocations to module description.
5392         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
5393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
5394         here...
5395         * modules/strpbrk (configure.ac): ... to here.
5396
5397 2011-05-22  Bruno Haible  <bruno@clisp.org>
5398
5399         strnlen: Move AC_LIBOBJ invocations to module description.
5400         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
5401         invocations from here...
5402         * modules/strnlen (configure.ac): ... to here.
5403
5404 2011-05-22  Bruno Haible  <bruno@clisp.org>
5405
5406         strndup: Move AC_LIBOBJ invocations to module description.
5407         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
5408         invocations from here...
5409         * modules/strndup (configure.ac): ... to here.
5410         (Depends-on): Update conditions.
5411
5412 2011-05-22  Bruno Haible  <bruno@clisp.org>
5413
5414         strncat: Move AC_LIBOBJ invocations to module description.
5415         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
5416         invocations from here...
5417         * modules/strncat (configure.ac): ... to here.
5418
5419 2011-05-22  Bruno Haible  <bruno@clisp.org>
5420
5421         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
5422         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
5423         invocations from here...
5424         * modules/strdup (configure.ac): ... to here.
5425         * modules/strdup-posix (configure.ac): ... and here.
5426
5427 2011-05-22  Bruno Haible  <bruno@clisp.org>
5428
5429         strcspn: Move AC_LIBOBJ invocations to module description.
5430         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
5431         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
5432         here...
5433         * modules/strcspn (configure.ac): ... to here.
5434
5435 2011-05-22  Bruno Haible  <bruno@clisp.org>
5436
5437         strchrnul: Move AC_LIBOBJ invocations to module description.
5438         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
5439         gl_PREREQ_STRCHRNUL invocations from here...
5440         * modules/strchrnul (configure.ac): ... to here.
5441
5442 2011-05-22  Bruno Haible  <bruno@clisp.org>
5443
5444         strcasestr*: Move AC_LIBOBJ invocations to module description.
5445         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5446         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
5447         * modules/strcasestr-simple (configure.ac): ... to here.
5448         * modules/strcasestr (configure.ac): ... and here.
5449
5450 2011-05-22  Bruno Haible  <bruno@clisp.org>
5451
5452         strcase: Move AC_LIBOBJ invocations to module description.
5453         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
5454         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
5455         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
5456         gl_PREREQ_STRNCASECMP invocations from here...
5457         * modules/strcase (configure.ac): ... to here.
5458
5459 2011-05-22  Bruno Haible  <bruno@clisp.org>
5460
5461         stpncpy: Move AC_LIBOBJ invocations to module description.
5462         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
5463         here...
5464         * modules/stpncpy (configure.ac): ... to here.
5465
5466 2011-05-22  Bruno Haible  <bruno@clisp.org>
5467
5468         stpcpy: Move AC_LIBOBJ invocations to module description.
5469         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
5470         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
5471         here...
5472         * modules/stpcpy (configure.ac): ... to here.
5473
5474 2011-05-21  Bruno Haible  <bruno@clisp.org>
5475
5476         stat: Move AC_LIBOBJ invocations to module description.
5477         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
5478         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
5479         here...
5480         * modules/stat (configure.ac): ... to here.
5481
5482 2011-05-21  Bruno Haible  <bruno@clisp.org>
5483
5484         sleep: Move AC_LIBOBJ invocations to module description.
5485         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
5486         * modules/sleep (configure.ac): ... to here.
5487
5488 2011-05-21  Bruno Haible  <bruno@clisp.org>
5489
5490         signbit: Move AC_LIBOBJ invocations to module description.
5491         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
5492         * modules/signbit (configure.ac): ... to here.
5493
5494 2011-05-21  Bruno Haible  <bruno@clisp.org>
5495
5496         sigprocmask: Move AC_LIBOBJ invocations to module description.
5497         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
5498         gl_PREREQ_SIGPROMASK invocations from here...
5499         * modules/sigprocmask (configure.ac): ... to here.
5500
5501 2011-05-21  Bruno Haible  <bruno@clisp.org>
5502
5503         sigaction: Move AC_LIBOBJ invocations to module description.
5504         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
5505         gl_PREREQ_SIGACTION invocations from here...
5506         * modules/sigaction (configure.ac): ... to here.
5507
5508 2011-05-21  Bruno Haible  <bruno@clisp.org>
5509
5510         sig2str: Move AC_LIBOBJ invocations to module description.
5511         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
5512         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
5513         here...
5514         * modules/sig2str (configure.ac): ... to here.
5515
5516 2011-05-21  Bruno Haible  <bruno@clisp.org>
5517
5518         setlocale: Move AC_LIBOBJ invocations to module description.
5519         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
5520         gl_PREREQ_SETLOCALE invocations from here...
5521         * modules/setlocale (configure.ac): ... to here.
5522
5523 2011-05-21  Bruno Haible  <bruno@clisp.org>
5524
5525         unsetenv: Move AC_LIBOBJ invocations to module description.
5526         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
5527         and gl_PREREQ_UNSETENV invocations from here...
5528         * modules/unsetenv (configure.ac): ... to here.
5529         (Depends-on): Update.
5530
5531 2011-05-21  Bruno Haible  <bruno@clisp.org>
5532
5533         setenv: Move AC_LIBOBJ invocations to module description.
5534         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
5535         here...
5536         * modules/setenv (configure.ac): ... to here.
5537
5538 2011-05-21  Bruno Haible  <bruno@clisp.org>
5539
5540         selinux-h: Move AC_LIBOBJ invocations to module description.
5541         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
5542         AC_LIBOBJ invocation from here...
5543         * modules/selinux-h (configure.ac): ... to here.
5544
5545 2011-05-21  Bruno Haible  <bruno@clisp.org>
5546
5547         select: Respect rules for use of AC_LIBOBJ.
5548         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
5549         here...
5550         * modules/select (configure.ac): ... to here.
5551
5552 2011-05-21  Bruno Haible  <bruno@clisp.org>
5553
5554         scandir: Move AC_LIBOBJ invocations to module description.
5555         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
5556         invocations from here...
5557         * modules/scandir (configure.ac): ... to here.
5558
5559 2011-05-21  Bruno Haible  <bruno@clisp.org>
5560
5561         rpmatch: Move AC_LIBOBJ invocations to module description.
5562         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
5563         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
5564         here...
5565         * modules/rpmatch (configure.ac): ... to here.
5566
5567 2011-05-21  Bruno Haible  <bruno@clisp.org>
5568
5569         rmdir: Respect rules for use of AC_LIBOBJ.
5570         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
5571         * modules/rmdir (configure.ac): ... to here.
5572
5573 2011-05-21  Bruno Haible  <bruno@clisp.org>
5574
5575         renameat: Move AC_LIBOBJ invocations to module description.
5576         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
5577         here...
5578         * modules/renameat (configure.ac): ... to here.
5579
5580 2011-05-21  Bruno Haible  <bruno@clisp.org>
5581
5582         rename: Respect rules for use of AC_LIBOBJ.
5583         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
5584         here...
5585         * modules/rename (configure.ac): ... to here.
5586
5587 2011-05-21  Bruno Haible  <bruno@clisp.org>
5588
5589         remove: Move AC_LIBOBJ invocations to module description.
5590         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
5591         here...
5592         * modules/remove (configure.ac): ... to here.
5593
5594 2011-05-21  Bruno Haible  <bruno@clisp.org>
5595
5596         relocatable-lib: Move AC_LIBOBJ invocations to module description.
5597         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
5598         macro.
5599         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
5600         * modules/relocatable-lib (configure.ac): ... to here.
5601         * modules/relocatable-prog-wrapper (configure.ac): Invoke
5602         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
5603
5604 2011-05-21  Bruno Haible  <bruno@clisp.org>
5605
5606         relocatable-prog: Move AC_LIBOBJ invocations to module description.
5607         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
5608         here...
5609         * modules/relocatable-prog (configure.ac): ... to here.
5610
5611 2011-05-21  Bruno Haible  <bruno@clisp.org>
5612
5613         regex: Move AC_LIBOBJ invocations to module description.
5614         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
5615         invocations from here...
5616         * modules/regex (configure.ac): ... to here.
5617
5618 2011-05-21  Bruno Haible  <bruno@clisp.org>
5619
5620         realloc-*: Move AC_LIBOBJ invocations to module description.
5621         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
5622         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
5623         AC_LIBOBJ invocations from here...
5624         * modules/realloc-gnu (configure.ac): ... to here.
5625         * modules/realloc-posix (configure.ac): ... and here.
5626
5627 2011-05-21  Bruno Haible  <bruno@clisp.org>
5628
5629         readutmp: Move AC_LIBOBJ invocations to module description.
5630         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
5631         * modules/readutmp (configure.ac): ... to here.
5632
5633 2011-05-21  Bruno Haible  <bruno@clisp.org>
5634
5635         readlinkat: Move AC_LIBOBJ invocations to module description.
5636         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
5637         here...
5638         * modules/readlinkat (configure.ac): ... to here.
5639
5640 2011-05-21  Bruno Haible  <bruno@clisp.org>
5641
5642         readlink: Move AC_LIBOBJ invocations to module description.
5643         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
5644         gl_PREREQ_READLINK invocations from here...
5645         * modules/readlink (configure.ac): ... to here.
5646
5647 2011-05-21  Bruno Haible  <bruno@clisp.org>
5648
5649         readline: Move AC_LIBOBJ invocations to module description.
5650         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
5651         gl_PREREQ_READLINE invocations from here...
5652         * modules/readline (configure.ac): ... to here.
5653
5654 2011-05-21  Bruno Haible  <bruno@clisp.org>
5655
5656         read: Move AC_LIBOBJ invocations to module description.
5657         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
5658         * modules/read (configure.ac): ... to here.
5659
5660 2011-05-21  Bruno Haible  <bruno@clisp.org>
5661
5662         rawmemchr: Move AC_LIBOBJ invocations to module description.
5663         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
5664         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
5665         from here...
5666         * modules/rawmemchr (configure.ac): ... to here.
5667
5668 2011-05-21  Bruno Haible  <bruno@clisp.org>
5669
5670         random_r: Move AC_LIBOBJ invocations to module description.
5671         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
5672         gl_PREREQ_RANDOM_R invocations from here...
5673         * modules/random_r (configure.ac): ... to here.
5674
5675 2011-05-21  Bruno Haible  <bruno@clisp.org>
5676
5677         pwrite: Move AC_LIBOBJ invocations to module description.
5678         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
5679         * modules/pwrite (configure.ac): ... to here.
5680
5681 2011-05-21  Bruno Haible  <bruno@clisp.org>
5682
5683         putenv: Move AC_LIBOBJ invocations to module description.
5684         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
5685         * modules/putenv (configure.ac): ... to here.
5686
5687 2011-05-21  Bruno Haible  <bruno@clisp.org>
5688
5689         login_tty: Move AC_LIBOBJ invocations to module description.
5690         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
5691         * modules/login_tty (configure.ac): ... to here.
5692
5693 2011-05-21  Bruno Haible  <bruno@clisp.org>
5694
5695         openpty: Move AC_LIBOBJ invocations to module description.
5696         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
5697         * modules/openpty (configure.ac): ... to here.
5698
5699 2011-05-21  Bruno Haible  <bruno@clisp.org>
5700
5701         forkpty: Move AC_LIBOBJ invocations to module description.
5702         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
5703         * modules/forkpty (configure.ac): ... to here.
5704
5705 2011-05-21  Bruno Haible  <bruno@clisp.org>
5706
5707         ptsname: Move AC_LIBOBJ invocations to module description.
5708         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
5709         invocations from here...
5710         * modules/ptsname (configure.ac): ... to here.
5711
5712 2011-05-21  Bruno Haible  <bruno@clisp.org>
5713
5714         pread: Move AC_LIBOBJ invocations to module description.
5715         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
5716         * modules/pread (configure.ac): ... to here.
5717
5718 2011-05-21  Bruno Haible  <bruno@clisp.org>
5719
5720         posix_spawn*: Move AC_LIBOBJ invocations to module description.
5721         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
5722         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
5723         * modules/posix_spawn (configure.ac): ... to here.
5724         * modules/posix_spawnp (configure.ac): ... and here.
5725
5726 2011-05-21  Bruno Haible  <bruno@clisp.org>
5727
5728         popen: Move AC_LIBOBJ invocations to module description.
5729         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
5730         invocations from here...
5731         * modules/popen (configure.ac): ... to here.
5732
5733 2011-05-21  Bruno Haible  <bruno@clisp.org>
5734
5735         poll: Move AC_LIBOBJ invocations to module description.
5736         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
5737         invocations from here...
5738         * modules/poll (configure.ac): ... to here.
5739
5740 2011-05-21  Bruno Haible  <bruno@clisp.org>
5741
5742         pipe-posix: Move AC_LIBOBJ invocations to module description.
5743         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
5744         * modules/pipe-posix (configure.ac): ... to here.
5745
5746 2011-05-21  Bruno Haible  <bruno@clisp.org>
5747
5748         openat: Respect rules for use of AC_LIBOBJ.
5749         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
5750         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5751         * modules/openat (configure.ac): ... to here.
5752
5753 2011-05-21  Bruno Haible  <bruno@clisp.org>
5754
5755         obstack-printf*: Move AC_LIBOBJ invocations to module description.
5756         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
5757         invocation from here...
5758         * modules/obstack-printf (configure.ac): ... to here.
5759         * modules/obstack-printf-posix (configure.ac): ... and here.
5760
5761 2011-05-21  Bruno Haible  <bruno@clisp.org>
5762
5763         nl_langinfo: Move AC_LIBOBJ invocations to module description.
5764         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
5765         from here...
5766         * modules/nl_langinfo (configure.ac): ... to here.
5767
5768 2011-05-21  Bruno Haible  <bruno@clisp.org>
5769
5770         nanosleep: Move AC_LIBOBJ invocations to module description.
5771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
5772         gl_PREREQ_NANOSLEEP invocations from here...
5773         * modules/nanosleep (configure.ac): ... to here.
5774
5775 2011-05-21  Bruno Haible  <bruno@clisp.org>
5776
5777         mountlist: Move AC_LIBOBJ invocations to module description.
5778         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
5779         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
5780         * modules/mountlist (configure.ac): ... to here.
5781
5782 2011-05-21  Bruno Haible  <bruno@clisp.org>
5783
5784         mktime: Respect rules for use of AC_LIBOBJ.
5785         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
5786         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
5787         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
5788         (gl_FUNC_MKTIME_INTERNAL): ... and here...
5789         * modules/mktime (configure.ac): ... to here.
5790         * modules/mktime-internal (configure.ac): ... and here.
5791         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
5792
5793 2011-05-21  Bruno Haible  <bruno@clisp.org>
5794
5795         mkstemps: Move AC_LIBOBJ invocations to module description.
5796         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5797         here...
5798         * modules/mkstemps (configure.ac): ... to here.
5799
5800 2011-05-21  Bruno Haible  <bruno@clisp.org>
5801
5802         mkstemp: Move AC_LIBOBJ invocations to module description.
5803         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5804         gl_PREREQ_MKSTEMP invocations from here...
5805         * modules/mkstemp (configure.ac): ... to here.
5806
5807 2011-05-21  Bruno Haible  <bruno@clisp.org>
5808
5809         mkostemps: Move AC_LIBOBJ invocations to module description.
5810         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5811         here...
5812         * modules/mkostemps (configure.ac): ... to here.
5813
5814 2011-05-21  Bruno Haible  <bruno@clisp.org>
5815
5816         mkostemp: Move AC_LIBOBJ invocations to module description.
5817         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5818         gl_PREREQ_MKOSTEMP invocations from here...
5819         * modules/mkostemp (configure.ac): ... to here.
5820
5821 2011-05-21  Bruno Haible  <bruno@clisp.org>
5822
5823         mknod: Move AC_LIBOBJ invocations to module description.
5824         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
5825         * modules/mknod (configure.ac): ... to here.
5826
5827 2011-05-21  Bruno Haible  <bruno@clisp.org>
5828
5829         mkfifoat: Move AC_LIBOBJ invocations to module description.
5830         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
5831         here...
5832         * modules/mkfifoat (configure.ac): ... to here.
5833
5834 2011-05-21  Bruno Haible  <bruno@clisp.org>
5835
5836         mkfifo: Respect rules for use of AC_LIBOBJ.
5837         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
5838         here...
5839         * modules/mkfifo (configure.ac): ... to here.
5840
5841 2011-05-21  Bruno Haible  <bruno@clisp.org>
5842
5843         mkdtemp: Move AC_LIBOBJ invocations to module description.
5844         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
5845         invocations from here...
5846         * modules/mkdtemp (configure.ac): ... to here.
5847
5848 2011-05-21  Bruno Haible  <bruno@clisp.org>
5849
5850         mkdir: Move AC_LIBOBJ invocations to module description.
5851         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
5852         * modules/mkdir (configure.ac): ... to here.
5853
5854 2011-05-21  Bruno Haible  <bruno@clisp.org>
5855
5856         memset: Move AC_LIBOBJ invocations to module description.
5857         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
5858         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
5859         here...
5860         * modules/memset (configure.ac): ... to here.
5861
5862 2011-05-21  Bruno Haible  <bruno@clisp.org>
5863
5864         memrchr: Move AC_LIBOBJ invocations to module description.
5865         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
5866         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
5867         here...
5868         * modules/memrchr (configure.ac): ... to here.
5869
5870 2011-05-21  Bruno Haible  <bruno@clisp.org>
5871
5872         mempcpy: Move AC_LIBOBJ invocations to module description.
5873         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
5874         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
5875         here...
5876         * modules/mempcpy (configure.ac): ... to here.
5877
5878 2011-05-21  Bruno Haible  <bruno@clisp.org>
5879
5880         memmove: Move AC_LIBOBJ invocations to module description.
5881         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
5882         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
5883         here...
5884         * modules/memmove (configure.ac): ... to here.
5885
5886 2011-05-21  Bruno Haible  <bruno@clisp.org>
5887
5888         memmem*: Move AC_LIBOBJ invocations to module description.
5889         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5890         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5891         here...
5892         (gl_FUNC_MEMMEM): ... and here...
5893         * modules/memmem-simple (configure.ac): ... to here.
5894         * modules/memmem (configure.ac): ... and here.
5895
5896 2011-05-21  Bruno Haible  <bruno@clisp.org>
5897
5898         memcpy: Move AC_LIBOBJ invocations to module description.
5899         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5900         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5901         here...
5902         * modules/memcpy (configure.ac): ... to here.
5903
5904 2011-05-21  Bruno Haible  <bruno@clisp.org>
5905
5906         memcmp: Simplify autoconf macro.
5907         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5908         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5909         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5910
5911 2011-05-21  Bruno Haible  <bruno@clisp.org>
5912
5913         memcmp: Move AC_LIBOBJ invocations to module description.
5914         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5915         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5916         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5917         * modules/memcmp (configure.ac): ... to here.
5918         (Depends-on): Update conditions.
5919
5920 2011-05-21  Bruno Haible  <bruno@clisp.org>
5921
5922         memchr: Respect rules for use of AC_LIBOBJ.
5923         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5924         invocations from here...
5925         * modules/memchr (configure.ac): ... to here.
5926
5927 2011-05-21  Bruno Haible  <bruno@clisp.org>
5928
5929         mbtowc: Move AC_LIBOBJ invocations to module description.
5930         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5931         invocations from here...
5932         * modules/mbtowc (configure.ac): ... to here.
5933
5934 2011-05-21  Bruno Haible  <bruno@clisp.org>
5935
5936         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5937         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5938         gl_PREREQ_MBSRTOWCS invocations from here...
5939         * modules/mbsrtowcs (configure.ac): ... to here.
5940
5941 2011-05-21  Bruno Haible  <bruno@clisp.org>
5942
5943         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5944         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5945         gl_PREREQ_MBSNRTOWCS invocations from here...
5946         * modules/mbsnrtowcs (configure.ac): ... to here.
5947
5948 2011-05-21  Bruno Haible  <bruno@clisp.org>
5949
5950         mbsinit: Move AC_LIBOBJ invocations to module description.
5951         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5952         invocations from here...
5953         * modules/mbsinit (configure.ac): ... to here.
5954
5955 2011-05-21  Bruno Haible  <bruno@clisp.org>
5956
5957         mbrlen: Move AC_LIBOBJ invocations to module description.
5958         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5959         invocations from here...
5960         * modules/mbrlen (configure.ac): ... to here.
5961
5962 2011-05-21  Bruno Haible  <bruno@clisp.org>
5963
5964         mbrtowc: Respect rules for use of AC_LIBOBJ.
5965         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5966         invocations from here...
5967         * modules/mbrtowc (configure.ac): ... to here.
5968
5969 2011-05-21  Bruno Haible  <bruno@clisp.org>
5970
5971         malloc-*: Move AC_LIBOBJ invocations to module description.
5972         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5973         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5974         AC_LIBOBJ invocations from here...
5975         * modules/malloc-gnu (configure.ac): ... to here.
5976         * modules/malloc-posix (configure.ac): ... and here.
5977
5978 2011-05-21  Bruno Haible  <bruno@clisp.org>
5979
5980         lstat, openat: Respect rules for use of AC_LIBOBJ.
5981         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5982         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5983         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5984         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5985         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5986         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5987         here.
5988         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5989
5990 2011-05-21  Bruno Haible  <bruno@clisp.org>
5991
5992         lseek: Move AC_LIBOBJ invocations to module description.
5993         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5994         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5995         * modules/lseek (configure.ac): ... to here.
5996
5997 2011-05-21  Bruno Haible  <bruno@clisp.org>
5998
5999         linkat: Move AC_LIBOBJ invocations to module description.
6000         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
6001         here...
6002         * modules/linkat (configure.ac): ... to here.
6003
6004 2011-05-21  Bruno Haible  <bruno@clisp.org>
6005
6006         link: Respect rules for use of AC_LIBOBJ.
6007         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
6008         * modules/link (configure.ac): ... to here.
6009
6010 2011-05-21  Bruno Haible  <bruno@clisp.org>
6011
6012         lchown: Move AC_LIBOBJ invocations to module description.
6013         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6014         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6015         * modules/lchown (configure.ac): ... to here.
6016
6017 2011-05-21  Bruno Haible  <bruno@clisp.org>
6018
6019         iswctype: Move AC_LIBOBJ invocations to module description.
6020         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
6021         here...
6022         * modules/iswctype (configure.ac): ... to here.
6023
6024 2011-05-21  Bruno Haible  <bruno@clisp.org>
6025
6026         iswblank: Move AC_LIBOBJ invocations to module description.
6027         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
6028         here...
6029         * modules/iswblank (configure.ac): ... to here.
6030
6031 2011-05-21  Bruno Haible  <bruno@clisp.org>
6032
6033         atanl: Move AC_LIBOBJ invocations to module description.
6034         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
6035         * modules/atanl (configure.ac): ... to here.
6036
6037 2011-05-21  Bruno Haible  <bruno@clisp.org>
6038
6039         acosl: Move AC_LIBOBJ invocations to module description.
6040         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
6041         * modules/acosl (configure.ac): ... to here.
6042
6043 2011-05-21  Bruno Haible  <bruno@clisp.org>
6044
6045         asinl: Respect rules for use of AC_LIBOBJ.
6046         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
6047         * modules/asinl (configure.ac): ... to here.
6048
6049 2011-05-21  Bruno Haible  <bruno@clisp.org>
6050
6051         tanl: Move AC_LIBOBJ invocations to module description.
6052         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
6053         * modules/tanl (configure.ac): ... to here.
6054
6055 2011-05-21  Bruno Haible  <bruno@clisp.org>
6056
6057         cosl: Move AC_LIBOBJ invocations to module description.
6058         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
6059         * modules/cosl (configure.ac): ... to here.
6060
6061 2011-05-21  Bruno Haible  <bruno@clisp.org>
6062
6063         sinl: Move AC_LIBOBJ invocations to module description.
6064         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
6065         * modules/sinl (configure.ac): ... to here.
6066
6067 2011-05-21  Bruno Haible  <bruno@clisp.org>
6068
6069         logl: Move AC_LIBOBJ invocations to module description.
6070         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
6071         * modules/logl (configure.ac): ... to here.
6072
6073 2011-05-21  Bruno Haible  <bruno@clisp.org>
6074
6075         expl: Move AC_LIBOBJ invocations to module description.
6076         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
6077         * modules/expl (configure.ac): ... to here.
6078
6079 2011-05-21  Bruno Haible  <bruno@clisp.org>
6080
6081         roundl: Move AC_LIBOBJ invocations to module description.
6082         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
6083         * modules/roundl (configure.ac): ... to here.
6084
6085 2011-05-21  Bruno Haible  <bruno@clisp.org>
6086
6087         round: Move AC_LIBOBJ invocations to module description.
6088         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
6089         * modules/round (configure.ac): ... to here.
6090
6091 2011-05-21  Bruno Haible  <bruno@clisp.org>
6092
6093         roundf: Move AC_LIBOBJ invocations to module description.
6094         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
6095         * modules/roundf (configure.ac): ... to here.
6096
6097 2011-05-21  Bruno Haible  <bruno@clisp.org>
6098
6099         truncl: Move AC_LIBOBJ invocations to module description.
6100         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
6101         * modules/truncl (configure.ac): ... to here.
6102
6103 2011-05-21  Bruno Haible  <bruno@clisp.org>
6104
6105         trunc: Move AC_LIBOBJ invocations to module description.
6106         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
6107         * modules/trunc (configure.ac): ... to here.
6108
6109 2011-05-21  Bruno Haible  <bruno@clisp.org>
6110
6111         truncf: Move AC_LIBOBJ invocations to module description.
6112         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
6113         * modules/truncf (configure.ac): ... to here.
6114
6115 2011-05-21  Bruno Haible  <bruno@clisp.org>
6116
6117         ceill: Move AC_LIBOBJ invocations to module description.
6118         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
6119         * modules/ceill (configure.ac): ... to here.
6120
6121 2011-05-21  Bruno Haible  <bruno@clisp.org>
6122
6123         ceil: Move AC_LIBOBJ invocations to module description.
6124         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
6125         * modules/ceil (configure.ac): ... to here.
6126
6127 2011-05-21  Bruno Haible  <bruno@clisp.org>
6128
6129         ceilf: Move AC_LIBOBJ invocations to module description.
6130         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
6131         * modules/ceilf (configure.ac): ... to here.
6132
6133 2011-05-21  Bruno Haible  <bruno@clisp.org>
6134
6135         floorl: Respect rules for use of AC_LIBOBJ.
6136         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
6137         * modules/floorl (configure.ac): ... to here.
6138
6139 2011-05-21  Bruno Haible  <bruno@clisp.org>
6140
6141         floor: Respect rules for use of AC_LIBOBJ.
6142         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
6143         * modules/floor (configure.ac): ... to here.
6144
6145 2011-05-21  Bruno Haible  <bruno@clisp.org>
6146
6147         floorf: Move AC_LIBOBJ invocations to module description.
6148         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
6149         * modules/floorf (configure.ac): ... to here.
6150
6151 2011-05-20  Bruno Haible  <bruno@clisp.org>
6152
6153         sqrtl: Respect rules for use of AC_LIBOBJ.
6154         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
6155         * modules/sqrtl (configure.ac): ... to here.
6156
6157 2011-05-20  Bruno Haible  <bruno@clisp.org>
6158
6159         ldexpl: Respect rules for use of AC_LIBOBJ.
6160         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
6161         * modules/ldexpl (configure.ac): ... to here.
6162
6163 2011-05-20  Bruno Haible  <bruno@clisp.org>
6164
6165         frexpl*: Respect rules for use of AC_LIBOBJ.
6166         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
6167         invocation from here...
6168         * modules/frexpl (configure.ac): ... to here.
6169         * modules/frexpl-nolibm (configure.ac): ... and here.
6170
6171 2011-05-20  Bruno Haible  <bruno@clisp.org>
6172
6173         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
6174         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
6175         invocation from here...
6176         * modules/frexp (configure.ac): ... to here.
6177         * modules/frexp-nolibm (configure.ac): ... and here.
6178
6179 2011-05-20  Bruno Haible  <bruno@clisp.org>
6180
6181         isnan: Respect rules for use of AC_LIBOBJ.
6182         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
6183         invocations here.
6184         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
6185         REPLACE_ISNAN.
6186         * modules/isnand (configure.ac): Likewise.
6187         * modules/isnanl (configure.ac): Likewise.
6188
6189 2011-05-20  Bruno Haible  <bruno@clisp.org>
6190
6191         isnanl*: Respect rules for use of AC_LIBOBJ.
6192         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
6193         invocation from here...
6194         * modules/isnanl (configure.ac): ... to here.
6195         * modules/isnanl-nolibm (configure.ac): ... and here.
6196
6197 2011-05-20  Bruno Haible  <bruno@clisp.org>
6198
6199         isnand*: Move AC_LIBOBJ invocations to module description.
6200         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
6201         invocation from here...
6202         * modules/isnand (configure.ac): ... to here.
6203         * modules/isnand-nolibm (configure.ac): ... and here.
6204
6205 2011-05-20  Bruno Haible  <bruno@clisp.org>
6206
6207         isnanf*: Move AC_LIBOBJ invocations to module description.
6208         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
6209         invocation from here...
6210         * modules/isnanf (configure.ac): ... to here.
6211         * modules/isnanf-nolibm (configure.ac): ... and here.
6212
6213 2011-05-20  Bruno Haible  <bruno@clisp.org>
6214
6215         isnan*: Separate the AC_LIBOBJ invocations.
6216         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
6217         AC_LIBOBJ invocation.
6218         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
6219         here.
6220         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
6221         AC_LIBOBJ invocation.
6222         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
6223         here.
6224         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
6225         AC_LIBOBJ invocation.
6226         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
6227         here.
6228         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
6229
6230 2011-05-08  Bruno Haible  <bruno@clisp.org>
6231
6232         isinf: Move AC_LIBOBJ invocations to module description.
6233         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
6234         * modules/isinf (configure.ac): ... to here.
6235
6236 2011-05-08  Bruno Haible  <bruno@clisp.org>
6237
6238         isfinite: Move AC_LIBOBJ invocations to module description.
6239         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
6240         * modules/isfinite (configure.ac): ... to here.
6241
6242 2011-05-08  Bruno Haible  <bruno@clisp.org>
6243
6244         isblank: Move AC_LIBOBJ invocations to module description.
6245         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
6246         here...
6247         * modules/isblank (configure.ac): ... to here.
6248
6249 2011-05-08  Bruno Haible  <bruno@clisp.org>
6250
6251         isapipe: Move AC_LIBOBJ invocations to module description.
6252         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
6253         gl_PREREQ_ISAPIPE invocations from here...
6254         * modules/isapipe (configure.ac): ... to here.
6255         (Depends-on): Update condition.
6256
6257 2011-05-08  Bruno Haible  <bruno@clisp.org>
6258
6259         ioctl: Move AC_LIBOBJ invocations to module description.
6260         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
6261         invocations from here...
6262         * modules/ioctl (configure.ac): ... to here.
6263         (Depends-on): Update condition.
6264
6265 2011-05-08  Bruno Haible  <bruno@clisp.org>
6266
6267         imaxdiv: Move AC_LIBOBJ invocations to module description.
6268         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
6269         invocations from here...
6270         * modules/imaxdiv (configure.ac): ... to here.
6271
6272 2011-05-08  Bruno Haible  <bruno@clisp.org>
6273
6274         imaxabs: Move AC_LIBOBJ invocations to module description.
6275         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
6276         invocations from here...
6277         * modules/imaxabs (configure.ac): ... to here.
6278
6279 2011-05-08  Bruno Haible  <bruno@clisp.org>
6280
6281         getaddrinfo: Move AC_LIBOBJ invocations to module description.
6282         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
6283         AC_LIBOBJ invocations from here...
6284         * modules/getaddrinfo (configure.ac): ... to here.
6285         (Depends-on): Add conditions.
6286
6287 2011-05-08  Bruno Haible  <bruno@clisp.org>
6288
6289         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6290         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
6291         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6292         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
6293         (gl_PREREQ_INET_PTON): ... from here.
6294         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
6295         gl_PREREQ_INET_PTON here.
6296         (Depends-on): Update condition.
6297
6298 2011-05-08  Bruno Haible  <bruno@clisp.org>
6299
6300         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6301         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
6302         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6303         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
6304         (gl_PREREQ_INET_NTOP): ... from here.
6305         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
6306         gl_PREREQ_INET_NTOP here.
6307         (Depends-on): Update condition.
6308
6309 2011-05-08  Bruno Haible  <bruno@clisp.org>
6310
6311         iconv_open: Move AC_LIBOBJ invocations to module description.
6312         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
6313         AC_LIBOBJ invocations from here...
6314         * modules/iconv_open (configure.ac): ... to here.
6315
6316 2011-05-08  Bruno Haible  <bruno@clisp.org>
6317
6318         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
6319         If module 'iconv_open' is among the main modules and module
6320         'iconv_open-utf' is among the tests dependencies, then
6321         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
6322         return the special iconv_t values. Therefore iconv() and iconv_close()
6323         must support these special iconv_t values, already in lib, not only in
6324         tests.
6325         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
6326         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
6327         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
6328         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
6329         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
6330         (Depends-on): Add the dependencies of iconv_open-utf.
6331         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
6332         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
6333         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
6334
6335 2011-05-08  Bruno Haible  <bruno@clisp.org>
6336
6337         group-member: Move AC_LIBOBJ invocations to module description.
6338         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
6339         gl_PREREQ_GROUP_MEMBER invocations from here...
6340         * modules/group-member (configure.ac): ... to here.
6341
6342 2011-05-08  Bruno Haible  <bruno@clisp.org>
6343
6344         grantpt: Move AC_LIBOBJ invocations to module description.
6345         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
6346         invocations from here...
6347         * modules/grantpt (configure.ac): ... to here.
6348
6349 2011-05-08  Bruno Haible  <bruno@clisp.org>
6350
6351         glob: Move AC_LIBOBJ invocations to module description.
6352         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
6353         from here...
6354         * modules/glob (configure.ac): ... to here.
6355
6356 2011-05-08  Bruno Haible  <bruno@clisp.org>
6357
6358         getusershell: Move AC_LIBOBJ invocations to module description.
6359         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
6360         Move AC_LIBOBJ invocation from here...
6361         * modules/getusershell (configure.ac): ... to here.
6362         (Depends-on): Update condition.
6363
6364 2011-05-08  Bruno Haible  <bruno@clisp.org>
6365
6366         gettimeofday: Move AC_LIBOBJ invocations to module description.
6367         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
6368         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
6369         gl_PREREQ_GETTIMEOFDAY invocations from here...
6370         * modules/gettimeofday (configure.ac): ... to here.
6371
6372 2011-05-08  Bruno Haible  <bruno@clisp.org>
6373
6374         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
6375         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
6376         just gl_FUNC_TZSET.
6377         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
6378         (gl_FUNC_TZSET_CLOBBER): Remove actions.
6379         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
6380         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
6381
6382 2011-05-08  Bruno Haible  <bruno@clisp.org>
6383
6384         getsubopt: Move AC_LIBOBJ invocations to module description.
6385         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
6386         gl_PREREQ_GETSUBOPT invocations from here...
6387         * modules/getsubopt (configure.ac): ... to here.
6388
6389 2011-05-08  Bruno Haible  <bruno@clisp.org>
6390
6391         getpass-gnu: Move AC_LIBOBJ invocations to module description.
6392         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
6393         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
6394         * modules/getpass-gnu (configure.ac): ... to here.
6395
6396 2011-05-08  Bruno Haible  <bruno@clisp.org>
6397
6398         getpass: Move AC_LIBOBJ invocations to module description.
6399         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
6400         gl_PREREQ_GETPASS invocations from here...
6401         * modules/getpass (configure.ac): ... to here.
6402
6403 2011-05-08  Bruno Haible  <bruno@clisp.org>
6404
6405         getpagesize: Move AC_LIBOBJ invocations to module description.
6406         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
6407         from here...
6408         * modules/getpagesize (configure.ac): ... to here.
6409
6410 2011-05-08  Bruno Haible  <bruno@clisp.org>
6411
6412         getopt: Move AC_LIBOBJ invocations to module description.
6413         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
6414         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
6415         invocations from here...
6416         * modules/getopt-gnu (configure.ac): ... to here.
6417         * modules/getopt-posix (configure.ac): ... and here.
6418         (Depends-on): Update condition.
6419
6420 2011-05-08  Bruno Haible  <bruno@clisp.org>
6421
6422         getopt, argp: Respect rules for use of AC_LIBOBJ.
6423         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
6424         (gl_REPLACE_GETOPT_ALWAYS): New macro.
6425         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
6426         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
6427
6428 2011-05-08  Bruno Haible  <bruno@clisp.org>
6429
6430         getlogin_r: Move AC_LIBOBJ invocations to module description.
6431         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
6432         gl_PREREQ_GETLOGIN_R invocations from here...
6433         * modules/getlogin_r (configure.ac): ... to here.
6434
6435 2011-05-08  Bruno Haible  <bruno@clisp.org>
6436
6437         getlogin: Move AC_LIBOBJ invocations to module description.
6438         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
6439         here...
6440         * modules/getlogin (configure.ac): ... to here.
6441
6442 2011-05-08  Bruno Haible  <bruno@clisp.org>
6443
6444         getloadavg: Move AC_LIBOBJ invocations to module description.
6445         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
6446         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
6447         * modules/getloadavg (configure.ac): ... to here.
6448
6449 2011-05-08  Bruno Haible  <bruno@clisp.org>
6450
6451         gethrxtime: Move AC_LIBOBJ invocations to module description.
6452         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
6453         LIB_GETHRXTIME from here...
6454         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
6455         invocations from here...
6456         * modules/gethrxtime (configure.ac): ... to here.
6457
6458 2011-05-08  Bruno Haible  <bruno@clisp.org>
6459
6460         gethostname: Move AC_LIBOBJ invocations to module description.
6461         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
6462         gl_PREREQ_GETHOSTNAME invocations from here...
6463         * modules/gethostname (configure.ac): ... to here.
6464
6465 2011-05-08  Bruno Haible  <bruno@clisp.org>
6466
6467         getgroups: Move AC_LIBOBJ invocations to module description.
6468         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
6469         here...
6470         * modules/getgroups (configure.ac): ... to here.
6471
6472 2011-05-08  Bruno Haible  <bruno@clisp.org>
6473
6474         getdtablesize: Move AC_LIBOBJ invocations to module description.
6475         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
6476         invocation from here...
6477         * modules/getdtablesize (configure.ac): ... to here.
6478
6479 2011-05-08  Bruno Haible  <bruno@clisp.org>
6480
6481         getdomainname: Move AC_LIBOBJ invocations to module description.
6482         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
6483         gl_PREREQ_GETDOMAINNAME invocations from here...
6484         * modules/getdomainname (configure.ac): ... to here.
6485
6486 2011-05-08  Bruno Haible  <bruno@clisp.org>
6487
6488         getline: Move AC_LIBOBJ invocations to module description.
6489         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
6490         invocations from here...
6491         * modules/getline (configure.ac): ... to here.
6492
6493 2011-05-08  Bruno Haible  <bruno@clisp.org>
6494
6495         getline: Simplify.
6496         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
6497         It's already handled through the module dependency.
6498
6499 2011-05-08  Bruno Haible  <bruno@clisp.org>
6500
6501         getdelim: Move AC_LIBOBJ invocations to module description.
6502         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
6503         and gl_PREREQ_GETDELIM invocations from here...
6504         * modules/getdelim (configure.ac): ... to here.
6505         (Depends-on): Fix condition.
6506
6507 2011-05-08  Bruno Haible  <bruno@clisp.org>
6508
6509         getcwd: Move AC_LIBOBJ invocations to module description.
6510         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
6511         invocations from here...
6512         * modules/getcwd (configure.ac): ... to here.
6513
6514 2011-05-08  Bruno Haible  <bruno@clisp.org>
6515
6516         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
6517         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
6518         here...
6519         * modules/getcwd-lgpl (configure.ac): ... to here.
6520
6521 2011-05-07  Bruno Haible  <bruno@clisp.org>
6522
6523         crypto/gc: Move AC_LIBOBJ invocations to module description.
6524         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
6525         * modules/crypto/gc (configure.ac): ... to here.
6526
6527 2011-05-07  Bruno Haible  <bruno@clisp.org>
6528
6529         fwriting: Move AC_LIBOBJ invocations to module description.
6530         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
6531         here...
6532         * modules/fwriting (configure.ac): ... to here.
6533
6534 2011-05-07  Bruno Haible  <bruno@clisp.org>
6535
6536         fwritable: Move AC_LIBOBJ invocations to module description.
6537         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
6538         here...
6539         * modules/fwritable (configure.ac): ... to here.
6540
6541 2011-05-07  Bruno Haible  <bruno@clisp.org>
6542
6543         futimens: Move AC_LIBOBJ invocations to module description.
6544         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
6545         here...
6546         * modules/futimens (configure.ac): ... to here.
6547
6548 2011-05-07  Bruno Haible  <bruno@clisp.org>
6549
6550         ftruncate: Move AC_LIBOBJ invocations to module description.
6551         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
6552         gl_PREREQ_FTRUNCATE invocations from here...
6553         * modules/ftruncate (configure.ac): ... to here.
6554
6555 2011-05-07  Bruno Haible  <bruno@clisp.org>
6556
6557         fsync: Move AC_LIBOBJ invocations to module description.
6558         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
6559         invocations from here...
6560         * modules/fsync (configure.ac): ... to here.
6561
6562 2011-05-07  Bruno Haible  <bruno@clisp.org>
6563
6564         fsusage: Move AC_LIBOBJ invocations to module description.
6565         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
6566         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
6567         * modules/fsusage (configure.ac): ... to here.
6568
6569 2011-05-07  Bruno Haible  <bruno@clisp.org>
6570
6571         freopen: Move AC_LIBOBJ invocations to module description.
6572         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
6573         invocations from here...
6574         * modules/freopen (configure.ac): ... to here.
6575
6576 2011-05-07  Bruno Haible  <bruno@clisp.org>
6577
6578         free: Move AC_LIBOBJ invocations to module description.
6579         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
6580         invocations from here...
6581         * modules/free (configure.ac): ... to here.
6582
6583 2011-05-07  Bruno Haible  <bruno@clisp.org>
6584
6585         freadable: Move AC_LIBOBJ invocations to module description.
6586         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
6587         here...
6588         * modules/freadable (configure.ac): ... to here.
6589
6590 2011-05-07  Bruno Haible  <bruno@clisp.org>
6591
6592         fpurge: Move AC_LIBOBJ invocations to module description.
6593         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
6594         invocations from here...
6595         * modules/fpurge (configure.ac): ... to here.
6596
6597 2011-05-07  Bruno Haible  <bruno@clisp.org>
6598
6599         fpending: Move AC_LIBOBJ invocations to module description.
6600         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
6601         gl_FUNC_FPENDING.
6602         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
6603         invocations from here...
6604         * modules/fpending (configure.ac): ... to here.
6605
6606 2011-05-07  Bruno Haible  <bruno@clisp.org>
6607
6608         fopen: Move AC_LIBOBJ invocations to module description.
6609         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
6610         invocations from here...
6611         * modules/fopen (configure.ac): ... to here.
6612
6613 2011-05-07  Bruno Haible  <bruno@clisp.org>
6614
6615         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
6616         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
6617         gl_FUNC_FNMATCH_POSIX.
6618         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
6619         invocations from here...
6620         * modules/fnmatch (configure.ac): ... to here.
6621         * modules/fnmatch-gnu (configure.ac): ... and here.
6622
6623 2011-05-07  Bruno Haible  <bruno@clisp.org>
6624
6625         flock: Move AC_LIBOBJ invocations to module description.
6626         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
6627         invocations from here...
6628         * modules/flock (configure.ac): ... to here.
6629
6630 2011-05-07  Bruno Haible  <bruno@clisp.org>
6631
6632         fileblocks: Move AC_LIBOBJ invocations to module description.
6633         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
6634         gl_PREREQ_FILEBLOCKS invocations from here...
6635         * modules/fileblocks (configure.ac): ... to here.
6636
6637 2011-05-06  Bruno Haible  <bruno@clisp.org>
6638
6639         fflush: Move AC_LIBOBJ invocations to module description.
6640         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
6641         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
6642         invocations from here...
6643         * modules/fflush (configure.ac): ... to here.
6644
6645 2011-05-06  Bruno Haible  <bruno@clisp.org>
6646
6647         fdopendir: Move AC_LIBOBJ invocations to module description.
6648         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
6649         here...
6650         * modules/fdopendir (configure.ac): ... to here.
6651         (Depends-on): Improve conditions.
6652
6653 2011-05-06  Bruno Haible  <bruno@clisp.org>
6654
6655         _Exit: Move AC_LIBOBJ invocations to module description.
6656         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
6657         invocations from here...
6658         * modules/_Exit (configure.ac): ... to here.
6659
6660 2011-05-21  Bruno Haible  <bruno@clisp.org>
6661
6662         euidaccess: Respect rules for use of AC_LIBOBJ.
6663         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6664         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
6665         from here...
6666         * modules/euidaccess (configure.ac): ... to here.
6667
6668 2011-05-06  Bruno Haible  <bruno@clisp.org>
6669
6670         error: Move AC_LIBOBJ invocations to module description.
6671         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
6672         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
6673         invocations from here...
6674         * modules/error (configure.ac): ... to here.
6675
6676 2011-05-06  Bruno Haible  <bruno@clisp.org>
6677
6678         duplocale: Move AC_LIBOBJ invocations to module description.
6679         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
6680         gl_PREREQ_DUPLOCALE invocations from here...
6681         * modules/duplocale (configure.ac): ... to here.
6682
6683 2011-05-05  Bruno Haible  <bruno@clisp.org>
6684
6685         dirfd: Move AC_LIBOBJ invocations to module description.
6686         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
6687         gl_FUNC_DIRFD.
6688         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
6689         here...
6690         * modules/dirfd (configure.ac): ... to here.
6691         (Depends-on): Fix condition.
6692
6693 2011-05-05  Bruno Haible  <bruno@clisp.org>
6694
6695         chown: Respect rules for use of AC_LIBOBJ.
6696         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
6697         * modules/chown (configure.ac): ... to here.
6698
6699 2011-05-05  Bruno Haible  <bruno@clisp.org>
6700
6701         chdir-long: Move AC_LIBOBJ invocations to module description.
6702         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
6703         gl_PREREQ_CHDIR_LONG invocations from here...
6704         * modules/chdir-long (configure.ac): ... to here.
6705
6706 2011-05-05  Bruno Haible  <bruno@clisp.org>
6707
6708         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
6709         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
6710         from here...
6711         * modules/canonicalize-lgpl (configure.ac): ... to here.
6712
6713 2011-05-05  Bruno Haible  <bruno@clisp.org>
6714
6715         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
6716         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
6717         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
6718         REPLACE_CALLOC.
6719         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
6720         * modules/calloc-gnu (configure.ac): Likewise.
6721
6722 2011-05-05  Bruno Haible  <bruno@clisp.org>
6723
6724         btowc: Move AC_LIBOBJ invocations to module description.
6725         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
6726         invocations from here...
6727         * modules/btowc (configure.ac): ... to here.
6728
6729 2011-05-21  Bruno Haible  <bruno@clisp.org>
6730
6731         atexit: Move AC_LIBOBJ invocations to module description.
6732         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
6733         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
6734         here...
6735         * modules/atexit (configure.ac): ... to here.
6736
6737 2011-05-05  Bruno Haible  <bruno@clisp.org>
6738
6739         atoll: Move AC_LIBOBJ invocations to module description.
6740         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
6741         invocations from here...
6742         * modules/atoll (configure.ac): ... to here.
6743
6744 2011-05-05  Bruno Haible  <bruno@clisp.org>
6745
6746         argz: Move AC_LIBOBJ invocations to module description.
6747         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
6748         * modules/argz (configure.ac): ... to here.
6749
6750 2011-05-05  Bruno Haible  <bruno@clisp.org>
6751
6752         alphasort: Move AC_LIBOBJ invocations to module description.
6753         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
6754         gl_PREREQ_ALPHASORT invocations from here...
6755         * modules/alphasort (configure.ac): ... to here.
6756
6757 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6758
6759         verify: new macro verify_expr; verify_true deprecated
6760         * NEWS: Mention this.
6761         * doc/verify.texi (Compile-time Assertions): Document this.
6762         * lib/verify.h (verify_true): Deprecate.
6763         (verify_expr): New macro.
6764         * tests/test-verify.c (function): Test verify_expr.
6765
6766 2011-06-14  Jim Meyering  <meyering@redhat.com>
6767
6768         init.sh: give more portable redirection-related advice in a comment
6769         * tests/init.sh (stderr_fileno_): Update the advice in comments.
6770         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
6771         for lots of discussion.  Stefano Lattarini suggested the solution
6772         of putting "9>&2" after the command.  Reported by Bruno Haible.
6773
6774 2011-06-13  Bruno Haible  <bruno@clisp.org>
6775
6776         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
6777         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
6778         'none'.
6779
6780 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6781
6782         ftoastr: use strtof only if HAVE_STRTOF
6783         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
6784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
6785         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
6786         * modules/ftoastr (configure.ac): Check for strtof.
6787
6788 2011-06-13  Bruno Haible  <bruno@clisp.org>
6789
6790         gnulib-tool: Addendum to 2011-06-08 commit.
6791         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
6792         and --witness-c-macro have been given, augment AM_CPPFLAGS.
6793
6794 2011-06-13  Bruno Haible  <bruno@clisp.org>
6795
6796         fseeko: Provide a non-inline replacement of fseek().
6797         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6798         * modules/fseeko (Depends-on): Add fseek.
6799         * modules/fseek (License): Change to LGPLv2+.
6800
6801 2011-06-13  Bruno Haible  <bruno@clisp.org>
6802
6803         ftello: Provide a non-inline replacement of ftell().
6804         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6805         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6806         not have ftello() (such as on mingw).
6807         * modules/ftello (Depends-on): Add ftell.
6808         * modules/ftell (License): Change to LGPLv2+.
6809
6810 2011-05-07  Bruno Haible  <bruno@clisp.org>
6811
6812         ftell: Move AC_LIBOBJ invocations to module description.
6813         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6814         * modules/ftell (configure.ac): ... to here.
6815
6816 2011-05-07  Bruno Haible  <bruno@clisp.org>
6817
6818         ftello: Respect rules for use of AC_LIBOBJ.
6819         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6820         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6821         here...
6822         * modules/ftello (configure.ac): ... to here.
6823
6824 2011-05-07  Bruno Haible  <bruno@clisp.org>
6825
6826         fseeko: Simplify.
6827         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
6828         (gl_FUNC_FSEEKO): Inline it here.
6829
6830 2011-05-07  Bruno Haible  <bruno@clisp.org>
6831
6832         fseek: Move AC_LIBOBJ invocations to module description.
6833         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
6834         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6835         * modules/fseek (configure.ac): ... to here.
6836
6837 2011-05-07  Bruno Haible  <bruno@clisp.org>
6838
6839         fseek: Respect rules for use of AC_LIBOBJ.
6840         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
6841         here...
6842         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
6843
6844 2011-05-07  Bruno Haible  <bruno@clisp.org>
6845
6846         fseeko: Respect rules for use of AC_LIBOBJ.
6847         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
6848         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
6849         here...
6850         * modules/fseeko (configure.ac): ... to here.
6851
6852 2011-06-13  Bruno Haible  <bruno@clisp.org>
6853
6854         gnulib-tool: Allow comments in the 'Depends-on' section.
6855         * doc/gnulib.texi (Module description): Mention comment syntax in the
6856         Depends-on section.
6857         * gnulib-tool (func_get_dependencies): Filter out comment lines.
6858
6859 2011-06-13  Bruno Haible  <bruno@clisp.org>
6860
6861         file-set.h: guard __attibute__ use, now that it's not always defined
6862         * lib/file-set.h (record_file): Use __attribute__ only with compiler
6863         versions that support it.  This fixes a coreutils build failure with
6864         the vendor cc on HP-UX 11.31.
6865
6866 2011-06-12  Bruno Haible  <bruno@clisp.org>
6867
6868         acl: Add support for HP-UX >= 11.11 JFS ACLs.
6869         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
6870         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
6871         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
6872         (acl, aclsort): New declarations.
6873         (aclv_nontrivial): New declaration.
6874         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
6875         (file_has_acl): Read also the second kind of HP-UX ACLs.
6876         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
6877         kind of HP-UX ACLs if the first kind fails.
6878         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
6879         second kind of HP-UX ACLs.
6880         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
6881         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
6882         agree.
6883         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6884         hpuxjfs.
6885         Handle hpuxjfs.
6886         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6887         hpuxjfs.
6888         Handle hpuxjfs.
6889         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6890         (func_test_same_acls): Use both lsacl and getacl.
6891         Handle hpuxjfs.
6892         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6893         (func_test_same_acls): Use both lsacl and getacl.
6894         Handle hpuxjfs.
6895
6896 2011-06-12  Bruno Haible  <bruno@clisp.org>
6897
6898         acl: Complete the 2010-08-10 fix.
6899         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6900         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6901         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6902         explicitly.
6903         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6904         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6905
6906 2011-06-12  Bruno Haible  <bruno@clisp.org>
6907
6908         spawn-pipe tests: Comments.
6909         * tests/test-spawn-pipe-child.c (main): Update comment.
6910         Reported by James Youngman <jay@gnu.org>.
6911
6912 2011-06-11  James Youngman  <jay@gnu.org>
6913
6914         New module 'stat-size'.
6915         * modules/stat-size: New module.  Provides macros for accessing
6916         file size information in instances of struct stat.  Depends on the
6917         fileblocks module because it calls st_blocks.
6918         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6919         * doc/gnulib.texi: Include stat-size.texi.
6920         * doc/stat-size.texi: Documentation for this module.
6921         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6922         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6923         AC_STRUCT_ST_BLOCKS.
6924
6925 2011-06-09  Bruno Haible  <bruno@clisp.org>
6926
6927         thread: Support pthreads-win32.
6928         * lib/glthread/thread.h (gl_thread_self): Define differently on
6929         pthreads-win32.
6930         (gl_null_thread): New declaration.
6931         (gl_thread_self_pointer): New macro.
6932         * lib/glthread/thread.c (gl_null_thread): New constant.
6933         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6934         gl_thread_self.
6935         * tests/test-tls.c: Likewise.
6936         Suggested by Paul Eggert. Reported by Eric Blake.
6937
6938 2011-06-09  Bruno Haible  <bruno@clisp.org>
6939
6940         thread: Fix confusion between NULL and 0.
6941         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6942         Reported by Paul Eggert.
6943
6944 2011-06-09  Bruno Haible  <bruno@clisp.org>
6945
6946         spawn-pipe tests: Avoid test failure on HP-UX 11.
6947         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6948         is closed.
6949
6950 2011-06-09  Bruno Haible  <bruno@clisp.org>
6951
6952         acl tests: Fix compilation error on HP-UX 11.
6953         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6954
6955 2011-06-09  Bruno Haible  <bruno@clisp.org>
6956
6957         rmdir: Avoid test failure on HP-UX 10.20.
6958         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6959         EEXIST.
6960
6961 2011-06-08  Eric Blake  <eblake@redhat.com>
6962
6963         perror: fix test on mingw
6964         * modules/perror-tests (Depends-on): Add dup2.
6965
6966         strerror_r-posix: fix on MacOS
6967         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6968         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6969         logic bug.
6970         * lib/strerror_r.c (strerror_r): Fix the bug.
6971         * lib/strerror.c (strerror): Likewise.
6972         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6973         problem.
6974         * doc/posix-functions/strerror.texi (strerror): Likewise.
6975         * doc/posix-functions/perror.texi (perror): Likewise.
6976         * tests/test-strerror.c (main): Enhance test.
6977         * tests/test-strerror_r.c (main): Likewise.
6978
6979 2011-06-08  Bruno Haible  <bruno@clisp.org>
6980
6981         gnulib-tool: Better isolation between different gnulib-tool invocations.
6982         * gnulib-tool: New option --witness-c-macro.
6983         (witness_c_macro): New variable.
6984         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6985         AM_CPPFLAGS define it as a C macro.
6986         (func_emit_tests_Makefile_am): Likewise.
6987         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6988         read it from there.
6989         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6990         m4_define, not AC_DEFUN.
6991         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6992         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6993         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6994         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6995         s|...|...|, to substitute the values of the GNULIB_* module indicator
6996         variables.
6997         * modules/dirent (Makefile.am): Likewise.
6998         * modules/fcntl-h (Makefile.am): Likewise.
6999         * modules/iconv-h (Makefile.am): Likewise.
7000         * modules/langinfo (Makefile.am): Likewise.
7001         * modules/locale (Makefile.am): Likewise.
7002         * modules/math (Makefile.am): Likewise.
7003         * modules/netdb (Makefile.am): Likewise.
7004         * modules/poll-h (Makefile.am): Likewise.
7005         * modules/pty (Makefile.am): Likewise.
7006         * modules/search (Makefile.am): Likewise.
7007         * modules/signal (Makefile.am): Likewise.
7008         * modules/spawn (Makefile.am): Likewise.
7009         * modules/stdio (Makefile.am): Likewise.
7010         * modules/stdlib (Makefile.am): Likewise.
7011         * modules/string (Makefile.am): Likewise.
7012         * modules/sys_ioctl (Makefile.am): Likewise.
7013         * modules/sys_select (Makefile.am): Likewise.
7014         * modules/sys_socket (Makefile.am): Likewise.
7015         * modules/sys_stat (Makefile.am): Likewise.
7016         * modules/sys_times (Makefile.am): Likewise.
7017         * modules/sys_utsname (Makefile.am): Likewise.
7018         * modules/sys_wait (Makefile.am): Likewise.
7019         * modules/termios (Makefile.am): Likewise.
7020         * modules/time (Makefile.am): Likewise.
7021         * modules/unistd (Makefile.am): Likewise.
7022         * modules/wchar (Makefile.am): Likewise.
7023
7024 2011-06-08  Eric Blake  <eblake@redhat.com>
7025
7026         strerror: simplify replacement
7027         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
7028         * modules/strerror (configure.ac): No prereqs needed here...
7029         * modules/strerror-override (configure.ac): ...but this needs it.
7030         (Files): Add file for needed prereq macro.
7031
7032 2011-06-08  Bruno Haible  <bruno@clisp.org>
7033
7034         strerror_r-posix: Tweaks.
7035         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
7036         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
7037         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
7038         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
7039         (gl_FUNC_STRERROR_R): ... to here.
7040         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
7041
7042 2011-06-07  Eric Blake  <eblake@redhat.com>
7043
7044         perror: document fixed bugs
7045         * doc/posix-functions/perror.texi (perror): Document recent
7046         patches.
7047
7048 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
7049
7050         stat-time: get_stat_birthtime failure is better-defined
7051         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
7052         return a timestamp whose tv_sec and tv_nsec values are both -1.
7053         Previously, the spec said only that the tv_nsec value was negative.
7054         This upward-compatible change simplifies GNU tar a bit.
7055
7056 2011-06-07  Eric Blake  <eblake@redhat.com>
7057
7058         strerror_r-posix: work around cygwin 1.7.9
7059         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
7060         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
7061         bug without replacing strerror_r.
7062         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
7063         strerror_r is buggy, but without requiring strerror_r compilation.
7064         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
7065
7066         test-perror: relax test to ignore cygwin bug
7067         * tests/test-perror2.c (main): Relax test on requiring detection
7068         of stream errors, and use unbuffered stream.
7069         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
7070         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
7071         * doc/posix-functions/fputc.texi (fputc): Likewise.
7072         * doc/posix-functions/fputs.texi (fputs): Likewise.
7073         * doc/posix-functions/fputws.texi (fputws): Likewise.
7074         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
7075         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
7076         * doc/posix-functions/getopt.texi (getopt): Likewise.
7077         * doc/posix-functions/perror.texi (perror): Likewise.
7078         * doc/posix-functions/printf.texi (printf): Likewise.
7079         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
7080         * doc/posix-functions/psignal.texi (psignal): Likewise.
7081         * doc/posix-functions/putc.texi (putc): Likewise.
7082         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
7083         Likewise.
7084         * doc/posix-functions/putchar.texi (putchar): Likewise.
7085         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
7086         Likewise.
7087         * doc/posix-functions/puts.texi (puts): Likewise.
7088         * doc/posix-functions/putwc.texi (putwc): Likewise.
7089         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
7090         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
7091         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7092         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
7093         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7094         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
7095         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
7096         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
7097
7098 2011-05-22  Bruno Haible  <bruno@clisp.org>
7099
7100         strerror: Move AC_LIBOBJ invocations to module description.
7101         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
7102         gl_PREREQ_STRERROR invocations from here...
7103         * modules/strerror (configure.ac): ... to here.
7104
7105 2011-05-21  Bruno Haible  <bruno@clisp.org>
7106
7107         perror: Use common idiom.
7108         * modules/perror (configure.ac): Reorder statements.
7109
7110 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
7111
7112         tests: fix usage message in 'mktempd_'
7113         * tests/init.sh (mktempd_): In the usage message, use literal
7114         'mktempd_', not '$ME' (which is even undefined), as the name of
7115         the subroutine.
7116
7117 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
7118
7119         tests init: new function 'fatal_', for hard errors
7120         Before this patch, the only way offered by tests/init.sh to
7121         properly signal a hard error was the `framework_failure_'
7122         function.  But the error message issued by that function,
7123         as its name would suggest, refers to a set-up failure in the
7124         testsuite, while hard errors can obviously also be due to
7125         other reasons.  The best way to fix this inconsistency is to
7126         introduce a new function with a more general error message.
7127         * tests/init.sh (fatal_): New function.
7128
7129 2011-06-06  Eric Blake  <eblake@redhat.com>
7130
7131         canonicalize-lgpl: use common idiom
7132         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
7133         over newer POSIX -Rf.
7134         Reported by Bruno Haible.
7135
7136         canonicalize-lgpl: work around AIX realpath bug
7137         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
7138         * doc/posix-functions/realpath.texi (realpath): Document it.
7139         Reported by Bruno Haible.
7140
7141         strerror: work around FreeBSD bug
7142         * lib/strerror.c (strerror): Special case 0.
7143         Reported by Bruno Haible.
7144
7145         strerror-override: avoid bloating errno module
7146         * modules/errno (Files, configure.ac): Move replacement strings...
7147         * modules/strerror-override: ...to new module.
7148         * modules/strerror (Depends-on): Add strerror-override.
7149         * modules/strerror_r-posix (Depends-on): Likewise.
7150         * MODULES.html.sh: Document new module.
7151         Reported by Bruno Haible.
7152
7153 2011-06-06  Bruno Haible  <bruno@clisp.org>
7154
7155         spawn-pipe tests: Rename program.
7156         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
7157         * tests/test-spawn-pipe-child.c: Update comment.
7158         * tests/test-spawn-pipe.sh: Update.
7159         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
7160
7161         spawn-pipe tests: Link the child program only against libc.
7162         * tests/test-spawn-pipe-child.c: New file, extracted from
7163         tests/test-spawn-pipe.c.
7164         (main): Expect only one argument.
7165         (is_open): New function, copied from tests/test-pipe.c.
7166         * tests/test-spawn-pipe.c: Don't include <errno.h>.
7167         (child_main): Remove function.
7168         (test_pipe): Pass only one argument to the child program.
7169         (main): Remove child process code. Expect the child program's name as
7170         first argument.
7171         * tests/test-spawn-pipe.sh: Pass the child program's name as first
7172         argument.
7173         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
7174         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
7175         test-spawn-pipe-child against no libraries.
7176
7177 2011-06-06  Bruno Haible  <bruno@clisp.org>
7178
7179         careadlinkat: Avoid mismatch between ssize_t and int.
7180         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
7181         * lib/careadlinkat.c (careadlinkatcwd): Define always.
7182
7183 2011-06-06  Jim Meyering  <meyering@redhat.com>
7184
7185         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
7186         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
7187         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
7188
7189 2011-06-05  Bruno Haible  <bruno@clisp.org>
7190
7191         ansi-c++-opt: Interoperability with libtool.
7192         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
7193         set the variable to "no", not to ":".
7194         * NEWS: Mention the change.
7195
7196 2011-06-05  Bruno Haible  <bruno@clisp.org>
7197
7198         acl: Fix test failure on AIX 7.
7199         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
7200         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
7201
7202 2011-06-05  Bruno Haible  <bruno@clisp.org>
7203
7204         pipe-filter-ii: Fix test failure on AIX and IRIX.
7205         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
7206         with EAGAIN, retry with a smaller buffer size.
7207
7208 2011-06-05  Bruno Haible  <bruno@clisp.org>
7209
7210         localename: Fix link dependencies.
7211         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
7212         * modules/localename-tests (Makefile.am): Link test-localename with
7213         $(LIBTHREAD).
7214
7215 2011-06-05  Bruno Haible  <bruno@clisp.org>
7216
7217         error: Avoid gcc warning.
7218         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
7219
7220 2011-06-05  Bruno Haible  <bruno@clisp.org>
7221
7222         unsetenv: Avoid gcc warning.
7223         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
7224
7225 2011-06-05  Bruno Haible  <bruno@clisp.org>
7226
7227         setenv: Avoid gcc warning.
7228         * lib/setenv.c (setenv): Provide declaration if system lacks it.
7229
7230 2011-06-05  Bruno Haible  <bruno@clisp.org>
7231
7232         sys_select: Ensure memset is declared also on AIX 7.
7233         * lib/sys_select.in.h: Include <string.h> also on AIX.
7234         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
7235         self-contained also on AIX 7.1.
7236
7237 2011-06-04  Jim Meyering  <meyering@redhat.com>
7238
7239         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
7240         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
7241         function name, "error".
7242         (_gl_translatable_diag_func_re): New configurable variable.
7243
7244 2011-06-04  Bruno Haible  <bruno@clisp.org>
7245
7246         getopt: Avoid gcc warning.
7247         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
7248
7249 2011-06-04  Bruno Haible  <bruno@clisp.org>
7250
7251         strerror_r: Fix comments.
7252         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
7253         commit.
7254
7255 2011-06-04  Bruno Haible  <bruno@clisp.org>
7256
7257         perror: Fix compilation error.
7258         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
7259         Undefine fprintf, not sprintf.
7260         * modules/perror (Depends-on): Remove intprops, verify.
7261
7262 2011-06-04  Bruno Haible  <bruno@clisp.org>
7263
7264         setlocale: Enable replacement on Cygwin 1.5.
7265         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
7266         Cygwin 1.5.x.
7267         * doc/posix-functions/setlocale.texi: Mention that the problem with the
7268         LC_CTYPE category also exists on Cygwin 1.5.x.
7269
7270 2011-06-04  Bruno Haible  <bruno@clisp.org>
7271
7272         strerror-override: Don't disable symbol renamings.
7273         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
7274         * lib/strerror-override.c: Include config.h.
7275         (strerror_override): Don't undefine.
7276
7277 2011-06-03  Bruno Haible  <bruno@clisp.org>
7278
7279         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
7280         * lib/localename.h: Update copyright header.
7281         * lib/localename.c: Likewise.
7282         * lib/relocatable.h: Likewise.
7283         * lib/relocatable.c: Likewise.
7284
7285 2011-06-02  Bruno Haible  <bruno@clisp.org>
7286
7287         doc: Fix a module name.
7288         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
7289
7290 2011-06-02  Bruno Haible  <bruno@clisp.org>
7291
7292         pipe2: Remove dependency on 'nonblocking' module.
7293         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
7294         O_NONBLOCK is defined by gnulib.
7295         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
7296         is zero.
7297         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
7298         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
7299         defined by gnulib.
7300         (get_nonblocking_flag): New function.
7301         (main): Test O_NONBLOCK flag only if it is nonzero.
7302         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
7303
7304 2011-06-03  Jim Meyering  <meyering@redhat.com>
7305
7306         maint: three new prohibit-header-without-use rules
7307         Prohibit use of cloexec.h, posixver.h, same.h without use.
7308         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
7309         (sc_prohibit_posixver_without_use): Likewise.
7310         (sc_prohibit_same_without_use): Likewise.
7311
7312 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
7313
7314         allocator: 'die' routine is now given requested size
7315         * lib/allocator.h (struct allocator.die): New size arg.
7316         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
7317         If the actual problem is an ssize_t limitation, not a size_t or
7318         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
7319
7320 2011-06-01  Eric Blake  <eblake@redhat.com>
7321
7322         strerror: drop strerror_r dependency
7323         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
7324         * lib/strerror-override.c (strerror_override): ...to new file.
7325         * lib/strerror-override.h: Add prototype.
7326         * lib/strerror-impl.h: Delete.
7327         * lib/strerror.c (strerror): New implementation.
7328         * modules/errno (Files): Add new files.
7329         (configure.ac): Compile new file as appropriate.
7330         * modules/strerror (Files): Drop unused file.
7331         (Depends-on): Drop strerror_r-posix.
7332         * MODULES.html.sh: Document strerror_r-posix.
7333         Requested by Sam Steingold.
7334
7335         perror: call strerror_r directly
7336         * modules/perror (Files): Drop strerror-impl.h.
7337         * lib/perror.c (perror): Use our own stack buffer, rather than
7338         calling a wrapper that uses static storage.
7339         * doc/posix-functions/perror.texi (perror): Document a limitation
7340         of our replacement.
7341
7342         strerror_r: fix includes for FreeBSD
7343         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
7344         since we use abort on some platforms.
7345         Reported by Matthias Bolte.
7346
7347 2011-05-31  Bruno Haible  <bruno@clisp.org>
7348
7349         Fix link errors in tests: openat-die uses gettext-h.
7350         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
7351         against $(LIBINTL).
7352         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
7353         against $(LIBINTL).
7354         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
7355         $(LIBINTL).
7356         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
7357         against $(LIBINTL).
7358         * modules/linkat-tests (Makefile.am): Link test-linkat against
7359         $(LIBINTL).
7360         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
7361         $(LIBINTL).
7362         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
7363         against $(LIBINTL).
7364         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
7365         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
7366         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
7367         $(LIBINTL).
7368         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
7369         $(LIBINTL).
7370         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
7371         $(LIBINTL).
7372         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7373
7374 2011-05-31  Bruno Haible  <bruno@clisp.org>
7375
7376         Fix link errors in tests: wait-process uses gettext-h.
7377         * modules/nonblocking-pipe-tests (Makefile.am): Set
7378         test_nonblocking_pipe_main_LDADD.
7379         * modules/nonblocking-socket-tests (Makefile.am): Link
7380         test-nonblocking-socket-main against $(LIBINTL).
7381         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7382
7383 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
7384
7385         assert-h: work around 'verify' incompatibility
7386         * lib/verify.h: Use @...@ directives, not ifdef.
7387         * modules/assert-h (assert.h): Implement the directives.
7388         (assert.h): Substitute the symbol-prefix more consistently.
7389
7390 2011-05-29  Jim Meyering  <meyering@redhat.com>
7391
7392         trim: remove three superfluous assignments
7393         * lib/trim.c (trim2): Remove three superfluous assignments
7394         and correct brace positioning.
7395
7396 2011-05-29  Bruno Haible  <bruno@clisp.org>
7397
7398         wctype-h: Avoid namespace pollution on Solaris 2.6.
7399         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
7400         identifiers.
7401         * doc/posix-headers/wctype.texi: Mention the problem.
7402         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7403
7404 2011-05-28  Jim Meyering  <meyering@redhat.com>
7405
7406         parse-datetime.y: accommodate -Wstrict-overflow
7407         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
7408         placate -Wstrict-overflow.
7409
7410         trim: avoid a warning from -O2 -Wstrict-overflow
7411         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
7412
7413 2011-05-29  Bruno Haible  <bruno@clisp.org>
7414
7415         gnulib-tool: Fix bug in yesterday's commit.
7416         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
7417         twice.
7418
7419 2011-05-29  Bruno Haible  <bruno@clisp.org>
7420
7421         Allow multiple gnulib generated include files to be combined.
7422         * gnulib-tool (func_compute_include_guard_prefix): New function.
7423         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
7424         ${gl_include_guard_prefix} references.
7425         (func_import, func_create_testdir): Invoke
7426         func_compute_include_guard_prefix.
7427         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
7428         * lib/ctype.in.h: Likewise.
7429         * lib/dirent.in.h: Likewise.
7430         * lib/errno.in.h: Likewise.
7431         * lib/fcntl.in.h: Likewise.
7432         * lib/float.in.h: Likewise.
7433         * lib/getopt.in.h: Likewise.
7434         * lib/iconv.in.h: Likewise.
7435         * lib/langinfo.in.h: Likewise.
7436         * lib/locale.in.h: Likewise.
7437         * lib/math.in.h: Likewise.
7438         * lib/netdb.in.h: Likewise.
7439         * lib/netinet_in.in.h: Likewise.
7440         * lib/poll.in.h: Likewise.
7441         * lib/pthread.in.h: Likewise.
7442         * lib/pty.in.h: Likewise.
7443         * lib/sched.in.h: Likewise.
7444         * lib/se-selinux.in.h: Likewise.
7445         * lib/search.in.h: Likewise.
7446         * lib/signal.in.h: Likewise.
7447         * lib/spawn.in.h: Likewise.
7448         * lib/stdarg.in.h: Likewise.
7449         * lib/stddef.in.h: Likewise.
7450         * lib/stdint.in.h: Likewise.
7451         * lib/stdio.in.h: Likewise.
7452         * lib/stdlib.in.h: Likewise.
7453         * lib/string.in.h: Likewise.
7454         * lib/strings.in.h: Likewise.
7455         * lib/sys_file.in.h: Likewise.
7456         * lib/sys_ioctl.in.h: Likewise.
7457         * lib/sys_select.in.h: Likewise.
7458         * lib/sys_socket.in.h: Likewise.
7459         * lib/sys_stat.in.h: Likewise.
7460         * lib/sys_time.in.h: Likewise.
7461         * lib/sys_times.in.h: Likewise.
7462         * lib/sys_uio.in.h: Likewise.
7463         * lib/sys_utsname.in.h: Likewise.
7464         * lib/sys_wait.in.h: Likewise.
7465         * lib/sysexits.in.h: Likewise.
7466         * lib/termios.in.h: Likewise.
7467         * lib/time.in.h: Likewise.
7468         * lib/unistd.in.h: Likewise.
7469         * lib/wchar.in.h: Likewise.
7470         * lib/wctype.in.h: Likewise.
7471         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
7472         * modules/ctype (Makefile.am): Likewise.
7473         * modules/dirent (Makefile.am): Likewise.
7474         * modules/errno (Makefile.am): Likewise.
7475         * modules/fcntl-h (Makefile.am): Likewise.
7476         * modules/float (Makefile.am): Likewise.
7477         * modules/getopt-posix (Makefile.am): Likewise.
7478         * modules/iconv-h (Makefile.am): Likewise.
7479         * modules/langinfo (Makefile.am): Likewise.
7480         * modules/locale (Makefile.am): Likewise.
7481         * modules/math (Makefile.am): Likewise.
7482         * modules/netdb (Makefile.am): Likewise.
7483         * modules/netinet_in (Makefile.am): Likewise.
7484         * modules/poll-h (Makefile.am): Likewise.
7485         * modules/pthread (Makefile.am): Likewise.
7486         * modules/pty (Makefile.am): Likewise.
7487         * modules/sched (Makefile.am): Likewise.
7488         * modules/search (Makefile.am): Likewise.
7489         * modules/selinux-h (Makefile.am): Likewise.
7490         * modules/signal (Makefile.am): Likewise.
7491         * modules/spawn (Makefile.am): Likewise.
7492         * modules/stdarg (Makefile.am): Likewise.
7493         * modules/stddef (Makefile.am): Likewise.
7494         * modules/stdint (Makefile.am): Likewise.
7495         * modules/stdio (Makefile.am): Likewise.
7496         * modules/stdlib (Makefile.am): Likewise.
7497         * modules/string (Makefile.am): Likewise.
7498         * modules/strings (Makefile.am): Likewise.
7499         * modules/sys_file (Makefile.am): Likewise.
7500         * modules/sys_ioctl (Makefile.am): Likewise.
7501         * modules/sys_select (Makefile.am): Likewise.
7502         * modules/sys_socket (Makefile.am): Likewise.
7503         * modules/sys_stat (Makefile.am): Likewise.
7504         * modules/sys_time (Makefile.am): Likewise.
7505         * modules/sys_times (Makefile.am): Likewise.
7506         * modules/sys_uio (Makefile.am): Likewise.
7507         * modules/sys_utsname (Makefile.am): Likewise.
7508         * modules/sys_wait (Makefile.am): Likewise.
7509         * modules/sysexits (Makefile.am): Likewise.
7510         * modules/termios (Makefile.am): Likewise.
7511         * modules/time (Makefile.am): Likewise.
7512         * modules/unistd (Makefile.am): Likewise.
7513         * modules/wchar (Makefile.am): Likewise.
7514         * modules/wctype-h (Makefile.am): Likewise.
7515         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
7516
7517 2011-05-29  Bruno Haible  <bruno@clisp.org>
7518
7519         assert-h: Allow multiple gnulib generated replacements to coexist.
7520         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
7521
7522 2011-05-29  Bruno Haible  <bruno@clisp.org>
7523
7524         argp: Allow coexistence with strerror_r-posix module.
7525         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
7526         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
7527         by gnulib's <string.h> replacement), assume it has the POSIX signature,
7528         not the glibc signature.
7529
7530 2011-05-28  Bruno Haible  <bruno@clisp.org>
7531
7532         gnulib-tool: Alternative structure of testdirs, similar to --import.
7533         * gnulib-tool: New option --single-configure.
7534         (func_usage): Document it.
7535         (single_configure): New variable.
7536         (func_modules_transitive_closure_separately,
7537         func_modules_transitive_closure_separately,
7538         func_determine_use_libtests, func_modules_add_dummy_separately,
7539         func_modules_to_filelist_separately): New functions, extracted from
7540         func_import.
7541         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
7542         (func_import): Use the new functions.
7543         (func_create_testdir): Set final_modules. Handle $single_configure =
7544         true case.
7545
7546 2011-05-28  Bruno Haible  <bruno@clisp.org>
7547
7548         getloadavg: Remove an unreliable safety check.
7549         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
7550         getloadavg.c is in place.
7551         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
7552         Reported by Sam Steingold <sds@gnu.org>.
7553
7554 2011-05-28  Bruno Haible  <bruno@clisp.org>
7555
7556         doc: Cleanup yet another file produced by texinfo.tex.
7557         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
7558
7559 2011-05-28  Bruno Haible  <bruno@clisp.org>
7560
7561         Finish the conditional dependencies mechanism.
7562         * gnulib-tool: New option --no-conditional-dependencies.
7563         (func_usage): Document it. Don't mark --conditional-dependencies as
7564         experimental.
7565         (cond_dependencies): The possible values can now be true, false, empty.
7566         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
7567         (func_import): Store setting in gnulib-cache.m4 and read it from there.
7568         * doc/gnulib-tool.texi (Conditional dependencies): New section.
7569
7570 2011-05-28  Bruno Haible  <bruno@clisp.org>
7571
7572         doc: Use a recent texinfo.tex.
7573         * doc/Makefile (tex_opts): New variable.
7574         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
7575
7576 2011-05-28  Jim Meyering  <meyering@redhat.com>
7577
7578         intprops.h: adjust comment to match code change
7579         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
7580         only once, it *may* have side effects.  Also fix an unrelated typo.
7581         (_GL_INT_SIGNED): Likewise.
7582
7583 2011-05-26  Simon Josefsson  <simon@josefsson.org>
7584
7585         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
7586
7587 2011-05-26  Bruno Haible  <bruno@clisp.org>
7588
7589         mbsrchr: Avoid collision with system function on Interix.
7590         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
7591         Reported by Markus Duft <mduft@gentoo.org>.
7592
7593 2011-05-15  James Youngman  <jay@gnu.org>
7594
7595         getopt: for ambiguous options, enumerate the possibilities.
7596         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
7597         the ambiguous options when an ambiguous prefix is given. This was
7598         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
7599         glibc change was
7600         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
7601
7602 2011-05-25  Eric Blake  <eblake@redhat.com>
7603
7604         getcwd: work around mingw bug
7605         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
7606         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7607         Reported by Matthias Bolte.
7608
7609 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7610
7611         test-intprops: disable -Wtype-limits diagnostics
7612         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
7613         diagnostics.  Otherwise, the integer overflow macros generate many
7614         diagnostics.  Reported by Jim Meyering in
7615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7616
7617         intprops: shorten, to pacify gcc -Woverlength-strings
7618         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
7619         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
7620         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
7621         likely to run afoul of C compiler limits for string constant lengths.
7622         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7623
7624 2011-05-24  Eric Blake  <eblake@redhat.com>
7625
7626         docs: document recently fixed glibc printf bug
7627         * doc/posix-functions/fprintf.texi (fprintf): Document it.
7628         * doc/posix-functions/printf.texi (printf): Likewise.
7629         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7630         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7631
7632         closein-tests: convert to init.sh
7633         * modules/closein-tests (Files): Add init.sh
7634         * tests/test-closein.sh Use it.
7635
7636         yesno-tests: convert to init.sh
7637         * modules/yesno-tests (Files): Add init.sh.
7638         * tests/test-yesno.sh: Use it.
7639
7640         atexit-tests: ensure reliable exit status
7641         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
7642         Reported by Bruno Haible.
7643
7644 2011-05-24  Bruno Haible  <bruno@clisp.org>
7645
7646         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
7647         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
7648         gl_PREREQ_STRERROR_R invocations from here...
7649         * modules/strerror_r-posix (configure.ac): ... to here.
7650
7651 2011-05-24  Eric Blake  <eblake@redhat.com>
7652
7653         strerror_r: fix missing header
7654         * lib/strerror_r.c: Avoid compiler warning about snprintf.
7655
7656         strerror_r: fix AIX test failures
7657         * lib/strerror_r.c (strerror_r): Convert silent truncation to
7658         ERANGE failure.
7659
7660         strerror_r: fix Solaris test failures
7661         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
7662         failures.
7663         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7664
7665         strerror_r: enforce POSIX recommendations
7666         * lib/strerror_r.c (safe_copy): New helper method.
7667         (strerror_r): Guarantee a non-empty string.
7668         * tests/test-strerror_r.c (main): Enhance tests to incorporate
7669         recent POSIX rulings and to match our strerror guarantees.
7670         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7671
7672 2011-05-24  Jim Meyering  <meyering@redhat.com>
7673
7674         test-perror2.c: avoid warning about unused variable
7675         * tests/test-perror2.c (main): Remove declaration of unused "fp".
7676
7677 2011-05-24  Eric Blake  <eblake@redhat.com>
7678
7679         perror: avoid spurious test failure on HP-UX
7680         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
7681
7682         tests: fix logic bug in init.sh
7683         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
7684         shell.
7685
7686 2011-05-24  Jim Meyering  <meyering@redhat.com>
7687
7688         utimensat: do not reference an out-of-scope buffer
7689         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
7690         declared in an inner scope, yet "times" would be dereferenced outside
7691         the scope in which "ts" was valid.
7692         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
7693         of ts[2] "out/up", so that the use of aliased "times" (via
7694         "times = ts;") does not end up referencing an out-of-scope "ts"
7695
7696         opendir-safer.c: don't clobber errno; don't close negative FD
7697         * lib/opendir-safer.c (opendir_safer):
7698         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
7699         file descriptor, and more importantly, don't clobber the
7700         offending errno value with EINVAL.  Before, upon failure
7701         of dup_safer, we would pass the negative file descriptor to
7702         fdopendir, which would clobber errno.
7703
7704 2011-05-23  Bruno Haible  <bruno@clisp.org>
7705
7706         idcache: Fix module description.
7707         * modules/idcache (Include): Set to "idcache.h".
7708
7709 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7710
7711         gnulib-tool: fix portability problem with MacOS sed
7712         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
7713         before the "}".  Problem reported by Leo in
7714         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
7715         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
7716         sed_extract_condition1, sed_extract_condition2.
7717
7718 2011-05-23  Bruno Haible  <bruno@clisp.org>
7719
7720         hash: Simplify autoconf macro.
7721         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
7722
7723 2011-05-23  Bruno Haible  <bruno@clisp.org>
7724
7725         getugroups: Fix module description.
7726         * modules/getugroups (Include): Set to "getugroups.h".
7727
7728 2011-05-23  Bruno Haible  <bruno@clisp.org>
7729
7730         linkat: Simplify autoconf macro.
7731         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
7732
7733 2011-05-23  Bruno Haible  <bruno@clisp.org>
7734             Eric Blake  <eblake@redhat.com>
7735
7736         linkat, renameat: Update dependencies.
7737         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
7738         * modules/linkat (Depends-on): Likewise. Remove also readlink,
7739         symlinkat.
7740
7741 2011-05-23  Jim Meyering  <meyering@redhat.com>
7742
7743         maint.mk: more tight_scope improvements
7744         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
7745         (_gl_TS_headers): Define only in if-0'd block.
7746         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
7747         sometimes we must *not* use it.  Adjust uses accordingly.
7748         (sc_tight_scope): Use much simpler grep-based test to determine
7749         whether we skip this rule.
7750
7751         maint.mk: generalize/improve the tight-scope rule
7752         * top/maint.mk: Emit a warning when the test is skipped.
7753         (_gl_TS_dir): Add $(srcdir)/ prefix.
7754         (_gl_TS_function_match): Simplify, rather than trying
7755         to enumerate common types.  Otherwise, it would fail to match an
7756         "extern unsigned char const *" declaration in idutils.
7757         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
7758         a way to support use of that type of macro.
7759         (_gl_TS_var_match): Simplify regexp.
7760         (_gl_TS_obj_files): New configurable variable.
7761         (_gl_TS_headers): Likewise.
7762
7763 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7764
7765         verify: fix bug when gnulib <assert.h> is also included
7766         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
7767         is defined, not if _GL_STATIC_ASSERT_H is not defined.
7768         Perhaps there's a better way, but this fixes the immediate problem.
7769         Problem reported by Bruno Haible in
7770         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
7771
7772 2011-05-22  Bruno Haible  <bruno@clisp.org>
7773
7774         xgetcwd: Simplify autoconf macro.
7775         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
7776
7777 2011-05-22  Bruno Haible  <bruno@clisp.org>
7778
7779         New module 'mktime-internal'.
7780         * modules/mktime-internal: New file.
7781         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
7782         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
7783         mktime_internal as a C macro if libc has __mktime_internal.
7784         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
7785         conditions.
7786         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
7787
7788 2011-05-22  Bruno Haible  <bruno@clisp.org>
7789
7790         timegm: Correct mktime replacement statements.
7791         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
7792         defining mktime as a C macro. This completes a 2009-07-28 commit.
7793
7794 2011-05-22  Bruno Haible  <bruno@clisp.org>
7795
7796         timegm: Simplify autoconf macro.
7797         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7798
7799 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7800
7801         clock-time: change to LGPLv2+.
7802         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7803         BSD-like but we have no mark for that; this is good enough for now.
7804
7805 2011-05-21  Bruno Haible  <bruno@clisp.org>
7806
7807         strerror_r: Fix comments.
7808         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7809
7810 2011-05-21  Bruno Haible  <bruno@clisp.org>
7811
7812         relocatable-prog-wrapper: Fix possible link error.
7813         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7814         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7815         (gl_FUNC_SETENV): ... to here.
7816         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7817         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7818
7819 2011-05-21  Bruno Haible  <bruno@clisp.org>
7820
7821         relocatable-prog-wrapper: Assume strerror() exists.
7822         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
7823         m4/strerror.m4.
7824         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
7825         * lib/relocwrapper.c: Remove mention of strerror module.
7826         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
7827         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
7828         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
7829         C macro.
7830
7831 2011-05-21  Bruno Haible  <bruno@clisp.org>
7832
7833         select: Simplify replacement idiom.
7834         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
7835         Win32 platforms.
7836         * lib/sys_select.in.h (select): Simplify accordingly.
7837         * modules/select (Depends-on): Likewise.
7838
7839 2011-05-21  Bruno Haible  <bruno@clisp.org>
7840
7841         mkdir-p: Simplify autoconf macro.
7842         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
7843         gl_FUNC_LCHOWN.
7844
7845 2011-05-21  Eric Blake  <eblake@redhat.com>
7846
7847         strerror_r: avoid clobbering strerror on cygwin
7848         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
7849         fall back instead to sys_errlist.
7850         * modules/strerror (configure.ac): Add witness.
7851         * tests/test-strerror_r.c (main): Enhance test.
7852         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7853         * tests/test-perror2.c (main): Free memory before exit.
7854
7855 2011-05-21  Bruno Haible  <bruno@clisp.org>
7856
7857         mkdtemp: Use gnulib naming conventions.
7858         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
7859         * modules/mkdtemp (configure.ac): Update.
7860
7861 2011-05-20  Eric Blake  <eblake@redhat.com>
7862
7863         strerror_r: avoid corrupting errno on Solaris
7864         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
7865         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7866
7867         strerror_r: avoid compiler warning
7868         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
7869
7870         strerror_r: simplify AIX code
7871         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
7872
7873         test-perror: avoid spurious failure on FreeBSD
7874         * modules/perror-tests (Depends-on): Add strerror, now that
7875         strerror_r no longer pulls it in.
7876
7877 2011-05-20  Bruno Haible  <bruno@clisp.org>
7878
7879         strerror_r-posix: Remove unused dependencies.
7880         * modules/strerror_r-posix (Depends-on): Remove strerror.
7881         Reported by Eric Blake.
7882
7883 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7884
7885         intprops: remove assumption about A|B representation
7886         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7887         is a valid integer if both A and B are.  Although this is true for
7888         all known practical hosts, the C standard doesn't guarantee it,
7889         and the code need not assume it.  Also, this change may work around
7890         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7892
7893 2011-05-20  Eric Blake  <eblake@redhat.com>
7894
7895         perror: work around FreeBSD bug
7896         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7897         is broken.  Move AC_LIBOBJ...
7898         * modules/perror (configure.ac): Here.
7899         * doc/posix-functions/perror.texi (perror): Document this.
7900         * tests/test-perror2.c (main): Enhance test.
7901
7902         test-perror: check for strerror interactions
7903         * tests/macros.h (STREQ): Add macro.
7904         * modules/perror-tests (Files): Add second test.
7905         * tests/test-perror2.c (main): New file.
7906         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7907
7908         test-perror: rewrite to use init script
7909         * modules/perror-tests (Files): Add init.sh.
7910         * tests/test-perror.sh: Use temporary directory.
7911
7912 2011-05-20  Jim Meyering  <meyering@redhat.com>
7913
7914         maint: replace misused "a" with "an"
7915         * doc/intprops.texi: "a integer"
7916         * doc/regex.texi: "a explanation"
7917         * lib/alignof.h: "a object"
7918         * lib/argmatch.h: "a explanation"
7919         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7920         * lib/stdint.in.h: "a integer"
7921         * lib/userspec.c: "a owner"
7922         * doc/gnulib.texi: Fix "a idea", and reword.
7923
7924 2011-05-19  Jim Meyering  <meyering@redhat.com>
7925
7926         maint: correct misuse of "a" and "an"
7927         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7928         * lib/argp-help.c: "an docum...": s/an/a/
7929         * lib/argp-parse.c: "An vector": s/An/A/
7930         * lib/execute.c: "an native": s/an/a/
7931         * lib/spawn-pipe.c: Likewise.
7932         * lib/gc.h: "an Gc_rc": s/an/a/
7933         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7934         * lib/fts.c: "an stat.st_dev": s/an/a/
7935
7936 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7937
7938         intprops-tests: work around HP-UX 11.23 cc bug with constants
7939         * tests/test-intprops.c (VERIFY): New macro.
7940         (main): Use it, instead of verify, to work around the compiler bug; see
7941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7942
7943         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7944         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7945         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7946         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7947         (_GL_REMAINDER_OVERFLOW): Use it.
7948
7949         intprops-tests: revert unsigned part of previous change
7950         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7951         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7952         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7954
7955 2011-05-19  Bruno Haible  <bruno@clisp.org>
7956
7957         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7958         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7959         strerror_r() returned without filling the buffer.
7960         Reported by Eric Blake.
7961
7962 2011-05-19  Eric Blake  <eblake@redhat.com>
7963
7964         strerror_r: guarantee unchanged errno
7965         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7966         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7967         failure.
7968         * tests/test-strerror_r.c (main): Enhance test.
7969
7970 2011-05-19  Bruno Haible  <bruno@clisp.org>
7971
7972         strerror_r: Reorder #if blocks.
7973         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7974         for consistency with the previous commit.
7975
7976 2011-05-19  Bruno Haible  <bruno@clisp.org>
7977
7978         perror: Avoid clobbering the strerror buffer when possible.
7979         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7980         * lib/strerror.c: Include it.
7981         * modules/strerror (Files): Add lib/strerror-impl.h.
7982         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7983         (my_strerror): New function, defined through lib/strerror-impl.h.
7984         (perror): Use it instead of strerror.
7985         * modules/perror (Files): Add lib/strerror-impl.h.
7986         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7987
7988 2011-05-19  Eric Blake  <eblake@redhat.com>
7989
7990         strerror_r: fix on newer cygwin
7991         * lib/strerror_r.c (strerror_r): Cygwin now has
7992         __xpg_strerror_r, use it.
7993
7994 2011-05-19  Bruno Haible  <bruno@clisp.org>
7995
7996         strerror_r: Avoid clobbering the strerror buffer when possible.
7997         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7998         (sys_nerr, sys_errlist): New declarations.
7999         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
8000         HP-UX, native Win32, IRIX, and 32-bit Solaris.
8001         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
8002
8003 2011-05-19  Bruno Haible  <bruno@clisp.org>
8004
8005         strerror_r: Fix test failure on mingw.
8006         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
8007         EXTEND_STRERROR_R.
8008         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
8009         macros from errno.in.h instead.
8010
8011 2011-05-19  Eric Blake  <eblake@redhat.com>
8012
8013         strerror: relax test for Solaris
8014         * tests/test-strerror.c (main): Permit Solaris behavior.
8015         * tests/test-strerror_r.c (main): Likewise.
8016
8017         strerror: enforce POSIX ruling on strerror(0)
8018         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
8019         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8020         * lib/strerror_r.c (rpl_strerror_r): Work around it.
8021         * doc/posix-functions/strerror.texi (strerror): Document it.
8022         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
8023         * tests/test-strerror.c (main): Strengthen test.
8024         * tests/test-strerror_r.c (main): Likewise.
8025
8026 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8027
8028         intprop-tests: port to older and more-pedantic compilers
8029         * modules/intprops-tests (Files): Add tests/macros.h.
8030         * tests/test-intprops.c: Include macros.h.
8031         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
8032         it's no longer documented to expand to an integer constant expression.
8033         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
8034         argument is floating point, as it's no longer documented to expand
8035         to an integer constant expression in that case.
8036         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
8037         compiler bugs reported by Bruno Haible.  See
8038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8039         (U0, U1): New constants, to work around the same bugs.  Also,
8040         in tests, use e.g., "(unsigned int) 39" rather than "39u".
8041
8042         intprops: work around C compiler bugs
8043         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
8044         bug in Sun C 5.11 2010/08/13 and other compilers; see
8045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8046
8047         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
8048         * doc/intprops.texi (Integer Type Determination): Fix
8049         documentation for TYPE_IS_INTEGER: it returns an constant
8050         expression, not an integer constant expression.  Fix doc for
8051         TYPE_SIGNED: it returns an integer constant expression only if its
8052         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
8053         hardly worth documented that way....)
8054
8055 2011-05-18  Bruno Haible  <bruno@clisp.org>
8056
8057         strerror_r: Avoid clobbering the strerror buffer when possible.
8058         * lib/strerror_r.c (strerror_r): Merge the three implementations.
8059         Handle gnulib defined errno values here. When strerror() returns NULL
8060         or an empty string, return EINVAL.
8061         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
8062         gnulib defined errno values here.
8063         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
8064
8065 2011-05-18  Eric Blake  <eblake@redhat.com>
8066
8067         fnmatch: avoid compiler warning
8068         * lib/fnmatch_loop.c (FCT): Use correct type.
8069         Reported by Matthias Bolte.
8070
8071 2011-05-13  Jim Meyering  <meyering@redhat.com>
8072
8073         maint.mk: three new prohibit_<HDR>_without_use rules
8074         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
8075         (sc_prohibit_stdio-safer_without_use): Likewise.
8076         (sc_prohibit_xfreopen_without_use): Likewise.
8077
8078 2011-05-17  Jim Meyering  <meyering@redhat.com>
8079
8080         announce-gen: fail if the NEWS delta is empty
8081         If there's nothing noteworthy in NEWS, then either you forgot
8082         or you shouldn't be releasing.
8083         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
8084
8085 2011-05-17  Pádraig Brady <P@draigBrady.com>
8086
8087         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
8088         reserved symbols starting with double underscore from the check.
8089
8090 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
8091
8092         intprops: add doc
8093         * doc/intprops.texi: New file, documenting intprops.
8094         * doc/gnulib.texi (Particular Modules): Include it.
8095
8096         verify: add doc to gnulib manual and fix example
8097         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
8098         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
8099         (Compile-time Assertions): Fix example so it can't overflow.
8100
8101 2011-05-17  Jim Meyering  <meyering@redhat.com>
8102
8103         warnings.m4: don't usurp save_CPPFLAGS variable name
8104         * m4/warnings.m4: Prefix local temporary variable name with gl_.
8105
8106         doc: fix typo
8107         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
8108
8109 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8110             Bruno Haible  <bruno@clisp.org>
8111
8112         doc: Tweak recent change.
8113         * README (Portability guidelines): Tweak new text.
8114         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
8115         Interix 6.1.
8116
8117 2011-05-16  Eric Blake  <eblake@redhat.com>
8118
8119         inttypes: avoid autoconf warning
8120         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
8121         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8122
8123 2011-05-16  Sam Steingold <sds@gnu.org>
8124         and Eric Blake  <eblake@redhat.com>
8125
8126         vc-list-files: accept multiple directory operands
8127         * build-aux/vc-list-files: Iterate over all remaining operands.
8128
8129 2011-05-16  Bruno Haible  <bruno@clisp.org>
8130
8131         Fix confusion regarding deprecated modules.
8132         * modules/calloc (Status, Notice): Mark module as deprecated, not
8133         obsolete.
8134         * modules/fnmatch-posix (Status, Notice): Likewise.
8135         * modules/getdate (Status, Notice): Likewise.
8136         * modules/getopt (Status, Notice): Likewise.
8137         * modules/malloc (Status, Notice): Likewise.
8138         * modules/pipe (Status, Notice): Likewise.
8139         * modules/realloc (Status, Notice): Likewise.
8140         * modules/rename-dest-slash (Status, Notice): Likewise.
8141         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
8142         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
8143         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
8144         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
8145         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
8146
8147 2011-05-16  Bruno Haible  <bruno@clisp.org>
8148
8149         doc: List the target platforms.
8150         * doc/gnulib-intro.texi (Target Platforms): New section.
8151         * doc/gnulib.texi (Introduction): Update menu.
8152         * README (Portability guidelines): Refer to the new section. Update
8153         statement about oldest supported environment. Remove rationale why
8154         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
8155         unportable C89 function.
8156         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
8157         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
8158
8159 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8160
8161         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
8162
8163 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
8164
8165         intprops-tests: new module
8166         * modules/intprops-tests, tests/test-intprops.c: New files.
8167
8168         intprops: add safe, portable integer overflow checking
8169         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
8170         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
8171         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
8172         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
8173         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
8174         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
8175         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
8176         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
8177         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
8178         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
8179         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
8180
8181 2011-05-12  James Youngman  <jay@gnu.org>
8182
8183         Add a test for glibc's Bugzilla bug #12378.
8184         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
8185         doesn't allow the literal matching of a lone "[" (which is
8186         required by POSIX).
8187         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
8188
8189 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
8190
8191         Sync glibc change fixing Bugzilla bug #12378.
8192         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
8193         beginning and fall back to matching as normal character if the
8194         string ends before the matching ']' is found.  This is what POSIX
8195         requires.
8196
8197 2011-05-13  Eric Blake  <eblake@redhat.com>
8198
8199         getcwd-lgpl: relax test for FreeBSD
8200         * doc/posix-functions/getcwd.texi (getcwd): Document portability
8201         issue.
8202         * tests/test-getcwd-lgpl.c (main): Relax test.
8203         Reported by Matthias Bolte.
8204
8205 2011-05-11  Eric Blake  <eblake@redhat.com>
8206
8207         test-fflush: silence compiler warning
8208         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
8209
8210 2011-05-11  Bruno Haible  <bruno@clisp.org>
8211
8212         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
8213         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
8214         * modules/canonicalize (Depends-on): Add 'nocrash'.
8215         * modules/canonicalize-lgpl (Depends-on): Likewise.
8216         * doc/posix-functions/realpath.texi: Update platforms list.
8217         Reported by Ryan Schmidt <ryandesign@macports.org>.
8218
8219 2011-05-11  Bruno Haible  <bruno@clisp.org>
8220
8221         group-member: Declare function in <unistd.h>.
8222         * lib/unistd.in.h (group_member): New declaration.
8223         * lib/group-member.h: Remove file.
8224         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
8225         * tests/test-unistd-c++.cc: Check signature of group_member.
8226         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
8227         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
8228         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
8229         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
8230         HAVE_GROUP_MEMBER.
8231         * modules/group-member (Files): Remove lib/group-member.h.
8232         (Depends-on): Add unistd. Specify conditions.
8233         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8234         (Include): Change to <unistd.h>.
8235         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
8236         HAVE_GROUP_MEMBER.
8237         * NEWS: Mention the change.
8238         * lib/euidaccess.c: Don't include group-member.h.
8239
8240 2011-05-11  Bruno Haible  <bruno@clisp.org>
8241
8242         group-member: Document module.
8243         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
8244         module.
8245
8246 2011-05-11  Bruno Haible  <bruno@clisp.org>
8247
8248         fclose: Fix mistake earlier today.
8249         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
8250
8251 2011-05-11  Eric Blake  <eblake@redhat.com>
8252
8253         fclose: preserve fflush errors
8254         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
8255         Reported by Jim Meyering.
8256
8257         bootstrap: support a prereq of 'rpcgen -' on RHEL5
8258         * build-aux/bootstrap (check_versions): When no specific version
8259         is required, merely check that the app produces an exit status
8260         that indicates its existence.
8261
8262         maint.mk: drop redundant check
8263         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
8264         the same but better.
8265
8266 2011-05-11  Bruno Haible  <bruno@clisp.org>
8267
8268         fclose: Fix possible link error.
8269         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
8270         unregister_shadow_fd. Improve comments.
8271         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
8272         Eric Blake.
8273
8274 2011-05-11  Jim Meyering  <meyering@redhat.com>
8275
8276         maint.mk: improve "can not" detection and generalize rule name
8277         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
8278         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
8279         Use the same technique as in sc_prohibit_doubled_word, so that
8280         we recognize "can not" also when the words are separated by a newline.
8281         Suggested by Eric Blake.
8282         (perl_filename_lineno_text_): Define.  Factored out of...
8283         (prohibit_doubled_word_): ...here.  Use the new definition.
8284         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
8285         (prohibit_undesirable_word_seq_RE_): New overridable variable.
8286         (ignore_undesirable_word_sequence_RE_): New overridable variable.
8287
8288 2011-05-10  Eric Blake  <eblake@redhat.com>
8289
8290         fclose: avoid double close race when possible
8291         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
8292         all but WINDOWS_SOCKETS.
8293
8294 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
8295
8296         openat: correct new comment
8297         * lib/openat-proc.c (openat_proc_name): Correct the comment.
8298
8299 2011-05-10  Jim Meyering  <meyering@redhat.com>
8300
8301         openat: add comments
8302         * lib/openat-proc.c (openat_proc_name): Add comments,
8303         mostly from Eric Blake.
8304
8305 2011-05-09  Eric Blake  <eblake@redhat.com>
8306
8307         openat: reduce syscalls in first probe of /proc
8308         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
8309         be a directory.  Simplify the probe for .. bugs.
8310         * modules/openat (Depends-on): Drop same-inode.
8311         Reported by Bastien ROUCARIES.
8312
8313 2011-05-09  Jim Meyering  <meyering@redhat.com>
8314
8315         maint.mk: change semantics/name of tight_scope variables
8316         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
8317         Rename variables to align with semantics that make them more useful.
8318
8319         maint.mk: tweak new rule's name not to impinge
8320         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
8321         (sc_tight_scope): Use new rule name rather than $@-0.
8322
8323         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
8324         * top/maint.mk (sc_tight_scope): New rule.
8325         (sc_tight_scope-0): New rule, ifdef'd out.
8326         (_gl_TS_dir): Default.
8327         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
8328         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
8329
8330 2011-05-09  Simon Josefsson  <simon@josefsson.org>
8331
8332         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
8333         Haible <bruno@clisp.org>.
8334
8335 2011-05-08  Bruno Haible  <bruno@clisp.org>
8336
8337         Comments.
8338         * m4/isnanf.m4: Add comment.
8339         * m4/isnanl.m4: Likewise.
8340
8341 2011-05-08  Bruno Haible  <bruno@clisp.org>
8342
8343         glob: Remove obsolete macro.
8344         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
8345
8346 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8347
8348         intprops: Sun C 5.11 supports __typeof__
8349         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
8350         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
8351         which is new.
8352         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
8353
8354         intprops: switch to usual gnulib indenting and naming
8355         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
8356         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
8357
8358         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
8359
8360 2011-05-08  Jim Meyering  <meyering@redhat.com>
8361
8362         maint.mk: suppress "Entering/Leaving directory" diag in announcement
8363         * top/maint.mk (release-prep): Use make's --no-print-directory
8364         option when generating the announcement.  This eliminates the
8365         pesky "make[2]: Entering/Leaving directory" diagnostics in the
8366         generated announcement template.
8367
8368 2011-05-08  Bruno Haible  <bruno@clisp.org>
8369
8370         tzset: Fix gettimeofday wrapper on Solaris 2.6.
8371         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
8372         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
8373
8374 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
8375
8376         ignore-value, verify: Omit include files from lib_SOURCES.
8377         * modules/ignore-value, modules/verify (Makefile.am):
8378         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
8379         that leads Automake to duplicate use of am__objects_... variables
8380         in Makefile.in.  See
8381         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
8382
8383 2011-05-07  Bruno Haible  <bruno@clisp.org>
8384
8385         fclose: Simplify autoconf macro.
8386         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
8387         defined.
8388
8389 2011-05-07  Bruno Haible  <bruno@clisp.org>
8390
8391         canonicalize-lgpl: Fix autoconf macro ordering bug.
8392         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
8393         gl_STDLIB_H_DEFAULTS.
8394
8395 2011-05-06  Eric Blake  <eblake@redhat.com>
8396
8397         maintainer-makefile: make sc_po_check easier to tune
8398         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
8399         to probe for strings, such as an alternate location for gnulib.
8400
8401         fclose: guarantee behavior on seekable stdin
8402         * modules/fclose (Depends-on): Add fflush.
8403         * doc/posix-functions/fclose.texi (fclose): Document this.
8404         * tests/test-fclose.c (main): Make test for this unconditional.
8405
8406 2011-05-06  Bruno Haible  <bruno@clisp.org>
8407
8408         fflush, fpurge: Relicense under LGPLv2+.
8409         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
8410         * modules/fpurge (License): Likewise.
8411         With permission from Eric Blake and Jim Meyering.
8412         Suggested by Eric Blake.
8413
8414 2011-05-06  Karl Berry  <karl@gnu.org>
8415
8416         * MODULES.html.sh (func_all_modules): remove exit.
8417
8418 2011-05-06  Jim Meyering  <meyering@redhat.com>
8419
8420         maint.mk: use info-gnu@ as the default only for a stable release
8421         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
8422         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
8423         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
8424         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
8425
8426 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8427
8428         assert-h: new module, which supports C1X-style static_assert
8429         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
8430         * lib/verify.h: Revamp so that this can be copied into assert.h,
8431         while retaining the ability to use it standalone as before.
8432         Rename private identifiers so as not to encroach on the
8433         standard C namespace, since this is now used by assert.h.
8434         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
8435         the old verify_true.
8436         (_GL_VERIFY_TRUE): New macro, with much of the contents of
8437         the old verify_true.  Use _GL_VERIFY_TYPE.
8438         (_GL_VERIFY): New macro, with much of the contents of the old verify.
8439         (static_assert): New macro, if _GL_STATIC_ASSERT_H
8440         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
8441         defined when this file is copied into the replacement assert.h.
8442         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
8443         and _Static_assert is not built in.
8444         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
8445         defined, and use the new macros mentioned above.
8446         * doc/posix-headers/assert.texi: Document this.
8447
8448 2011-05-05  Bruno Haible  <bruno@clisp.org>
8449
8450         fclose, fflush: Respect rules for use of AC_LIBOBJ.
8451         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
8452         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
8453         gl_REPLACE_FCLOSE here.
8454         * modules/fflush (Depends-on): Remove fclose.
8455         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
8456         combination with module 'fclose'.
8457
8458 2011-05-05  Bruno Haible  <bruno@clisp.org>
8459
8460         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
8461         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
8462         gl_FUNC_FFLUSH.
8463         (gl_FUNC_FFLUSH): Use it.
8464         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
8465         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
8466         gl_REPLACE_FSEEKO here.
8467
8468 2011-05-05  Bruno Haible  <bruno@clisp.org>
8469
8470         tzset: Relicense under LGPL.
8471         * modules/tzset (License): Change to LGPL.
8472         No agreement needed; it's a no-op.
8473
8474         strtoimax, strtoumax: Relicense under LGPL.
8475         * modules/strtoimax (License): Change to LGPL.
8476         * modules/strtoumax (License): Likewise.
8477         With permission from Jim Meyering, Paul Eggert:
8478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
8479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
8480
8481         getgroups: Relicense under LGPL.
8482         * modules/getgroups (License): Change to LGPL.
8483         With permission from Jim Meyering, Paul Eggert, Eric Blake:
8484         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8487
8488         nanosleep: Relicense under LGPL.
8489         * modules/nanosleep (License): Change to LGPL.
8490         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
8491         Haible:
8492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8496
8497         futimens: Relicense under LGPL.
8498         * modules/futimens (License): Change to LGPL.
8499         With permission from Eric Blake:
8500         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8501
8502         fflush: Relicense under LGPL.
8503         * modules/fflush (License): Change to LGPL.
8504         With permission from Eric Blake, Bruno Haible, Jim Meyering:
8505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8506         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
8508
8509         tmpfile: Relicense under LGPL.
8510         * modules/tmpfile (License): Change to LGPL.
8511         With permission from Ben Pfaff:
8512         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8513
8514         isfinite: Relicense under LGPL.
8515         * modules/isfinite (License): Change to LGPL.
8516         With permission from Ben Pfaff, Bruno Haible:
8517         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
8519
8520         acosl..tanl: Relicense under LGPL.
8521         * modules/acosl (License): Change to LGPL.
8522         * modules/asinl (License): Likewise.
8523         * modules/atanl (License): Likewise.
8524         * modules/cosl (License): Likewise.
8525         * modules/expl (License): Likewise.
8526         * modules/logl (License): Likewise.
8527         * modules/sinl (License): Likewise.
8528         * modules/sqrtl (License): Likewise.
8529         * modules/tanl (License): Likewise.
8530         Source code originally from glibc and Paolo Bonzini. Agreements:
8531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
8532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
8533
8534 2011-05-05  Bruno Haible  <bruno@clisp.org>
8535
8536         signal: Define sighandler_t.
8537         * lib/signal.in.h (sighandler_t): New type.
8538         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
8539         whether sighandler_t is defined.
8540         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
8541         * modules/signal (Depends-on): Add extensions.
8542         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
8543         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
8544         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
8545
8546 2011-05-05  Eric Blake  <eblake@redhat.com>
8547
8548         maint: remove useless REPLACE_*_H macros
8549         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
8550         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
8551         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
8552         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
8553         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
8554         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
8555         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
8556         * m4/btowc.m4: Update callers.
8557         * m4/dirfd.m4: Likewise.
8558         * m4/duplocale.m4: Likewise.
8559         * m4/fchdir.m4: Likewise.
8560         * m4/fdopendir.m4: Likewise.
8561         * m4/inet_ntop.m4: Likewise.
8562         * m4/inet_pton.m4: Likewise.
8563         * m4/ioctl.m4: Likewise.
8564         * m4/mbrlen.m4: Likewise.
8565         * m4/mbrtowc.m4: Likewise.
8566         * m4/mbsinit.m4: Likewise.
8567         * m4/mbsnrtowcs.m4: Likewise.
8568         * m4/mbsrtowcs.m4: Likewise.
8569         * m4/poll.m4: Likewise.
8570         * m4/setlocale.m4: Likewise.
8571         * m4/wcrtomb.m4: Likewise.
8572         * m4/wcsnrtombs.m4: Likewise.
8573         * m4/wcsrtombs.m4: Likewise.
8574         * m4/wctob.m4: Likewise.
8575         * m4/wcwidth.m4: Likewise.
8576         * modules/posix_spawn: Likewise.
8577         * modules/posix_spawn_file_actions_addclose: Likewise.
8578         * modules/posix_spawn_file_actions_adddup2: Likewise.
8579         * modules/posix_spawn_file_actions_addopen: Likewise.
8580         * modules/posix_spawn_file_actions_destroy: Likewise.
8581         * modules/posix_spawn_file_actions_init: Likewise.
8582         * modules/posix_spawnattr_destroy: Likewise.
8583         * modules/posix_spawnattr_getflags: Likewise.
8584         * modules/posix_spawnattr_getpgroup: Likewise.
8585         * modules/posix_spawnattr_getschedparam: Likewise.
8586         * modules/posix_spawnattr_getschedpolicy: Likewise.
8587         * modules/posix_spawnattr_getsigdefault: Likewise.
8588         * modules/posix_spawnattr_getsigmask: Likewise.
8589         * modules/posix_spawnattr_init: Likewise.
8590         * modules/posix_spawnattr_setflags: Likewise.
8591         * modules/posix_spawnattr_setpgroup: Likewise.
8592         * modules/posix_spawnattr_setschedparam: Likewise.
8593         * modules/posix_spawnattr_setschedpolicy: Likewise.
8594         * modules/posix_spawnattr_setsigdefault: Likewise.
8595         * modules/posix_spawnattr_setsigmask: Likewise.
8596         * modules/posix_spawnp: Likewise.
8597
8598 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
8599
8600         Add option to do-release-commit-and-tag to specify branch.
8601         * build-aux/do-release-commit-and-tag: Add --branch.
8602
8603 2011-05-03  Bruno Haible  <bruno@clisp.org>
8604
8605         Avoid unnecessary compilation units, through conditional dependencies.
8606         * modules/accept (Depends-on): Add conditions to the dependencies.
8607         * modules/acosl (Depends-on): Likewise.
8608         * modules/argz (Depends-on): Likewise.
8609         * modules/asinl (Depends-on): Likewise.
8610         * modules/atanl (Depends-on): Likewise.
8611         * modules/atoll (Depends-on): Likewise.
8612         * modules/bind (Depends-on): Likewise.
8613         * modules/btowc (Depends-on): Likewise.
8614         * modules/canonicalize-lgpl (Depends-on): Likewise.
8615         * modules/ceil (Depends-on): Likewise.
8616         * modules/ceilf (Depends-on): Likewise.
8617         * modules/ceill (Depends-on): Likewise.
8618         * modules/chdir-long (Depends-on): Likewise.
8619         * modules/chown (Depends-on): Likewise.
8620         * modules/close (Depends-on): Likewise.
8621         * modules/connect (Depends-on): Likewise.
8622         * modules/cosl (Depends-on): Likewise.
8623         * modules/dirfd (Depends-on): Likewise.
8624         * modules/dprintf (Depends-on): Likewise.
8625         * modules/dprintf-posix (Depends-on): Likewise.
8626         * modules/error (Depends-on): Likewise.
8627         * modules/euidaccess (Depends-on): Likewise.
8628         * modules/expl (Depends-on): Likewise.
8629         * modules/faccessat (Depends-on): Likewise.
8630         * modules/fchdir (Depends-on): Likewise.
8631         * modules/fclose (Depends-on): Likewise.
8632         * modules/fcntl (Depends-on): Likewise.
8633         * modules/fdopendir (Depends-on): Likewise.
8634         * modules/fflush (Depends-on): Likewise.
8635         * modules/floor (Depends-on): Likewise.
8636         * modules/floorf (Depends-on): Likewise.
8637         * modules/floorl (Depends-on): Likewise.
8638         * modules/fnmatch (Depends-on): Likewise.
8639         * modules/fopen (Depends-on): Likewise.
8640         * modules/fprintf-posix (Depends-on): Likewise.
8641         * modules/frexp (Depends-on): Likewise.
8642         * modules/frexp-nolibm (Depends-on): Likewise.
8643         * modules/frexpl (Depends-on): Likewise.
8644         * modules/frexpl-nolibm (Depends-on): Likewise.
8645         * modules/fseek (Depends-on): Likewise.
8646         * modules/fsusage (Depends-on): Likewise.
8647         * modules/ftell (Depends-on): Likewise.
8648         * modules/ftello (Depends-on): Likewise.
8649         * modules/futimens (Depends-on): Likewise.
8650         * modules/getcwd (Depends-on): Likewise.
8651         * modules/getcwd-lgpl (Depends-on): Likewise.
8652         * modules/getdelim (Depends-on): Likewise.
8653         * modules/getdomainname (Depends-on): Likewise.
8654         * modules/getgroups (Depends-on): Likewise.
8655         * modules/gethostname (Depends-on): Likewise.
8656         * modules/getline (Depends-on): Likewise.
8657         * modules/getlogin_r (Depends-on): Likewise.
8658         * modules/getopt-posix (Depends-on): Likewise.
8659         * modules/getpeername (Depends-on): Likewise.
8660         * modules/getsockname (Depends-on): Likewise.
8661         * modules/getsockopt (Depends-on): Likewise.
8662         * modules/getsubopt (Depends-on): Likewise.
8663         * modules/getusershell (Depends-on): Likewise.
8664         * modules/glob (Depends-on): Likewise.
8665         * modules/grantpt (Depends-on): Likewise.
8666         * modules/iconv_open (Depends-on): Likewise.
8667         * modules/iconv_open-utf (Depends-on): Likewise.
8668         * modules/inet_ntop (Depends-on): Likewise.
8669         * modules/inet_pton (Depends-on): Likewise.
8670         * modules/ioctl (Depends-on): Likewise.
8671         * modules/isapipe (Depends-on): Likewise.
8672         * modules/isfinite (Depends-on): Likewise.
8673         * modules/isinf (Depends-on): Likewise.
8674         * modules/lchown (Depends-on): Likewise.
8675         * modules/ldexpl (Depends-on): Likewise.
8676         * modules/link (Depends-on): Likewise.
8677         * modules/linkat (Depends-on): Likewise.
8678         * modules/listen (Depends-on): Likewise.
8679         * modules/logl (Depends-on): Likewise.
8680         * modules/lstat (Depends-on): Likewise.
8681         * modules/mbrlen (Depends-on): Likewise.
8682         * modules/mbrtowc (Depends-on): Likewise.
8683         * modules/mbsinit (Depends-on): Likewise.
8684         * modules/mbsnrtowcs (Depends-on): Likewise.
8685         * modules/mbsrtowcs (Depends-on): Likewise.
8686         * modules/mbtowc (Depends-on): Likewise.
8687         * modules/memcmp (Depends-on): Likewise.
8688         * modules/mkdir (Depends-on): Likewise.
8689         * modules/mkdtemp (Depends-on): Likewise.
8690         * modules/mkfifo (Depends-on): Likewise.
8691         * modules/mkfifoat (Depends-on): Likewise.
8692         * modules/mknod (Depends-on): Likewise.
8693         * modules/mkostemp (Depends-on): Likewise.
8694         * modules/mkostemps (Depends-on): Likewise.
8695         * modules/mkstemp (Depends-on): Likewise.
8696         * modules/mkstemps (Depends-on): Likewise.
8697         * modules/mktime (Depends-on): Likewise.
8698         * modules/nanosleep (Depends-on): Likewise.
8699         * modules/open (Depends-on): Likewise.
8700         * modules/openat (Depends-on): Likewise.
8701         * modules/perror (Depends-on): Likewise.
8702         * modules/poll (Depends-on): Likewise.
8703         * modules/popen (Depends-on): Likewise.
8704         * modules/posix_spawn (Depends-on): Likewise.
8705         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
8706         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
8707         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
8708         * modules/posix_spawnp (Depends-on): Likewise.
8709         * modules/pread (Depends-on): Likewise.
8710         * modules/printf-posix (Depends-on): Likewise.
8711         * modules/ptsname (Depends-on): Likewise.
8712         * modules/putenv (Depends-on): Likewise.
8713         * modules/pwrite (Depends-on): Likewise.
8714         * modules/readline (Depends-on): Likewise.
8715         * modules/readlink (Depends-on): Likewise.
8716         * modules/readlinkat (Depends-on): Likewise.
8717         * modules/recv (Depends-on): Likewise.
8718         * modules/recvfrom (Depends-on): Likewise.
8719         * modules/regex (Depends-on): Likewise.
8720         * modules/remove (Depends-on): Likewise.
8721         * modules/rename (Depends-on): Likewise.
8722         * modules/renameat (Depends-on): Likewise.
8723         * modules/rmdir (Depends-on): Likewise.
8724         * modules/round (Depends-on): Likewise.
8725         * modules/roundf (Depends-on): Likewise.
8726         * modules/roundl (Depends-on): Likewise.
8727         * modules/rpmatch (Depends-on): Likewise.
8728         * modules/select (Depends-on): Likewise.
8729         * modules/send (Depends-on): Likewise.
8730         * modules/sendto (Depends-on): Likewise.
8731         * modules/setenv (Depends-on): Likewise.
8732         * modules/setlocale (Depends-on): Likewise.
8733         * modules/setsockopt (Depends-on): Likewise.
8734         * modules/shutdown (Depends-on): Likewise.
8735         * modules/sigaction (Depends-on): Likewise.
8736         * modules/signbit (Depends-on): Likewise.
8737         * modules/sigprocmask (Depends-on): Likewise.
8738         * modules/sinl (Depends-on): Likewise.
8739         * modules/sleep (Depends-on): Likewise.
8740         * modules/snprintf (Depends-on): Likewise.
8741         * modules/snprintf-posix (Depends-on): Likewise.
8742         * modules/socket (Depends-on): Likewise.
8743         * modules/sprintf-posix (Depends-on): Likewise.
8744         * modules/sqrtl (Depends-on): Likewise.
8745         * modules/stat (Depends-on): Likewise.
8746         * modules/strchrnul (Depends-on): Likewise.
8747         * modules/strdup-posix (Depends-on): Likewise.
8748         * modules/strerror (Depends-on): Likewise.
8749         * modules/strerror_r-posix (Depends-on): Likewise.
8750         * modules/strndup (Depends-on): Likewise.
8751         * modules/strnlen (Depends-on): Likewise.
8752         * modules/strptime (Depends-on): Likewise.
8753         * modules/strsep (Depends-on): Likewise.
8754         * modules/strsignal (Depends-on): Likewise.
8755         * modules/strstr-simple (Depends-on): Likewise.
8756         * modules/strtod (Depends-on): Likewise.
8757         * modules/strtoimax (Depends-on): Likewise.
8758         * modules/strtok_r (Depends-on): Likewise.
8759         * modules/strtoumax (Depends-on): Likewise.
8760         * modules/symlink (Depends-on): Likewise.
8761         * modules/symlinkat (Depends-on): Likewise.
8762         * modules/tanl (Depends-on): Likewise.
8763         * modules/tcgetsid (Depends-on): Likewise.
8764         * modules/tmpfile (Depends-on): Likewise.
8765         * modules/trunc (Depends-on): Likewise.
8766         * modules/truncf (Depends-on): Likewise.
8767         * modules/truncl (Depends-on): Likewise.
8768         * modules/uname (Depends-on): Likewise.
8769         * modules/unlink (Depends-on): Likewise.
8770         * modules/unlockpt (Depends-on): Likewise.
8771         * modules/unsetenv (Depends-on): Likewise.
8772         * modules/usleep (Depends-on): Likewise.
8773         * modules/utimensat (Depends-on): Likewise.
8774         * modules/vasprintf (Depends-on): Likewise.
8775         * modules/vdprintf (Depends-on): Likewise.
8776         * modules/vdprintf-posix (Depends-on): Likewise.
8777         * modules/vfprintf-posix (Depends-on): Likewise.
8778         * modules/vprintf-posix (Depends-on): Likewise.
8779         * modules/vsnprintf (Depends-on): Likewise.
8780         * modules/vsnprintf-posix (Depends-on): Likewise.
8781         * modules/vsprintf-posix (Depends-on): Likewise.
8782         * modules/wcrtomb (Depends-on): Likewise.
8783         * modules/wcscasecmp (Depends-on): Likewise.
8784         * modules/wcscspn (Depends-on): Likewise.
8785         * modules/wcsdup (Depends-on): Likewise.
8786         * modules/wcsncasecmp (Depends-on): Likewise.
8787         * modules/wcsnrtombs (Depends-on): Likewise.
8788         * modules/wcspbrk (Depends-on): Likewise.
8789         * modules/wcsrtombs (Depends-on): Likewise.
8790         * modules/wcsspn (Depends-on): Likewise.
8791         * modules/wcsstr (Depends-on): Likewise.
8792         * modules/wcstok (Depends-on): Likewise.
8793         * modules/wcswidth (Depends-on): Likewise.
8794         * modules/wctob (Depends-on): Likewise.
8795         * modules/wctomb (Depends-on): Likewise.
8796         * modules/wctype (Depends-on): Likewise.
8797         * modules/wcwidth (Depends-on): Likewise.
8798         * modules/write (Depends-on): Likewise.
8799
8800 2011-05-03  Bruno Haible  <bruno@clisp.org>
8801
8802         Support for conditional dependencies.
8803         * doc/gnulib.texi (Module description): Document the syntax of
8804         conditional dependencies.
8805         * gnulib-tool: New option --conditional-dependencies.
8806         (func_usage): Document it.
8807         (cond_dependencies): New variable.
8808         (func_get_automake_snippet_conditional,
8809         func_get_automake_snippet_unconditional): New functions, extracted from
8810         func_get_automake_snippet.
8811         (func_get_automake_snippet): Use them.
8812         (sed_first_32_chars): New variable.
8813         (func_module_shellfunc_name): New function.
8814         (func_module_shellvar_name): New function.
8815         (func_module_conditional_name): New function.
8816         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8817         func_cond_module_condition): New functions.
8818         (func_modules_transitive_closure): Add support for conditional
8819         dependencies.
8820         (func_emit_lib_Makefile_am): For a conditional module, enclose the
8821         conditional automake snippet in an automake conditional.
8822         (func_emit_autoconf_snippets): Emit shell functions that contain the
8823         code for conditional modules.
8824         (func_import, func_create_testdir): Update specification.
8825
8826 2011-05-03  Eric Blake  <eblake@redhat.com>
8827
8828         test-getaddrinfo: report error information
8829         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
8830
8831 2011-05-03  Jim Meyering  <meyering@redhat.com>
8832
8833         bootstrap: avoid build failure when $GZIP is set
8834         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
8835         program name.  If defined at all, it is supposed to list gzip options.
8836         Reported by Alan Curry in http://debbugs.gnu.org/8609
8837
8838 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
8839
8840         readme-release: new module with release instructions
8841         * modules/readme-release: New module.
8842         * top/README-release: New file, from coreutils, grep, diffutils.
8843         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8844
8845 2011-05-02  Eric Blake  <eblake@redhat.com>
8846
8847         fflush: also replace fclose when fixing fflush
8848         * modules/fflush (Depends-on): Add fclose.
8849         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
8850         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
8851         memstreams with no backing fd.
8852         * doc/posix-functions/fclose.texi (fclose): Document the use of
8853         fflush module to fix the bug.
8854         * tests/test-fclose.c (main): Relax test when fclose is used in
8855         isolation.
8856
8857         fclose: add some tests
8858         * modules/fclose-tests: New test module.
8859         * tests/test-fclose.c: New file.
8860         * doc/posix-functions/fclose.texi (fclose): Document the bug.
8861
8862         fclose: reduced dependencies
8863         * modules/fclose (Depends-on): Switch from fflush/fseeko to
8864         simpler lseek.
8865         * lib/fclose.c (rpl_fclose): Likewise.
8866         Reported by Simon Josefsson.
8867
8868         exit: drop remaining clients
8869         * modules/argmatch (Depends-on): Replace exit with stdlib.
8870         * modules/copy-file (Depends-on): Likewise.
8871         * modules/execute (Depends-on): Likewise.
8872         * modules/exitfail (Depends-on): Likewise.
8873         * modules/obstack (Depends-on): Likewise.
8874         * modules/pagealign_alloc (Depends-on): Likewise.
8875         * modules/pipe-filter-gi (Depends-on): Likewise.
8876         * modules/pipe-filter-ii (Depends-on): Likewise.
8877         * modules/savewd (Depends-on): Likewise.
8878         * modules/spawn-pipe (Depends-on): Likewise.
8879         * modules/wait-process (Depends-on): Likewise.
8880         * modules/xsetenv (Depends-on): Likewise.
8881         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
8882         * modules/git-merge-changelog (Depends-on): Likewise.
8883         * modules/long-options (Depends-on): Likewise.
8884         * modules/pt_chown (Depends-on): Likewise.
8885         * modules/sysexits (Depends-on): Likewise.
8886
8887         freading: relax license from LGPLv3+ to LGPLv2+
8888         * modules/freading (License): Relax LGPL version.
8889
8890 2011-05-02  Bruno Haible  <bruno@clisp.org>
8891
8892         fchdir: Remove unused dependencies.
8893         * modules/fchdir (Depends-on): Remove include_next.
8894
8895 2011-05-02  Bruno Haible  <bruno@clisp.org>
8896
8897         gnulib-tool: Refactor.
8898         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8899         from func_emit_autoconf_snippets.
8900         (func_emit_autoconf_snippets): Use it.
8901
8902 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8903
8904         * NEWS: Document removal of 'exit'.
8905         * modules/exit: Remove file.
8906
8907 2011-05-01  Bruno Haible  <bruno@clisp.org>
8908
8909         Update DEPENDENCIES.
8910         * DEPENDENCIES (gettext): Recommend the newest release.
8911         Reported by Simon Josefsson.
8912
8913 2011-05-01  Bruno Haible  <bruno@clisp.org>
8914
8915         gnulib-tool: Reduce code duplication.
8916         * gnulib-tool (func_emit_autoconf_snippets): New function.
8917         (func_import, func_create_testdir): Use it.
8918
8919 2011-04-30  Eric Blake  <eblake@redhat.com>
8920
8921         fclose: don't fail on non-seekable input stream
8922         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8923         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8924         since fflush is allowed to fail in that case.
8925
8926 2011-04-30  Bruno Haible  <bruno@clisp.org>
8927
8928         dup3: cleanup
8929         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8930
8931 2011-04-30  Bruno Haible  <bruno@clisp.org>
8932
8933         netdb: Make it work in C++ mode.
8934         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8935         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8936         module.
8937         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8938         gl_MODULE_INDICATOR_FOR_TESTS.
8939         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8940         * modules/netdb-c++-tests: New file.
8941         * tests/test-netdb-c++.cc: New file.
8942
8943 2011-04-30  Bruno Haible  <bruno@clisp.org>
8944
8945         New modules 'vfscanf', 'vscanf'.
8946         * modules/vfscanf: New file.
8947         * modules/vscanf: New file.
8948         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8949         here.
8950         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8951         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8952
8953 2011-04-30  Bruno Haible  <bruno@clisp.org>
8954
8955         passfd: Add comments.
8956         * lib/passfd.c: Add comments about platforms.
8957
8958 2011-04-30  Bruno Haible  <bruno@clisp.org>
8959
8960         sys_uio: Make <sys/uio.h> self-contained.
8961         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8962         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8963
8964 2011-04-30  Bruno Haible  <bruno@clisp.org>
8965
8966         sys_socket: Ensure 'struct iovec' definition.
8967         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8968         <sys/socket.h>.
8969         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8970
8971 2011-04-30  Bruno Haible  <bruno@clisp.org>
8972
8973         sys_uio: Protect definition of 'struct iovec'.
8974         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8975         it as a C struct.
8976
8977 2011-04-30  Bruno Haible  <bruno@clisp.org>
8978
8979         manywarnings: fix indentation
8980         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8981
8982 2011-04-30  Pádraig Brady <P@draigBrady.com>
8983
8984         manywarnings: add -Wno-missing-field-initializers if needed.
8985         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8986         option if it's needed to allow initialization with { 0, }
8987
8988 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8989
8990         announce-gen: cosmetic improvement
8991         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8992
8993 2011-04-29  Jim Meyering  <meyering@redhat.com>
8994
8995         vc-list-files: indent with spaces, not TABs
8996         * build-aux/vc-list-files: Convert leading TABs to spaces,
8997         to match the style of most other files in gnulib.
8998
8999         announce-gen: indent with spaces, not TABs
9000         * build-aux/announce-gen: Convert all TABs to spaces, to match
9001         the style of most other files in gnulib.
9002
9003 2011-04-29  Eric Blake  <eblake@redhat.com>
9004
9005         quotearg: avoid uninitialized variable use
9006         * lib/quotearg.c (quoting_options_from_style): Initialize
9007         remaining fields, and ensure that custom styles are only used via
9008         quoting_options rather than quoting_style.
9009
9010 2011-04-29  Jim Meyering  <meyering@redhat.com>
9011
9012         maint.mk: remove unused VC-tag variable
9013         * top/maint.mk (VC-tag): Remove unused variable.
9014
9015 2011-04-29  Bruno Haible  <bruno@clisp.org>
9016
9017         netdb: fix gai_strerror replacements
9018         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
9019         * modules/netdb: Substitute it.
9020
9021 2011-04-29  Jim Meyering  <meyering@redhat.com>
9022
9023         test-getcwd.c: avoid new set-but-not-used warning
9024         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
9025         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
9026         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
9027         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
9028
9029         test-hash.c: avoid a new shadowing warning
9030         * tests/test-hash.c (main): Don't shadow "dup".
9031
9032 2011-04-28  Eric Blake  <eblake@redhat.com>
9033
9034         getaddrinfo: fix gai_strerror signature
9035         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
9036         and work around mingw with UNICODE defined.
9037         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
9038         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
9039         * modules/netdb (Makefile.am): Substitute it.
9040         * lib/netdb.in.h (gai_strerror): Declare replacement.
9041         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
9042         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
9043         the fix.
9044
9045         getsockopt: avoid compiler warning
9046         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
9047         Reported by Matthias Bolte.
9048
9049         tests: drop unused link dependency
9050         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
9051         * modules/dirent-safer-tests (Makefile.am): Likewise.
9052         * modules/fdopendir-tests (Makefile.am): Likewise.
9053         * modules/mkfifoat-tests (Makefile.am): Likewise.
9054         * modules/openat-safer-tests (Makefile.am): Likewise.
9055         * modules/openat-tests (Makefile.am): Likewise.
9056         * modules/readlinkat-tests (Makefile.am): Likewise.
9057         * modules/symlinkat-tests (Makefile.am): Likewise.
9058         * modules/linkat-tests (Makefile.am): Likewise.
9059         (Depends-on): Switch to filenamecat-lgpl.
9060         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
9061         LIBINTL.
9062         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
9063         * tests/test-linkat.c (main): Don't require xalloc.
9064
9065         hash, mgetgroups: drop xalloc dependency
9066         * lib/hash.c (includes): Adjust includes.
9067         * lib/mgetgroups.c (includes): Likewise.
9068         (xgetgroups): Move...
9069         * lib/xgetgroups.c: ...to new file.
9070         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
9071         * modules/xgetgroups: New file, split from...
9072         * modules/mgetgroups: ...here.
9073         (Depends-on): Add xalloc-oversized.
9074         * modules/hash (Depends-on): Likewise.
9075         * modules/hash-tests (Depends-on): Drop xalloc.
9076         (test_hash_LDADD): Drop unused library.
9077         * tests/test-hash.c (main): Break xalloc dependency.
9078         (includes): Drop unused include.
9079
9080         xalloc-oversized: new module
9081         * modules/xalloc-oversized: New module.
9082         * modules/xalloc (Depends-on): Add it.
9083         * lib/xalloc.h (xalloc_oversized): Move...
9084         * lib/xalloc-oversized.h: ...into new file.
9085
9086         utimecmp: drop dependency on xmalloc
9087         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
9088         due to memory pressure.
9089         * modules/utimecmp (Depends-on): Drop xalloc.
9090
9091 2011-04-27  Eric Blake  <eblake@redhat.com>
9092
9093         getcwd: fix mingw bugs
9094         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
9095         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
9096         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
9097
9098 2011-04-27  Bruno Haible  <bruno@clisp.org>
9099
9100         mkstemps: Ensure declaration on MacOS X 10.5.
9101         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
9102         * doc/glibc-functions/mkstemps.texi: Document header file problem on
9103         MacOS X.
9104
9105 2011-04-27  Bruno Haible  <bruno@clisp.org>
9106
9107         mkstemp: More documentation.
9108         * doc/posix-functions/mkstemp.texi: Document header file problem on
9109         MacOS X.
9110
9111 2011-04-27  Bruno Haible  <bruno@clisp.org>
9112
9113         mkstemp: Tweak configure message when cross-compiling.
9114         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
9115         result as a guess.
9116
9117 2011-04-27  Bruno Haible  <bruno@clisp.org>
9118
9119         clean-temp: Clarify what it does.
9120         * lib/clean-temp.h: Add more comments.
9121         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
9122         module.
9123         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
9124         * doc/glibc-functions/mkstemps.texi: Likewise.
9125         * doc/glibc-functions/mkostemps.texi: Likewise.
9126
9127 2011-04-27  Eric Blake  <eblake@redhat.com>
9128
9129         fchdir: avoid extra chdir and fix test
9130         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
9131         getcwd-lgpl.
9132         * lib/fchdir.c (get_name): Any absolute name will do; it does not
9133         have to be canonical.
9134         (canonicalize_file_name): Drop unused macro.
9135         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
9136
9137         filenamecat-lgpl: fix licence
9138         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
9139         when it was first created.
9140
9141         linkat, renameat: add missing dependency
9142         * modules/linkat (Depends-on): Require getcwd-lgpl.
9143         * modules/renameat (Depends-on): Likewise.
9144
9145         tests: reduce dependencies
9146         * tests/test-linkat.c (main): Use lighter-weight getcwd.
9147         * tests/test-renameat.c (main): Likewise.
9148         * modules/linkat-tests (Depends-on): Relax dependency.
9149         * modules/renameat-tests (Depends-on): Likewise.
9150         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
9151         dependency explicit.
9152
9153         save-cwd: reduce default dependency
9154         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
9155         * lib/save-cwd.c: Update comments.
9156         * NEWS: Document the semantic change.
9157
9158         getcwd: enhance tests
9159         * tests/test-getcwd-lgpl.c: New file, taken from...
9160         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
9161         repeat long path stress tests from m4 probe.
9162         * modules/getcwd-lgpl-tests: New module.
9163         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
9164         * m4/getcwd-abort-bug.m4: Update comment.
9165         * m4/getcwd-path-max.m4: Likewise.
9166
9167         getcwd-lgpl: new module
9168         * modules/getcwd-lgpl: New module.
9169         * lib/getcwd-lgpl.c: New file.
9170         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9171         * MODULES.html.sh (lacking POSIX:2008): Likewise.
9172         * modules/getcwd (configure.ac): Set C witness.
9173         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
9174
9175         getcwd: tweak comments
9176         * m4/getcwd-abort-bug.m4: Fix comments.
9177         * m4/getcwd-path-max.m4: Likewise.
9178         * m4/getcwd.m4: Likewise.
9179
9180 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
9181         and Eric Blake  <eblake@redhat.com>
9182
9183         mkstemp: replace if system version uses wrong permissions
9184         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
9185         read/write mode bits set in file created by mkstemp.
9186         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
9187
9188 2011-04-27  Eric Blake  <eblake@redhat.com>
9189
9190         passfd: avoid compiler warning
9191         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
9192         Reported by Laine Stump.
9193
9194 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
9195
9196         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
9197         required by the NetBSD (and perhaps other 4.4BSD derived) join.
9198
9199 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
9200         and Eric Blake  <eblake@redhat.com>
9201
9202         mkstemp: mention clean-temp module
9203         * lib/mkstemp.c: Add comment.
9204         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
9205
9206 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
9207
9208         inttypes: also provide default values for 32-bit tests
9209         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
9210         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
9211
9212 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
9213
9214         strtoumax: remove dependency on strtoimax
9215         This is like the strtoull change of yesterday.
9216         * modules/strtoumax (Files): Add lib/strtoimax.c.
9217         (Depends-on): Remove strtoimax and add verify.
9218
9219         inttypes-incomplete: new module
9220         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
9221         all but the PRI* and SCN* parts of gl_INTTYPES_H.
9222         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
9223         of gl_INTTYPES_H.
9224         (gl_INTTYPES_H): Rewrite in terms of these new macros.
9225         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
9226         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
9227         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
9228         * modules/strtoumax, modules/xstrtol (Depends-on):
9229         Depend on inttypes-incomplete, not inttypes.
9230         * modules/inttypes-incomplete: New module, containing the contents
9231         of the old modules/inttypes module, except that the Files: section
9232         omits m4/inttypes-pri.m4, and the configure.ac section invokes
9233         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
9234         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
9235         (Depends-on): Depend only on inttypes-incomplete.
9236         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
9237
9238         inttypes: omit now-redundant strtoimax and strtoumax work
9239         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
9240         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
9241
9242         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
9243         This supports apps that need pointers to strtoimax and strtoumax,
9244         and ports to HP-UX 11.00 64.bit, which has macros that expand to
9245         nonexistent functions.  See
9246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
9247         et seq.
9248         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
9249         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
9250         a macro.
9251         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9252
9253 2011-04-25  Simon Josefsson  <simon@josefsson.org>
9254
9255         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
9256
9257 2011-04-25  Bruno Haible  <bruno@clisp.org>
9258
9259         strtol, strtoul: Mark modules as obsolete.
9260         * modules/strtol (Status, Notice): New sections.
9261         * modules/strtoul (Status, Notice): New sections.
9262
9263 2011-04-25  Bruno Haible  <bruno@clisp.org>
9264
9265         strtod: Remove check for strtod, unless supporting old platforms.
9266         * modules/strtod-obsolete: New file.
9267         * m4/strtod-obsolete.m4: New file.
9268         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
9269         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
9270         * modules/strtod (Depends-on): Add strtod-obsolete.
9271         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
9272
9273 2011-04-25  Bruno Haible  <bruno@clisp.org>
9274
9275         strcase: Make module obsolete.
9276         * modules/strcase (Status, Notice): New sections.
9277
9278 2011-04-25  Bruno Haible  <bruno@clisp.org>
9279
9280         dup2: Remove check for dup2, unless supporting old obsolete platforms.
9281         * modules/dup2-obsolete: New file.
9282         * m4/dup2-obsolete.m4: New file.
9283         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
9284         gl_FUNC_DUP2_OBSOLETE is not also defined.
9285         * modules/dup2 (Depends-on): Add dup2-obsolete.
9286         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
9287
9288 2011-04-25  Bruno Haible  <bruno@clisp.org>
9289
9290         strnlen: Avoid memchr related link error on old obsolete platforms.
9291         * modules/memchr-obsolete: New file.
9292         * m4/memchr-obsolete.m4: New file.
9293         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
9294         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
9295         * modules/memchr (Depends-on): Add memchr-obsolete.
9296         * modules/strnlen (Depends-on): Likewise.
9297         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
9298
9299 2011-04-25  Jim Meyering  <meyering@redhat.com>
9300
9301         maint.mk: makefile_at_at_check extend and clean up
9302         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
9303         in addition to */Makefile.am.
9304         Exempt legitimate uses of @VAR@ notation, e.g.,
9305         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
9306         Remove obsolete coreutils-specific comment.
9307         Prompted by discussion here:
9308         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
9309
9310 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
9311
9312         strtoul: remove dependency on strtol
9313         This is so that 'configure' need not check for strtol merely because
9314         the application needs strtoul.
9315         * modules/strtoul (Files): Add lib/strtol.c.
9316         (Depends-on): Remove strtol.
9317
9318         strtoull: remove dependency on strtoul
9319         This is like the strtoll change.
9320         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
9321         (Depends-on): Remove strtoul.
9322
9323         strtoll: remove dependency on strtol
9324         This is so that 'configure' need not check for strtol merely because
9325         the application needs strtoll.
9326         * modules/strtoll (Files): Add lib/strtol.c.
9327         (Depends-on): Remove strtol.
9328
9329 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9330
9331         inttypes: Move some configure check to module 'imaxdiv'.
9332         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
9333         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
9334         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
9335
9336 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9337
9338         inttypes: Move some configure check to module 'imaxabs'.
9339         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
9340         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
9341         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
9342
9343 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9344
9345         inttypes: Remove configure tests that are not needed since 2009-12-31.
9346         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
9347         gl_cv_header_working_inttypes_h.
9348
9349 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9350
9351         * modules/strnlen (Depends-on): Remove memchr.
9352         The strnlen implementation doesn't need the memchr module's fixes; see
9353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
9354
9355         strtol: remove dependency on wchar
9356         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
9357         * modules/strtol (Depends-on): Remove wchar.
9358
9359 2011-04-21  Eric Blake  <eblake@redhat.com>
9360
9361         passfd: fix test regression on Linux
9362         * modules/passfd-tests (configure.ac): Correct socketpair check.
9363
9364         passfd: speed up configure and drop unused code
9365         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
9366         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
9367         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
9368         Instead of probing at configure for unix_scm_rights_bsd44_way,
9369         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
9370         check to a struct member probe.
9371         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
9372         (sendfd, recvfd): Update preprocessor checks.
9373         * modules/passfd (Files): Reflect rename, and drop unused file.
9374         (Depends-on): Drop unused dependency.
9375
9376         passfd: allow compilation on mingw
9377         * modules/sys_socket (Depends-on): Add sys_uio.
9378         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
9379         iovec and a minimal struct msghdr.
9380         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
9381         * tests/test-sys_socket.c (main): Enhance test.
9382         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
9383         guaranteed to provide what we need.
9384         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
9385         * modules/passfd-tests (Depends-on): Add sys_wait.
9386         * tests/test-passfd.c (main): Skip test on mingw, for now.
9387         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
9388         partial 'struct msghdr' implementation.
9389
9390         sys_uio: new module
9391         * modules/sys_uio: New module.
9392         * modules/sys_uio-tests: Likewise.
9393         * lib/sys_uio.in.h: New file.
9394         * m4/sys_uio_h.m4: Likewise.
9395         * tests/test-sys_uio.c: Likewise.
9396         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
9397         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
9398
9399 2011-04-20  Jim Meyering  <meyering@redhat.com>
9400
9401         useless-if-before-free: avoid false-positive
9402         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
9403         disjunct so that it too requires a terminating ";".  Without that,
9404         this script would identify as useless one statement from gcc that
9405         was not:
9406           if (aligned_ptr)
9407             free (((void **) aligned_ptr) [-1]);
9408
9409 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
9410
9411         doc: update users.txt.
9412         * users.txt: Add barcode.
9413
9414 2011-04-19  Bruno Haible  <bruno@clisp.org>
9415
9416         ioctl: Remove link dependency on native Windows.
9417         * lib/fd-hook.h: Renamed from lib/close-hook.h.
9418         (gl_close_fn, gl_ioctl_fn): New types.
9419         (struct fd_hook): Renamed from struct close_hook. Change type of
9420         private_close_fn field. Add private_ioctl_fn field.
9421         (close_hook_fn): Add parameter for primary close method.
9422         (execute_close_hooks, execute_all_close_hooks): Likewise.
9423         (ioctl_hook_fn): New type.
9424         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
9425         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9426         argument.
9427         (unregister_fd_hook): Renamed from unregister_close_hook.
9428         * lib/fd-hook.c: Renamed from lib/close-hook.c.
9429         Don't include <unistd.h>.
9430         (close): Remove undef.
9431         (anchor): Update.
9432         (execute_close_hooks): Add argument for primary close method.
9433         (execute_all_close_hooks): Likewise.
9434         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
9435         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9436         argument. Allow each argument to be NULL.
9437         (unregister_fd_hook): Renamed from unregister_close_hook.
9438         * lib/close.c (rpl_close): Pass 'close' function pointer to
9439         execute_all_close_hooks.
9440         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
9441         (primary_ioctl): New function.
9442         (ioctl): Don't call ioctlsocket here. Instead, call
9443         execute_all_ioctl_hooks.
9444         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
9445         close method.
9446         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
9447         (fd_sockets_hook): Renamed from close_sockets_hook.
9448         (gl_sockets_startup, gl_sockets_cleanup): Update.
9449         * modules/fd-hook: Renamed from modules/close-hook. Update.
9450         * modules/close (Depends-on): Add fd-hook, remove close-hook.
9451         * modules/sockets (Depends-on): Likewise.
9452         * modules/ioctl (Depends-on): Add fd-hook.
9453         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
9454         GNULIB_SOCKET.
9455
9456 2011-04-19  Bruno Haible  <bruno@clisp.org>
9457
9458         Move the support of O_NONBLOCK in open() to the 'open' module.
9459         * modules/nonblocking (Depends-on): Remove 'open'.
9460         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
9461         gl_cv_have_open_O_NONBLOCK.
9462         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
9463         O_NONBLOCK support.
9464         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
9465
9466 2011-04-17  Bruno Haible  <bruno@clisp.org>
9467
9468         pipe2: Simplify code.
9469         * lib/pipe2.c (pipe2): Reduce code duplication.
9470
9471 2011-04-17  Bruno Haible  <bruno@clisp.org>
9472
9473         nonblocking: Add comment.
9474         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
9475
9476 2011-04-17  Bruno Haible  <bruno@clisp.org>
9477
9478         nonblocking: Add tests for sockets.
9479         * tests/test-nonblocking-socket.sh: New file.
9480         * tests/test-nonblocking-socket-main.c: New file.
9481         * tests/test-nonblocking-socket-child.c: New file.
9482         * tests/test-nonblocking-socket.h: New file.
9483         * tests/socket-server.h: New file.
9484         * tests/socket-client.h: New file.
9485         * modules/nonblocking-socket-tests: New file.
9486         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
9487
9488 2011-04-17  Bruno Haible  <bruno@clisp.org>
9489
9490         nonblocking: Add tests for pipes.
9491         * tests/test-nonblocking-pipe.sh: New file.
9492         * tests/test-nonblocking-pipe-main.c: New file.
9493         * tests/test-nonblocking-pipe-child.c: New file.
9494         * tests/test-nonblocking-pipe.h: New file.
9495         * tests/test-nonblocking-writer.h: New file.
9496         * tests/test-nonblocking-reader.h: New file.
9497         * tests/test-nonblocking-misc.h: New file.
9498         * modules/nonblocking-pipe-tests: New file.
9499         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
9500
9501 2011-04-16  Bruno Haible  <bruno@clisp.org>
9502
9503         gettext: Clarify the needed programmer actions.
9504         * modules/gettext (Notice): New field.
9505         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
9506
9507 2011-04-16  Bruno Haible  <bruno@clisp.org>
9508
9509         strchrnul: Tweak last commit.
9510         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
9511         bug.
9512         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
9513         as in _GL_FUNCDECL_SYS.
9514         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
9515         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
9516
9517 2011-04-15  Eric Blake  <eblake@redhat.com>
9518
9519         strchrnul: work around cygwin bug
9520         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
9521         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
9522         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
9523         * modules/string (Makefile.am): Substitute it.
9524         * lib/string.in.h (strchrnul): Use it.
9525
9526 2011-04-15  Bruno Haible  <bruno@clisp.org>
9527
9528         Don't require lib/stdio-write.c when only module 'stdio' is used.
9529         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
9530         invocation.
9531         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
9532
9533 2011-04-14  Bruno Haible  <bruno@clisp.org>
9534
9535         Support non-blocking pipe I/O in read() on native Windows.
9536         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
9537         (read): New declaration.
9538         * lib/read.c: New file.
9539         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
9540         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
9541         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
9542         vscanf): New declarations.
9543         * lib/stdio-read.c: New file.
9544         * m4/read.m4: New file.
9545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
9546         REPLACE_READ.
9547         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
9548         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9549         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
9550         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
9551         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
9552         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9553         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9554         * modules/read: New file.
9555         * modules/nonblocking (Files): Add lib/stdio-read.c.
9556         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
9557         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
9558         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9559         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9560         * modules/pread (Depends-on): Add read.
9561         * modules/safe-read (Depends-on): Likewise.
9562         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
9563         gets, scanf, vfscanf, vscanf): Verify signatures.
9564         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
9565         problem with non-blocking pipes.
9566         * doc/posix-functions/fgetc.texi: Likewise.
9567         * doc/posix-functions/fgets.texi: Likewise.
9568         * doc/posix-functions/fread.texi: Likewise.
9569         * doc/posix-functions/fscanf.texi: Likewise.
9570         * doc/posix-functions/getc.texi: Likewise.
9571         * doc/posix-functions/getchar.texi: Likewise.
9572         * doc/posix-functions/gets.texi: Likewise.
9573         * doc/posix-functions/scanf.texi: Likewise.
9574         * doc/posix-functions/vfscanf.texi: Likewise.
9575         * doc/posix-functions/vscanf.texi: Likewise.
9576
9577 2011-04-14  Bruno Haible  <bruno@clisp.org>
9578
9579         Support non-blocking pipe I/O in write() on native Windows.
9580         * lib/write.c (rpl_write): Split a write request that failed merely
9581         because the byte count was larger than the pipe buffer's size.
9582         * doc/posix-functions/write.texi: Mention the problem with large byte
9583         counts.
9584
9585 2011-04-14  Bruno Haible  <bruno@clisp.org>
9586
9587         wchar: Ensure that wchar_t gets defined on uClibc.
9588         * lib/wchar.in.h: On uClibc, include <stddef.h>.
9589         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
9590
9591 2011-04-13  Bruno Haible  <bruno@clisp.org>
9592
9593         safe-write, full-read: Avoid unnecessary compilation units.
9594         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
9595         (Depends-on): Remove safe-read. Add ssize_t.
9596         * modules/full-read (Files): Add lib/full-write.c.
9597         (Depends-on): Add full-write.
9598
9599 2011-04-13  Bruno Haible  <bruno@clisp.org>
9600
9601         Support non-blocking pipe I/O and SIGPIPE in pwrite().
9602         * modules/pwrite (Depends-on): Add 'write'.
9603
9604 2011-04-13  Bruno Haible  <bruno@clisp.org>
9605
9606         Support non-blocking pipe I/O in write() on native Windows.
9607         * lib/unistd.in.h (write): Enable replacement also if
9608         GNULIB_UNISTD_H_NONBLOCKING is 1.
9609         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
9610         (rpl_write): When failing to write on a non-blocking pipe, change
9611         errno from ENOSPC to EAGAIN.
9612         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
9613         putchar, puts, vfprintf, vprintf): Enable replacement also if
9614         GNULIB_STDIO_H_NONBLOCKING is 1.
9615         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
9616         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
9617         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
9618         CALL_WITH_SIGPIPE_EMULATION.
9619         (CALL_WITH_SIGPIPE_EMULATION): Use them.
9620         * m4/nonblocking.m4: New file.
9621         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
9622         for non-blocking I/O support.
9623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9624         GNULIB_UNISTD_H_NONBLOCKING.
9625         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
9626         required for non-blocking I/O support.
9627         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
9628         * modules/nonblocking (Files): Add m4/nonblocking.m4,
9629         lib/stdio-write.c, m4/asm-underscore.m4.
9630         (Depends-on): Add stdio, unistd.
9631         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
9632         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
9633         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
9634         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
9635         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
9636         problem with non-blocking pipes.
9637         * doc/posix-functions/fputc.texi: Likewise.
9638         * doc/posix-functions/fputs.texi: Likewise.
9639         * doc/posix-functions/fwrite.texi: Likewise.
9640         * doc/posix-functions/printf.texi: Likewise.
9641         * doc/posix-functions/putc.texi: Likewise.
9642         * doc/posix-functions/putchar.texi: Likewise.
9643         * doc/posix-functions/puts.texi: Likewise.
9644         * doc/posix-functions/vfprintf.texi: Likewise.
9645         * doc/posix-functions/vprintf.texi: Likewise.
9646         * doc/posix-functions/write.texi: Likewise.
9647
9648 2011-04-10  Jim Meyering  <meyering@redhat.com>
9649
9650         maint.mk: prohibit doubled words
9651         Detect them also when they're separated by a newline.
9652         There are 3 ways to customize it:
9653           - disable the test on a per file basis, as usual with rules using
9654             $(VC_LIST_EXCEPT)
9655           - replace the default doubled-word-selecting regexp (affects all files)
9656           - ignore a particular file-vs-doubled-word match
9657         I nearly used that last one to ignore the "is is" match in
9658         coreutils' NEWS file, since the text was "ls -is is ..."
9659         To do that, I would have added this line to cfg.mk:
9660           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
9661         but it would have ignored any "is is" match in NEWS.
9662         Low probability, but still...
9663         Instead, I changed the text, slightly:
9664           -  ls -is is now consistent with ls -lis in ignoring values returned
9665           +  "ls -is" is now consistent with ls -lis in ignoring values returned
9666         * top/maint.mk (prohibit_double_word_RE_): Provide default.
9667         (prohibit_doubled_word_): Define.
9668         (sc_prohibit_doubled_word): New rule.
9669         (sc_prohibit_the_the): Remove.  Subsumed by the above.
9670
9671 2011-04-10  Jim Meyering  <meyering@redhat.com>
9672
9673         maint: fix doubled-word typo in comment
9674         * m4/gethostname.m4: s/is is/it is/
9675         * m4/getdomainname.m4: Likewise.
9676
9677 2011-04-10  Jim Meyering  <meyering@redhat.com>
9678
9679         maint: remove doubled word: s/it it/it/
9680         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
9681
9682 2011-04-10  Jim Meyering  <meyering@redhat.com>
9683
9684         maint.mk: remove useless semicolon and backslash
9685         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
9686         semicolon and backslash.
9687
9688 2011-04-10  Bruno Haible  <bruno@clisp.org>
9689
9690         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
9691         * modules/stdint-tests (Depends-on): Add wchar.
9692
9693 2011-04-10  Jim Meyering  <meyering@redhat.com>
9694
9695         maint: remove doubled words in comments, e.g., s/a a/a/
9696         * lib/strptime.c (day_of_the_week): s/the the/the/
9697         * tests/test-chown.h (test_chown): s/a a/a/
9698
9699         test-chown.h: correct a cast
9700         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
9701         when the destination is a stat.st_gid.
9702
9703 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
9704
9705         getaddrinfo: Fix test for sa_len member.
9706         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
9707         include <sys/types.h> before <sys/socket.h>.
9708
9709 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
9710
9711         maint: change "can not" to "cannot"
9712         * doc/posix-functions/iconv.texi (iconv): This one crossed line
9713         boundaries.
9714
9715 2011-04-09  Jim Meyering  <meyering@redhat.com>
9716
9717         maint: change "a a" to "a"
9718         * tests/test-lchown.h (test_lchown): s/a a/a/
9719
9720         maint.mk: prohibit \<the the\>
9721         * top/maint.mk (sc_prohibit_the_the): New rule.
9722
9723         maint: fix "the the" in comment
9724         * lib/count-one-bits.h: s/the the/the/
9725
9726         maint: change "can not" to "cannot"
9727         But do not change the occurrences in maintain.texi or in
9728         build-aux/po/Makefile.in.in, which I presume comes from gettext.
9729         * doc/gnulib-tool.texi: s/can not/cannot/
9730         * doc/posix-functions/accept.texi (accept): Likewise.
9731         * doc/posix-functions/socket.texi (socket): Likewise.
9732         * lib/mbrtowc.c: Likewise.
9733
9734         maint.mk: prohibit use of "can not"
9735         * top/maint.mk (sc_prohibit_can_not): New rule.
9736         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
9737
9738 2011-04-09  Bruno Haible  <bruno@clisp.org>
9739
9740         careadlinkat: Guard against misuse of careadlinkatcwd.
9741         * lib/careadlinkat.c: Include <stdlib.h>.
9742         (careadlinkatcwd): Check that the fd argument is as expected.
9743
9744 2011-04-09  Bruno Haible  <bruno@clisp.org>
9745
9746         careadlinkat: Use common coding style.
9747         * lib/careadlinkat.c: Move gnulib includes after system includes.
9748
9749 2011-04-09  Bruno Haible  <bruno@clisp.org>
9750
9751         careadlinkat: Clarify specification.
9752         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
9753         (careadlinkatcwd): Add comment.
9754         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
9755
9756 2011-04-09  Bruno Haible  <bruno@clisp.org>
9757
9758         areadlinkat: Avoid link error on many platforms.
9759         * modules/areadlinkat (Depends-on): Add areadlink.
9760
9761 2011-04-09  Bruno Haible  <bruno@clisp.org>
9762
9763         allocator, careadlinkat: Fix double-inclusion guard.
9764         * lib/allocator.h: Fix double-inclusion guard.
9765         * lib/careadlinkat.h: Likewise.
9766
9767 2011-04-09  Bruno Haible  <bruno@clisp.org>
9768
9769         relocatable-prog-wrapper: Update after module 'areadlink' changed.
9770         * lib/relocwrapper.c: Update dependencies hierarchy.
9771         * build-aux/install-reloc: Update list of files to be compiled.
9772         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
9773         lib/allocator.[hc].
9774
9775 2011-04-08  Eric Blake  <eblake@redhat.com>
9776
9777         strftime: silence gnulib-tool warning
9778         * modules/strftime-tests (Depends-on): Drop automatic dependency.
9779
9780 2011-04-08  Bruno Haible  <bruno@clisp.org>
9781
9782         verify: Fix syntax error with GCC 4.6 in C++ mode.
9783         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
9784         (HAVE_STATIC_ASSERT): New macro.
9785         (verify_true, verify): Use 'static_assert' if it is supported and
9786         '_Static_assert' is not supported.
9787
9788 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9789
9790         allocator: New module.
9791         * modules/allocator, lib/allocator.c: New files.
9792         * lib/allocator.h (stdlib_allocator): New decl.
9793         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
9794         Remove.  Do not include <stdlib.h>.
9795         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9796         * modules/careadlinkat (Files): Remove lib/allocator.h.
9797         (Depends-on): Add allocator.
9798
9799         stdlib: let modules use system malloc, realloc
9800         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9801         if !_GL_USE_STDLIB_ALLOC.
9802         (malloc, realloc): Limit this change to a smaller scope.
9803
9804         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9805         (malloc, realloc): Don't #undef; no longer needed.
9806         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9807         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9808         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9809         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9810         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9811         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9812         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9813         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9814
9815         careadlinkat: rename members to avoid problem
9816         * lib/allocator.h (struct allocator): Rename members from
9817         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9818         and realloc are #define'd.  Reported by Eric Blake in
9819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9820         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
9821
9822 2011-04-08  Eric Blake  <eblake@redhat.com>
9823
9824         nonblocking: reduce dependency
9825         * tests/test-nonblocking.c: Only test sockets when in use.
9826         * modules/nonblocking-tests (Depends-on): Drop socket.
9827         (Makefile.am): Link even if sockets are not present.
9828         * modules/pipe2-tests (Makefile.am): Likewise.
9829         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
9830
9831         pipe2: fix O_NONBLOCK support on mingw
9832         * modules/pipe2 (Depends-on): Add nonblocking.
9833         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
9834         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
9835         * tests/test-nonblocking.c (main): Likewise.
9836         * modules/pipe2-tests (Makefile.am): Avoid link failure.
9837
9838         fcntl-h: fix O_ACCMODE on cygwin
9839         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
9840         * lib/fcntl.in.h (O_ACCMODE): Fix it.
9841
9842         pipe-filter: drop O_NONBLOCK workarounds
9843         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
9844         * modules/pipe-filter-ii (Depends-on): Likewise.
9845         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
9846
9847         nonblocking: provide O_NONBLOCK for mingw
9848         * modules/nonblocking (Depends-on): Add open.
9849         (configure.ac): Set new witness macro.
9850         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
9851         * modules/fcntl-h (Makefile.am): Substitute it.
9852         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9853         nonblocking module is in use.
9854         * lib/nonblocking.c: Adjust portability test.
9855         * lib/open.c (open): Don't let native open see gnulib flag.
9856         * tests/test-fcntl-h.c (main): Enhance test.
9857         * tests/test-open.h (test_open): Likewise.
9858         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
9859
9860         careadlinkat: fix compilation error on mingw
9861         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
9862         within struct allocator.
9863
9864 2011-04-06  Eric Blake  <eblake@redhat.com>
9865
9866         binary-io: relicense under LGPLv2+
9867         * modules/binary-io (License): Relax to LGPLv2+.
9868         Requested for libvirt, and required by pipe2.
9869
9870 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9871
9872         verify: use _Static_assert if available
9873         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
9874         (verify_true, verify): Use it if available.  This generates better
9875         diagnostics with GCC 4.6.0 and later.
9876
9877 2011-04-05  Bruno Haible  <bruno@clisp.org>
9878
9879         Remove leftover generated .h files after config.status changed.
9880
9881         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
9882         GL_GENERATE_ALLOCA_H.
9883         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9884         GL_GENERATE_ALLOCA_H evaluates to false.
9885
9886         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9887         GL_GENERATE_ARGZ_H.
9888         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9889         evaluates to false.
9890
9891         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9892         GL_GENERATE_BYTESWAP_H.
9893         * modules/byteswap (Makefile.am): Remove byteswap.h if
9894         GL_GENERATE_BYTESWAP_H evaluates to false.
9895
9896         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9897         GL_GENERATE_ERRNO_H.
9898         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9899         evaluates to false.
9900
9901         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9902         GL_GENERATE_FLOAT_H.
9903         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9904         evaluates to false.
9905
9906         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9907         GL_GENERATE_FNMATCH_H.
9908         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9909         GL_GENERATE_FNMATCH_H evaluates to false.
9910
9911         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9912         GL_GENERATE_GLOB_H.
9913         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9914         evaluates to false.
9915
9916         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9917         automake conditional GL_GENERATE_ICONV_H.
9918         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9919         evaluates to false.
9920
9921         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9922         GL_GENERATE_NETINET_IN_H.
9923         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9924         GL_GENERATE_NETINET_IN_H evaluates to false.
9925
9926         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9927         conditional GL_GENERATE_PTHREAD_H.
9928         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9929         * modules/pthread (Makefile.am): Remove pthread.h if
9930         GL_GENERATE_PTHREAD_H evaluates to false.
9931
9932         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9933         GL_GENERATE_SCHED_H.
9934         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9935         evaluates to false.
9936
9937         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9938         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9939         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9940         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9941
9942         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9943         GL_GENERATE_STDARG_H.
9944         * modules/stdarg (Makefile.am): Remove stdarg.h if
9945         GL_GENERATE_STDARG_H evaluates to false.
9946
9947         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9948         GL_GENERATE_STDBOOL_H.
9949         * modules/stdbool (Makefile.am): Remove stdbool.h if
9950         GL_GENERATE_STDBOOL_H evaluates to false.
9951
9952         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9953         conditional GL_GENERATE_STDDEF_H.
9954         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9955         * modules/stddef (Makefile.am): Remove stddef.h if
9956         GL_GENERATE_STDDEF_H evaluates to false.
9957
9958         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9959         GL_GENERATE_STDINT_H.
9960         * modules/stdint (Makefile.am): Remove stdint.h if
9961         GL_GENERATE_STDINT_H evaluates to false.
9962
9963         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9964         GL_GENERATE_SYSEXITS_H.
9965         * modules/sysexits (Makefile.am): Remove sysexits.h if
9966         GL_GENERATE_SYSEXITS_H evaluates to false.
9967
9968         Reported by Karl Berry and Ralf Wildenhues.
9969
9970 2011-04-05  Bruno Haible  <bruno@clisp.org>
9971
9972         Ensure to rebuild generated .h files when config.status has changed.
9973         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9974         config.status.
9975         * modules/ctype (Makefile.am): Likewise.
9976         * modules/dirent (Makefile.am): Likewise.
9977         * modules/errno (Makefile.am): Likewise.
9978         * modules/fcntl-h (Makefile.am): Likewise.
9979         * modules/float (Makefile.am): Likewise.
9980         * modules/getopt-posix (Makefile.am): Likewise.
9981         * modules/glob (Makefile.am): Likewise.
9982         * modules/iconv-h (Makefile.am): Likewise.
9983         * modules/inttypes (Makefile.am): Likewise.
9984         * modules/langinfo (Makefile.am): Likewise.
9985         * modules/locale (Makefile.am): Likewise.
9986         * modules/math (Makefile.am): Likewise.
9987         * modules/netdb (Makefile.am): Likewise.
9988         * modules/netinet_in (Makefile.am): Likewise.
9989         * modules/poll-h (Makefile.am): Likewise.
9990         * modules/pthread (Makefile.am): Likewise.
9991         * modules/pty (Makefile.am): Likewise.
9992         * modules/sched (Makefile.am): Likewise.
9993         * modules/search (Makefile.am): Likewise.
9994         * modules/selinux-h (Makefile.am): Likewise.
9995         * modules/signal (Makefile.am): Likewise.
9996         * modules/spawn (Makefile.am): Likewise.
9997         * modules/stdarg (Makefile.am): Likewise.
9998         * modules/stdbool (Makefile.am): Likewise.
9999         * modules/stddef (Makefile.am): Likewise.
10000         * modules/stdint (Makefile.am): Likewise.
10001         * modules/stdio (Makefile.am): Likewise.
10002         * modules/stdlib (Makefile.am): Likewise.
10003         * modules/string (Makefile.am): Likewise.
10004         * modules/strings (Makefile.am): Likewise.
10005         * modules/sys_file (Makefile.am): Likewise.
10006         * modules/sys_ioctl (Makefile.am): Likewise.
10007         * modules/sys_select (Makefile.am): Likewise.
10008         * modules/sys_socket (Makefile.am): Likewise.
10009         * modules/sys_stat (Makefile.am): Likewise.
10010         * modules/sys_time (Makefile.am): Likewise.
10011         * modules/sys_times (Makefile.am): Likewise.
10012         * modules/sys_utsname (Makefile.am): Likewise.
10013         * modules/sys_wait (Makefile.am): Likewise.
10014         * modules/sysexits (Makefile.am): Likewise.
10015         * modules/termios (Makefile.am): Likewise.
10016         * modules/time (Makefile.am): Likewise.
10017         * modules/unistd (Makefile.am): Likewise.
10018         * modules/wchar (Makefile.am): Likewise.
10019         * modules/wctype-h (Makefile.am): Likewise.
10020         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
10021
10022 2011-04-05  Bruno Haible  <bruno@clisp.org>
10023
10024         pipe2: Relicense under LGPLv2+.
10025         * modules/pipe2 (License): Change to LGPLv2+.
10026         Requested by Eric Blake, for libvirt.
10027
10028 2011-04-05  Bruce Korb  <bkorb@gnu.org>
10029
10030         bootstrap: compute gnulib_extra_files after updating build_aux
10031         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
10032         change build_aux or also supply gnulib_extra_files.  Handle correctly.
10033
10034 2011-04-05  Eric Blake  <eblake@redhat.com>
10035
10036         bootstrap: preserve git whitelist item sorting
10037         * build-aux/bootstrap (sort_patterns): New function.
10038         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
10039
10040 2011-04-05  Simon Josefsson  <simon@josefsson.org>
10041
10042         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
10043         sc_space_tab check.
10044
10045 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
10046
10047         areadlink, areadlinkat: rewrite in terms of careadlinkat
10048         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
10049         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
10050         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
10051         (malloc, realloc): Remove #undefs.
10052         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
10053         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
10054         readlink, ssize_t, stdint, unistd.
10055         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
10056         areadlink, stdint.
10057
10058         careadlinkat: new module
10059         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
10060         * modules/careadlinkat: New files, written by me with
10061         a review and feedback from Ben Pfaff in
10062         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
10063
10064 2011-04-01  Bruno Haible  <bruno@clisp.org>
10065
10066         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
10067         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
10068         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
10069         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
10070         Reported by Bruce Korb <bruce.korb@gmail.com>.
10071
10072 2011-04-01  Bruno Haible  <bruno@clisp.org>
10073
10074         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
10075         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
10076         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
10077         * modules/wcpcpy (Depends-on): Add extensions.
10078         * modules/wcpncpy (Depends-on): Likewise.
10079         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
10080         systems.
10081         * doc/posix-functions/wcpncpy.texi: Likewise.
10082         * doc/posix-functions/wcwidth.texi: Likewise.
10083
10084 2011-03-31  Eric Blake  <eblake@redhat.com>
10085
10086         nonblocking: fix mingw test failures
10087         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
10088         non-blocking flag on regular file.
10089         (get_nonblocking_flag): Set errno on invalid fd.
10090         * tests/test-nonblocking.c (main): Avoid test failure on
10091         directories if fchdir is not active.
10092         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
10093
10094 2011-03-31  Bruno Haible  <bruno@clisp.org>
10095
10096         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
10097         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
10098         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
10099         Reported by Simon Josefsson <simon@josefsson.org>.
10100
10101 2011-03-31  Bruno Haible  <bruno@clisp.org>
10102         and Eric Blake  <eblake@redhat.com>
10103
10104         nonblocking: new module
10105         * modules/nonblocking: New module.
10106         * modules/nonblocking-tests: Likewise.
10107         * lib/nonblocking.h: New file.
10108         * lib/nonblocking.c: Likewise.
10109         * tests/test-nonblocking.c: New test.
10110         * lib/ioctl.c (ioctl) [mingw]: Update comment.
10111
10112 2011-03-30  Bruno Haible  <bruno@clisp.org>
10113
10114         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
10115         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
10116         instead of 'printf' format for GCC >= 4.4.
10117         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
10118         (fprintf, printf, vfprintf, vprintf): Declare with
10119         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
10120         the system's vfprintf() function.
10121         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
10122
10123 2011-03-30  Eric Blake  <eblake@redhat.com>
10124
10125         passfd: fix scoping bug
10126         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
10127         before sendmsg/recvmsg.
10128
10129         passfd: standardize coding conventions
10130         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
10131         can be learned at compile time.
10132         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
10133         ifdefs.
10134         (sendfd, recvfd): Follow gnulib code conventions.
10135
10136         passfd: fix incorrect sendmsg arguments
10137         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
10138         incorrect msg_controllen value.
10139         * modules/passfd-tests (Depends-on): Check for alarm.
10140         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
10141         Reported by Bastien ROUCARIES.
10142
10143 2011-03-30  Bruno Haible  <bruno@clisp.org>
10144
10145         c-strcasestr: Relicense under LGPLv2+.
10146         * modules/c-strcasestr (License): Change to LGPLv2+.
10147         Requested by Eric Blake, for libvirt.
10148
10149 2011-03-30  Simon Josefsson  <simon@josefsson.org>
10150
10151         * users.txt: Add libidn2.  Fix libtasn1 link.
10152
10153 2011-03-30  Jim Meyering  <meyering@redhat.com>
10154
10155         tests: readlink* ("",... fails with EINVAL on newer kernels
10156         readlink and readlinkat have typically failed with ENOENT for
10157         the invalid, empty file name,  "".  However, with the advent
10158         of linux-2.6.39, they fail with EINVAL.
10159         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
10160         when operating on the empty file name.
10161         * tests/test-readlink.h (test_readlink): Likewise.
10162
10163 2011-03-29  Bruno Haible  <bruno@clisp.org>
10164
10165         Relicense some modules under LGPLv2+, for libidn2.
10166         * modules/array-mergesort (License): Change to LGPLv2+.
10167         * modules/c-strcaseeq (License): Likewise.
10168         * modules/striconveh (License): Likewise.
10169         * modules/striconveha (License): Likewise.
10170         * modules/uniconv/base (License): Likewise.
10171         * modules/uniconv/u8-conv-from-enc (License): Likewise.
10172         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
10173         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
10174         * modules/unictype/base (License): Likewise.
10175         * modules/unictype/bidiclass-of (License): Likewise.
10176         * modules/unictype/category-M (License): Likewise.
10177         * modules/unictype/category-none (License): Likewise.
10178         * modules/unictype/category-of (License): Likewise.
10179         * modules/unictype/category-test (License): Likewise.
10180         * modules/unictype/category-test-withtable (License): Likewise.
10181         * modules/unictype/combining-class (License): Likewise.
10182         * modules/unictype/joiningtype-of (License): Likewise.
10183         * modules/unictype/scripts (License): Likewise.
10184         * modules/uninorm/base (License): Likewise.
10185         * modules/uninorm/canonical-decomposition (License): Likewise.
10186         * modules/uninorm/composition (License): Likewise.
10187         * modules/uninorm/decompose-internal (License): Likewise.
10188         * modules/uninorm/decomposition-table (License): Likewise.
10189         * modules/uninorm/nfc (License): Likewise.
10190         * modules/uninorm/nfd (License): Likewise.
10191         * modules/uninorm/u32-normalize (License): Likewise.
10192         * modules/unistr/base (License): Likewise.
10193         * modules/unistr/u32-cpy (License): Likewise.
10194         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
10195         * modules/unistr/u32-to-u8 (License): Likewise.
10196         * modules/unistr/u32-uctomb (License): Likewise.
10197         * modules/unistr/u8-check (License): Likewise.
10198         * modules/unistr/u8-mblen (License): Likewise.
10199         * modules/unistr/u8-mbtouc (License): Likewise.
10200         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
10201         * modules/unistr/u8-mbtoucr (License): Likewise.
10202         * modules/unistr/u8-prev (License): Likewise.
10203         * modules/unistr/u8-strlen (License): Likewise.
10204         * modules/unistr/u8-to-u32 (License): Likewise.
10205         * modules/unistr/u8-uctomb (License): Likewise.
10206         * modules/unitypes (License): Likewise.
10207         Requested by Simon Josefsson.
10208
10209 2011-03-29  Simon Josefsson  <simon@josefsson.org>
10210
10211         lib-symbol-visibility: Add a notice.
10212         * modules/lib-symbol-visibility (Notice): New field.
10213
10214 2011-03-29  Bruno Haible  <bruno@clisp.org>
10215
10216         getaddrinfo: Doc fix.
10217         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
10218         section "fixed in Gnulib".
10219
10220 2011-03-28  Simon Josefsson  <simon@josefsson.org>
10221
10222         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
10223         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
10224
10225 2011-03-26  Bruno Haible  <bruno@clisp.org>
10226
10227         unictype/property-byname: Reduce the number of load-time relocations.
10228         * lib/unictype/pr_byname.c: Include <stdlib.h>.
10229         (UC_PROPERTY_INDEX_*): New enumeration values.
10230         (uc_property_byname): Convert an index from the lookup table to an
10231         uc_property_t.
10232         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
10233         values.
10234
10235 2011-03-26  Bruno Haible  <bruno@clisp.org>
10236
10237         unictype/property-byname: Allow omitted word separators and aliases.
10238         * lib/unictype/pr_byname.gperf: Add property names without word
10239         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
10240         for 'space'.
10241
10242 2011-03-26  Bruno Haible  <bruno@clisp.org>
10243
10244         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
10245         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
10246         also hyphens to space.
10247         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
10248         without spaces.
10249         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
10250
10251 2011-03-26  Bruno Haible  <bruno@clisp.org>
10252
10253         unictype/joiningtype-byname: Recognize long names as well.
10254         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
10255         a long name.
10256         * lib/unictype/joiningtype_byname.c: Include <string.h>,
10257         unictype/joiningtype_byname.h.
10258         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
10259         * lib/unictype/joiningtype_byname.gperf: New file.
10260         * modules/unictype/joiningtype-byname (Files): Add
10261         lib/unictype/joiningtype_byname.gperf.
10262         (Depends-on): Add gperf.
10263         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
10264         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
10265         long names.
10266
10267         Tests for module 'unictype/joiningtype-longname'.
10268         * modules/unictype/joiningtype-longname-tests: New file.
10269         * tests/unictype/test-joiningtype_longname.c: New file.
10270
10271         New module 'unictype/joiningtype-longname'.
10272         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
10273         * lib/unictype/joiningtype_longname.c: New file.
10274         * modules/unictype/joiningtype-longname: New file.
10275         * modules/unictype/joiningtype-all (Depends-on): Add
10276         unictype/joiningtype-longname.
10277
10278 2011-03-26  Bruno Haible  <bruno@clisp.org>
10279
10280         unictype/bidiclass-byname: Recognize long names as well.
10281         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
10282         name.
10283         * lib/unictype/bidi_byname.c: Include <string.h>,
10284         unictype/bidi_byname.h.
10285         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
10286         * lib/unictype/bidi_byname.gperf: New file.
10287         * modules/unictype/bidiclass-byname (Files): Add
10288         lib/unictype/bidi_byname.gperf.
10289         (Depends-on): Add gperf.
10290         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
10291         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
10292         long names.
10293
10294         Tests for module 'unictype/bidiclass-longname'.
10295         * modules/unictype/bidiclass-longname-tests: New file.
10296         * tests/unictype/test-bidi_longname.c: New file.
10297
10298         New module 'unictype/bidiclass-longname'.
10299         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
10300         * lib/unictype/bidi_longname.c: New file.
10301         * modules/unictype/bidiclass-longname: New file.
10302         * modules/unictype/bidiclass-all (Depends-on): Add
10303         unictype/bidiclass-longname.
10304
10305 2011-03-26  Bruno Haible  <bruno@clisp.org>
10306
10307         unictype/bidi*: Rename modules.
10308         * modules/unictype/bidiclass-all: Renamed from
10309         modules/unictype/bidicategory-all.
10310         * modules/unictype/bidiclass-name: Renamed from
10311         modules/unictype/bidiclass-name.
10312         (Description): Update.
10313         * modules/unictype/bidiclass-name-tests: Renamed from
10314         modules/unictype/bidicategory-name-tests.
10315         * modules/unictype/bidiclass-byname: Renamed from
10316         modules/unictype/bidicategory-byname.
10317         (Description): Update.
10318         * modules/unictype/bidiclass-byname-tests: Renamed from
10319         modules/unictype/bidicategory-byname-tests.
10320         * modules/unictype/bidiclass-of: Renamed from
10321         modules/unictype/bidicategory-of.
10322         (Description): Update.
10323         * modules/unictype/bidiclass-of-tests: Renamed from
10324         modules/unictype/bidicategory-of-tests.
10325         * modules/unictype/bidiclass-test: Renamed from
10326         modules/unictype/bidicategory-test.
10327         (Description): Update.
10328         * modules/unictype/bidiclass-test-tests: Renamed from
10329         modules/unictype/bidicategory-test-tests.
10330         * modules/unictype/bidicategory-all: New file, a simple redirection.
10331         * modules/unictype/bidicategory-name: Likewise.
10332         * modules/unictype/bidicategory-byname: Likewise.
10333         * modules/unictype/bidicategory-of: Likewise.
10334         * modules/unictype/bidicategory-test: Likewise.
10335         * modules/unictype/property-bidi-* (Dependencies): Update.
10336         * lib/unictype/bidi_*.c: Update comment.
10337
10338 2011-03-26  Bruno Haible  <bruno@clisp.org>
10339
10340         unictype/bidi*: Rename functions, part 2.
10341         * modules/unictype/bidicategory-name (configure.ac): Update required
10342         libunistring version.
10343         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
10344
10345 2011-03-25  Bruno Haible  <bruno@clisp.org>
10346
10347         New module 'unictype/combining-class-all'.
10348         * modules/unictype/combining-class-all: New file.
10349
10350         Tests for module 'unictype/combining-class-byname'.
10351         * modules/unictype/combining-class-byname-tests: New file.
10352         * tests/unictype/test-combiningclass_byname.c: New file.
10353
10354         New module 'unictype/combining-class-byname'.
10355         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
10356         * lib/unictype/combiningclass_byname.c: New file.
10357         * lib/unictype/combiningclass_byname.gperf: New file.
10358         * modules/unictype/combining-class-byname: New file.
10359
10360         Tests for module 'unictype/combining-class-longname'.
10361         * modules/unictype/combining-class-longname-tests: New file.
10362         * tests/unictype/test-combiningclass_longname.c: New file.
10363
10364         New module 'unictype/combining-class-longname'.
10365         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
10366         * lib/unictype/combiningclass_longname.c: New file.
10367         * modules/unictype/combining-class-longname: New file.
10368
10369         Tests for module 'unictype/combining-class-name'.
10370         * modules/unictype/combining-class-name-tests: New file.
10371         * tests/unictype/test-combiningclass_name.c: New file.
10372
10373         New module 'unictype/combining-class-name'.
10374         * lib/unictype.in.h (uc_combining_class_name): New declaration.
10375         * lib/unictype/combiningclass_name.c: New file.
10376         * modules/unictype/combining-class-name: New file.
10377
10378 2011-03-25  Bruno Haible  <bruno@clisp.org>
10379
10380         unictype/combining-class: Rename source files.
10381         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
10382         of unictype/combining.h.
10383         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
10384         Update.
10385         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
10386         * modules/unictype/combining-class (Description): Fix.
10387         (Files, Makefile.am): Update.
10388         * tests/unictype/test-combiningclass.c: Renamed from
10389         tests/unictype/test-combining.c.
10390         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
10391
10392 2011-03-25  Bruno Haible  <bruno@clisp.org>
10393
10394         unictype: Update list of canonical combining classes.
10395         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
10396
10397 2011-03-25  Bruno Haible  <bruno@clisp.org>
10398
10399         unictype/category-byname: Recognize long names as well.
10400         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
10401         a long name.
10402         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
10403         unictype/categ_byname.h.
10404         (UC_CATEGORY_INDEX_*): New enumeration values.
10405         (uc_general_category_byname): Use uc_general_category_lookup and
10406         convert from index to value.
10407         * lib/unictype/categ_byname.gperf: New file.
10408         * modules/unictype/category-byname (Files): Add
10409         lib/unictype/categ_byname.gperf.
10410         (Depends-on): Add gperf.
10411         (Makefile.am): Add rule for generating unictype/categ_byname.h.
10412         * tests/unictype/test-categ_byname.c (main): Test the recognition of
10413         long names.
10414
10415         Tests for module 'unictype/category-longname'.
10416         * modules/unictype/category-longname-tests: New file.
10417         * tests/unictype/test-categ_longname.c: New file.
10418
10419         New module 'unictype/category-longname'.
10420         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
10421         * lib/unictype/categ_longname.c: New file.
10422         * modules/unictype/category-longname: New file.
10423         * modules/unictype/category-all (Depends-on): Add it.
10424
10425 2011-03-25  Bruno Haible  <bruno@clisp.org>
10426
10427         Tests for module 'unictype/category-LC'.
10428         * modules/unictype/category-LC-tests: New file.
10429         * tests/unictype/test-categ_LC.c: New file, automatically generated.
10430
10431         New module 'unictype/category-LC'.
10432         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
10433         (UC_CATEGORY_LC): New declaration.
10434         (UC_CASED_LETTER): New macro.
10435         * lib/gen-uni-tables.c (is_category_LC): New function.
10436         (output_categories): Also handle category LC.
10437         (UC_CATEGORY_MASK_LC): New enumeration value.
10438         (general_category_byname): Also handle category LC.
10439         * lib/unictype/categ_LC.c: New file.
10440         * lib/unictype/categ_LC.h: New file, automatically generated.
10441         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
10442         category LC.
10443         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
10444         * modules/unictype/category-LC: New file.
10445         * modules/unictype/category-byname (Depends-on): Add
10446         unictype/category-LC.
10447         * modules/unictype/category-all (Depends-on): Likewise.
10448
10449 2011-03-25  Eric Blake  <eblake@redhat.com>
10450
10451         xmalloc: revert yesterday's regression
10452         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
10453         realloc's underlying behavior (allowing allocation of zero-size
10454         objects, especially if malloc-gnu is also in use).
10455
10456 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
10457
10458         maint.mk: add missing version to VC-tag
10459         * top/maint.mk: git tag was missing actual tag name; add it.
10460
10461         valgrind: do leak checking, and exit with code 1 on error (not 0)
10462         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
10463         to VALGRIND.
10464
10465 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
10466
10467         posix-modules: say what it does.
10468         * posix-modules: Add a line to the --help output saying what it does.
10469
10470 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10471
10472         xmalloc: Do not leak if underlying realloc is C99 compatible.
10473         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
10474         This avoids a leak on C99-based systems.  See
10475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
10476
10477 2011-03-24  Eric Blake  <eblake@redhat.com>
10478
10479         realloc: document portability problem
10480         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
10481         passing 0 size to realloc.
10482
10483 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
10484
10485         doc: update users.txt
10486         * users.txt: Add cvsps, tmpwatch
10487
10488 2011-03-23  Matt Rice  <ratmice@gmail.com>
10489
10490         doc: update users.txt
10491         * users.txt: Add gdb.
10492
10493 2011-03-23  Jim Meyering  <meyering@redhat.com>
10494
10495         doc: update users.txt
10496         Looking through matches up to the following URL (there are still
10497         several more pages), I found several projects that use gnulib:
10498         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
10499         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
10500         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
10501
10502 2011-03-22  Bruno Haible  <bruno@clisp.org>
10503
10504         unictype/bidi*: Rename functions.
10505         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
10506         uc_bidi_class, uc_is_bidi_class): New declarations.
10507         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
10508         uc_bidi_category_byname.
10509         (uc_bidi_category_byname): New function.
10510         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
10511         u_bidi_category_name.
10512         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
10513         (uc_bidi_category_name): New function.
10514         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
10515         uc_bidi_category.
10516         (uc_bidi_category): New function.
10517         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
10518         uc_is_bidi_category. Invoke uc_bidi_class.
10519         (uc_is_bidi_category): New function.
10520         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
10521         instead of uc_bidi_category_byname.
10522         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
10523         instead of uc_bidi_category_name.
10524         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
10525         uc_bidi_category.
10526         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
10527         instead of uc_is_bidi_category.
10528
10529 2011-03-21  Bruno Haible  <bruno@clisp.org>
10530
10531         New module 'unictype/joininggroup-all'.
10532         * modules/unictype/joininggroup-all: New file.
10533
10534         Tests for module 'unictype/joininggroup-of'.
10535         * modules/unictype/joininggroup-of-tests: New file.
10536         * tests/unictype/test-joininggroup_of.c: New file.
10537         * tests/unictype/test-joininggroup_of.h: New file, automatically
10538         generated by gen-uni-tables.
10539
10540         New module 'unictype/joininggroup-of'.
10541         * modules/unictype/joininggroup-of: New file.
10542         * lib/unictype/joininggroup_of.c: New file.
10543         * lib/unictype/joininggroup_of.h: New file, automatically generated by
10544         gen-uni-tables.
10545
10546         Tests for module 'unictype/joininggroup-byname'.
10547         * modules/unictype/joininggroup-byname-tests: New file.
10548         * tests/unictype/test-joininggroup_byname.c: New file.
10549
10550         New module 'unictype/joininggroup-byname'.
10551         * modules/unictype/joininggroup-byname: New file.
10552         * lib/unictype/joininggroup_byname.c: New file.
10553         * lib/unictype/joininggroup_byname.gperf: New file.
10554
10555         Tests for module 'unictype/joininggroup-name'.
10556         * modules/unictype/joininggroup-name-tests: New file.
10557         * tests/unictype/test-joininggroup_name.c: New file.
10558
10559         New module 'unictype/joininggroup-name'.
10560         * modules/unictype/joininggroup-name: New file.
10561         * lib/unictype/joininggroup_name.c: New file.
10562         * lib/unictype/joininggroup_name.h: New file.
10563
10564         New module 'unictype/joiningtype-all'.
10565         * modules/unictype/joiningtype-all: New file.
10566
10567         Tests for module 'unictype/joiningtype-of'.
10568         * modules/unictype/joiningtype-of-tests: New file.
10569         * tests/unictype/test-joiningtype_of.c: New file.
10570         * tests/unictype/test-joiningtype_of.h: New file, automatically
10571         generated by gen-uni-tables.
10572
10573         New module 'unictype/joiningtype-of'.
10574         * modules/unictype/joiningtype-of: New file.
10575         * lib/unictype/joiningtype_of.c: New file.
10576         * lib/unictype/joiningtype_of.h: New file, automatically generated by
10577         gen-uni-tables.
10578
10579         Tests for module 'unictype/joiningtype-byname'.
10580         * modules/unictype/joiningtype-byname-tests: New file.
10581         * tests/unictype/test-joiningtype_byname.c: New file.
10582
10583         New module 'unictype/joiningtype-byname'.
10584         * modules/unictype/joiningtype-byname: New file.
10585         * lib/unictype/joiningtype_byname.c: New file.
10586
10587         Tests for module 'unictype/joiningtype-name'.
10588         * modules/unictype/joiningtype-name-tests: New file.
10589         * tests/unictype/test-joiningtype_name.c: New file.
10590
10591         New module 'unictype/joiningtype-name'.
10592         * modules/unictype/joiningtype-name: New file.
10593         * lib/unictype/joiningtype_name.c: New file.
10594
10595         unictype: Add support for Arabic shaping properties.
10596         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
10597         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
10598         declarations.
10599         (UC_JOINING_GROUP_*): New enumeration values.
10600         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
10601         declarations.
10602         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
10603         (unicode_joining_type): New variable.
10604         (UC_JOINING_GROUP_*): New enumeration values.
10605         (unicode_joining_group): New variable.
10606         (fill_arabicshaping, joining_type_as_c_identifier,
10607         output_joining_type_test, output_joining_type,
10608         joining_group_as_c_identifier, output_joining_group_test,
10609         output_joining_group): New functions.
10610         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
10611         fill_arabicshaping and output_joining_type_test, output_joining_type,
10612         output_joining_group_test, output_joining_group.
10613         Reported by Simon Josefsson.
10614
10615 2011-03-21  Jim Meyering  <meyering@redhat.com>
10616
10617         strftime: fix a bug in yesterday's change
10618         * lib/strftime.c (add): Accommodate width's initial value of -1.
10619         Otherwise, nstrftime would copy uninitialized data into
10620         the result buffer.
10621
10622 2011-03-21  Jim Meyering  <meyering@redhat.com>
10623
10624         tests: add strftime-tests module
10625         * tests/test-strftime.c: New file.
10626         * modules/strftime-tests: New module.
10627
10628 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10629
10630         strftime: don't assume a byte count fits in 'int'
10631         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
10632         found this problem by static analysis, using gcc -Wstrict-overflow
10633         (GCC 4.5.2, x86-64).  This reported an optimization that depended
10634         on an integer overflow having undefined behavior, but it turns out
10635         that the argument is a size, which might not fit in 'int' anyway,
10636
10637 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10638
10639         stdio: don't require ignore_value around fwrite
10640
10641         This patch works around libc bug 11959
10642         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
10643         Without this patch, applications must often write
10644         ignore_value (fwrite (...)) even though the ignore_value is
10645         not helpful here.  It's common to write many objects, using
10646         fwrite/printf/etc., and then use ferror to detect output error.
10647
10648         I considered making this patch optional, but decided against it,
10649         because libc is obviously being inconsistent here: there is no
10650         reason libc should insist that user code must inspect fwrite
10651         return's value without also insisting that it inspect printf's,
10652         putchar's, etc.  If user code wants to have a strict style where
10653         all these functions' values are checked (so that ferror need not
10654         be checked), we could add support for that style in a new gnulib
10655         module, but in the meantime it's better to be consistent and to
10656         support common usage.
10657
10658         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
10659         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
10660         that we are compiling in checking mode, and if not C++, and
10661         if not already wrapping fwrite for some other reason.
10662         (fwrite): #define to rpl_fwrite if the latter is defined.
10663
10664 2011-03-20  Bruno Haible  <bruno@clisp.org>
10665
10666         verror: Fix compilation error introduced on 2011-02-13.
10667         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
10668         instead of __attribute__.
10669         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10670
10671 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10672             Bruno Haible  <bruno@clisp.org>
10673
10674         socklen: do not depend on sys_socket
10675         While trying to modify Emacs to use gnulib's socklen module,
10676         I discovered a circular dependency: socklen depends on sys_socket
10677         and vice versa.  Emacs can use socklen, but it does not need
10678         sys_socket because it has its own substitute for sys/socket.h.
10679         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
10680         gl_TYPE_SOCKLEN_T.
10681         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
10682         gl_PREREQ_SYS_H_SOCKET.
10683         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
10684         gl_PREREQ_SYS_H_SOCKET.
10685         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
10686         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
10687         * modules/socklen (Depends-on): Do not depend on sys_socket.
10688         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
10689
10690 2011-03-20  Jim Meyering  <meyering@redhat.com>
10691
10692         maint.mk: sort file names *after* new transformation
10693         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
10694         prefix would have led to an unwarranted failure in GNU parted.
10695         Sort after that transformation.
10696
10697 2011-03-19  Jim Meyering  <meyering@redhat.com>
10698
10699         maint.mk: fix po-file syntax-check rule
10700         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
10701         Patch by Bruno Haible.
10702
10703 2011-03-19  Bruno Haible  <bruno@clisp.org>
10704
10705         socklen: Update comment.
10706         * m4/socklen.m4: Update comment about platforms.
10707
10708 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10709             Bruno Haible  <bruno@clisp.org>
10710
10711         inet_ntop, inet_pton: Simplify.
10712         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
10713         documented to provide socklen_t and we already depend on sys_socket.
10714         * modules/inet_pton (Depends-on): Likewise.
10715         * lib/arpa_inet.in.h: Adjust comment.
10716
10717 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10718             Bruno Haible  <bruno@clisp.org>
10719
10720         netdb: Simplify.
10721         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
10722         documented to provide socklen_t and we already depend on sys_socket.
10723         * lib/netdb.in.h: Adjust comment.
10724
10725 2011-03-19  Bruno Haible  <bruno@clisp.org>
10726
10727         sys_socket, netdb: Document problem with socklen_t.
10728         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
10729         platforms.
10730         * doc/posix-headers/netdb.texi: Likewise.
10731
10732 2011-03-18  Eric Blake  <eblake@redhat.com>
10733
10734         maint.mk: let po check work in VPATH build
10735         * top/maint.mk (po_file): Allow cfg.mk override.
10736         (sc_po_check): Allow VPATH use.
10737         Reported by Jiri Denemark.
10738
10739 2011-03-16  Jim Meyering  <meyering@redhat.com>
10740
10741         maint.mk: allow fine-grained syntax-check exclusion via Make variables
10742         Before, you would have had to create one .x-sc_ file per rule in order
10743         to exempt offending files.  Now, you may instead use a Make variable --
10744         usually defined in cfg.mk -- whose name identifies the affected rule.
10745         * top/maint.mk (_sc_excl): Define.
10746         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
10747         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
10748
10749 2011-03-13  Bruno Haible  <bruno@clisp.org>
10750
10751         ignore-value tests: Avoid warnings.
10752         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
10753         empty for gcc < 3.4.
10754
10755 2011-03-13  Bruno Haible  <bruno@clisp.org>
10756
10757         passfd: Fix link error on Solaris.
10758         * modules/passfd (Description): Correct.
10759         (Depends-on): Add socketlib.
10760         (Link): New section.
10761         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
10762
10763 2011-03-13  Bruno Haible  <bruno@clisp.org>
10764
10765         passfd: Fix link error on AIX 5.2.
10766         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
10767
10768 2011-03-13  Bruno Haible  <bruno@clisp.org>
10769
10770         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
10771         * lib/sys_socket.in.h: Include <stddef.h>.
10772         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
10773         CMSG_FIRSTHDR. Remove unused variable.
10774
10775 2011-03-13  Bruno Haible  <bruno@clisp.org>
10776
10777         passfd: Fix compilation error on OpenBSD.
10778         * lib/passfd.c: Include <sys/uio.h>.
10779
10780 2011-03-13  Bruno Haible  <bruno@clisp.org>
10781
10782         passfd test: Fix warnings.
10783         * tests/test-passfd.c: Include <sys/wait.h>.
10784         (main): Fix typo.
10785
10786 2011-03-13  Bruno Haible  <bruno@clisp.org>
10787
10788         passfd module, part 4, tweaks.
10789         * tests/test-passfd.c: Reorder includes.
10790         (main): Fix perror and printf calls.
10791
10792 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10793
10794         passfd module, part 4.
10795         * modules/passfd-tests: New file.
10796         * tests/test-passfd.c: New file.
10797
10798 2011-03-13  Jim Meyering  <meyering@redhat.com>
10799
10800         Makefile: rely on GNU make; derive syntax-check rule names
10801         Rather than requiring that each sc_ rule be listed as a dependent
10802         of "check", use features of GNU make to derive the list.
10803         * Makefile (syntax-check-rules): Define.
10804         (check): Depend on the new variable, not the hard-coded list.
10805
10806 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10807             Bruno Haible  <bruno@clisp.org>
10808
10809         passfd module, part 3.
10810         * lib/passfd.h (recvfd): Add a flags argument.
10811         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10812         (recvfd): Add a flags argument.
10813         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10814         exists.
10815         * modules/passfd (Depends-on): Add cloexec.
10816         Suggested by Eric Blake.
10817
10818 2011-03-13  Bruno Haible  <bruno@clisp.org>
10819
10820         passfd module, part 2, tweaks.
10821         * modules/passfd (Files): Reorder.
10822         (Depends-on): Remove errno.
10823         (Include): Remove <sys/socket.h>, <sys/un.h>.
10824         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
10825         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
10826         specification header. Include <sys/socket.h> always. Don't include
10827         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
10828         (sendfd): Clarify that it sets errno when it fails.
10829         (recvfd): Fix specification.
10830
10831 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10832
10833         passfd module, part 2.
10834         * modules/passfd: New file.
10835         * lib/passfd.h: New file.
10836         * lib/passfd.c: New file.
10837
10838 2011-03-12  Bruno Haible  <bruno@clisp.org>
10839
10840         wcswidth, mbswidth: Avoid integer overflow.
10841         * lib/wcswidth.c: Include <limits.h>.
10842         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
10843         * lib/mbswidth.c: Include <limits.h>.
10844         (mbsnwidth): Avoid 'int' overflow.
10845         Reported by Jim Meyering.
10846
10847 2011-03-12  Bruno Haible  <bruno@clisp.org>
10848
10849         futimens, utimensat: Avoid endless recursion on Solaris 10.
10850         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
10851         Solaris.
10852         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
10853         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
10854
10855 2011-03-11  Jim Meyering  <meyering@redhat.com>
10856
10857         maint.mk: relax a regexp to accommodate other formatting styles
10858         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
10859         between "ngettext" and the following "(".
10860
10861 2011-03-11  Pádraig Brady <P@draigBrady.com>
10862
10863         maint.mk: suppress a false positive warning
10864         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
10865         diagnostics are marked with ngettext.
10866
10867 2011-03-10  Eric Blake  <eblake@redhat.com>
10868
10869         wchar: add explicit dependencies, for Tru64
10870         * modules/mbmemcasecoll (Depends-on): Add wchar.
10871         * modules/mbtowc (Depends-on): Likewise.
10872         * modules/vasnprintf (Depends-on): Likewise.
10873         * modules/unistdio/u-printf-args (Depends-on): Likewise.
10874         * modules/wctomb (Depends-on): Likewise.
10875         Reported by Peter O'Gorman.
10876
10877 2011-03-08  Bruno Haible  <bruno@clisp.org>
10878
10879         passfd module, part 1, tweaks.
10880         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
10881         Improve indentation. Improve AC_MSG_CHECKING messages.
10882         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
10883         gl_SOCKET_FAMILIES.
10884
10885 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10886
10887         passfd module, part 1.
10888         * m4/afunix.m4: New file.
10889         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10890         sockets.
10891
10892 2011-03-08  Bruno Haible  <bruno@clisp.org>
10893
10894         regex-quote: New API.
10895         * lib/regex-quote.h: Include <stdbool.h>.
10896         (struct regex_quote_spec): New type.
10897         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10898         New declarations.
10899         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10900         'const struct regex_quote_spec *' argument.
10901         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10902         (pcre_special): New constant.
10903         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10904         New functions.
10905         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10906         'const struct regex_quote_spec *' argument.
10907         * modules/regex-quote (Depends-on): Add stdbool.
10908         * tests/test-regex-quote.c (check): Update for new API. Add test for
10909         anchored results.
10910         * NEWS: Mention the API change.
10911         Reported by Reuben Thomas and Eric Blake.
10912
10913 2011-03-06  Bruno Haible  <bruno@clisp.org>
10914
10915         regex-quote: Fix creation of POSIX extended regular expressions.
10916         * lib/regex-quote.c (ere_special): Add grouping and alternation
10917         operators.
10918
10919 2011-03-05  Bruno Haible  <bruno@clisp.org>
10920
10921         doc: Improve doc regarding autopoint vs. gnulib.
10922         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10923         disable autopoint while running autoreconf.
10924         Suggested by Ralf Wildenhues.
10925
10926 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10927
10928         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10929         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10930
10931 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10932
10933         parse-duration: remove xalloc.h dependency
10934         * lib/parse-duration.c (parse_period): handle NULL return from
10935         strdup instead of calling xstrdup().
10936         * modules/parse-duration: remove "xalloc" dependency
10937
10938 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10939
10940         bootstrap: honor m4_base when running aclocal
10941         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10942
10943 2011-03-02  Jim Meyering  <meyering@redhat.com>
10944
10945         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10946         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10947         on request from Matt Booth.
10948
10949 2011-03-01  Eric Blake  <eblake@redhat.com>
10950
10951         test-link: work on Hurd
10952         * tests/test-link.h (test_link): Hurd rejects linking directories
10953         with EISDIR instead of the POSIX-mandated EPERM.
10954
10955 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10956
10957         stdio: simplify by moving files to printf-posix, sigpipe
10958         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10959         since this symbol is needed only if printf is replaced.
10960         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10961         Require gl_ASM_SYMBOL_PREFIX.
10962         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10963         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10964         (Depends-on): Add 'raise'.
10965         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10966         * modules/stdio (Files): Remove lib/stdio-write.c,
10967         m4/asm-underscore.m4.
10968         (Depends-on): Remove 'raise'.
10969
10970         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10971         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10972         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10973         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10974
10975 2011-02-28  Bruno Haible  <bruno@clisp.org>
10976
10977         localcharset: Assume ANSI C behaviour of free().
10978         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10979         calling free().
10980         Suggested by Simon Josefsson <simon@josefsson.org>.
10981
10982 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10983             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10984             Bruno Haible  <bruno@clisp.org>  (tiny change)
10985
10986         On Cygwin, use /proc file system instead of win32 API.
10987         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10988         Win32 file names.
10989         (DllMain): Simplify by removing Cygwin specific code.
10990         (find_shared_library_fullname): Use Linux specific implementation also
10991         for Cygwin.
10992         (get_shared_library_fullname): Update accordingly.
10993         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10994         Win32 file names.
10995         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10996         Cygwin specific code.
10997
10998 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10999             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
11000
11001         Fix OpenMP flag detection for various Fortran compilers.
11002         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
11003         OpenMP-conditional compilation construct, to force compile
11004         failure with missing OpenMP flag.
11005         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
11006
11007 2011-02-25  Eric Blake  <eblake@redhat.com>
11008
11009         strstr: expand test coverage
11010         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
11011         compilation.
11012         * tests/test-memmem.c (main): Duplicate tests.
11013         * tests/test-strcasestr.c (main): Likewise.
11014         * tests/test-c-strcasestr.c (main): Likewise.
11015
11016 2011-02-25  Jim Meyering  <meyering@redhat.com>
11017
11018         maint.mk: detect missing-NL-at-EOF, too
11019         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
11020         it also detects when a file lacks a newline at EOF.
11021         (require_exactly_one_NL_at_EOF_): Renamed from
11022         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
11023         since people may well have .x-sc_... file names tied to the
11024         existing name.  Suggested by Eric Blake.
11025
11026 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11027
11028         dirname: move m4/dos.m4 functionality into lib/dosname.h
11029
11030         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
11031         extracts symbols from it, puts them into config.h; but it's much
11032         easier to use the symbols directly.  filename.h already does this,
11033         but it disagrees with dos.m4 in some respects.  This patch
11034         introduces a different include file dosname.h that packages up
11035         dos.m4, and then later we can work on merging filename.h and
11036         dosname.h.  Applications that need only the easy-to-configure
11037         symbols should consider including dosname.h rather than dirname.h.
11038         * NEWS: Mention incompatible changes.
11039         * m4/dos.m4: Remove.
11040         * lib/dosname.h, modules/dosname: New files.
11041         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
11042         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
11043         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
11044         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
11045         Include dosname.h, not dirname.h.
11046         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
11047         Include dosname.h, for definitions of symbols like ISSLASH
11048         that used to be in config.h.
11049         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
11050         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11051         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11052         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11053         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
11054         * modules/rmdir (Files): Likewise.
11055         * modules/stat (Files): Likewise.
11056         * modules/unlink (Files): Likewise.
11057         * modules/dirname-lgpl (Depends-on): Add dosname.
11058         * modules/lstat (Depends-on): Likewise.
11059         * modules/openat (Depends-on): Likewise.
11060         * modules/rmdir (Depends-on): Likewise.
11061         * modules/savewd (Depends-on): Likewise.
11062         * modules/stat (Depends-on): Likewise.
11063         * modules/unlink (Depends-on): Likewise.
11064         * modules/openat (Depends-on): Remove dirname-lgpl.
11065         * modules/savewd (Depends-on): Likewise.
11066         * tests/test-dirname.c: Do not use removed symbols like
11067         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
11068         the remaining symbols, e.g., ISSLASH ('\\').
11069
11070 2011-02-25  Eric Blake  <eblake@redhat.com>
11071
11072         strstr: revert patches that introduced bug and pessimization
11073         * lib/str-two-way.h: Add another reference.
11074         (two_way_short_needle, two_way_long_needle): Revert changes from
11075         2011-02-24; they pessimize search speed.
11076         (critical_factorization): Partially revert changes from
11077         2010-06-22; they violate the requirement that the left half of the
11078         needle be smaller than the period of the needle.
11079
11080 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11081
11082         filenamecat: remove unnecessary dependency on dirname-lgpl
11083         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
11084         is no direct dependency, just an indirect one via filenamecat-lgpl.
11085
11086         remove: remove unnecessary use of m4/dos.m4
11087         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
11088         * modules/remove (FILES): Remove m4/dos.m4.
11089
11090         * lib/openat-proc.c: Don't include dirname.h; not needed.
11091
11092         backupfile: remove unnecessary use of m4/dos.m4
11093         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
11094         of its symbols are used by the backupfile code.  backupfile.c does
11095         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
11096         for the rare case of programs that want all their backup file
11097         names to live within 8+3 limits, and dos.m4 doesn't address that.
11098         * modules/backupfile (Files): Remove m4/dos.m4.
11099
11100 2011-02-24  Jim Meyering  <meyering@redhat.com>
11101
11102         strstr: fix a bug whereby strstr would mistakenly return NULL
11103         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
11104         in period calculation.
11105         (two_way_long_needle): Likewise.
11106         The original problem was reported by Mike Stump in
11107         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
11108         Ralf Wildenhues provided the short needle and haystack.
11109         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
11110         Add a more involved test to trigger the bug in two_way_long_needle.
11111
11112 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11113
11114         gnulib-tool: remove use of bold display in help screen
11115         * gnulib-tool (func_usage): Do not use bold display anymore in the
11116         help screen.  That was just meant to be a temporary emphasis for a
11117         backward-incompatible change.
11118
11119 2011-02-23  Bruno Haible  <bruno@clisp.org>
11120
11121         Fix misindentation of preprocessor directives.
11122         * lib/argp-namefrob.h: Reindent preprocessor directives.
11123         * lib/getopt_int.h (struct _getopt_data): Likewise.
11124         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
11125         * lib/vasnprintf.c (decode_long_double): Likewise.
11126         * tests/test-argmatch.c: Insert blank lines, for clarity.
11127         * tests/test-exclude.c: Likewise.
11128
11129 2011-02-22  Bruno Haible  <bruno@clisp.org>
11130
11131         ioctl: Fix for MacOS X in 64-bit mode.
11132         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
11133         value.
11134         Suggested by Eric Blake.
11135         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
11136
11137 2011-02-22  Jim Meyering  <meyering@redhat.com>
11138
11139         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
11140         * Makefile (sc_cpp_indent_check): Don't limit the check to files
11141         in lib/.
11142
11143 2011-02-22  Eric Blake  <eblake@redhat.com>
11144
11145         maint: avoid any CDPATH issue
11146         * Makefile (sc_cpp_indent_check): Anchor cd argument.
11147
11148         maint: adjust cpp indentation for my modules, as well
11149         * Makefile (sc_cpp_indent_check): Add my name.
11150         * lib/fbufmode.c: Filter through cppi.
11151         * lib/fpurge.c: Likewise.
11152         * lib/freadable.c: Likewise.
11153         * lib/freading.c: Likewise.
11154         * lib/fwritable.c: Likewise.
11155         * lib/fwriting.c: Likewise.
11156         * lib/sigaction.c: Likewise.
11157
11158 2011-02-22  Jim Meyering  <meyering@redhat.com>
11159
11160         maint: adjust cpp indentation to reflect nesting depth
11161         I.e., in a block of code that begins with an unnested "#if",
11162         put one space between the "#" in column 1 and following token.
11163         For example,
11164         -#include <sys/vfs.h>
11165         +# include <sys/vfs.h>
11166         Do this only in .c files that are part of a module I maintain.
11167         * lib/linkat.c: Filter through cppi.
11168         * lib/nanosleep.c: Likewise.
11169         * lib/openat.c: Likewise.
11170         * lib/openat-die.c: Likewise.
11171         * lib/dup3.c: Likewise.
11172         * lib/fchownat.c: Likewise.
11173         * lib/flock.c: Likewise.
11174         * lib/fsync.c: Likewise.
11175         * lib/fts.c: Likewise.
11176         * lib/getpass.c: Likewise.
11177         * lib/gettimeofday.c: Likewise.
11178         * lib/userspec.c: Likewise.
11179         * Makefile (sc_cpp_indent_check): New rule, to check this.
11180
11181 2011-02-22  Bruno Haible  <bruno@clisp.org>
11182
11183         New module 'wctomb'.
11184         * lib/stdlib.in.h (wctomb): New declaration.
11185         * lib/wctomb.c: New file.
11186         * lib/wctomb-impl.h: New file.
11187         * m4/wctomb.m4: New file.
11188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
11189         REPLACE_WCTOMB.
11190         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
11191         REPLACE_WCTOMB.
11192         * modules/wctomb: New file.
11193         * tests/test-stdlib-c++.cc: Test signature of wctomb.
11194         * doc/posix-functions/wctomb.texi: Mention the new module.
11195         * modules/wctob (Depends-on): Add wctomb.
11196
11197 2011-02-22  Bruno Haible  <bruno@clisp.org>
11198
11199         New module 'mbtowc'.
11200         * lib/stdlib.in.h (mbtowc): New declaration.
11201         * lib/mbtowc.c: New file.
11202         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
11203         * m4/mbtowc.m4: New file.
11204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
11205         REPLACE_MBTOWC.
11206         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
11207         REPLACE_MBTOWC.
11208         * modules/mbtowc: New file.
11209         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
11210         * doc/posix-functions/mbtowc.texi: Mention the new module.
11211         * modules/btowc (Depends-on): Add mbtowc.
11212
11213 2011-02-22  Bruno Haible  <bruno@clisp.org>
11214
11215         wcrtomb: Add more tests for native Windows platforms.
11216         * tests/test-wcrtomb-w32-1.sh: New file.
11217         * tests/test-wcrtomb-w32-2.sh: New file.
11218         * tests/test-wcrtomb-w32-3.sh: New file.
11219         * tests/test-wcrtomb-w32-4.sh: New file.
11220         * tests/test-wcrtomb-w32-5.sh: New file.
11221         * tests/test-wcrtomb-w32.c: New file.
11222         * modules/wcrtomb-tests (Files): Add them.
11223         (Makefile.am): Arrange to run these tests.
11224         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
11225         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
11226
11227 2011-02-20  Bruno Haible  <bruno@clisp.org>
11228
11229         wcrtomb: Enhance test.
11230         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
11231
11232 2011-02-20  Bruno Haible  <bruno@clisp.org>
11233
11234         mbrtowc: Tiny optimization.
11235         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
11236
11237 2011-02-20  Jim Meyering  <meyering@redhat.com>
11238
11239         test-exclude.c: remove unmatched #endif
11240         * tests/test-exclude.c: Remove stray #endif, left over from
11241         the change of a week ago.
11242
11243 2011-02-19  Jim Meyering  <meyering@redhat.com>
11244
11245         git-version-gen: skip "-dirty" check when appropriate
11246         * build-aux/git-version-gen: Don't run any git commands when the
11247         version string comes from .tarball-version.  Prior to this, we
11248         would run git update-index --refresh even from a just-unpacked
11249         tarball directory, and that could affect a .git/ directory in a
11250         parent of the build directory.  Reported by Mike Frysinger.
11251
11252 2011-02-19  Bruno Haible  <bruno@clisp.org>
11253
11254         unictype/property-byname: Reduce the size of the 'data' segment.
11255         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
11256
11257 2011-02-19  Bruno Haible  <bruno@clisp.org>
11258
11259         unictype/scripts: Reduce the size of the 'data' segment.
11260         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
11261         '%pic'.
11262         * lib/unictype/scripts_byname.gperf: Regenerated.
11263
11264 2011-02-19  Bruno Haible  <bruno@clisp.org>
11265
11266         stdint: Update documentation.
11267         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
11268
11269 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
11270
11271         stdint: omit redundant check for wchar.h
11272         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
11273         always tests whether wchar.h exists, so remove the now-redundant test.
11274
11275 2011-02-18  Bruno Haible  <bruno@clisp.org>
11276
11277         stdint: Cut dependency to module 'wchar'.
11278         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
11279         include the necessary prerequisites.
11280         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
11281         * modules/stdint (Depends-on): Remove wchar.
11282         (Makefile.am): Substitute HAVE_WCHAR_H.
11283         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
11284
11285 2011-02-18  Eric Blake  <eblake@redhat.com>
11286
11287         longlong: skip, rather than fail, on cross-compilation
11288         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
11289         when cross-compiling; regression from 2011-02-16.
11290
11291 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11292
11293         * NEWS: Mention 2011-02-08 change to stdlib.
11294
11295 2011-02-17  Bruno Haible  <bruno@clisp.org>
11296
11297         getloadavg: Add comments about platforms.
11298         * m4/getloadavg.m4: Add comment.
11299         * lib/getloadavg.c: Likewise.
11300
11301 2011-02-17  Bruno Haible  <bruno@clisp.org>
11302
11303         getloadavg: Fix link error on Solaris 2.6.
11304         * modules/getloadavg (Link): New section.
11305         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
11306         linking test-getloadavg.
11307         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
11308         getloadavg.
11309
11310 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11311
11312         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
11313         It was 'int', but this doesn't match the IRIX 6.5 manual.
11314         Suggested by Bruno Haible in
11315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
11316
11317 2011-02-17  Bruno Haible  <bruno@clisp.org>
11318
11319         havelib: Fix comments.
11320         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
11321         change.
11322
11323 2011-02-17  Bruno Haible  <bruno@clisp.org>
11324
11325         havelib: Update config.rpath.
11326         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
11327
11328 2011-02-17  Bruno Haible  <bruno@clisp.org>
11329
11330         getloadavg test: Add some plausibility checks.
11331         * tests/test-getloadavg.c (check_avg): Print a warning when the value
11332         is improbable.
11333
11334 2011-02-16  Eric Blake  <eblake@redhat.com>
11335
11336         maintainer-makefile: make syntax-check a no-op from tarballs
11337         * top/maint.mk (no-vc-detected): New rule.
11338         (local-checks-available): Use it to avoid hanging if someone tries
11339         'make syntax-check' from a tarball.  Also append to any non-syntax
11340         checks already defined in cfg.mk.
11341
11342 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
11343
11344         longlong: tune, particularly for common case of c99
11345
11346         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
11347         or running anything if c99, or if unsigned long long int does not
11348         work.  In either case, we know the answer without further tests.
11349         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
11350         it at most once, and use its results for both long long int and
11351         unsigned long long int.  This is more likely to be efficient in
11352         the common case where the program wants to check for both long
11353         long int and unsigned long long int.
11354         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
11355         since the answer is already known.
11356
11357 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
11358
11359         getloadavg: set errno
11360         * lib/getloadavg.c: Set errno when returning -1.  If no other
11361         error number looks appropriate, set it to ENOSYS if the getloadavg
11362         looks like it can't possibly ever work, ENOTSUP otherwise.
11363         Suggested by Bruno Haible in
11364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
11365
11366         getloadavg: trim unused parts and speed up 'configure'
11367         * NEWS: Document this.
11368         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
11369         always compiled if getloadavg is absent.
11370         Move test code to ...
11371         * tests/test-getloadavg.c: New file, containing previous
11372         contents of test from lib/getloadavg.c.  It also contains
11373         suggestions by Bruno Haible in
11374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
11375         * modules/getloadavg-tests: New file.
11376         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
11377         Do tests in the same order as they're needed for getloadavg.c.
11378         Omit setgid-related tests that generate symbols KMEM_GROUP,
11379         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
11380         Do only the tests that are needed to see whether the system has
11381         getloadavg, moving the other tests into ...
11382         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
11383         NLIST_NAME_UNION; nobody should be using it.  Do not define
11384         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
11385         relevant, as the user of this module shouldn't care how getloadavg
11386         is implemented.
11387
11388         getloadavg: omit unused var
11389         * lib/getloadavg.c (getloadavg): Omit unused local variable.
11390
11391 2011-02-15  Jim Meyering  <meyering@redhat.com>
11392
11393         doc: update users.txt
11394         * users.txt: Update iwhd's URL.
11395
11396 2011-02-13  Bruno Haible  <bruno@clisp.org>
11397
11398         Consistent macro naming for macros that use GCC __attribute__.
11399         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
11400         _ATTRIBUTE_NONNULL_.
11401         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
11402         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
11403         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
11404         ATTRIBUTE_DEPRECATED.
11405         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
11406         ATTRIBUTE_NORETURN.
11407         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11408         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11409         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11410         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11411         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
11412         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
11413         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
11414         ATTRIBUTE_SENTINEL.
11415         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
11416         ATTRIBUTE_RETURN_CHECK.
11417         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
11418         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
11419         ATTRIBUTE_NORETURN.
11420         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
11421         Reported by Paul Eggert.
11422
11423 2011-02-13  Bruno Haible  <bruno@clisp.org>
11424
11425         Don't interfere with a program's definition of __attribute__.
11426         * lib/argp.h (__attribute__): Remove definition.
11427         (_GL_ATTRIBUTE_FORMAT): New macro.
11428         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
11429         * lib/argp-fmtstream.h (__attribute__): Remove definition.
11430         (_GL_ATTRIBUTE_FORMAT): New macro.
11431         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
11432         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
11433         GCC 3 or newer.
11434         * lib/error.h (__attribute__): Remove definition.
11435         (_GL_ATTRIBUTE_FORMAT): New macro.
11436         (error, error_at_line): Use it.
11437         * lib/hash.h (__attribute__): Remove definition.
11438         (ATTRIBUTE_WUR): Update definition. Define always.
11439         * lib/openat.h (__attribute__): Remove definition.
11440         (ATTRIBUTE_NORETURN): Update definition. Define always.
11441         * lib/sigpipe-die.h (__attribute__): Remove definition.
11442         (ATTRIBUTE_NORETURN): Update definition. Define always.
11443         * lib/vasnprintf.h (__attribute__): Remove definition.
11444         (_GL_ATTRIBUTE_FORMAT): New macro.
11445         (asnprintf, vasnprintf): Use it.
11446         * lib/xalloc.h (__attribute__): Remove definition.
11447         (ATTRIBUTE_NORETURN): Update definition. Define always.
11448         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
11449         * lib/xmemdup0.h (__attribute__): Remove definition.
11450         (ATTRIBUTE_NORETURN): Update definition. Define always.
11451         * lib/xprintf.h (__attribute__): Remove definition.
11452         (_GL_ATTRIBUTE_FORMAT): New macro.
11453         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
11454         * lib/xstrtol.h (__attribute__): Remove definition.
11455         (ATTRIBUTE_NORETURN): Update definition. Define always.
11456         * lib/xvasprintf.h (__attribute__): Remove definition.
11457         (_GL_ATTRIBUTE_FORMAT): New macro.
11458         (xasprintf, xvasprintf): Use it.
11459         * tests/test-argmatch.c (__attribute__): Remove definition.
11460         (ATTRIBUTE_NORETURN): Update definition. Define always.
11461         * tests/test-exclude.c (__attribute__): Remove definition.
11462         (ATTRIBUTE_NORETURN): Update definition. Define always.
11463         Reported by Paul Eggert.
11464
11465 2011-02-13  Bruno Haible  <bruno@clisp.org>
11466
11467         mbrtowc: Add more tests for native Windows platforms.
11468         * tests/test-mbrtowc-w32-1.sh: New file.
11469         * tests/test-mbrtowc-w32-2.sh: New file.
11470         * tests/test-mbrtowc-w32-3.sh: New file.
11471         * tests/test-mbrtowc-w32-4.sh: New file.
11472         * tests/test-mbrtowc-w32-5.sh: New file.
11473         * tests/test-mbrtowc-w32.c: New file.
11474         * modules/mbrtowc-tests (Files): Add them.
11475         (Makefile.am): Arrange to run these tests.
11476         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
11477         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
11478
11479 2011-02-13  Bruno Haible  <bruno@clisp.org>
11480
11481         mbrtowc: Work around native Windows bug.
11482         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
11483         guess when no suitable locale for testing was found.
11484         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
11485
11486 2011-02-13  Bruno Haible  <bruno@clisp.org>
11487
11488         mbsinit: Work around mingw bug.
11489         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
11490         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
11491         Windows.
11492         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
11493
11494 2011-02-13  Bruno Haible  <bruno@clisp.org>
11495
11496         mbsinit: Don't crash for a NULL argument.
11497         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
11498         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
11499
11500 2011-02-13  Bruno Haible  <bruno@clisp.org>
11501
11502         Don't interfere with a program's definition of __attribute__.
11503         * lib/stdio.in.h (__attribute__): Remove definition.
11504         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
11505         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
11506         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
11507         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
11508         * lib/string.in.h (__attribute__): Remove definition.
11509         Reported by Paul Eggert.
11510
11511 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11512
11513         stdlib: don't get in the way of non-GCC __attribute__
11514         See thread starting at
11515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
11516         Revert previous stdlib change, installing the following instead:
11517         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
11518         to get in the way of a non-GCC compiler that supports __attribute__.
11519         (_GL_ATTRIBUTE_RETURN): New macro.
11520         (_Exit): Use it instead of __attribute__.
11521
11522 2011-02-12  Bruno Haible  <bruno@clisp.org>
11523
11524         quotearg test: Avoid test failure on mingw.
11525         * tests/test-quotearg.sh: Convert the locale identifier from native
11526         Windows syntax to Unix syntax.
11527
11528 2011-02-12  Bruno Haible  <bruno@clisp.org>
11529
11530         setlocale: Prefer gnulib's override over libintl's override.
11531         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
11532         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
11533         GNULIB_defined_setlocale is set.
11534
11535 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11536
11537         stdlib: support non-GCC __attribute__
11538
11539         Fix a serious and tricky problem encountered when attempting to
11540         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
11541         5.5, but it crashed due to memory corruption on Solaris 10 with
11542         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
11543         bits that are otherwise zero.  This tagging is optional inside
11544         Emacs but is preferred and is used when __attribute__ ((__aligned
11545         (8))) works, as it does with both recent-enough GCC and with Sun C
11546         5.11.  However, Sun C 5.11 is not GCC and does not #define
11547         __GNUC__ and __GNUC_MINOR__.
11548
11549         When I added the getloadavg module to Emacs, it brought in
11550         stdlib.in.h, which contained this fragment:
11551
11552            #ifndef __attribute__
11553            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
11554            #  define __attribute__(Spec)   /* empty */
11555            # endif
11556            #endif
11557
11558         When files that include <stdlib.h> were compiled with Sun C 5.11,
11559         the above code disabled __attribute__ ((__aligned (8))), which
11560         caused variables to not be properly aligned, which eventually led
11561         to the pointer corruption mentioned above.  (This was a bit hard
11562         to diagnose, unfortunately.)
11563
11564         Several "#define __attribute__(X) /* empty */" code snippets need
11565         to be eradicated from Gnulib to work with non-GCC compilers that
11566         support __attribute__.  The Autoconf way to do this is to test for
11567         each kind of attribute that we want support for, and selectively
11568         enable that in source code.
11569
11570         Fix this problem just for stdlib.h, by adding a test for the
11571         __noreturn__ attribute, and change stdlib.in.h to use that test
11572         when needed.  This technique can be easily generalized to the
11573         other *.in.h files and attributes, and a similar technique can be
11574         used for *.h and *.c files.  This patch is enough to solve the
11575         problem for Emacs + getloadavg, and I thought I'd publish it for
11576         feedback before undertaking further, similar fixes in other
11577         modules.
11578
11579         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
11580         because it's not needed for stdlib.h.  It merely substitutes the
11581         value directly into stdlib.h.  We may well need to #define it, or
11582         similar symbols, for other modules, but it's nice to also have an
11583         option to not #define it for applications like Emacs that do not
11584         need it.
11585
11586         * lib/stdlib.in.h (__attribute__): Do not #define.
11587         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
11588         be defined only if the _Exit module is also used.
11589         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
11590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
11591         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
11592         platforms.
11593         * modules/_Exit (Files): Add m4/attribute.m4.
11594         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
11595         * m4/attribute.m4: New file.
11596
11597 2011-02-12  Bruno Haible  <bruno@clisp.org>
11598
11599         wcsrtombs: Work around bug on native Windows.
11600         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
11601         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
11602         instead of len.
11603         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
11604
11605 2011-02-12  Bruno Haible  <bruno@clisp.org>
11606
11607         mbsrtowcs: Work around bug on native Windows.
11608         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
11609         against mingw bug.
11610         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
11611
11612 2011-02-12  Bruno Haible  <bruno@clisp.org>
11613
11614         Avoid setlocale bugs in tests.
11615         * modules/btowc (Dependencies): Add setlocale.
11616         * modules/c-strcase (Dependencies): Likewise.
11617         * modules/mbmemcasecmp (Dependencies): Likewise.
11618         * modules/mbmemcasecoll (Dependencies): Likewise.
11619         * modules/mbrtowc (Dependencies): Likewise.
11620         * modules/mbscasecmp (Dependencies): Likewise.
11621         * modules/mbscasestr (Dependencies): Likewise.
11622         * modules/mbschr (Dependencies): Likewise.
11623         * modules/mbscspn (Dependencies): Likewise.
11624         * modules/mbsinit (Dependencies): Likewise.
11625         * modules/mbsncasecmp (Dependencies): Likewise.
11626         * modules/mbsnrtowcs (Dependencies): Likewise.
11627         * modules/mbspbrk (Dependencies): Likewise.
11628         * modules/mbspcasecmp (Dependencies): Likewise.
11629         * modules/mbsrchr (Dependencies): Likewise.
11630         * modules/mbsrtowcs (Dependencies): Likewise.
11631         * modules/mbsspn (Dependencies): Likewise.
11632         * modules/mbsstr (Dependencies): Likewise.
11633         * modules/nl_langinfo (Dependencies): Likewise.
11634         * modules/quotearg (Dependencies): Likewise.
11635         * modules/unicase/locale-language (Dependencies): Likewise.
11636         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
11637         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
11638         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
11639         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
11640         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
11641         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
11642         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
11643         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
11644         * modules/vasnprintf-posix (Dependencies): Likewise.
11645         * modules/wcrtomb (Dependencies): Likewise.
11646         * modules/wcsnrtombs (Dependencies): Likewise.
11647         * modules/wcsrtombs (Dependencies): Likewise.
11648
11649 2011-02-12  Bruno Haible  <bruno@clisp.org>
11650
11651         setlocale: Workaround native Windows bug.
11652         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
11653         succeeds but sets LC_CTYPE to "C", report a failure.
11654         * tests/test-setlocale2.sh: New file.
11655         * tests/test-setlocale2.c: New file.
11656         * modules/setlocale-tests (Files): Add the new files.
11657         (Makefile.am): Enable test-setlocale2.sh test.
11658         * doc/posix-functions/setlocale.texi: Mention workaround.
11659
11660 2011-02-11  Bruno Haible  <bruno@clisp.org>
11661
11662         Tests for module 'setlocale'.
11663         * modules/setlocale-tests: New file.
11664         * tests/test-setlocale1.sh: New file.
11665         * tests/test-setlocale1.c: New file.
11666
11667         New module 'setlocale'.
11668         * lib/locale.in.h (setlocale): New declaration.
11669         * lib/setlocale.c: New file, based on
11670         gettext/gettext-runtime/intl/setlocale.c.
11671         * m4/setlocale.m4: New file.
11672         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
11673         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
11674         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
11675         REPLACE_SETLOCALE.
11676         * modules/setlocale: New file.
11677         * tests/test-locale-c++.cc: Test the declaration of setlocale.
11678         * doc/posix-functions/setlocale.texi: Mention the new module.
11679
11680 2011-02-11  Bruno Haible  <bruno@clisp.org>
11681
11682         Prepare for locale dependent tests on mingw.
11683         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
11684         because it has the wrong locale encoding.
11685         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
11686         French_France.1252 instead of "fr".
11687         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
11688         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
11689         because it has the wrong locale encoding.
11690         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
11691         native Windows, try Turkish_Turkey.65001.
11692         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
11693         Chinese_China.54936.
11694
11695         Prepare for locale dependent tests on mingw.
11696         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
11697         differently.
11698         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
11699         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
11700         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11701         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11702
11703 2011-02-11  Eric Blake  <eblake@redhat.com>
11704
11705         strptime: avoid compiler warnings
11706         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
11707         compiler warnings about dead code.
11708         Reported by Daniel P. Berrange.
11709
11710 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
11711
11712         doc: update users.txt
11713         * users.txt: Add rcs.
11714
11715 2011-02-10  John W. Eaton  <jwe@gnu.org>
11716
11717         doc: update users.txt
11718         * users.txt: Add octave.
11719
11720 2011-02-10  Jim Meyering  <meyering@redhat.com>
11721
11722         doc: update users.txt
11723         * users.txt: Add iwhd.
11724
11725 2011-02-09  Bruno Haible  <bruno@clisp.org>
11726
11727         gnulib-tool: Make copyright notice adjustment more robust.
11728         * gnulib-tool (func_import): In sed_transform_main_lib_file,
11729         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
11730         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
11731         License".
11732         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
11733
11734 2011-02-06  Bruno Haible  <bruno@clisp.org>
11735
11736         New module 'towctrans'.
11737         * modules/towctrans: New file.
11738         * lib/wctype.in.h (towctrans): New declaration.
11739         * lib/towctrans.c: New file.
11740         * lib/towctrans-impl.h: New file.
11741         * m4/towctrans.m4: New file.
11742         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
11743         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
11744         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
11745         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
11746         * doc/posix-functions/towctrans.texi: Mention the new module.
11747
11748 2011-02-06  Bruno Haible  <bruno@clisp.org>
11749
11750         New module 'wctrans'.
11751         * modules/wctrans: New file.
11752         * lib/wctype.in.h (wctrans): New declaration.
11753         * lib/wctrans.c: New file.
11754         * lib/wctrans-impl.h: New file.
11755         * m4/wctrans.m4: New file.
11756         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
11757         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
11758         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
11759         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
11760         * doc/posix-functions/wctrans.texi: Mention the new module.
11761
11762 2011-02-06  Bruno Haible  <bruno@clisp.org>
11763
11764         New module 'iswctype'.
11765         * modules/iswctype: New file.
11766         * lib/wctype.in.h (iswctype): New declaration.
11767         * lib/iswctype.c: New file.
11768         * lib/iswctype-impl.h: New file.
11769         * m4/iswctype.m4: New file.
11770         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
11771         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
11772         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
11773         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
11774         * doc/posix-functions/iswctype.texi: Mention the new module and the
11775         HP-UX 11.00 problem.
11776
11777 2011-02-06  Bruno Haible  <bruno@clisp.org>
11778
11779         New module 'wctype'.
11780         * modules/wctype: Change to represent the wctype() substitute.
11781         * lib/wctype.in.h (wctype): New declaration.
11782         * lib/wctype.c: New file.
11783         * lib/wctype-impl.h: New file.
11784         * m4/wctype.m4: New file.
11785         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
11786         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
11787         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
11788         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
11789         * doc/posix-functions/wctype.texi: Mention the new module and the
11790         HP-UX 11.00 problem.
11791
11792 2011-02-06  Bruno Haible  <bruno@clisp.org>
11793
11794         wctype-h: Ensure wctype_t and wctrans_t are defined.
11795         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11796         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11797         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11798         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11799         HAVE_WCTRANS_T.
11800         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11801
11802 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11803
11804         flock: fix license typo
11805
11806         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11807         omitted.
11808
11809 2011-02-08  Bruno Haible  <bruno@clisp.org>
11810
11811         Split large sed scripts, for HP-UX sed.
11812         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11813         to avoid HP-UX limit of 99 commands, in the near future.
11814         * modules/stdlib (Makefile.am): Likewise.
11815         * modules/unistd (Makefile.am): Likewise.
11816         * modules/wchar (Makefile.am): Likewise.
11817         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11818         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11819         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11820
11821 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11822             Bruno Haible  <bruno@clisp.org>
11823
11824         stdlib: improve random_r modularization
11825         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
11826         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
11827         you also need the random_r module to get this material right.
11828         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
11829         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
11830         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
11831
11832 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11833
11834         stdlib: don't depend on stdint
11835         * lib/stdlib.in.h: Don't include <stdint.h> merely because
11836         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
11837         be independent of whether stdint.h is needed.
11838         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
11839         here, instead of ...
11840         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
11841         struct random_data should be using the random_r module, not just
11842         the stdlib module (which wouldn't make sense: what package needs
11843         just struct random_data without also needing random_r?).
11844         * modules/stdlib (Depends-on): Remove stdint.
11845
11846         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
11847         See the thread rooted at
11848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
11849         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
11850         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
11851         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
11852         __VMS)); previously it was always included (via fcntl--.h).
11853         (getloadavg): Do not use c_strtod.  Instead, approximate it by
11854         hand; this is good enough for load averages.  Also, do not use
11855         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
11856         flags directly if available and don't bother otherwise.  (Packages
11857         that need the extra reliability should use the modules that define
11858         these flags on older platforms that lack them.)
11859         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
11860         fcntl-safer.
11861
11862 2011-02-08  Jim Meyering  <meyering@redhat.com>
11863
11864         di-set.h, ino-map.h: add multiple-inclusion guard
11865         Technically, the guard is required only for ino-map.h, due to its
11866         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
11867         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
11868         * lib/ino-map.h: Likewise.
11869
11870 2011-02-06  Bruno Haible  <bruno@clisp.org>
11871
11872         iswblank: Ensure declaration on glibc systems.
11873         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
11874         * modules/iswblank (Dependencies): Add 'extensions'.
11875         * doc/posix-functions/iswblank.texi: Document the glibc problem.
11876
11877 2011-02-06  Bruno Haible  <bruno@clisp.org>
11878
11879         New module 'iswblank'.
11880         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
11881         * modules/iswblank: New file.
11882         * modules/wctype-h (Files): Remove lib/iswblank.c.
11883         (Makefile.am): Substitute GNULIB_ISWBLANK.
11884         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11885         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11886         (gl_WCTYPE_H_DEFAULTS): New macro.
11887         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11888         * modules/iswblank-tests: New file.
11889         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11890         * tests/test-wctype-h.c (main): Remove iswblank tests.
11891         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11892         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11893         of 'wctype-h'.
11894         * NEWS: Mention the change.
11895         * modules/mbchar (Depends-on): Add iswblank.
11896
11897 2011-02-08  Bruno Haible  <bruno@clisp.org>
11898
11899         di-set tests: Refactor.
11900         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11901         unnecessary includes.
11902         (ASSERT): Remove macro.
11903         (main): Make C90 compliant by avoiding variable declaration after
11904         statement.
11905         * modules/di-set-tests (Files): Add tests/macros.h.
11906
11907 2011-02-08  Bruno Haible  <bruno@clisp.org>
11908
11909         ino-map tests: Refactor.
11910         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11911         unnecessary includes.
11912         (ASSERT): Remove macro.
11913         (main): Make C90 compliant by avoiding variable declaration after
11914         statement.
11915         * modules/ino-map-tests (Files): Add tests/macros.h.
11916
11917 2011-02-08  Jim Meyering  <meyering@redhat.com>
11918
11919         di-set: add "const" to a cast
11920         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11921         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11922
11923 2011-02-06  Bruno Haible  <bruno@clisp.org>
11924
11925         Rename module 'wctype' to 'wctype-h'.
11926         * modules/wctype-h: Renamed from modules/wctype.
11927         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11928         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11929         (Files, Depends-on, Makefile.am): Update.
11930         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11931         (Files, Makefile.am): Update.
11932         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11933         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11934         * doc/posix-headers/wctype.texi: Update.
11935         * doc/posix-functions/iswalnum.texi: Update.
11936         * doc/posix-functions/iswalpha.texi: Update.
11937         * doc/posix-functions/iswblank.texi: Update.
11938         * doc/posix-functions/iswcntrl.texi: Update.
11939         * doc/posix-functions/iswdigit.texi: Update.
11940         * doc/posix-functions/iswgraph.texi: Update.
11941         * doc/posix-functions/iswlower.texi: Update.
11942         * doc/posix-functions/iswprint.texi: Update.
11943         * doc/posix-functions/iswpunct.texi: Update.
11944         * doc/posix-functions/iswspace.texi: Update.
11945         * doc/posix-functions/iswupper.texi: Update.
11946         * doc/posix-functions/iswxdigit.texi: Update.
11947         * doc/posix-functions/towlower.texi: Update.
11948         * doc/posix-functions/towupper.texi: Update.
11949         * NEWS: Mention the change.
11950         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11951         * modules/mbchar (Dependencies): Likewise.
11952         * modules/mbswidth (Dependencies): Likewise.
11953         * modules/quotearg (Dependencies): Likewise.
11954         * modules/regex (Dependencies): Likewise.
11955         * modules/wcscasecmp (Dependencies): Likewise.
11956         * modules/wcsncasecmp (Dependencies): Likewise.
11957         * modules/wcwidth (Dependencies): Likewise.
11958
11959 2011-02-06  Bruno Haible  <bruno@clisp.org>
11960
11961         New module 'wcswidth'.
11962         * modules/wcswidth: New file.
11963         * lib/wchar.in.h (wcswidth): New declaration.
11964         * lib/wcswidth.c: New file.
11965         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11966         * m4/wcswidth.m4: New file.
11967         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11968         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11969         REPLACE_WCSWIDTH.
11970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11971         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11972         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11973         * doc/posix-functions/wcswidth.texi: Mention the new module.
11974
11975 2011-02-06  Bruno Haible  <bruno@clisp.org>
11976
11977         New module 'wcstok'.
11978         * modules/wcstok: New file.
11979         * lib/wchar.in.h (wcstok): New declaration.
11980         * lib/wcstok.c: New file.
11981         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11982         * m4/wcstok.m4: New file.
11983         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11984         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11985         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11986         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11987         * doc/posix-functions/wcstok.texi: Mention the new module.
11988
11989 2011-02-06  Bruno Haible  <bruno@clisp.org>
11990
11991         New module 'wcsstr'.
11992         * modules/wcsstr: New file.
11993         * lib/wchar.in.h (wcsstr): New declaration.
11994         * lib/wcsstr.c: New file.
11995         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11996         * m4/wcsstr.m4: New file.
11997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11999         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
12000         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
12001         * doc/posix-functions/wcsstr.texi: Mention the new module.
12002
12003 2011-02-06  Bruno Haible  <bruno@clisp.org>
12004
12005         New module 'wcspbrk'.
12006         * modules/wcspbrk: New file.
12007         * lib/wchar.in.h (wcspbrk): New declaration.
12008         * lib/wcspbrk.c: New file.
12009         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
12010         * m4/wcspbrk.m4: New file.
12011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
12012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
12013         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
12014         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
12015         * doc/posix-functions/wcspbrk.texi: Mention the new module.
12016
12017 2011-02-06  Bruno Haible  <bruno@clisp.org>
12018
12019         New module 'wcsspn'.
12020         * modules/wcsspn: New file.
12021         * lib/wchar.in.h (wcsspn): New declaration.
12022         * lib/wcsspn.c: New file.
12023         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
12024         * m4/wcsspn.m4: New file.
12025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
12026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
12027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
12028         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
12029         * doc/posix-functions/wcsspn.texi: Mention the new module.
12030
12031 2011-02-06  Bruno Haible  <bruno@clisp.org>
12032
12033         New module 'wcscspn'.
12034         * modules/wcscspn: New file.
12035         * lib/wchar.in.h (wcscspn): New declaration.
12036         * lib/wcscspn.c: New file.
12037         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
12038         * m4/wcscspn.m4: New file.
12039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
12040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
12041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
12042         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
12043         * doc/posix-functions/wcscspn.texi: Mention the new module.
12044
12045 2011-02-06  Bruno Haible  <bruno@clisp.org>
12046
12047         New module 'wcsrchr'.
12048         * modules/wcsrchr: New file.
12049         * lib/wchar.in.h (wcsrchr): New declaration.
12050         * lib/wcsrchr.c: New file.
12051         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
12052         * m4/wcsrchr.m4: New file.
12053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
12054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
12055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
12056         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
12057         * doc/posix-functions/wcsrchr.texi: Mention the new module.
12058
12059 2011-02-06  Bruno Haible  <bruno@clisp.org>
12060
12061         New module 'wcschr'.
12062         * modules/wcschr: New file.
12063         * lib/wchar.in.h (wcschr): New declaration.
12064         * lib/wcschr.c: New file.
12065         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
12066         * m4/wcschr.m4: New file.
12067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
12068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
12069         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
12070         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
12071         * doc/posix-functions/wcschr.texi: Mention the new module.
12072
12073 2011-02-06  Bruno Haible  <bruno@clisp.org>
12074
12075         New module 'wcsdup'.
12076         * modules/wcsdup: New file.
12077         * lib/wchar.in.h (wcsdup): New declaration.
12078         * lib/wcsdup.c: New file.
12079         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
12080         * m4/wcsdup.m4: New file.
12081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
12082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
12083         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
12084         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
12085         * doc/posix-functions/wcsdup.texi: Mention the new module.
12086
12087 2011-02-06  Bruno Haible  <bruno@clisp.org>
12088
12089         New module 'wcsxfrm'.
12090         * modules/wcsxfrm: New file.
12091         * lib/wchar.in.h (wcsxfrm): New declaration.
12092         * lib/wcsxfrm.c: New file.
12093         * lib/wcsxfrm-impl.h: New file.
12094         * m4/wcsxfrm.m4: New file.
12095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
12096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
12097         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
12098         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
12099         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
12100
12101 2011-02-06  Bruno Haible  <bruno@clisp.org>
12102
12103         New module 'wcscoll'.
12104         * modules/wcscoll: New file.
12105         * lib/wchar.in.h (wcscoll): New declaration.
12106         * lib/wcscoll.c: New file.
12107         * lib/wcscoll-impl.h: New file.
12108         * m4/wcscoll.m4: New file.
12109         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
12110         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
12111         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
12112         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
12113         * doc/posix-functions/wcscoll.texi: Mention the new module.
12114
12115 2011-02-06  Bruno Haible  <bruno@clisp.org>
12116
12117         New module 'wcsncasecmp'.
12118         * modules/wcsncasecmp: New file.
12119         * lib/wchar.in.h (wcsncasecmp): New declaration.
12120         * lib/wcsncasecmp.c: New file.
12121         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
12122         * m4/wcsncasecmp.m4: New file.
12123         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
12124         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
12125         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
12126         HAVE_WCSNCASECMP.
12127         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
12128         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
12129
12130 2011-02-06  Bruno Haible  <bruno@clisp.org>
12131
12132         New module 'wcscasecmp'.
12133         * modules/wcscasecmp: New file.
12134         * lib/wchar.in.h (wcscasecmp): New declaration.
12135         * lib/wcscasecmp.c: New file.
12136         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
12137         * m4/wcscasecmp.m4: New file.
12138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
12139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
12140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
12141         HAVE_WCSCASECMP.
12142         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
12143         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
12144
12145 2011-02-05  Bruno Haible  <bruno@clisp.org>
12146
12147         New module 'wcsncmp'.
12148         * modules/wcsncmp: New file.
12149         * lib/wchar.in.h (wcsncmp): New declaration.
12150         * lib/wcsncmp.c: New file.
12151         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
12152         * m4/wcsncmp.m4: New file.
12153         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
12154         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
12155         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
12156         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
12157         * doc/posix-functions/wcsncmp.texi: Mention the new module.
12158
12159 2011-02-05  Bruno Haible  <bruno@clisp.org>
12160
12161         New module 'wcscmp'.
12162         * modules/wcscmp: New file.
12163         * lib/wchar.in.h (wcscmp): New declaration.
12164         * lib/wcscmp.c: New file.
12165         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
12166         * m4/wcscmp.m4: New file.
12167         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
12168         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
12169         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
12170         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
12171         * doc/posix-functions/wcscmp.texi: Mention the new module.
12172
12173 2011-02-05  Bruno Haible  <bruno@clisp.org>
12174
12175         New module 'wcsncat'.
12176         * modules/wcsncat: New file.
12177         * lib/wchar.in.h (wcsncat): New declaration.
12178         * lib/wcsncat.c: New file.
12179         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
12180         * m4/wcsncat.m4: New file.
12181         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
12182         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
12183         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
12184         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
12185         * doc/posix-functions/wcsncat.texi: Mention the new module.
12186
12187 2011-02-05  Bruno Haible  <bruno@clisp.org>
12188
12189         New module 'wcscat'.
12190         * modules/wcscat: New file.
12191         * lib/wchar.in.h (wcscat): New declaration.
12192         * lib/wcscat.c: New file.
12193         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
12194         * m4/wcscat.m4: New file.
12195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
12196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
12197         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
12198         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
12199         * doc/posix-functions/wcscat.texi: Mention the new module.
12200
12201 2011-02-05  Bruno Haible  <bruno@clisp.org>
12202
12203         New module 'wcpncpy'.
12204         * modules/wcpncpy: New file.
12205         * lib/wchar.in.h (wcpncpy): New declaration.
12206         * lib/wcpncpy.c: New file.
12207         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
12208         * m4/wcpncpy.m4: New file.
12209         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
12210         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
12211         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
12212         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
12213         * doc/posix-functions/wcpncpy.texi: Mention the new module.
12214
12215 2011-02-05  Bruno Haible  <bruno@clisp.org>
12216
12217         New module 'wcsncpy'.
12218         * modules/wcsncpy: New file.
12219         * lib/wchar.in.h (wcsncpy): New declaration.
12220         * lib/wcsncpy.c: New file.
12221         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
12222         * m4/wcsncpy.m4: New file.
12223         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
12224         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
12225         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
12226         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
12227         * doc/posix-functions/wcsncpy.texi: Mention the new module.
12228
12229 2011-02-05  Bruno Haible  <bruno@clisp.org>
12230
12231         New module 'wcpcpy'.
12232         * modules/wcpcpy: New file.
12233         * lib/wchar.in.h (wcpcpy): New declaration.
12234         * lib/wcpcpy.c: New file.
12235         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
12236         * m4/wcpcpy.m4: New file.
12237         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
12238         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
12239         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
12240         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
12241         * doc/posix-functions/wcpcpy.texi: Mention the new module.
12242
12243 2011-02-05  Bruno Haible  <bruno@clisp.org>
12244
12245         New module 'wcscpy'.
12246         * modules/wcscpy: New file.
12247         * lib/wchar.in.h (wcscpy): New declaration.
12248         * lib/wcscpy.c: New file.
12249         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
12250         * m4/wcscpy.m4: New file.
12251         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
12252         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
12253         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
12254         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
12255         * doc/posix-functions/wcscpy.texi: Mention the new module.
12256
12257 2011-02-05  Bruno Haible  <bruno@clisp.org>
12258
12259         New module 'wcsnlen'.
12260         * modules/wcsnlen: New file.
12261         * lib/wchar.in.h (wcsnlen): New declaration.
12262         * lib/wcsnlen.c: New file.
12263         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
12264         * m4/wcsnlen.m4: New file.
12265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
12266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
12267         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
12268         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
12269         * doc/posix-functions/wcsnlen.texi: Mention the new module.
12270
12271 2011-02-05  Bruno Haible  <bruno@clisp.org>
12272
12273         New module 'wcslen'.
12274         * modules/wcslen: New file.
12275         * lib/wchar.in.h (wcslen): New declaration.
12276         * lib/wcslen.c: New file.
12277         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
12278         * m4/wcslen.m4: New file.
12279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
12280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
12281         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
12282         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
12283         * doc/posix-functions/wcslen.texi: Mention the new module.
12284
12285 2011-02-05  Bruno Haible  <bruno@clisp.org>
12286
12287         New module 'wmemset'.
12288         * modules/wmemset: New file.
12289         * lib/wchar.in.h (wmemset): New declaration.
12290         * lib/wmemset.c: New file.
12291         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
12292         * m4/wmemset.m4: New file.
12293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
12294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
12295         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
12296         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
12297         * doc/posix-functions/wmemset.texi: Mention the new module.
12298
12299 2011-02-05  Bruno Haible  <bruno@clisp.org>
12300
12301         New module 'wmemmove'.
12302         * modules/wmemmove: New file.
12303         * lib/wchar.in.h (wmemmove): New declaration.
12304         * lib/wmemmove.c: New file.
12305         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
12306         * m4/wmemmove.m4: New file.
12307         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
12308         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
12309         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
12310         HAVE_WMEMMOVE.
12311         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
12312         * doc/posix-functions/wmemmove.texi: Mention the new module.
12313
12314 2011-02-05  Bruno Haible  <bruno@clisp.org>
12315
12316         New module 'wmemcpy'.
12317         * modules/wmemcpy: New file.
12318         * lib/wchar.in.h (wmemcpy): New declaration.
12319         * lib/wmemcpy.c: New file.
12320         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
12321         * m4/wmemcpy.m4: New file.
12322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
12323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
12324         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
12325         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
12326         * doc/posix-functions/wmemcpy.texi: Mention the new module.
12327
12328 2011-02-05  Bruno Haible  <bruno@clisp.org>
12329
12330         New module 'wmemcmp'.
12331         * modules/wmemcmp: New file.
12332         * lib/wchar.in.h (wmemcmp): New declaration.
12333         * lib/wmemcmp.c: New file.
12334         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
12335         * m4/wmemcmp.m4: New file.
12336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
12337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
12338         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
12339         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
12340         * doc/posix-functions/wmemcmp.texi: Mention the new module.
12341
12342 2011-02-07  Jim Meyering  <meyering@redhat.com>
12343
12344         di-set, ino-map: new modules, from coreutils
12345         * lib/di-set.c: New file.
12346         * lib/di-set.h: Likewise.
12347         * lib/ino-map.c: Likewise.
12348         * lib/ino-map.h: Likewise.
12349         * modules/di-set: Likewise.
12350         * modules/di-set-tests: Likewise.
12351         * modules/ino-map: Likewise.
12352         * modules/ino-map-tests: Likewise.
12353         * tests/test-di-set.c: Likewise.
12354         * tests/test-ino-map.c: Likewise.
12355
12356 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12357
12358         getloadavg: merge minor changes from Emacs
12359
12360         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
12361         (getloadavg): Use memset, not bzero.
12362
12363         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
12364         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12365         clash (bug#86).
12366
12367 2010-11-14  Bruno Haible  <bruno@clisp.org>
12368
12369         Allow multiple gnulib generated replacements to coexist.
12370         * lib/getopt.in.h (struct option): Avoid identical redefinition.
12371         * lib/inttypes.in.h (imaxdiv_t): Likewise.
12372         * lib/langinfo.in.h (nl_item): Likewise.
12373         * lib/math.in.h (_NaN, NAN): Likewise.
12374         * lib/netdb.in.h (struct addrinfo): Likewise.
12375         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
12376         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
12377         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
12378         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
12379         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
12380         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
12381         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
12382         pthread_mutexattr_init, pthread_mutexattr_settype,
12383         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
12384         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
12385         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
12386         pthread_spin_trylock, pthread_spin_unlock): Likewise.
12387         * lib/sched.in.h (struct sched_param): Likewise.
12388         * lib/se-selinux.in.h (security_class_t, security_context_t,
12389         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
12390         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
12391         lsetfilecon, fsetfilecon, security_check_context,
12392         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
12393         Likewise.
12394         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
12395         Likewise.
12396         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
12397         _gl_function_taking_int_returning_void_t, union sigval,
12398         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
12399         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
12400         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12401         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
12402         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
12403         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
12404         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
12405         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
12406         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
12407         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
12408         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
12409         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
12410         socklen_t, rpl_fd_isset): Likewise.
12411         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
12412         * lib/sys_time.in.h (struct timeval): Likewise.
12413         * lib/sys_times.in.h (struct tms): Likewise.
12414         * lib/sys_utsname.in.h (struct utsname):
12415         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
12416         * lib/unistd.in.h (getpagesize): Likewise.
12417         * lib/wchar.in.h (mbstate_t): Likewise.
12418         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12419         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
12420         towlower, towupper): Likewise.
12421         Reported by Sam Steingold <sds@gnu.org>.
12422
12423 2011-02-05  Eric Blake  <eblake@redhat.com>
12424
12425         unsetenv: work around Haiku issues
12426         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
12427         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
12428
12429 2010-12-30  Bruce Korb  <bkorb@gnu.org>
12430
12431         libposix: avoid calling error() within libposix
12432         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
12433         is defined.
12434
12435 2011-02-05  Eric Blake  <eblake@redhat.com>
12436
12437         strerror_r-posix: port to cygwin
12438         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
12439         implementation.
12440         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
12441         * tests/test-strerror_r.c (main): Fix test.
12442         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12443         issue.
12444
12445 2011-02-05  Bruno Haible  <bruno@clisp.org>
12446
12447         New module 'wmemchr'.
12448         * modules/wmemchr: New file.
12449         * lib/wchar.in.h (wmemchr): New declaration.
12450         * lib/wmemchr.c: New file.
12451         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
12452         * m4/wmemchr.m4: New file.
12453         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
12454         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
12455         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
12456         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
12457         * doc/posix-functions/wmemchr.texi: Mention the new module.
12458
12459 2011-02-04  Eric Blake  <eblake@redhat.com>
12460
12461         fdopendir: detect FreeBSD bug
12462         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
12463         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
12464
12465 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12466
12467         stdbool: do not define HAVE_STDBOOL_H
12468         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
12469         AC_HEADER_STDBOOL.  All uses changed.  Do not define
12470         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
12471         imported from the latest Autoconf git.  It was motivated by Emacs,
12472         which uses gnulib but does not need HAVE_STDBOOL_H.
12473
12474 2011-02-04  Bruno Haible  <bruno@clisp.org>
12475
12476         wcsnrtombs: Prepare for new module wwcsnrtombs.
12477         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
12478         * lib/wcsnrtombs.c: Include it.
12479         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
12480
12481         wcsrtombs: Prepare for new module wwcsrtombs.
12482         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
12483         * lib/wcsrtombs.c: Include it.
12484         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
12485
12486         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
12487         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
12488         * lib/mbsnrtowcs.c: Include it.
12489         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
12490
12491         mbsrtowcs: Prepare for new module mbsrtowwcs.
12492         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
12493         * lib/mbsrtowcs.c: Include it.
12494         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
12495
12496 2011-02-04  Bruno Haible  <bruno@clisp.org>
12497
12498         vasnprintf: Reduce use of malloc for small format strings.
12499         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
12500         (arguments): Add room for the first 7 arguments.
12501         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
12502         (char_directives, u8_directives, u16_directives, u32_directives): Add
12503         room for the first 7 directives.
12504         * lib/printf-parse.c: Include <string.h>.
12505         (PRINTF_PARSE): Change memory handling code so that it uses the first
12506         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
12507         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
12508         Reported by Pádraig Brady <P@draigbrady.com>.
12509
12510 2011-01-31  Eric Blake  <eblake@redhat.com>
12511
12512         dup2: work around Haiku bug
12513         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
12514         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
12515         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12516         * tests/test-dup2.c (main): Enhance test.
12517
12518 2011-01-31  Simon Josefsson  <simon@josefsson.org>
12519
12520         doc: off_t is not available in eglibc 2.11.2 stdio.h.
12521         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
12522         declared by eglibc 2.11.2.
12523         * lib/stdio.in.h: Likewise.
12524
12525 2011-01-31  Eric Blake  <eblake@redhat.com>
12526
12527         ignore-value: add missing test dependency
12528         * tests/test-ignore-value.c: Revert previous change; stdio.h
12529         provides off_t.
12530         * modules/ignore-value-tests (Depends-on): Add missing dependency.
12531
12532 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
12533
12534         mktime: clarify long_int width checking
12535         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
12536         the top level, to make it clearer that the assumption about
12537         long_int width is being checked.  See
12538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
12539
12540 2011-01-30  Simon Josefsson  <simon@josefsson.org>
12541
12542         ignore-value: Fix self-test.
12543         * tests/test-ignore-value.c: Include sys/types.h for off_t.
12544
12545 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
12546
12547         TYPE_MAXIMUM: avoid theoretically undefined behavior
12548         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
12549         negative number, which the C Standard says has undefined behavior.
12550         In practice this is not a problem, but might as well do it by the book.
12551         Reported by Rich Felker and Eric Blake; see
12552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
12553         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
12554         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12555         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12556         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
12557         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12558         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
12559
12560         mktime: #undef mktime before #defining it
12561         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
12562
12563         mktime: systematically normalize tm_isdst comparisons
12564         * lib/mktime.c (isdst_differ): New function.
12565         (__mktime_internal): Use it systematically for all isdst comparisons.
12566         This completes the fix for libc BZ #6723, and removes the need for
12567         normalizing tm_isdst.  See
12568         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
12569         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
12570
12571         mktime: fix some integer overflow issues and sidestep the rest
12572
12573         This was prompted by a bug report by Benjamin Lindner for MinGW
12574         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
12575         His bug is due to signed integer overflow (0 - INT_MIN), and I
12576         I scanned through mktime.c looking for other integer overflow
12577         problems, fixing all the bugs I found.
12578
12579         Although the C Standard says the resulting code is still not safe
12580         in the presence of integer overflow, in practice it should be good
12581         enough for all real-world two's-complement implementations, except
12582         for debugging environments that deliberately trap on integer
12583         overflow (e.g., gcc -ftrapv).
12584
12585         * lib/mktime.c (WRAPV): New macro.
12586         (SHR): Also check that long_int and time_t shift right in the
12587         usual way, before using the fast-but-unportable method.
12588         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
12589         used.  The code already assumed two's complement, so there's
12590         no need to test for alternatives.  All uses removed.
12591         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
12592         the C standard.  Problem reported by Rich Felker in
12593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
12594         (twos_complement_arithmetic): Also check long_int and time_t.
12595         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
12596         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
12597         (__mktime_internal): Avoid integer overflow with unary subtraction
12598         in two instances where -1 - X is an adequate replacement for -X,
12599         since the calculations are approximate.
12600
12601 2011-01-29  Eric Blake  <eblake@redhat.com>
12602
12603         mktime: avoid infinite loop
12604         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
12605         type; behavior is still undefined but portable to all known targets.
12606         Reported by Rich Felker.
12607
12608 2011-01-29  Simon Josefsson  <simon@josefsson.org>
12609
12610         rename, unlink, same-inode: Relicense.
12611         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
12612         * modules/unlink (License): Likewise.
12613         * modules/same-inode (License): Likewise.
12614
12615 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12616
12617         mktime: avoid problems on NetBSD 5 / i386
12618         * lib/mktime.c (long_int): New type.  This works around a problem
12619         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
12620         but time_t is 64 bits, and where I expect the existing code is
12621         wrong in some cases.
12622         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
12623         (ydhms_diff): Bring back the compile-time check for wide-enough
12624         year and yday.
12625
12626         mktime: fix misspelling in comment
12627         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
12628         This merges all recent glibc changes of importance.
12629
12630 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12631
12632         move-if-change: cope with concurrent mv of identical file.
12633         * build-aux/move-if-change (CMPPROG): Accept environment
12634         variable as an override for `cmp'.
12635         (usage): Document CMPPROG.
12636         Adjust comparison to drop stdout.  Cope with failure of mv if
12637         the target file exists and is identical to the source, for
12638         parallel builds.
12639         Report from H.J. Lu against binutils in PR binutils/12283.
12640
12641 2011-01-28  Bruce Korb  <bkorb@gnu.org>
12642
12643         * users.txt: Mention sharutils.
12644
12645 2011-01-28  Simon Josefsson  <simon@josefsson.org>
12646
12647         * users.txt: Mention OATH Toolkit.
12648
12649 2011-01-27  Bruno Haible  <bruno@clisp.org>
12650
12651         Prepare for supporting FreeBSD 10.
12652         * build-aux/config.libpath: Remove handling of freebsd1*.
12653
12654 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
12655
12656         Prepare for supporting FreeBSD 10.
12657         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
12658         match FreeBSD 10.0.
12659
12660 2011-01-27  Bruno Haible  <bruno@clisp.org>
12661
12662         vma-iter, get-rusage-as: Add OpenBSD support.
12663         * modules/vma-iter (configure.ac): Test for mquery.
12664         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
12665         * lib/vma-iter.c: Include <sys/mman.h>.
12666         (vma_iterate): Add an implementation based on mquery().
12667         * lib/resource-ext.h (get_rusage_as): Update comments.
12668         * lib/get-rusage-as.c: Likewise.
12669         * lib/get-rusage-data.c: Likewise.
12670
12671 2011-01-26  Karl Berry  <karl@gnu.org>
12672
12673         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
12674         variables to make it easier to override the makeinfo program used.
12675
12676 2011-01-26  Eric Blake  <eblake@redhat.com>
12677
12678         fcntl: work around Haiku F_DUPFD bugs
12679         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
12680         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
12681         cloexec bit on duplication.
12682         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
12683
12684 2011-01-26  Bruno Haible  <bruno@clisp.org>
12685
12686         Enable memory leak tests on AIX.
12687         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
12688         * tests/test-fprintf-posix3.c (main): Likewise.
12689
12690 2011-01-26  Bruno Haible  <bruno@clisp.org>
12691
12692         Tests for module 'get-rusage-data'.
12693         * modules/get-rusage-data-tests: New file.
12694         * tests/test-get-rusage-data.c: New file.
12695
12696         New module 'get-rusage-data'.
12697         * lib/resource-ext.h (get_rusage_data): New declaration.
12698         * lib/get-rusage-data.c: New file.
12699         * modules/get-rusage-data: New file.
12700
12701 2011-01-25  Bruno Haible  <bruno@clisp.org>
12702
12703         get-rusage-as: Allow for easier testing.
12704         * lib/resource-ext.h (get_rusage_as): Add comment.
12705         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
12706         (main): New function for interactive testing.
12707
12708 2011-01-25  Bruno Haible  <bruno@clisp.org>
12709
12710         vma-iter: Treat Haiku like BeOS.
12711         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
12712         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
12713
12714 2011-01-25  Eric Blake  <eblake@redhat.com>
12715
12716         c-stack: fix regression on cygwin when libsigsegv is present
12717         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
12718
12719 2011-01-24  Bruno Haible  <bruno@clisp.org>
12720
12721         vma-iter: Avoid empty intervals.
12722         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
12723         on an empty interval.
12724
12725 2011-01-24  Jim Meyering  <meyering@redhat.com>
12726
12727         u64: remove unnecessary #include
12728         * lib/u64.h: Don't include <stddef.h>.  It was not used.
12729
12730 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12731
12732         Allow the user to avoid the HAVE_RAW_DECL_* macros.
12733         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
12734
12735 2011-01-23  Bruno Haible  <bruno@clisp.org>
12736
12737         New module 'vma-iter'.
12738         * lib/vma-iter.h: New file.
12739         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
12740         * modules/vma-iter: New file.
12741         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
12742         for get_rusage_as_via_iterator.
12743         (vma_iterate_callback): New function.
12744         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
12745         * modules/get-rusage-as (Depends-on): Add vma-iter.
12746
12747 2011-01-23  Bruno Haible  <bruno@clisp.org>
12748
12749         uninorm: Tweak includes.
12750         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
12751         Reported by Jim Meyering.
12752
12753 2011-01-23  Bruno Haible  <bruno@clisp.org>
12754
12755         get-rusage-as: Improve on NetBSD.
12756         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
12757         /proc, like on FreeBSD.
12758
12759 2011-01-23  Jim Meyering  <meyering@redhat.com>
12760
12761         xreadlink.h: remove unnecessary #include
12762         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
12763
12764         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
12765         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
12766
12767 2011-01-23  Bruno Haible  <bruno@clisp.org>
12768
12769         get-rusage-as: Fix bug.
12770         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
12771         original limit when aborting the first loop.
12772
12773 2011-01-23  Bruno Haible  <bruno@clisp.org>
12774
12775         wctype: Ensure valid C syntax.
12776         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
12777         unconditionally, instead of gl_NEXT_HEADERS conditionally.
12778
12779 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12780
12781         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
12782         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
12783         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
12784         as they are needed only for configure's test case.
12785         This removes two unnecessary symbols from config.h.
12786
12787         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
12788         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
12789         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
12790         AC_CHECK_HEADERS_ONCE on a header that we also invoke
12791         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
12792         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
12793         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
12794         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12795         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12796         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12797         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12798         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12799         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12800         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12801         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12802         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12803         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12804         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12805
12806 2011-01-21  Eric Blake  <eblake@redhat.com>
12807
12808         maintainer-makefile: work with older git for submodule check
12809         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12810         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12811         Reported by Matthias Bolte.
12812
12813         bootstrap: minor portability fixes
12814         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12815         (usage): Omit leading capital and trailing . on help phrases, per
12816         GNU Coding Standards.
12817         (check_versions, top level): Prefix messages with script name.
12818
12819 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12820
12821         bootstrap: support --no-git option
12822         * build-aux/bootstrap: Add --no-git option, to be used when
12823         --gnulib-srcdir points to the exact desired checkout.
12824
12825 2011-01-21  Eric Blake  <eblake@redhat.com>
12826
12827         strerror_r-posix: work with glibc 2.13
12828         * lib/strerror_r.c (strerror_r): Fix return type.
12829
12830 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12831             Bruno Haible  <bruno@clisp.org>
12832
12833         uN_strstr: New unit tests.
12834         * modules/unistr/u8-strstr-tests: New file.
12835         * modules/unistr/u16-strstr-tests: New file.
12836         * modules/unistr/u32-strstr-tests: New file.
12837         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
12838         * tests/unistr/test-u8-strstr.c: New file.
12839         * tests/unistr/test-u16-strstr.c: New file.
12840         * tests/unistr/test-u32-strstr.c: New file.
12841
12842 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12843             Bruno Haible  <bruno@clisp.org>
12844
12845         Make uN_strstr functions O(n) worst-case.
12846         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
12847         16-bit and 32-bit unit cases, use the unibyte algorithm from
12848         lib/mbsstr.c.
12849         * lib/unistr/u8-strstr.c: Include <string.h>.
12850         (UNIT_IS_UINT8_T): New macro.
12851         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
12852         (U_STRLEN, U_STRNLEN): New macros.
12853         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
12854         (U_STRLEN, U_STRNLEN): New macros.
12855         * modules/unistr/u8-strstr (Depends-on): Add strstr.
12856         (configure.ac): Update required libunistring version.
12857         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
12858         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
12859         malloca.
12860         (configure.ac): Update required libunistring version.
12861         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
12862         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
12863         malloca.
12864         (configure.ac): Update required libunistring version.
12865
12866 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12867             Bruno Haible  <bruno@clisp.org>
12868
12869         Prepare for faster uN_strstr functions.
12870         * lib/str-kmp.h: Support definable UNITs.
12871         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
12872         needle_len argument.
12873         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
12874         * lib/mbscasestr.c (mbscasestr): Likewise.
12875
12876 2011-01-21  Pádraig Brady <P@draigBrady.com>
12877
12878         malloca-tests: make faster by unsetting MALLOC_PERTURB_
12879         * tests/test-malloca.c (main): Unset the environment variable
12880         to greatly speed up the test.
12881         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
12882         * modules/malloca-tests: Depend on unsetenv.
12883
12884 2011-01-21  Pádraig Brady <P@draigBrady.com>
12885
12886         ignore-value: remove stdint dependency
12887         * lib/ignore-value.h: Remove <stdint.h>
12888         * modules/ignore-value: Remove stdint dependency.
12889
12890 2011-01-21  Jim Meyering  <meyering@redhat.com>
12891
12892         maint.mk: adjust variable name to be consistent with other gl_ vars
12893         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12894         to be lower case.
12895
12896 2011-01-20  Jim Meyering  <meyering@redhat.com>
12897
12898         maint.mk: make "check" depend on public-submodule-commit by default
12899         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12900
12901 2011-01-20  Bruno Haible  <bruno@clisp.org>
12902
12903         mbfile, mbiter: Complete change from 2008-12-21.
12904         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12905         * m4/mbiter.m4 (gl_MBITER): Likewise.
12906
12907 2011-01-20  Jim Meyering  <meyering@redhat.com>
12908
12909         init.sh: insert space between each function name and "()"
12910         * tests/init.sh: Make it a little easier to see that a function's
12911         name is "warn_", and not "warn" when looking at the first part of
12912         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12913
12914 2011-01-20  Jim Meyering  <meyering@redhat.com>
12915
12916         mountlist: clean up code formatting
12917         * lib/mountlist.c (read_file_system_list): Split a long line,
12918         correct bracing style, use NULL in place of "(struct statfs *)0",
12919         don't parenthesize return value, add spaces around "=" and after
12920         ";-in-for-stmt".
12921
12922 2011-01-14  Markus Duft <mduft@gentoo.org>
12923
12924         mountlist: add support for Interix
12925         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12926         Apply statvfs to all entries of /dev/fs.
12927         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12928         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12929
12930 2011-01-20  Jim Meyering  <meyering@redhat.com>
12931
12932         maint.mk: improve the public-submodule-commit rule
12933         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12934         to suppress printing of its commands... unless V=1.
12935         Add git submodule's --quiet option to suppress printing of e.g.,
12936         "Entering gnulib" output.
12937         "cd" into $(srcdir) before running git submodule.
12938
12939 2011-01-20  Bruno Haible  <bruno@clisp.org>
12940
12941         include_next: Fix bug introduced on 2011-01-18.
12942         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12943         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12944         ac_cv_header_... variable if the second argument is not 'check'.
12945         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12946         gl_NEXT_HEADERS_INTERNAL.
12947
12948 2011-01-20  Bruno Haible  <bruno@clisp.org>
12949
12950         Allow the user to avoid the GNULIB_TEST_* macros.
12951         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12952         Suggested by Paul Eggert.
12953
12954 2011-01-14  Jim Meyering  <meyering@redhat.com>
12955
12956         bootstrap: avoid failure when there is no .gitmodules file
12957         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12958         has been assigned to, even when its value is the empty string.
12959         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12960         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12961         Reported by John W. Eaton <jwe@gnu.org>.
12962
12963 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12964
12965         assume <ctype.h>, ..., <time.h> exist
12966         For years gnulib has been assuming the existence of the headers
12967         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12968         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12969         them, since they don't appear to be needed.
12970         * README (Portability guidelines): Document this.
12971         * lib/flock.c: Assume <fcntl.h> exists.
12972         * lib/regex_internal.h: Assume <locale.h> exists.
12973         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12974         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12975         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12976         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12977         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12978         * m4/regex.m4 (gl_REGEX): Likewise.
12979         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12980         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12981         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12982         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12983         * tests/test-argp.c: Likewise.
12984         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12985
12986         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12987         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12988         AA_APPLE_UNIVERSAL_BUILD.  See
12989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12990         * NEWS: Document this.
12991
12992 2011-01-19  Eric Blake  <eblake@redhat.com>
12993
12994         c-stack: assume stack overflow if SA_SIGINFO unsupported
12995         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12996         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12997         sigaction will work.
12998         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12999         behavior match Linux.
13000         * tests/test-c-stack.c (main): Prefer NULL for pointers.
13001
13002         stdbool-tests: accomodate Haiku
13003         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
13004
13005         binary-io: fix O_TEXT on Haiku
13006         * modules/binary-io (Depends-on): Add fcntl-h.
13007         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
13008         than blindly undefining O_TEXT.
13009         Reported by Scott McCreary.
13010
13011 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13012
13013         include_next: do not check for standard headers like stddef.h
13014
13015         I found this problem when modifying Emacs to use gnulib.
13016         I noticed that it added HAVE_STDDEF_H to config.h, even though
13017         gnulib always assumes <stddef.h> exists as per README and this
13018         symbol is unnecessary.
13019         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
13020         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
13021         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
13022         faster for headers like stddef.h that are known to exist.
13023         (gl_CHECK_NEXT_HEADERS): Use it.
13024         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
13025         rather than gl_CHECK_NEXT_HEADERS.
13026         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
13027         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
13028
13029 2011-01-18  Eric Blake  <eblake@redhat.com>
13030
13031         ansi-c++-opt: skip C++ dependency style if C++ is unused
13032         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
13033         tests when we know C++ compilation is not desired.
13034         Reported by Scott McCreary.
13035
13036 2011-01-18  Bruno Haible  <bruno@clisp.org>
13037
13038         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
13039         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
13040         (main): Perform test also when getrlimit and setrlimit don't exist or
13041         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
13042         limiting the address space size using setrlimit, compare the address
13043         space size before and after the the test.
13044         * tests/test-dprintf-posix2.c: Likewise.
13045         * tests/test-fprintf-posix3.sh: Update skip messages.
13046         * tests/test-dprintf-posix2.sh: Likewise.
13047         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
13048         * modules/dprintf-posix-tests (Depends-on): Likewise.
13049         Reported by Bruce Korb <bkorb@gnu.org> and
13050         Gary V. Vaughan <gary@gnu.org>.
13051
13052 2011-01-18  Bruno Haible  <bruno@clisp.org>
13053
13054         get-rusage-as: Improvement for Cygwin.
13055         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
13056         areas that are merely reserved.
13057
13058 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13059
13060         strftime: remove dependencies on multibyte modules
13061
13062         strftime depended on mbrlen, mbsinit, and wchar, but these modules
13063         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
13064         only if __osf__ is defined, and I suspect OSF doesn't need these
13065         other modules.  If my guess is wrong, we'll need to come up with a
13066         variant of strftime that doesn't need the multibyte modules.
13067
13068         I discovered this problem when attempting modify Emacs to use the
13069         strftime module.  With the previous gnulib, this caused Emacs to
13070         need 31 new files, ranging from lib/config.charset to
13071         m4/wint_t.m4.  This was overkill and I expect would be offputting
13072         to the Emacs maintainers.  After this change, only 6 new files are
13073         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
13074         stdbool.m4, and tm_gmtoff.m4.
13075
13076         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
13077         Suggested by Bruno Haible in
13078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
13079         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
13080         and do not check for wchar.h.
13081         * modules/strftime (Files): Remove m4/mbstate_t.m4.
13082         (Depends-on): Remove mbrlen, mbsinit, wchar.
13083
13084 2011-01-18  Bruno Haible  <bruno@clisp.org>
13085
13086         Tests for module 'get-rusage-as'.
13087         * modules/get-rusage-as-tests: New file.
13088         * tests/test-get-rusage-as.c: New file.
13089
13090         New module 'get-rusage-as'.
13091         * modules/get-rusage-as: New file.
13092         * lib/resource-ext.h: New file.
13093         * lib/get-rusage-as.c: New file.
13094
13095 2011-01-17  Eric Blake  <eblake@redhat.com>
13096
13097         sigaction: relax license from LGPLv3+ to LGPLv2+
13098         * modules/sigaction (License): Relax to LGPLv2+.
13099
13100 2011-01-14  Bruno Haible  <bruno@clisp.org>
13101
13102         filemode: Make function declarations usable in C++ mode.
13103         * lib/filemode.h: Enclose function declarations in extern "C" block.
13104         Reported by John W. Eaton <jwe@gnu.org>.
13105
13106 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
13107
13108         save-cwd: no longer include "xgetcwd.h"
13109         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
13110         This avoids a compilation failure in projects that use save-cwd
13111         without also using the xgetcwd module.
13112
13113 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
13114
13115         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
13116         This is so that a program like Emacs, which needs only dtoastr,
13117         does not have to bother with distributing and compiling ftoastr
13118         and ldtoastr.
13119         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
13120         * modules/dtoastr, modules/ldtoastr: New files.
13121         * modules/ftoastr: Now works just for 'float'.
13122         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
13123         (Makefile.am): Remove ftoastr.h (not needed and no effect),
13124         dtoastr.c, ldtoastr.c.
13125
13126 2011-01-11  Jim Meyering  <meyering@redhat.com>
13127
13128         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
13129         There is no need to work around the lack of the fchdir function,
13130         since gnulib can now provide a replacement when required.
13131         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
13132         * modules/save-cwd (Depends-on): Add fchdir.
13133
13134 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
13135
13136         openat, save-cwd: avoid xmalloc
13137
13138         This removes a direct (but undocumented) dependency of openat on
13139         xalloc, along with an indirect dependency via save-cwd.  It also
13140         removes a dependency of save-cwd on xgetcwd, and thereby
13141         indirectly on xalloc.  This change causes the openat substitute
13142         to fall back on save_cwd when memory is tight, and for save_cwd to
13143         fail instead of dying when memory is tight, but that's good enough.
13144         Problem and initial idea for fix reported by Bastien Roucaries in
13145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
13146
13147         * lib/openat-proc.c: Include stdlib.h (for malloc), not
13148         xalloc.h (for xmalloc).
13149         (openat_proc_name): Use malloc, not xmalloc.
13150         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
13151         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
13152
13153         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
13154         This avoids heap allocation for file names whose lengths are in
13155         the range 512..1023, with the upper bound increasing to at most
13156         4031 depending on the platform's PATH_MAX.  (We do not want
13157         pathmax.h here as it might supply a non-constant PATH_MAX.)
13158         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
13159         Perhaps they should be moved to malloca.h?
13160         (OPENAT_BUFFER_SIZE): Use them.
13161
13162 2011-01-10  Bruno Haible  <bruno@clisp.org>
13163
13164         doc: Update users.txt.
13165         * users.txt: Add recutils.
13166
13167 2011-01-09  Karl Berry  <karl@gnu.org>
13168
13169         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
13170
13171         * doc/configmake.texi: New file.
13172         * doc/gnulib.texi: Include it.
13173         * modules/configmake: Move documentation from here.
13174
13175 2011-01-09  Bruno Haible  <bruno@clisp.org>
13176
13177         Update to Unicode 6.0.0.
13178         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
13179         (get_lbp): Update for Unicode 6.0.0.
13180         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
13181         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
13182         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
13183         U+11001, U+11038..U+11046. Remove U+06DE.
13184         (uc_width): Fix bounds of planes.
13185         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13186         lib/uniwidth/width.c.
13187         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
13188         trailing whitespace removed.
13189         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
13190         without comments, but with the original copyright notice.
13191         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
13192         * lib/unicase/ignorable.h: Likewise.
13193         * lib/unicase/tocasefold.h: Likewise.
13194         * lib/unicase/tolower.h: Likewise.
13195         * lib/unicase/totitle.h: Likewise.
13196         * lib/unicase/toupper.h: Likewise.
13197         * lib/unictype/bidi_of.h: Likewise.
13198         * lib/unictype/blocks.h: Likewise.
13199         * lib/unictype/categ_C.h: Likewise.
13200         * lib/unictype/categ_Cn.h: Likewise.
13201         * lib/unictype/categ_L.h: Likewise.
13202         * lib/unictype/categ_Ll.h: Likewise.
13203         * lib/unictype/categ_Lm.h: Likewise.
13204         * lib/unictype/categ_Lo.h: Likewise.
13205         * lib/unictype/categ_Lu.h: Likewise.
13206         * lib/unictype/categ_M.h: Likewise.
13207         * lib/unictype/categ_Mc.h: Likewise.
13208         * lib/unictype/categ_Me.h: Likewise.
13209         * lib/unictype/categ_Mn.h: Likewise.
13210         * lib/unictype/categ_N.h: Likewise.
13211         * lib/unictype/categ_Nd.h: Likewise.
13212         * lib/unictype/categ_No.h: Likewise.
13213         * lib/unictype/categ_P.h: Likewise.
13214         * lib/unictype/categ_Po.h: Likewise.
13215         * lib/unictype/categ_S.h: Likewise.
13216         * lib/unictype/categ_Sc.h: Likewise.
13217         * lib/unictype/categ_Sk.h: Likewise.
13218         * lib/unictype/categ_Sm.h: Likewise.
13219         * lib/unictype/categ_So.h: Likewise.
13220         * lib/unictype/categ_of.h: Likewise.
13221         * lib/unictype/combining.h: Likewise.
13222         * lib/unictype/ctype_alnum.h: Likewise.
13223         * lib/unictype/ctype_alpha.h: Likewise.
13224         * lib/unictype/ctype_graph.h: Likewise.
13225         * lib/unictype/ctype_lower.h: Likewise.
13226         * lib/unictype/ctype_print.h: Likewise.
13227         * lib/unictype/ctype_punct.h: Likewise.
13228         * lib/unictype/ctype_upper.h: Likewise.
13229         * lib/unictype/decdigit.h: Likewise.
13230         * lib/unictype/digit.h: Likewise.
13231         * lib/unictype/numeric.h: Likewise.
13232         * lib/unictype/pr_alphabetic.h: Likewise.
13233         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13234         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13235         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13236         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13237         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13238         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13239         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13240         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13241         * lib/unictype/pr_case_ignorable.h: Likewise.
13242         * lib/unictype/pr_cased.h: Likewise.
13243         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
13244         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
13245         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
13246         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
13247         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
13248         * lib/unictype/pr_combining.h: Likewise.
13249         * lib/unictype/pr_composite.h: Likewise.
13250         * lib/unictype/pr_currency_symbol.h: Likewise.
13251         * lib/unictype/pr_decimal_digit.h: Likewise.
13252         * lib/unictype/pr_deprecated.h: Likewise.
13253         * lib/unictype/pr_format_control.h: Likewise.
13254         * lib/unictype/pr_grapheme_base.h: Likewise.
13255         * lib/unictype/pr_grapheme_extend.h: Likewise.
13256         * lib/unictype/pr_grapheme_link.h: Likewise.
13257         * lib/unictype/pr_id_continue.h: Likewise.
13258         * lib/unictype/pr_id_start.h: Likewise.
13259         * lib/unictype/pr_ideographic.h: Likewise.
13260         * lib/unictype/pr_lowercase.h: Likewise.
13261         * lib/unictype/pr_math.h: Likewise.
13262         * lib/unictype/pr_numeric.h: Likewise.
13263         * lib/unictype/pr_other_alphabetic.h: Likewise.
13264         * lib/unictype/pr_other_id_continue.h: Likewise.
13265         * lib/unictype/pr_other_math.h: Likewise.
13266         * lib/unictype/pr_punctuation.h: Likewise.
13267         * lib/unictype/pr_sentence_terminal.h: Likewise.
13268         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13269         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13270         * lib/unictype/pr_unified_ideograph.h: Likewise.
13271         * lib/unictype/pr_uppercase.h: Likewise.
13272         * lib/unictype/pr_xid_continue.h: Likewise.
13273         * lib/unictype/pr_xid_start.h: Likewise.
13274         * lib/unictype/scripts.h: Likewise.
13275         * lib/unictype/scripts_byname.gperf: Likewise.
13276         * lib/unictype/sy_java_ident.h: Likewise.
13277         * lib/unigbrk/gbrkprop.h: Likewise.
13278         * lib/unilbrk/lbrkprop1.h: Likewise.
13279         * lib/unilbrk/lbrkprop2.h: Likewise.
13280         * lib/uninorm/decomposition-table2.h: Likewise.
13281         * lib/uniwbrk/wbrkprop.h: Likewise.
13282         * tests/unicase/test-cased.c: Likewise.
13283         * tests/unicase/test-ignorable.c: Likewise.
13284         * tests/unicase/test-uc_tolower.c: Likewise.
13285         * tests/unicase/test-uc_totitle.c: Likewise.
13286         * tests/unicase/test-uc_toupper.c: Likewise.
13287         * tests/unictype/test-categ_C.c: Likewise.
13288         * tests/unictype/test-categ_Cn.c: Likewise.
13289         * tests/unictype/test-categ_L.c: Likewise.
13290         * tests/unictype/test-categ_Ll.c: Likewise.
13291         * tests/unictype/test-categ_Lm.c: Likewise.
13292         * tests/unictype/test-categ_Lo.c: Likewise.
13293         * tests/unictype/test-categ_Lu.c: Likewise.
13294         * tests/unictype/test-categ_M.c: Likewise.
13295         * tests/unictype/test-categ_Mc.c: Likewise.
13296         * tests/unictype/test-categ_Me.c: Likewise.
13297         * tests/unictype/test-categ_Mn.c: Likewise.
13298         * tests/unictype/test-categ_N.c: Likewise.
13299         * tests/unictype/test-categ_Nd.c: Likewise.
13300         * tests/unictype/test-categ_No.c: Likewise.
13301         * tests/unictype/test-categ_P.c: Likewise.
13302         * tests/unictype/test-categ_Po.c: Likewise.
13303         * tests/unictype/test-categ_S.c: Likewise.
13304         * tests/unictype/test-categ_Sc.c: Likewise.
13305         * tests/unictype/test-categ_Sk.c: Likewise.
13306         * tests/unictype/test-categ_Sm.c: Likewise.
13307         * tests/unictype/test-categ_So.c: Likewise.
13308         * tests/unictype/test-ctype_alnum.c: Likewise.
13309         * tests/unictype/test-ctype_alpha.c: Likewise.
13310         * tests/unictype/test-ctype_graph.c: Likewise.
13311         * tests/unictype/test-ctype_lower.c: Likewise.
13312         * tests/unictype/test-ctype_print.c: Likewise.
13313         * tests/unictype/test-ctype_punct.c: Likewise.
13314         * tests/unictype/test-ctype_upper.c: Likewise.
13315         * tests/unictype/test-decdigit.h: Likewise.
13316         * tests/unictype/test-digit.h: Likewise.
13317         * tests/unictype/test-numeric.h: Likewise.
13318         * tests/unictype/test-pr_alphabetic.c: Likewise.
13319         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13320         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
13321         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
13322         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13323         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13324         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13325         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13326         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13327         * tests/unictype/test-pr_case_ignorable.c: Likewise.
13328         * tests/unictype/test-pr_cased.c: Likewise.
13329         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
13330         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
13331         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
13332         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
13333         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
13334         * tests/unictype/test-pr_combining.c: Likewise.
13335         * tests/unictype/test-pr_composite.c: Likewise.
13336         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13337         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13338         * tests/unictype/test-pr_deprecated.c: Likewise.
13339         * tests/unictype/test-pr_format_control.c: Likewise.
13340         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13341         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13342         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13343         * tests/unictype/test-pr_id_continue.c: Likewise.
13344         * tests/unictype/test-pr_id_start.c: Likewise.
13345         * tests/unictype/test-pr_ideographic.c: Likewise.
13346         * tests/unictype/test-pr_lowercase.c: Likewise.
13347         * tests/unictype/test-pr_math.c: Likewise.
13348         * tests/unictype/test-pr_numeric.c: Likewise.
13349         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13350         * tests/unictype/test-pr_other_id_continue.c: Likewise.
13351         * tests/unictype/test-pr_other_math.c: Likewise.
13352         * tests/unictype/test-pr_punctuation.c: Likewise.
13353         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13354         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13355         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13356         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13357         * tests/unictype/test-pr_uppercase.c: Likewise.
13358         * tests/unictype/test-pr_xid_continue.c: Likewise.
13359         * tests/unictype/test-pr_xid_start.c: Likewise.
13360         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13361         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13362         changes.
13363         * lib/unictype/categ_Cc.h: Likewise.
13364         * lib/unictype/categ_Cf.h: Likewise.
13365         * lib/unictype/categ_Co.h: Likewise.
13366         * lib/unictype/categ_Cs.h: Likewise.
13367         * lib/unictype/categ_Lt.h: Likewise.
13368         * lib/unictype/categ_Nl.h: Likewise.
13369         * lib/unictype/categ_Pc.h: Likewise.
13370         * lib/unictype/categ_Pd.h: Likewise.
13371         * lib/unictype/categ_Pe.h: Likewise.
13372         * lib/unictype/categ_Pf.h: Likewise.
13373         * lib/unictype/categ_Pi.h: Likewise.
13374         * lib/unictype/categ_Ps.h: Likewise.
13375         * lib/unictype/categ_Z.h: Likewise.
13376         * lib/unictype/categ_Zl.h: Likewise.
13377         * lib/unictype/categ_Zp.h: Likewise.
13378         * lib/unictype/categ_Zs.h: Likewise.
13379         * lib/unictype/ctype_blank.h: Likewise.
13380         * lib/unictype/ctype_cntrl.h: Likewise.
13381         * lib/unictype/ctype_digit.h: Likewise.
13382         * lib/unictype/ctype_space.h: Likewise.
13383         * lib/unictype/ctype_xdigit.h: Likewise.
13384         * lib/unictype/mirror.h: Likewise.
13385         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13386         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13387         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13388         * lib/unictype/pr_bidi_control.h: Likewise.
13389         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13390         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13391         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13392         * lib/unictype/pr_bidi_pdf.h: Likewise.
13393         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13394         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13395         * lib/unictype/pr_dash.h: Likewise.
13396         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13397         * lib/unictype/pr_diacritic.h: Likewise.
13398         * lib/unictype/pr_extender.h: Likewise.
13399         * lib/unictype/pr_hex_digit.h: Likewise.
13400         * lib/unictype/pr_hyphen.h: Likewise.
13401         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13402         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13403         * lib/unictype/pr_ignorable_control.h: Likewise.
13404         * lib/unictype/pr_iso_control.h: Likewise.
13405         * lib/unictype/pr_join_control.h: Likewise.
13406         * lib/unictype/pr_left_of_pair.h: Likewise.
13407         * lib/unictype/pr_line_separator.h: Likewise.
13408         * lib/unictype/pr_logical_order_exception.h: Likewise.
13409         * lib/unictype/pr_non_break.h: Likewise.
13410         * lib/unictype/pr_not_a_character.h: Likewise.
13411         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13412         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13413         * lib/unictype/pr_other_id_start.h: Likewise.
13414         * lib/unictype/pr_other_lowercase.h: Likewise.
13415         * lib/unictype/pr_other_uppercase.h: Likewise.
13416         * lib/unictype/pr_paired_punctuation.h: Likewise.
13417         * lib/unictype/pr_paragraph_separator.h: Likewise.
13418         * lib/unictype/pr_pattern_syntax.h: Likewise.
13419         * lib/unictype/pr_pattern_white_space.h: Likewise.
13420         * lib/unictype/pr_private_use.h: Likewise.
13421         * lib/unictype/pr_quotation_mark.h: Likewise.
13422         * lib/unictype/pr_radical.h: Likewise.
13423         * lib/unictype/pr_soft_dotted.h: Likewise.
13424         * lib/unictype/pr_space.h: Likewise.
13425         * lib/unictype/pr_titlecase.h: Likewise.
13426         * lib/unictype/pr_variation_selector.h: Likewise.
13427         * lib/unictype/pr_white_space.h: Likewise.
13428         * lib/unictype/pr_zero_width.h: Likewise.
13429         * lib/unictype/sy_c_ident.h: Likewise.
13430         * lib/unictype/sy_c_whitespace.h: Likewise.
13431         * lib/unictype/sy_java_whitespace.h: Likewise.
13432         * lib/uninorm/composition-table.gperf: Likewise.
13433         * lib/uninorm/decomposition-table1.h: Likewise.
13434         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
13435         LB8.
13436         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13437         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13438         * modules/unictype/*: Bump version number of expected libunistring
13439         version.
13440
13441 2011-01-09  Bruno Haible  <bruno@clisp.org>
13442
13443         Update to Unicode 5.2.0.
13444         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
13445         trailing whitespace removed.
13446
13447 2011-01-09  Bruno Haible  <bruno@clisp.org>
13448
13449         New Unicode character properties, from Unicode 5.2.0.
13450         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
13451         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
13452         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
13453         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
13454         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
13455         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
13456         uc_is_property_cased, uc_is_property_case_ignorable,
13457         uc_is_property_changes_when_lowercased,
13458         uc_is_property_changes_when_uppercased,
13459         uc_is_property_changes_when_titlecased,
13460         uc_is_property_changes_when_casefolded,
13461         uc_is_property_changes_when_casemapped): New declarations.
13462         * lib/unictype/pr_byname.gperf: Add the new properties.
13463         * modules/unictype/property-byname (Depends-on): Depend on the new
13464         properties modules.
13465         * modules/unictype/property-all (Depends-on): Likewise.
13466         * MODULES.html.sh (Unicode string functions): Add
13467         unictype/property-case-ignorable, unictype/property-cased,
13468         unictype/property-changes-when-casefolded,
13469         unictype/property-changes-when-casemapped,
13470         unictype/property-changes-when-lowercased,
13471         unictype/property-changes-when-titlecased,
13472         unictype/property-changes-when-uppercased.
13473
13474         New module 'unictype/property-changes-when-casemapped'.
13475         * modules/unictype/property-changes-when-casemapped: New file.
13476         * lib/unictype/pr_changes_when_casemapped.c: New file.
13477         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
13478         generated by gen-uni-tables.
13479         * modules/unictype/property-changes-when-casemapped-tests: New file.
13480         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
13481         automatically generated by gen-uni-tables.
13482
13483         New module 'unictype/property-changes-when-casefolded'.
13484         * modules/unictype/property-changes-when-casefolded: New file.
13485         * lib/unictype/pr_changes_when_casefolded.c: New file.
13486         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
13487         generated by gen-uni-tables.
13488         * modules/unictype/property-changes-when-casefolded-tests: New file.
13489         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
13490         automatically generated by gen-uni-tables.
13491
13492         New module 'unictype/property-changes-when-titlecased'.
13493         * modules/unictype/property-changes-when-titlecased: New file.
13494         * lib/unictype/pr_changes_when_titlecased.c: New file.
13495         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
13496         generated by gen-uni-tables.
13497         * modules/unictype/property-changes-when-titlecased-tests: New file.
13498         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
13499         automatically generated by gen-uni-tables.
13500
13501         New module 'unictype/property-changes-when-uppercased'.
13502         * modules/unictype/property-changes-when-uppercased: New file.
13503         * lib/unictype/pr_changes_when_uppercased.c: New file.
13504         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
13505         generated by gen-uni-tables.
13506         * modules/unictype/property-changes-when-uppercased-tests: New file.
13507         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
13508         automatically generated by gen-uni-tables.
13509
13510         New module 'unictype/property-changes-when-lowercased'.
13511         * modules/unictype/property-changes-when-lowercased: New file.
13512         * lib/unictype/pr_changes_when_lowercased.c: New file.
13513         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
13514         generated by gen-uni-tables.
13515         * modules/unictype/property-changes-when-lowercased-tests: New file.
13516         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
13517         automatically generated by gen-uni-tables.
13518
13519         New module 'unictype/property-case-ignorable'.
13520         * modules/unictype/property-case-ignorable: New file.
13521         * lib/unictype/pr_case_ignorable.c: New file.
13522         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
13523         by gen-uni-tables.
13524         * modules/unictype/property-case-ignorable-tests: New file.
13525         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
13526         generated by gen-uni-tables.
13527
13528         New module 'unictype/property-cased'.
13529         * modules/unictype/property-cased: New file.
13530         * lib/unictype/pr_cased.c: New file.
13531         * lib/unictype/pr_cased.h: New file, automatically generated by
13532         gen-uni-tables.
13533         * modules/unictype/property-cased-tests: New file.
13534         * tests/unictype/test-pr_cased.c: New file, automatically generated by
13535         gen-uni-tables.
13536
13537 2011-01-09  Bruno Haible  <bruno@clisp.org>
13538
13539         Update to Unicode 5.2.0.
13540         * lib/gen-uni-tables.c (output_predicate, output_category,
13541         output_combclass, output_bidi_category, output_decimal_digit_test,
13542         output_decimal_digit, output_digit_test, output_digit,
13543         output_numeric_test, output_numeric, output_mirror, output_scripts,
13544         output_scripts_byname, output_blocks, output_ident_category): Fix
13545         comment header.
13546         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
13547         get_wbp.
13548         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
13549         items.
13550         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
13551         Changes_When_Lowercased, Changes_When_Uppercased,
13552         Changes_When_Titlecased, Changes_When_Casefolded,
13553         Changes_When_Casemapped.
13554         (is_property_alphabetic, is_property_default_ignorable_code_point):
13555         Update for Unicode 5.2.0.
13556         (is_property_cased, is_property_case_ignorable,
13557         is_property_changes_when_lowercased,
13558         is_property_changes_when_uppercased,
13559         is_property_changes_when_titlecased,
13560         is_property_changes_when_casefolded,
13561         is_property_changes_when_casemapped): New functions.
13562         (output_properties): Output also the properties cased, case_ignorable,
13563         changes_when_lowercased, changes_when_uppercased,
13564         changes_when_titlecased, changes_when_casefolded,
13565         changes_when_casemapped.
13566         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
13567         Unicode TR#11 revision 17 -> 19.
13568         (LBP_CP): New enumeration value.
13569         (LBP_*): Adjust values accordingly.
13570         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13571         TR#14 revision 22 -> 24.
13572         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
13573         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
13574         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13575         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
13576         is_WBP_MIDLETTER.
13577         (output_composition_tables): Allow for 24 bits instead of 16 bits in
13578         the code1 and code2 of each composition rule.
13579         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
13580         * lib/unicase/ignorable.h: Likewise.
13581         * lib/unicase/tocasefold.h: Likewise.
13582         * lib/unicase/tolower.h: Likewise.
13583         * lib/unicase/totitle.h: Likewise.
13584         * lib/unicase/toupper.h: Likewise.
13585         * lib/unictype/bidi_of.h: Likewise.
13586         * lib/unictype/blocks.h: Likewise.
13587         * lib/unictype/categ_C.h: Likewise.
13588         * lib/unictype/categ_Cf.h: Likewise.
13589         * lib/unictype/categ_Cn.h: Likewise.
13590         * lib/unictype/categ_L.h: Likewise.
13591         * lib/unictype/categ_Ll.h: Likewise.
13592         * lib/unictype/categ_Lm.h: Likewise.
13593         * lib/unictype/categ_Lo.h: Likewise.
13594         * lib/unictype/categ_Lu.h: Likewise.
13595         * lib/unictype/categ_M.h: Likewise.
13596         * lib/unictype/categ_Mc.h: Likewise.
13597         * lib/unictype/categ_Mn.h: Likewise.
13598         * lib/unictype/categ_N.h: Likewise.
13599         * lib/unictype/categ_Nd.h: Likewise.
13600         * lib/unictype/categ_Nl.h: Likewise.
13601         * lib/unictype/categ_No.h: Likewise.
13602         * lib/unictype/categ_P.h: Likewise.
13603         * lib/unictype/categ_Pd.h: Likewise.
13604         * lib/unictype/categ_Po.h: Likewise.
13605         * lib/unictype/categ_S.h: Likewise.
13606         * lib/unictype/categ_Sc.h: Likewise.
13607         * lib/unictype/categ_So.h: Likewise.
13608         * lib/unictype/categ_of.h: Likewise.
13609         * lib/unictype/combining.h: Likewise.
13610         * lib/unictype/ctype_alnum.h: Likewise.
13611         * lib/unictype/ctype_alpha.h: Likewise.
13612         * lib/unictype/ctype_graph.h: Likewise.
13613         * lib/unictype/ctype_lower.h: Likewise.
13614         * lib/unictype/ctype_print.h: Likewise.
13615         * lib/unictype/ctype_punct.h: Likewise.
13616         * lib/unictype/ctype_upper.h: Likewise.
13617         * lib/unictype/decdigit.h: Likewise.
13618         * lib/unictype/digit.h: Likewise.
13619         * lib/unictype/numeric.h: Likewise.
13620         * lib/unictype/pr_alphabetic.h: Likewise.
13621         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13622         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13623         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13624         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13625         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13626         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13627         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13628         * lib/unictype/pr_combining.h: Likewise.
13629         * lib/unictype/pr_composite.h: Likewise.
13630         * lib/unictype/pr_currency_symbol.h: Likewise.
13631         * lib/unictype/pr_dash.h: Likewise.
13632         * lib/unictype/pr_decimal_digit.h: Likewise.
13633         * lib/unictype/pr_deprecated.h: Likewise.
13634         * lib/unictype/pr_diacritic.h: Likewise.
13635         * lib/unictype/pr_extender.h: Likewise.
13636         * lib/unictype/pr_grapheme_base.h: Likewise.
13637         * lib/unictype/pr_grapheme_extend.h: Likewise.
13638         * lib/unictype/pr_grapheme_link.h: Likewise.
13639         * lib/unictype/pr_id_continue.h: Likewise.
13640         * lib/unictype/pr_id_start.h: Likewise.
13641         * lib/unictype/pr_ideographic.h: Likewise.
13642         * lib/unictype/pr_ignorable_control.h: Likewise.
13643         * lib/unictype/pr_logical_order_exception.h: Likewise.
13644         * lib/unictype/pr_lowercase.h: Likewise.
13645         * lib/unictype/pr_numeric.h: Likewise.
13646         * lib/unictype/pr_other_alphabetic.h: Likewise.
13647         * lib/unictype/pr_punctuation.h: Likewise.
13648         * lib/unictype/pr_sentence_terminal.h: Likewise.
13649         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13650         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13651         * lib/unictype/pr_unified_ideograph.h: Likewise.
13652         * lib/unictype/pr_uppercase.h: Likewise.
13653         * lib/unictype/pr_xid_continue.h: Likewise.
13654         * lib/unictype/pr_xid_start.h: Likewise.
13655         * lib/unictype/pr_zero_width.h: Likewise.
13656         * lib/unictype/scripts.h: Likewise.
13657         * lib/unictype/scripts_byname.gperf: Likewise.
13658         * lib/unictype/sy_java_ident.h: Likewise.
13659         * lib/unigbrk/gbrkprop.h: Likewise.
13660         * lib/unilbrk/lbrkprop1.h: Likewise.
13661         * lib/unilbrk/lbrkprop2.h: Likewise.
13662         * lib/unilbrk/lbrktables.h: Likewise.
13663         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
13664         LBP_CP. Implement rule LB30.
13665         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
13666         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
13667         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
13668         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
13669         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
13670         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
13671         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
13672         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
13673         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
13674         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
13675         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
13676         bits instead of 16 bits in the code1 and code2 of each composition
13677         rule.
13678         (uc_composition): Update for Unicode 5.2.0.
13679         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
13680         * lib/uninorm/decomposition-table2.h: Likewise.
13681         * lib/uniwbrk/wbrkprop.h: Likewise.
13682         * tests/unicase/test-cased.c: Likewise.
13683         * tests/unicase/test-ignorable.c: Likewise.
13684         * tests/unicase/test-uc_tolower.c: Likewise.
13685         * tests/unicase/test-uc_totitle.c: Likewise.
13686         * tests/unicase/test-uc_toupper.c: Likewise.
13687         * tests/unictype/test-categ_C.c: Likewise.
13688         * tests/unictype/test-categ_Cf.c: Likewise.
13689         * tests/unictype/test-categ_Cn.c: Likewise.
13690         * tests/unictype/test-categ_L.c: Likewise.
13691         * tests/unictype/test-categ_Ll.c: Likewise.
13692         * tests/unictype/test-categ_Lm.c: Likewise.
13693         * tests/unictype/test-categ_Lo.c: Likewise.
13694         * tests/unictype/test-categ_Lu.c: Likewise.
13695         * tests/unictype/test-categ_M.c: Likewise.
13696         * tests/unictype/test-categ_Mc.c: Likewise.
13697         * tests/unictype/test-categ_Mn.c: Likewise.
13698         * tests/unictype/test-categ_N.c: Likewise.
13699         * tests/unictype/test-categ_Nd.c: Likewise.
13700         * tests/unictype/test-categ_Nl.c: Likewise.
13701         * tests/unictype/test-categ_No.c: Likewise.
13702         * tests/unictype/test-categ_P.c: Likewise.
13703         * tests/unictype/test-categ_Pd.c: Likewise.
13704         * tests/unictype/test-categ_Po.c: Likewise.
13705         * tests/unictype/test-categ_S.c: Likewise.
13706         * tests/unictype/test-categ_Sc.c: Likewise.
13707         * tests/unictype/test-categ_So.c: Likewise.
13708         * tests/unictype/test-ctype_alnum.c: Likewise.
13709         * tests/unictype/test-ctype_alpha.c: Likewise.
13710         * tests/unictype/test-ctype_graph.c: Likewise.
13711         * tests/unictype/test-ctype_lower.c: Likewise.
13712         * tests/unictype/test-ctype_print.c: Likewise.
13713         * tests/unictype/test-ctype_punct.c: Likewise.
13714         * tests/unictype/test-ctype_upper.c: Likewise.
13715         * tests/unictype/test-decdigit.h: Likewise.
13716         * tests/unictype/test-digit.h: Likewise.
13717         * tests/unictype/test-numeric.h: Likewise.
13718         * tests/unictype/test-pr_alphabetic.c: Likewise.
13719         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13720         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13721         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
13722         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13723         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13724         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13725         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13726         * tests/unictype/test-pr_combining.c: Likewise.
13727         * tests/unictype/test-pr_composite.c: Likewise.
13728         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13729         * tests/unictype/test-pr_dash.c: Likewise.
13730         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13731         * tests/unictype/test-pr_deprecated.c: Likewise.
13732         * tests/unictype/test-pr_diacritic.c: Likewise.
13733         * tests/unictype/test-pr_extender.c: Likewise.
13734         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13735         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13736         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13737         * tests/unictype/test-pr_id_continue.c: Likewise.
13738         * tests/unictype/test-pr_id_start.c: Likewise.
13739         * tests/unictype/test-pr_ideographic.c: Likewise.
13740         * tests/unictype/test-pr_ignorable_control.c: Likewise.
13741         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
13742         * tests/unictype/test-pr_lowercase.c: Likewise.
13743         * tests/unictype/test-pr_numeric.c: Likewise.
13744         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13745         * tests/unictype/test-pr_punctuation.c: Likewise.
13746         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13747         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13748         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13749         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13750         * tests/unictype/test-pr_uppercase.c: Likewise.
13751         * tests/unictype/test-pr_xid_continue.c: Likewise.
13752         * tests/unictype/test-pr_xid_start.c: Likewise.
13753         * tests/unictype/test-pr_zero_width.c: Likewise.
13754         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13755         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
13756         changed behaviour: line breaking is now disallowed between a letter
13757         or '=' and '('.
13758         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13759         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13760         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13761         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
13762         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13763         lib/uniwidth/width.c.
13764         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
13765         without comments, but with the original copyright notice.
13766         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13767         changes.
13768         * lib/unictype/categ_Cc.h: Likewise.
13769         * lib/unictype/categ_Co.h: Likewise.
13770         * lib/unictype/categ_Cs.h: Likewise.
13771         * lib/unictype/categ_Lt.h: Likewise.
13772         * lib/unictype/categ_Me.h: Likewise.
13773         * lib/unictype/categ_Pc.h: Likewise.
13774         * lib/unictype/categ_Pe.h: Likewise.
13775         * lib/unictype/categ_Pf.h: Likewise.
13776         * lib/unictype/categ_Pi.h: Likewise.
13777         * lib/unictype/categ_Ps.h: Likewise.
13778         * lib/unictype/categ_Sk.h: Likewise.
13779         * lib/unictype/categ_Sm.h: Likewise.
13780         * lib/unictype/categ_Z.h: Likewise.
13781         * lib/unictype/categ_Zl.h: Likewise.
13782         * lib/unictype/categ_Zp.h: Likewise.
13783         * lib/unictype/categ_Zs.h: Likewise.
13784         * lib/unictype/ctype_blank.h: Likewise.
13785         * lib/unictype/ctype_cntrl.h: Likewise.
13786         * lib/unictype/ctype_digit.h: Likewise.
13787         * lib/unictype/ctype_space.h: Likewise.
13788         * lib/unictype/ctype_xdigit.h: Likewise.
13789         * lib/unictype/mirror.h: Likewise.
13790         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13791         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13792         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13793         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13794         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13795         * lib/unictype/pr_bidi_control.h: Likewise.
13796         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13797         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13798         * lib/unictype/pr_bidi_pdf.h: Likewise.
13799         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13800         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13801         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13802         * lib/unictype/pr_format_control.h: Likewise.
13803         * lib/unictype/pr_hex_digit.h: Likewise.
13804         * lib/unictype/pr_hyphen.h: Likewise.
13805         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13806         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13807         * lib/unictype/pr_iso_control.h: Likewise.
13808         * lib/unictype/pr_join_control.h: Likewise.
13809         * lib/unictype/pr_left_of_pair.h: Likewise.
13810         * lib/unictype/pr_line_separator.h: Likewise.
13811         * lib/unictype/pr_math.h: Likewise.
13812         * lib/unictype/pr_non_break.h: Likewise.
13813         * lib/unictype/pr_not_a_character.h: Likewise.
13814         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13815         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13816         * lib/unictype/pr_other_id_continue.h: Likewise.
13817         * lib/unictype/pr_other_id_start.h: Likewise.
13818         * lib/unictype/pr_other_lowercase.h: Likewise.
13819         * lib/unictype/pr_other_math.h: Likewise.
13820         * lib/unictype/pr_other_uppercase.h: Likewise.
13821         * lib/unictype/pr_paired_punctuation.h: Likewise.
13822         * lib/unictype/pr_paragraph_separator.h: Likewise.
13823         * lib/unictype/pr_pattern_syntax.h: Likewise.
13824         * lib/unictype/pr_pattern_white_space.h: Likewise.
13825         * lib/unictype/pr_private_use.h: Likewise.
13826         * lib/unictype/pr_quotation_mark.h: Likewise.
13827         * lib/unictype/pr_radical.h: Likewise.
13828         * lib/unictype/pr_soft_dotted.h: Likewise.
13829         * lib/unictype/pr_space.h: Likewise.
13830         * lib/unictype/pr_titlecase.h: Likewise.
13831         * lib/unictype/pr_variation_selector.h: Likewise.
13832         * lib/unictype/pr_white_space.h: Likewise.
13833         * lib/unictype/sy_c_ident.h: Likewise.
13834         * lib/unictype/sy_c_whitespace.h: Likewise.
13835         * lib/unictype/sy_java_whitespace.h: Likewise.
13836         * modules/uni*/*: Bump version number of expected libunistring version.
13837         Reported by Simon Josefsson.
13838
13839 2011-01-09  Karl Heuer  <kwzh@gnu.org>
13840
13841         useless-if-before-free: fix typo in --help and make the internal,
13842         automatic version date update process work once again.
13843         --help output contained a NUL character instead of the
13844         backslash-zero that was intended.  Also, the "must lie within
13845         the first 8 lines" line is on line 9, and hence not getting
13846         automatically updated.
13847         * build-aux/useless-if-before-free: Fix the former by adding a
13848         backslash, and the latter by condensing the three lines of what-it-does
13849         to a single line, leaving one line of slack for the future.
13850
13851 2011-01-09  Bruno Haible  <bruno@clisp.org>
13852
13853         uniwidth/width: Fix width of U+1D173..U+1D17A.
13854         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
13855         symbolic_width, output_width_property_test): New functions.
13856         (main): Invoke output_nonspacing_property, output_width_property_test.
13857         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
13858         U+1D173..U+1D17A.
13859         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
13860         1.
13861         * modules/uniwidth/*: Bump version number of expected libunistring
13862         version.
13863         * modules/unilbrk/*: Likewise.
13864
13865 2011-01-08  Bruno Haible  <bruno@clisp.org>
13866
13867         uninorm tests: Preserve copyright of Unicode data file.
13868         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
13869         Mention modifications.
13870
13871 2011-01-08  Bruno Haible  <bruno@clisp.org>
13872
13873         gen-uni-tables: Prepare for Unicode 5.2.0.
13874         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
13875         (debug_output_lbp, output_lbp): Update.
13876
13877 2011-01-08  Bruno Haible  <bruno@clisp.org>
13878
13879         unilbrk: Clarify gen-uni-tables.c code.
13880         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
13881         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
13882         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
13883
13884 2011-01-07  Bruno Haible  <bruno@clisp.org>
13885
13886         strtod: Restore errno when successfully parsing Infinity or NaN.
13887         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13888         restore the original errno.
13889
13890 2011-01-07  Bruno Haible  <bruno@clisp.org>
13891
13892         remove test: Avoid failure on HP-UX 11.
13893         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13894
13895 2011-01-07  Bruno Haible  <bruno@clisp.org>
13896
13897         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13898         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13899         error code.
13900
13901 2011-01-07  Pádraig Brady <P@draigBrady.com>
13902
13903         ignore-value: fixup comments, and add Eric Blake
13904         as an author since he rewrote the macros.
13905         * lib/ignore-value.h (ignore_value):  State that
13906         we now support aggregates.  Also specify exactly
13907         when the GCC warn_unused_result feature was added.
13908
13909 2011-01-06  Eric Blake  <eblake@redhat.com>
13910
13911         ignore-value: support aggregate types
13912         * lib/ignore-value.h (ignore_value): Provide separate gcc
13913         definition.
13914         * modules/ignore-value-tests: New test module.
13915         * tests/test-ignore-value.c: New test.
13916
13917         maint.mk: improve sc_prohibit_strcmp regex
13918         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13919         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13920         definition of STRNEQ.
13921
13922         signal: work around Haiku issue with SIGBUS
13923         * lib/siglist.h: Add comment.
13924         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13925         strsignal's favoring of SIGSEGV.
13926         * tests/test-signal.c (main): Avoid test failure.
13927         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13928         Reported by Scott McCreary.
13929
13930         maint.mk: add pre-release check to ensure submodule commits are public
13931         * top/maint.mk (public-submodule-commit): New rule.
13932         (submodule-checks): New variable.
13933         (alpha beta stable): Depend on the variable.
13934
13935 2011-01-05  Pádraig Brady <P@draigBrady.com>
13936         and Jim Meyering  <meyering@redhat.com>
13937
13938         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13939         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13940         (ATTRIBUTE_DEPRECATED): Define.
13941         (_ignore_case): New function.
13942         (ignore_value): New macro, to replace the old function.
13943         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13944         * modules/ignore-value (Depends-on): Add stdint.
13945
13946 2011-01-04  Eric Blake  <eblake@redhat.com>
13947
13948         doc: regenerate INSTALL
13949         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13950         @firstparagraphindent support, now that autoconf dropped it.
13951         (INSTALL_PRELUDE): Reinstate old macro.
13952         * doc/install.texi: Resync from autoconf.
13953         * doc/INSTALL: Reflect recent autoconf update.
13954         * doc/INSTALL.ISO: Likewise.
13955         * doc/INSTALL.UTF-8: Likewise.
13956         Reported by Karl Berry.
13957
13958 2011-01-04  Bruce Korb  <address@hidden>
13959
13960         git-version-gen: avoid a sub-shell
13961         * build-aux/git-version-gen: Redirect stderr in `...` via
13962         "exec 2>...", rather than via an added sub-shell.
13963
13964 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13965
13966         git-version-gen: use (...) rather than sh -c '...'
13967         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13968         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13969
13970 2011-01-03  Jim Meyering  <meyering@redhat.com>
13971
13972         git-version-gen: convert leading TABs to spaces
13973         * build-aux/git-version-gen: Expand leading TABs.
13974
13975         git-version-gen: handle failed "git rev-list"
13976         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13977         from git and proceeding as if it had succeeded but printed no SHA1
13978         checksums, suppress the diagnostic and handle the failure.
13979         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13980
13981         git-version-gen: include command name in one more diagnostic
13982         * build-aux/git-version-gen: When the required .tarball-version file
13983         was missing or unreadable, you might see the diagnostic from "cat",
13984         but no trace of the name of the invoking script.  Now, you still see
13985         the diagnostic from cat, but also get one from "git-version-gen: ".
13986         Inspired by a patch from Bruce Korb.
13987
13988         update-copyright: adjust test to match changed code
13989         * tests/test-update-copyright.sh: Change test's expected output
13990         to match new actual output.
13991
13992 2011-01-02  Bruno Haible  <bruno@clisp.org>
13993
13994         getlogin_r: Avoid test failure on HP-UX 11.
13995         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13996         ERANGE when the second argument is zero.
13997         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13998         portability problem.
13999
14000 2011-01-02  Bruce Korb  <bkorb@gnu.org>
14001
14002         * build-aux/update-copyright: doc Simon's changes
14003
14004 2011-01-02  Simon Josefsson  <simon@josefsson.org>
14005
14006         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
14007         environment variable.
14008
14009 2011-01-02  Bruno Haible  <bruno@clisp.org>
14010
14011         unigbrk: Avoid gcc warnings.
14012         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
14013         unused variable.
14014         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
14015         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
14016         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
14017         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
14018         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
14019         Change type of first argument to 'const char *'.
14020         (main): Remove unused variable.
14021         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
14022         type of first argument to 'const char *'.
14023         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
14024         Likewise.
14025         (main): Change type of variable 's'.
14026         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
14027         to 'int'.
14028
14029 2011-01-02  Bruno Haible  <bruno@clisp.org>
14030
14031         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
14032         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
14033         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
14034         bug.
14035         * lib/pwrite.c: Undo 2010-12-31 patch.
14036         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
14037
14038 2011-01-02  Bruno Haible  <bruno@clisp.org>
14039
14040         pread: Fix test whether it works.
14041         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
14042
14043 2011-01-02  Bruno Haible  <bruno@clisp.org>
14044
14045         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
14046         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
14047         ends in "6". Don't require a specific month name. Try also the locale
14048         names found on HP-UX 11 and Solaris 7.
14049
14050 2011-01-02  Bruno Haible  <bruno@clisp.org>
14051
14052         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
14053         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
14054         C linkage.
14055         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
14056
14057 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14058
14059         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
14060         for consistency, since the "cluster" term is not used elsewhere.
14061         * lib/unigbrk.in.h: Update name.
14062         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
14063         * lib/unigbrk/u16-grapheme-next.c: Update name.
14064         * lib/unigbrk/u16-grapheme-prev.c: Update name.
14065         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
14066         * lib/unigbrk/u32-grapheme-next.c: Update name.
14067         * lib/unigbrk/u32-grapheme-prev.c: Update name.
14068         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
14069         * lib/unigbrk/u8-grapheme-next.c: Update name.
14070         * lib/unigbrk/u8-grapheme-prev.c: Update name.
14071         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
14072         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
14073         Suggested by Bruno Haible.
14074
14075 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14076
14077         Remove module 'u8-grapheme-len' as too redundant with
14078         'u8-grapheme-next'.
14079         * modules/unigbrk/u8-grapheme-len: Delete file.
14080         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
14081         * lib/unigbrk.in.h: Remove prototype for deleted function.
14082         * lib/unigbrk/u8-grapheme-len.c: Delete file.
14083         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
14084
14085         Remove module 'u16-grapheme-len' as too redundant with
14086         'u16-grapheme-next'.
14087         * modules/unigbrk/u16-grapheme-len: Delete file.
14088         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
14089         * lib/unigbrk.in.h: Remove prototype for deleted function.
14090         * lib/unigbrk/u16-grapheme-len.c: Delete file.
14091         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
14092
14093         Remove module 'u32-grapheme-len' as too redundant with
14094         'u32-grapheme-next'.
14095         * modules/unigbrk/u32-grapheme-len: Delete file.
14096         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
14097         * lib/unigbrk.in.h: Remove prototype for deleted function.
14098         * lib/unigbrk/u32-grapheme-len.c: Delete file.
14099         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
14100
14101         Suggested by Bruno Haible.
14102
14103 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14104
14105         * unigbrk.in.h: Fix typo: "ben" => "been".
14106         Reported by Bruno Haible.
14107
14108 2011-01-01  Jim Meyering  <meyering@redhat.com>
14109
14110         maint: update almost all copyright ranges to include 2011
14111         Run the new "make update-copyright" rule.
14112
14113 2011-01-01  Jim Meyering  <meyering@redhat.com>
14114
14115         maint: update-copyright: exempt doc/INSTALL*
14116         * Makefile (update-copyright): Also exclude doc/INSTALL*,
14117         since they are generated.  Suggested by Bruno Haible.
14118
14119 2011-01-01  Jim Meyering  <meyering@redhat.com>
14120
14121         maint: refine the update-copyright rule
14122         * Makefile (update-copyright): Also exclude any file that includes
14123         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
14124         code that merely generates the comment.
14125
14126 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14127
14128         New module 'u8-grapheme-len'.
14129         * modules/unigbrk/u8-grapheme-len: New file.
14130         * modules/unigbrk/u8-grapheme-len-tests: New file.
14131         * lib/unigbrk.in.h: Add prototype for new function.
14132         * lib/unigbrk/u8-grapheme-len.c: New file.
14133         * tests/unigbrk/test-u8-grapheme-len.c: New file.
14134
14135         New module 'u16-grapheme-len'.
14136         * modules/unigbrk/u16-grapheme-len: New file.
14137         * modules/unigbrk/u16-grapheme-len-tests: New file.
14138         * lib/unigbrk.in.h: Add prototype for new function.
14139         * lib/unigbrk/u16-grapheme-len.c: New file.
14140         * tests/unigbrk/test-u16-grapheme-len.c: New file.
14141
14142         New module 'u32-grapheme-len'.
14143         * modules/unigbrk/u32-grapheme-len: New file.
14144         * modules/unigbrk/u32-grapheme-len-tests: New file.
14145         * lib/unigbrk.in.h: Add prototype for new function.
14146         * lib/unigbrk/u32-grapheme-len.c: New file.
14147         * tests/unigbrk/test-u32-grapheme-len.c: New file.
14148
14149         New module 'u8-grapheme-next'.
14150         * modules/unigbrk/u8-grapheme-next: New file.
14151         * modules/unigbrk/u8-grapheme-next-tests: New file.
14152         * lib/unigbrk.in.h: Add prototype for new function.
14153         * lib/unigbrk/u8-grapheme-next.c: New file.
14154         * tests/unigbrk/test-u8-grapheme-next.c: New file.
14155
14156         New module 'u16-grapheme-next'.
14157         * modules/unigbrk/u16-grapheme-next: New file.
14158         * modules/unigbrk/u16-grapheme-next-tests: New file.
14159         * lib/unigbrk.in.h: Add prototype for new function.
14160         * lib/unigbrk/u16-grapheme-next.c: New file.
14161         * tests/unigbrk/test-u16-grapheme-next.c: New file.
14162
14163         New module 'u32-grapheme-next'.
14164         * modules/unigbrk/u32-grapheme-next: New file.
14165         * modules/unigbrk/u32-grapheme-next-tests: New file.
14166         * lib/unigbrk.in.h: Add prototype for new function.
14167         * lib/unigbrk/u32-grapheme-next.c: New file.
14168         * tests/unigbrk/test-u32-grapheme-next.c: New file.
14169
14170         New module 'u8-grapheme-prev'.
14171         * modules/unigbrk/u8-grapheme-prev: New file.
14172         * modules/unigbrk/u8-grapheme-prev-tests: New file.
14173         * lib/unigbrk.in.h: Add prototype for new function.
14174         * lib/unigbrk/u8-grapheme-prev.c: New file.
14175         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
14176
14177         New module 'u16-grapheme-prev'.
14178         * modules/unigbrk/u16-grapheme-prev: New file.
14179         * modules/unigbrk/u16-grapheme-prev-tests: New file.
14180         * lib/unigbrk.in.h: Add prototype for new function.
14181         * lib/unigbrk/u16-grapheme-prev.c: New file.
14182         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
14183
14184         New module 'u32-grapheme-prev'.
14185         * modules/unigbrk/u32-grapheme-prev: New file.
14186         * modules/unigbrk/u32-grapheme-prev-tests: New file.
14187         * lib/unigbrk.in.h: Add prototype for new function.
14188         * lib/unigbrk/u32-grapheme-prev.c: New file.
14189         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
14190
14191         New module 'u8-grapheme-breaks'.
14192         * modules/unigbrk/u8-grapheme-breaks: New file.
14193         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
14194         * lib/unigbrk.in.h: Add prototype for new function.
14195         * lib/unigbrk/u8-grapheme-breaks.c: New file.
14196         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
14197
14198         New module 'u16-grapheme-breaks'.
14199         * modules/unigbrk/u16-grapheme-breaks: New file.
14200         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
14201         * lib/unigbrk.in.h: Add prototype for new function.
14202         * lib/unigbrk/u16-grapheme-breaks.c: New file.
14203         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
14204
14205         New module 'u32-grapheme-breaks'.
14206         * modules/unigbrk/u32-grapheme-breaks: New file.
14207         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
14208         * lib/unigbrk.in.h: Add prototype for new function.
14209         * lib/unigbrk/u32-grapheme-breaks.c: New file.
14210         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
14211
14212         New module 'ulc-grapheme-breaks'.
14213         * modules/unigbrk/ulc-grapheme-breaks: New file.
14214         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
14215         * m4/locale-ar.m4: New file.
14216         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
14217         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
14218         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
14219
14220 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14221
14222         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
14223         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
14224         modified how this file was generated before I initially submitted
14225         the module, but failed to regenerate it.  This meant that several
14226         of the level2 entries were wrong.
14227         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
14228         Remove the division-by-2 that is folded into the table now that
14229         gbrkprop.h has been regenerated properly.  Now -1 entries are
14230         handled correctly.
14231
14232         New module 'unigbrk/uc-gbrk-prop-tests'.
14233         * modules/unigbrk/uc-gbrk-prop-tests: New file.
14234         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
14235         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
14236         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
14237
14238 2011-01-01  Bruno Haible  <bruno@clisp.org>
14239
14240         Avoid use of hexadecimal escapes.
14241         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
14242         instead of hexadecimal escapes.
14243
14244 2011-01-01  Jim Meyering  <meyering@redhat.com>
14245
14246         maint: new rule to update copyright year ranges
14247         * Makefile (update-copyright): New rule.
14248
14249         maint: indent with TABs in Makefile
14250         * Makefile: Expand leading sequences of spaces to TABs
14251
14252         version-etc: update the copyright year it reports
14253         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
14254
14255 2010-12-31  Bruno Haible  <bruno@clisp.org>
14256
14257         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
14258         * lib/isfinite.c (zerof, zerod, zerol): New variables.
14259         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
14260         zero.
14261
14262 2010-12-31  Bruno Haible  <bruno@clisp.org>
14263
14264         pwrite: Work around HP-UX 11.11 bug.
14265         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
14266         works and set REPLACE_PWRITE if not.
14267         * lib/pwrite.c (pwrite): Add an implementation that uses the system
14268         function.
14269         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
14270
14271 2010-12-31  Bruno Haible  <bruno@clisp.org>
14272
14273         pread: Work around HP-UX 11 bugs.
14274         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
14275         and set REPLACE_PREAD if not.
14276         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
14277
14278 2010-12-31  Eric Blake  <eblake@redhat.com>
14279
14280         nl_langinfo: fix YESEXPR on Irix 6.5
14281         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
14282         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
14283         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
14284         it.
14285
14286 2010-12-31  Bruno Haible  <bruno@clisp.org>
14287
14288         iconv: Document HP-UX 11 bug.
14289         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
14290
14291 2010-12-31  Bruno Haible  <bruno@clisp.org>
14292
14293         ldexpl: Fix link error on HP-UX 11.
14294         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
14295         LDEXPL_LIBM, using $ISNANL_LIBM.
14296
14297 2010-12-31  Eric Blake  <eblake@redhat.com>
14298
14299         ftello: avoid compilation failure with SunStudio c89
14300         * lib/ftello.c (ftello): Use lseek, not llseek.
14301
14302         tests: avoid failing coreutils tests on cygwin
14303         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
14304         (create_exe_shims_): Return 0 when skipping.
14305
14306 2010-12-31  Bruno Haible  <bruno@clisp.org>
14307
14308         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
14309         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
14310
14311 2010-12-31  Bruno Haible  <bruno@clisp.org>
14312
14313         waitpid: Fix link error in C++ mode.
14314         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
14315
14316 2010-12-31  Bruno Haible  <bruno@clisp.org>
14317
14318         isnan: Use GCC built-ins when possible.
14319         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
14320         __builtin_isnan.
14321         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
14322         (isnan): Define using GCC built-ins for GCC >= 4.0.
14323
14324 2010-12-31  Bruno Haible  <bruno@clisp.org>
14325
14326         isnand: Fix mistake.
14327         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
14328         __builtin_isnand.
14329
14330 2010-12-31  Bruno Haible  <bruno@clisp.org>
14331
14332         open: Avoid C++ error on HP-UX 11.
14333         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
14334
14335 2010-12-31  Bruno Haible  <bruno@clisp.org>
14336
14337         time_r: Add missing declarations on HP-UX 11.
14338         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
14339         instead of HAVE_LOCALTIME_R.
14340         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
14341         HAVE_LOCALTIME_R always.
14342         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
14343         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
14344         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
14345         HAVE_LOCALTIME_R.
14346         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
14347         * doc/posix-functions/localtime_r.texi: Likewise.
14348
14349 2010-12-29  Eric Blake  <eblake@redhat.com>
14350
14351         mountlist: tweak previous commit
14352         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
14353         Reported by Paul Eggert.
14354
14355         mountlist: fix local drive detection on cygwin
14356         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
14357         that works for cygwin.
14358
14359 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14360
14361         ftoastr, snprintf: ftoastr + snprintf module
14362         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
14363         since the snprintf module now should be good enough here.
14364         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
14365         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
14366         and gl_MODULE_INDICATOR([snprintf]), but the former enables
14367         GNULIB_SNPRINTF only for the test directory, and the latter
14368         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
14369         seems to suffice by itself.
14370
14371 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14372
14373         alloca: one step towards thread-safety
14374         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
14375         need for a static variable.  All callers changed.  This does not
14376         make the alloca replacement thread-safe, but it's one step.
14377
14378         tests: minor indenting change
14379         * tests/init.sh: Sync from coreutils housekeeping patch
14380         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
14381         to keep lines within 80 columns.
14382
14383 2010-12-28  Jim Meyering  <meyering@redhat.com>
14384
14385         regex: don't infloop on persistent failing calloc
14386         * lib/regexec.c (build_trtable): Return failure indication upon
14387         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
14388         In glibc, this was fixed for version 2.13:
14389         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
14390
14391 2010-12-28  Bruno Haible  <bruno@clisp.org>
14392             Paul Eggert <eggert@cs.ucla.edu>
14393
14394         linkat: Make implementation robust against system behaviour variations.
14395         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
14396         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
14397         way, and to -2 if it needs a generic runtime test.
14398         * lib/linkat.c (solaris_optimized_link_immediate,
14399         solaris_optimized_link_follow): New functions.
14400         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
14401         (check_same_link): Use it.
14402
14403 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
14404
14405         New module 'unigbrk/base'.
14406         * modules/unigbrk/base: New file.
14407         * lib/unigbrk.in.h: New file.
14408
14409         New module 'unigbrk/uc-gbrk-prop'.
14410         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
14411         * modules/unigbrk/uc-gbrk-prop: New file.
14412         * lib/unigbrk/gbrkprop.h: New file.
14413         * lib/unigbrk/uc-gbrk-prop.c: New file.
14414
14415         New module 'unigbrk/uc-is-grapheme-break'.
14416         * modules/unigbrk/uc-is-grapheme-break: New file.
14417         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
14418         * lib/unigbrk/uc-is-grapheme-break.c: New file.
14419         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
14420         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
14421         * tests/unigbrk/GraphemeBreakTest.txt: New file.
14422
14423         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
14424
14425 2010-12-27  Bruno Haible  <bruno@clisp.org>
14426
14427         linkat test: Avoid failure on Solaris 11 2010-11.
14428         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
14429
14430 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14431
14432         utimens: work around glibc rounding bug on more platforms
14433         * lib/utimens.c (fdutimens): Work around rounding bug even if
14434         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
14435         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
14436
14437 2010-12-27  Bruno Haible  <bruno@clisp.org>
14438
14439         select tests: Improve comments.
14440         * tests/test-select.c (do_select): Add comments.
14441
14442 2010-12-27  Bruno Haible  <bruno@clisp.org>
14443
14444         select tests: Safer way of handling timeout.
14445         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
14446         at every invocation.
14447
14448 2010-12-27  Bruno Haible  <bruno@clisp.org>
14449
14450         select tests: Use 'bool' where appropriate.
14451         * tests/test-select.c (connect_to_socket): Change argument type to
14452         'bool'.
14453
14454 2010-12-27  Bruno Haible  <bruno@clisp.org>
14455
14456         select tests: Use existing modules.
14457         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
14458         (configure.ac): Don't test for unistd.h.
14459         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
14460         declared in <unistd.h>.
14461
14462 2010-12-27  Bruno Haible  <bruno@clisp.org>
14463
14464         mbrtowc: Work around a Solaris 7 bug.
14465         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
14466         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
14467         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
14468         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
14469         MBRTOWC_NULL_ARG1_BUG.
14470         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
14471         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
14472         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
14473         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
14474
14475 2010-12-27  Jim Meyering  <meyering@redhat.com>
14476
14477         read-file.c: tweak syntax
14478         * lib/read-file.c (fread_file): Remove space after "*" in function
14479         definitions.
14480
14481 2010-12-27  Bruno Haible  <bruno@clisp.org>
14482
14483         times test: Avoid gcc warnings on OSF/1.
14484         * tests/test-times.c (main): Cast printf arguments from clock_t to
14485         'long int'.
14486
14487 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14488
14489         utimens: work around glibc rounding bug on older Linux kernels
14490         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
14491         on Linux with a glibc whose utimes might not work, then work
14492         around a longstanding glibc bug involving rounding rather than
14493         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
14494         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14495
14496 2010-12-26  Bruno Haible  <bruno@clisp.org>
14497
14498         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
14499         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
14500         _GL_CXXALIAS_SYS.
14501         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14502
14503 2010-12-26  Bruno Haible  <bruno@clisp.org>
14504
14505         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
14506         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
14507         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14508         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
14509         looking for the declaration.
14510         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
14511         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
14512         problem.
14513         * doc/posix-functions/inet_pton.texi: Likewise.
14514
14515 2010-12-26  Bruno Haible  <bruno@clisp.org>
14516
14517         arpa_inet: Use the common idioms with C++ support.
14518         * lib/arpa_inet.in.h: Include c++defs.h.
14519         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
14520         support.
14521         * modules/arpa_inet (Depends-on): Add c++defs.
14522         (Makefile.am): Substitute the contents of c++defs.h.
14523         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
14524         * modules/arpa_inet-c++-tests: New file.
14525         * tests/test-arpa_inet-c++.cc: New file.
14526
14527 2010-12-25  Bruno Haible  <bruno@clisp.org>
14528
14529         Fix more C++ link errors on Solaris 8.
14530         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
14531         $(LIB_EACCESS).
14532         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
14533         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
14534         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
14535         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
14536         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
14537
14538 2010-12-25  Bruno Haible  <bruno@clisp.org>
14539
14540         printf-posix: Fix link error when a non-GCC compiler is used.
14541         * lib/stdio.in.h (printf): When not using GCC, override printf
14542         correctly.
14543         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14544
14545 2010-12-25  Bruno Haible  <bruno@clisp.org>
14546
14547         strerror_r-posix: Update doc.
14548         * doc/posix-functions/strerror_r.texi: Update doc about the return
14549         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
14550
14551 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
14552
14553         utimens: simplify the logic of the previous change
14554         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
14555         This should not affect whether the test succeeds or fails.
14556
14557         utimens: configure better on hosts with NFS clock skew
14558         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
14559         uses the clock of the local host.  It might use the clock of the
14560         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
14561         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14562
14563 2010-12-25  Bruno Haible  <bruno@clisp.org>
14564
14565         ptsname test: Avoid failure on Solaris.
14566         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
14567         open a pseudo-terminal; don't use BSD-style ptys.
14568         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
14569
14570 2010-12-25  Bruno Haible  <bruno@clisp.org>
14571
14572         ptsname: Avoid ERANGE failure on some systems.
14573         * lib/ptsname.c (buffer): Increase size.
14574
14575 2010-12-25  Bruno Haible  <bruno@clisp.org>
14576
14577         rename, renameat: Avoid test failures at NFS mounted locations.
14578         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
14579         so that subsequent mkdir calls succeed.
14580
14581 2010-12-25  Bruno Haible  <bruno@clisp.org>
14582
14583         iswblank: Fix C++ link error on Solaris 8.
14584         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
14585         _GL_FUNCDECL_SYS.
14586
14587 2010-12-25  Bruno Haible  <bruno@clisp.org>
14588
14589         unistd: Fix C++ link error on Solaris 8.
14590         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
14591
14592 2010-12-25  Bruno Haible  <bruno@clisp.org>
14593
14594         readlink doc: Mention an old glibc bug.
14595         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
14596
14597 2010-12-25  Bruno Haible  <bruno@clisp.org>
14598
14599         fcntl-h: Fix for use of C++ on glibc systems.
14600         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14601         also on glibc systems in C++ mode.
14602         Reported by Gary V. Vaughan <gary@gnu.org>.
14603
14604 2010-12-25  Bruno Haible  <bruno@clisp.org>
14605
14606         roundl-ieee: Make it work on OSF/1 5.1 with cc.
14607         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
14608
14609 2010-12-25  Bruno Haible  <bruno@clisp.org>
14610
14611         truncl-ieee: Make it work on OSF/1 5.1 with cc.
14612         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
14613         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
14614         test whether truncl works according to ISO C 99 with IEC 60559.
14615         * m4/truncl-ieee.m4: New file.
14616         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
14617         m4/signbit.m4.
14618         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
14619
14620 2010-12-25  Bruno Haible  <bruno@clisp.org>
14621
14622         ceill-ieee: Make it work on OSF/1 5.1 with cc.
14623         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
14624         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
14625         test whether ceill works according to ISO C 99 with IEC 60559.
14626         * m4/ceill-ieee.m4: New file.
14627         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
14628         m4/signbit.m4.
14629         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
14630
14631 2010-12-25  Bruno Haible  <bruno@clisp.org>
14632
14633         Ensure all prerequisites of <wchar.h> are included.
14634         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
14635         before <wchar.h>.
14636         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14637         gl_MBRLEN_NUL_RETVAL): Likewise.
14638         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14639         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
14640         AC_FUNC_MBRTOWC): Likewise.
14641         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14642         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
14643         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14644         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14645         Likewise.
14646         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14647         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
14648         (gl_WCHAR_H): Improve comments.
14649         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14650
14651 2010-12-25  Bruno Haible  <bruno@clisp.org>
14652
14653         strtok_r: Fix C syntax error in autoconf macro.
14654         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
14655         characters in test program.
14656
14657 2010-12-24  Bruno Haible  <bruno@clisp.org>
14658
14659         ceil, trunc, round: Fix gcc warnings.
14660         * lib/ceil.c (MIN): Undefine before redefining.
14661         * lib/trunc.c (MIN): Likewise.
14662         * lib/round.c (MIN): Likewise.
14663         Include <math.h> first.
14664
14665 2010-12-24  Bruno Haible  <bruno@clisp.org>
14666
14667         select tests: Avoid failures on OSF/1 5.1.
14668         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
14669         failure of closing the last socket; it may fail with ECONNRESET.
14670
14671 2010-12-24  Eric Blake  <eblake@redhat.com>
14672
14673         stdint: avoid HP-UX 10.20 preprocessor bug
14674         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
14675         than #if.
14676         * tests/test-floor2.c (main): Likewise.
14677         Reported by Peter O'Gorman.
14678
14679         pipe: make obsoletion transition easier
14680         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
14681         * modules/pipe (Files): Include revived file.
14682         (Include): Drop reference, to mirror getdate's behavior.
14683
14684 2010-12-24  Bruno Haible  <bruno@clisp.org>
14685
14686         sys_socket: Hide mismatch of declarations on NonStop Kernel.
14687         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
14688         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
14689         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14690
14691 2010-12-24  Bruno Haible  <bruno@clisp.org>
14692
14693         gethostname: Ensure declaration on NonStop Kernel.
14694         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
14695         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14696
14697 2010-12-24  Bruno Haible  <bruno@clisp.org>
14698
14699         sys_select: Ensure all necessary types on NonStop Kernel.
14700         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
14701         include <sys/time.h>.
14702         * doc/posix-headers/sys_select.texi: Mention that it's missing on
14703         NonStop Kernel.
14704         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14705
14706 2010-12-24  Bruno Haible  <bruno@clisp.org>
14707
14708         sys_select: Remove unneeded include.
14709         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
14710         have <sys/select.h>.
14711
14712 2010-12-24  Bruno Haible  <bruno@clisp.org>
14713
14714         gethostname: Provide a fallback for HOST_NAME_MAX.
14715         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
14716         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
14717         instead.
14718         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14719
14720 2010-12-24  Bruno Haible  <bruno@clisp.org>
14721
14722         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
14723         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
14724         (SA_RESTART): Likewise.
14725         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14726
14727 2010-12-24  Bruno Haible  <bruno@clisp.org>
14728
14729         signal: Define NSIG.
14730         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
14731         * tests/test-signal.c (nsig): New variable.
14732         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14733
14734 2010-12-24  Bruno Haible  <bruno@clisp.org>
14735
14736         rename, renameat: Avoid test failures on OSF/1 5.1.
14737         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
14738         alternative error codes.
14739         * tests/test-renameat.c (main): Likewise.
14740
14741 2010-12-24  Bruno Haible  <bruno@clisp.org>
14742
14743         *printf: Detect large precisions bug on Solaris 10/SPARC.
14744         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
14745         by Paul Eggert.
14746         * tests/test-snprintf-posix.h (test_function): Add this test code here
14747         too.
14748         * tests/test-sprintf-posix.h (test_function): Likewise.
14749         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14750         * tests/test-vasprintf-posix.c (test_function): Likewise.
14751         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
14752         around by gnulib.
14753         * doc/posix-functions/printf.texi: Likewise.
14754         * doc/posix-functions/snprintf.texi: Likewise.
14755         * doc/posix-functions/sprintf.texi: Likewise.
14756         * doc/posix-functions/vfprintf.texi: Likewise.
14757         * doc/posix-functions/vprintf.texi: Likewise.
14758         * doc/posix-functions/vsnprintf.texi: Likewise.
14759         * doc/posix-functions/vsprintf.texi: Likewise.
14760         * doc/posix-functions/dprintf.texi: Undo last commit.
14761         * doc/posix-functions/vdprintf.texi: Likewise.
14762
14763 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14764
14765         tests: port test-fdutimensat.c to Solaris 8
14766         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
14767         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
14768         On Solaris 8, it fails with errno == ENOSYS, because there is no
14769         futimens (so it can't use the fd), and there is no lutimens (so it
14770         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
14771
14772         vsnprintf: make more consistent with snprintf; doc fixes
14773
14774         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
14775         the byte count return problem was promoted from the snprintf-posix
14776         to the snprintf module.
14777         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14778         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
14779         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
14780         * tests/test-snprintf.c (main): Check the byte count returned.
14781         * tests/test-vsnprintf.c (main): Likewise.
14782
14783 2010-12-23  Eric Blake  <eblake@redhat.com>
14784
14785         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
14786         * modules/sigpipe (License): Relax license.
14787
14788 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14789
14790         doc: document Solaris printf bug with large float precisions
14791         * doc/posix-functions/dprintf.texi (dprintf):
14792         * doc/posix-functions/fprintf.texi (fprintf):
14793         * doc/posix-functions/printf.texi (printf):
14794         * doc/posix-functions/snprintf.texi (snprintf):
14795         * doc/posix-functions/sprintf.texi (sprintf):
14796         * doc/posix-functions/vdprintf.texi (vdprintf):
14797         * doc/posix-functions/vfprintf.texi (vfprintf):
14798         * doc/posix-functions/vprintf.texi (vprintf):
14799         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14800         * doc/posix-functions/vsprintf.texi (vsprintf):
14801         Mention that these functions mishandle large floating point
14802         precisions on Solaris 10.  The same bug is also present in Solaris
14803         8, and I assume earlier.  This causes "cd gnulib-tests; make
14804         check" to fail on Solaris 8 (and I assume, later) when building
14805         the latest coreutils, in test-vasprintf-posix's call to
14806         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14807         the wide flavors (e.g., wprintf) so this patch just updates the
14808         documentation for the narrow ones.
14809
14810         test-posixtm.c: add two tests
14811         * tests/test-posixtm.c: Add two tests, to highlight the
14812         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14813         around this bug; this is merely to document it.
14814
14815 2010-12-22  Bruno Haible  <bruno@clisp.org>
14816
14817         getlogin_r: Work around portability problem on OSF/1.
14818         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14819         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14820         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
14821         test for a truncated result.
14822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
14823         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
14824         * modules/getlogin_r (Depends-on): Add memchr.
14825         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
14826
14827 2010-12-22  Bruno Haible  <bruno@clisp.org>
14828
14829         ptsname: Avoid test failure on OSF/1 5.1.
14830         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
14831         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
14832         (same_slave): New function.
14833         (main): Use it to compare ptsname's result with the expected file name.
14834
14835 2010-12-22  Bruno Haible  <bruno@clisp.org>
14836
14837         Port extended stdio modules to HP NonStop Kernel.
14838         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
14839         macros.
14840         * lib/fbufmode.c: Update comments.
14841         * lib/fflush.c: Likewise.
14842         * lib/fpurge.c: Likewise.
14843         * lib/freadable.c: Likewise.
14844         * lib/freadahead.c: Likewise.
14845         * lib/freading.c: Likewise.
14846         * lib/freadptr.c: Likewise.
14847         * lib/freadseek.c: Likewise.
14848         * lib/fseeko.c: Likewise.
14849         * lib/fseterr.c: Likewise.
14850         * lib/fwritable.c: Likewise.
14851         * lib/fwriting.c: Likewise.
14852         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14853
14854 2010-12-22  Bruno Haible  <bruno@clisp.org>
14855
14856         ttyname_r: Work around bug on OSF/1 5.1.
14857         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
14858         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
14859         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
14860         present.
14861         * lib/ttyname_r.c (ttyname_r): Update comments.
14862
14863 2010-12-22  Bruno Haible  <bruno@clisp.org>
14864
14865         round: Implement result sign according to IEEE 754.
14866         * lib/round.c (MIN, MINUS_ZERO): New macros.
14867         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
14868         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
14869         * tests/test-round-ieee.c (main): Likewise.
14870         * tests/test-roundl-ieee.c (main): Likewise.
14871
14872         trunc: Implement result sign according to IEEE 754.
14873         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
14874         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
14875         * tests/test-trunc2.c: Include minus-zero.h.
14876         (MINUS_ZERO): New macro.
14877         (trunc_reference): Keep in sync with lib/trunc.c.
14878         * tests/test-truncf2.c: Include minus-zero.h.
14879         (MINUS_ZERO): New macro.
14880         (truncf_reference): Keep in sync with lib/trunc.c.
14881         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
14882         * tests/test-trunc-ieee.c (main): Likewise.
14883         * tests/test-truncl-ieee.c (main): Likewise.
14884
14885         ceil: Implement result sign according to IEEE 754.
14886         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14887         (FUNC): Return -0.0 for -1 < x < 0.
14888         * tests/test-ceil2.c: Include minus-zero.h.
14889         (MINUS_ZERO): New macro.
14890         (ceil_reference): Keep in sync with lib/ceil.c.
14891         * tests/test-ceilf2.c: Include minus-zero.h.
14892         (MINUS_ZERO): New macro.
14893         (ceilf_reference): Keep in sync with lib/ceil.c.
14894         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14895         * tests/test-ceil-ieee.c (main): Likewise.
14896         * tests/test-ceill-ieee.c (main): Likewise.
14897
14898         floor: Implement result sign according to IEEE 754.
14899         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14900         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14901         * tests/test-floorf2.c (floorf_reference): Likewise.
14902         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14903         * tests/test-floor-ieee.c (main): Likewise.
14904         * tests/test-floorl-ieee.c (main): Likewise.
14905
14906 2010-12-22  Bruno Haible  <bruno@clisp.org>
14907
14908         getaddrinfo: Update doc.
14909         * doc/posix-functions/gai_strerror.texi: Return type is also different
14910         on AIX and HP-UX.
14911
14912 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14913
14914         getaddrinfo, inet_ntop: Update doc for Solaris.
14915         * doc/posix-functions/gai_strerror.texi: Return type is also an
14916         issue on Solaris 9 and earlier.
14917         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14918         on Solaris 10 and earlier.
14919
14920 2010-12-21  Bruno Haible  <bruno@clisp.org>
14921
14922         New module 'roundl-ieee'.
14923         * modules/roundl-ieee: New file.
14924         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14925         test whether roundl works according to ISO C 99 with IEC 60559.
14926         * m4/roundl-ieee.m4: New file.
14927         * modules/roundl-ieee-tests: New file.
14928         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14929         * tests/test-roundl.c (main): Remove signbit tests.
14930         * modules/roundl-tests (Depends-on): Remove signbit.
14931         * doc/posix-functions/roundl.texi: Mention the new module.
14932
14933 2010-12-21  Bruno Haible  <bruno@clisp.org>
14934
14935         New module 'truncl-ieee'.
14936         * modules/truncl-ieee: New file.
14937         * modules/truncl-ieee-tests: New file.
14938         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14939         * tests/test-truncl.c (main): Remove signbit tests.
14940         * modules/truncl-tests (Depends-on): Remove signbit.
14941         * doc/posix-functions/truncl.texi: Mention the new module.
14942
14943 2010-12-21  Bruno Haible  <bruno@clisp.org>
14944
14945         New module 'ceill-ieee'.
14946         * modules/ceill-ieee: New file.
14947         * modules/ceill-ieee-tests: New file.
14948         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14949         * tests/test-ceill.c (main): Remove signbit tests.
14950         * modules/ceill-tests (Depends-on): Remove signbit.
14951         * doc/posix-functions/ceill.texi: Mention the new module.
14952
14953 2010-12-21  Bruno Haible  <bruno@clisp.org>
14954
14955         New module 'floorl-ieee'.
14956         * modules/floorl-ieee: New file.
14957         * modules/floorl-ieee-tests: New file.
14958         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14959         * tests/test-floorl.c (main): Remove signbit tests.
14960         * modules/floorl-tests (Depends-on): Remove signbit.
14961         * doc/posix-functions/floorl.texi: Mention the new module.
14962
14963 2010-12-21  Bruno Haible  <bruno@clisp.org>
14964
14965         New module 'round-ieee'.
14966         * modules/round-ieee: New file.
14967         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14968         whether round works according to ISO C 99 with IEC 60559.
14969         * m4/round-ieee.m4: New file.
14970         * modules/round-ieee-tests: New file.
14971         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14972         * tests/test-round1.c (main): Remove signbit tests.
14973         * modules/round-tests (Depends-on): Remove 'signbit'.
14974         * doc/posix-functions/round.texi: Mention the new module.
14975
14976 2010-12-21  Bruno Haible  <bruno@clisp.org>
14977
14978         New module 'trunc-ieee'.
14979         * modules/trunc-ieee: New file.
14980         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14981         whether trunc works according to ISO C 99 with IEC 60559.
14982         * m4/trunc-ieee.m4: New file.
14983         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14985         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14986         * modules/trunc-ieee-tests: New file.
14987         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14988         * tests/test-trunc1.c (main): Remove signbit tests.
14989         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14990         * doc/posix-functions/trunc.texi: Mention the new module.
14991
14992 2010-12-21  Bruno Haible  <bruno@clisp.org>
14993
14994         New module 'ceil-ieee'.
14995         * modules/ceil-ieee: New file.
14996         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14997         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14998         ISO C 99 with IEC 60559.
14999         * m4/ceil-ieee.m4: New file.
15000         * modules/ceil (Files): Add lib/ceil.c.
15001         (Depends-on): Add 'float'.
15002         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15003         * lib/math.in.h (ceil): New declaration.
15004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
15005         REPLACE_CEIL.
15006         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
15007         * modules/ceil-ieee-tests: New file.
15008         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
15009         * tests/test-math-c++.cc: Check the signature of 'ceil'.
15010         * doc/posix-functions/ceil.texi: Mention the new module.
15011
15012 2010-12-21  Bruno Haible  <bruno@clisp.org>
15013
15014         New module 'floor-ieee'.
15015         * modules/floor-ieee: New file.
15016         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
15017         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
15018         ISO C 99 with IEC 60559.
15019         * m4/floor-ieee.m4: New file.
15020         * modules/floor (Files): Add lib/floor.c.
15021         (Depends-on): Add 'float'.
15022         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15023         * lib/math.in.h (floor): New declaration.
15024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
15025         REPLACE_FLOOR.
15026         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
15027         * modules/floor-ieee-tests: New file.
15028         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
15029         * tests/test-math-c++.cc: Check the signature of 'floor'.
15030         * doc/posix-functions/floor.texi: Mention the new module.
15031
15032 2010-12-21  Bruno Haible  <bruno@clisp.org>
15033
15034         New module 'roundf-ieee'.
15035         * modules/roundf-ieee: New file.
15036         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
15037         test whether roundf works according to ISO C 99 with IEC 60559.
15038         * m4/roundf-ieee.m4: New file.
15039         * modules/roundf-ieee-tests: New file.
15040         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
15041         * tests/test-roundf1.c (main): Remove signbit tests.
15042         * modules/roundf-tests (Depends-on): Remove 'signbit'.
15043         * doc/posix-functions/roundf.texi: Mention the new module.
15044
15045 2010-12-21  Bruno Haible  <bruno@clisp.org>
15046
15047         New module 'truncf-ieee'.
15048         * modules/truncf-ieee: New file.
15049         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
15050         test whether truncf works according to ISO C 99 with IEC 60559.
15051         * m4/truncf-ieee.m4: New file.
15052         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
15053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
15054         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
15055         * modules/truncf-ieee-tests: New file.
15056         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
15057         * tests/test-truncf1.c (main): Remove signbit tests.
15058         * modules/truncf-tests (Depends-on): Remove 'signbit'.
15059         * doc/posix-functions/truncf.texi: Mention the new module.
15060
15061 2010-12-21  Bruno Haible  <bruno@clisp.org>
15062
15063         New module 'ceilf-ieee'.
15064         * modules/ceilf-ieee: New file.
15065         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
15066         test whether ceilf works according to ISO C 99 with IEC 60559.
15067         * m4/ceilf-ieee.m4: New file.
15068         * modules/ceilf-ieee-tests: New file.
15069         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
15070         * tests/test-ceilf1.c (main): Remove signbit tests.
15071         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
15072         * doc/posix-functions/ceilf.texi: Mention the new module.
15073
15074 2010-12-21  Bruno Haible  <bruno@clisp.org>
15075
15076         New module 'floorf-ieee'.
15077         * modules/floorf-ieee: New file.
15078         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
15079         test whether floorf works according to ISO C 99 with IEC 60559.
15080         * m4/floorf-ieee.m4: New file.
15081         * modules/floorf-ieee-tests: New file.
15082         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
15083         * tests/test-floorf1.c (main): Remove signbit tests.
15084         * modules/floorf-tests (Depends-on): Remove 'signbit'.
15085         * doc/posix-functions/floorf.texi: Mention the new module.
15086
15087 2010-12-21  Bruno Haible  <bruno@clisp.org>
15088
15089         Support for minus zero in autoconf macros.
15090         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
15091         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
15092         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
15093         * tests/minus-zero.h: Update comments.
15094
15095 2010-12-21  Bruno Haible  <bruno@clisp.org>
15096
15097         Tests for module 'ceil'.
15098         * modules/ceil-tests: New file.
15099         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
15100         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
15101
15102 2010-12-21  Bruno Haible  <bruno@clisp.org>
15103
15104         Tests for module 'floor'.
15105         * modules/floor-tests: New file.
15106         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
15107         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
15108
15109 2010-12-21  Bruno Haible  <bruno@clisp.org>
15110
15111         math: Fix indentation.
15112         * lib/math.in.h (floorf): Fix indentation.
15113
15114 2010-12-21  Bruno Haible  <bruno@clisp.org>
15115
15116         Fix cross-compilation guesses on Solaris.
15117         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
15118         not match "solaris2.10".
15119         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15120         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
15121         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
15122
15123 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
15124
15125         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
15126         This fixes a problem observed with the latest coreutils snapshot
15127         that caused a test to fail on Solaris 8.  src/csplit.c's call
15128         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
15129         earlier, instead of returning the number of bytes that would have
15130         been generated; this causes csplit to incorrectly report memory
15131         exhaustion.
15132         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
15133         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
15134         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
15135         comments to match.
15136         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
15137         Fix typo in matching older versions of Solaris: "solaris2.10"
15138         is matched by the shell pattern "solaris2.[0-9]*".  This matters
15139         only for guessing while cross-compiling.
15140         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
15141
15142 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15143
15144         ftoastr: fix comment again
15145         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
15146         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
15147         Also, simplify example a bit by using flags = 0.
15148
15149 2010-12-20  Bruno Haible  <bruno@clisp.org>
15150
15151         round*, trunc*: Update documentation regarding glibc.
15152         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
15153         * doc/posix-functions/round.texi: Likewise.
15154         * doc/posix-functions/roundl.texi: Likewise.
15155         * doc/posix-functions/truncf.texi: Likewise.
15156         * doc/posix-functions/trunc.texi: Likewise.
15157         * doc/posix-functions/truncl.texi: Likewise.
15158
15159 2010-12-20  Bruno Haible  <bruno@clisp.org>
15160
15161         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
15162         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
15163         * doc/posix-functions/round.texi: Likewise.
15164         * doc/posix-functions/roundl.texi: Likewise.
15165
15166 2010-12-20  Bruno Haible  <bruno@clisp.org>
15167
15168         ttyname_r: Add missing declaration on HP-UX 11.
15169         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
15170         HAVE_TTYNAME_R.
15171         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
15172         declared. Set HAVE_TTYNAME_R always.
15173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15174         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
15175         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
15176         HAVE_TTYNAME_R.
15177         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
15178
15179 2010-12-20  Bruno Haible  <bruno@clisp.org>
15180
15181         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
15182         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
15183         * doc/posix-functions/getlogin_r.texi: Likewise.
15184         * tests/test-getlogin.c: Include <errno.h>.
15185         (main): Avoid test failure on HP-UX 11.11.
15186         * tests/test-getlogin_r.c (main): Likewise.
15187
15188 2010-12-20  Bruno Haible  <bruno@clisp.org>
15189
15190         getlogin_r: Add missing declaration on HP-UX 11.
15191         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
15192         declared also when it exists as a function.
15193         * doc/posix-functions/getlogin_r.texi: Document this workaround.
15194
15195 2010-12-20  Bruno Haible  <bruno@clisp.org>
15196
15197         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
15198         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
15199         through wcrtomb.
15200
15201 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15202
15203         ftoastr: fix comment
15204         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
15205         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
15206
15207 2010-12-19  Bruno Haible  <bruno@clisp.org>
15208
15209         isnan: Ensure it is a macro.
15210         * lib/math.in.h (isnan): Define as a macro if not already a macro.
15211         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
15212         Solaris.
15213
15214 2010-12-19  Bruno Haible  <bruno@clisp.org>
15215
15216         ldexpl test: Fix link error on OSF/1 5.1.
15217         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
15218
15219 2010-12-19  Bruno Haible  <bruno@clisp.org>
15220
15221         wctype: Make it work in C++ mode on OSF/1 5.1.
15222         * lib/wctype.in.h (iswblank): Declare but not define here.
15223         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
15224         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
15225         * modules/wctype (Files): Add lib/iswblank.c.
15226
15227 2010-12-19  Bruno Haible  <bruno@clisp.org>
15228
15229         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
15230         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
15231         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
15232
15233 2010-12-19  Bruno Haible  <bruno@clisp.org>
15234
15235         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
15236         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
15237         _POSIX_PII_SOCKET.
15238         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
15239         * doc/posix-functions/recvfrom.texi: Likewise.
15240         * doc/posix-functions/send.texi: Likewise.
15241         * doc/posix-functions/sendto.texi: Likewise.
15242
15243 2010-12-19  Bruno Haible  <bruno@clisp.org>
15244
15245         tcgetsid: Add missing declaration on OSF/1 5.1.
15246         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
15247         HAVE_TCGETSID.
15248         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
15249         Don't set HAVE_TCGETSID.
15250         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
15251         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
15252         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
15253         HAVE_TCGETSID.
15254         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
15255
15256 2010-12-19  Bruno Haible  <bruno@clisp.org>
15257
15258         stdio: Fix problem with popen() declaration on OSF/1 5.1.
15259         * lib/stdio.in.h: During the include_next statement, let recursive
15260         includes of this file include only the system header file.
15261
15262 2010-12-19  Bruno Haible  <bruno@clisp.org>
15263
15264         iconv_open: Fix regression from 2010-12-04.
15265         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
15266         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
15267
15268 2010-12-19  Bruno Haible  <bruno@clisp.org>
15269
15270         stdbool test: Avoid a gcc warning.
15271         * tests/test-stdbool.c (main): Fail if e1 is false.
15272         Reported by Jim Meyering.
15273
15274 2010-12-19  Jim Meyering  <meyering@redhat.com>
15275
15276         setenv: restore to working order
15277         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
15278         mistakenly removed.
15279         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
15280         HAVE_SETENV.
15281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
15282         HAVE_SETENV.
15283
15284 2010-12-19  Bruno Haible  <bruno@clisp.org>
15285
15286         Document some different function declarations on OSF/1 5.1.
15287         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
15288         * doc/posix-functions/inet_ntop.texi: Likewise.
15289         * doc/posix-functions/gethostname.texi: Likewise.
15290         * lib/unistd.in.h (gethostname): Update comment.
15291
15292 2010-12-19  Bruno Haible  <bruno@clisp.org>
15293
15294         doc: Mention vasprintf-posix module.
15295         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
15296         the 'vasprintf-posix' module.
15297         * doc/glibc-functions/vasprintf.texi: Likewise.
15298
15299 2010-12-19  Bruno Haible  <bruno@clisp.org>
15300
15301         unsetenv: Add missing declaration on OSF/1 5.1.
15302         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
15303         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
15304         Don't set HAVE_UNSETENV. In the test program, set _BSD.
15305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
15306         not HAVE_UNSETENV.
15307         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
15308         HAVE_UNSETENV.
15309         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
15310
15311 2010-12-19  Bruno Haible  <bruno@clisp.org>
15312
15313         setenv: Add missing declaration on OSF/1 5.1.
15314         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
15315         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
15316         declared. Don't set HAVE_SETENV.
15317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
15318         not HAVE_SETENV.
15319         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
15320         HAVE_SETENV.
15321         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
15322
15323 2010-12-19  Bruno Haible  <bruno@clisp.org>
15324
15325         nl_langinfo tests: Avoid gcc warning.
15326         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
15327
15328 2010-12-19  Bruno Haible  <bruno@clisp.org>
15329
15330         mknod: Avoid error in C++ mode on OSF/1 with GCC.
15331         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
15332         _GL_CXXALIAS_SYS.
15333
15334 2010-12-19  Bruno Haible  <bruno@clisp.org>
15335
15336         stdbool: Relax test.
15337         * tests/test-stdbool.c (e): Don't require that casts from a variable's
15338         address to 'bool' work in static initializer, for compilers other than
15339         GCC.
15340
15341 2010-12-19  Bruno Haible  <bruno@clisp.org>
15342
15343         ftello: Add missing declaration on OSF/1 5.1.
15344         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
15345         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
15346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
15347         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
15348         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
15349
15350 2010-12-19  Bruno Haible  <bruno@clisp.org>
15351
15352         fseeko: Add missing declaration on OSF/1 5.1.
15353         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
15354         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
15355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
15356         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
15357         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
15358
15359 2010-12-19  Bruno Haible  <bruno@clisp.org>
15360
15361         fchdir: Add missing declaration on OSF/1 5.1.
15362         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
15363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
15364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
15365         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
15366         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
15367
15368 2010-12-19  Bruno Haible  <bruno@clisp.org>
15369
15370         relocatable-prog-wrapper: Separate from relocatable-prog.
15371         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
15372         uninstall-relocwrapper rule here.
15373         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
15374         Reported by Ian Beckwith <ianb@erislabs.net>.
15375
15376 2010-12-19  Bruno Haible  <bruno@clisp.org>
15377
15378         unistr/u8-mbsnlen: Add missing dependency.
15379         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
15380         Reported by Ian Beckwith <ianb@erislabs.net>.
15381
15382 2010-12-19  Bruno Haible  <bruno@clisp.org>
15383
15384         iconv: Make it possible again to use this module without 'iconv-h'.
15385         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
15386         if it is not defined.
15387         Reported by Ian Beckwith <ianb@erislabs.net>.
15388
15389 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15390
15391         acl: port to Solaris 8 when copying from tmpfs to ufs
15392         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
15393         error number.  Problem observed on Solaris 8 with latest
15394         coreutils, with "mv A B", where A is on a tmpfs file system and B
15395         is on a ufs file system.  This caused coreutils' mv/part-symlink
15396         test to fail.
15397
15398         tests: set fail=0 at start
15399         * tests/init.sh (setup_): Move fail=0 initialization here ...
15400         (mktempd_): ... from here, so that tests can rely on fail being
15401         set to 0 initially.  This fixes a problem in coreutils; see:
15402         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
15403
15404 2010-12-18  Bruno Haible  <bruno@clisp.org>
15405
15406         memmem-simple: Stylistic changes.
15407         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
15408         Fix preprocessor directive indentation.
15409
15410 2010-12-15  Pádraig Brady <P@draigBrady.com>
15411
15412         memmem, memmem-simple: reorganize and expand empty needle check
15413         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
15414         functional checks to memmem-simple so that one has a fully functional
15415         memmem by using just this module.
15416         Restrict the performance only check to the memmem module.
15417         Also expand the empty needle check to ensure the correct
15418         pointer is returned, not just a non NULL pointer.
15419         * doc/glibc-functions/memmem.texi: Rearrange the portability
15420         documentation to correlate with the rearranged checks.
15421         Clarify exactly how the memmem and memmem-simple modules
15422         relate to each other.
15423
15424 2010-12-15  Pádraig Brady <P@draigBrady.com>
15425             Bruno Haible  <bruno@clisp.org>
15426
15427         Improve cross-compilation guesses for uClibc.
15428         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
15429         that uClibc does not have the glibc bug.
15430         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
15431         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
15432
15433 2010-12-14  Eric Blake  <eblake@redhat.com>
15434
15435         configmake: provide fallbacks for oldest supported autotools
15436         * m4/configmake.m4: New file.
15437         * modules/configmake (Files): Ship it.
15438         (configure.ac): Use it to guarantee fallbacks.
15439
15440 2010-12-13  Pádraig Brady <P@draigBrady.com>
15441
15442         read-file: Improve handling of large files
15443         * lib/read-file.c (fread_file): Minimize realloc()s
15444         for regular files, and better manage sizes around SIZE_MAX.
15445
15446 2010-12-13  Eric Blake  <eblake@redhat.com>
15447
15448         cloexec, fcntl: relax license
15449         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
15450         consent from all contributors.
15451         * modules/fcntl (License): Likewise.
15452
15453 2010-12-10  Bruno Haible  <bruno@clisp.org>
15454
15455         Tests for module 'pipe-posix'.
15456         * modules/pipe-posix-tests: New file.
15457         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
15458
15459 2010-12-10  Bruno Haible  <bruno@clisp.org>
15460
15461         pipe-posix: Make it work in C++ mode.
15462         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
15463         (pipe): Use common idiom, not a macro definition.
15464         * lib/pipe.c: New file.
15465         * m4/pipe.m4: New file.
15466         * modules/pipe-posix (Description): Enhance.
15467         (Files): Add lib/pipe.c, m4/pipe.m4.
15468         (configure.ac): Invoke gl_FUNC_PIPE.
15469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
15470         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
15471         * tests/test-unistd-c++.cc: Check the signature of pipe.
15472
15473 2010-12-10  Bruno Haible  <bruno@clisp.org>
15474
15475         Rename module 'pipe' to 'spawn-pipe'.
15476         * modules/spawn-pipe: New file, renamed from modules/pipe.
15477         (Files, configure.ac, Makefile.am): Update.
15478         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
15479         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
15480         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
15481         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
15482         "spawn-pipe.h" instead of "pipe.h".
15483         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
15484         to gl_SPAWN_PIPE.
15485         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
15486         (Files, Makefile.am): Update.
15487         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
15488         Update.
15489         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
15490         Include "spawn-pipe.h" instead of "pipe.h".
15491         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
15492         * lib/javacomp.c: Likewise.
15493         * lib/javaversion.c: Likewise.
15494         * lib/pipe-filter-gi.c: Likewise.
15495         * lib/pipe-filter-ii.c: Likewise.
15496         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
15497         * modules/javacomp (Depends-on): Likewise.
15498         * modules/javaversion (Depends-on): Likewise.
15499         * modules/pipe-filter-gi (Depends-on): Likewise.
15500         * modules/pipe-filter-ii (Depends-on): Likewise.
15501         * MODULES.html.sh (Executing programs): Update.
15502         * NEWS: Mention the change.
15503
15504 2010-12-10  Eric Blake  <eblake@redhat.com>
15505
15506         pipe-posix: new module
15507         * modules/pipe-posix: New file.
15508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
15509         (gl_UNISTD_H): Check for declaration.
15510         * modules/unistd (Makefile.am): Substitute it.
15511         * lib/unistd.in.h (pipe): Provide it for mingw.
15512         * doc/posix-functions/pipe.texi (pipe): Update documentation.
15513         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
15514
15515 2010-12-07  Bruno Haible  <bruno@clisp.org>
15516
15517         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
15518         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
15519         u8_strcmp_gnu.
15520         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
15521
15522 2010-12-06  Bruno Haible  <bruno@clisp.org>
15523
15524         Update internal documentation.
15525         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
15526
15527 2010-12-04  Bruno Haible  <bruno@clisp.org>
15528
15529         Put more information about failed tests into the test return codes.
15530         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
15531         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
15532         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15533         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15534         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15535         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15536         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15537         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15538         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
15539         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15540         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
15541         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15542         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15543         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15544         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
15545         returns a bit mask.
15546         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15547         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
15548         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
15549         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
15550         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15551         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15552         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15553         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15554         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15555         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15556         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15557         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15558         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15559         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15560         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15561         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15562         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
15563         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
15564         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15565         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
15566         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15567         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15568         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15569         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15570         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15571         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15572         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
15573         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15574         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15575         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
15576         gl_PRINTF_PRECISION): Likewise.
15577         * m4/regex.m4 (gl_REGEX): Likewise.
15578         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15579         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15580         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
15581         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15582         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15584         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15585         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
15586         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15587         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15588         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15589         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15590         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15591         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
15592         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15593         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15594         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15595         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15597         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
15598         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
15599         enumerated value.
15600         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
15601
15602 2010-12-04  Bruno Haible  <bruno@clisp.org>
15603
15604         Update for Solaris 11 2010-11.
15605         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
15606         Express, released in November 2010.
15607
15608 2010-12-04  Bruno Haible  <bruno@clisp.org>
15609
15610         nproc: Relax license.
15611         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
15612         and Paul Eggert.
15613         Requested by Ludovic Courtès <ludo@gnu.org>.
15614
15615 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15616
15617         utimecmp: fine-grained src to nearby coarse-grained dest
15618
15619         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
15620         and the source is on a file system with higher-resolution time
15621         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
15622         not work, and the time stamps are close together, the algorithm to
15623         determine the exact resolution from the read-back mtime was buggy:
15624         it had a "!=" where it should have had an "==".  This bug has been
15625         in the code ever since it was introduced to gnulib.
15626         Problem reported by Dan Jacobson in
15627         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
15628
15629 2010-11-30  Bruno Haible  <bruno@clisp.org>
15630
15631         strerror_r-posix: Fix autoconf test.
15632         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
15633
15634 2010-11-28  Bruno Haible  <bruno@clisp.org>
15635             Paul Eggert  <eggert@cs.ucla.edu>
15636
15637         Tests for module 'getdomainname'.
15638         * modules/getdomainname-tests: New file.
15639         * tests/test-getdomainname.c: New file, based on
15640         tests/test-gethostname.c.
15641
15642 2010-11-28  Bruno Haible  <bruno@clisp.org>
15643             Paul Eggert  <eggert@cs.ucla.edu>
15644
15645         getdomainname: Use the system function when possible.
15646         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
15647         (getdomainname): Replace if needed. Provide the declaration if it is
15648         missing. Don't use _GL_CXXALIAS_SYS_CAST.
15649         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
15650         (getdomainname): When the system has getdomainname, call the system
15651         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
15652         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
15653         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
15654         found in libnsl. Look for the declaration also in <netdb.h>. Replace
15655         the function if its second argument is of type 'int' or if it is found
15656         in libnsl.
15657         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
15658         <sys/systeminfo.h> and sysinfo().
15659         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
15660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15661         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
15662         HAVE_GETDOMAINNAME.
15663         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
15664         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
15665         * doc/glibc-functions/getdomainname.texi: Document the problems with
15666         the getdomainname declaration.
15667
15668 2010-11-28  Bruno Haible  <bruno@clisp.org>
15669
15670         sys_socket: Ensure ss_family field on AIX.
15671         * lib/sys_socket.in.h (ss_family): New macro definition.
15672         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
15673         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
15674         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15675         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15676         * modules/sys_socket (Makefile.am): Substitute
15677         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15678         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
15679
15680 2010-11-27  Bruno Haible  <bruno@clisp.org>
15681
15682         readline: Improve configure output.
15683         * m4/readline.m4 (gl_FUNC_READLINE): Make the
15684         "checking for readline..." result understandable.
15685
15686 2010-11-27  Bruno Haible  <bruno@clisp.org>
15687
15688         *printf-posix: Detect a bug on Solaris 10/x86.
15689         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
15690         for floating-point output.
15691         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
15692         directive.
15693         * tests/test-snprintf-posix.h (test_function): Likewise.
15694         * tests/test-sprintf-posix.h (test_function): Likewise.
15695         * tests/test-vasprintf-posix.c (test_function): Likewise.
15696         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
15697         * doc/posix-functions/printf.texi: Likewise.
15698         * doc/posix-functions/snprintf.texi: Likewise.
15699         * doc/posix-functions/sprintf.texi: Likewise.
15700         * doc/posix-functions/vfprintf.texi: Likewise.
15701         * doc/posix-functions/vprintf.texi: Likewise.
15702         * doc/posix-functions/vsnprintf.texi: Likewise.
15703         * doc/posix-functions/vsprintf.texi: Likewise.
15704         * doc/glibc-functions/obstack_printf.texi: Likewise.
15705         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15706
15707 2010-11-27  Bruno Haible  <bruno@clisp.org>
15708
15709         Fix link error when module libunistring-optional is in use.
15710         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
15711         * modules/striconveha-tests (Makefile.am): Likewise.
15712
15713 2010-11-27  Bruno Haible  <bruno@clisp.org>
15714
15715         regex: Mention link dependencies.
15716         * modules/regex (Link): New section.
15717         * modules/rpmatch (Link): Likewise.
15718         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
15719
15720 2010-11-27  Bruno Haible  <bruno@clisp.org>
15721
15722         ftoastr: Fix compilation error on Solaris.
15723         * lib/ftoastr.c: Include <config.h>.
15724
15725 2010-11-27  Bruno Haible  <bruno@clisp.org>
15726
15727         getloadavg: Update documentation.
15728         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
15729
15730 2010-11-27  Bruno Haible  <bruno@clisp.org>
15731
15732         sys_socket: Fix test whether the functions are declared.
15733         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
15734         not <sys/select.h>.
15735
15736 2010-11-27  Bruno Haible  <bruno@clisp.org>
15737
15738         getpass: Make sure to get system declaration on some platforms.
15739         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
15740         gl_USE_SYSTEM_EXTENSIONS.
15741         * modules/getpass (Depends-on): Add extensions.
15742
15743 2010-11-26  Bruno Haible  <bruno@clisp.org>
15744
15745         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
15746         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
15747         'iconv' module is present.
15748         (ICONV_CONST): New macro.
15749         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
15750         ICONV_CONST.
15751         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
15752         set ICONV_CONST.
15753         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
15754         here.
15755         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
15756         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
15757         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
15758         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
15759         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
15760         present.
15761
15762 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15763
15764         ftoastr: comment fix
15765         * lib/ftoastr.c: "little" -> "little or no" in comment
15766
15767 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
15768
15769         stdint: port to GCC 4.3 + OSX + Octave
15770         On this platform, stdint.h is buggy and defines int64_t to long
15771         long int.  The replacement defined it to long int, causing
15772         problems with C++ style name mangling.  Instead, trust the system
15773         definition if INT64_MAX is defined, and likewise for the unsigned
15774         variant.   Problem reported by Jarno Rajahalme in
15775         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
15776         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
15777         and don't mess with int64_t and INT64_MAX in this case.
15778         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
15779
15780 2010-11-24  Bruno Haible  <bruno@clisp.org>
15781
15782         doc: Corrections regarding MacOS X 10.4 and 10.5.
15783         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
15784         MacOS X.
15785         Reported by Simon Josefsson.
15786
15787 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
15788
15789         Uninstall ".bin" files installed by relocwrapper.
15790         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
15791         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
15792         unless it is already there.
15793
15794 2010-11-21  Bruno Haible  <bruno@clisp.org>
15795
15796         Update for NetBSD 5.0.
15797         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15798         NetBSD; the test fails on NetBSD 5.0.
15799         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15800         about NetBSD.
15801
15802 2010-11-21  Bruno Haible  <bruno@clisp.org>
15803
15804         Update for HP-UX 11.23 and HP-UX 11.31.
15805         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15806         HP-UX.
15807
15808 2010-11-21  Bruno Haible  <bruno@clisp.org>
15809
15810         Update for MacOS X 10.5.
15811         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15812         MacOS X; the test fails on MacOS X 10.5.8.
15813         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15814         about MacOS X.
15815
15816 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15817
15818         bootstrap: add bootstrap_sync option.
15819         See discussion at
15820         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
15821         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
15822         * build-aux/bootstrap: Accept --bootstrap-sync to update
15823         bootstrap if it is not identical to the local gnulib's
15824         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
15825         enable this by default.  Accept --no-bootstrap-sync to disable
15826         it.
15827
15828 2010-11-20  Bruno Haible  <bruno@clisp.org>
15829
15830         Ensure that <features.h> is included before __GLIBC__ is tested.
15831         * lib/printf-parse.h: Include <features.h>.
15832         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
15833         Reported by Mike Frysinger <vapier@gentoo.org>.
15834
15835         Ensure that <features.h> is included before __GLIBC__ is tested.
15836         * lib/wchar.in.h: Include <features.h>.
15837         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
15838         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
15839         Reported by Mike Frysinger <vapier@gentoo.org>.
15840
15841         Ensure that <features.h> is included before __GLIBC__ is tested.
15842         * lib/arpa_inet.in.h: Include <features.h>.
15843         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
15844         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
15845         Reported by Mike Frysinger <vapier@gentoo.org>.
15846
15847         Ensure that <features.h> is included before __GLIBC__ is tested.
15848         * build-aux/link-warning.h: Include <features.h>.
15849         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
15850         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
15851         Reported by Mike Frysinger <vapier@gentoo.org>.
15852
15853         Ensure that <features.h> is included before __GLIBC__ is tested.
15854         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
15855         Reported by Mike Frysinger <vapier@gentoo.org>.
15856
15857 2010-11-20  Bruno Haible  <bruno@clisp.org>
15858
15859         memmem: Fix autoconf test.
15860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
15861
15862 2010-11-20  Bruno Haible  <bruno@clisp.org>
15863
15864         Port to uClibc.
15865         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
15866         * lib/fcntl.in.h: Likewise.
15867         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
15868         * lib/mbrtowc.c (mbrtowc): Likewise.
15869         * lib/relocatable.c (find_shared_library_fullname): Likewise.
15870         * lib/strerror_r.c: Likewise.
15871         * lib/unistr/u8-strnlen.c: Likewise.
15872         * lib/vasnprintf.c (decimal_point_char): Likewise.
15873         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15874         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15875         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15876         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15877         * tests/test-sigaction.c (handler, main): Likewise.
15878         * lib/freading.h: Treat uClibc like a non-glibc platform.
15879         * lib/freading.c: Likewise.
15880         * lib/gettext.h: Likewise.
15881         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
15882         Likewise.
15883         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15884         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15885         * lib/propername.c (proper_name_utf8): Likewise.
15886         * lib/spawn.in.h: Likewise.
15887         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15888         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15889         mem_cd_iconveh_internal): Likewise.
15890         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15891         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15892         strstr, strcasestr): Likewise.
15893         * lib/unicodeio.c (unicode_to_mb): Likewise.
15894         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15895         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15896         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15897         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15898         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15899         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15900         * lib/unistr/u8-stpncpy.c: Likewise.
15901         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15902         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15903         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15904         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15905         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15906         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15907         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15908         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15910         Likewise.
15911         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15912         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15913         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15914         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15915         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15916         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15917         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15918         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15919         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15920         * tests/test-striconveha.c (main): Likewise.
15921         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15922         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15923         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15924         * doc/posix-functions/getline.texi: Likewise.
15925         Reported by Mike Frysinger <vapier@gentoo.org>.
15926
15927 2010-11-20  Bruno Haible  <bruno@clisp.org>
15928
15929         nproc: Fix condition.
15930         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15931         HAVE_PTHREAD_AFFINITY_NP.
15932
15933 2010-11-20  Bruno Haible  <bruno@clisp.org>
15934
15935         Fix a comment.
15936         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15937
15938 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15939
15940         ftoastr: don't assume snprintf
15941         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15942         Implement a subset of snprintf here, by using sprintf safely.
15943         * modules/ftoastr (Depends-on): Remove snprintf.
15944
15945 2010-11-19  Jim Meyering  <meyering@redhat.com>
15946
15947         test-rename.h: fix compilation failure
15948         * tests/test-rename.h (test_rename): Add omitted "}".
15949
15950 2010-11-17  Jim Meyering  <meyering@redhat.com>
15951
15952         maint.mk: add a URL discussing the no-@acronym policy
15953         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15954
15955 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15956
15957         ftoastr: depend on snprintf, improve comments
15958         * lib/ftoastr.c: Also mention Loitsch's draft.
15959         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15960         needed in the current implementation, but it might simplify
15961         speeding up the code later.
15962         * modules/ftoastr: Depend on snprintf; this improves portability.
15963         Suggested by Bruno Haible in the same email.
15964
15965         ftoastr: port to hosts lacking strtof and strtold
15966         Problem reported by Bruno Haible in
15967         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15968         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15969         environment and strtold (and presumably strtof) are not available.
15970         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15971         (configure.ac): Require gl_C99_STRTOLD.
15972
15973 2010-11-18  Bruno Haible  <bruno@clisp.org>
15974
15975         c-strtold: Avoid link error on AIX 7.
15976         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15977         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15978         (gl_C_STRTOLD): Test whether strtold_l exists.
15979         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15980
15981 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15982
15983         intprops: new macro INT_BITS_STRLEN_BOUND
15984         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15985         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15986         not exposed.  Also, it uses a slightly tighter bound than before;
15987         though this makes no practical difference, we might as well be as
15988         tight as we easily can.
15989
15990         ftoastr: new module, for lossless conversion of floats to short strings
15991         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15992         * modules/ftoastr: New files.
15993
15994 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15995
15996         bootstrap: port to Solaris sed
15997         * build-aux/bootstrap (get_version): Port to Solaris sed.
15998         See Ralf Wildenhues's note in
15999         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
16000
16001 2010-11-14  Jim Meyering  <meyering@redhat.com>
16002
16003         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
16004         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
16005         and move definition closer to sole use.
16006
16007 2010-11-13  Jim Meyering  <meyering@redhat.com>
16008
16009         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
16010         Now we require at least autoconf-2.59, which means the work-around
16011         is no longer needed.
16012         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
16013         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16014         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
16015         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
16016         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16017
16018 2010-11-13  Bruno Haible  <bruno@clisp.org>
16019
16020         rename, renameat: Avoid test failures at NFS mounted locations.
16021         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
16022         functions.
16023         (test_rename): Use assert_nonexistent.
16024         * tests/test-rename.c: Include <dirent.h>.
16025         * tests/test-renameat.c: Likewise.
16026         Reported by Gary V. Vaughan <gary@gnu.org>.
16027
16028         rename, renameat: Document Linux bug with NFS
16029         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
16030         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
16031         * doc/posix-functions/renameat.texi: Likewise.
16032         Suggested by Eric Blake.
16033
16034 2010-11-13  Bruno Haible  <bruno@clisp.org>
16035
16036         rename test: Add comments.
16037         * tests/test-rename.h (test_rename): Add structure and comments.
16038
16039 2010-11-13  Eric Blake  <eblake@redhat.com>
16040
16041         maintainer-makefile: cover a few more files
16042         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
16043         scripts generated within C files, for libvirt.
16044
16045 2010-11-13  Bruno Haible  <bruno@clisp.org>
16046
16047         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
16048         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
16049         character, return the number of bytes that belong together, not always
16050         1.
16051         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
16052         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
16053         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
16054         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
16055         number of bytes of an invalid character.
16056         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
16057         (main): Invoke it.
16058         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
16059         results.
16060         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
16061         malformed byte sequences.
16062         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
16063         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
16064         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
16065         Reported by Ben Pfaff and Paolo Bonzini.
16066
16067 2010-11-13  Bruno Haible  <bruno@clisp.org>
16068
16069         openat: Work around glibc bug with fchownat() and empty file names.
16070         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
16071         (gl_FUNC_FCHOWNAT): Invoke it.
16072         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
16073         * doc/posix-functions/fchownat.texi: Document the glibc bug.
16074         Reported by Gary V. Vaughan <gary@gnu.org>.
16075
16076 2010-11-13  Bruno Haible  <bruno@clisp.org>
16077
16078         openat: Ensure autoconf macro ordering.
16079         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
16080         gl_USE_SYSTEM_EXTENSIONS.
16081         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
16082
16083 2010-11-13  Bruno Haible  <bruno@clisp.org>
16084
16085         Update comments.
16086         * lib/unistr/u8-check.c: Update file name in comments.
16087         * lib/unistr/u8-mblen.c: Likewise.
16088         * lib/unistr/u8-prev.c: Likewise.
16089         * lib/unistr/u8-strmblen.c: Likewise.
16090         * lib/unistr/u8-strmbtouc.c: Likewise.
16091
16092 2010-11-13  Jim Meyering  <meyering@redhat.com>
16093
16094         tests: avoid test failure on Solaris 10 due to lack of PATH export
16095         * tests/test-update-copyright.sh: Don't forget to export PATH.
16096
16097         init.sh: ensure that IFS is defined, just in case...
16098         * tests/init.sh (setup_): Ensure that IFS is defined,
16099         so that saving and restoring it works as expected.  This
16100         appears to be useful at least for an old version of dash
16101         from a long time ago (RH 6).  See here for details:
16102         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
16103
16104         maint.mk: tighten "test a == b" check
16105         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
16106         test to files that contain something like #!/bin/sh.
16107         Without this, coreutils would get two false positives in
16108         the comments of C source files.
16109
16110 2010-11-12  Eric Blake  <eblake@redhat.com>
16111
16112         bootstrap: fix typo in previous attempt
16113         * build-aux/bootstrap (buildreq): Correct the grouping.
16114         Reported by Paul Eggert.
16115
16116         maintainer-makefile: prohibit test x == x
16117         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
16118         Based on a report by Matthias Bolte.
16119
16120         bootstrap: allow FreeBSD gzip
16121         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
16122         which has no '.' and goes to stderr.
16123         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
16124         Reported by Matthias Bolte.
16125
16126         maintainer-makefile: check for i18n setup
16127         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
16128         will likely work.
16129
16130 2010-11-12  Bruno Haible  <bruno@clisp.org>
16131
16132         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
16133         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
16134         * lib/nanosleep.c (nanosleep): Likewise.
16135
16136 2010-11-11  Bruno Haible  <bruno@clisp.org>
16137
16138         fcntl-h: Fix for use of C++ on glibc systems.
16139         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16140         also on glibc systems in C++ mode.
16141         Reported by Gary V. Vaughan <gary@gnu.org>.
16142
16143 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16144
16145         mknod: avoid false failure with dash
16146         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
16147
16148 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16149
16150         unlink: Fix "is it should" typo in diagnostic.
16151         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
16152         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
16153
16154 2010-11-11  Bruno Haible  <bruno@clisp.org>
16155
16156         Tests for module 'strerror_r-posix'.
16157         * modules/strerror_r-posix-tests: New file.
16158         * tests/test-strerror_r.c: New file.
16159         * tests/test-string-c++.cc: Check the signature of strerror_r.
16160
16161         New module 'strerror_r-posix'.
16162         * lib/string.in.h (strerror_r): New declaration.
16163         * lib/strerror_r.c: New file.
16164         * m4/strerror_r.m4: New file.
16165         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
16166         of strerror_r.
16167         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
16168         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
16169         * modules/strerror_r-posix: New file.
16170         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
16171         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
16172         * doc/posix-functions/strerror_r.texi: Mention the new module and the
16173         portability problems.
16174
16175 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
16176
16177         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
16178         line is also considered for output. Quoted function name in shell
16179         command, so temporary files for functions like MyClass::operator()
16180         are removed correctly without errors.
16181
16182 2010-11-09  Bruno Haible  <bruno@clisp.org>
16183
16184         * doc/posix-functions/strerror.texi: List more failing platforms.
16185
16186         * doc/posix-functions/strerror.texi: Add a comment.
16187
16188 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
16189
16190         fdopendir: fix bug on MacOS X when low on file descriptors
16191
16192         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
16193         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
16194         All callers changed.
16195         (fdopendir): Invoke save_cwd at the top level, not after using
16196         multiple dup() calls to use up file descriptors.  Then retry
16197         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
16198         less than the maximum number of open file descriptors, because
16199         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
16200         on Mac OS X 10.6.4 for tar 1.24
16201         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
16202         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
16203         and for tar 1.25
16204         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
16205
16206 2010-11-07  Bruno Haible  <bruno@clisp.org>
16207
16208         vasnprintf: Support I flag on glibc systems.
16209         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
16210         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
16211         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
16212         snprintf function.
16213         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
16214         glibc systems.
16215         * tests/test-vasnprintf-posix3.c: New file.
16216         * modules/vasnprintf-posix-tests (Files): Add it.
16217         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
16218
16219 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16220
16221         [html] Fix copy/paste bug: Use unique name for compiler warnings.
16222         * MODULES.html.sh: For compiler warnings, use name
16223         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
16224
16225 2010-11-05  Eric Blake  <eblake@redhat.com>
16226
16227         ceil, floor: avoid spurious failure with icc
16228         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
16229         [denormals-as-zero] when optimizing without -mieee-fp option.
16230         * tests/test-floorf2.c (floorf_reference): Likewise.
16231         * tests/test-ceilf1.c (dummy): New function.
16232         (main): Use it to outsmart icc's optimization.
16233         * tests/test-floorf1.c (dummy, main): Likewise.
16234
16235         tests: require working signbit
16236         * modules/ceilf-tests (Depends-on): Add signbit.
16237         * modules/ceill-tests (Depends-on): Likewise.
16238         * modules/floorf-tests (Depends-on): Likewise.
16239         * modules/floorl-tests (Depends-on): Likewise.
16240         * modules/round-tests (Depends-on): Likewise.
16241         * modules/roundf-tests (Depends-on): Likewise.
16242         * modules/roundl-tests (Depends-on): Likewise.
16243         * modules/trunc-tests (Depends-on): Likewise.
16244         * modules/truncf-tests (Depends-on): Likewise.
16245         * modules/truncl-tests (Depends-on): Likewise.
16246
16247         strtod: work around icc bug
16248         * lib/strtod.c (minus_zero): Define to working value.
16249         (strtod): Use it to avoid icc bug.
16250
16251         copysign: enhance tests
16252         * modules/copysign-tests (Files): Add minus-zero.h.
16253         * tests/test-copysign.c (main): Also test zeros.
16254
16255 2010-11-04  Eric Blake  <eblake@redhat.com>
16256
16257         ceil, floor, round, trunc: enhance tests of -0
16258         * tests/test-ceilf1.c (main): Ensure correct sign of result.
16259         * tests/test-ceill.c (main): Likewise.
16260         * tests/test-floorf1.c (main): Likewise.
16261         * tests/test-floorl.c (main): Likewise.
16262         * tests/test-round1.c (main): Likewise.
16263         * tests/test-roundf1.c (main): Likewise.
16264         * tests/test-roundl.c (main): Likewise.
16265         * tests/test-trunc1.c (main): Likewise.
16266         * tests/test-truncf1.c (main): Likewise.
16267         * tests/test-truncl.c (main): Likewise.
16268
16269 2010-11-04  Eric Blake  <eblake@redhat.com>
16270
16271         frexp, tests: work around ICC bug with -zero
16272         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
16273         works with more compilers.
16274         * tests/minus-zero.h: New file.
16275         * modules/ceilf-tests (Files): Include it.
16276         * modules/ceill-tests (Files): Likewise.
16277         * modules/floorf-tests (Files): Likewise.
16278         * modules/floorl-tests (Files): Likewise.
16279         * modules/frexp-nolibm-tests (Files): Likewise.
16280         * modules/frexp-tests (Files): Likewise.
16281         * modules/frexpl-nolibm-tests (Files): Likewise.
16282         * modules/frexpl-tests (Files): Likewise.
16283         * modules/isnan-tests (Files): Likewise.
16284         * modules/isnand-nolibm-tests (Files): Likewise.
16285         * modules/isnand-tests (Files): Likewise.
16286         * modules/isnanf-nolibm-tests (Files): Likewise.
16287         * modules/isnanf-tests (Files): Likewise.
16288         * modules/isnanl-nolibm-tests (Files): Likewise.
16289         * modules/isnanl-tests (Files): Likewise.
16290         * modules/round-tests (Files): Likewise.
16291         * modules/roundf-tests (Files): Likewise.
16292         * modules/roundl-tests (Files): Likewise.
16293         * modules/ldexpl-tests (Files): Likewise.
16294         * modules/signbit-tests (Files): Likewise.
16295         * modules/snprintf-posix-tests (Files): Likewise.
16296         * modules/sprintf-posix-tests (Files): Likewise.
16297         * modules/strtod-tests (Files): Likewise.
16298         * modules/trunc-tests (Files): Likewise.
16299         * modules/truncf-tests (Files): Likewise.
16300         * modules/truncl-tests (Files): Likewise.
16301         * modules/vsnprintf-posix-tests (Files): Likewise.
16302         * modules/vsprintf-posix-tests (Files): Likewise.
16303         * modules/vasnprintf-posix-tests (Files): Likewise.
16304         * modules/vasprintf-posix-tests (Files): Likewise.
16305         * tests/test-ceilf1.c (main): Use it.
16306         * tests/test-ceill.c (main): Likewise.
16307         * tests/test-floorf1.c (main): Likewise.
16308         * tests/test-floorl.c (main): Likewise.
16309         * tests/test-frexp.c (main): Likewise.
16310         * tests/test-frexpl.c (main): Likewise.
16311         * tests/test-isnan.c (main): Likewise.
16312         * tests/test-isnand.h (main): Likewise.
16313         * tests/test-isnanf.h (main): Likewise.
16314         * tests/test-isnanl.h (main): Likewise.
16315         * tests/test-ldexpl.c (main): Likewise.
16316         * tests/test-round.c (main): Likewise.
16317         * tests/test-roundf.c (main): Likewise.
16318         * tests/test-roundl.c (main): Likewise.
16319         * tests/test-signbit.c (test_signbitf, test_signbitd)
16320         (test_signbitl): Likewise.
16321         * tests/test-snprintf-posix.h (test_function): Likewise.
16322         * tests/test-sprintf-posix.h (test_function): Likewise.
16323         * tests/test-strtod.c (main): Likewise.
16324         * tests/test-trunc1.c (main): Likewise.
16325         * tests/test-truncf1.c (main): Likewise.
16326         * tests/test-truncl.c (main): Likewise.
16327
16328         isnanl: work around icc bug
16329         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
16330
16331 2010-11-03  Eric Blake  <eblake@redhat.com>
16332
16333         tests: fix compiler warnings
16334         * tests/test-getopt.h (test_getopt): Fix condition.
16335         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16336         * tests/test-pipe2.c (main): Likewise.
16337         * tests/test-quotearg-simple.c (main): Avoid icc warning.
16338
16339         utimens: fix broken m4 test
16340         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
16341
16342 2010-10-28  Bruno Haible  <bruno@clisp.org>
16343
16344         posix_spawn*, getdtablesize: Relax license.
16345         * modules/posix_spawn (License): Change to LGPLv2+.
16346         * modules/posix_spawnp (License): Likewise.
16347         * modules/posix_spawn-internal (License): Likewise.
16348         * modules/posix_spawnattr_init (License): Likewise.
16349         * modules/posix_spawnattr_getflags (License): Likewise.
16350         * modules/posix_spawnattr_setflags (License): Likewise.
16351         * modules/posix_spawnattr_getpgroup (License): Likewise.
16352         * modules/posix_spawnattr_setpgroup (License): Likewise.
16353         * modules/posix_spawnattr_getschedparam (License): Likewise.
16354         * modules/posix_spawnattr_setschedparam (License): Likewise.
16355         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
16356         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
16357         * modules/posix_spawnattr_getsigdefault (License): Likewise.
16358         * modules/posix_spawnattr_setsigdefault (License): Likewise.
16359         * modules/posix_spawnattr_getsigmask (License): Likewise.
16360         * modules/posix_spawnattr_setsigmask (License): Likewise.
16361         * modules/posix_spawnattr_destroy (License): Likewise.
16362         * modules/posix_spawn_file_actions_init (License): Likewise.
16363         * modules/posix_spawn_file_actions_addclose (License): Likewise.
16364         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
16365         * modules/posix_spawn_file_actions_addopen (License): Likewise.
16366         * modules/posix_spawn_file_actions_destroy (License): Likewise.
16367         * modules/getdtablesize (License): Likewise.
16368         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
16369
16370 2010-10-26  Bruno Haible  <bruno@clisp.org>
16371
16372         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
16373         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
16374         Cygwin and mingw.
16375         Suggested by Eric Blake.
16376
16377 2010-10-26  Bruno Haible  <bruno@clisp.org>
16378
16379         stdio: Work around compilation error due to renameat() on Solaris 10.
16380         * lib/stdio.in.h: Include <unistd.h> on Solaris.
16381         * lib/renameat.c: Don't include <unistd.h> here.
16382         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
16383         Reported by Paul Eggert and Eric Blake.
16384
16385 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16386
16387         renameat: port to Solaris 10, which declares renameat in unistd.h
16388
16389         * lib/renameat.c: Include unistd.h before stdio.h, because
16390         Solaris 10 declares renameat in unistd.h.  Problem encountered
16391         when building GNU tar 1.24 on Solaris 10.
16392
16393 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16394
16395         fdopendir: fix C89 compilation
16396         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
16397         compilers.
16398
16399 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16400
16401         inttostr: simplify by removing unnecessary redundancy
16402         * lib/anytostr.c: Don't include verify.h.
16403         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
16404         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
16405         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
16406         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
16407         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
16408         Likewise.
16409         * modules/inttostr (Depends-on): Remove 'verify'.
16410
16411 2010-10-23  Bruno Haible  <bruno@clisp.org>
16412
16413         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
16414         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
16415         Reported by Eric Blake.
16416
16417 2010-10-23  Bruno Haible  <bruno@clisp.org>
16418
16419         Tests: Fix LOCALE_JA on MirBSD 10.
16420         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
16421         to an UTF-8 locale.
16422         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
16423         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16424         Reported by Eric Blake.
16425
16426 2010-10-21  Bruno Haible  <bruno@clisp.org>
16427
16428         nl_langinfo test: Avoid test failure on NetBSD 5.
16429         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
16430         Reported by Eric Blake.
16431
16432 2010-10-21  Eric Blake  <eblake@redhat.com>
16433
16434         c-stack: work around libsigsegv 2.8 bug
16435         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
16436         overflow on at least PowerPC64.
16437
16438 2010-10-17  Bruno Haible  <bruno@clisp.org>
16439
16440         userspec: Drop redundant file.
16441         * modules/userspec (Files): Remove lib/inttostr.h.
16442
16443 2010-10-17  Bruno Haible  <bruno@clisp.org>
16444
16445         nl_langinfo tests: Silence some warnings.
16446         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
16447         Reported by Jim Meyering.
16448
16449 2010-10-17  Bruno Haible  <bruno@clisp.org>
16450
16451         Make use of GCC's attribute __alloc_size__.
16452         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
16453         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
16454         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
16455         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
16456         __alloc_size__.
16457         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
16458         Suggested by Jim Meyering.
16459
16460 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
16461
16462         bootstrap: anchor .gitignore entries.
16463         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
16464         with...
16465         (insert_vc_ignore): ... this new function, which prepends `/' to
16466         all .gitignore entries before passing them to
16467         insert_sorted_if_absent.
16468
16469 2010-10-16  Bruno Haible  <bruno@clisp.org>
16470
16471         nextafter: Fix configure check.
16472         * modules/nextafter (configure.ac): Correct expected prototype.
16473
16474 2010-10-16  Bruno Haible  <bruno@clisp.org>
16475
16476         termios: Update documentation.
16477         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
16478
16479 2010-10-16  Bruno Haible  <bruno@clisp.org>
16480
16481         tests: Make them compile with TinyCC.
16482         * tests/test-strstr.c (main): Remove parentheses around array
16483         initializer.
16484
16485 2010-10-15  Eric Blake  <eblake@redhat.com>
16486
16487         ignore-value: make header idempotent
16488         * lib/ignore-value.h: Add double-inclusion guards.
16489         Reported by Stefan Berger.
16490
16491 2010-10-15  Jim Meyering  <meyering@redhat.com>
16492
16493         GNUmakefile: handle "stable" target, not "major"
16494         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
16495         lists in maint.mk and announce-gen.  Without this, "make stable"
16496         would fail to ensure that $(VERSION) is up to date.
16497
16498 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
16499
16500         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
16501         & co.
16502
16503 2010-10-14  Bruno Haible  <bruno@clisp.org>
16504
16505         vasnprintf: Don't set errno to 0.
16506         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
16507         block that sets it to 0.
16508         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
16509
16510 2010-10-14  Bruno Haible  <bruno@clisp.org>
16511
16512         socketlib: Fix.
16513         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
16514         gl_PREREQ_SYS_H_WINSOCK2.
16515         Reported by Ian Beckwith <ianb@erislabs.net>.
16516
16517 2010-10-13  Jim Meyering  <meyering@redhat.com>
16518
16519         test-select-stdin.c: avoid warn_unused_result warnings
16520         * tests/test-select-stdin.c: Include "macros.h".
16521         ASSERT that read and fflush succeed.
16522
16523 2010-10-13  Jim Meyering  <meyering@redhat.com>
16524
16525         git-version-gen: do require git-VC'd files in cwd
16526         * build-aux/git-version-gen: Reject a git version string
16527         if there are no commits associated with the current directory.
16528         This avoids an unlikely false-positive (unrelated dir whose parent
16529         repository also contains a tag matching v*), as pointed out
16530         by Giuseppe Scrivano in
16531         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
16532
16533 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16534
16535         argv-iter: omit nonconforming declaration
16536         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
16537         enum arg_iter_err declaration, which doesn't conform to C99.
16538         Solaris 10 cc warns about this.
16539
16540 2010-10-13  Eric Blake  <eblake@redhat.com>
16541
16542         termios: fix compilation on mingw
16543         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
16544         (gl_TERMIOS_H): Adjust it on mingw.
16545         * modules/termios (Makefile.am): Substitute new key.
16546         * lib/termios.in.h (includes): Make include_next conditional.
16547         * doc/posix-headers/termios.texi (termios.h): Update
16548         documentation.
16549         Reported by Daniel P. Berrange.
16550
16551 2010-10-13  Jim Meyering  <meyering@redhat.com>
16552
16553         git-version-gen: don't require that .git/ be in the current dir
16554         * build-aux/git-version-gen: Adjust this script so that it works
16555         when run from any working directory beneath the top-level .git/-
16556         containing directory.  Inspired by a patch from Giuseppe Scrivano,
16557         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
16558
16559         test-select: avoid warn_unused_result warnings
16560         * tests/test-select.c: Include "macros.h".
16561         ASSERT that each call to read, write, and pipe succeeds.
16562         While not technically required, also check each "close".
16563         * modules/select-tests (Files): Add tests/macros.h.
16564
16565         test-symlinkat: remove declaration of unused local
16566         * tests/test-symlinkat.c (main): Remove unused local, "buf".
16567
16568         test-inttostr: avoid shadowing warnings
16569         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
16570         and use malloc rather than the stack for the same reason as
16571         mentioned in the comment justifying the other allocation.
16572
16573 2010-10-11  Bruno Haible  <bruno@clisp.org>
16574
16575         stdlib: Allow multiple gnulib generated replacements to coexist.
16576         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
16577         Reported by Sam Steingold <sds@gnu.org>.
16578
16579 2010-10-11  Jim Meyering  <meyering@redhat.com>
16580
16581         fix a documentation typo
16582         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
16583
16584 2010-10-11  Eric Blake  <eblake@redhat.com>
16585
16586         futimens: work around Solaris 11 bug
16587         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
16588         * tests/test-futimens.h (test_futimens): Enhance, rather than
16589         weaken test.
16590         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16591
16592 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16593
16594         Indentation.
16595         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
16596         higher-level operators more to the left.
16597
16598 2010-10-11  Jim Meyering  <meyering@redhat.com>
16599
16600         test-futimens: avoid unwarranted test failure on Solaris 5.11
16601         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
16602         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
16603         because it tries to dereference the NULL name argument.
16604
16605 2010-10-11  Bruno Haible  <bruno@clisp.org>
16606
16607         Indentation.
16608         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
16609         indentation.
16610
16611 2010-10-11  Jim Meyering  <meyering@redhat.com>
16612
16613         spawn.in.h: make indentation consistent with parentheses
16614         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
16615         Make indentation consistent with parentheses.
16616
16617 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
16618
16619         Fix mismatched parens in previous commit
16620         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
16621         parens.
16622
16623 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16624
16625         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
16626
16627         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
16628         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
16629         * lib/malloca.c: Include "verify.h".
16630         (verify1): Remove, replacing with a verify call.
16631         * lib/relocwrapper.c (verify1): Likewise.
16632         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
16633         Likewise.
16634         * modules/malloca (Depends-on): Add 'verify'.
16635         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
16636         * modules/vasnprintf (Depends-on): Add 'verify'.
16637         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16638         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16639         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16640         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16641         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16642         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16643         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16644
16645         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
16646
16647         Formerly the style was sometimes 2*X - 1, because the C standard
16648         was wrongly thought to disallow ?: in integral constant expressions.
16649         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
16650         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
16651         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16652         * lib/stdint.in.h (_verify_intmax_size): Likewise.
16653         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
16654         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
16655         verify that time_t cannot be floating.
16656
16657 2010-10-08  Eric Blake  <eblake@redhat.com>
16658
16659         time: enforce recent POSIX ruling that time_t is integral
16660         * lib/time.in.h (__time_t_must_be_integral): Detect any
16661         problematic systems, allowing the rest of gnulib to assume POSIX.
16662
16663 2010-10-08  Jim Meyering  <meyering@redhat.com>
16664
16665         fdopendir: fix a bug on systems lacking openat and /proc support
16666         OpenBSD 4.7 is one such system.  The most noticeable effect was
16667         failure of any application making nontrivial use of fts: rm, du,
16668         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
16669           ./rm: traversal failed: `a': Bad file descriptor
16670         Debugging that, you see that even though FD 6 was closed just
16671         prior to the opendir call in fd_clone_opendir, its resulting
16672         dir->dd_fd was 8, rather than the expected value of 6:
16673
16674         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
16675         93                close (fd);
16676         (gdb) n
16677         94                dir = fd_clone_opendir (dupfd);
16678         (gdb) n
16679         95                saved_errno = errno;
16680         (gdb) p dir->dd_fd
16681         $11 = 8
16682
16683         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
16684         The problem is that on OpenBSD, fd_clone_opendir has to resort
16685         to using the old-style save/restore CWD mechanism, due to its
16686         lack of openat/proc support, and *that* would steal the FD (6)
16687         that opendir was supposed to use.
16688
16689         The fix is to squirrel away the desired FD so that save_cwd uses a
16690         different one, and then free the dest FD right before calling opendir.
16691         That guarantees opendir will use the required file descriptor.
16692
16693         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
16694
16695 2010-10-08  Bruno Haible  <bruno@clisp.org>
16696
16697         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
16698         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
16699
16700 2010-10-08  Bruno Haible  <bruno@clisp.org>
16701
16702         nanosleep: Make replacement POSIX compliant.
16703         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
16704         is out of range.
16705         Reported by Jim Meyering.
16706
16707 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16708
16709         bootstrap: add hook for altering gnulib.mk, for Bison
16710         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
16711         the Bison bootstrapping process can rewrite file names and variables
16712         in this file before later parts of 'bootstrap' use the file.
16713         Bison wants to include lib/gnulib.mk from the top-level makefile,
16714         so it needs the file names in this file to be relative to the top
16715         level, not relative to lib; plus it needs variable names to be
16716         rewritten.
16717         (slurp): Use the new function.
16718
16719         bootstrap: reformat for readability
16720         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
16721
16722 2010-10-08  Eric Blake  <eblake@redhat.com>
16723
16724         docs: update cygwin progress
16725         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
16726         1.7.7.
16727         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
16728         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
16729         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
16730         * doc/posix-functions/carg.texi (carg): Likewise.
16731         * doc/posix-functions/cargf.texi (cargf): Likewise.
16732         * doc/posix-functions/casin.texi (casin): Likewise.
16733         * doc/posix-functions/casinf.texi (casinf): Likewise.
16734         * doc/posix-functions/casinh.texi (casinh): Likewise.
16735         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
16736         * doc/posix-functions/catan.texi (catan): Likewise.
16737         * doc/posix-functions/catanf.texi (catanf): Likewise.
16738         * doc/posix-functions/catanh.texi (catanh): Likewise.
16739         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
16740         * doc/posix-functions/ccos.texi (ccos): Likewise.
16741         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
16742         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
16743         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
16744         * doc/posix-functions/cexp.texi (cexp): Likewise.
16745         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
16746         * doc/posix-functions/cimag.texi (cimag): Likewise.
16747         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
16748         * doc/posix-functions/clog.texi (clog): Likewise.
16749         * doc/posix-functions/clogf.texi (clogf): Likewise.
16750         * doc/posix-functions/conj.texi (conj): Likewise.
16751         * doc/posix-functions/conjf.texi (conjf): Likewise.
16752         * doc/posix-functions/cpow.texi (cpow): Likewise.
16753         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
16754         * doc/posix-functions/cproj.texi (cproj): Likewise.
16755         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
16756         * doc/posix-functions/creal.texi (creal): Likewise.
16757         * doc/posix-functions/crealf.texi (crealf): Likewise.
16758         * doc/posix-functions/csin.texi (csin): Likewise.
16759         * doc/posix-functions/csinf.texi (csinf): Likewise.
16760         * doc/posix-functions/csinh.texi (csinh): Likewise.
16761         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
16762         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
16763         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
16764         * doc/posix-functions/ctan.texi (ctan): Likewise.
16765         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
16766         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
16767         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
16768         * doc/posix-headers/complex.texi (complex.h): Likewise.
16769
16770 2010-10-07  Jim Meyering  <meyering@redhat.com>
16771
16772         parse-datetime: avoid compilation failure on OpenBSD 4.7
16773         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
16774         This works around a compilation failure on OpenBSD 4.7:
16775         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
16776
16777 2010-10-07  Eric Blake  <eblake@redhat.com>
16778
16779         docs: update cygwin progress
16780         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
16781         1.7.6.
16782         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16783         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
16784         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
16785         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
16786         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
16787         Likewise.
16788         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
16789         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
16790         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
16791         Likewise.
16792         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
16793         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
16794         Likewise.
16795         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16796         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16797         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16798         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16799         Likewise.
16800         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16801         Likewise.
16802         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16803
16804         docs: update parse-datetime history
16805         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16806         documentation of this function's history and alternatives.
16807
16808         cygwin: use more robust version check
16809         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16810         exclude an eventual cygwin 1.9.1.
16811         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16812         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16813         (gl_FUNC_STRCASESTR): Likewise.
16814         Reported by Bruno Haible.
16815
16816 2010-10-06  Bruno Haible  <bruno@clisp.org>
16817
16818         string, sys_select: Avoid #including large headers unless necessary.
16819         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16820         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
16821         OSF/1, BeOS, Haiku.
16822         Reported by Jim Meyering.
16823
16824 2010-10-05  Eric Blake  <eblake@redhat.com>
16825
16826         memmem, strstr, strcasestr: fix bug with long periodic needle
16827         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
16828         periodic needle having false positive.
16829         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
16830         and cygwin 1.7.7.
16831         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
16832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16833         (gl_FUNC_STRCASESTR): Likewise.
16834         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16835         * tests/test-memmem.c (main): Expose the bug.
16836         * tests/test-strcasestr.c (main): Likewise.
16837         * tests/test-strstr.c (main): Likewise.
16838         * tests/test-c-strcasestr.c (main): Likewise.
16839         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
16840         * doc/posix-functions/strstr.texi (strstr): Likewise.
16841         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16842         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
16843
16844 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16845
16846         parse-datetime: do some more renaming
16847         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
16848         parse_datetime, not get_date.  Mention the renaming.
16849         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
16850         in comments.
16851         * m4/bison.m4: Likewise.
16852
16853 2010-10-05  Eric Blake  <eblake@redhat.com>
16854
16855         parse-datetime: better name than get_date
16856         * NEWS: Reword the deprecation notice.
16857         * modules/get_date: Rename to modules/parse-datetime.
16858         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
16859         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
16860         * lib/get_date.y: Rename to lib/parse-datetime.y.
16861         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
16862         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
16863         * doc/getdate.texi: Provide fallback wrapper.
16864         * lib/getdate.h: Move guts, and wrap...
16865         * lib/parse-datetime.h: ...new file.
16866         * lib/parse-datetime.y (get_date): Rename...
16867         (parse_datetime): ...to this.
16868         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
16869         (gl_PARSE_DATETIME): ...to this.
16870         * doc/posix-functions/getdate.texi (get_date): Provide fallback
16871         documentation.
16872         * modules/getdate (Files): Provide fallback docs and header.
16873         (Notice, Depends-on): Update references.
16874         * tests/test-parse-datetime.c: Likewise.
16875         * DEPENDENCIES: Likewise.
16876         * MODULES.html.sh (Date and time <time.h>): Likewise.
16877         * doc/parse-datetime.texi (Date input formats)
16878         (Authors of parse_datetime): Likewise.
16879         * modules/parse-datetime (Files, configure.ac, Makefile.am)
16880         (Include): Likewise.
16881         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
16882         * gnulib-tool: Likewise.
16883         * m4/bison.m4 (gl_BISON): Likewise.
16884         Suggested by Bruno Haible.
16885
16886 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16887
16888         more ports to Solaris tr, which needs [] around ranges
16889         * gnulib-tool: Solaris tr needs [] around ranges.
16890         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16891         * tests/test-pipe-filter-gi1.c (main): Likewise.
16892         * tests/test-pipe-filter-ii1.c (main): Likewise.
16893
16894 2010-10-05  Eric Blake  <eblake@redhat.com>
16895
16896         bootstrap: fix Solaris regression
16897         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16898         around ranges.
16899         Reported by Pádraig Brady.
16900
16901         bootstrap: work with pkg-config
16902         * build-aux/bootstrap (check_versions): Also transliterate - in
16903         prerequisite name.
16904         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16905         prerequisites that were already found, to avoid confusion.
16906         Reported by Justin Clift.
16907
16908         faccessat: remove unused wrappers
16909         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16910         presence of these wrappers dragged in -lgen on Solaris.
16911         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16912
16913 2010-10-05  Jim Meyering  <meyering@redhat.com>
16914
16915         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16916         * Makefile (sc_pragma_columns): New syntax-check rule.
16917
16918 2010-10-04  Bruno Haible  <bruno@clisp.org>
16919
16920         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16921         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16922         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16923         Reported by Bruce Korb and Eric Blake.
16924
16925 2010-10-04  Bruno Haible  <bruno@clisp.org>
16926
16927         threadlib: Make option --with-libpth-prefix work.
16928         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16929         use $LIBPTH, not just -lpth.
16930
16931 2010-10-04  Bruno Haible  <bruno@clisp.org>
16932
16933         Avoid line length limitation from HP NonStop system header files.
16934         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16935         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16936         * lib/ctype.in.h: Likewise.
16937         * lib/dirent.in.h: Likewise.
16938         * lib/errno.in.h: Likewise.
16939         * lib/fcntl.in.h: Likewise.
16940         * lib/float.in.h: Likewise.
16941         * lib/getopt.in.h: Likewise.
16942         * lib/iconv.in.h: Likewise.
16943         * lib/inttypes.in.h: Likewise.
16944         * lib/langinfo.in.h: Likewise.
16945         * lib/locale.in.h: Likewise.
16946         * lib/math.in.h: Likewise.
16947         * lib/netdb.in.h: Likewise.
16948         * lib/netinet_in.in.h: Likewise.
16949         * lib/poll.in.h: Likewise.
16950         * lib/pthread.in.h: Likewise.
16951         * lib/pty.in.h: Likewise.
16952         * lib/sched.in.h: Likewise.
16953         * lib/se-selinux.in.h: Likewise.
16954         * lib/search.in.h: Likewise.
16955         * lib/signal.in.h: Likewise.
16956         * lib/spawn.in.h: Likewise.
16957         * lib/stdarg.in.h: Likewise.
16958         * lib/stddef.in.h: Likewise.
16959         * lib/stdint.in.h: Likewise.
16960         * lib/stdio.in.h: Likewise.
16961         * lib/stdlib.in.h: Likewise.
16962         * lib/string.in.h: Likewise.
16963         * lib/strings.in.h: Likewise.
16964         * lib/sys_file.in.h: Likewise.
16965         * lib/sys_ioctl.in.h: Likewise.
16966         * lib/sys_select.in.h: Likewise.
16967         * lib/sys_socket.in.h: Likewise.
16968         * lib/sys_stat.in.h: Likewise.
16969         * lib/sys_time.in.h: Likewise.
16970         * lib/sys_times.in.h: Likewise.
16971         * lib/sys_utsname.in.h: Likewise.
16972         * lib/sys_wait.in.h: Likewise.
16973         * lib/sysexits.in.h: Likewise.
16974         * lib/termios.in.h: Likewise.
16975         * lib/time.in.h: Likewise.
16976         * lib/unistd.in.h: Likewise.
16977         * lib/wchar.in.h: Likewise.
16978         * lib/wctype.in.h: Likewise.
16979         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16980         * modules/ctype (Makefile.am): Likewise.
16981         * modules/dirent (Makefile.am): Likewise.
16982         * modules/errno (Makefile.am): Likewise.
16983         * modules/fcntl-h (Makefile.am): Likewise.
16984         * modules/float (Makefile.am): Likewise.
16985         * modules/getopt-posix (Makefile.am): Likewise.
16986         * modules/iconv-h (Makefile.am): Likewise.
16987         * modules/inttypes (Makefile.am): Likewise.
16988         * modules/langinfo (Makefile.am): Likewise.
16989         * modules/locale (Makefile.am): Likewise.
16990         * modules/math (Makefile.am): Likewise.
16991         * modules/netdb (Makefile.am): Likewise.
16992         * modules/netinet_in (Makefile.am): Likewise.
16993         * modules/poll-h (Makefile.am): Likewise.
16994         * modules/pthread (Makefile.am): Likewise.
16995         * modules/pty (Makefile.am): Likewise.
16996         * modules/sched (Makefile.am): Likewise.
16997         * modules/search (Makefile.am): Likewise.
16998         * modules/selinux-h (Makefile.am): Likewise.
16999         * modules/signal (Makefile.am): Likewise.
17000         * modules/spawn (Makefile.am): Likewise.
17001         * modules/stdarg (Makefile.am): Likewise.
17002         * modules/stddef (Makefile.am): Likewise.
17003         * modules/stdint (Makefile.am): Likewise.
17004         * modules/stdio (Makefile.am): Likewise.
17005         * modules/stdlib (Makefile.am): Likewise.
17006         * modules/string (Makefile.am): Likewise.
17007         * modules/strings (Makefile.am): Likewise.
17008         * modules/sys_file (Makefile.am): Likewise.
17009         * modules/sys_ioctl (Makefile.am): Likewise.
17010         * modules/sys_select (Makefile.am): Likewise.
17011         * modules/sys_socket (Makefile.am): Likewise.
17012         * modules/sys_stat (Makefile.am): Likewise.
17013         * modules/sys_time (Makefile.am): Likewise.
17014         * modules/sys_times (Makefile.am): Likewise.
17015         * modules/sys_utsname (Makefile.am): Likewise.
17016         * modules/sys_wait (Makefile.am): Likewise.
17017         * modules/sysexits (Makefile.am): Likewise.
17018         * modules/termios (Makefile.am): Likewise.
17019         * modules/time (Makefile.am): Likewise.
17020         * modules/unistd (Makefile.am): Likewise.
17021         * modules/wchar (Makefile.am): Likewise.
17022         * modules/wctype (Makefile.am): Likewise.
17023
17024 2010-10-04  Bruno Haible  <bruno@clisp.org>
17025
17026         read-file tests: Avoid a test failure on NonStop Kernel.
17027         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
17028         a regular file.
17029         Reported by Joachim Schmitz <schmitz@hp.com>.
17030
17031 2010-10-03  Bruno Haible  <bruno@clisp.org>
17032
17033         gnulib-tool: Fixes for --create-testdir with --libtool.
17034         * gnulib-tool (func_get_automake_snippet): Don't augment
17035         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
17036         an executable.
17037         (func_create_testdir): Handle module 'alloca' like func_import.
17038         Reported by Bruce Korb <bruce.korb@gmail.com>.
17039
17040 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
17041
17042         Avoid some lines longer than 80 characters.
17043         * lib/stdint.in.h: Break long comment lines.
17044         * lib/math.in.h: Likewise.
17045         (_GL_NUM_UINT_WORDS): New macro, for readability.
17046         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
17047         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
17048         * lib/stdlib.in.h: Likewise.
17049         * lib/spawn.in.h: Likewise.
17050         * lib/sys_socket.in.h: Update an URL.
17051         * lib/sys_stat.in.h: Break long line.
17052
17053 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
17054
17055         Improve pmccabe2html.
17056         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
17057         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
17058         when the sources change. Remove the line in the HTML about "Used
17059         ranges" (which implied that there might be other unused ranges),
17060         rename "Resume" to "Summary" (easier to understand for more users).
17061         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
17062         styles, and some unnecessary blank lines.
17063
17064 2010-10-03  Bruno Haible  <bruno@clisp.org>
17065             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
17066
17067         acl: Add support for ACLs on NonStop Kernel.
17068         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
17069         Check whether the function aclsort() exists.
17070         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
17071         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
17072         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17073         (acl_nontrivial [HAVE_ACLSORT]: New function.
17074         (file_has_acl): Implement for NonStop Kernel.
17075         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17076         (qset_acl): Implement for NonStop Kernel.
17077         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
17078         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17079         (main): Implement for NonStop Kernel.
17080         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
17081         Kernel. Handle this flavor.
17082         * tests/test-set-mode-acl.sh: Likewise.
17083         * tests/test-copy-acl.sh: Likewise.
17084         * tests/test-copy-file.sh: Likewise.
17085
17086 2010-10-03  Bruno Haible  <bruno@clisp.org>
17087
17088         Info about ACLs on NonStop Kernel.
17089         * doc/acl-resources.txt: Add info about NonStop Kernel.
17090         References by Joachim Schmitz <schmitz@hp.com>.
17091
17092 2010-10-02  Bruno Haible  <bruno@clisp.org>
17093
17094         Define missing EDQUOT on NonStop Kernel.
17095         * lib/errno.in.h (EDQUOT): Assign a value if missing.
17096         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
17097         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
17098         missing.
17099         * doc/posix-headers/errno.texi: Mention the NSK bug.
17100         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
17101         Reported by Joachim Schmitz <schmitz@hp.com>.
17102
17103 2010-10-02  Bruno Haible  <bruno@clisp.org>
17104
17105         Update doc for POSIX:2008.
17106         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
17107         Update URL of POSIX specification.
17108
17109 2010-10-02  Bruno Haible  <bruno@clisp.org>
17110
17111         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
17112         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
17113         from gnulib, not from Automake.
17114
17115 2010-10-02  Bruno Haible  <bruno@clisp.org>
17116
17117         New module 'system-posix'.
17118         * modules/system-posix: New file.
17119         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
17120         module is present.
17121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17122         GNULIB_SYSTEM_POSIX.
17123         * modules/stdlib (Depends-on): Remove sys_wait.
17124         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
17125         * doc/posix-functions/system.texi: Mention the new module.
17126         * doc/posix-headers/stdlib.texi: Likewise.
17127         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
17128         define test_sys_wait_macros to a no-op.
17129         Reported by Sam Steingold <sds@gnu.org>.
17130
17131 2010-09-30  Bruno Haible  <bruno@clisp.org>
17132
17133         More renaming from 'getdate' to 'get_date'.
17134         * doc/get_date.texi: Renamed from doc/getdate.texi.
17135         * modules/get_date (Files): Update.
17136         * MODULES.html.sh (Date and time <time.h>): Update.
17137         * DEPENDENCIES: Update.
17138         * gnulib-tool: Update comment.
17139         * m4/bison.m4 (gl_BISON): Likewise.
17140         * m4/get_date.m4 (gl_GET_DATE): Likewise.
17141
17142 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
17143
17144         bootstrap: support ACLOCAL_FLAGS during aclocal
17145         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
17146         can add additional -I dir for third-party .m4 files.
17147
17148 2010-09-30  Eric Blake  <eblake@redhat.com>
17149
17150         bootstrap: use glibtoolize on MacOS
17151         * build-aux/bootstrap (check_versions): Convert libtool into
17152         libtoolize.
17153         (tool search): Move libtool check earlier, and look for
17154         glibtoolize for MacOS.
17155         (gnulib_tool_options): Auto-add --libtool when appropriate.
17156         Reported by Justin Clift.
17157
17158         poll: fix typo that broke test on MacOS
17159         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
17160         Reported by Justin Clift.
17161
17162         getdate: rename to get_date
17163         Note: getdate.h is not renamed, to minimize client impact.
17164         * modules/getdate: Mark obsolete.  Move old contents...
17165         * modules/get_date: ...to new module name.
17166         * modules/getdate-tests: Move...
17167         * modules/get_date-tests: ...here.
17168         * m4/getdate.m4: Move...
17169         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
17170         * lib/getdate.y: Move...
17171         * lib/get_date.y: ...here.
17172         * tests/test-getdate.c: Move...
17173         * tests/test-get_date.c: ...here.
17174         * doc/posix-functions/getdate.texi (getdate): Update name.
17175         * NEWS: Mention the change.
17176
17177 2010-09-29  Bruno Haible  <bruno@clisp.org>
17178
17179         Separate the module 'waitpid' from the module 'sys_wait'.
17180         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
17181         present.
17182         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
17183         gl_MODULE_INDICATOR_FOR_TESTS.
17184         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
17185         * modules/sys_wait (Depends-on): Remove waitpid.
17186         (Makefile.am): Substitute GNULIB_WAITPID.
17187         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
17188         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
17189         signature only if the 'waitpid' module is present.
17190         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
17191         * NEWS: Mention the change.
17192         * modules/grantpt (Depends-on): Add waitpid.
17193         * modules/wait-process (Depends-on): Likewise.
17194
17195 2010-09-29  Bruno Haible  <bruno@clisp.org>
17196
17197         More tests for module 'sys_wait'.
17198         * modules/sys_wait-c++-tests: New file.
17199         * tests/test-sys_wait-c++.cc: New file.
17200         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
17201         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17202
17203 2010-09-29  Bruno Haible  <bruno@clisp.org>
17204
17205         New module 'waitpid'.
17206         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
17207         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
17208         Don't include <process.h>.
17209         (waitpid): Declare only, using modern idiom.
17210         * m4/waitpid.m4: New file.
17211         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
17212         * modules/waitpid: New file.
17213         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
17214         (Makefile.am): Update.
17215         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17216
17217 2010-09-28  Bruno Haible  <bruno@clisp.org>
17218
17219         poll: Assume ANSI C.
17220         * lib/poll.c (poll): Use an ANSI C declaration.
17221
17222 2010-09-28  Bruno Haible  <bruno@clisp.org>
17223
17224         poll-h: Create poll.h on all platforms.
17225         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
17226         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
17227         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
17228         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
17229         (gl_REPLACE_POLL_H): Don't set POLL_H.
17230         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
17231         * modules/poll-h (Depends-on): Add include_next.
17232         (Makefile.am): Create poll.h unconditionally. Substitute also
17233         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
17234
17235 2010-09-28  Bruno Haible  <bruno@clisp.org>
17236
17237         Tests for module 'poll-h'.
17238         * modules/poll-h-c++-tests: New file.
17239         * tests/test-poll-h-c++.cc: New file.
17240
17241         Tests for module 'poll-h'.
17242         * modules/poll-h-tests: New file.
17243         * tests/test-poll-h.c: New file.
17244
17245 2010-09-28  Bruno Haible  <bruno@clisp.org>
17246
17247         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
17248         * modules/poll-h (Depends-on): Add 'extensions'.
17249
17250 2010-09-28  Bruno Haible  <bruno@clisp.org>
17251
17252         New module 'poll-h'.
17253         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
17254         (poll): Use modern idiom.
17255         * modules/poll-h: New file.
17256         * modules/poll (Files): Remove lib/poll.in.h.
17257         (Depends-on): Add poll-h.
17258         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
17259         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
17260         * m4/poll_h.m4: New file.
17261         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
17262         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
17263         and invoke gl_REPLACE_POLL_H.
17264         * lib/poll.c: Use common idiom.
17265         * tests/test-poll.c: Likewise.
17266         * doc/posix-headers/poll.texi: Mention the poll-h module.
17267         Suggested by Eric Blake.
17268
17269 2010-09-26  Bruno Haible  <bruno@clisp.org>
17270
17271         sys_wait: Implement WSTOPSIG.
17272         * lib/sys_wait.in.h (WSTOPSIG): New macro.
17273         Reported by Simon Josefsson.
17274
17275 2010-09-26  Simon Josefsson  <simon@josefsson.org>
17276
17277         stdlib, sys_wait: Avoid compilation error on mingw.
17278         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
17279
17280 2010-09-26  Bruno Haible  <bruno@clisp.org>
17281
17282         stdlib tests: Avoid code duplication.
17283         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
17284         * modules/sys_wait-tests (Files): Likewise.
17285         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
17286         * tests/test-stdlib.c: Include test-sys_wait.h.
17287         (main): Invoke test_sys_wait_macros.
17288         * tests/test-sys_wait.c: Include test-sys_wait.h.
17289         (main): Invoke test_sys_wait_macros.
17290
17291 2010-09-25  Simon Josefsson  <simon@josefsson.org>
17292
17293         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
17294         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
17295         sure Windows sockets are working before calling getaddrinfo.
17296         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
17297         * doc/gnulib.texi (Windows sockets): Fix typo.
17298
17299 2010-09-25  Bruno Haible  <bruno@clisp.org>
17300
17301         Tests for module 'regex-quote'.
17302         * modules/regex-quote-tests: New file.
17303         * tests/test-regex-quote.c: New file.
17304
17305         New module 'regex-quote'.
17306         * lib/regex-quote.h: New file.
17307         * lib/regex-quote.c: New file.
17308         * modules/regex-quote: New file.
17309         Suggested by Reuben Thomas <rrt@sc3d.org>.
17310
17311 2010-09-24  Bruno Haible  <bruno@clisp.org>
17312
17313         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
17314         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
17315
17316 2010-09-23  Bruno Haible  <bruno@clisp.org>
17317
17318         setenv: Relax license.
17319         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
17320         Blake.
17321         Requested by Eric Blake.
17322
17323 2010-09-22  Bruno Haible  <bruno@clisp.org>
17324
17325         termios: Relax license.
17326         * modules/termios (License): Change to LGPLv2+.
17327         Requested by Eric Blake.
17328
17329 2010-09-22  Bruno Haible  <bruno@clisp.org>
17330
17331         threadlib: Allow the package to change the default to 'no'.
17332         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
17333         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
17334         Reported by Paul Eggert.
17335
17336 2010-09-22  Pádraig Brady  <P@draigbrady.com>
17337             Bruno Haible  <bruno@clisp.org>
17338
17339         Fix endless loop in mbmemcasecoll.
17340         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
17341         byte.
17342         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
17343
17344 2010-09-22  Bruno Haible  <bruno@clisp.org>
17345
17346         Tests for module 'memcoll'.
17347         * modules/memcoll-tests: New file.
17348         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
17349
17350         memcoll, xmemcoll: Clarify size vs. length.
17351         * modules/memcoll.c (memcoll0): Clarify specification.
17352         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
17353         passed to collate_error.
17354
17355 2010-09-22  Bruno Haible  <bruno@clisp.org>
17356
17357         Tests for module 'memcasecmp'.
17358         * modules/memcasecmp-tests: New file.
17359         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
17360
17361 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17362
17363         * lib/pthread.in.h: Add split double-inclusion guard, and include
17364         system <pthread.h> if there is one.  Use @@-style as in other
17365         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
17366         pthread.h doesn't.
17367         (pthread_mutexattr_destroy, pthread_mutexattr_init):
17368         (pthread_mutexattr_settype, pthread_mutex_trylock):
17369         New static inline functions, if there's no system <pthread.h>.
17370         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
17371         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
17372         Approximate with mutexes if the system lacks spinlocks, as in
17373         MacOS.
17374         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
17375         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
17376         @@-style.  Check for spinlocks separately.
17377         (gl_PTHREAD_DEFAULTS): New macro.
17378         * modules/pthread: Redo to use a more typical style for in.h files.
17379
17380 2010-09-21  Eric Blake  <eblake@redhat.com>
17381
17382         net_if: enhance tests
17383         * tests/test-net_if.c (main): Move signature checks earlier.
17384         Print failures to stderr.
17385         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
17386         Document the bug that we do not yet fix.
17387
17388 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17389
17390         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
17391         about gnulib, not GSS.
17392
17393 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17394
17395         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
17396         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
17397         for Emacs.
17398         * build-aux/pmccabe2html: Make Makefile.am example code more
17399         cut-and-paste friendly.
17400
17401 2010-09-21  Simon Josefsson  <simon@josefsson.org>
17402
17403         * tests/test-net_if.c: New file.
17404         * modules/net_if-tests: New file.
17405
17406 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17407
17408         pthread: add pthread_spin_destroy
17409         * lib/pthread.in.h (pthread_spin_destroy): New function.
17410
17411 2010-09-19  Bruno Haible  <bruno@clisp.org>
17412
17413         gnulib-tool: Fix --help output.
17414         * gnulib-tool (func_usage): Fix help message.
17415         Reported by Reuben Thomas <rrt@sc3d.org>.
17416
17417 2010-09-18  Jim Meyering  <meyering@redhat.com>
17418
17419         maint.mk: avoid unexpanded \n in two diagnostics
17420         * top/maint.mk (sc_prohibit_always_true_header_tests):
17421         Don't use a literal \n in a halt=... assignment.  It would not be
17422         expanded, and the two \n bytes would appear in the diagnostic output
17423         rather than the desired newline.  Use halt=$$(printf ... instead.
17424         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17425
17426 2010-09-18  Bruno Haible  <bruno@clisp.org>
17427
17428         netinet_in: Doc tweak.
17429         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
17430         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17431
17432 2010-09-18  Jim Meyering  <meyering@redhat.com>
17433
17434         init.sh: correct an outdated comment
17435         * tests/init.sh (create_exe_shims_):  s/function/alias/
17436
17437         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
17438         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
17439         a file named "*.exe" is removed between the glob expansion and the
17440         processing of that oddly named file.
17441
17442 2010-09-17  Eric Blake  <eblake@redhat.com>
17443
17444         mirbsd: add some more support
17445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
17446         in BSD family.
17447         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
17448         devices as OpenBSD.
17449         * m4/host-os.m4 (mirbsd): Add MirBSD.
17450
17451         tests: fix unportable assumption on sys/wait.h
17452         * tests/test-sys_wait.c (main): Relax test.
17453         * tests/test-stdlib.c (main): Likewise.
17454
17455         init.sh: accomodate directory with no .exes
17456         * tests/init.sh: Accomodate directory containing only scripts.
17457
17458         tests: avoid compiler warning
17459         * tests/test-stdlib.c (main): Use the variable.
17460
17461         fdutimens, fdutimensat: update signature, again
17462         * lib/utimens.h (gl_futimens): Delete, and move signature...
17463         (fdutimens): ...here.
17464         (fdutimensat): Rearrange signature.
17465         (lutimensat): Rename variable for clarity.
17466         * lib/fdutimensat.c (fdutimensat): Update signature.
17467         * lib/utimens.c (fdutimens): Likewise.
17468         (gl_futimens): Delete.
17469         (utimens, lutimens): Update callers.
17470         * lib/futimens.c (futimens): Likewise.
17471         * tests/test-fdutimensat.c: Likewise.
17472         * tests/test-utimens.c: Likewise.
17473         * tests/test-futimens.h: Update comment.
17474         * NEWS: Mention this.
17475         Suggested by Paul Eggert.
17476
17477 2010-09-17  Bruno Haible  <bruno@clisp.org>
17478
17479         Take over the maintenance of some older macros from Autoconf.
17480         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
17481         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
17482         GNU Autoconf.
17483         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
17484         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
17485
17486 2010-09-17  Eric Blake  <eblake@redhat.com>
17487
17488         fdutimensat: drop atflag validation
17489         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
17490         with valid fd, to close a race scenario where futimens is
17491         unsupported and FILE was replaced by a symlink.
17492         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
17493         accordingly.
17494         Suggested by Paul Eggert.
17495
17496 2010-09-16  Bruno Haible  <bruno@clisp.org>
17497
17498         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
17499         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
17500
17501 2010-09-16  Bruno Haible  <bruno@clisp.org>
17502
17503         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
17504         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
17505         login_tty exists.
17506         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17507
17508 2010-09-16  Bruno Haible  <bruno@clisp.org>
17509
17510         login_tty: Make the replacement code work on BSD systems.
17511         * lib/login_tty.c: Include <sys/ioctl.h>.
17512         (login_tty): Use ioctl TIOCSCTTY when available.
17513         * modules/login_tty (Depends-on): Add sys_ioctl.
17514         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17515
17516 2010-09-16  Bruno Haible  <bruno@clisp.org>
17517
17518         login_tty: Stricter unit test.
17519         * modules/login_tty-tests (Depends-on): Add tcgetsid.
17520         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
17521         and tcgetsid() after login_tty.
17522         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17523
17524 2010-09-16  Bruno Haible  <bruno@clisp.org>
17525
17526         New module 'tcgetsid'.
17527         * lib/tcgetsid.c: New file.
17528         * m4/tcgetsid.m4: New file.
17529         * modules/tcgetsid: New file.
17530         * modules/termios (Depends-on): Add c++defs, warn-on-use.
17531         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
17532         GNULIB_TCGETSID, HAVE_TCGETSID.
17533         * lib/termios.in.h: Include <sys/types.h>.
17534         (tcgetsid): New declaration.
17535         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
17536         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
17537         * doc/posix-functions/tcgetsid.texi: Mention the new module.
17538         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
17539
17540 2010-09-16  Bruno Haible  <bruno@clisp.org>
17541
17542         Tests for module 'termios'.
17543         * modules/termios-c++-tests: New file.
17544         * modules/termios-tests: New file.
17545         * tests/test-termios-c++.cc: New file.
17546         * tests/test-termios.c: New file.
17547
17548         New module 'termios'.
17549         * modules/termios: New file.
17550         * lib/termios.in.h: New file.
17551         * m4/termios_h.m4: New file.
17552         * doc/posix-headers/termios.texi: Mention the new module.
17553
17554 2010-09-16  Eric Blake  <eblake@redhat.com>
17555
17556         fdutimensat: add an atflag parameter
17557         * lib/fdutimensat.c (fdutimensat): Add new parameter.
17558         * lib/utimens.h (fdutimensat): Update prototype.
17559         * tests/test-fdutimensat.c: Adjust test to match.
17560         * NEWS: Document the change.
17561         Suggested by Paul Eggert.
17562
17563 2010-09-16  Bruno Haible  <bruno@clisp.org>
17564
17565         Fix typos in comments.
17566         * lib/striconveh.h: Fix typo in comment.
17567         * lib/login_tty.c (login_tty): Likewise.
17568
17569 2010-09-15  Bruno Haible  <bruno@clisp.org>
17570
17571         stdlib: clarify MirBSD WEXITSTATUS bug
17572         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
17573         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17574
17575 2010-09-15  Eric Blake  <eblake@redhat.com>
17576
17577         stdlib: work around MirBSD WEXITSTATUS bug
17578         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
17579         * modules/stdlib (Depends-on): Add sys_wait.
17580         * tests/test-sys_wait.c (main): Enhance test.
17581         * tests/test-stdlib.c (main): Likewise.
17582         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
17583
17584         docs: mention MacOS issue with WEXITSTATUS(constant)
17585         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
17586         issue.
17587         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17588
17589         strnlen: add tests
17590         * modules/strnlen-tests: New file.
17591         * tests/test-strnlen.c: Likewise.
17592
17593 2010-09-14  Bruno Haible  <bruno@clisp.org>
17594
17595         unistr/base: Avoid link errors when module 'libunistring' is also used.
17596         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
17597         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
17598         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
17599         Declare also when HAVE_LIBUNISTRING is set.
17600         Reported by Pádraig Brady <P@draigbrady.com>.
17601
17602 2010-09-14  Eric Blake  <eblake@redhat.com>
17603
17604         test-rawmemchr: make more robust
17605         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
17606         (Depends-on, configure.ac): Add needed prerequisites to use it.
17607         * modules/memchr-tests (Files, Depends-on, configure.ac):
17608         Likewise, to avoid implicit reliance on memchr module prereqs.
17609         * tests/test-memchr.c (main): Ensure proper masking.
17610         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
17611         reads.
17612
17613         memchr: detect glibc Alpha bug
17614         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
17615         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
17616         Alpha.
17617         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
17618         * tests/test-memchr.c (main): Enhance test.
17619         Reported by Nelson H. F. Beebe.
17620
17621 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17622
17623         fts, getcwd, glob: audit for dirfd returning -1
17624         * lib/fts.c (opendir): Remove #define; no longer used.
17625         (opendirat): New arg PDIR_FD.  All callers changed.
17626         (fts_build, _opendir2): Use new opendirat to avoid the need for
17627         dirfd, or for checking whether dirfd returns a negative value.
17628         Don't use opendir; always use openat followed by fdopendir.
17629         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
17630         it.
17631         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
17632         returns -1 here.
17633         * modules/fts (Depends-on): Remove dirfd.
17634         * modules/getcwd (Depends-on): Likewise.
17635
17636 2010-09-13  Eric Blake  <eblake@redhat.com>
17637
17638         float: fix broken MirBSD header
17639         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
17640         * doc/posix-headers/float.texi (float.h): Document it.
17641
17642 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17643
17644         fts: use O_NOFOLLOW to avoid race condition when opening a directory
17645         * lib/fts.c (opendirat): New arg extra_flags.
17646         (__opendir2): Use it to avoid following symlinks when opening
17647         a directory, if symlinks are not supposed to be followed.  See
17648         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
17649
17650         fdopendir: preserve argument fd before returning
17651         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
17652         (fdopendir_with_dup, fd_clone_opendir): New static functions.
17653         (fdopendir): Use them, arranging for FD to be open to the same
17654         directory that it was when it started.  (It might be temporarily
17655         closed while fdopendir is running, so this not thread- or
17656         signal-safe.)  Be careful to do the right thing even when file
17657         descriptors are scarce and dup fails with errno == EMFILE.  See
17658         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
17659
17660 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
17661
17662         regex: Pass the system regex if its only problem is 32-bit regoff_t.
17663         * NEWS: Document change.
17664         * m4/regex.m4: Disable test for regoff_t size.
17665
17666 2010-09-13  Jim Meyering  <meyering@redhat.com>
17667
17668         fts: don't operate on an invalid file descriptor after failed dup
17669         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
17670         negative file descriptor.
17671
17672 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17673
17674         savedir: add streamsavedir, deprecate fdsavedir
17675         * NEWS: Mention deprecation of fdsavedir.
17676         * lib/savedir.c (streamsavedir): New extern function, whose name
17677         ends in "savedir" to be consistent with the others.  This differs
17678         from savedirstream in that it doesn't close its argument.  The
17679         next version of GNU tar will use this instead of fdsavedir, to
17680         avoid some race conditions and conserve file descriptors.
17681         (savedirstream): Reimplement as a wrapper around streamsavedir.
17682         (fdsavedir): Add a comment deprecating this function.  As far as
17683         I know, only GNU tar used it, and GNU tar doesn't need it any more.
17684         * lib/savedir.h (streamsavedir): New decl.
17685         (fdsavedir): Add a comment deprecating this.
17686
17687 2010-09-10  Bruno Haible  <bruno@clisp.org>
17688
17689         langinfo: Fix last commit.
17690         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
17691         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
17692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17693
17694 2010-09-10  Bruno Haible  <bruno@clisp.org>
17695
17696         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
17697         * lib/progreloc.c (O_EXEC): Define fallback.
17698
17699 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17700
17701         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
17702         * NEWS: Document recent changes to fcntl-h.
17703         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
17704         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
17705         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
17706         Similarly for O_SEARCH; this last was already true, but not documented.
17707         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
17708         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
17709         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
17710         Likewise.
17711         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
17712         is zero, not whether it is defined.
17713         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
17714         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
17715         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
17716
17717 2010-09-10  Bruno Haible  <bruno@clisp.org>
17718
17719         langinfo, nl_langinfo: Fix for IRIX 5.3.
17720         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
17721         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
17722         HAVE_LANGINFO_YESEXPR.
17723         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
17724         HAVE_LANGINFO_YESEXPR.
17725         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
17726         HAVE_LANGINFO_T_FMT_AMPM is 0.
17727         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
17728         HAVE_LANGINFO_YESEXPR is 0.
17729         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
17730         NOEXPR.
17731         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
17732         * doc/posix-functions/nl_langinfo.texi: Likewise.
17733         Reported by Eric Blake.
17734
17735 2010-09-10  Bruno Haible  <bruno@clisp.org>
17736
17737         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
17738         * doc/glibc-functions/login_tty.texi: Mention the include file problem
17739         on FreeBSD 8.0 and OpenBSD 4.6.
17740         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
17741         * m4/pty_h.m4 (gl_PTY_H): Likewise.
17742         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
17743         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
17744         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
17745         ac_includes_default.
17746         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17747
17748 2010-09-09  Eric Blake  <eblake@redhat.com>
17749
17750         strsignal: work around NetBSD bug
17751         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
17752         * lib/string.in.h (includes): Likewise.
17753         * doc/posix-functions/strsignal.texi (strsignal): Document the
17754         bug.
17755         Reported by Nelson H. F. Beebe.
17756
17757         gnulib-tool: work with NetBSD /bin/sh
17758         * gnulib-tool (func_cache_var, func_cache_lookup_module)
17759         (func_get_description, func_get_comment, func_get_status)
17760         (func_get_notice, func_get_applicability, func_get_filelist)
17761         (func_get_dependencies, func_get_autoconf_early_snippet)
17762         (func_get_autoconf_snippet, func_get_automake_snippet)
17763         (func_get_include_directive, func_get_link_directive)
17764         (func_get_license, func_get_maintainer, func_import): Avoid
17765         shell syntax errors from parsing syntax extensions.
17766
17767 2010-09-09  Bruno Haible  <bruno@clisp.org>
17768
17769         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17770         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
17771         a reliable way to determine whether the 'alias' command works.
17772
17773 2010-09-08  Jim Meyering  <meyering@redhat.com>
17774
17775         init.sh: penalize a set-x-impaired shell; don't disqualify it
17776         * tests/init.sh: Too many shells corrupt application stderr when
17777         you set -x, so we can't afford to disqualify them, since at least
17778         on Irix-6.5, that would disqualify all bourne shells.
17779         Instead, use a two-pass approach.
17780         On the first pass, try to find a shell that meets the stricter
17781         condition that set -x does not corrupt stderr.
17782         If no shell meets the stricter condition, retest each candidate
17783         shell, but without that extra condition.  Finally, when
17784         VERBOSE=yes is requested and set -x might cause trouble, simply
17785         issue a warning and refrain from enabling debug output.
17786
17787 2010-09-08  Eric Blake  <eblake@redhat.com>
17788
17789         unsetenv: fix OpenBSD bug
17790         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
17791         * doc/posix-functions/unsetenv.texi (unsetenv): Update
17792         documentation.
17793         Reported by Jim Meyering.
17794
17795         strtod: work around IRIX 6.5 bug
17796         * lib/strtod.c (strtod): Reparse number on shorter string if
17797         exponent parse was invalid.
17798         * tests/test-strtod.c (main): Add check for "0x1p 2".
17799         Reported by Tom G. Christensen.
17800
17801         getopt: optimize previous patch
17802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17803         empty variable.  Speed up awk script.
17804         Reported by Paolo Bonzini.
17805
17806 2010-09-08  Jim Meyering  <meyering@redhat.com>
17807
17808         test.sh: disqualify shells for which set -x corrupts stderr
17809         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17810         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17811         appear in stderr output.  For example, this command:
17812             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17813         prints "P=1" on those two systems:
17814
17815 2010-09-08  Bruno Haible  <bruno@clisp.org>
17816
17817         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17818         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17819         commands, because some shells ignore redirections when there is an
17820         error in the command lookup.
17821         Reported by Eric Blake.
17822
17823 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
17824
17825         * lib/regex.h: Fix a mention of `regex_compile' (should be
17826         `re_compile_pattern').
17827         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
17828         (re_set_registers): Correct name of parameter in comment.
17829
17830         * doc/regex.texi: Add documentation for missing syntax flags.
17831         Remove commented-out documentation of defunct syntax option
17832         RE_NO_EMPTY_ALTS.
17833         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
17834         Add documentation of re_set_registers.
17835         Document trick to re-use a pattern buffer by setting fastmap manually.
17836         Update documentation of struct re_pattern_buffer per public members.
17837         Uncomment documentation of equivalence class operators and
17838         collating symbol operators, since they are now implemented,
17839         Explain leftmost-longest matching in relation to alternatives.
17840         Tidy documentation of substring matching.
17841         Remove POSIX documentation, which is done better in
17842         glibc, and refer the reader there. Keep BSD API documentation, as
17843         that is not readily available elsewhere.
17844
17845 2010-09-07  Eric Blake  <eblake@redhat.com>
17846
17847         getopt: handle POSIXLY_CORRECT set but not exported
17848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
17849         export state of POSIXLY_CORRECT, due to bash set -o posix.
17850         Reported by Dustin J. Mitchell.
17851
17852 2010-09-05  Bruno Haible  <bruno@clisp.org>
17853
17854         gnulib-tool: Highlight the changed options.
17855         * gnulib-tool (func_usage): Display the --import, --add-import,
17856         --remove-import explanations in bold font.
17857
17858 2010-09-06  Karl Berry  <karl@gnu.org>
17859
17860         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17861
17862 2010-09-05  Bruno Haible  <bruno@clisp.org>
17863
17864         uniwidth/width: Update comment.
17865         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
17866         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
17867
17868 2010-09-05  Bruno Haible  <bruno@clisp.org>
17869
17870         isinf, isnan: Relax license.
17871         * modules/isinf (License): Change from GPL to LGPL, with consent from
17872         Ben Pfaff.
17873         * modules/isnan (License): Likewise.
17874         Requested by Ludovic Courtès.
17875
17876 2010-09-04  Bruno Haible  <bruno@clisp.org>
17877
17878         gnulib-tool: Help migration from --import to --add-import or --update.
17879         * gnulib-tool: Emit a verbose error message when --import is used
17880         without any module name.
17881
17882 2010-09-04  Bruno Haible  <bruno@clisp.org>
17883
17884         Update doc about gnulib-tool.
17885         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17886         'gnulib-tool --update' in more detail.
17887         Reported by Eric Blake.
17888
17889 2010-09-04  Bruno Haible  <bruno@clisp.org>
17890
17891         gnulib-tool: Change --import. New options --add/remove-import.
17892         * gnulib-tool: New options --add-import, --remove-import.
17893         (func_usage): Document them.
17894         (have_associative): Define always.
17895         (func_import): In import mode, don't merge the specified settings with
17896         the cached settings. Implement remove-import mode.
17897         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17898         Explain when to use them versus --import.
17899         (Simple update): Use --add-import instead of --import.
17900         * NEWS: Mention the change.
17901
17902 2010-09-04  Bruno Haible  <bruno@clisp.org>
17903
17904         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17905         separate gnulib.mk.
17906
17907 2010-09-04  Bruno Haible  <bruno@clisp.org>
17908
17909         gnulib-tool: Don't talk about CVS any more.
17910         * gnulib-tool (func_usage, func_import): Write "version control"
17911         instead of CVS.
17912
17913 2010-09-04  Jim Meyering  <meyering@redhat.com>
17914
17915         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17916         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17917         false positives (whose names may be ill-chosen) when searching
17918         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17919         would cause a false-positive.
17920
17921         avoid coreutils "make distcheck" failure
17922         Coreutils tests with an absolute build directory name that contains
17923         a space.  Not quoting this directory name caused a failure.
17924         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17925         * tests/test-vc-list-files-cvs.sh: Likewise.
17926
17927 2010-09-04  Bruno Haible  <bruno@clisp.org>
17928
17929         gnulib-tool: Avoid error when run in a package without Makefile.am.
17930         * gnulib-tool: When collecting the m4dirs in a package that does not
17931         have a Makefile.am, eliminate those directories that contain no
17932         gnulib-cache.m4. Fix expression that counts these directories.
17933
17934 2010-09-04  Bruno Haible  <bruno@clisp.org>
17935
17936         update-copyright test: Improve output when perl is missing or too old.
17937         * tests/test-update-copyright.sh: Move test of Perl version down after
17938         the test whether Perl exists. Provide an explanation relating Perl's
17939         error message to Automake's SKIP: message.
17940
17941 2010-09-04  Bruno Haible  <bruno@clisp.org>
17942
17943         Don't augment PATH in TESTS_ENVIRONMENT.
17944         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17945         set abs_aux_dir instead of augmenting PATH.
17946         * modules/vc-list-files-tests (Makefile.am): Likewise.
17947         * tests/test-update-copyright.sh: Augment PATH here.
17948         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17949         path_prepend_.
17950         * tests/test-vc-list-files-git.sh: Likewise.
17951
17952 2010-09-04  Jim Meyering  <meyering@redhat.com>
17953
17954         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17955         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17956
17957 2010-09-04  Bruno Haible  <bruno@clisp.org>
17958
17959         strdup: Fix compilation error in C++ mode.
17960         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17961         the macro.
17962
17963 2010-09-04  Bruno Haible  <bruno@clisp.org>
17964
17965         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17966         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17967         macro into a function.
17968         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17969
17970 2010-09-04  Bruno Haible  <bruno@clisp.org>
17971
17972         Set PATH_SEPARATOR the same way autoconf does.
17973         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17974         the value of PATH_SEPARATOR the same way autoconf-generated configure
17975         scripts do.
17976         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17977         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17978
17979 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17980
17981         Set PATH_SEPARATOR the same way autoconf does.
17982         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17983         the same way autoconf-generated configure scripts do.
17984         * posix-modules: Likewise.
17985
17986 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17987
17988         hash: fix safe_hasher const typo
17989         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17990         const; otherwise, there is a type error later.
17991
17992 2010-09-02  Jim Meyering  <meyering@redhat.com>
17993
17994         test-update-copyright.sh: require perl 5.8.0
17995         * tests/test-update-copyright.sh: Require 5.8.0,
17996         which Tom G. Christensen has confirmed is adequate,
17997         while 5.6.1 is not.
17998
17999 2010-09-02  Eric Blake  <eblake@redhat.com>
18000
18001         tests: init.sh improvements for re-exec'ing with zsh
18002         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
18003         -vx through shell re-exec.
18004         Reported by Tom G. Christensen.
18005
18006         wctype: fix typo in previous commit
18007         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
18008         Reported by Ludovic Courtès.
18009
18010 2010-09-02  Jim Meyering  <meyering@redhat.com>
18011
18012         test-update-copyright.sh: skip test if Perl is too old
18013         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
18014         Reported by Tom G. Christensen.
18015
18016 2010-09-02  Bruno Haible  <bruno@clisp.org>
18017
18018         wctype: Avoid compilation error on IRIX 6.5.30.
18019         * lib/wctype.in.h (iswblank): Declare with a replacement if
18020         REPLACE_ISWBLANK is set.
18021         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
18022         declared. Set REPLACE_ISWBLANK.
18023         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
18024         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
18025         * doc/posix-headers/wctype.texi: Likewise.
18026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18027
18028 2010-09-01  Bruno Haible  <bruno@clisp.org>
18029
18030         New module 'socketlib'.
18031         * modules/socketlib: New file.
18032         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
18033         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
18034         * modules/sockets (Depends-on): Add socketlib.
18035         Suggested by Sam Steingold <sds@gnu.org>.
18036
18037 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18038
18039         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
18040
18041         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
18042         when one needs search access to a directory but not read access.
18043         On systems where it is available, it works in some cases where
18044         O_RDONLY does not, namely on directories that are searchable but
18045         not readable, and which need only to be searchable.  If O_SEARCH
18046         is not available, fall back to the traditional method of using
18047         O_RDONLY.
18048
18049         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
18050         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
18051         when opening a directory that needs only to be searchable.
18052         * lib/chdir-safer.c (chdir_no_follow): Likewise.
18053         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
18054         * lib/openat-proc.c (openat_proc_name): Likewise.
18055         * lib/openat.c (openat_needs_fchdir): Likewise.
18056         * lib/save-cwd.c (save_cwd): Likewise.
18057         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
18058
18059 2010-08-28  Bruno Haible  <bruno@clisp.org>
18060
18061         New module 'host-cpu-c-abi'.
18062         * modules/host-cpu-c-abi: New file.
18063         * m4/host-cpu-c-abi.m4: New file, based on part of
18064         clisp/src/m4/general.m4.
18065         Requested by Sam Steingold <sds@gnu.org>.
18066
18067 2010-08-31  Eric Blake  <eblake@redhat.com>
18068         and Jim Meyering  <meyering@redhat.com>
18069
18070         hash: factor, and guard against misbehaving hasher function
18071         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
18072         of table->hasher's return value.  Also protect against a hash value
18073         so large that adding it to table->bucket results in a NULL pointer.
18074         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
18075         Use it in place of open-coded check-and-abort.
18076
18077 2010-08-30  Bruno Haible  <bruno@clisp.org>
18078
18079         hash: silence spurious clang warning
18080         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
18081         Reported by Eric Blake.
18082
18083 2010-08-30  Eric Blake  <eblake@redhat.com>
18084
18085         strstr, memmem, strcasestr: avoid leaked shell message
18086         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
18087         FreeBSD.
18088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18089         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18090
18091         tests: silence clang warning
18092         * tests/test-malloca.c (do_allocation): Avoid dead store.
18093
18094 2010-08-29  Bruno Haible  <bruno@clisp.org>
18095
18096         gettext: Fix recent mistake.
18097         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
18098
18099 2010-08-29  Bruno Haible  <bruno@clisp.org>
18100
18101         selinux-h: Offer a --without-selinux option.
18102         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
18103         --without-selinux was specified, skip all tests and define
18104         HAVE_SELINUX_SELINUX_H to 0.
18105         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
18106         set LIB_SELINUX to empty.
18107         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
18108         gl_LIBSELINUX. If --without-selinux was specified, replace
18109         selinux/context.h.
18110         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
18111
18112 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18113             Bruno Haible  <bruno@clisp.org>
18114
18115         Make the module 'realloc-gnu' work again on AIX and OSF/1.
18116         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
18117         of HAVE_REALLOC.
18118         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
18119         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
18120         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
18121         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
18122
18123 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18124             Bruno Haible  <bruno@clisp.org>
18125
18126         Make the module 'calloc-gnu' work again on AIX and OSF/1.
18127         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
18128         HAVE_CALLOC.
18129         * lib/xmalloc.c: Update accordingly.
18130         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
18131         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
18132         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
18133
18134 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18135             Bruno Haible  <bruno@clisp.org>
18136
18137         Make the module 'malloc-gnu' work again on AIX and OSF/1.
18138         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
18139         HAVE_MALLOC.
18140         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
18141         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
18142         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
18143
18144 2010-08-29  Bruno Haible  <bruno@clisp.org>
18145
18146         Update modules list.
18147         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
18148         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
18149         (String handling <string.h>): Add astrxfrm.
18150         (File system functions): Add readlinkat.
18151
18152 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18153
18154         Tests for module 'realloc-gnu'.
18155         * modules/realloc-gnu-tests: New file.
18156         * tests/test-realloc-gnu.c: New file.
18157
18158         Tests for module 'calloc-gnu'.
18159         * modules/calloc-gnu-tests: New file.
18160         * tests/test-calloc-gnu.c: New file.
18161
18162         Tests for module 'malloc-gnu'.
18163         * modules/malloc-gnu-tests: New file.
18164         * tests/test-malloc-gnu.c: New file.
18165
18166 2010-08-28  Bruno Haible  <bruno@clisp.org>
18167
18168         Rename module 'realloc' -> 'realloc-gnu'.
18169         * modules/realloc-gnu: New file, copied from modules/realloc.
18170         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
18171         obsolete.
18172         * modules/mgetgroups (Depends-on): Update.
18173         * doc/posix-functions/realloc.texi: Update.
18174         * NEWS: Mention the change.
18175
18176         Rename module 'calloc' -> 'calloc-gnu'.
18177         * modules/calloc-gnu: New file, copied from modules/calloc.
18178         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
18179         obsolete.
18180         * doc/posix-functions/calloc.texi: Update.
18181         * NEWS: Mention the change.
18182
18183         Rename module 'malloc' -> 'malloc-gnu'.
18184         * modules/malloc-gnu: New file, copied from modules/malloc.
18185         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
18186         obsolete.
18187         * modules/argp (Depends-on): Update.
18188         * modules/regex (Depends-on): Update.
18189         * doc/posix-functions/malloc.texi: Update.
18190         * NEWS: Mention the change.
18191
18192 2010-08-28  Eric Blake  <eblake@redhat.com>
18193
18194         pread, pwrite: add missing dependency
18195         * modules/pread (Depends-on): Add extensions.
18196         * modules/pwrite (Depends-on): Likewise.
18197
18198 2010-08-28  Bruno Haible  <bruno@clisp.org>
18199
18200         unistr/u*-strchr: Fix tests dependencies.
18201         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
18202         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
18203         Reported by Ian Beckwith <ianb@erislabs.net>.
18204
18205 2010-08-28  Bruno Haible  <bruno@clisp.org>
18206
18207         read-file: Don't occupy too much unused memory.
18208         * lib/read-file.c (fread_file): Shrink the buffer at the end.
18209
18210 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
18211             Eric Blake  <eblake@redhat.com>
18212             Bruno Haible  <bruno@clisp.org>
18213
18214         read-file: Avoid memory reallocations with regular files.
18215         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
18216         (fread_file): With regular files, use the remaining length as the
18217         initial buffer size.  Check against overflow.
18218         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
18219         sys_stat.
18220
18221 2010-08-28  Bruno Haible  <bruno@clisp.org>
18222
18223         ftello: Relax license.
18224         * modules/ftello (License): Relax to LGPLv2+.
18225         Reported by Eric Blake.
18226
18227 2010-08-28  Bruno Haible  <bruno@clisp.org>
18228
18229         Avoid relocwrapper link errors due to gnulib replacement functions.
18230         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
18231         function.
18232         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18233
18234 2010-08-28  Bruno Haible  <bruno@clisp.org>
18235
18236         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
18237         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
18238         defined.
18239         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
18240         Suggested by Eric Blake.
18241
18242 2010-08-28  Bruno Haible  <bruno@clisp.org>
18243
18244         sys_socket, netdb: Ensure socklen_t gets defined.
18245         * modules/sys_socket (Depends-on): Add socklen.
18246         * modules/netdb (Depends-on): Likewise.
18247         * modules/getaddrinfo (Depends-on): Remove socklen.
18248         * modules/getsockopt (Depends-on): Likewise.
18249         * modules/setsockopt (Depends-on): Likewise.
18250         * tests/test-sys_socket.c: Check that socklen_t is defined.
18251         * tests/test-netdb.c: Likewise.
18252         * m4/socklen.m4: Update comments.
18253         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18254
18255 2010-08-27  Eric Blake  <eblake@redhat.com>
18256
18257         login_tty: add missing dependency
18258         * modules/login_tty (Depends-on): Add pty.
18259
18260 2010-08-26  Eric Blake  <eblake@redhat.com>
18261
18262         lib-symbol-versions: fix m4 quoting
18263         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
18264         format for AC_LINK_IFELSE.
18265
18266         glob: fix compile test
18267         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
18268
18269         btowc: fix missing file
18270         * modules/btowc (Files): Also ship locale-fr.m4.
18271
18272         lseek: fix link test
18273         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
18274         AC_LINK_IFELSE.
18275
18276         include_next: silence autoconf 2.68 warning
18277         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
18278         AC_COMPILE_IFELSE as special.
18279         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
18280         autoconf < 2.68.
18281
18282         acl: fix compilation test
18283         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
18284         AC_COMPILE_IFELSE.
18285
18286 2010-08-26  Bruno Haible  <bruno@clisp.org>
18287
18288         Modernize AC_TRY_RUN invocations.
18289         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
18290         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18291         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
18292         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
18293         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18294         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18295         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18296         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18297         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18298         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18299         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18300         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18301         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18302         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18303         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18304         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18305         gl_MBRLEN_NUL_RETVAL): Likewise.
18306         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18307         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
18308         Likewise.
18309         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18310         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18311         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18312         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18313         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18314         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18315         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
18316         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18317         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
18318         Likewise.
18319         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18320         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
18321         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18322         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18323         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18324         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18325         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18326         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
18327         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18328         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18329
18330 2010-08-26  Bruno Haible  <bruno@clisp.org>
18331
18332         Modernize AC_TRY_LINK invocations.
18333         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
18334         AC_TRY_LINK.
18335         * m4/argp.m4 (gl_ARGP): Likewise.
18336         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
18337         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18338         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
18339         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18340         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18341         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
18342         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
18343         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18344         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18345         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
18346         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18347         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
18348         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
18349         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18350         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18351         * m4/hostent.m4 (gl_HOSTENT): Likewise.
18352         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18353         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
18354         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18355         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
18356         Likewise.
18357         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
18358         Likewise.
18359         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
18360         Likewise.
18361         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18362         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
18363         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
18364         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
18365         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
18366         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18367         * m4/servent.m4 (gl_SERVENT): Likewise.
18368         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18369         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
18370         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
18371         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
18372         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18373         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18374         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18375         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18376         * modules/tsearch-tests (configure.ac): Likewise.
18377
18378 2010-08-26  Bruno Haible  <bruno@clisp.org>
18379
18380         Modernize AC_TRY_COMPILE invocations.
18381         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
18382         AC_TRY_COMPILE.
18383         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
18384         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
18385         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18386         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18387         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18388         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18389         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18390         * m4/lock.m4 (gl_LOCK): Likewise.
18391         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18392         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18393         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
18394         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18395         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18396         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
18397         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
18398         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
18399         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18400         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18401         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18402         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18403         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
18404         extraneous semicolon.
18405
18406 2010-08-26  Jim Meyering  <meyering@redhat.com>
18407
18408         stat-time: relax license LGPL
18409         * modules/stat-time (License): Change from GPL to LGPL,
18410         with consent from all contributors, for use in libguile.
18411         Requested by Ludovic Courtès.
18412
18413 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
18414
18415         poll: return immediately on POLLHUP.
18416         * lib/poll.c (poll): Always set timeout before wait_timeout is
18417         computed.
18418
18419 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18420
18421         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
18422         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
18423         rmdir ("dir/.//"), unlinkat.
18424
18425 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18426
18427         stdbool: avoid spurious failure with modern xlc
18428         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18429
18430 2010-08-24  Bruno Haible  <bruno@clisp.org>
18431
18432         getloadavg: simplify code
18433         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
18434         gl_have_func. Update comments.
18435
18436 2010-08-24  Eric Blake  <eblake@redhat.com>
18437
18438         getloadavg: don't define SVR4 on cygwin
18439         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
18440         only define SVR4 when -lkvm is required.
18441         Reported by Yaakov Selkowitz.
18442
18443 2010-08-24  Bruno Haible  <bruno@clisp.org>
18444
18445         priv-set: fix comment
18446         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
18447
18448 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18449
18450         priv-set: fix comments
18451         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
18452         to match code, as suggested by David Bartley in:
18453         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
18454
18455 2010-08-23  Eric Blake  <eblake@redhat.com>
18456
18457         stdbool: avoid rejecting clang
18458         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18459         * tests/test-stdbool.c: Enable more tests if using the system
18460         <stdbool.h> instead of the gnulib replacement.
18461         (main): Move xlc bug test to a runtime test for all compilers.
18462         Reported by Anders Kaseorg.
18463
18464         argz: fix shell quoting issue
18465         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
18466         Reported by Charles Wilson.
18467
18468 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
18469             Erik Faye-Lund <kusmabite@gmail.com>
18470
18471         poll, select: handle ERROR_BROKEN_PIPE.
18472         * lib/poll.c (win32_compute_revents): Return POLLHUP when
18473         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18474         * lib/select.c (win32_compute_revents): Do not mark a pipe
18475         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18476
18477 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
18478
18479         fts: allow compilation with C++
18480         * lib/fts_.h: Specify extern "C" linkage with C++.
18481
18482 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18483
18484         Fix gnulib-tool sed script de-commentation for AIX sed.
18485         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
18486         sed.
18487
18488 2010-08-17  Eric Blake  <eblake@redhat.com>
18489
18490         test-stddef: test for (some) offsetof bugs
18491         * tests/test-stddef.c: Enhance test to ensure correct type of
18492         offsetof.
18493         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
18494         that we are not fixing at this time.
18495
18496 2010-08-15  Bruno Haible  <bruno@clisp.org>
18497
18498         stpncpy: Allow stpncpy to be defined as a macro.
18499         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
18500         if it's already correctly declared.
18501         * lib/string.in.h (stpncpy): Undefine before redefining.
18502         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
18503
18504 2010-08-14  Bruno Haible  <bruno@clisp.org>
18505
18506         Rename module 'memxfrm' to 'amemxfrm'.
18507         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
18508         (amemxfrm): Renamed from memxfrm.
18509         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
18510         (amemxfrm): Renamed from memxfrm.
18511         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
18512         * NEWS: Mention the change.
18513         * MODULES.html.sh (String handling <string.h>): Update.
18514         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
18515         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
18516         * lib/unicase/u16-casexfrm.c: Likewise.
18517         * lib/unicase/u32-casexfrm.c: Likewise.
18518         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
18519         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
18520         * lib/uninorm/u16-normxfrm.c: Likewise.
18521         * lib/uninorm/u32-normxfrm.c: Likewise.
18522         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
18523         memxfrm.
18524         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
18525         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
18526         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
18527         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
18528         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
18529         Suggested by Paul Eggert.
18530
18531 2010-08-14  Bruno Haible  <bruno@clisp.org>
18532
18533         Tests for module 'astrxfrm'.
18534         * modules/astrxfrm-tests: New file.
18535         * tests/test-astrxfrm.c: New file.
18536
18537         New module 'astrxfrm'.
18538         * lib/astrxfrm.h: New file.
18539         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
18540         * modules/astrxfrm: New file.
18541
18542 2010-08-14  Reuben Thomas <rrt@sc3d.org>
18543
18544         regex: Tweak doc.
18545         * doc/regex.texi (Overview): Don't mention regex.c.
18546         (GNU Regular Expression Compiling): Likewise.
18547         (Match-end-of-line Operator): Mention 'not_eol'.
18548
18549 2010-08-14  Brian Gough  <bjg@gnu.org>
18550             Bruno Haible  <bruno@clisp.org>
18551
18552         git-merge-changelog: add doc relating to use with bzr and hg.
18553         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
18554
18555 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
18556
18557         pthread: fix pthread.h creation for srcdir != builddir
18558         * modules/pthread (Makefile.am): Fix the rule to work also in a
18559         non-srcdir build.
18560
18561 2010-08-13  Karl Berry  <karl@gnu.org>
18562
18563         * doc/regex.texi (Predefined Syntaxes): @smallexample.
18564         * doc/posix-*/*: force line break before @url of POSIX
18565         specifications.
18566         Suggested by Werner Lemberg.
18567
18568 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18569
18570         strtod: fix const diagnostic
18571         * lib/strtod.c (strtod): Don't assign const char * to char *,
18572         as this elicits a warning from GCC when warnings are enabled.
18573
18574 2010-08-10  Pádraig Brady <P@draigbrady.com>
18575         and Eric Blake  <eblake@redhat.com>
18576
18577         copy-acl: ignore ENOTSUP on HP-UX
18578         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
18579         so that it is available for HP-UX.
18580         * lib/copy-acl.c (qcopy_acl): Use it.
18581         Reported by Patrick M. Callahan.
18582
18583 2010-08-10  Eric Blake  <eblake@redhat.com>
18584
18585         open, chown: relax license
18586         * modules/open (License): Change to LGPLv2+, with consent by all
18587         authors, for use in augeas.
18588         * modules/chown (License): Likewise.
18589         * modules/lchown (Likewise): Likewise.
18590         Requested by Adam Stokes.
18591
18592 2010-08-09  Karl Berry  <karl@gnu.org>
18593
18594         * build-aux/ar-lib: new file, import from Automake.
18595         * config/srclist.txt: autocheck for updates.
18596
18597 2010-08-09  Eric Blake  <eblake@redhat.com>
18598
18599         readlinkat: adjust client modules
18600         * modules/areadlinkat (Depends-on): Use readlinkat, not
18601         symlinkat.
18602         * modules/areadlinkat-with-size (Depends-on): Likewise.
18603
18604         mknod: be more vocal about danger of running tests as root
18605         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
18606         root, since that is just asking for problems.
18607         Suggested by Bruno Haible, based on a report by Rainer Tammer.
18608
18609         readlinkat: split into its own module
18610         * modules/symlinkat: Split readlinkat...
18611         * modules/readlinkat: ...into separate module.
18612         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
18613         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
18614         * lib/symlinkat.c (readlinkat): Move...
18615         * lib/readlinkat.c: ...into new file.
18616         * modules/symlinkat-tests: Split readlinkat test...
18617         * modules/readlinkat-tests: ...into separate module.
18618         * tests/test-symlinkat.c: Split...
18619         * tests/test-readlinkat.c: ...into new file.
18620         * NEWS: Document the split.
18621         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18622         * lib/unistd.in.h (readlinkat): Likewise.
18623         Suggested by Bruno Haible.
18624
18625 2010-08-08  Bruno Haible  <bruno@clisp.org>
18626
18627         memxfrm: Speed up.
18628         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
18629         that usually only one call to strxfrm is necessary for each string
18630         part.
18631         Reported by Paul Eggert <eggert@cs.ucla.edu>.
18632
18633 2010-08-07  Karl Berry  <karl@gnu.org>
18634
18635         * doc/posix-headers/limits.texi,
18636         * doc/posix-functions/malloc.texi,
18637         * doc/posix-functions/strsignal.texi: missing @item.
18638         * doc/ld-version-script.texi: spurious leading i.
18639         * doc/regex.texi (Interval Operators): no commas inside @var.
18640
18641 2010-08-01  Bruno Haible  <bruno@clisp.org>
18642
18643         Integrate the regex documentation.
18644         * doc/gnulib.texi: Define 'cn' index.
18645         (Regular expressions): New a chapter that includes regex.texi and
18646         regexprops-generic.texi.
18647         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
18648         syntax.
18649
18650         Whitespace cleanup.
18651         * doc/regex.texi: Remove trailing spaces.
18652
18653         Add regex documentation.
18654         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
18655         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
18656         Written by Kathy A. Hargreaves and Karl Berry.
18657
18658 2010-08-01  Bruno Haible  <bruno@clisp.org>
18659
18660         link: Update documentation.
18661         * doc/posix-functions/link.texi: Update regarding Solaris.
18662
18663 2010-07-31  Bruno Haible  <bruno@clisp.org>
18664
18665         Update modules list.
18666         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
18667         (String handling <string.h>): Add memcmp2, memxfrm.
18668         (Container data structures): Add xlist, xsublist, xoset.
18669         (Core language properties): Add alignof, unused-parameter.
18670         (Process control, Numeric conversion functions <stdlib.h>): Renamed
18671         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
18672         (Unibyte characters <ctype.h>): New section.
18673         (String handling <string.h>): New section.
18674         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
18675         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
18676         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
18677         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
18678         tan, tanh, tanl, y0, y1, yn.
18679         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
18680         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
18681         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
18682         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
18683         unlockpt, vdprintf, vdprintf-posix.
18684         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
18685         (File system functions): Add concat-filename, sys_file, sys_ioctl,
18686         xconcat-filename.
18687         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
18688         getdtablesize, pipe2, pipe2-safer.
18689         (Security): New section.
18690         (Networking functions): Add accept4.
18691         (Signal handling): Add sigpipe.
18692         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
18693         mbmemcasecoll.
18694         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
18695         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
18696         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
18697         pipe-filter-ii.
18698         (Misc): Add argp-version-etc, login_tty, parse-duration.
18699
18700 2010-07-31  Bruno Haible  <bruno@clisp.org>
18701
18702         Improve doc in MODULES.html.
18703         * modules/linkat (Description): Add the word "function".
18704         * modules/mkfifo (Description): Likewise.
18705         * modules/mknod (Description): Likewise.
18706         * modules/remove (Description): Likewise.
18707         * modules/renameat (Description): Likewise.
18708         * modules/stat (Description): Likewise.
18709         * modules/symlink (Description): Likewise.
18710         * modules/unlink (Description): Likewise.
18711
18712 2010-07-31  Bruno Haible  <bruno@clisp.org>
18713
18714         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
18715         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
18716         option --enable/disable-c++ instead of --enable/disable-cxx.
18717         * NEWS: Mention the change.
18718
18719 2010-07-31  Bruno Haible  <bruno@clisp.org>
18720
18721         readlink, areadlink: Relax test a bit.
18722         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
18723         alternative to ENOTDIR.
18724         * tests/test-areadlink.h (test_areadlink): Likewise.
18725         Reported by Rainer Tammer.
18726
18727 2010-07-31  Bruno Haible  <bruno@clisp.org>
18728
18729         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
18730         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
18731         character, perform the search using U_STRCHR.
18732         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
18733         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
18734         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
18735         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
18736         Suggested by Paolo Bonzini.
18737
18738 2010-07-31  Bruno Haible  <bruno@clisp.org>
18739
18740         unistr/u*-strstr: Fix dependencies.
18741         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
18742         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
18743         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
18744
18745 2010-07-31  Bruno Haible  <bruno@clisp.org>
18746
18747         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
18748         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
18749         the beginning of the loop.
18750         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
18751         cases in 'switch' statement.
18752
18753         unistr/u8-strchr: Fix several bugs.
18754         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
18755         the string. When not found, return NULL, not a pointer near the end.
18756
18757         More tests for unistr/u8-strchr.
18758         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
18759         that the function does not read past the first occurrence of the byte
18760         being searched.
18761         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
18762         * tests/unistr/test-u16-strchr.c (main): New function.
18763         * tests/unistr/test-u32-strchr.c (main): New function.
18764
18765 2010-07-31  Bruno Haible  <bruno@clisp.org>
18766
18767         posix-modules: Ignore backup files of documentation files.
18768         * posix-modules: grep only through files named *.texi.
18769
18770 2010-07-31  Bruno Haible  <bruno@clisp.org>
18771
18772         symlinkat: Fix documentation.
18773         * doc/posix-functions/readlinkat.texi: Fix module name.
18774
18775 2010-07-31  Bruno Haible  <bruno@clisp.org>
18776
18777         fchownat: Replace also when chown has the trailing slash bug.
18778         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
18779         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
18780         introduced on 2010-04-10.
18781         Reported by Rainer Tammer.
18782
18783 2010-07-31  Bruno Haible  <bruno@clisp.org>
18784
18785         linkat: Work around AIX 7.1 bug.
18786         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
18787         whether linkat handles trailing slash correctly. If not, replace linkat
18788         and define LINKAT_TRAILING_SLASH_BUG.
18789         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
18790         check whether (fd1,file1) points to a directory if file1 or file2 ends
18791         in a slash. Code taken from lib/link.c.
18792         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
18793         Reported by Rainer Tammer.
18794
18795 2010-07-31  Bruno Haible  <bruno@clisp.org>
18796
18797         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18798         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18799         This disables an xlc optimization that was causing wrong test results.
18800         Reported by Rainer Tammer.
18801
18802 2010-07-31  Bruno Haible  <bruno@clisp.org>
18803
18804         iconv: Work around AIX 6.1..7.1 bug.
18805         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18806         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18807         cross-compiling, guess no on all versions of AIX.
18808         Reported by Rainer Tammer.
18809
18810 2010-07-31  Bruno Haible  <bruno@clisp.org>
18811
18812         readlink: Relax test a bit.
18813         * tests/test-readlink.h (test_readlink): Allow different errno value
18814         when readlink is called with a file name that ends in / and refers to
18815         a file.
18816         Suggested by Eric Blake.
18817         Reported by Rainer Tammer.
18818
18819 2010-07-31  Bruno Haible  <bruno@clisp.org>
18820
18821         copysign: Does not require -lm on glibc systems.
18822         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
18823         gl_COMMON_DOUBLE_MATHFUNC.
18824         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
18825
18826 2010-07-31  Bruno Haible  <bruno@clisp.org>
18827
18828         duplocale: Work around AIX 7.1 bug.
18829         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
18830         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
18831         * lib/duplocale.c (rpl_duplocale): Update comment.
18832         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
18833         Reported by Rainer Tammer.
18834
18835 2010-07-30  Bruno Haible  <bruno@clisp.org>
18836
18837         dirfd: Avoid link error on AIX 7.1.
18838         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
18839         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
18840         exist, set REPLACE_DIRFD.
18841         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
18842         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
18843         * doc/posix-functions/dirfd.texi: Update.
18844         Reported by Rainer Tammer.
18845
18846 2010-07-30  Eric Blake  <eblake@redhat.com>
18847
18848         strtod: next round of AIX fixes
18849         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
18850         exponent.
18851         * tests/test-strtod.c (main): Enhance tests.
18852         * doc/posix-functions/strtod.texi (strtod): Document next bug.
18853         Reported by Rainer Tammer.
18854
18855         futimens: fix configure check
18856         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
18857         Reported by Bruno Haible.
18858
18859 2010-07-30  Bruno Haible  <bruno@clisp.org>
18860
18861         getline: Update regarding AIX.
18862         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
18863         Reported by Rainer Tammer.
18864
18865 2010-07-30  Bruno Haible  <bruno@clisp.org>
18866
18867         wcwidth: Drop replacement on AIX 7.
18868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
18869         AIX 7.
18870         Reported by Rainer Tammer.
18871
18872 2010-07-30  Bruno Haible  <bruno@clisp.org>
18873
18874         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
18875         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
18876         a 'char *'.
18877         Reported by Rainer Tammer.
18878
18879 2010-07-30  Bruno Haible  <bruno@clisp.org>
18880
18881         unlink: Update regarding AIX.
18882         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
18883         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18884         Reported by Rainer Tammer.
18885
18886 2010-07-30  Bruno Haible  <bruno@clisp.org>
18887
18888         symlink: Update regarding AIX.
18889         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18890         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18891         Reported by Rainer Tammer.
18892
18893 2010-07-30  Bruno Haible  <bruno@clisp.org>
18894
18895         strndup: Update regarding AIX.
18896         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18897         AIX 7.
18898         Reported by Rainer Tammer.
18899
18900 2010-07-30  Bruno Haible  <bruno@clisp.org>
18901
18902         stat: Update regarding AIX.
18903         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18904         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18905         Reported by Rainer Tammer.
18906
18907 2010-07-30  Bruno Haible  <bruno@clisp.org>
18908
18909         truncl: Fix autoconf test.
18910         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18911         whether truncl works.
18912         Reported by Rainer Tammer.
18913
18914 2010-07-30  Bruno Haible  <bruno@clisp.org>
18915
18916         round: Update regarding AIX.
18917         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18918         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18919         Reported by Rainer Tammer.
18920
18921 2010-07-30  Bruno Haible  <bruno@clisp.org>
18922
18923         rename: Update regarding AIX.
18924         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18925         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18926         Reported by Rainer Tammer.
18927
18928 2010-07-30  Bruno Haible  <bruno@clisp.org>
18929
18930         printf.m4: Update regarding AIX.
18931         * m4/printf.m4: Update comments regarding AIX.
18932         Reported by Rainer Tammer.
18933
18934 2010-07-30  Bruno Haible  <bruno@clisp.org>
18935
18936         iconv: Update regarding AIX.
18937         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18938         AIX 7.
18939         Reported by Rainer Tammer.
18940
18941 2010-07-30  Bruno Haible  <bruno@clisp.org>
18942
18943         getopt: Update regarding AIX.
18944         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18945         no on AIX.
18946         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18947         Reported by Rainer Tammer.
18948
18949 2010-07-30  Bruno Haible  <bruno@clisp.org>
18950
18951         ldexpl; Update regarding AIX.
18952         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18953         on AIX 7.
18954         Reported by Rainer Tammer.
18955
18956 2010-07-30  Bruno Haible  <bruno@clisp.org>
18957
18958         frexpl: Update regarding AIX.
18959         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18960         on AIX 7.
18961         Reported by Rainer Tammer.
18962
18963 2010-07-30  Bruno Haible  <bruno@clisp.org>
18964
18965         open, fopen: Update regarding AIX.
18966         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18967         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18968         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18969         * doc/posix-functions/fopen.texi: Likewise.
18970         Reported by Rainer Tammer.
18971
18972 2010-07-30  Bruno Haible  <bruno@clisp.org>
18973
18974         chown: Update doc regarding AIX.
18975         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18976         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18977         Reported by Rainer Tammer.
18978
18979 2010-07-30  Eric Blake  <eblake@redhat.com>
18980
18981         strtod: fix bug in replacement function on AIX
18982         * lib/strtod.c (strtod): Special case broken "0x" parse in
18983         underlying strtod.
18984         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18985         * doc/posix-functions/strtod.texi (strtod): Likewise.
18986         Reported by Rainer Tammer.
18987
18988 2010-07-30  Bruno Haible  <bruno@clisp.org>
18989
18990         mbrlen: Fix cross-compilation guess for AIX.
18991         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18992         guess. Leftover from 2008-12-22.
18993
18994 2010-07-30  Bruno Haible  <bruno@clisp.org>
18995
18996         mbrtowc: Fix cross-compilation guess for AIX.
18997         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18998         guess. Leftover from 2008-12-21.
18999
19000 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
19001
19002         init.sh: work around trap limitation of some shells
19003         * tests/init.sh (setup_): Move exit trap outside of shell function.
19004
19005 2010-07-29  Eric Blake  <eblake@redhat.com>
19006
19007         strtod: aid debugging
19008         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
19009         understanding why strtod is rejected.
19010
19011 2010-07-28  Bruno Haible  <bruno@clisp.org>
19012
19013         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
19014         * lib/unistr/u8-chr.c: Include <string.h>.
19015         * tests/unistr/test-u8-chr.c: Likewise.
19016         * tests/unistr/test-u16-chr.c: Likewise.
19017         * tests/unistr/test-u32-chr.c: Likewise.
19018         * tests/unistr/test-u8-strchr.c: Likewise.
19019         * tests/unistr/test-u16-strchr.c: Likewise.
19020         * tests/unistr/test-u32-strchr.c: Likewise.
19021         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
19022         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
19023         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
19024         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
19025
19026 2010-07-28  Bruno Haible  <bruno@clisp.org>
19027
19028         Use spaces for indentation, not tabs.
19029         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19030
19031 2010-07-27  Bruno Haible  <bruno@clisp.org>
19032
19033         mbspcasecmp: Fix function specification.
19034         * lib/string.in.h (mbspcasecmp): Fix specification comment.
19035         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
19036         Reported by Eric Blake <eblake@redhat.com>.
19037
19038 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
19039
19040         timespec: use cast and not conditional, as truncation isn't possible
19041         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
19042         instead of a conditional.  Comment about the situation in more detail.
19043         This undoes most of the 2009-10-29 patch.
19044
19045 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
19046
19047         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
19048         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
19049         * lib/unistr/u8-strchr.c: Likewise.
19050         * modules/unistr/u8-chr: Depend on memchr.
19051
19052         unistr/u*-strchr: add tests
19053         * modules/unistr/u8-strchr-tests: New file.
19054         * modules/unistr/u16-strchr-tests: New file.
19055         * modules/unistr/u32-strchr-tests: New file.
19056         * tests/unistr/test-strchr.h: New file.
19057         * tests/unistr/test-u8-strchr.c: New file.
19058         * tests/unistr/test-u16-strchr.c: New file.
19059         * tests/unistr/test-u32-strchr.c: New file.
19060
19061         unistr/u*-chr: test multibyte sequences more
19062         * tests/unistr/test-chr.h: Do complete testing of the characters in the
19063         test vector.
19064         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
19065         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
19066         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
19067
19068         unistr/u*-chr: test multibyte sequences
19069         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
19070
19071         unistr/u*-chr: prepare for multibyte tests
19072         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
19073         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
19074         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
19075         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
19076         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
19077         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
19078
19079 2010-07-18  Bruno Haible  <bruno@clisp.org>
19080
19081         unistr/u8-strchr: Optimize non-ASCII argument case.
19082         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
19083         because the first byte often matches anyway.
19084         Reported by Pádraig Brady <P@draigbrady.com>.
19085
19086 2010-07-15  Karl Berry  <karl@gnu.org>
19087
19088         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
19089
19090 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
19091
19092         getcwd: on Solaris, work better if ancestors are inaccessible
19093         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
19094         buffer and size, try again with a large buffer.  This works better
19095         on Solaris, since its getcwd succeeds even if the path to the root
19096         is inaccessible, and this is helpful in common cases such as .zfs
19097         hidden directories.  Problem reported by J Chapman Flack in
19098         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
19099         Use system getcwd if it's declared, not merely if it's partly
19100         working; use the partly-working test only to avoid needless effort
19101         if the system getcwd fails.
19102         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
19103         comment that was already obsolete and is now even more obsolete.
19104         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
19105         now might call strdup.
19106
19107 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
19108
19109         pthread: Add enough so that coreutils/src/sort.c compiles.
19110         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
19111         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
19112         gnulib. Include <sched.h> and <time.h>, as per POSIX.
19113         Include <sys/types.h>, in case it defines pthread_t.
19114         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
19115         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
19116         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
19117         (pthread_rwlockattr_t, pthread_spinlock_t):
19118         New typedefs, if HAVE_PTHREAD_T is not defined.
19119         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
19120         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
19121         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
19122         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
19123         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
19124         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
19125         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
19126         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
19127         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
19128         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
19129         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
19130         New macros.
19131         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
19132         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
19133         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
19134         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
19135         (pthread_spin_unlock): New dummy functions.
19136         (pthread_create): Return EAGAIN; don't set errno.
19137         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
19138         require AC_C_INLINE.
19139         * modules/pthread (Depends-on): Add sched, time.
19140         (pthread.h): Use AM_V_GEN.
19141
19142 2010-07-13  Bruno Haible  <bruno@clisp.org>
19143
19144         striconveh: Don't malloc memory if the result buffer is sufficient.
19145         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
19146         buffer if its size is sufficient.
19147         Reported by Ludovic Courtès <ludo@gnu.org>.
19148
19149 2010-07-13  Bruno Haible  <bruno@clisp.org>
19150
19151         strtod: Add safety check.
19152         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
19153
19154 2010-07-12  Bruno Haible  <bruno@clisp.org>
19155
19156         Unify tests that set gl_cv_func_ldexpl_no_libm.
19157         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
19158         gl_FUNC_LDEXPL.
19159         (gl_FUNC_LDEXPL): Invoke it.
19160         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19161
19162 2010-07-12  Bruno Haible  <bruno@clisp.org>
19163
19164         Unify tests that set gl_cv_func_ldexp_no_libm.
19165         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
19166         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
19167         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
19168         (configure.ac): Simply invoke gl_FUNC_LDEXP.
19169         * modules/strtod (Files): Add m4/ldexp.m4.
19170
19171 2010-07-12  Bruno Haible  <bruno@clisp.org>
19172
19173         Unify tests that set gl_cv_func_frexpl_no_libm.
19174         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
19175         gl_FUNC_FREXPL_NO_LIBM.
19176         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
19177         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19178
19179 2010-07-12  Bruno Haible  <bruno@clisp.org>
19180
19181         Unify tests that set gl_cv_func_frexp_no_libm.
19182         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
19183         gl_FUNC_FREXP_NO_LIBM.
19184         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
19185         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19186
19187 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19188
19189         memcoll: clarify sizes versus lengths, document better, and tweak perf
19190         * lib/memcoll.c (strcoll_loop, memcoll0):
19191         Improve quality of descriptive comments.  Name variables
19192         consistently as to whether they are lengths (which do not include
19193         terminating null) versus sizes (which do).
19194         * lib/xmemcoll.c (xmemcoll0): Likewise.
19195         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
19196         returned when s1size == 0; this is easier to compile and saves
19197         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
19198
19199 2010-07-12  Bruno Haible  <bruno@clisp.org>
19200
19201         Tests for module '_Exit'.
19202         * modules/_Exit-tests: New file.
19203         * tests/test-_Exit.sh: New file.
19204         * tests/test-_Exit.c: New file.
19205
19206         New module '_Exit'.
19207         * lib/stdlib.in.h (__attribute__): New macro.
19208         (_Exit): New declaration.
19209         * lib/_Exit.c: New file.
19210         * m4/_Exit.m4: New file.
19211         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
19212         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
19213         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
19214         * modules/_Exit: New file.
19215         * tests/test-stdlib-c++.cc (_Exit): Check signature.
19216         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
19217
19218 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19219
19220         strtod: make it more-accurate typically, and don't require libm
19221         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
19222         Include limits.h.  Don't include string.h.
19223         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
19224         (locale_isspace): New function, so that no casts are needed to
19225         check whether *s is a space.
19226         (ldexp): Provide an unused dummy if not available.
19227         (scale_radix_exp, parse_number, underlying_strtod): New functions.
19228         (strtod): Use them.  This implementation prefers to use the
19229         underlying strtod if available, falling back on our own code
19230         only to fix known bugs.  This is more likely to produce an
19231         accurate result.  Also, it avoids the use of libm functions.
19232         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
19233         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
19234         was absent, but it caused a test failure with coreutils.
19235         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
19236         with libm.
19237         * modules/strtod (Makefile.am, Link): libm is no longer needed.
19238         * modules/strtod-tests (Makefile.am): Likewise.
19239
19240 2010-07-11  Pádraig Brady  <P@draigBrady.com>
19241             Bruno Haible  <bruno@clisp.org>
19242
19243         unistr/u8-strchr: Optimize ASCII argument case.
19244         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
19245
19246 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
19247
19248         (x)memcoll: minor tweaks
19249         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
19250         is after the type that it qualifies.
19251         (memcoll0): Likewise.
19252         * lib/memcoll.h (memcoll0): Likewise.
19253         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
19254         * lib/xmemcoll.h (xmemcoll0): Likewise.
19255         * lib/memcoll.c (memcoll0): Correct the comment.  This function
19256         differs from memcoll in that the NUL byte is part of the argument.
19257         Omit the abort-checks, as performance is a real issue here.  Plus,
19258         the checks were wrong anyway (an off-by-one error).  Omit local
19259         variable 'diff', as it's a bit clearer that way.
19260         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
19261         no longer needed.
19262
19263 2010-07-08  Chen Guo <chenguo4@yahoo.com>
19264
19265         (x)memcoll: speedup when input is known to be NUL delimited
19266         * lib/memcoll.c: Include stdlib.
19267         (memcoll0): New function.
19268         (strcoll_loop): New function, refactored for use in both memcoll
19269         and memcoll0.
19270         * lib/memcoll.h (memcoll0): Add prototype.
19271         * lib/xmemcoll.c (xmemcoll0): New function.
19272         (collate_error): New function, refactored for use in both xmemcoll
19273         and xmemcoll0.
19274         * lib/xmemcoll.h (xmemcoll0): Add prototype.
19275         * m4/memcoll.m4: add inline invocation.
19276
19277 2010-07-06  Pádraig Brady  <P@draigBrady.com>
19278
19279         * build-aux/bootstrap: Remove any local translations
19280         from the translation project synchronization directory,
19281         so that local only translations are not distributed.
19282
19283 2010-07-04  Bruno Haible  <bruno@clisp.org>
19284
19285         fsusage: Clarify which code applies to which platforms.
19286         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
19287         platform.
19288         * lib/fsusage.c (get_fs_usage): Likewise.
19289
19290 2010-07-04  Bruno Haible  <bruno@clisp.org>
19291
19292         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
19293         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
19294         Reported by Martin Lambers <marlam@marlam.de>.
19295
19296 2010-07-04  Jim Meyering  <meyering@redhat.com>
19297
19298         hash: once again explicitly disallow insertion of NULL
19299         * lib/hash.c (hash_insert0): Reinstate just-removed test:
19300         inserting a NULL pointer cannot work with these functions.
19301         Add a comment with details.
19302         This reverts part of the 2010-07-01 commit, 5bef1a35
19303         "hash: extend module to deal with non-pointer keys".
19304
19305 2010-07-01  Bruno Haible  <bruno@clisp.org>
19306
19307         stdbool: Update doc.
19308         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
19309         Info from Christian Weisgerber <naddy@mips.inka.de>.
19310
19311 2010-07-01  Jim Meyering  <meyering@redhat.com>
19312
19313         hash: extend module to deal with non-pointer keys
19314         * lib/hash.c (hash_insert0): New interface, much like hash_insert
19315         but that allows insertion of non-pointer entries.
19316         Do not disallow an ENTRY value of NULL.
19317         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
19318         * lib/hash.h (hash_insert0): Declare.
19319
19320 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19321
19322         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
19323         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
19324         not present (i.e. with autoconf 2.59 and when using gettextize, not
19325         gnulib), require AC_GNU_SOURCE instead.
19326
19327 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
19328
19329         idpriv-drop: Fix tests.
19330         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
19331         not to the test-idpriv-droptemp program.
19332
19333 2010-06-29  Bruno Haible  <bruno@clisp.org>
19334
19335         string: Fix syntax error with g++ 2.96.
19336         * lib/string.in.h (__pure__): Remove definition.
19337         (_GL_ATTRIBUTE_PURE): New macro.
19338         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
19339         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
19340         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19341
19342 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
19343
19344         unitypes: Fix bug introduced on 2010-05-18.
19345         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
19346
19347 2010-06-22  Eric Blake  <eblake@redhat.com>
19348
19349         memmem: slight optimization
19350         * lib/str-two-way.h (critical_factorization): Update comments.
19351         Reduce work during factorization phase.
19352         Reported by Carlos Bueno <carlos@bueno.org>.
19353
19354 2010-06-21  Bruno Haible  <bruno@clisp.org>
19355
19356         Fix HAVE_CALLOC_POSIX misnomer.
19357         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
19358         !HAVE_CALLOC_POSIX.
19359         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
19360         HAVE_CALLOC_POSIX.
19361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
19362         instead of HAVE_CALLOC_POSIX.
19363         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
19364         HAVE_CALLOC_POSIX.
19365
19366         Use modern idiom for calloc() replacement.
19367         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
19368         AC_FUNC_CALLOC.
19369         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
19370         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
19371         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19372         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
19373         (gl_REPLACE_CALLOC): New macro.
19374
19375 2010-06-21  Bruno Haible  <bruno@clisp.org>
19376
19377         Fix HAVE_REALLOC_POSIX misnomer.
19378         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
19379         !HAVE_REALLOC_POSIX.
19380         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
19381         HAVE_REALLOC_POSIX.
19382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
19383         instead of HAVE_REALLOC_POSIX.
19384         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
19385         HAVE_REALLOC_POSIX.
19386
19387         Use modern idiom for realloc() replacement.
19388         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
19389         AC_FUNC_REALLOC.
19390         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
19391         Autoconf's AC_FUNC_REALLOC.
19392         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19393         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
19394         (gl_REPLACE_REALLOC): New macro.
19395         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19396
19397 2010-06-21  Bruno Haible  <bruno@clisp.org>
19398
19399         Fix HAVE_MALLOC_POSIX misnomer.
19400         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
19401         !HAVE_MALLOC_POSIX.
19402         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
19403         HAVE_MALLOC_POSIX.
19404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
19405         instead of HAVE_MALLOC_POSIX.
19406         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
19407         HAVE_MALLOC_POSIX.
19408
19409         Use modern idiom for malloc() replacement.
19410         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
19411         AC_FUNC_MALLOC.
19412         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
19413         Autoconf's AC_FUNC_MALLOC.
19414         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19415         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
19416         (gl_REPLACE_MALLOC): New macro.
19417         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19418
19419 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
19420
19421         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
19422         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
19423         This macro takes 3 arguments, not 4.
19424
19425 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
19426
19427         ipv6: fix detection under mingw
19428         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
19429         in6_addr.
19430
19431 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
19432
19433         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
19434         that strtod() works when cross-compiling to a glibc version known
19435         to work.
19436
19437 2010-06-15  Bruno Haible  <bruno@clisp.org>
19438
19439         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
19440
19441 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
19442
19443         select: Correct timeout.
19444         * lib/select.c (rpl_select): Compute wait_timeout correctly.
19445
19446 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19447
19448         git-version-gen: init shell var to avoid env var influence
19449         * build-aux/git-version-gen (v): Init shell var to empty.
19450
19451 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
19452
19453         priv-set: Don't assume that priv.h exists merely because getppriv does.
19454         See Jan Andersen's bug report about AIX 5L in
19455         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
19456         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
19457         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
19458         * lib/priv-set.h: Likewise.
19459         * tests/test-priv-set.c: Likewise.
19460
19461 2010-06-13  Bruno Haible  <bruno@clisp.org>
19462
19463         relocatable: Make it easier to test whether to install wrappers.
19464         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
19465         RELOCATABLE_VIA_WRAPPER.
19466
19467 2010-06-13  Bruno Haible  <bruno@clisp.org>
19468
19469         gnulib-tool: Display specified modules and dependencies differently.
19470         * gnulib-tool (func_show_module_list): New function.
19471         (func_import, func_create_testdir): Invoke it.
19472         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
19473
19474 2010-06-13  Bruno Haible  <bruno@clisp.org>
19475
19476         gnulib-tool: Align code of func_import and func_create_testdir.
19477         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
19478         specified_modules.
19479
19480 2010-06-12  Jim Meyering  <meyering@redhat.com>
19481
19482         test-inttostr: avoid spurious failure on Solaris 9
19483         * tests/test-inttostr.c (main): Skip the test when snprintf fails
19484         to accept "%ju".  Reported by Bruno Haible.
19485
19486 2010-06-11  Jim Meyering  <meyering@redhat.com>
19487
19488         test-sys_socket: mark variables as used more readably
19489         * tests/test-sys_socket.c (main): Mark otherwise unused variables
19490         as "used" explicitly via (void) statement casts.  This is more
19491         readable than using them in an artificial return expression.
19492         Suggestion from Bruno Haible.
19493
19494 2010-06-11  Bruno Haible  <bruno@clisp.org>
19495
19496         Avoid some more warnings from "gcc -Wwrite-strings".
19497         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
19498         to 'const char *'.
19499         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
19500         * tests/test-c-strcasestr.c (main): Likewise.
19501         * tests/test-mbscasestr1.c (main): Likewise.
19502         * tests/test-mbscasestr2.c (main): Likewise.
19503         * tests/test-memmem.c (main): Likewise.
19504         * tests/test-strstr.c (main): Likewise.
19505         * tests/test-strcasestr.c (main): Likewise.
19506
19507 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19508
19509         init.sh: change framework_failure_ to fail with status 99, not 1
19510         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
19511         automake's parallel-tests rule that this is an unexpected failure,
19512         even if the test is listed in XFAIL_TESTS.
19513
19514 2010-06-11  Jim Meyering  <meyering@redhat.com>
19515
19516         test-inttostr: avoid warnings about 4-6KB literal strings
19517         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
19518         Include "macros.h", for its definition of ASSERT.
19519         (CK): s/assert/ASSERT/
19520         * modules/inttostr-tests (Files): Add macros.h.
19521
19522         init.sh: don't use $ME_ or skip_ before they are defined
19523         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
19524         their first uses.  Also hoist their companions: warn_, fail_,
19525         framework_failure_, $stderr_fileno.  Prompted by a patch from
19526         Stefano Lattarini.
19527
19528         test-sys_socket: avoid set-but-not-used warnings from gcc
19529         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
19530         avoid warning about set-but-not-used variables.
19531
19532         test-xvasprintf: avoid 'const' discard warnings
19533         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
19534         "const" when assigning from literal strings.
19535         (test_xasprintf): Add "void" in function argument list to placate
19536         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
19537
19538         tests: avoid compilation warnings in argmatch and exclude tests...
19539         in packages that define ARGMATCH_DIE_DECL, like coreutils.
19540         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
19541         Since it always exits, declare with the "noreturn" attribute.
19542         * tests/test-argmatch.c: Likewise.
19543
19544         tests: avoid 'const' discard warnings in mbsstr tests
19545         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
19546         * tests/test-mbsstr2.c (main): Likewise.
19547
19548         test-verify: avoid warning from gcc's -Wmissing-declarations
19549         * tests/test-verify.c (function): Declare to be static.
19550
19551         test-inttostr.c: include <string.h> for use of strcmp
19552         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
19553
19554         test-linkat: avoid failed assertion on "other" architectures
19555         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
19556         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
19557         sparc: https://bugs.launchpad.net/bugs/591968
19558
19559 2010-06-11  Jim Meyering  <meyering@redhat.com>
19560
19561         printf.m4: avoid autoconf's "Expanded Before Required" warning
19562         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
19563         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
19564         autoconf warning.
19565
19566 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
19567
19568         Replacement header templates are now named with ".in", not "_".
19569         * doc/gnulib-intro.texi: Correct.
19570
19571 2010-06-10  Jim Meyering  <meyering@redhat.com>
19572
19573         inttostr-tests: depend on snprintf, not snprintf-posix
19574         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
19575         snprintf-posix, to avoid this aclocal failure:
19576           missing file gnulib-tests/vasnprintf.c
19577           configure.ac:45: error: expected source file, required through \
19578           AC_LIBSOURCES, not found
19579
19580 2010-06-10  Jim Meyering  <meyering@redhat.com>
19581
19582         inttostr: add a new function, inttostr, and tests
19583         The namesake function was not available.  The existence of the
19584         template file, inttostr.c makes its addition nontrivial.
19585         * lib/anytostr.c: Rename from inttostr.c.
19586         (anytostr): Rename from inttostr.
19587         * lib/inttostr.c: New file.
19588         * modules/inttostr (Files): Add anytostr.c.
19589         (Makefile.am): Set lib_SOURCES instead of ...
19590         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
19591         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
19592         * lib/offtostr.c: Likewise.
19593         * lib/uinttostr.c: Likewise.
19594         * lib/umaxtostr.c: Likewise.
19595         * modules/inttostr-tests: New file.
19596         * tests/test-inttostr.c: New file.  Test these functions.
19597
19598 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
19599             Bruno Haible  <bruno@clisp.org>
19600
19601         Add "Extending Gnulib" chapter to manual.
19602         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
19603         chapter.
19604         (Extending Gnulib): New chapter.
19605         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
19606         chapter.
19607
19608 2010-06-09  Bruno Haible  <bruno@clisp.org>
19609
19610         Avoid relocwrapper link errors due to gnulib replacement functions.
19611         * lib/areadlink.c: Use the system's malloc, realloc functions.
19612         (areadlink): Set errno to ENOMEM explicitly.
19613         * modules/areadlink (Depends-on): Remove malloc-posix.
19614         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19615
19616 2010-06-09  Bruno Haible  <bruno@clisp.org>
19617
19618         Avoid relocwrapper link errors due to gnulib replacement functions.
19619         * lib/canonicalize-lgpl.c: Use the system's malloc function.
19620         * lib/malloca.c: Likewise.
19621         * lib/relocatable.c: Likewise.
19622         * lib/progreloc.c: Use the system's malloc, sprintf functions.
19623         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
19624         * lib/setenv.c: Use the system's malloc, realloc functions.
19625         * lib/strerror.c: Use the system's sprintf function.
19626         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19627
19628 2010-06-04  Bruno Haible  <bruno@clisp.org>
19629
19630         Prefer documented low-level autoconf macro names.
19631         * m4/lib-link.m4: Use m4_translit instead of translit.
19632         * m4/environ.m4: Likewise.
19633         * m4/mathfunc.m4: Likewise.
19634         * m4/onceonly.m4: Likewise.
19635         * m4/stdint.m4: Likewise.
19636         Suggested by Eric Blake.
19637
19638 2010-06-04  Martin Lambers  <marlam@marlam.de>
19639             Bruno Haible  <bruno@clisp.org>
19640
19641         havelib: Allow library names with '+' characters.
19642         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19643         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
19644
19645 2010-06-09  Bruno Haible  <bruno@clisp.org>
19646
19647         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
19648         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
19649         realloc failed.
19650
19651 2010-06-08  Peter Simons  <simons@cryp.to>
19652
19653         maint.mk: make the news-check rule more configurable
19654         * top/maint.mk (news-check-lines-spec): New variable.
19655         (news-check): Use "sed -n 1,10p" in place of "head".
19656
19657 2010-06-07  Jim Meyering  <meyering@redhat.com>
19658
19659         do-release-commit-and-tag: fix typo in --help
19660         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
19661
19662         regex: avoid new dead-code warning with gcc-4.6.0
19663         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
19664         if-block containing a while-loop.  It's been unused for at least
19665         5 years.
19666
19667 2010-06-05  Bruno Haible  <bruno@clisp.org>
19668
19669         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
19670         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
19671
19672 2010-06-04  Bruno Haible  <bruno@clisp.org>
19673
19674         Update to GNU gettext 0.18.1.
19675         * modules/gettext (configure.ac): Require gettext infrastructure from
19676         version 0.18.1.
19677
19678 2010-06-03  Bruno Haible  <bruno@clisp.org>
19679
19680         Don't use AC_LIBOBJ with file names in subdirectories.
19681         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
19682         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
19683         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
19684         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
19685         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
19686         gl_LIBUNISTRING_LIBSOURCE.
19687         (Makefile.am): Augment lib_SOURCES here, conditionally.
19688         * NEWS: Drop requirement for Automake option 'subdir-objects'.
19689
19690 2010-06-03  Bruno Haible  <bruno@clisp.org>
19691
19692         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
19693         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
19694         expansion does not end with a newline.
19695         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
19696         unnecessary newline.
19697
19698 2010-06-03  Bruno Haible  <bruno@clisp.org>
19699
19700         Reduce dependencies.
19701         * tests/test-quotearg.h: New file, extracted from
19702         tests/test-quotearg.c.
19703         * tests/test-quotearg-simple.c: New file, extracted from
19704         tests/test-quotearg.c.
19705         * tests/test-quotearg.c: Don't include <ctype.h>.
19706         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
19707         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
19708         use_quote_double_quotes, use_quotearg_colon): Moved to
19709         tests/test-quotearg.h.
19710         (results_g, flag_results, custom_quotes, custom_results): Moved
19711         to tests/test-quotearg-simple.c.
19712         (main): Moved the part that does not depend on gettext to
19713         tests/test-quotearg-simple.c. Return 77 if the test cannot be
19714         performed.
19715         * modules/quotearg-simple: New file.
19716         * modules/quotearg-simple-tests: New file.
19717         * modules/quotearg (Depends-on): Add quotearg-simple.
19718         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
19719         (Files): Add tests/test-quotearg.h.
19720         Reported by Paolo Bonzini.
19721
19722 2010-06-03  Bruno Haible  <bruno@clisp.org>
19723
19724         Reduce dependencies.
19725         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
19726
19727 2010-06-03  Bruno Haible  <bruno@clisp.org>
19728
19729         time: Undefine more broken macros.
19730         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
19731         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
19732         Reported by Eric Blake.
19733
19734 2010-06-03  Bruno Haible  <bruno@clisp.org>
19735
19736         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
19737         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
19738         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
19739         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
19740         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
19741         Reported by Ludovic Courtès <ludo@gnu.org>.
19742
19743 2010-06-02  Eric Blake  <eblake@redhat.com>
19744
19745         time: work with mingw + pthreads-win32 library
19746         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
19747         if timespec is defined only in pthread.h.
19748         * modules/time (Makefile.am): Substitute it.
19749         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
19750         <pthread.h>, when needed.
19751         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
19752         from the library.
19753
19754 2010-05-31  Bruno Haible  <bruno@clisp.org>
19755
19756         Avoid expanding two macros in the wrong order.
19757         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
19758         gl_LIBUNISTRING if it is defined.
19759         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
19760         autoconf >= 2.64.
19761         Reported by Ludovic Courtès <ludo@gnu.org>.
19762
19763 2010-05-27  Jim Meyering  <meyering@redhat.com>
19764
19765         maint.mk: also prohibit "#undef" of always-defined symbols
19766         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
19767         Allow more than one space before the symbol name.
19768         (sc_prohibit_always-defined_macros): Use grep's -E, now that
19769         the regexp uses alternation.
19770
19771 2010-05-26  Eric Blake  <eblake@redhat.com>
19772
19773         maint.mk: avoid echo -e
19774         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
19775         Convert all uses of echo -* to printf.
19776         Reported by Matthias Bolte.
19777
19778 2010-05-25  Bruno Haible  <bruno@clisp.org>
19779
19780         Update to GNU gettext 0.18, part 2.
19781         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
19782         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
19783
19784 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19785
19786         Add missing include in test-pwrite.c.
19787         * tests/test-pwrite.c: Include string.h, for strcmp.
19788
19789 2010-05-24  Bruno Haible  <bruno@clisp.org>
19790
19791         * NEWS: Mention requirement for Automake option 'subdir-objects'.
19792
19793 2010-05-24  Bruno Haible  <bruno@clisp.org>
19794
19795         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19796         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19797         iconveh_error argument.
19798         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19799         U_STRCONV_TO_LOCALE.
19800         * lib/unistr/u16-strcoll.c: Likewise.
19801         * lib/unistr/u32-strcoll.c: Likewise.
19802         * modules/unistr/u8-strcoll (Depends-on): Add
19803         uniconv/u8-strconv-to-enc, localcharset. Remove
19804         uniconv/u8-strconv-to-locale.
19805         (configure.ac): Bump version number.
19806         * modules/unistr/u16-strcoll (Depends-on): Add
19807         uniconv/u16-strconv-to-enc, localcharset. Remove
19808         uniconv/u16-strconv-to-locale.
19809         (configure.ac): Bump version number.
19810         * modules/unistr/u32-strcoll (Depends-on): Add
19811         uniconv/u32-strconv-to-enc, localcharset. Remove
19812         uniconv/u32-strconv-to-locale.
19813         (configure.ac): Bump version number.
19814
19815 2010-05-24  Bruno Haible  <bruno@clisp.org>
19816
19817         Avoid a test failure on NetBSD 5.0.
19818         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19819         an iconv() bug.
19820
19821 2010-05-24  Bruno Haible  <bruno@clisp.org>
19822
19823         Adjust #include directive style.
19824         * modules/regex (Includes): Recommend to write <regex.h>.
19825
19826 2010-05-24  Bruno Haible  <bruno@clisp.org>
19827
19828         regex: Don't require alloca.
19829         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
19830         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
19831         only inside if (0).
19832
19833 2010-05-23  Jim Meyering  <meyering@redhat.com>
19834
19835         test-renameat.c: include <sys/stat.h>
19836         * tests/test-renameat.c: Include <sys/stat.h>; required for
19837         definition of S_IS* macros.
19838
19839 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
19840
19841         Update maintainer documentation for 'relocatable-prog' module.
19842         * doc/relocatable-maint.texi: Update.
19843         Comments by Bruno Haible.
19844
19845 2010-05-23  Bruno Haible  <bruno@clisp.org>
19846
19847         git-merge-changelog: Enable --split-merged-entry by default.
19848         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
19849         (usage): Don't mention this option any more.
19850         Reported by Ralf Wildenhues.
19851
19852 2010-05-23  Jim Meyering  <meyering@redhat.com>
19853
19854         test-pwrite: do not leave behind a test file named "out"
19855         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
19856         The trivial-looking use of init.sh is really necessary.
19857         It ensures that the temporary file, "out", is created in
19858         a temporary directory, and removed upon termination.
19859         * tests/test-pwrite.sh: Re-add file.
19860         * modules/pwrite-tests: Reference it.
19861
19862 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19863
19864         Fix output redirection buglet in init.sh.
19865         * tests/init.sh: Fix redirection of stderr.
19866
19867 2010-05-20  Simon Josefsson  <simon@josefsson.org>
19868
19869         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
19870
19871 2010-05-17  Simon Josefsson  <simon@josefsson.org>
19872
19873         * modules/valgrind-tests: New file.
19874         * m4/valgrind-tests.m4: New file.
19875         * doc/valgrind-tests.texi: New file.
19876         * doc/gnulib.texi (Running self-tests under valgrind): New
19877         section.
19878
19879 2010-05-19  Bruno Haible  <bruno@clisp.org>
19880
19881         Clean up dead code in recent commit.
19882         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
19883         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19884         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19885         Suggested by Paolo Bonzini.
19886
19887 2010-05-19  Bruno Haible  <bruno@clisp.org>
19888
19889         Avoid valgrind error reports from libunistring.
19890         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19891         * modules/libunistring (Files): Add it.
19892         * modules/libunistring-optional (Files): Likewise.
19893
19894 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19895             Bruno Haible  <bruno@clisp.org>
19896
19897         New module 'libunistring-optional'.
19898         * modules/libunistring-optional: New file.
19899         * m4/libunistring-base.m4: New file.
19900         * m4/libunistring-optional.m4: New file.
19901         * lib/unicase.in.h: Renamed from lib/unicase.h.
19902         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19903         * lib/unictype.in.h: Renamed from lib/unictype.h.
19904         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19905         * lib/uniname.in.h: Renamed from lib/uniname.h.
19906         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19907         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19908         * lib/unistr.in.h: Renamed from lib/unistr.h.
19909         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19910         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19911         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19912         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19913         gl_LIBUNISTRING. If the library was found, determine the installed
19914         version and set LIBUNISTRING_VERSION.
19915         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19916         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19917         handle a configuration option --with-included-libunistring.
19918         * modules/libunistring (Files): Add m4/absolute-header.m4.
19919         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19920         Add m4/libunistring-base.m4.
19921         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19922         (Makefile.am): Build unicase.h from unicase.in.h.
19923         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19924         Add m4/libunistring-base.m4.
19925         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19926         (Makefile.am): Build uniconv.h from uniconv.in.h.
19927         * modules/unictype/base (Files): Use unictype.in.h instead of
19928         unictype.h. Add m4/libunistring-base.m4.
19929         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19930         (Makefile.am): Build unictype.h from unictype.in.h.
19931         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19932         Add m4/libunistring-base.m4.
19933         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19934         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19935         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19936         Add m4/libunistring-base.m4.
19937         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19938         (Makefile.am): Build uniname.h from uniname.in.h.
19939         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19940         Add m4/libunistring-base.m4.
19941         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19942         (Makefile.am): Build uninorm.h from uninorm.in.h.
19943         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19944         unistdio.h. Add m4/libunistring-base.m4.
19945         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19946         (Makefile.am): Build unistdio.h from unistdio.in.h.
19947         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19948         Add m4/libunistring-base.m4.
19949         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19950         (Makefile.am): Build unistr.h from unistr.in.h.
19951         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19952         Add m4/libunistring-base.m4.
19953         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19954         (Makefile.am): Build unitypes.h from unitypes.in.h.
19955         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19956         Add m4/libunistring-base.m4.
19957         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19958         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19959         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19960         uniwidth.h. Add m4/libunistring-base.m4.
19961         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19962         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19963         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19964         instead of augmenting lib_SOURCES.
19965         * modules/unicase/empty-suffix-context: Likewise.
19966         * modules/unicase/locale-language: Likewise.
19967         * modules/unicase/tolower: Likewise.
19968         * modules/unicase/totitle: Likewise.
19969         * modules/unicase/toupper: Likewise.
19970         * modules/unicase/u8-casecmp: Likewise.
19971         * modules/unicase/u8-casecoll: Likewise.
19972         * modules/unicase/u8-casefold: Likewise.
19973         * modules/unicase/u8-casexfrm: Likewise.
19974         * modules/unicase/u8-ct-casefold: Likewise.
19975         * modules/unicase/u8-ct-tolower: Likewise.
19976         * modules/unicase/u8-ct-totitle: Likewise.
19977         * modules/unicase/u8-ct-toupper: Likewise.
19978         * modules/unicase/u8-is-cased: Likewise.
19979         * modules/unicase/u8-is-casefolded: Likewise.
19980         * modules/unicase/u8-is-lowercase: Likewise.
19981         * modules/unicase/u8-is-titlecase: Likewise.
19982         * modules/unicase/u8-is-uppercase: Likewise.
19983         * modules/unicase/u8-prefix-context: Likewise.
19984         * modules/unicase/u8-suffix-context: Likewise.
19985         * modules/unicase/u8-tolower: Likewise.
19986         * modules/unicase/u8-totitle: Likewise.
19987         * modules/unicase/u8-toupper: Likewise.
19988         * modules/unicase/u16-casecmp: Likewise.
19989         * modules/unicase/u16-casecoll: Likewise.
19990         * modules/unicase/u16-casefold: Likewise.
19991         * modules/unicase/u16-casexfrm: Likewise.
19992         * modules/unicase/u16-ct-casefold: Likewise.
19993         * modules/unicase/u16-ct-tolower: Likewise.
19994         * modules/unicase/u16-ct-totitle: Likewise.
19995         * modules/unicase/u16-ct-toupper: Likewise.
19996         * modules/unicase/u16-is-cased: Likewise.
19997         * modules/unicase/u16-is-casefolded: Likewise.
19998         * modules/unicase/u16-is-lowercase: Likewise.
19999         * modules/unicase/u16-is-titlecase: Likewise.
20000         * modules/unicase/u16-is-uppercase: Likewise.
20001         * modules/unicase/u16-prefix-context: Likewise.
20002         * modules/unicase/u16-suffix-context: Likewise.
20003         * modules/unicase/u16-tolower: Likewise.
20004         * modules/unicase/u16-totitle: Likewise.
20005         * modules/unicase/u16-toupper: Likewise.
20006         * modules/unicase/u32-casecmp: Likewise.
20007         * modules/unicase/u32-casecoll: Likewise.
20008         * modules/unicase/u32-casefold: Likewise.
20009         * modules/unicase/u32-casexfrm: Likewise.
20010         * modules/unicase/u32-ct-casefold: Likewise.
20011         * modules/unicase/u32-ct-tolower: Likewise.
20012         * modules/unicase/u32-ct-totitle: Likewise.
20013         * modules/unicase/u32-ct-toupper: Likewise.
20014         * modules/unicase/u32-is-cased: Likewise.
20015         * modules/unicase/u32-is-casefolded: Likewise.
20016         * modules/unicase/u32-is-lowercase: Likewise.
20017         * modules/unicase/u32-is-titlecase: Likewise.
20018         * modules/unicase/u32-is-uppercase: Likewise.
20019         * modules/unicase/u32-prefix-context: Likewise.
20020         * modules/unicase/u32-suffix-context: Likewise.
20021         * modules/unicase/u32-tolower: Likewise.
20022         * modules/unicase/u32-totitle: Likewise.
20023         * modules/unicase/u32-toupper: Likewise.
20024         * modules/unicase/ulc-casecmp: Likewise.
20025         * modules/unicase/ulc-casecoll: Likewise.
20026         * modules/unicase/ulc-casexfrm: Likewise.
20027         * modules/uniconv/u8-conv-from-enc: Likewise.
20028         * modules/uniconv/u8-conv-to-enc: Likewise.
20029         * modules/uniconv/u8-strconv-from-enc: Likewise.
20030         * modules/uniconv/u8-strconv-from-locale: Likewise.
20031         * modules/uniconv/u8-strconv-to-enc: Likewise.
20032         * modules/uniconv/u8-strconv-to-locale: Likewise.
20033         * modules/uniconv/u16-conv-from-enc: Likewise.
20034         * modules/uniconv/u16-conv-to-enc: Likewise.
20035         * modules/uniconv/u16-strconv-from-enc: Likewise.
20036         * modules/uniconv/u16-strconv-from-locale: Likewise.
20037         * modules/uniconv/u16-strconv-to-enc: Likewise.
20038         * modules/uniconv/u16-strconv-to-locale: Likewise.
20039         * modules/uniconv/u32-conv-from-enc: Likewise.
20040         * modules/uniconv/u32-conv-to-enc: Likewise.
20041         * modules/uniconv/u32-strconv-from-enc: Likewise.
20042         * modules/uniconv/u32-strconv-from-locale: Likewise.
20043         * modules/uniconv/u32-strconv-to-enc: Likewise.
20044         * modules/uniconv/u32-strconv-to-locale: Likewise.
20045         * modules/unictype/bidicategory-byname: Likewise.
20046         * modules/unictype/bidicategory-name: Likewise.
20047         * modules/unictype/bidicategory-of: Likewise.
20048         * modules/unictype/bidicategory-test: Likewise.
20049         * modules/unictype/block-list: Likewise.
20050         * modules/unictype/block-test: Likewise.
20051         * modules/unictype/category-C: Likewise.
20052         * modules/unictype/category-Cc: Likewise.
20053         * modules/unictype/category-Cf: Likewise.
20054         * modules/unictype/category-Cn: Likewise.
20055         * modules/unictype/category-Co: Likewise.
20056         * modules/unictype/category-Cs: Likewise.
20057         * modules/unictype/category-L: Likewise.
20058         * modules/unictype/category-Ll: Likewise.
20059         * modules/unictype/category-Lm: Likewise.
20060         * modules/unictype/category-Lo: Likewise.
20061         * modules/unictype/category-Lt: Likewise.
20062         * modules/unictype/category-Lu: Likewise.
20063         * modules/unictype/category-M: Likewise.
20064         * modules/unictype/category-Mc: Likewise.
20065         * modules/unictype/category-Me: Likewise.
20066         * modules/unictype/category-Mn: Likewise.
20067         * modules/unictype/category-N: Likewise.
20068         * modules/unictype/category-Nd: Likewise.
20069         * modules/unictype/category-Nl: Likewise.
20070         * modules/unictype/category-No: Likewise.
20071         * modules/unictype/category-P: Likewise.
20072         * modules/unictype/category-Pc: Likewise.
20073         * modules/unictype/category-Pd: Likewise.
20074         * modules/unictype/category-Pe: Likewise.
20075         * modules/unictype/category-Pf: Likewise.
20076         * modules/unictype/category-Pi: Likewise.
20077         * modules/unictype/category-Po: Likewise.
20078         * modules/unictype/category-Ps: Likewise.
20079         * modules/unictype/category-S: Likewise.
20080         * modules/unictype/category-Sc: Likewise.
20081         * modules/unictype/category-Sk: Likewise.
20082         * modules/unictype/category-Sm: Likewise.
20083         * modules/unictype/category-So: Likewise.
20084         * modules/unictype/category-Z: Likewise.
20085         * modules/unictype/category-Zl: Likewise.
20086         * modules/unictype/category-Zp: Likewise.
20087         * modules/unictype/category-Zs: Likewise.
20088         * modules/unictype/category-and: Likewise.
20089         * modules/unictype/category-and-not: Likewise.
20090         * modules/unictype/category-byname: Likewise.
20091         * modules/unictype/category-name: Likewise.
20092         * modules/unictype/category-none: Likewise.
20093         * modules/unictype/category-of: Likewise.
20094         * modules/unictype/category-or: Likewise.
20095         * modules/unictype/category-test: Likewise.
20096         * modules/unictype/combining-class: Likewise.
20097         * modules/unictype/ctype-alnum: Likewise.
20098         * modules/unictype/ctype-alpha: Likewise.
20099         * modules/unictype/ctype-blank: Likewise.
20100         * modules/unictype/ctype-cntrl: Likewise.
20101         * modules/unictype/ctype-digit: Likewise.
20102         * modules/unictype/ctype-graph: Likewise.
20103         * modules/unictype/ctype-lower: Likewise.
20104         * modules/unictype/ctype-print: Likewise.
20105         * modules/unictype/ctype-punct: Likewise.
20106         * modules/unictype/ctype-space: Likewise.
20107         * modules/unictype/ctype-upper: Likewise.
20108         * modules/unictype/ctype-xdigit: Likewise.
20109         * modules/unictype/decimal-digit: Likewise.
20110         * modules/unictype/digit: Likewise.
20111         * modules/unictype/mirror: Likewise.
20112         * modules/unictype/numeric: Likewise.
20113         * modules/unictype/property-alphabetic: Likewise.
20114         * modules/unictype/property-ascii-hex-digit: Likewise.
20115         * modules/unictype/property-bidi-arabic-digit: Likewise.
20116         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
20117         * modules/unictype/property-bidi-block-separator: Likewise.
20118         * modules/unictype/property-bidi-boundary-neutral: Likewise.
20119         * modules/unictype/property-bidi-common-separator: Likewise.
20120         * modules/unictype/property-bidi-control: Likewise.
20121         * modules/unictype/property-bidi-embedding-or-override: Likewise.
20122         * modules/unictype/property-bidi-eur-num-separator: Likewise.
20123         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
20124         * modules/unictype/property-bidi-european-digit: Likewise.
20125         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
20126         * modules/unictype/property-bidi-left-to-right: Likewise.
20127         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
20128         * modules/unictype/property-bidi-other-neutral: Likewise.
20129         * modules/unictype/property-bidi-pdf: Likewise.
20130         * modules/unictype/property-bidi-segment-separator: Likewise.
20131         * modules/unictype/property-bidi-whitespace: Likewise.
20132         * modules/unictype/property-byname: Likewise.
20133         * modules/unictype/property-combining: Likewise.
20134         * modules/unictype/property-composite: Likewise.
20135         * modules/unictype/property-currency-symbol: Likewise.
20136         * modules/unictype/property-dash: Likewise.
20137         * modules/unictype/property-decimal-digit: Likewise.
20138         * modules/unictype/property-default-ignorable-code-point: Likewise.
20139         * modules/unictype/property-deprecated: Likewise.
20140         * modules/unictype/property-diacritic: Likewise.
20141         * modules/unictype/property-extender: Likewise.
20142         * modules/unictype/property-format-control: Likewise.
20143         * modules/unictype/property-grapheme-base: Likewise.
20144         * modules/unictype/property-grapheme-extend: Likewise.
20145         * modules/unictype/property-grapheme-link: Likewise.
20146         * modules/unictype/property-hex-digit: Likewise.
20147         * modules/unictype/property-hyphen: Likewise.
20148         * modules/unictype/property-id-continue: Likewise.
20149         * modules/unictype/property-id-start: Likewise.
20150         * modules/unictype/property-ideographic: Likewise.
20151         * modules/unictype/property-ids-binary-operator: Likewise.
20152         * modules/unictype/property-ids-trinary-operator: Likewise.
20153         * modules/unictype/property-ignorable-control: Likewise.
20154         * modules/unictype/property-iso-control: Likewise.
20155         * modules/unictype/property-join-control: Likewise.
20156         * modules/unictype/property-left-of-pair: Likewise.
20157         * modules/unictype/property-line-separator: Likewise.
20158         * modules/unictype/property-logical-order-exception: Likewise.
20159         * modules/unictype/property-lowercase: Likewise.
20160         * modules/unictype/property-math: Likewise.
20161         * modules/unictype/property-non-break: Likewise.
20162         * modules/unictype/property-not-a-character: Likewise.
20163         * modules/unictype/property-numeric: Likewise.
20164         * modules/unictype/property-other-alphabetic: Likewise.
20165         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
20166         * modules/unictype/property-other-grapheme-extend: Likewise.
20167         * modules/unictype/property-other-id-continue: Likewise.
20168         * modules/unictype/property-other-id-start: Likewise.
20169         * modules/unictype/property-other-lowercase: Likewise.
20170         * modules/unictype/property-other-math: Likewise.
20171         * modules/unictype/property-other-uppercase: Likewise.
20172         * modules/unictype/property-paired-punctuation: Likewise.
20173         * modules/unictype/property-paragraph-separator: Likewise.
20174         * modules/unictype/property-pattern-syntax: Likewise.
20175         * modules/unictype/property-pattern-white-space: Likewise.
20176         * modules/unictype/property-private-use: Likewise.
20177         * modules/unictype/property-punctuation: Likewise.
20178         * modules/unictype/property-quotation-mark: Likewise.
20179         * modules/unictype/property-radical: Likewise.
20180         * modules/unictype/property-sentence-terminal: Likewise.
20181         * modules/unictype/property-soft-dotted: Likewise.
20182         * modules/unictype/property-space: Likewise.
20183         * modules/unictype/property-terminal-punctuation: Likewise.
20184         * modules/unictype/property-test: Likewise.
20185         * modules/unictype/property-titlecase: Likewise.
20186         * modules/unictype/property-unassigned-code-value: Likewise.
20187         * modules/unictype/property-unified-ideograph: Likewise.
20188         * modules/unictype/property-uppercase: Likewise.
20189         * modules/unictype/property-variation-selector: Likewise.
20190         * modules/unictype/property-white-space: Likewise.
20191         * modules/unictype/property-xid-continue: Likewise.
20192         * modules/unictype/property-xid-start: Likewise.
20193         * modules/unictype/property-zero-width: Likewise.
20194         * modules/unictype/scripts: Likewise.
20195         * modules/unictype/syntax-c-ident: Likewise.
20196         * modules/unictype/syntax-c-whitespace: Likewise.
20197         * modules/unictype/syntax-java-ident: Likewise.
20198         * modules/unictype/syntax-java-whitespace: Likewise.
20199         * modules/unilbrk/u8-possible-linebreaks: Likewise.
20200         * modules/unilbrk/u8-width-linebreaks: Likewise.
20201         * modules/unilbrk/u16-possible-linebreaks: Likewise.
20202         * modules/unilbrk/u16-width-linebreaks: Likewise.
20203         * modules/unilbrk/u32-possible-linebreaks: Likewise.
20204         * modules/unilbrk/u32-width-linebreaks: Likewise.
20205         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
20206         * modules/unilbrk/ulc-width-linebreaks: Likewise.
20207         * modules/uniname/uniname: Likewise.
20208         * modules/uninorm/canonical-decomposition: Likewise.
20209         * modules/uninorm/composition: Likewise.
20210         * modules/uninorm/decomposing-form: Likewise.
20211         * modules/uninorm/decomposition: Likewise.
20212         * modules/uninorm/filter: Likewise.
20213         * modules/uninorm/nfc: Likewise.
20214         * modules/uninorm/nfd: Likewise.
20215         * modules/uninorm/nfkc: Likewise.
20216         * modules/uninorm/nfkd: Likewise.
20217         * modules/uninorm/u8-normalize: Likewise.
20218         * modules/uninorm/u8-normcmp: Likewise.
20219         * modules/uninorm/u8-normcoll: Likewise.
20220         * modules/uninorm/u8-normxfrm: Likewise.
20221         * modules/uninorm/u16-normalize: Likewise.
20222         * modules/uninorm/u16-normcmp: Likewise.
20223         * modules/uninorm/u16-normcoll: Likewise.
20224         * modules/uninorm/u16-normxfrm: Likewise.
20225         * modules/uninorm/u32-normalize: Likewise.
20226         * modules/uninorm/u32-normcmp: Likewise.
20227         * modules/uninorm/u32-normcoll: Likewise.
20228         * modules/uninorm/u32-normxfrm: Likewise.
20229         * modules/unistdio/u8-asnprintf: Likewise.
20230         * modules/unistdio/u8-asprintf: Likewise.
20231         * modules/unistdio/u8-snprintf: Likewise.
20232         * modules/unistdio/u8-sprintf: Likewise.
20233         * modules/unistdio/u8-u8-asnprintf: Likewise.
20234         * modules/unistdio/u8-u8-asprintf: Likewise.
20235         * modules/unistdio/u8-u8-snprintf: Likewise.
20236         * modules/unistdio/u8-u8-sprintf: Likewise.
20237         * modules/unistdio/u8-u8-vasnprintf: Likewise.
20238         * modules/unistdio/u8-u8-vasprintf: Likewise.
20239         * modules/unistdio/u8-u8-vsnprintf: Likewise.
20240         * modules/unistdio/u8-u8-vsprintf: Likewise.
20241         * modules/unistdio/u8-vasnprintf: Likewise.
20242         * modules/unistdio/u8-vasprintf: Likewise.
20243         * modules/unistdio/u8-vsnprintf: Likewise.
20244         * modules/unistdio/u8-vsprintf: Likewise.
20245         * modules/unistdio/u16-asnprintf: Likewise.
20246         * modules/unistdio/u16-asprintf: Likewise.
20247         * modules/unistdio/u16-snprintf: Likewise.
20248         * modules/unistdio/u16-sprintf: Likewise.
20249         * modules/unistdio/u16-u16-asnprintf: Likewise.
20250         * modules/unistdio/u16-u16-asprintf: Likewise.
20251         * modules/unistdio/u16-u16-snprintf: Likewise.
20252         * modules/unistdio/u16-u16-sprintf: Likewise.
20253         * modules/unistdio/u16-u16-vasnprintf: Likewise.
20254         * modules/unistdio/u16-u16-vasprintf: Likewise.
20255         * modules/unistdio/u16-u16-vsnprintf: Likewise.
20256         * modules/unistdio/u16-u16-vsprintf: Likewise.
20257         * modules/unistdio/u16-vasnprintf: Likewise.
20258         * modules/unistdio/u16-vasprintf: Likewise.
20259         * modules/unistdio/u16-vsnprintf: Likewise.
20260         * modules/unistdio/u16-vsprintf: Likewise.
20261         * modules/unistdio/u32-asnprintf: Likewise.
20262         * modules/unistdio/u32-asprintf: Likewise.
20263         * modules/unistdio/u32-snprintf: Likewise.
20264         * modules/unistdio/u32-sprintf: Likewise.
20265         * modules/unistdio/u32-u32-asnprintf: Likewise.
20266         * modules/unistdio/u32-u32-asprintf: Likewise.
20267         * modules/unistdio/u32-u32-snprintf: Likewise.
20268         * modules/unistdio/u32-u32-sprintf: Likewise.
20269         * modules/unistdio/u32-u32-vasnprintf: Likewise.
20270         * modules/unistdio/u32-u32-vasprintf: Likewise.
20271         * modules/unistdio/u32-u32-vsnprintf: Likewise.
20272         * modules/unistdio/u32-u32-vsprintf: Likewise.
20273         * modules/unistdio/u32-vasnprintf: Likewise.
20274         * modules/unistdio/u32-vasprintf: Likewise.
20275         * modules/unistdio/u32-vsnprintf: Likewise.
20276         * modules/unistdio/u32-vsprintf: Likewise.
20277         * modules/unistdio/ulc-asnprintf: Likewise.
20278         * modules/unistdio/ulc-asprintf: Likewise.
20279         * modules/unistdio/ulc-fprintf: Likewise.
20280         * modules/unistdio/ulc-snprintf: Likewise.
20281         * modules/unistdio/ulc-sprintf: Likewise.
20282         * modules/unistdio/ulc-vasnprintf: Likewise.
20283         * modules/unistdio/ulc-vasprintf: Likewise.
20284         * modules/unistdio/ulc-vfprintf: Likewise.
20285         * modules/unistdio/ulc-vsnprintf: Likewise.
20286         * modules/unistdio/ulc-vsprintf: Likewise.
20287         * modules/unistr/u8-check: Likewise.
20288         * modules/unistr/u8-chr: Likewise.
20289         * modules/unistr/u8-cmp: Likewise.
20290         * modules/unistr/u8-cmp2: Likewise.
20291         * modules/unistr/u8-cpy: Likewise.
20292         * modules/unistr/u8-cpy-alloc: Likewise.
20293         * modules/unistr/u8-endswith: Likewise.
20294         * modules/unistr/u8-mblen: Likewise.
20295         * modules/unistr/u8-mbsnlen: Likewise.
20296         * modules/unistr/u8-mbtouc: Likewise.
20297         * modules/unistr/u8-mbtouc-unsafe: Likewise.
20298         * modules/unistr/u8-mbtoucr: Likewise.
20299         * modules/unistr/u8-move: Likewise.
20300         * modules/unistr/u8-next: Likewise.
20301         * modules/unistr/u8-prev: Likewise.
20302         * modules/unistr/u8-set: Likewise.
20303         * modules/unistr/u8-startswith: Likewise.
20304         * modules/unistr/u8-stpcpy: Likewise.
20305         * modules/unistr/u8-stpncpy: Likewise.
20306         * modules/unistr/u8-strcat: Likewise.
20307         * modules/unistr/u8-strchr: Likewise.
20308         * modules/unistr/u8-strcmp: Likewise.
20309         * modules/unistr/u8-strcoll: Likewise.
20310         * modules/unistr/u8-strcpy: Likewise.
20311         * modules/unistr/u8-strcspn: Likewise.
20312         * modules/unistr/u8-strdup: Likewise.
20313         * modules/unistr/u8-strlen: Likewise.
20314         * modules/unistr/u8-strmblen: Likewise.
20315         * modules/unistr/u8-strmbtouc: Likewise.
20316         * modules/unistr/u8-strncat: Likewise.
20317         * modules/unistr/u8-strncmp: Likewise.
20318         * modules/unistr/u8-strncpy: Likewise.
20319         * modules/unistr/u8-strnlen: Likewise.
20320         * modules/unistr/u8-strpbrk: Likewise.
20321         * modules/unistr/u8-strrchr: Likewise.
20322         * modules/unistr/u8-strspn: Likewise.
20323         * modules/unistr/u8-strstr: Likewise.
20324         * modules/unistr/u8-strtok: Likewise.
20325         * modules/unistr/u8-to-u16: Likewise.
20326         * modules/unistr/u8-to-u32: Likewise.
20327         * modules/unistr/u8-uctomb: Likewise.
20328         * modules/unistr/u16-check: Likewise.
20329         * modules/unistr/u16-chr: Likewise.
20330         * modules/unistr/u16-cmp: Likewise.
20331         * modules/unistr/u16-cmp2: Likewise.
20332         * modules/unistr/u16-cpy: Likewise.
20333         * modules/unistr/u16-cpy-alloc: Likewise.
20334         * modules/unistr/u16-endswith: Likewise.
20335         * modules/unistr/u16-mblen: Likewise.
20336         * modules/unistr/u16-mbsnlen: Likewise.
20337         * modules/unistr/u16-mbtouc: Likewise.
20338         * modules/unistr/u16-mbtouc-unsafe: Likewise.
20339         * modules/unistr/u16-mbtoucr: Likewise.
20340         * modules/unistr/u16-move: Likewise.
20341         * modules/unistr/u16-next: Likewise.
20342         * modules/unistr/u16-prev: Likewise.
20343         * modules/unistr/u16-set: Likewise.
20344         * modules/unistr/u16-startswith: Likewise.
20345         * modules/unistr/u16-stpcpy: Likewise.
20346         * modules/unistr/u16-stpncpy: Likewise.
20347         * modules/unistr/u16-strcat: Likewise.
20348         * modules/unistr/u16-strchr: Likewise.
20349         * modules/unistr/u16-strcmp: Likewise.
20350         * modules/unistr/u16-strcoll: Likewise.
20351         * modules/unistr/u16-strcpy: Likewise.
20352         * modules/unistr/u16-strcspn: Likewise.
20353         * modules/unistr/u16-strdup: Likewise.
20354         * modules/unistr/u16-strlen: Likewise.
20355         * modules/unistr/u16-strmblen: Likewise.
20356         * modules/unistr/u16-strmbtouc: Likewise.
20357         * modules/unistr/u16-strncat: Likewise.
20358         * modules/unistr/u16-strncmp: Likewise.
20359         * modules/unistr/u16-strncpy: Likewise.
20360         * modules/unistr/u16-strnlen: Likewise.
20361         * modules/unistr/u16-strpbrk: Likewise.
20362         * modules/unistr/u16-strrchr: Likewise.
20363         * modules/unistr/u16-strspn: Likewise.
20364         * modules/unistr/u16-strstr: Likewise.
20365         * modules/unistr/u16-strtok: Likewise.
20366         * modules/unistr/u16-to-u32: Likewise.
20367         * modules/unistr/u16-to-u8: Likewise.
20368         * modules/unistr/u16-uctomb: Likewise.
20369         * modules/unistr/u32-check: Likewise.
20370         * modules/unistr/u32-chr: Likewise.
20371         * modules/unistr/u32-cmp: Likewise.
20372         * modules/unistr/u32-cmp2: Likewise.
20373         * modules/unistr/u32-cpy: Likewise.
20374         * modules/unistr/u32-cpy-alloc: Likewise.
20375         * modules/unistr/u32-endswith: Likewise.
20376         * modules/unistr/u32-mblen: Likewise.
20377         * modules/unistr/u32-mbsnlen: Likewise.
20378         * modules/unistr/u32-mbtouc: Likewise.
20379         * modules/unistr/u32-mbtouc-unsafe: Likewise.
20380         * modules/unistr/u32-mbtoucr: Likewise.
20381         * modules/unistr/u32-move: Likewise.
20382         * modules/unistr/u32-next: Likewise.
20383         * modules/unistr/u32-prev: Likewise.
20384         * modules/unistr/u32-set: Likewise.
20385         * modules/unistr/u32-startswith: Likewise.
20386         * modules/unistr/u32-stpcpy: Likewise.
20387         * modules/unistr/u32-stpncpy: Likewise.
20388         * modules/unistr/u32-strcat: Likewise.
20389         * modules/unistr/u32-strchr: Likewise.
20390         * modules/unistr/u32-strcmp: Likewise.
20391         * modules/unistr/u32-strcoll: Likewise.
20392         * modules/unistr/u32-strcpy: Likewise.
20393         * modules/unistr/u32-strcspn: Likewise.
20394         * modules/unistr/u32-strdup: Likewise.
20395         * modules/unistr/u32-strlen: Likewise.
20396         * modules/unistr/u32-strmblen: Likewise.
20397         * modules/unistr/u32-strmbtouc: Likewise.
20398         * modules/unistr/u32-strncat: Likewise.
20399         * modules/unistr/u32-strncmp: Likewise.
20400         * modules/unistr/u32-strncpy: Likewise.
20401         * modules/unistr/u32-strnlen: Likewise.
20402         * modules/unistr/u32-strpbrk: Likewise.
20403         * modules/unistr/u32-strrchr: Likewise.
20404         * modules/unistr/u32-strspn: Likewise.
20405         * modules/unistr/u32-strstr: Likewise.
20406         * modules/unistr/u32-strtok: Likewise.
20407         * modules/unistr/u32-to-u16: Likewise.
20408         * modules/unistr/u32-to-u8: Likewise.
20409         * modules/unistr/u32-uctomb: Likewise.
20410         * modules/uniwbrk/u8-wordbreaks: Likewise.
20411         * modules/uniwbrk/u16-wordbreaks: Likewise.
20412         * modules/uniwbrk/u32-wordbreaks: Likewise.
20413         * modules/uniwbrk/ulc-wordbreaks: Likewise.
20414         * modules/uniwbrk/wordbreak-property: Likewise.
20415         * modules/uniwidth/u8-strwidth: Likewise.
20416         * modules/uniwidth/u8-width: Likewise.
20417         * modules/uniwidth/u16-strwidth: Likewise.
20418         * modules/uniwidth/u16-width: Likewise.
20419         * modules/uniwidth/u32-strwidth: Likewise.
20420         * modules/uniwidth/u32-width: Likewise.
20421         * modules/uniwidth/width: Likewise.
20422         * modules/unicase/cased-tests (Makefile.am): Link all test programs
20423         with $(LIBUNISTRING).
20424         * modules/unicase/ignorable-tests: Likewise.
20425         * modules/unicase/locale-language-tests: Likewise.
20426         * modules/unicase/tolower-tests: Likewise.
20427         * modules/unicase/totitle-tests: Likewise.
20428         * modules/unicase/toupper-tests: Likewise.
20429         * modules/unicase/u8-casecmp-tests: Likewise.
20430         * modules/unicase/u8-casecoll-tests: Likewise.
20431         * modules/unicase/u8-casefold-tests: Likewise.
20432         * modules/unicase/u8-is-cased-tests: Likewise.
20433         * modules/unicase/u8-is-casefolded-tests: Likewise.
20434         * modules/unicase/u8-is-lowercase-tests: Likewise.
20435         * modules/unicase/u8-is-titlecase-tests: Likewise.
20436         * modules/unicase/u8-is-uppercase-tests: Likewise.
20437         * modules/unicase/u8-tolower-tests: Likewise.
20438         * modules/unicase/u8-totitle-tests: Likewise.
20439         * modules/unicase/u8-toupper-tests: Likewise.
20440         * modules/unicase/u16-casecmp-tests: Likewise.
20441         * modules/unicase/u16-casecoll-tests: Likewise.
20442         * modules/unicase/u16-casefold-tests: Likewise.
20443         * modules/unicase/u16-is-cased-tests: Likewise.
20444         * modules/unicase/u16-is-casefolded-tests: Likewise.
20445         * modules/unicase/u16-is-lowercase-tests: Likewise.
20446         * modules/unicase/u16-is-titlecase-tests: Likewise.
20447         * modules/unicase/u16-is-uppercase-tests: Likewise.
20448         * modules/unicase/u16-tolower-tests: Likewise.
20449         * modules/unicase/u16-totitle-tests: Likewise.
20450         * modules/unicase/u16-toupper-tests: Likewise.
20451         * modules/unicase/u32-casecmp-tests: Likewise.
20452         * modules/unicase/u32-casecoll-tests: Likewise.
20453         * modules/unicase/u32-casefold-tests: Likewise.
20454         * modules/unicase/u32-is-cased-tests: Likewise.
20455         * modules/unicase/u32-is-casefolded-tests: Likewise.
20456         * modules/unicase/u32-is-lowercase-tests: Likewise.
20457         * modules/unicase/u32-is-titlecase-tests: Likewise.
20458         * modules/unicase/u32-is-uppercase-tests: Likewise.
20459         * modules/unicase/u32-tolower-tests: Likewise.
20460         * modules/unicase/u32-totitle-tests: Likewise.
20461         * modules/unicase/u32-toupper-tests: Likewise.
20462         * modules/unicase/ulc-casecmp-tests: Likewise.
20463         * modules/unicase/ulc-casecoll-tests: Likewise.
20464         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
20465         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
20466         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
20467         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
20468         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
20469         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
20470         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
20471         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
20472         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
20473         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
20474         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
20475         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
20476         * modules/unictype/bidicategory-byname-tests: Likewise.
20477         * modules/unictype/bidicategory-name-tests: Likewise.
20478         * modules/unictype/bidicategory-of-tests: Likewise.
20479         * modules/unictype/bidicategory-test-tests: Likewise.
20480         * modules/unictype/block-list-tests: Likewise.
20481         * modules/unictype/block-of-tests: Likewise.
20482         * modules/unictype/block-test-tests: Likewise.
20483         * modules/unictype/category-C-tests: Likewise.
20484         * modules/unictype/category-Cc-tests: Likewise.
20485         * modules/unictype/category-Cf-tests: Likewise.
20486         * modules/unictype/category-Cn-tests: Likewise.
20487         * modules/unictype/category-Co-tests: Likewise.
20488         * modules/unictype/category-Cs-tests: Likewise.
20489         * modules/unictype/category-L-tests: Likewise.
20490         * modules/unictype/category-Ll-tests: Likewise.
20491         * modules/unictype/category-Lm-tests: Likewise.
20492         * modules/unictype/category-Lo-tests: Likewise.
20493         * modules/unictype/category-Lt-tests: Likewise.
20494         * modules/unictype/category-Lu-tests: Likewise.
20495         * modules/unictype/category-M-tests: Likewise.
20496         * modules/unictype/category-Mc-tests: Likewise.
20497         * modules/unictype/category-Me-tests: Likewise.
20498         * modules/unictype/category-Mn-tests: Likewise.
20499         * modules/unictype/category-N-tests: Likewise.
20500         * modules/unictype/category-Nd-tests: Likewise.
20501         * modules/unictype/category-Nl-tests: Likewise.
20502         * modules/unictype/category-No-tests: Likewise.
20503         * modules/unictype/category-P-tests: Likewise.
20504         * modules/unictype/category-Pc-tests: Likewise.
20505         * modules/unictype/category-Pd-tests: Likewise.
20506         * modules/unictype/category-Pe-tests: Likewise.
20507         * modules/unictype/category-Pf-tests: Likewise.
20508         * modules/unictype/category-Pi-tests: Likewise.
20509         * modules/unictype/category-Po-tests: Likewise.
20510         * modules/unictype/category-Ps-tests: Likewise.
20511         * modules/unictype/category-S-tests: Likewise.
20512         * modules/unictype/category-Sc-tests: Likewise.
20513         * modules/unictype/category-Sk-tests: Likewise.
20514         * modules/unictype/category-Sm-tests: Likewise.
20515         * modules/unictype/category-So-tests: Likewise.
20516         * modules/unictype/category-Z-tests: Likewise.
20517         * modules/unictype/category-Zl-tests: Likewise.
20518         * modules/unictype/category-Zp-tests: Likewise.
20519         * modules/unictype/category-Zs-tests: Likewise.
20520         * modules/unictype/category-and-not-tests: Likewise.
20521         * modules/unictype/category-and-tests: Likewise.
20522         * modules/unictype/category-byname-tests: Likewise.
20523         * modules/unictype/category-name-tests: Likewise.
20524         * modules/unictype/category-none-tests: Likewise.
20525         * modules/unictype/category-of-tests: Likewise.
20526         * modules/unictype/category-or-tests: Likewise.
20527         * modules/unictype/category-test-withtable-tests: Likewise.
20528         * modules/unictype/combining-class-tests: Likewise.
20529         * modules/unictype/ctype-alnum-tests: Likewise.
20530         * modules/unictype/ctype-alpha-tests: Likewise.
20531         * modules/unictype/ctype-blank-tests: Likewise.
20532         * modules/unictype/ctype-cntrl-tests: Likewise.
20533         * modules/unictype/ctype-digit-tests: Likewise.
20534         * modules/unictype/ctype-graph-tests: Likewise.
20535         * modules/unictype/ctype-lower-tests: Likewise.
20536         * modules/unictype/ctype-print-tests: Likewise.
20537         * modules/unictype/ctype-punct-tests: Likewise.
20538         * modules/unictype/ctype-space-tests: Likewise.
20539         * modules/unictype/ctype-upper-tests: Likewise.
20540         * modules/unictype/ctype-xdigit-tests: Likewise.
20541         * modules/unictype/decimal-digit-tests: Likewise.
20542         * modules/unictype/digit-tests: Likewise.
20543         * modules/unictype/mirror-tests: Likewise.
20544         * modules/unictype/numeric-tests: Likewise.
20545         * modules/unictype/property-alphabetic-tests: Likewise.
20546         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
20547         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
20548         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
20549         * modules/unictype/property-bidi-block-separator-tests: Likewise.
20550         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
20551         * modules/unictype/property-bidi-common-separator-tests: Likewise.
20552         * modules/unictype/property-bidi-control-tests: Likewise.
20553         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
20554         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
20555         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
20556         * modules/unictype/property-bidi-european-digit-tests: Likewise.
20557         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
20558         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
20559         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
20560         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
20561         * modules/unictype/property-bidi-pdf-tests: Likewise.
20562         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
20563         * modules/unictype/property-bidi-whitespace-tests: Likewise.
20564         * modules/unictype/property-byname-tests: Likewise.
20565         * modules/unictype/property-combining-tests: Likewise.
20566         * modules/unictype/property-composite-tests: Likewise.
20567         * modules/unictype/property-currency-symbol-tests: Likewise.
20568         * modules/unictype/property-dash-tests: Likewise.
20569         * modules/unictype/property-decimal-digit-tests: Likewise.
20570         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
20571         * modules/unictype/property-deprecated-tests: Likewise.
20572         * modules/unictype/property-diacritic-tests: Likewise.
20573         * modules/unictype/property-extender-tests: Likewise.
20574         * modules/unictype/property-format-control-tests: Likewise.
20575         * modules/unictype/property-grapheme-base-tests: Likewise.
20576         * modules/unictype/property-grapheme-extend-tests: Likewise.
20577         * modules/unictype/property-grapheme-link-tests: Likewise.
20578         * modules/unictype/property-hex-digit-tests: Likewise.
20579         * modules/unictype/property-hyphen-tests: Likewise.
20580         * modules/unictype/property-id-continue-tests: Likewise.
20581         * modules/unictype/property-id-start-tests: Likewise.
20582         * modules/unictype/property-ideographic-tests: Likewise.
20583         * modules/unictype/property-ids-binary-operator-tests: Likewise.
20584         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
20585         * modules/unictype/property-ignorable-control-tests: Likewise.
20586         * modules/unictype/property-iso-control-tests: Likewise.
20587         * modules/unictype/property-join-control-tests: Likewise.
20588         * modules/unictype/property-left-of-pair-tests: Likewise.
20589         * modules/unictype/property-line-separator-tests: Likewise.
20590         * modules/unictype/property-logical-order-exception-tests: Likewise.
20591         * modules/unictype/property-lowercase-tests: Likewise.
20592         * modules/unictype/property-math-tests: Likewise.
20593         * modules/unictype/property-non-break-tests: Likewise.
20594         * modules/unictype/property-not-a-character-tests: Likewise.
20595         * modules/unictype/property-numeric-tests: Likewise.
20596         * modules/unictype/property-other-alphabetic-tests: Likewise.
20597         * modules/unictype/property-other-default-ignorable-code-point-tests:
20598         Likewise.
20599         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
20600         * modules/unictype/property-other-id-continue-tests: Likewise.
20601         * modules/unictype/property-other-id-start-tests: Likewise.
20602         * modules/unictype/property-other-lowercase-tests: Likewise.
20603         * modules/unictype/property-other-math-tests: Likewise.
20604         * modules/unictype/property-other-uppercase-tests: Likewise.
20605         * modules/unictype/property-paired-punctuation-tests: Likewise.
20606         * modules/unictype/property-paragraph-separator-tests: Likewise.
20607         * modules/unictype/property-pattern-syntax-tests: Likewise.
20608         * modules/unictype/property-pattern-white-space-tests: Likewise.
20609         * modules/unictype/property-private-use-tests: Likewise.
20610         * modules/unictype/property-punctuation-tests: Likewise.
20611         * modules/unictype/property-quotation-mark-tests: Likewise.
20612         * modules/unictype/property-radical-tests: Likewise.
20613         * modules/unictype/property-sentence-terminal-tests: Likewise.
20614         * modules/unictype/property-soft-dotted-tests: Likewise.
20615         * modules/unictype/property-space-tests: Likewise.
20616         * modules/unictype/property-terminal-punctuation-tests: Likewise.
20617         * modules/unictype/property-test-tests: Likewise.
20618         * modules/unictype/property-titlecase-tests: Likewise.
20619         * modules/unictype/property-unassigned-code-value-tests: Likewise.
20620         * modules/unictype/property-unified-ideograph-tests: Likewise.
20621         * modules/unictype/property-uppercase-tests: Likewise.
20622         * modules/unictype/property-variation-selector-tests: Likewise.
20623         * modules/unictype/property-white-space-tests: Likewise.
20624         * modules/unictype/property-xid-continue-tests: Likewise.
20625         * modules/unictype/property-xid-start-tests: Likewise.
20626         * modules/unictype/property-zero-width-tests: Likewise.
20627         * modules/unictype/scripts-tests: Likewise.
20628         * modules/unictype/syntax-c-ident-tests: Likewise.
20629         * modules/unictype/syntax-c-whitespace-tests: Likewise.
20630         * modules/unictype/syntax-java-ident-tests: Likewise.
20631         * modules/unictype/syntax-java-whitespace-tests: Likewise.
20632         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
20633         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
20634         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
20635         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
20636         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
20637         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
20638         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
20639         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
20640         * modules/uniname/uniname-tests: Likewise.
20641         * modules/uninorm/canonical-decomposition-tests: Likewise.
20642         * modules/uninorm/compat-decomposition-tests: Likewise.
20643         * modules/uninorm/composition-tests: Likewise.
20644         * modules/uninorm/decomposing-form-tests: Likewise.
20645         * modules/uninorm/decomposition-tests: Likewise.
20646         * modules/uninorm/filter-tests: Likewise.
20647         * modules/uninorm/nfc-tests: Likewise.
20648         * modules/uninorm/nfd-tests: Likewise.
20649         * modules/uninorm/nfkc-tests: Likewise.
20650         * modules/uninorm/nfkd-tests: Likewise.
20651         * modules/uninorm/u8-normcmp-tests: Likewise.
20652         * modules/uninorm/u8-normcoll-tests: Likewise.
20653         * modules/uninorm/u16-normcmp-tests: Likewise.
20654         * modules/uninorm/u16-normcoll-tests: Likewise.
20655         * modules/uninorm/u32-normcmp-tests: Likewise.
20656         * modules/uninorm/u32-normcoll-tests: Likewise.
20657         * modules/unistdio/u8-asnprintf-tests: Likewise.
20658         * modules/unistdio/u8-vasnprintf-tests: Likewise.
20659         * modules/unistdio/u8-vasprintf-tests: Likewise.
20660         * modules/unistdio/u8-vsnprintf-tests: Likewise.
20661         * modules/unistdio/u8-vsprintf-tests: Likewise.
20662         * modules/unistdio/u16-asnprintf-tests: Likewise.
20663         * modules/unistdio/u16-vasnprintf-tests: Likewise.
20664         * modules/unistdio/u16-vasprintf-tests: Likewise.
20665         * modules/unistdio/u16-vsnprintf-tests: Likewise.
20666         * modules/unistdio/u16-vsprintf-tests: Likewise.
20667         * modules/unistdio/u32-asnprintf-tests: Likewise.
20668         * modules/unistdio/u32-vasnprintf-tests: Likewise.
20669         * modules/unistdio/u32-vasprintf-tests: Likewise.
20670         * modules/unistdio/u32-vsnprintf-tests: Likewise.
20671         * modules/unistdio/u32-vsprintf-tests: Likewise.
20672         * modules/unistdio/ulc-asnprintf-tests: Likewise.
20673         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
20674         * modules/unistdio/ulc-vasprintf-tests: Likewise.
20675         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
20676         * modules/unistdio/ulc-vsprintf-tests: Likewise.
20677         * modules/unistr/u8-check-tests: Likewise.
20678         * modules/unistr/u8-chr-tests: Likewise.
20679         * modules/unistr/u8-cmp-tests: Likewise.
20680         * modules/unistr/u8-cmp2-tests: Likewise.
20681         * modules/unistr/u8-cpy-alloc-tests: Likewise.
20682         * modules/unistr/u8-cpy-tests: Likewise.
20683         * modules/unistr/u8-mblen-tests: Likewise.
20684         * modules/unistr/u8-mbsnlen-tests: Likewise.
20685         * modules/unistr/u8-mbtouc-tests: Likewise.
20686         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
20687         * modules/unistr/u8-mbtoucr-tests: Likewise.
20688         * modules/unistr/u8-move-tests: Likewise.
20689         * modules/unistr/u8-next-tests: Likewise.
20690         * modules/unistr/u8-prev-tests: Likewise.
20691         * modules/unistr/u8-set-tests: Likewise.
20692         * modules/unistr/u8-stpcpy-tests: Likewise.
20693         * modules/unistr/u8-stpncpy-tests: Likewise.
20694         * modules/unistr/u8-strcat-tests: Likewise.
20695         * modules/unistr/u8-strcmp-tests: Likewise.
20696         * modules/unistr/u8-strcoll-tests: Likewise.
20697         * modules/unistr/u8-strcpy-tests: Likewise.
20698         * modules/unistr/u8-strdup-tests: Likewise.
20699         * modules/unistr/u8-strlen-tests: Likewise.
20700         * modules/unistr/u8-strmblen-tests: Likewise.
20701         * modules/unistr/u8-strmbtouc-tests: Likewise.
20702         * modules/unistr/u8-strncat-tests: Likewise.
20703         * modules/unistr/u8-strncmp-tests: Likewise.
20704         * modules/unistr/u8-strncpy-tests: Likewise.
20705         * modules/unistr/u8-strnlen-tests: Likewise.
20706         * modules/unistr/u8-to-u16-tests: Likewise.
20707         * modules/unistr/u8-to-u32-tests: Likewise.
20708         * modules/unistr/u8-uctomb-tests: Likewise.
20709         * modules/unistr/u16-check-tests: Likewise.
20710         * modules/unistr/u16-chr-tests: Likewise.
20711         * modules/unistr/u16-cmp-tests: Likewise.
20712         * modules/unistr/u16-cmp2-tests: Likewise.
20713         * modules/unistr/u16-cpy-alloc-tests: Likewise.
20714         * modules/unistr/u16-cpy-tests: Likewise.
20715         * modules/unistr/u16-mblen-tests: Likewise.
20716         * modules/unistr/u16-mbsnlen-tests: Likewise.
20717         * modules/unistr/u16-mbtouc-tests: Likewise.
20718         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
20719         * modules/unistr/u16-mbtoucr-tests: Likewise.
20720         * modules/unistr/u16-move-tests: Likewise.
20721         * modules/unistr/u16-next-tests: Likewise.
20722         * modules/unistr/u16-prev-tests: Likewise.
20723         * modules/unistr/u16-set-tests: Likewise.
20724         * modules/unistr/u16-stpcpy-tests: Likewise.
20725         * modules/unistr/u16-stpncpy-tests: Likewise.
20726         * modules/unistr/u16-strcat-tests: Likewise.
20727         * modules/unistr/u16-strcmp-tests: Likewise.
20728         * modules/unistr/u16-strcoll-tests: Likewise.
20729         * modules/unistr/u16-strcpy-tests: Likewise.
20730         * modules/unistr/u16-strdup-tests: Likewise.
20731         * modules/unistr/u16-strlen-tests: Likewise.
20732         * modules/unistr/u16-strmblen-tests: Likewise.
20733         * modules/unistr/u16-strmbtouc-tests: Likewise.
20734         * modules/unistr/u16-strncat-tests: Likewise.
20735         * modules/unistr/u16-strncmp-tests: Likewise.
20736         * modules/unistr/u16-strncpy-tests: Likewise.
20737         * modules/unistr/u16-strnlen-tests: Likewise.
20738         * modules/unistr/u16-to-u32-tests: Likewise.
20739         * modules/unistr/u16-to-u8-tests: Likewise.
20740         * modules/unistr/u16-uctomb-tests: Likewise.
20741         * modules/unistr/u32-check-tests: Likewise.
20742         * modules/unistr/u32-chr-tests: Likewise.
20743         * modules/unistr/u32-cmp-tests: Likewise.
20744         * modules/unistr/u32-cmp2-tests: Likewise.
20745         * modules/unistr/u32-cpy-alloc-tests: Likewise.
20746         * modules/unistr/u32-cpy-tests: Likewise.
20747         * modules/unistr/u32-mblen-tests: Likewise.
20748         * modules/unistr/u32-mbsnlen-tests: Likewise.
20749         * modules/unistr/u32-mbtouc-tests: Likewise.
20750         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
20751         * modules/unistr/u32-mbtoucr-tests: Likewise.
20752         * modules/unistr/u32-move-tests: Likewise.
20753         * modules/unistr/u32-next-tests: Likewise.
20754         * modules/unistr/u32-prev-tests: Likewise.
20755         * modules/unistr/u32-set-tests: Likewise.
20756         * modules/unistr/u32-stpcpy-tests: Likewise.
20757         * modules/unistr/u32-stpncpy-tests: Likewise.
20758         * modules/unistr/u32-strcat-tests: Likewise.
20759         * modules/unistr/u32-strcmp-tests: Likewise.
20760         * modules/unistr/u32-strcoll-tests: Likewise.
20761         * modules/unistr/u32-strcpy-tests: Likewise.
20762         * modules/unistr/u32-strdup-tests: Likewise.
20763         * modules/unistr/u32-strlen-tests: Likewise.
20764         * modules/unistr/u32-strmblen-tests: Likewise.
20765         * modules/unistr/u32-strmbtouc-tests: Likewise.
20766         * modules/unistr/u32-strncat-tests: Likewise.
20767         * modules/unistr/u32-strncmp-tests: Likewise.
20768         * modules/unistr/u32-strncpy-tests: Likewise.
20769         * modules/unistr/u32-strnlen-tests: Likewise.
20770         * modules/unistr/u32-to-u16-tests: Likewise.
20771         * modules/unistr/u32-to-u8-tests: Likewise.
20772         * modules/unistr/u32-uctomb-tests: Likewise.
20773         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
20774         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
20775         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
20776         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
20777         * modules/uniwidth/u8-strwidth-tests: Likewise.
20778         * modules/uniwidth/u8-width-tests: Likewise.
20779         * modules/uniwidth/u16-strwidth-tests: Likewise.
20780         * modules/uniwidth/u16-width-tests: Likewise.
20781         * modules/uniwidth/u32-strwidth-tests: Likewise.
20782         * modules/uniwidth/u32-width-tests: Likewise.
20783         * modules/uniwidth/width-tests: Likewise.
20784
20785 2010-05-18  Richard Jones  <rjones@redhat.com>
20786
20787         doc: users.txt: list hivex
20788         * users.txt: Add hivex.
20789
20790 2010-05-18  Richard Jones  <rjones@redhat.com>
20791
20792         doc: users.txt: list febootstrap
20793         * users.txt: Add febootstrap.
20794
20795 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20796
20797         bootstrap: fix an error when gnulib is not used as a git submodule
20798         * build-aux/bootstrap (gnulib_path): If its length is zero then
20799         assign "gnulib" to it.
20800         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20801
20802 2010-05-16  Bruno Haible  <bruno@clisp.org>
20803
20804         Avoid autoconf warnings about AM_ICONV.
20805         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20806         2.64.
20807
20808 2010-05-16  Bruno Haible  <bruno@clisp.org>
20809
20810         absolute-header: Make the macro usable in more situations.
20811         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20812         from gl_ABSOLUTE_HEADER.
20813         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20814
20815 2010-05-16  James Youngman  <jay@gnu.org>
20816
20817         doc: update users.txt
20818         * users.txt: Add CSSC.
20819
20820 2010-05-16  Jim Meyering  <meyering@redhat.com>
20821
20822         init.sh: fix an error in the previous change; add more comments
20823         * tests/init.sh: Compare exit code in loop against 9, not 2.
20824         Patch by Bruno Haible.
20825         Make the two tests more similar by adding an empty "then" clause.
20826         Add comments.
20827
20828         init.sh: avoid unnecessary shell re-exec
20829         * tests/init.sh: Improve the re-exec-required check to first test the
20830         current shell.  If it passes the test, do not search for a shell that
20831         does pass, and do not re-exec.  This test is particularly contorted to
20832         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
20833         of $(...) evokes a syntax error and causes immediate shell exit with
20834         status 2.  Bruno Haible reported that the re-exec made it impossible
20835         to single-step through any init.sh-using script.
20836
20837 2010-05-16  Bruno Haible  <bruno@clisp.org>
20838
20839         Fix collision between gnulib's and libintl's printf replacements.
20840         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
20841         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
20842         (printf): When using GNU C, map the __printf__ function to rpl_printf
20843         via __asm__. When not using GNU C, define rpl_printf instead of
20844         __printf__.
20845         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
20846         commit.
20847         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
20848         commit.
20849         * m4/asm-underscore.m4: New file.
20850         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
20851         * modules/stdio (Files): Add m4/asm-underscore.m4.
20852         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
20853         Reported by Ben Pfaff.
20854
20855 2010-05-16  Bruno Haible  <bruno@clisp.org>
20856
20857         verify: Avoid skipping the test on openSUSE 11.0.
20858         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
20859
20860 2010-05-13  Bruno Haible  <bruno@clisp.org>
20861
20862         Avoid useless warnings from G++.
20863         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
20864         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
20865         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20866
20867 2010-05-11  Jim Meyering  <meyering@redhat.com>
20868
20869         maint.mk: tweak preceding change
20870         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
20871         regexps tighter by anchoring at EOL, and make the new group "shy"
20872         for slightly decreased overhead.
20873
20874 2010-05-11  Eric Blake  <eblake@redhat.com>
20875
20876         maint.mk: gnulib doesn't guarantee NSIG
20877         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
20878
20879 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20880
20881         test-pwrite.c: Remove unused variable declaration.
20882         * tests/test-pwrite.c (main): Remove read_buf declaration.
20883
20884         Remove useless test-pwrite.sh file.
20885         * tests/test-pwrite.sh: Delete file.
20886         * modules/pwrite-tests: Remove references.
20887         Reported by Bruno Haible.
20888
20889 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20890
20891         init.sh: fix a typo
20892         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20893
20894 2010-05-10  Jim Meyering  <meyering@redhat.com>
20895
20896         maint.mk: avoid using a temporary file in the always-defined-macros check
20897         * top/maint.mk (.re-defmac): Remove rule.
20898         (gl_trap_): Remove definition.
20899         (sc_prohibit_always-defined_macros): Rewrite not to create and
20900         depend on a temporary file.  Instead, depend on GNU grep's ability
20901         to read a list of regular expressions from stdin when given "-f -".
20902
20903 2010-05-09  Bruno Haible  <bruno@clisp.org>
20904
20905         Update to GNU gettext 0.18, part 1.
20906         * m4/gettext.m4: Update to GNU gettext 0.18.
20907         * m4/intl.m4: Likewise.
20908         * m4/po.m4: Likewise.
20909         * modules/gettext (Files): Add m4/fcntl-o.m4.
20910         (configure.ac): Require gettext infrastructure from version 0.18.
20911
20912 2010-05-09  Jim Meyering  <meyering@redhat.com>
20913
20914         init.sh: enable MALLOC_PERTURB_
20915         * tests/init.sh: Enable glibc's malloc-perturbing option.
20916
20917         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20918         With my recent change in init.sh from the two-line form:
20919             -#   : ${srcdir=.}
20920             -#   . "$srcdir/init.sh"; path_prepend_ .
20921             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20922         I noticed that using the one-line form would cause this test
20923         to fail with a false-positive, or to stop working altogether,
20924         depending on whether help-version changed or all the tests did.
20925         * top/maint.mk (_hv_regex): Remove this definition.
20926         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20927         (_hv_regex_strong): Use a stronger regex to check for conformance.
20928         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20929         Give a separate diagnostic for lack of conforming use.
20930
20931         maint.mk: prohibit definition of symbols defined by gnulib
20932         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20933         definition of symbols defined by gnulib.
20934
20935 2010-05-09  Bruno Haible  <bruno@clisp.org>
20936
20937         acl: Avoid test failure on Cygwin-hosted mingw.
20938         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20939
20940 2010-05-09  Bruno Haible  <bruno@clisp.org>
20941
20942         error: Use system's fcntl function.
20943         * lib/error.c (fcntl): Undefine.
20944
20945 2010-05-09  Jim Meyering  <meyering@redhat.com>
20946
20947         verify: adjust formatting to be more consistent
20948         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20949         argument-list '('s, and after one comma.
20950
20951 2010-05-09  Bruno Haible  <bruno@clisp.org>
20952
20953         error: More reliable output on mingw.
20954         * lib/error.c: Include <windows.h>.
20955         (is_open): New function.
20956         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20957         defined.
20958
20959 2010-05-09  Bruno Haible  <bruno@clisp.org>
20960
20961         vasnprintf: Fix syntax errors in libintl build on mingw.
20962         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20963         pad_ourselves and prec_ourselves after use.
20964
20965 2010-05-08  Bruno Haible  <bruno@clisp.org>
20966
20967         * lib/config.charset: Update comments for Cygwin 1.7.
20968         * lib/localcharset.c: Likewise.
20969
20970 2010-05-07  Jim Meyering  <meyering@redhat.com>
20971
20972         init.sh: improve comments
20973         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20974         . "${srcdir=.}/init.sh"; path_prepend_ .
20975         Add a note about path_prepend_ and the alternative of using
20976         TESTS_ENVIRONMENT.
20977
20978 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20979
20980         exclude: Unescape hashed patterns in wildcard mode.
20981         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20982         to the hash list.
20983         * tests/test-exclude8.sh: New test case.
20984         * modules/exclude-tests: Add new test.
20985
20986 2010-05-05  Eric Blake  <eblake@redhat.com>
20987
20988         verify: automate tests
20989         * modules/verify-tests: New module.
20990         * tests/test-verify.sh: New file.
20991         * tests/test-verify.c: Guard each negative test with a unique id.
20992         Also avoid warning about unused left hand of comma expressions.
20993
20994 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20995
20996         Further improvements to verify.h, suggested by Eric Blake.
20997         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20998         the GL_* versions, to avoid collision with OpenGL.
20999         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
21000         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
21001         than testing merely whether it's defined.
21002
21003         Modify verify.h to pacify gcc -Wredundant_decls.
21004         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
21005         These use the prefix "GL_" since they're likely to be useful elsewhere.
21006         We may need to break them out into a different .h file.
21007         (__COUNTER__): Define to 0 if the compiler doesn't support it.
21008         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
21009         of verify_function__.
21010
21011 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21012
21013         Tests for module pwrite.
21014         * modules/pwrite-tests: New file.
21015         * tests/test-pwrite.sh: New file.
21016         * tests/test-pwrite.c: New file.
21017
21018         New module pwrite.
21019         * lib/unistd.in.h (pwrite): New declaration.
21020         * lib/pwrite.c: New file, from glibc with modifications.
21021         * m4/pwrite.m4: New file.
21022         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
21023         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
21024         REPLACE_PWRITE.
21025         * modules/pwrite: New file.
21026         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
21027         REPLACE_PWRITE.
21028         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
21029         * doc/posix-functions/pwrite.texi: Mention the new module.
21030
21031 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21032
21033         pread: Update documentation.
21034         * doc/posix-functions/pread.texi: Mention the 'pread' module.
21035
21036 2010-05-04  Eric Blake  <eblake@redhat.com>
21037
21038         docs: update cygwin progress
21039         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
21040         this bug.
21041         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
21042         Added in cygwin 1.7.2.
21043         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
21044         Likewise.
21045         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
21046         Likewise.
21047         * doc/glibc-functions/dup3.texi (dup3): Likewise.
21048         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
21049         * doc/glibc-functions/accept4.texi (accept4): Likewise.
21050         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
21051         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
21052         Mention nproc module.
21053         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
21054         bug in cygwin 1.7.5 addition.
21055         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
21056         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
21057         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
21058         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
21059         1.7.5.
21060         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
21061         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
21062         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
21063         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
21064         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
21065         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
21066         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
21067         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
21068         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
21069         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
21070         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
21071         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
21072         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
21073         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
21074         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
21075         Likewise.
21076         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
21077         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
21078         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
21079         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
21080         Likewise.
21081         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
21082         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
21083         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
21084         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
21085         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
21086         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
21087         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
21088         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
21089         Likewise.
21090         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
21091         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
21092         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
21093         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
21094         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
21095         Likewise.
21096         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
21097         Likewise.
21098         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
21099         Likewise.
21100         * doc/glibc-functions/xdrrec_endofrecord.texi
21101         (xdrrec_endofrecord): Likewise.
21102         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
21103         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
21104         Likewise.
21105         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
21106         Likewise.
21107
21108 2010-05-04  Jim Meyering  <meyering@redhat.com>
21109
21110         gendocs.sh: make its "-s FILE" option more useful
21111         * build-aux/gendocs.sh: When honoring the -s FILE option, update
21112         $PACKAGE to reflect the probably-different basename of "FILE".
21113
21114 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21115
21116         bootstrap: don't ignore download_po_files failure
21117         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
21118         failure.
21119
21120 2010-05-03  Jim Meyering  <meyering@redhat.com>
21121
21122         maint.mk: allow to pass options to gendocs.sh
21123         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
21124         (gendocs_options_): New overridable variable.
21125
21126         gnu-web-doc-update: don't ignore configure or build failure
21127         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
21128
21129         announce-gen: backslash-escape '@'s in --help output
21130         * build-aux/announce-gen: Fix syntax errors.
21131
21132         maint.mk, announce-gen: allow project-specific announcement mail headers
21133         * top/maint.mk (translation_project_): Define default.
21134         (announcement_Cc_, announcement_mail_headers_): Likewise.
21135         (announcement): Invoke announce-gen with new --mail-headers option.
21136         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
21137
21138         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
21139         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
21140         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
21141         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
21142         line in the "err2" output file when running "make check" in verbose
21143         mode (i.e., with set -x enabled).
21144
21145 2010-05-03  Bruno Haible  <bruno@clisp.org>
21146
21147         wctob: Fix for weird platforms.
21148         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
21149         argument value.
21150
21151 2010-05-03  Jim Meyering  <meyering@redhat.com>
21152
21153         maint.mk: prohibit unwarranted use of <strings.h>
21154         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
21155         strings.h in a file that does not also use strcasecmp, strncasecmp,
21156         ffs or ffsll.
21157
21158         maint.mk: remove obsolete comments
21159         * top/maint.mk: Remove stale, commented-out rules.
21160
21161 2010-05-02  Bruno Haible  <bruno@clisp.org>
21162
21163         wcwidth: Declare also when it's aliased.
21164         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
21165         macro.
21166
21167 2010-05-02  Bruno Haible  <bruno@clisp.org>
21168
21169         Fix regression from 2010-04-25.
21170         * gnulib-tool (func_modules_transitive_closure): Check the status of
21171         all modules, not only of the tests that are of the form foo-tests where
21172         foo is a module.
21173
21174 2010-05-02  Bruno Haible  <bruno@clisp.org>
21175
21176         wctob: Work around nasty Cygwin 1.7.2 bug.
21177         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
21178         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
21179
21180 2010-05-01  Bruno Haible  <bruno@clisp.org>
21181
21182         fpurge: Sharper test.
21183         * tests/test-fpurge.c (main): Add one more ftell check.
21184         * modules/fpurge-tests (Depends-on): Add ftell.
21185         Suggested by Eric Blake.
21186
21187 2010-05-01  Bruno Haible  <bruno@clisp.org>
21188
21189         ftello: Another test.
21190         * tests/test-ftello3.c: New file.
21191         * modules/ftello-tests (Files): Add it.
21192         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21193         MOSTLYCLEANFILES.
21194
21195         ftell: Another test.
21196         * tests/test-ftell3.c: New file.
21197         * modules/ftell-tests (Files): Add it.
21198         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21199         MOSTLYCLEANFILES.
21200
21201 2010-05-01  Bruno Haible  <bruno@clisp.org>
21202
21203         ftell, ftello: Work around Solaris bug.
21204         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
21205         * lib/ftello.c: Include stdio-impl.h.
21206         (ftello): On Solaris, when _IOWRT is set, compute the result without
21207         looking at _IOREAD.
21208         * modules/ftello (Files): Add lib/stdio-impl.h.
21209         * doc/posix-functions/ftell.texi: Mention Solaris bug.
21210         * doc/posix-functions/ftello.texi: Likewise.
21211         Reported by Eric Blake.
21212
21213 2010-05-01  Bruno Haible  <bruno@clisp.org>
21214
21215         freading: Adapt to special meaning of _IOREAD flag on Solaris.
21216         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
21217         the _IOWRT flag is also set.
21218
21219 2010-05-01  Bruno Haible  <bruno@clisp.org>
21220
21221         Fix doc about a HP-UX stdio bug.
21222         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
21223         * doc/posix-functions/ftello.texi: Likewise.
21224
21225 2010-05-01  Bruno Haible  <bruno@clisp.org>
21226
21227         lseek test: Fix failure on Solaris.
21228         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
21229         output.
21230
21231 2010-04-30  Jim Meyering  <meyering@redhat.com>
21232
21233         bootstrap: don't ignore failure to generate po*/Makevars
21234         * build-aux/bootstrap (with_gettext): Don't ignore failure
21235         to create po/Makevars or runtime-po/Makevars.
21236
21237 2010-04-29  Eric Blake  <eblake@redhat.com>
21238
21239         headers: relax license to LGPLv2+
21240         * modules/fcntl-h (License): Relax license.
21241         * modules/getopt-posix (License): Likewise.
21242         * modules/locale (License): Likewise.
21243         * modules/math (License): Likewise.
21244         * modules/pty (License): Likewise.
21245         * modules/sched (License): Likewise.
21246         * modules/search (License): Likewise.
21247         * modules/spawn (License): Likewise.
21248         * modules/stdarg (License): Likewise.
21249         * modules/sysexits (License): Likewise.
21250
21251 2010-04-29  Jim Meyering  <meyering@redhat.com>
21252
21253         inttypes: relax license to LGPLv2+
21254         * modules/inttypes (License): Relax license.
21255
21256 2010-04-29  Simon Josefsson  <simon@josefsson.org>
21257
21258         * top/maint.mk (indent): Run twice to produce idempotent results.
21259
21260 2010-04-28  Bruno Haible  <bruno@clisp.org>
21261
21262         getdate: Generate getdate.c in the source directory.
21263         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
21264         MOSTLYCLEANFILES.
21265         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
21266
21267 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
21268
21269         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
21270         is not declared as a const *; avoid warnings in that case.
21271
21272 2010-04-28  Eric Blake  <eblake@redhat.com>
21273
21274         canonicalize-lgpl: avoid compiler warning
21275         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
21276         declaration' / 'extraneous semicolon' warning with some compilers.
21277         Reported by Andreas Gruenbacher.
21278
21279 2010-04-28  Jim Meyering  <meyering@redhat.com>
21280
21281         init.sh: ensure a more reliable exit status when exiting via trap
21282         * tests/init.sh (setup_): Don't rely on $? in signal handler.
21283         Inspired by patches from Dmitry V. Levin.
21284         Also trap on signal 3 (SIGQUIT).
21285
21286 2010-04-27  Bruno Haible  <bruno@clisp.org>
21287
21288         Update doc about utimes().
21289         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
21290         'utimens' module.
21291         Reported by Andreas Gruenbacher <agruen@suse.de>.
21292
21293 2010-04-27  Eric Blake  <eblake@redhat.com>
21294
21295         full-read, full-write: relax license
21296         * modules/full-read (License): Drop to LGPLv2+.
21297         * modules/full-write (License): Likewise.
21298         * modules/safe-read (License): Likewise.
21299         * modules/safe-write (License): Likewise.
21300
21301         pthread: mention library for linking
21302         * modules/pthread (Link): Mention $(LIB_PTHREAD).
21303
21304 2010-04-27  Jim Meyering  <meyering@redhat.com>
21305
21306         maint.mk: fix a bug introduced in last change
21307         * top/maint.mk (gl_assured_headers_): Now that all names are on
21308         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
21309         is not anchored to end of word, it should be adequate.
21310
21311         maint.mk: avoid side-effect in latest syntax-check
21312         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
21313         to run commands via $(shell...), and hence to incur cost only when
21314         the new rule is actually run.
21315
21316         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
21317         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
21318         and use that to create a regexp used to detect all #if HAVE_..._H uses.
21319         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
21320         (gl_assured_headers_, az_, AZ_): Define.
21321         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
21322
21323 2010-04-26  Jim Meyering  <jim@meyering.net>
21324             Bruno Haible  <bruno@clisp.org>
21325
21326         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
21327         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
21328         Prompted by an exchange with Gilles Espinasse.
21329
21330 2010-04-26  Jim Meyering  <meyering@redhat.com>
21331
21332         git-version-gen: aesthetic tweak
21333         * build-aux/git-version-gen: Use "$nl" rather than a literal,
21334         so that the command remains on a single line.
21335
21336 2010-04-26  Eric Blake  <eblake@redhat.com>
21337
21338         git-version-gen: allow use on EBCDIC hosts
21339         * build-aux/git-version-gen (dirty): Use literal rather than tying
21340         ourselves to ascii.
21341         Reported by Steve Goetze.
21342
21343 2010-04-25  Bruno Haible  <bruno@clisp.org>
21344
21345         netdb: Add support for GNULIB_POSIXCHECK.
21346         * lib/netdb.in.h: Include warn-on-use.h.
21347         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
21348         functions are used when GNULIB_POSIXCHECK is defined and the
21349         getaddrinfo module is not in use.
21350         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
21351         freeaddrinfo, gai_strerror, getnameinfo are declared.
21352         * modules/netdb (Depends-on): Add warn-on-use.
21353         (Makefile.am): Include warn-on-use.h in netdb.h.
21354
21355 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
21356
21357         build: avoid "make check" failure without .git/ directory
21358         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
21359         there is no .git/ directory.
21360
21361 2010-04-25  Bruno Haible  <bruno@clisp.org>
21362
21363         ptsname: Fix misuse of ttyname_r.
21364         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
21365         of errno.
21366
21367 2010-04-25  Bruno Haible  <bruno@clisp.org>
21368
21369         ttyname_r: Make it work on Solaris 10.
21370         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
21371         if the system function has the POSIX declaration. Test whether the
21372         function fails if the buffer is less than 128 bytes large.
21373         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
21374         system's ttyname_r function. Provide a reasonably large buffer.
21375         * modules/ttyname_r (Depends-on): Add extensions.
21376         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
21377
21378 2010-04-25  Bruno Haible  <bruno@clisp.org>
21379
21380         Use the 'extensions' module for some more functions on Solaris.
21381         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
21382         module.
21383         * doc/posix-functions/ctime_r.texi: Likewise.
21384         * doc/posix-functions/getgrgid_r.texi: Likewise.
21385         * doc/posix-functions/getgrnam_r.texi: Likewise.
21386         * doc/posix-functions/getpwnam_r.texi: Likewise.
21387         * doc/posix-functions/getpwuid_r.texi: Likewise.
21388         * doc/posix-functions/readdir_r.texi: Likewise.
21389         * doc/posix-functions/sigwait.texi: Likewise.
21390         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
21391         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
21392
21393 2010-04-25  Bruno Haible  <bruno@clisp.org>
21394
21395         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
21396         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
21397         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
21398         * lib/ttyname_r.c: Include <limits.h>.
21399         (ttyname_r): Define using the system's ttyname_r function, if it exists
21400         and not on Solaris.
21401         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
21402         set.
21403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
21404         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
21405         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
21406         Reported by Simon Josefsson.
21407
21408 2010-04-25  Bruno Haible  <bruno@clisp.org>
21409
21410         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
21411         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
21412         * doc/posix-functions/ctime_r.texi: Likewise.
21413         * doc/posix-functions/getgrgid_r.texi: Likewise.
21414         * doc/posix-functions/getgrnam_r.texi: Likewise.
21415         * doc/posix-functions/getlogin_r.texi: Likewise.
21416         * doc/posix-functions/getpwnam_r.texi: Likewise.
21417         * doc/posix-functions/getpwuid_r.texi: Likewise.
21418         * doc/posix-functions/readdir_r.texi: Likewise.
21419         * doc/posix-functions/sigwait.texi: Likewise.
21420         * doc/posix-functions/ttyname_r.texi: Likewise.
21421         Reported by Simon Josefsson.
21422
21423 2010-04-25  Bruno Haible  <bruno@clisp.org>
21424
21425         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
21426         * gnulib-tool (func_usage): Document that --with-*-tests options apply
21427         also to --create-testdir.
21428         (func_acceptable): Don't consider the status of *-tests modules here.
21429         (func_modules_transitive_closure): Consider it here, before including a
21430         test module.
21431         (func_import, func_create_testdir): Set inc_all_direct_tests,
21432         inc_all_indirect_tests.
21433         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
21434         --create-testdir and --create-megatestdir.
21435
21436 2010-04-25  Bruno Haible  <bruno@clisp.org>
21437
21438         gnulib-tool: Add --without-*-tests options.
21439         * gnulib-tool (func_usage): Document the --without-*-tests options.
21440         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
21441         excl_unportable_tests): New variables.
21442         Fail if they are specified with --import or --update.
21443         (func_acceptable): Respect the excl_*_tests variables.
21444         (func_import): Set the excl_*_tests variables to empty.
21445
21446 2010-04-25  Simon Josefsson  <simon@josefsson.org>
21447             Bruno Haible  <bruno@clisp.org>
21448
21449         Work around a MacOS X 10.4 bug with openpty.
21450         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
21451         * tests/test-openpty.c (main): Close the master side explicitly.
21452
21453 2010-04-25  Bruno Haible  <bruno@clisp.org>
21454
21455         strnlen: Fix a C++ test error on MacOS X and Solaris.
21456         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
21457         the function is not declared.
21458         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
21459         Simon Josefsson.
21460
21461 2010-04-24  Bruno Haible  <bruno@clisp.org>
21462
21463         Avoid a gcc warning.
21464         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
21465         of correct type for %08lx directive.
21466         Reported by Eric Blake.
21467
21468 2010-04-24  Bruno Haible  <bruno@clisp.org>
21469
21470         vasnprintf: Correct errno value in case of out-of-memory.
21471         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
21472         or sprintf. Use the errno value from SNPRINTF or sprintf.
21473         Reported by Ian Beckwith <ianb@erislabs.net>.
21474
21475 2010-04-24  Bruno Haible  <bruno@clisp.org>
21476
21477         ansi-c++-opt: Find correct compiler when cross-compiling.
21478         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
21479         AC_CHECK_PROGS.
21480         Reported by Simon Josefsson.
21481
21482 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
21483
21484         vc-list-files: Add support for subversion
21485         * build-aux/vc-list-files: Use "svn list" to generate the list of
21486         files controlled by subversion.
21487
21488 2010-04-23  Jim Meyering  <meyering@redhat.com>
21489
21490         vc-list-files tests: convert to use init.sh
21491         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
21492         path_prepend_.
21493         Use Exit, not exit.
21494         Use skip_ rather than open coding it.
21495         Remove trap set-up and compare definitions.
21496         * tests/test-vc-list-files-git.sh: Likewise.
21497         * modules/vc-list-files-tests (Files): Add tests/init.sh.
21498
21499 2010-04-22  Simon Josefsson  <simon@josefsson.org>
21500
21501         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
21502         backup files.
21503
21504 2010-04-21  Simon Josefsson  <simon@josefsson.org>
21505
21506         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
21507
21508 2010-04-20  Eric Blake  <eblake@redhat.com>
21509
21510         tests: be robust to ignored SIGPIPE
21511         * tests/test-select-in.sh: Consume all output.
21512         * tests/test-lseek.sh: Check correct exit status, while avoiding
21513         EPIPE.
21514
21515 2010-04-20  Simon Josefsson  <simon@josefsson.org>
21516             Bruno Haible  <bruno@clisp.org>
21517
21518         visibility: Don't use -fvisibility if it leads to a warning.
21519         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
21520         yes, don't pretend that visibility works if it leads to a warning.
21521         Reported by Mike Gran <spk121@yahoo.com>.
21522
21523 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
21524
21525         * build-aux/bootstrap: Use "git -h" for testing for supported options
21526         instead of "git --help".  The short-form option only shows a summary,
21527         and doesn't layout the full man page.  Grep for the full option name
21528         in the summary, too.
21529
21530 2010-04-19  Bruno Haible  <bruno@clisp.org>
21531
21532         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
21533         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
21534         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
21535         mention of RELOCATABLE_STRIP.
21536         Reported by Sylvain Beucler <beuc@beuc.net>.
21537
21538 2010-04-19  Bruno Haible  <bruno@clisp.org>
21539
21540         * lib/diffseq.h: Fix typo in comment.
21541         Reported by Eric Blake.
21542
21543 2010-04-19  Bruno Haible  <bruno@clisp.org>
21544
21545         ioctl: Move autoconf macro to a .m4 file.
21546         * m4/ioctl.m4: New file, extracted from modules/ioctl.
21547         * modules/ioctl (Files): Add it.
21548         (configure.ac): Simply invoke gl_FUNC_IOCTL.
21549         Reported by Ian Beckwith <ianb@erislabs.net>.
21550
21551 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
21552             Bruno Haible  <bruno@clisp.org>
21553
21554         diffseq: Accommodate use-case with abstract arrays.
21555         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
21556         is not defined.
21557         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
21558         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
21559
21560 2010-04-18  Bruno Haible  <bruno@clisp.org>
21561
21562         * doc/posix-headers/stdbool.texi: More precise wording.
21563
21564 2010-04-17  Jim Meyering  <meyering@redhat.com>
21565
21566         maint.mk: use gnu-style indentation in an embedded perl script
21567         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
21568         Rename variable: s/two/last_two_bytes/
21569
21570 2010-04-16  Eric Blake  <eblake@redhat.com>
21571
21572         test-stdbool: skip test that fails with Solaris CC
21573         * tests/test-stdbool.c (f): Skip test that causes compilation
21574         error under buggy C++ compiler.
21575         * lib/stdbool.in.h: Document the limitation.
21576         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
21577
21578         setenv: allow compilation with C++
21579         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
21580         register keyword.
21581
21582         stdint: allow test to pass with C++
21583         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
21584
21585         getopt: allow compilation with C++
21586         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
21587         struct.
21588         * lib/getopt.c (_getopt_internal_r): Use correct type.
21589         Reported by Dagobert Michelson, via Joel E. Denny.
21590
21591 2010-04-16  Bruno Haible  <bruno@clisp.org>
21592
21593         Override netdb.h always.
21594         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
21595         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
21596         Reported by Ludovic Courtès <ludo@gnu.org>.
21597
21598 2010-04-15  Bruno Haible  <bruno@clisp.org>
21599
21600         openpty: Fix mistake from 2010-03-21.
21601         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
21602         Reported by Simon Josefsson.
21603
21604 2010-04-15  Eric Blake  <eblake@redhat.com>
21605
21606         test-forkpty: fix expected signature
21607         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
21608         Reported by Simon Josefsson.
21609
21610 2010-04-15  Jim Meyering  <meyering@redhat.com>
21611
21612         maint.mk: texinfo_suffix_re_: correct the default regexp
21613         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
21614
21615         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
21616         make it configurable via texinfo_suffix_re_.
21617
21618 2010-04-14  Eric Blake  <eblake@redhat.com>
21619
21620         strtok_r: relax license to LGPLv2+
21621         * modules/strtok_r (License): Relax license.
21622         Reported by Matthias Bolte.
21623
21624 2010-04-14  Simon Josefsson  <simon@josefsson.org>
21625
21626         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
21627         version 1.4.4 by default instead of requiring the libgcrypt
21628         version used during build.  This makes it possible to use the
21629         application with older but still binary compatible libgcrypt
21630         versions.
21631
21632 2010-04-13  Eric Blake  <eblake@redhat.com>
21633
21634         getopt-gnu: match recent glibc fixes and posix ruling
21635         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
21636         '+' handling, when requesting extensions.
21637         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
21638         'W;' handling.
21639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
21640         * doc/posix-functions/getopt.texi (getopt): Document this.
21641         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21642         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21643         Likewise.
21644
21645         getopt: merge bug fixes from glibc
21646         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
21647         diagnostics.  Honor '+:' correctly.  Reject ';'.
21648
21649         getopt-posix: detect MacOS bug
21650         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
21651         optind when missing a required argument.
21652         * doc/posix-functions/getopt.texi (getopt): Document the bug.
21653         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21654         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21655         Likewise.
21656
21657         getopt-posix: avoid spurious failure on Solaris
21658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
21659         an indicator that setting optind=1 is sufficient for reset.
21660
21661         getopt-posix: avoid spurious failure on FreeBSD
21662         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
21663         in POSIX mode, since the m4 test uses it.
21664
21665         gnulib-tool: silence warning on BSD sh
21666         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
21667
21668 2010-04-13  Jim Meyering  <meyering@redhat.com>
21669
21670         doc: users.txt: GNU patch now uses gnulib
21671         * users.txt: Add patch.
21672
21673 2010-04-12  Jim Meyering  <meyering@redhat.com>
21674
21675         maint.mk: generate more concise timing data for syntax-check rules
21676         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
21677         " done" from each line that reports a syntax-check test duration.
21678
21679 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
21680
21681         git-version-gen: use "git update-index..." rather than "git status"
21682         * build-aux/git-version-gen: Use git update-index --refresh, not
21683         "git status".  With some versions of git, "git status" would fail
21684         to update the index and result in an unwarranted "-dirty" suffix.
21685
21686 2010-04-11  Jim Meyering  <meyering@redhat.com>
21687
21688         openat: correct formatting (no semantic change)
21689         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
21690         Suggested by Bruno Haible.
21691
21692 2010-04-11  Bruno Haible  <bruno@clisp.org>
21693
21694         Stricter declaration checking in testdirs.
21695         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21696         If for_tests is true, augment AM_CPPFLAGS to define
21697         GNULIB_STRICT_CHECKING.
21698         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
21699         GNULIB_STRICT_CHECKING is defined, verify that the function is
21700         declared.
21701
21702 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
21703             Bruno Haible  <bruno@clisp.org>
21704
21705         libunistring: Improve configure output.
21706         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
21707         Don't say "consider installing GNU libunistring" when checking again
21708         with libiconv.
21709
21710 2010-04-11  Bruno Haible  <bruno@clisp.org>
21711
21712         libunistring: Correct value of $LTLIBUNISTRING.
21713         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
21714         correct the value of $LTLIBUNISTRING.
21715
21716 2010-04-11  Bruno Haible  <bruno@clisp.org>
21717
21718         havelib: Add static libraries to LIBS in the right order.
21719         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
21720         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
21721
21722 2010-04-11  Bruno Haible  <bruno@clisp.org>
21723
21724         libunistring: Detect libunistring also when it depends on libiconv.
21725         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
21726         the second AC_LIB_HAVE_LINKFLAGS invocation.
21727
21728 2010-04-11  James Youngman  <jay@gnu.org>
21729
21730         close-stream: declare local scalars to be "const"
21731         * lib/close-stream.c (close_stream): Make boolean variables const
21732         to document the fact that we set but do not change them.
21733
21734 2010-04-11  Bruno Haible  <bruno@clisp.org>
21735
21736         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
21737
21738 2010-04-11  Jim Meyering  <meyering@redhat.com>
21739
21740         maint.mk: don't include dist-check.mk
21741         * top/maint.mk: Remove bogus include directive.
21742
21743         maint.mk: improve empty-line-at-EOF check
21744         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
21745         solution, rather than tail+Perl-based one.  The latter would read
21746         a few kilobytes from the end of each file, and did not handle empty
21747         files properly.
21748
21749         maint.mk: print the elapsed time for each syntax-check rule
21750         * top/maint.mk (sc_m_rules_): Save start time in a file.
21751         (sc_z_rules_): New rules: remove temp file and print elapsed time.
21752         (local-check): Interpose the .z rules
21753
21754 2010-04-11  Jim Meyering  <meyering@redhat.com>
21755
21756         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
21757         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
21758         empty file with one that ends in an empty line.
21759
21760 2010-04-10  Bruno Haible  <bruno@clisp.org>
21761
21762         mkdir: Make it work on mingw64.
21763         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
21764         * lib/mkdir.c: Update comment.
21765         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
21766
21767 2010-04-10  Bruno Haible  <bruno@clisp.org>
21768
21769         Don't override improved macro from newer autoconf.
21770         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
21771         autoconf >= 2.62.
21772         Reported by Joel E. Denny <jdenny@clemson.edu>.
21773
21774 2010-04-10  Jim Meyering  <meyering@redhat.com>
21775
21776         maint.mk: new syntax-check rule: prohibit empty lines at end of file
21777         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
21778
21779         maint.mk: correct a diagnostic
21780         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
21781         in diagnostic; now use $prohibit.
21782
21783 2010-04-10  Bruno Haible  <address@hidden>
21784
21785         fchownat: Fix a C++ test error on Solaris 8.
21786         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
21787         the function does not exist.
21788
21789 2010-04-10  Bruno Haible  <bruno@clisp.org>
21790
21791         vasnprintf: Add more tests.
21792         * tests/test-vasnprintf-posix.c: Include <errno.h>.
21793         (test_function): Test converting an invalid wide string.
21794
21795         vasnprintf: Correct handling of unconvertible wide string arguments.
21796         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21797         VASNPRINTF.
21798         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21799         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21800         smaller than the expected maximum need for the directive. Set errno to
21801         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21802         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21803         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21804         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21805         * modules/vasnprintf (Files): Add m4/printf.m4.
21806         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21807
21808 2010-04-10  Bruno Haible  <bruno@clisp.org>
21809
21810         vasnprintf: Fix crash in %ls directive.
21811         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21812         string is passed as argument to %ls, with no precision and no width.
21813         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21814
21815 2010-04-10  Bruno Haible  <bruno@clisp.org>
21816
21817         vasnprintf: Fix multiple test failures on mingw.
21818         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21819         _snprintf, or snwprintf, not _snwprintf.
21820
21821 2010-04-10  Bruno Haible  <bruno@clisp.org>
21822
21823         write: Fix a C++ test error on mingw.
21824         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
21825
21826 2010-04-10  Bruno Haible  <bruno@clisp.org>
21827
21828         vasnprintf test: Reduce code duplication.
21829         * tests/test-vasnprintf.c (test_function): New function, extracted from
21830         test_vasnprintf.
21831         (test_vasnprintf, test_asnprintf): Invoke it.
21832
21833 2010-04-10  Bruno Haible  <bruno@clisp.org>
21834
21835         strnlen: Fix warning in C++ mode on MacOS X.
21836         * lib/string.in.h (strnlen): Use the modern idiom.
21837         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
21838         defining strnlen as a macro already in <config.h>.
21839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21840         REPLACE_STRNLEN.
21841         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
21842         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21843
21844 2010-04-08  James Youngman  <jay@gnu.org>
21845
21846         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
21847         the example.
21848
21849 2010-04-09  Jim Meyering  <meyering@redhat.com>
21850
21851         maint.mk: print better diagnostic when there is no $(_hv_file)
21852         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
21853         announce that when $(_hv_file) (aka help-version) does not exist.
21854
21855         init.sh: run tr in the "C" locale to avoid multibyte interpretation
21856         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
21857         not try to interpret its random input bytes.  Jarno Rajahalme reported
21858         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
21859         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
21860         (mktempd_): Likewise, just in case.
21861
21862         ftruncate: add two years to projected module removal date: 2012
21863         * m4/ftruncate.m4: Adjust comments.
21864
21865         ftruncate: mark module as obsolete; even MinGW provides it, now
21866         * modules/ftruncate (Status): Obsolete.
21867         (Notice): Say that.
21868         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21869         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
21870
21871 2010-04-08  Bruno Haible  <bruno@clisp.org>
21872
21873         Fix side effects from tests-related modules.
21874         * modules/dprintf-posix (Comment): New section.
21875         * modules/fprintf-posix (Comment): Likewise.
21876         * modules/obstack-printf-posix (Comment): Likewise.
21877         * modules/printf-posix (Comment): Likewise.
21878         * modules/snprintf-posix (Comment): Likewise.
21879         * modules/sprintf-posix (Comment): Likewise.
21880         * modules/vasnprintf-posix (Comment): Likewise.
21881         * modules/vasprintf-posix (Comment): Likewise.
21882         * modules/vdprintf-posix (Comment): Likewise.
21883         * modules/vfprintf-posix (Comment): Likewise.
21884         * modules/vprintf-posix (Comment): Likewise.
21885         * modules/vsnprintf-posix (Comment): Likewise.
21886         * modules/vsprintf-posix (Comment): Likewise.
21887         * modules/xprintf-posix (Comment): Likewise.
21888         * modules/xvasprintf-posix (Comment): Likewise.
21889         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21890         * modules/floorf-tests (Depends-on): Likewise.
21891         * modules/round-tests (Depends-on): Likewise.
21892         * modules/roundf-tests (Depends-on): Likewise.
21893         * modules/trunc-tests (Depends-on): Likewise.
21894         * modules/truncf-tests (Depends-on): Likewise.
21895         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21896         'fprintf-posix' module is not present.
21897         * tests/test-floorf2.c (check): Likewise.
21898         * tests/test-trunc2.c (check): Likewise.
21899         * tests/test-truncf2.c (check): Likewise.
21900         * tests/test-round2.c (equal): Likewise.
21901         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21902
21903 2010-04-07  Karl Berry  <karl@gnu.org>
21904
21905         * config/srclist.txt,
21906         * config/srclistvars.sh,
21907         * config/srclist-update: doc fixes.
21908
21909 2010-04-07  Jim Meyering  <meyering@redhat.com>
21910
21911         maint.mk: add a PATH crosschecking syntax-check rule
21912         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21913         Useful if you use a test like the one in help-version (coreutils,
21914         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21915         printed by prog --version.
21916
21917 2010-04-06  Bruno Haible  <bruno@clisp.org>
21918
21919         Fix link error on mingw.
21920         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21921         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21922
21923 2010-04-06  Bruno Haible  <bruno@clisp.org>
21924
21925         Assume rmdir exists.
21926         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21927
21928 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21929
21930         doc: update users.txt
21931         * users.txt: Add gcal.
21932
21933 2010-04-06  Jim Meyering  <meyering@redhat.com>
21934
21935         init.sh: simply unset TMPDIR rather than risking env -i
21936         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21937         although it probably works fine on all Unix-based systems, some
21938         systems (Cygwin?) cannot tolerate a totally cleared environment.
21939         Suggestion from Eric Blake.
21940
21941 2010-04-06  Jim Meyering  <meyering@redhat.com>
21942
21943         init.sh: portability fix: use env's POSIX-specified -i option not -u
21944         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21945         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21946
21947 2010-04-05  Bruno Haible  <bruno@clisp.org>
21948
21949         btowc: Work around Cygwin 1.7.2 bug.
21950         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21951         does not map NUL to 0.
21952         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21953
21954 2010-04-05  Bruno Haible  <bruno@clisp.org>
21955
21956         Make the multithread modules work on Cygwin 1.7.2.
21957         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21958         imported symbols can be declared weak, so that it returns "no" on
21959         Cygwin 1.7.2.
21960
21961 2010-04-05  Bruno Haible  <bruno@clisp.org>
21962
21963         Use the module 'strncat'.
21964         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21965
21966         Tests for module 'strncat'.
21967         * modules/strncat-tests: New file.
21968         * tests/test-strncat.c: New file.
21969
21970         New module 'strncat'.
21971         * lib/string.in.h (strncat): New declaration.
21972         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21973         * m4/strncat.m4: New file, based on m4/memchr.m4.
21974         * modules/strncat: New file.
21975         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21976         is declared.
21977         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21978         REPLACE_STRNCAT.
21979         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21980         REPLACE_STRNCAT.
21981         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21982         module.
21983         * tests/test-string-c++.cc: Check signature of strncat.
21984
21985 2010-04-05  Jim Meyering  <meyering@redhat.com>
21986
21987         xstrtoumax-tests: convert to use init.sh
21988         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21989         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21990         Use Exit, not exit.
21991         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21992
21993         xstrtoimax-tests: convert to use init.sh
21994         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21995         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21996         Use Exit, not exit.
21997         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21998
21999 2010-04-05  Bruno Haible  <bruno@clisp.org>
22000
22001         sys_socket: Avoid #define replacements in C++ mode.
22002         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
22003         warning to the function if possible, rather than #defining the symbol
22004         to a dysfunctional alias.
22005
22006 2010-04-05  Bruno Haible  <bruno@clisp.org>
22007
22008         fseeko: Fix C++ test error on mingw.
22009         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
22010         gl_FUNC_FSEEKO.
22011         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
22012         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
22013         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
22014         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
22015
22016 2010-04-05  Bruno Haible  <bruno@clisp.org>
22017
22018         duplocale: Improve test output.
22019         * tests/test-duplocale.c (main): Print reason for skipped test.
22020
22021 2010-04-05  Bruno Haible  <bruno@clisp.org>
22022
22023         Assume rmdir exists.
22024         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
22025         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
22026
22027 2010-04-05  Bruno Haible  <bruno@clisp.org>
22028
22029         Fix link error on Solaris 8 with cc.
22030         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
22031
22032 2010-04-05  Bruno Haible  <bruno@clisp.org>
22033
22034         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
22035         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
22036
22037 2010-04-05  Bruno Haible  <bruno@clisp.org>
22038
22039         vasprintf: Update documentation.
22040         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
22041
22042 2010-04-05  Bruno Haible  <bruno@clisp.org>
22043
22044         ptsname: Improve test.
22045         * tests/test-ptsname.c (main): Also try the various master names of BSD
22046         systems.
22047
22048 2010-04-05  Bruno Haible  <bruno@clisp.org>
22049
22050         memchr: Avoid a possible C++ test error.
22051         * lib/string.in.h (memchr): Provide declaration if function is missing.
22052         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
22053         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
22054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
22055         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
22056
22057 2010-04-05  Bruno Haible  <bruno@clisp.org>
22058
22059         strtok_r: Improve idiom.
22060         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
22061         AC_LIBOBJ is used.
22062
22063 2010-04-05  Bruno Haible  <bruno@clisp.org>
22064
22065         strdup: Improve idiom.
22066         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
22067         AC_LIBOBJ is used.
22068         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
22069         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
22070         when AC_LIBOBJ is used.
22071
22072 2010-04-05  Bruno Haible  <bruno@clisp.org>
22073
22074         mbsinit, mbrtowc, wcrtomb: Improve idioms.
22075         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
22076         don't set REPLACE_MBSINIT to 1.
22077         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
22078         don't set REPLACE_MBRTOWC to 1.
22079         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
22080         exist, don't set REPLACE_MBSRTOWCS to 1.
22081         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
22082         exist, don't set REPLACE_MBSNRTOWCS to 1.
22083         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
22084         don't set REPLACE_WCRTOMB to 1.
22085         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
22086         exist, don't set REPLACE_WCSRTOMBS to 1.
22087         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
22088         exist, don't set REPLACE_WCSNRTOMBS to 1.
22089
22090 2010-04-05  Bruno Haible  <bruno@clisp.org>
22091
22092         ldexpl: Improve idiom.
22093         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
22094         make sure to set HAVE_DECL_LDEXPL to 0.
22095
22096 2010-04-05  Jim Meyering  <meyering@redhat.com>
22097
22098         xstrtol-tests: convert to use init.sh
22099         * modules/xstrtol-tests (Files): Add tests/init.sh.
22100         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22101         Use Exit, not exit.
22102         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22103
22104         atexit-tests: convert to use init.sh
22105         * modules/atexit-tests (Files): Add tests/init.sh.
22106         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22107         Use Exit, not exit.
22108         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22109
22110         init.sh: fix typo
22111         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
22112
22113         init.sh: make it easier for a test script to write to the tty, ...
22114         when using automake's parallel-tests mode.
22115         * tests/init.sh (stderr_fileno_): Define overridable variable.
22116         (warn_): New function, to use it.
22117         (fail_, skip_, framework_failure_): Use warn_.
22118
22119 2010-04-04  Bruno Haible  <bruno@clisp.org>
22120
22121         btowc: Avoid warning.
22122         * lib/btowc.c: Include <stdlib.h>.
22123         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
22124
22125 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
22126             Bruno Haible  <bruno@clisp.org>
22127
22128         wchar: Port to NetBSD 1.5.
22129         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
22130         * lib/wctype.in.h (WEOF): Likewise.
22131
22132 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
22133             Bruno Haible  <bruno@clisp.org>
22134
22135         Port extended stdio to NetBSD 1.5.
22136         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
22137         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
22138         older.
22139
22140 2010-04-04  Bruno Haible  <bruno@clisp.org>
22141
22142         string: Remove unused substitution.
22143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
22144         HAVE_DECL_STRERROR.
22145         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
22146
22147 2010-04-04  Bruno Haible  <bruno@clisp.org>
22148
22149         strtod: Avoid a possible C++ test error.
22150         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
22151         set REPLACE_STRTOD.
22152
22153 2010-04-04  Bruno Haible  <bruno@clisp.org>
22154
22155         strerror: Update documentation.
22156         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
22157
22158 2010-04-04  Bruno Haible  <bruno@clisp.org>
22159
22160         stdio: Fix some C++ test errors on Solaris 8 with GCC.
22161         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
22162         _GL_CXXALIAS_SYS_CAST.
22163
22164 2010-04-04  Bruno Haible  <bruno@clisp.org>
22165
22166         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
22167         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
22168         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
22169         REPLACE_FREXPL to 1.
22170         * doc/posix-functions/frexpl.texi: Update documentation.
22171
22172 2010-04-04  Bruno Haible  <bruno@clisp.org>
22173
22174         math: Fix some C++ test errors on Solaris 8 and Cygwin.
22175         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
22176
22177 2010-04-04  Bruno Haible  <bruno@clisp.org>
22178
22179         Implement nanosleep for native Windows.
22180         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
22181
22182 2010-04-04  Bruno Haible  <bruno@clisp.org>
22183
22184         math: Fix some C++ test errors on Solaris 8.
22185         * lib/math.in.h (truncf, trunc): Use simpler idiom.
22186
22187 2010-04-04  Bruno Haible  <bruno@clisp.org>
22188
22189         math: Fix some C++ test errors on Cygwin.
22190         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
22191         truncl): Provide declaration if the system does not have it.
22192         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
22193         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
22194         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
22195         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
22196         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
22197         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
22198         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
22199         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
22200         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
22201         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
22202         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
22203         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
22204         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
22205         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
22206         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
22207         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
22208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
22209         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22210         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22211         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
22212         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22213         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22214
22215 2010-04-04  Bruno Haible  <bruno@clisp.org>
22216
22217         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
22218         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22219         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22220         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
22221         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22222         * m4/isinf.m4 (gl_ISINF): Likewise.
22223         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22224
22225 2010-04-04  Bruno Haible  <bruno@clisp.org>
22226
22227         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
22228         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22229
22230 2010-04-04  Bruno Haible  <bruno@clisp.org>
22231
22232         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
22233         * modules/tmpfile (configure.ac): Update.
22234
22235         tmpfile: Fix C++ test error on mingw.
22236         * lib/stdio.in.h (tmpfile): New declaration.
22237         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
22238         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
22239         * modules/tmpfile (Depends-on): Add stdio.
22240         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
22241         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
22242         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
22243         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
22244         REPLACE_TMPFILE.
22245         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
22246
22247 2010-04-04  Bruno Haible  <bruno@clisp.org>
22248
22249         ioctl: Fix C++ test error on mingw.
22250         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
22251         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
22252         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
22253
22254 2010-04-03  Bruno Haible  <bruno@clisp.org>
22255
22256         wcwidth: Fix C++ test error on mingw.
22257         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
22258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
22259         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
22260
22261 2010-04-03  Bruno Haible  <bruno@clisp.org>
22262
22263         nanosleep: Fix C++ test error on mingw.
22264         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
22265         * lib/time.in.h (nanosleep): Use modern idiom.
22266         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
22267         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
22268         REPLACE_NANOSLEEP to 1.
22269         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
22270         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
22271
22272 2010-04-03  Bruno Haible  <bruno@clisp.org>
22273
22274         strptime: Fix C++ test error on mingw.
22275         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
22276         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
22277         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
22278         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
22279         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
22280         not REPLACE_STRPTIME.
22281         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
22282         REPLACE_STRPTIME.
22283
22284 2010-04-03  Bruno Haible  <bruno@clisp.org>
22285
22286         timegm: Fix C++ test error on mingw.
22287         * lib/time.in.h (timegm): Use modern idiom.
22288         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
22289         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
22290         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
22291         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
22292
22293 2010-04-03  Bruno Haible  <bruno@clisp.org>
22294
22295         timegm: Assume declaration if function exists.
22296         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
22297         if it exists. Don't clobber ac_cv_func_timegm.
22298
22299 2010-04-03  Bruno Haible  <bruno@clisp.org>
22300
22301         time_r: Fix C++ test error on mingw.
22302         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
22303         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
22304         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
22305         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
22306         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
22307
22308 2010-04-03  Bruno Haible  <bruno@clisp.org>
22309
22310         time_r: Minor updates.
22311         * modules/time_r (Description): Mention the provided functions.
22312         * lib/time_r.c: Don't include <string.h>.
22313         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
22314         * doc/posix-functions/localtime_r.texi: Likewise.
22315
22316 2010-04-03  Bruno Haible  <bruno@clisp.org>
22317
22318         time: Fix regression introduced on 2010-03-08.
22319         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
22320         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
22321
22322 2010-04-03  Jim Meyering  <meyering@redhat.com>
22323
22324         maint.mk: don't silently disable project-specific syntax-check rules
22325         * top/maint.mk (_prohibit_regexp): Define, to help people realize
22326         that they need to convert their project-specific syntax-check rules
22327         to use the new _sc_search_regexp.
22328
22329 2010-04-03  Bruno Haible  <bruno@clisp.org>
22330
22331         fchdir: Fix regression introduced on 2010-03-08.
22332         * lib/unistd.in.h (fchdir): Fix declaration.
22333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
22334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
22335         REPLACE_FCHDIR.
22336         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
22337         REPLACE_FCHDIR.
22338
22339 2010-04-03  Bruno Haible  <bruno@clisp.org>
22340
22341         getpagesize: Fix C++ test error on mingw.
22342         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
22343         system does not declare the function.
22344         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
22345         declared.
22346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22347         HAVE_DECL_GETPAGESIZE.
22348         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
22349
22350 2010-04-03  Bruno Haible  <bruno@clisp.org>
22351
22352         stdio: Make C++ tests work on mingw.
22353         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
22354         does not declare the function.
22355
22356 2010-04-03  Bruno Haible  <bruno@clisp.org>
22357
22358         ftello: Fix C++ test error on mingw.
22359         * lib/stdio.in.h (ftello): Use modern idiom.
22360         * lib/ftello.c (ftello): Renamed from rpl_ftello.
22361         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
22362         is missing and that it needs to be replaced.
22363         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
22364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
22365         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
22366
22367 2010-04-03  Bruno Haible  <bruno@clisp.org>
22368
22369         fseeko: Fix C++ test error on mingw.
22370         * lib/stdio.in.h (fseeko): Use modern idiom.
22371         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
22372         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
22373         is missing and that it needs to be replaced.
22374         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
22375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
22376         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
22377
22378 2010-04-03  Bruno Haible  <bruno@clisp.org>
22379
22380         mkstemp: Fix C++ test error on mingw.
22381         * lib/stdlib.in.h (mkstemp): Use modern idiom.
22382         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
22383         function is missing and that it needs to be replaced.
22384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
22385         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
22386
22387 2010-04-03  Bruno Haible  <bruno@clisp.org>
22388
22389         stpncpy: Fix C++ test error on mingw.
22390         * lib/string.in.h (stpncpy): Use modern idiom.
22391         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
22392         function is missing and that it needs to be replaced.
22393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22394         REPLACE_STPNCPY.
22395         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
22396
22397 2010-04-03  Bruno Haible  <bruno@clisp.org>
22398
22399         sys_stat: Fix C++ test error on mingw.
22400         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
22401         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
22402
22403 2010-04-03  Bruno Haible  <bruno@clisp.org>
22404
22405         pty: Update doc.
22406         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
22407
22408 2010-04-03  Bruno Haible  <bruno@clisp.org>
22409
22410         unistd: Fix C++ test error on mingw.
22411         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
22412
22413 2010-04-03  Bruno Haible  <bruno@clisp.org>
22414
22415         Update doc regarding mingw.
22416         * doc/glibc-functions/openpty.texi: Update regarding mingw.
22417         * doc/glibc-functions/login_tty.texi: Likewise.
22418         * doc/glibc-functions/forkpty.texi: Likewise.
22419
22420 2010-04-03  Bruno Haible  <bruno@clisp.org>
22421
22422         stdlib: Avoid compilation failure of c-strtold on mingw.
22423         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
22424
22425 2010-04-03  Bruno Haible  <bruno@clisp.org>
22426
22427         locale: Make C++ tests work on Cygwin and mingw.
22428         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
22429         cannot provide the function.
22430         Reported by Simon Josefsson.
22431
22432 2010-04-03  Bruno Haible  <bruno@clisp.org>
22433
22434         localename: Port to MacOS X 10.6.
22435         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
22436         memory layout of the locales in MacOS X 10.6 as well.
22437         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
22438
22439 2010-04-02  Bruno Haible  <bruno@clisp.org>
22440
22441         gnulib-tool: Ensure that long-running tests are executed last.
22442         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
22443         running tests after the one for the other tests.
22444
22445 2010-04-02  Bruno Haible  <bruno@clisp.org>
22446
22447         gnulib-tool: Ensure the tests in the main directory are executed first.
22448         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
22449         start with the current directory.
22450
22451 2010-04-02  Bruno Haible  <bruno@clisp.org>
22452
22453         Tests for module 'havelib', moved here from GNU gettext.
22454         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
22455         modifications.
22456         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
22457         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
22458         with modifications.
22459         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
22460         modifications.
22461         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
22462         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
22463         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
22464         with modifications.
22465         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
22466         with modifications.
22467         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
22468         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
22469         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
22470         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
22471         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
22472         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
22473         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
22474         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
22475         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
22476         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
22477         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
22478         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
22479         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
22480         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
22481         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
22482         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
22483         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
22484         with modifications.
22485         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
22486         with modifications.
22487         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
22488         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
22489         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
22490         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
22491         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
22492         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
22493         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
22494         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
22495         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
22496         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
22497         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
22498         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
22499         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
22500         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
22501         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
22502         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
22503         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
22504         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
22505         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
22506         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
22507         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
22508         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
22509         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
22510         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
22511         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
22512         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
22513         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
22514         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
22515         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
22516         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
22517         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
22518         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
22519         * tests/havelib/rpathx/rpathx.c: New file, from
22520         gettext/autoconf-lib-link.
22521         * tests/havelib/rpathx/Makefile.am: New file, from
22522         gettext/autoconf-lib-link.
22523         * tests/havelib/rpathx/configure.ac: New file, from
22524         gettext/autoconf-lib-link with modifications.
22525         * tests/havelib/rpathy/rpathy.c: New file, from
22526         gettext/autoconf-lib-link.
22527         * tests/havelib/rpathy/Makefile.am: New file, from
22528         gettext/autoconf-lib-link.
22529         * tests/havelib/rpathy/configure.ac: New file, from
22530         gettext/autoconf-lib-link with modifications.
22531         * tests/havelib/rpathz/rpathz.c: New file, from
22532         gettext/autoconf-lib-link.
22533         * tests/havelib/rpathz/Makefile.am: New file, from
22534         gettext/autoconf-lib-link.
22535         * tests/havelib/rpathz/configure.ac: New file, from
22536         gettext/autoconf-lib-link with modifications.
22537         * tests/havelib/rpathlx/usex.c: New file, from
22538         gettext/autoconf-lib-link.
22539         * tests/havelib/rpathlx/Makefile.am: New file, from
22540         gettext/autoconf-lib-link.
22541         * tests/havelib/rpathlx/configure.ac: New file, from
22542         gettext/autoconf-lib-link with modifications.
22543         * tests/havelib/rpathly/usey.c: New file, from
22544         gettext/autoconf-lib-link.
22545         * tests/havelib/rpathly/Makefile.am: New file, from
22546         gettext/autoconf-lib-link.
22547         * tests/havelib/rpathly/configure.ac: New file, from
22548         gettext/autoconf-lib-link with modifications.
22549         * tests/havelib/rpathlz/usez.c: New file, from
22550         gettext/autoconf-lib-link.
22551         * tests/havelib/rpathlz/Makefile.am: New file, from
22552         gettext/autoconf-lib-link.
22553         * tests/havelib/rpathlz/configure.ac: New file, from
22554         gettext/autoconf-lib-link with modifications.
22555         * tests/havelib/rpathlyx/usey.c: New file, from
22556         gettext/autoconf-lib-link.
22557         * tests/havelib/rpathlyx/Makefile.am: New file, from
22558         gettext/autoconf-lib-link.
22559         * tests/havelib/rpathlyx/configure.ac: New file, from
22560         gettext/autoconf-lib-link with modifications.
22561         * tests/havelib/rpathlzyx/usez.c: New file, from
22562         gettext/autoconf-lib-link.
22563         * tests/havelib/rpathlzyx/Makefile.am: New file, from
22564         gettext/autoconf-lib-link.
22565         * tests/havelib/rpathlzyx/configure.ac: New file, from
22566         gettext/autoconf-lib-link with modifications.
22567         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
22568         with modifications.
22569
22570 2010-04-02  Bruno Haible  <bruno@clisp.org>
22571
22572         gnulib-tool: Create distributed built sources also for the tests.
22573         * gnulib-tool (func_create_testdir): Also generate distributed built
22574         sources in the tests directory.
22575
22576 2010-04-02  Bruno Haible  <bruno@clisp.org>
22577
22578         gnulib-tool: Obey user's environment variables.
22579         * gnulib-tool (func_create_testdir): When creating built sources,
22580         respect the environment variables for autoconf, automake, etc. given by
22581         the user.
22582
22583 2010-04-02  Bruno Haible  <bruno@clisp.org>
22584
22585         gnulib-tool: Provide the value of --m4-base to modules.
22586         * gnulib-tool (func_import, func_create_testdir): Emit a definition
22587         of gl_m4_base.
22588
22589 2010-04-02  Eric Blake  <eblake@redhat.com>
22590
22591         maint.mk: fix some fallout
22592         * NEWS: Document the incompatible change, and its effect on cfg.mk.
22593         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
22594
22595 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22596
22597         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
22598         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
22599         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
22600         (sc_cast_of_x_alloc_return_value): Likewise.
22601         (sc_cast_of_alloca_return_value): Likewise.
22602         (sc_space_tab): Likewise.
22603         (sc_prohibit_atoi_atof): Likewise.
22604         (sc_prohibit_magic_number_exit): Likewise.
22605         (sc_error_exit_success): Likewise.
22606         (sc_file_system): Likewise.
22607         (sc_prohibit_have_config_h): Likewise.
22608         (sc_require_config_h): Likewise.
22609         (sc_prohibit_HAVE_MBRTOWC): Likewise.
22610         (sc_obsolete_symbols): Likewise.
22611         (sc_changelog): Likewise.
22612         (sc_program_name): Likewise.
22613         (sc_the_the): Likewise.
22614         (sc_trailing_blank): Likewise.
22615         (sc_two_space_separator_in_usage): Likewise.
22616         (sc_useless_cpp_parens): Likewise.
22617         (sc_GPL_version): Likewise.
22618         (sc_GFDL_version): Likewise.
22619         (sc_texinfo_acronym): Likewise.
22620         (sc_prohibit_cvs_keyword): Likewise.
22621         (sc_prohibit_stat_st_blocks): Likewise.
22622         (sc_prohibit_S_IS_definition): Likewise.
22623         (sc_redundant_const): Likewise.
22624         (sc_makefile_TAB_only_indentation): Likewise.
22625         (sc_m4_quote_check): Likewise.
22626         (sc_makefile_path_separator_check): Likewise.
22627         (sc_copyright_check): Likewise.
22628         (sc_Wundef_boolean): Likewise.
22629         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22630
22631         maint.mk: match 0 or more whitespace-before-function-call '('
22632         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
22633         that have zero or two-and-more spaces between the function name
22634         and the open parenthesis.
22635         (sc_error_message_warn_fatal): Likewise.
22636         (sc_error_message_uppercase): Likewise.
22637         (sc_error_message_period): Likewise.
22638
22639 2010-03-31  Eric Blake  <eblake@redhat.com>
22640
22641         maint.mk: check for [ as well as test
22642         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
22643         Based on a libvirt report by Matthias Bolte.
22644
22645         gnumakefile: don't squelch _version output
22646         * top/GNUmakefile (_version): Create one-shot dependency rather
22647         than using $(shell) when version must be regenerated.
22648         (_autoreconf): Run verbosely, by default.
22649
22650         sys_time: avoid compiler warnings
22651         * lib/sys_time.in.h (includes): Ensure gcc pragma is
22652         unconditional, fixing regression from 2010-03-29.
22653         Reported by Simon Josefsson.
22654
22655 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22656
22657         maint.mk: s/_header_without_use/_sc_header_without_use/
22658         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
22659         (sc_prohibit_assert_without_use): Use the new name.
22660         (sc_prohibit_close_stream_without_use): Likewise.
22661         (sc_prohibit_getopt_without_use): Likewise.
22662         (sc_prohibit_quotearg_without_use): Likewise.
22663         (sc_prohibit_quote_without_use): Likewise.
22664         (sc_prohibit_long_options_without_use): Likewise.
22665         (sc_prohibit_inttostr_without_use): Likewise.
22666         (sc_prohibit_ignore_value_without_use): Likewise.
22667         (sc_prohibit_error_without_use): Likewise.
22668         (sc_prohibit_xalloc_without_use): Likewise.
22669         (sc_prohibit_hash_without_use): Likewise.
22670         (sc_prohibit_hash_pjw_without_use): Likewise.
22671         (sc_prohibit_safe_read_without_use): Likewise.
22672         (sc_prohibit_argmatch_without_use): Likewise.
22673         (sc_prohibit_canonicalize_without_use): Likewise.
22674         (sc_prohibit_root_dev_ino_without_use): Likewise.
22675         (sc_prohibit_openat_without_use): Likewise.
22676         (sc_prohibit_c_ctype_without_use): Likewise.
22677         (sc_prohibit_signal_without_use): Likewise.
22678         (sc_prohibit_intprops_without_use): Likewise.
22679
22680 2010-03-30  Eric Blake  <eblake@redhat.com>
22681
22682         maint: improve module indicators
22683         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
22684         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
22685         columns, and avoid extra macro expansion.
22686
22687         fdopendir: work around FreeBSD bug
22688         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22689         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
22690         * modules/dirent (Makefile.am): Substitute it.
22691         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
22692         declaration.
22693         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
22694         fix.
22695         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22696
22697 2010-03-29  Bruno Haible  <bruno@clisp.org>
22698
22699         Emit #pragma system_header after the inclusion guard, not before.
22700         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
22701         guard that spans the entire file, not before. This enables an
22702         optimization in GCC's preprocessor.
22703         * lib/ctype.in.h: Likewise.
22704         * lib/dirent.in.h: Likewise.
22705         * lib/errno.in.h: Likewise.
22706         * lib/float.in.h: Likewise.
22707         * lib/getopt.in.h: Likewise.
22708         * lib/iconv.in.h: Likewise.
22709         * lib/langinfo.in.h: Likewise.
22710         * lib/locale.in.h: Likewise.
22711         * lib/math.in.h: Likewise.
22712         * lib/netdb.in.h: Likewise.
22713         * lib/netinet_in.in.h: Likewise.
22714         * lib/pty.in.h: Likewise.
22715         * lib/sched.in.h: Likewise.
22716         * lib/se-selinux.in.h: Likewise.
22717         * lib/search.in.h: Likewise.
22718         * lib/spawn.in.h: Likewise.
22719         * lib/stdarg.in.h: Likewise.
22720         * lib/stdint.in.h: Likewise.
22721         * lib/string.in.h: Likewise.
22722         * lib/strings.in.h: Likewise.
22723         * lib/sys_file.in.h: Likewise.
22724         * lib/sys_ioctl.in.h: Likewise.
22725         * lib/sys_time.in.h: Likewise.
22726         * lib/sys_times.in.h: Likewise.
22727         * lib/sys_utsname.in.h: Likewise.
22728         * lib/sys_wait.in.h: Likewise.
22729         * lib/sysexits.in.h: Likewise.
22730         * lib/wctype.in.h: Likewise.
22731
22732 2010-03-28  James Youngman  <jay@gnu.org>
22733
22734         save-cwd: don't leak a file descriptor when the caller execs.
22735         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
22736         saved file descriptor.
22737         * modules/save-cwd (Depends-on): Depend on cloexec.
22738
22739 2010-03-29  Bruno Haible  <bruno@clisp.org>
22740
22741         Remove vestiges of fts-lgpl module.
22742         * lib/fts_.h: Assume GNULIB_FTS is 1.
22743         * lib/fts.c: Likewise.
22744         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22745
22746 2010-03-28  Bruno Haible  <bruno@clisp.org>
22747
22748         Fix definition of tests witness macro.
22749         * gnulib-tool (func_import): Fix definition of witness macro.
22750
22751 2010-03-28  Bruno Haible  <bruno@clisp.org>
22752
22753         Fix ioctl's protoype on glibc systems.
22754         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
22755         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
22756         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
22757         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
22758         signature. If not, arrange to replace the ioctl function.
22759         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22760         REPLACE_IOCTL.
22761         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
22762         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
22763         Reported by Ludovic Courtès <ludo@gnu.org>.
22764
22765 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
22766
22767         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
22768         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
22769         made it so grep -r --include=GLOB* ... did not work.
22770
22771 2010-03-26  Jim Meyering  <meyering@redhat.com>
22772             Eric Blake  <eblake@redhat.com>
22773
22774         maint.mk: prohibit use of test's -o and -a operators
22775         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
22776
22777 2010-03-28  Bruno Haible  <bruno@clisp.org>
22778
22779         Remove unused GNULIB_XYZ macro definitions.
22780         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
22781         invocation.
22782
22783 2010-03-28  Bruno Haible  <bruno@clisp.org>
22784
22785         Mark privileged tests modules.
22786         * modules/idpriv-drop-tests (Status): New section.
22787         * modules/idpriv-droptemp-tests (Status): New section.
22788
22789 2010-03-28  Bruno Haible  <bruno@clisp.org>
22790
22791         Split C++ tests into separate tests modules.
22792         * modules/dirent-c++-tests: New file, extracted from
22793         modules/dirent-tests.
22794         * modules/dirent-tests: Depend on it.
22795         * modules/fcntl-h-c++-tests: New file, extracted from
22796         modules/fcntl-h-tests.
22797         * modules/fcntl-h-tests: Depend on it.
22798         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22799         * modules/glob-tests: Depend on it.
22800         * modules/iconv-h-c++-tests: New file, extracted from
22801         modules/iconv-h-tests.
22802         * modules/iconv-h-tests: Depend on it.
22803         * modules/langinfo-c++-tests: New file, extracted from
22804         modules/langinfo-tests.
22805         * modules/langinfo-tests: Depend on it.
22806         * modules/locale-c++-tests: New file, extracted from
22807         modules/locale-tests.
22808         * modules/locale-tests: Depend on it.
22809         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22810         * modules/math-tests: Depend on it.
22811         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22812         * modules/pty-tests: Depend on it.
22813         * modules/search-c++-tests: New file, extracted from
22814         modules/search-tests.
22815         * modules/search-tests: Depend on it.
22816         * modules/signal-c++-tests: New file, extracted from
22817         modules/signal-tests.
22818         * modules/signal-tests: Depend on it.
22819         * modules/spawn-c++-tests: New file, extracted from
22820         modules/spawn-tests.
22821         * modules/spawn-tests: Depend on it.
22822         * modules/stdio-c++-tests: New file, extracted from
22823         modules/stdio-tests.
22824         * modules/stdio-tests: Depend on it.
22825         * modules/stdlib-c++-tests: New file, extracted from
22826         modules/stdlib-tests.
22827         * modules/stdlib-tests: Depend on it.
22828         * modules/string-c++-tests: New file, extracted from
22829         modules/string-tests.
22830         * modules/string-tests: Depend on it.
22831         * modules/sys_ioctl-c++-tests: New file, extracted from
22832         modules/sys_ioctl-tests.
22833         * modules/sys_ioctl-tests: Depend on it.
22834         * modules/sys_select-c++-tests: New file, extracted from
22835         modules/sys_select-tests.
22836         * modules/sys_select-tests: Depend on it.
22837         * modules/sys_socket-c++-tests: New file, extracted from
22838         modules/sys_socket-tests.
22839         * modules/sys_socket-tests: Depend on it.
22840         * modules/sys_stat-c++-tests: New file, extracted from
22841         modules/sys_stat-tests.
22842         * modules/sys_stat-tests: Depend on it.
22843         * modules/sys_time-c++-tests: New file, extracted from
22844         modules/sys_time-tests.
22845         * modules/sys_time-tests: Depend on it.
22846         * modules/time-c++-tests: New file, extracted from modules/time-tests.
22847         * modules/time-tests: Depend on it.
22848         * modules/unistd-c++-tests: New file, extracted from
22849         modules/unistd-tests.
22850         * modules/unistd-tests: Depend on it.
22851         * modules/wchar-c++-tests: New file, extracted from
22852         modules/wchar-tests.
22853         * modules/wchar-tests: Depend on it.
22854         * modules/wctype-c++-tests: New file, extracted from
22855         modules/wctype-tests.
22856         * modules/wctype-tests: Depend on it.
22857         Reported by Simon Josefsson.
22858
22859 2010-03-28  Bruno Haible  <bruno@clisp.org>
22860
22861         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
22862         * gnulib-tool (func_exists_module): New function, extracted from
22863         func_verify_module.
22864         (func_verify_module): Use it.
22865         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
22866         'foo' only if 'foo' exists.
22867         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
22868         module.
22869
22870 2010-03-28  Bruno Haible  <bruno@clisp.org>
22871
22872         gnulib-tool: Add support for special categories of tests.
22873         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
22874         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
22875         (func_usage): Document them.
22876         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
22877         inc_unportable_tests, inc_all_tests): New variables.
22878         (func_acceptable): Consider these variables.
22879         (func_modules_transitive_closure): Make it work when the 'Status' field
22880         consists of multiple words.
22881         (func_import): Store and restore the values of inc_cxx_tests,
22882         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
22883         inc_all_tests in gnulib-comp.m4.
22884         (func_create_testdir): Set inc_all_tests to true.
22885         * doc/gnulib.texi (Extra tests modules): New section.
22886         Suggested by Jim Meyering.
22887
22888 2010-03-28  Bruno Haible  <bruno@clisp.org>
22889
22890         ansi-c++-opt: Allow turning off the C++ build by default.
22891         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22892         gl_CXX_CHOICE_DEFAULT_NO is defined.
22893         Requested by Eric Blake.
22894
22895 2010-03-28  Bruno Haible  <bruno@clisp.org>
22896
22897         unistd: Avoid #define replacements in C++ mode.
22898         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22899         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22900         setsockopt, shutdown, select): In C++, attach a warning to the function
22901         if possible, rather than #defining the symbol to a dysfunctional alias.
22902         Reported by John W. Eaton <jwe@gnu.org>.
22903
22904 2010-03-28  Bruno Haible  <bruno@clisp.org>
22905
22906         Fix link errors on mingw.
22907         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22908         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22909         $(LIBSOCKET).
22910         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22911         $(LIBSOCKET).
22912
22913 2010-03-28  Bruno Haible  <bruno@clisp.org>
22914             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22915
22916         lib-ignore: Determine different options for different compilers.
22917         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22918         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22919         Add comments.
22920         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22921         * NEWS: Mention the change.
22922
22923 2010-03-27  Bruno Haible  <bruno@clisp.org>
22924
22925         Remove unused GNULIB_XYZ macro definitions.
22926         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22927         * modules/fseek (configure.ac): Likewise.
22928         * modules/ioctl (configure.ac): Likewise.
22929         * modules/open (configure.ac): Likewise.
22930         * modules/stdlib-safer (configure.ac): Likewise.
22931
22932 2010-03-27  Bruno Haible  <bruno@clisp.org>
22933
22934         Add a remark about certain modules.
22935         * modules/malloc (Comment): New section.
22936         * modules/realloc (Comment): Likewise.
22937         * modules/sigpipe (Comment): Likewise.
22938
22939 2010-03-27  Bruno Haible  <bruno@clisp.org>
22940
22941         Resolve conflict between the two kinds of module indicators.
22942         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22943         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22944         * modules/canonicalize (configure.ac): Invoke
22945         gl_MODULE_INDICATOR_FOR_TESTS.
22946         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22947         GNULIB_XYZ.
22948         * tests/test-dirent-c++.cc: Likewise.
22949         * tests/test-dirent-safer.c: Likewise.
22950         * tests/test-dup2.c: Likewise.
22951         * tests/test-fchdir.c: Likewise.
22952         * tests/test-fcntl-h-c++.cc: Likewise.
22953         * tests/test-getopt.c: Likewise.
22954         * tests/test-getopt.h: Likewise.
22955         * tests/test-langinfo-c++.cc: Likewise.
22956         * tests/test-locale-c++.cc: Likewise.
22957         * tests/test-math-c++.cc: Likewise.
22958         * tests/test-pty-c++.cc: Likewise.
22959         * tests/test-search-c++.cc: Likewise.
22960         * tests/test-signal-c++.cc: Likewise.
22961         * tests/test-spawn-c++.cc: Likewise.
22962         * tests/test-stdio-c++.cc: Likewise.
22963         * tests/test-stdlib-c++.cc: Likewise.
22964         * tests/test-string-c++.cc: Likewise.
22965         * tests/test-sys_ioctl-c++.cc: Likewise.
22966         * tests/test-sys_select-c++.cc: Likewise.
22967         * tests/test-sys_socket-c++.cc: Likewise.
22968         * tests/test-sys_stat-c++.cc: Likewise.
22969         * tests/test-sys_time-c++.cc: Likewise.
22970         * tests/test-time-c++.cc: Likewise.
22971         * tests/test-unistd-c++.cc: Likewise.
22972         * tests/test-wchar-c++.cc: Likewise.
22973         * tests/uninorm/test-u8-nfc.c: Likewise.
22974         * tests/uninorm/test-u8-nfd.c: Likewise.
22975         * tests/uninorm/test-u8-nfkc.c: Likewise.
22976         * tests/uninorm/test-u8-nfkd.c: Likewise.
22977         * tests/uninorm/test-u16-nfc.c: Likewise.
22978         * tests/uninorm/test-u16-nfd.c: Likewise.
22979         * tests/uninorm/test-u16-nfkc.c: Likewise.
22980         * tests/uninorm/test-u16-nfkd.c: Likewise.
22981         * tests/uninorm/test-u32-nfc.c: Likewise.
22982         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22983         * tests/uninorm/test-u32-nfd.c: Likewise.
22984         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22985         * tests/uninorm/test-u32-nfkc.c: Likewise.
22986         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22987         * tests/uninorm/test-u32-nfkd.c: Likewise.
22988         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22989         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22990
22991 2010-03-27  Bruno Haible  <bruno@clisp.org>
22992
22993         Distinguish two kinds of module indicators.
22994         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22995         gl_MODULE_INDICATOR.
22996         (gl_MODULE_INDICATOR): New macro.
22997         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22998         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22999         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23000         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23001         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23002         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23003         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23004         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23005         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23006         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23007         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23008         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23009         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23010         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23011         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23012         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23013         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
23014         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
23015         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
23016         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
23017         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
23018         * modules/cloexec (configure.ac): Likewise.
23019         * modules/getopt-gnu (configure.ac): Likewise.
23020         * modules/uninorm/u8-normalize (configure.ac): Likewise.
23021         * modules/uninorm/u16-normalize (configure.ac): Likewise.
23022         * modules/uninorm/u32-normalize (configure.ac): Likewise.
23023         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
23024
23025 2010-03-27  Bruno Haible  <bruno@clisp.org>
23026
23027         New module description field 'Comment'.
23028         * gnulib-tool: New option --extract-comment.
23029         (func_usage): Document it.
23030         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
23031         (func_get_comment): New function.
23032         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
23033
23034 2010-03-27  Bruno Haible  <bruno@clisp.org>
23035
23036         Addendum to 2010-02-07 commit.
23037         * gnulib-tool (func_usage): Document --extract-applicability option.
23038
23039 2010-03-27  Bruno Haible  <bruno@clisp.org>
23040
23041         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
23042         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
23043         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
23044         rather than link errors.
23045
23046 2010-03-27  Bruno Haible  <bruno@clisp.org>
23047
23048         Avoid side effects from tests-related modules on the compilation of lib.
23049         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
23050         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
23051         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
23052         parameter. Emit into AM_CPPFLAGS a definition of the designated C
23053         macro.
23054         (func_import): Define a witness macro. Assign it a value that depends
23055         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
23056         tests-related modules.
23057         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
23058         Reported by Jim Meyering.
23059
23060 2010-03-27  Bruno Haible  <bruno@clisp.org>
23061
23062         Factorize common .m4 code.
23063         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
23064         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
23065         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
23066         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
23067         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23068         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
23069         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
23070         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23071         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23072         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23073         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
23074         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23075         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23076         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23077         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23078         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
23079         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23080         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23082         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
23083         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
23084         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23085         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23086         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23087         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
23088         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
23089         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
23090         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
23091         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
23092         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
23093         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
23094         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
23095
23096 2010-03-27  Bruno Haible  <bruno@clisp.org>
23097
23098         Fix a compilation error on Cygwin with g++ >= 4.3.
23099         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
23100         if it is undefined or if we alias it to chmod.
23101         (lstat): Don't warn about the use of this function if it is undefined
23102         or if we alias it to stat.
23103         Reported by Simon Josefsson.
23104
23105 2010-03-27  Bruno Haible  <bruno@clisp.org>
23106
23107         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
23108         * modules/getlogin (configure.ac): Update.
23109
23110         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
23111         * modules/getlogin_r (configure.ac): Update.
23112
23113         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
23114         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
23115         * modules/inet_ntop (configure.ac): Update.
23116
23117         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
23118         * modules/inet_pton (configure.ac): Update.
23119
23120         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
23121         * modules/mbslen (configure.ac): Update.
23122
23123         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
23124         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
23125         * modules/forkpty (configure.ac): Update.
23126         * modules/openpty (configure.ac): Update.
23127
23128 2010-03-26  Simon Josefsson  <simon@josefsson.org>
23129
23130         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
23131         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
23132
23133 2010-03-25  Eric Blake  <eblake@redhat.com>
23134
23135         maint: use pragma consistently across replacement headers
23136         * lib/ctype.in.h (system_header): Hoist for consistent placement.
23137         * lib/dirent.in.h (system_header): Likewise.
23138         * lib/errno.in.h (system_header): Likewise.
23139         * lib/float.in.h (system_header): Likewise.
23140         * lib/getopt.in.h (system_header): Likewise.
23141         * lib/iconv.in.h (system_header): Likewise.
23142         * lib/inttypes.in.h (system_header): Likewise.
23143         * lib/langinfo.in.h (system_header): Likewise.
23144         * lib/locale.in.h (system_header): Likewise.
23145         * lib/math.in.h (system_header): Likewise.
23146         * lib/netdb.in.h (system_header): Likewise.
23147         * lib/netinet_in.in.h (system_header): Likewise.
23148         * lib/pty.in.h (system_header): Likewise.
23149         * lib/sched.in.h (system_header): Likewise.
23150         * lib/se-selinux.in.h (system_header): Likewise.
23151         * lib/search.in.h (system_header): Likewise.
23152         * lib/spawn.in.h (system_header): Likewise.
23153         * lib/stdarg.in.h (system_header): Likewise.
23154         * lib/stdint.in.h (system_header): Likewise.
23155         * lib/string.in.h (system_header): Likewise.
23156         * lib/strings.in.h (system_header): Likewise.
23157         * lib/sys_file.in.h (system_header): Likewise.
23158         * lib/sys_ioctl.in.h (system_header): Likewise.
23159         * lib/sys_socket.in.h (system_header): Likewise.
23160         * lib/sys_times.in.h (system_header): Likewise.
23161         * lib/sys_utsname.in.h (system_header): Likewise.
23162         * lib/sys_wait.in.h (system_header): Likewise.
23163         * lib/sysexits.in.h (system_header): Likewise.
23164         * lib/unistd.in.h (system_header): Likewise.
23165         * lib/wctype.in.h (system_header): Likewise.
23166
23167         arpa/inet: fix mingw compilation warning
23168         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
23169         Reported by Matthew Bolte.
23170
23171 2010-03-25  Bruno Haible  <bruno@clisp.org>
23172
23173         Avoid collision between gnulib wrapper and libintl wrapper.
23174         * lib/printf.c (printf): Don't define if a printf wrapper is already
23175         defined in intl/printf.c.
23176         Reported by Michel Boaventura <michel@michelboaventura.com>.
23177
23178 2010-03-25  Bruno Haible  <bruno@clisp.org>
23179
23180         Use ANSI C.
23181         * lib/readutmp.h (getutent): Provide ANSI C prototype.
23182
23183 2010-03-25  Bruno Haible  <bruno@clisp.org>
23184
23185         Minor formatting changes.
23186         * lib/acosl.c: Insert space before function argument list.
23187         * lib/argz.c: Likewise.
23188         * lib/asinl.c: Likewise.
23189         * lib/expl.c: Likewise.
23190         * lib/gen-uni-tables.c: Likewise.
23191         * lib/gettext.h: Likewise.
23192         * lib/glthread/lock.h: Likewise.
23193         * lib/tanl.c: Likewise.
23194         * lib/uniname/uniname.c: Likewise.
23195         * tests/test-idpriv-drop.c: Likewise.
23196         * tests/test-idpriv-droptemp.c: Likewise.
23197         * tests/test-lock.c: Likewise.
23198         * tests/test-tls.c: Likewise.
23199         * lib/argp-help.c: Insert space before function-like macro argument
23200         list.
23201         * lib/memcmp.c: Likewise.
23202         * tests/test-base64.c: Likewise.
23203         * lib/localename.c: Insert space before sizeof's argument list.
23204         * lib/safe-alloc.h: Likewise.
23205         * lib/file-set.h: Insert space before macro argument list.
23206         * tests/test-argp.c: Likewise.
23207         * lib/argp-namefrob.h: Insert space before function parameter list.
23208         * lib/getaddrinfo.c: Likewise.
23209         * lib/netdb.in.h: Likewise.
23210         * lib/parse-duration.h: Likewise.
23211         * lib/parse-duration.c: Likewise.
23212         * lib/poll.c: Likewise.
23213         * lib/select.c: Likewise.
23214         * lib/trim.h: Likewise.
23215         * tests/test-usleep.c: Likewise.
23216         * lib/ldexpl.c: Insert space before function parameter list and before
23217         function argument list.
23218         * lib/logl.c: Likewise.
23219         * lib/sqrtl.c: Likewise.
23220         * lib/trim.c: Likewise.
23221         * lib/cosl.c: Use GNU style indentation. Insert space before function
23222         argument list.
23223         * lib/sinl.c: Likewise.
23224         * lib/tsearch.c: Insert space after 'for'.
23225         Reported by Jim Meyering.
23226
23227 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
23228
23229         * maint.mk (sc_Wundef_boolean): Check for the presence of the
23230         config header before grepping, as it's not present before
23231         autoreconf/configure are run.  Reported by Simon Josefsson.
23232
23233 2010-03-23  Bruno Haible  <bruno@clisp.org>
23234
23235         pt_chown: Make it work with automake < 1.11.
23236         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
23237         Reported by Simon Josefsson.
23238
23239 2010-03-23  Bruno Haible  <bruno@clisp.org>
23240
23241         pt_chown: Don't depend on GPLed modules.
23242         * lib/pt_chown.c: Don't include idpriv.h.
23243         (main): Don't drop privileges.
23244         * modules/pt_chown (Depends-on): Remove idpriv-drop.
23245         Reported by Simon Josefsson.
23246
23247 2010-03-24  Simon Josefsson  <simon@josefsson.org>
23248
23249         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
23250         suggestions from karl@freefriends.org (Karl Berry).
23251
23252 2010-03-22  Eric Blake  <eblake@redhat.com>
23253
23254         gethostname: further tweaks
23255         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
23256         are overriding gethostname.
23257         Suggested by Bruno Haible.
23258
23259 2010-03-21  Bruno Haible  <bruno@clisp.org>
23260
23261         Fix comments.
23262         * lib/forkpty.c (rpl_forkpty): Fix comment.
23263         * lib/openpty.c (rpl_openpty): Likewise.
23264         Reported by Eric Blake.
23265
23266 2010-03-22  Eric Blake  <eblake@redhat.com>
23267
23268         gethostname: fix build on mingw
23269         * lib/unistd.in.h (includes): Work around fact that mingw
23270         <winsock2.h> re-includes <unistd.h>, by avoiding any
23271         redeclarations if we are being included by <winsock2.h>.
23272         Reported by Matthias Bolte.
23273
23274 2010-03-21  Bruno Haible  <bruno@clisp.org>
23275
23276         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23277         * lib/forkpty.c (forkpty): New replacement function, from glibc with
23278         modifications.
23279         * lib/pty.in.h (forkpty): Update declaration. Add comments.
23280         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
23281         provide the replacement.
23282         * modules/forkpty (Depends-on): Add openpty, login_tty.
23283         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
23284         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
23285         * doc/glibc-functions/forkpty.texi: More supported platforms.
23286         * config/srclist.txt: Add forkpty.c (commented).
23287
23288 2010-03-21  Bruno Haible  <bruno@clisp.org>
23289
23290         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
23291         (Makefile.am): Verify that PTY_LIB is defined.
23292
23293         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
23294
23295 2010-03-21  Bruno Haible  <bruno@clisp.org>
23296
23297         Tests for module 'login_tty'.
23298         * modules/login_tty-tests: New file.
23299         * tests/test-login_tty.c: New file.
23300
23301         New module 'login_tty'.
23302         * lib/login_tty.c: New file.
23303         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
23304         * modules/login_tty: New file.
23305         * doc/glibc-functions/login_tty.texi: Mention the new module.
23306
23307 2010-03-21  Bruno Haible  <bruno@clisp.org>
23308
23309         login_tty: Documentation.
23310         * doc/glibc-functions/login_tty.texi: New file.
23311         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
23312
23313 2010-03-21  Bruno Haible  <bruno@clisp.org>
23314
23315         pty: Consistent macro naming.
23316         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
23317         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
23318         * modules/pty (configure.ac): Update.
23319
23320 2010-03-21  Bruno Haible  <bruno@clisp.org>
23321
23322         Tests for openpty: Make stricter.
23323         * tests/test-openpty.c (main): Add test of canonical processing and
23324         erase.
23325         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
23326
23327         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23328         * lib/openpty.c (openpty): New replacement function.
23329         * lib/pty.in.h: Include <termios.h>.
23330         (openpty): Update declaration. Add comments.
23331         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
23332         is not declared, arrange to provide the replacement. Check for _getpty
23333         and posix_openpt.
23334         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
23335         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
23336         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
23337         * modules/pty-tests (test_pty_c___LDADD): New variable.
23338         * doc/glibc-functions/openpty.texi: More supported platforms.
23339
23340 2010-03-21  Bruno Haible  <bruno@clisp.org>
23341
23342         setenv: Tweaks.
23343         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
23344         the test program.
23345         * doc/posix-functions/setenv.texi: Update platforms list.
23346
23347 2010-03-21  Bruno Haible  <bruno@clisp.org>
23348
23349         New module 'unlockpt'.
23350         * lib/unlockpt.c: New file, from glibc with modifications.
23351         * m4/unlockpt.m4: New file.
23352         * modules/unlockpt: New file.
23353         * lib/stdlib.in.h (unlockpt): New declaration.
23354         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
23355         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
23356         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
23357         HAVE_UNLOCKPT.
23358         * doc/posix-functions/unlockpt.texi: Mention the new module.
23359         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
23360         * config/srclist.txt: Add unlockpt.c (commented).
23361
23362 2010-03-21  Jim Meyering  <meyering@redhat.com>
23363
23364         maint.mk: prohibit inclusion of "intprops.h" without use
23365         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
23366
23367 2010-03-21  Bruno Haible  <bruno@clisp.org>
23368
23369         New module 'grantpt'.
23370         * lib/grantpt.c: New file, from glibc with modifications.
23371         * m4/grantpt.m4: New file.
23372         * modules/grantpt: New file.
23373         * lib/stdlib.in.h (grantpt): New declaration.
23374         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
23375         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
23376         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
23377         HAVE_GRANTPT.
23378         * doc/posix-functions/grantpt.texi: Mention the new module.
23379         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
23380         * config/srclist.txt: Add grantpt.c (commented).
23381
23382 2010-03-21  Bruno Haible  <bruno@clisp.org>
23383
23384         New module 'pt_chown'.
23385         * lib/pt_chown.c: New file, from glibc with modifications.
23386         * lib/pty-private.h: New file, from glibc with modifications.
23387         * modules/pt_chown: New file.
23388         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
23389
23390 2010-03-21  Bruno Haible  <bruno@clisp.org>
23391
23392         Tests for module 'ptsname'.
23393         * modules/ptsname-tests: New file.
23394         * tests/test-ptsname.c: New file.
23395
23396         New module 'ptsname'.
23397         * lib/ptsname.c: New file, from glibc with modifications.
23398         * m4/ptsname.m4: New file.
23399         * modules/ptsname: New file.
23400         * lib/stdlib.in.h (ptsname): New declaration.
23401         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
23402         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
23403         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
23404         HAVE_PTSNAME.
23405         * doc/posix-functions/ptsname.texi: Mention the new module.
23406         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
23407         * config/srclist.txt: Add ptsname.c (commented).
23408
23409 2010-03-21  Bruno Haible  <bruno@clisp.org>
23410
23411         Tests for module 'ttyname_r'.
23412         * modules/ttyname_r-tests: New file.
23413         * tests/test-ttyname_r.c: New file.
23414
23415         New module 'ttyname_r'.
23416         * lib/ttyname_r.c: New file.
23417         * m4/ttyname_r.m4: New file.
23418         * modules/ttyname_r: New file.
23419         * lib/unistd.in.h (ttyname_r): New declaration.
23420         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
23421         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
23422         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
23423         HAVE_TTYNAME_R.
23424         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
23425         * doc/posix-functions/ttyname_r.texi: Mention the new module.
23426
23427 2010-03-20  Bruno Haible  <bruno@clisp.org>
23428
23429         signal: Undefine macro definitions in C++ mode.
23430         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
23431         sigfillset): Undefine macro definitions from the system header in C++
23432         mode.
23433         Reported by John W. Eaton <jwe@gnu.org>.
23434
23435 2010-03-20  Bruno Haible  <bruno@clisp.org>
23436
23437         Ensure no #include statements inside extern "C" { ... }.
23438         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
23439         contain #include statements.
23440         * lib/time.in.h: Likewise.
23441
23442 2010-03-20  Bruno Haible  <bruno@clisp.org>
23443
23444         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
23445         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
23446         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
23447         Reported by John W. Eaton <jwe@gnu.org>.
23448
23449 2010-03-20  Bruno Haible  <bruno@clisp.org>
23450
23451         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
23452         Reported by Jim Meyering.
23453
23454 2010-03-20  Bruno Haible  <bruno@clisp.org>
23455
23456         pipe: Set errno upon failure.
23457         * lib/pipe.h: Specify that when -1 is returned, errno is set.
23458         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
23459         errno value in error message.
23460
23461 2010-03-20  Bruno Haible  <bruno@clisp.org>
23462             Jim Meyering  <meyering@redhat.com>
23463
23464         lchown: Avoid "unused variable" warning.
23465         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
23466
23467 2010-03-20  Bruno Haible  <bruno@clisp.org>
23468
23469         Work around unlink() bug on MacOS X 10.5.6.
23470         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
23471         attempting to unlink a parent directory.
23472         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
23473         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
23474         activate for the replacement function.
23475         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
23476
23477 2010-03-20  Bruno Haible  <bruno@clisp.org>
23478
23479         Fix link errors on Solaris 8.
23480         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
23481         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
23482
23483 2010-03-19  Jim Meyering  <meyering@redhat.com>
23484
23485         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
23486         The _LIBC implementation of build_range_exp correctly honors the
23487         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
23488         However, the non-_LIBC implementation would ignore that syntax-bit
23489         flag and return REG_ERANGE unconditionally.
23490         This change makes it honor that flag.
23491         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
23492         Make two pointer parameters "const".
23493         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
23494         (parse_bracket_exp): Update caller.
23495
23496         regex.m4: correct the reversed range endpoint ([b-a]) test
23497         * m4/regex.m4: When requiring that [b-a] evoke failure,
23498         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
23499         test pass once again for x86-based systems.
23500
23501 2010-03-19  Bruno Haible  <bruno@clisp.org>
23502
23503         scandir: Fix link error on Solaris 8.
23504         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
23505         macros.
23506
23507 2010-03-19  Bruno Haible  <bruno@clisp.org>
23508
23509         getusershell: Fix documentation.
23510         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
23511         module.
23512         * doc/glibc-functions/setusershell.texi: Likewise.
23513
23514         getusershell: Provide declaration, missing on Solaris 9.
23515         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
23516         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
23517         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
23518         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
23519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23520         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
23521         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
23522         HAVE_GETUSERSHELL.
23523         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
23524
23525 2010-03-19  Bruno Haible  <bruno@clisp.org>
23526
23527         wctype: Provide iswblank function.
23528         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
23529         exists and is fine.
23530         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
23531         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
23532         * tests/test-wctype.c (main): Re-enable the iswblank tests.
23533         * doc/posix-functions/iswblank.texi: Update.
23534
23535 2010-03-19  Bruno Haible  <bruno@clisp.org>
23536
23537         Tests of module 'pty' in C++ mode.
23538         * modules/pty-tests: New file.
23539         * tests/test-pty-c++.cc: New file.
23540         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23541
23542 2010-03-19  Eric Blake  <eblake@redhat.com>
23543
23544         logb: fix documentation
23545         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
23546         1.5 declaration bug.
23547
23548         forkpty, openpty: prefer glibc's const-safe prototype
23549         * lib/forkpty.c (rpl_forkpty): New file.
23550         * lib/openpty.c (rpl_openpty): Likewise.
23551         * modules/forkpty (Files): Distribute it.
23552         * modules/openpty (Files): Likewise.
23553         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
23554         check...
23555         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
23556         replacement for for non-const BSD signature.
23557         * modules/pty (Makefile.am): Substitute witnesses.
23558         * lib/pty.in.h (forkpty, openpty): Declare replacements.
23559         * tests/test-forkpty.c: Update signature check.
23560         * tests/test-openpty.c: Likewise.
23561         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
23562         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23563
23564         forkpty, openpty: split functions into new modules
23565         * modules/pty (Makefile.am): Substitute new witnesses.
23566         (Libraries): Move library detection...
23567         * modules/forkpty: ...into new module.
23568         * modules/openpty: Another new module.
23569         * modules/pty-tests: Rename and split...
23570         * modules/forkpty-tests: ...to this...
23571         * modules/openpty-tests: ...and this.
23572         * tests/test-pty.c: Rename and split...
23573         * tests/test-forkpty.c: ...to this...
23574         * tests/test-openpty.c: ...and this.
23575         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
23576         (gl_PTY): Split library searching...
23577         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
23578         (gl_FORKPTY, gl_OPENPTY): New macros.
23579         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
23580         * NEWS: Mention the split.
23581         * MODULES.html.sh (Misc): Document the modules.
23582         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
23583         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23584
23585         pty: improve replacement header
23586         * lib/pty.in.h: New file.
23587         * modules/pty (Files): Ship it.
23588         (Makefile.am): Always build replacement.
23589         * m4/pty.m4: Rename...
23590         * m4/pty_h.m4: ...to this.
23591         (gl_PTY): Modernize setting of witness macros; update check of
23592         forkpty to take proper advantage of cache.
23593         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
23594
23595         getopt: avoid compiler warning
23596         * lib/getopt.c (attribute_hidden): Remove unused macro.
23597
23598 2010-03-18  Bruno Haible  <bruno@clisp.org>
23599
23600         Fix link errors on Solaris 8.
23601         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
23602         * modules/search-tests (test_search_c___LDADD): Likewise.
23603         * modules/signal-tests (test_signal_c___LDADD): Likewise.
23604         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
23605         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
23606         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
23607         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
23608         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
23609         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
23610
23611 2010-03-18  Bruno Haible  <bruno@clisp.org>
23612
23613         Fix bug introduced on 2010-03-14.
23614         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
23615         (gl_SPAWN_H): Require it.
23616         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
23617         Reported by Simon Josefsson.
23618
23619 2010-03-18  Bruno Haible  <bruno@clisp.org>
23620
23621         Fix typo introduced on 2009-12-31.
23622         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
23623         posix_spawn_file_actions_adddup2.
23624
23625 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
23626         and Eric Blake  <eblake@redhat.com>
23627
23628         test-vc-list-files-git: make more robust
23629         * tests/test-vc-list-files-git.sh: Unset problematic environment
23630         variables.  Chain commands together.
23631
23632 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
23633
23634         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
23635         `AC_CHECK_DECL' invocation.
23636
23637 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
23638
23639         * lib/inttostr.c (inttostr): Make sure the invocation of verify
23640         appears before executable statements. Suggested by Petr Sumbera
23641         <Petr.Sumbera@Sun.COM>.
23642
23643 2010-03-14  Bruno Haible  <bruno@clisp.org>
23644
23645         * tests/test-flock.c (test_exclusive): Comment out a test that causes
23646         portability problems. Instead use a simpler test.
23647         (main): Check that invalid arguments are rejected only on Linux.
23648
23649 2010-03-14  Bruno Haible  <bruno@clisp.org>
23650
23651         Fix bug introduced on 2009-12-31.
23652         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23653         gl_PREREQ_SYS_H_WINSOCK2 always.
23654         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
23655         SYS_SOCKET_H variable.
23656         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
23657         Update comments.
23658         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
23659         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23660         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23661         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23662         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
23663
23664 2010-03-14  Bruno Haible  <bruno@clisp.org>
23665
23666         Fix values returned by sinl, cosl.
23667         * lib/trigl.h: Add specification comments.
23668         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
23669         that combines the values from the precomputed table with the values of
23670         the Chebyshev polynomials.
23671
23672 2010-03-14  Bruno Haible  <bruno@clisp.org>
23673
23674         Fix compilation error when modules 'posix_spawn[p]' are not used.
23675         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
23676         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
23677
23678 2010-03-14  Bruno Haible  <bruno@clisp.org>
23679
23680         Fix compilation error on mingw when module 'time_r' is not used.
23681         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
23682         is 1.
23683         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
23684         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23685         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
23686         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
23687
23688 2010-03-14  Bruno Haible  <bruno@clisp.org>
23689
23690         Fix compilation error with Sun C.
23691         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
23692         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
23693         instead of GCC specific ULONG_LONG_MAX.
23694         * lib/xstrtoll.c: Likewise.
23695         * lib/xstrtoull.c: Likewise.
23696
23697 2010-03-13  Bruno Haible  <bruno@clisp.org>
23698
23699         Allow the user to disable C++ code and tests.
23700         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
23701         (gl_PROG_ANSI_CXX): Require it.
23702
23703 2010-03-13  Bruno Haible  <bruno@clisp.org>
23704
23705         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
23706         cases.
23707
23708 2010-03-13  Bruno Haible  <bruno@clisp.org>
23709
23710         Test that gnulib does not break the standard C++ headers.
23711         * tests/test-locale-c++2.cc: New file.
23712         * modules/locale-tests (Files): Add it.
23713         (Makefile.am): Compile it for test-locale-c++.
23714         * tests/test-math-c++2.cc: New file.
23715         * modules/math-tests (Files): Add it.
23716         (Makefile.am): Compile it for test-math-c++.
23717         * tests/test-signal-c++2.cc: New file.
23718         * modules/signal-tests (Files): Add it.
23719         (Makefile.am): Compile it for test-signal-c++.
23720         * tests/test-stdio-c++2.cc: New file.
23721         * modules/stdio-tests (Files): Add it.
23722         (Makefile.am): Compile it for test-stdio-c++.
23723         * tests/test-stdlib-c++2.cc: New file.
23724         * modules/stdlib-tests (Files): Add it.
23725         (Makefile.am): Compile it for test-stdlib-c++.
23726         * tests/test-string-c++2.cc: New file.
23727         * modules/string-tests (Files): Add it.
23728         (Makefile.am): Compile it for test-string-c++.
23729         * tests/test-time-c++2.cc: New file.
23730         * modules/time-tests (Files): Add it.
23731         (Makefile.am): Compile it for test-time-c++.
23732         Reported by John W. Eaton <jwe@gnu.org>.
23733
23734 2010-03-13  Bruno Haible  <bruno@clisp.org>
23735
23736         * gnulib-tool (func_usage): Clarify which options are available for
23737         --create-testdir and --create-megatestdir.
23738
23739 2010-03-13  Bruno Haible  <bruno@clisp.org>
23740
23741         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
23742         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
23743         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
23744         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23745         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
23746         when appropriate.
23747         Reported by Jim Meyering.
23748
23749 2010-03-12  Simon Josefsson  <simon@josefsson.org>
23750
23751         * gnulib-tool (func_import): Explain origin of code.
23752
23753 2010-03-12  Bruno Haible  <bruno@clisp.org>
23754
23755         Fix problem with automake's definition of CXXLINK.
23756         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
23757         Reported by Simon Josefsson and Ludovic Courtès.
23758
23759 2010-03-12  Bruno Haible  <bruno@clisp.org>
23760
23761         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
23762         stable releases.
23763
23764 2010-03-11  Bruno Haible  <bruno@clisp.org>
23765
23766         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
23767         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
23768         whether the system provides one variant or multiple variants of the
23769         function.
23770         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
23771         C++ compilers.
23772         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
23773         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
23774         Reported by Jim Meyering.
23775
23776 2010-03-09  Simon Josefsson  <simon@josefsson.org>
23777
23778         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
23779
23780 2010-03-08  Bruno Haible  <bruno@clisp.org>
23781
23782         gnulib-tool: Add support for --libtool in --create-testdir.
23783         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
23784         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
23785
23786 2010-03-08  Eric Blake  <eblake@redhat.com>
23787
23788         gnulib-tool.texi: mention possibility of git submodule
23789         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
23790         submodules.
23791         * doc/.gitignore: Ignore another generated file.
23792
23793 2010-03-08  Karl Berry  <karl@gnu.org>
23794
23795         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23796         of committing gnulib files while skipping others.
23797
23798 2010-03-07  Bruno Haible  <bruno@clisp.org>
23799
23800         Tests of module 'wctype' in C++ mode.
23801         * tests/test-wctype-c++.cc: New file.
23802         * modules/wctype-tests (Files): Add it and tests/signature.h.
23803         (Depends-on): Add ansi-c++-opt.
23804         (Makefile.am): Arrange to compile and run test-wctype-c++.
23805
23806         Tests of module 'wchar' in C++ mode.
23807         * tests/test-wchar-c++.cc: New file.
23808         * modules/wchar-tests (Files): Add it and tests/signature.h.
23809         (Depends-on): Add ansi-c++-opt.
23810         (Makefile.am): Arrange to compile and run test-wchar-c++.
23811         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23812         gl_MODULE_INDICATOR.
23813
23814         Tests of module 'unistd' in C++ mode.
23815         * tests/test-unistd-c++.cc: New file.
23816         * modules/unistd-tests (Files): Add it and tests/signature.h.
23817         (Depends-on): Add ansi-c++-opt.
23818         (Makefile.am): Arrange to compile and run test-unistd-c++.
23819         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23820         gl_MODULE_INDICATOR.
23821
23822         Tests of module 'time' in C++ mode.
23823         * tests/test-time-c++.cc: New file.
23824         * modules/time-tests (Files): Add it and tests/signature.h.
23825         (Depends-on): Add ansi-c++-opt.
23826         (Makefile.am): Arrange to compile and run test-time-c++.
23827         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23828
23829         Tests of module 'sys_time' in C++ mode.
23830         * tests/test-sys_time-c++.cc: New file.
23831         * modules/sys_time-tests (Files): Add it and tests/signature.h.
23832         (Depends-on): Add ansi-c++-opt.
23833         (Makefile.am): Arrange to compile and run test-sys_time-c++.
23834         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
23835         gl_MODULE_INDICATOR.
23836
23837         Tests of module 'sys_stat' in C++ mode.
23838         * tests/test-sys_stat-c++.cc: New file.
23839         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
23840         (Depends-on): Add ansi-c++-opt.
23841         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
23842         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
23843         gl_MODULE_INDICATOR.
23844
23845         Tests of module 'sys_socket' in C++ mode.
23846         * tests/test-sys_socket-c++.cc: New file.
23847         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
23848         (Depends-on): Add ansi-c++-opt.
23849         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
23850         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
23851         gl_MODULE_INDICATOR.
23852
23853         Tests of module 'sys_select' in C++ mode.
23854         * tests/test-sys_select-c++.cc: New file.
23855         * modules/sys_select-tests (Files): Add it and tests/signature.h.
23856         (Depends-on): Add ansi-c++-opt.
23857         (Makefile.am): Arrange to compile and run test-sys_select-c++.
23858         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
23859         gl_MODULE_INDICATOR.
23860
23861         Tests of module 'sys_ioctl' in C++ mode.
23862         * tests/test-sys_ioctl-c++.cc: New file.
23863         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
23864         (Depends-on): Add ansi-c++-opt.
23865         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
23866         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
23867         gl_MODULE_INDICATOR.
23868
23869         Tests of module 'string' in C++ mode.
23870         * tests/test-string-c++.cc: New file.
23871         * modules/string-tests (Files): Add it and tests/signature.h.
23872         (Depends-on): Add ansi-c++-opt.
23873         (Makefile.am): Arrange to compile and run test-string-c++.
23874         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
23875         gl_MODULE_INDICATOR.
23876
23877         Tests of module 'stdlib' in C++ mode.
23878         * tests/test-stdlib-c++.cc: New file.
23879         * modules/stdlib-tests (Files): Add it and tests/signature.h.
23880         (Depends-on): Add ansi-c++-opt.
23881         (Makefile.am): Arrange to compile and run test-stdlib-c++.
23882         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
23883         gl_MODULE_INDICATOR.
23884
23885         Tests of module 'stdio' in C++ mode.
23886         * tests/test-stdio-c++.cc: New file.
23887         * modules/stdio-tests (Files): Add it and tests/signature.h.
23888         (Depends-on): Add ansi-c++-opt.
23889         (Makefile.am): Arrange to compile and run test-stdio-c++.
23890         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23891         gl_MODULE_INDICATOR.
23892
23893         Tests of module 'spawn' in C++ mode.
23894         * tests/test-spawn-c++.cc: New file.
23895         * modules/spawn-tests (Files): Add it and tests/signature.h.
23896         (Depends-on): Add ansi-c++-opt.
23897         (Makefile.am): Arrange to compile and run test-spawn-c++.
23898         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23899         gl_MODULE_INDICATOR.
23900
23901         Tests of module 'signal' in C++ mode.
23902         * tests/test-signal-c++.cc: New file.
23903         * modules/signal-tests (Files): Add it and tests/signature.h.
23904         (Depends-on): Add ansi-c++-opt.
23905         (Makefile.am): Arrange to compile and run test-signal-c++.
23906         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23907         gl_MODULE_INDICATOR.
23908
23909         Tests of module 'search' in C++ mode.
23910         * tests/test-search-c++.cc: New file.
23911         * modules/search-tests (Files): Add it and tests/signature.h.
23912         (Depends-on): Add ansi-c++-opt.
23913         (Makefile.am): Arrange to compile and run test-search-c++.
23914         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23915         gl_MODULE_INDICATOR.
23916
23917         Tests of module 'math' in C++ mode.
23918         * tests/test-math-c++.cc: New file.
23919         * modules/math-tests (Files): Add it and tests/signature.h.
23920         (Depends-on): Add ansi-c++-opt.
23921         (Makefile.am): Arrange to compile and run test-math-c++.
23922         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23923
23924         Tests of module 'locale' in C++ mode.
23925         * tests/test-locale-c++.cc: New file.
23926         * modules/locale-tests (Files): Add it and tests/signature.h.
23927         (Depends-on): Add ansi-c++-opt.
23928         (Makefile.am): Arrange to compile and run test-locale-c++.
23929         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23930         gl_MODULE_INDICATOR.
23931
23932         Tests of module 'langinfo' in C++ mode.
23933         * tests/test-langinfo-c++.cc: New file.
23934         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23935         (Depends-on): Add ansi-c++-opt.
23936         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23937         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23938         gl_MODULE_INDICATOR.
23939
23940         Tests of module 'iconv-h' in C++ mode.
23941         * tests/test-iconv-h-c++.cc: New file.
23942         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23943         (Depends-on): Add ansi-c++-opt.
23944         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23945
23946         Tests of module 'glob' in C++ mode.
23947         * tests/test-glob-c++.cc: New file.
23948         * modules/glob-tests (Files): Add it.
23949         (Depends-on): Add ansi-c++-opt.
23950         (Makefile.am): Arrange to compile and run test-glob-c++.
23951
23952         Tests of module 'fcntl-h' in C++ mode.
23953         * tests/test-fcntl-h-c++.cc: New file.
23954         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23955         (Depends-on): Add ansi-c++-opt.
23956         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23957         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23958         gl_MODULE_INDICATOR.
23959
23960         Tests of module 'dirent' in C++ mode.
23961         * tests/test-dirent-c++.cc: New file.
23962         * modules/dirent-tests (Files): Add it and tests/signature.h.
23963         (Depends-on): Add ansi-c++-opt.
23964         (Makefile.am): Arrange to compile and run test-dirent-c++.
23965         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23966         gl_MODULE_INDICATOR.
23967
23968         New module 'ansi-c++-opt'.
23969         * modules/ansi-c++-opt: New file.
23970         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23971
23972         Document C++ namespace mode.
23973         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23974
23975         wctype: Avoid #define replacements in C++ mode.
23976         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23977         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23978         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23979         In C++, define a namespaced alias symbol.
23980         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23981         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23982         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23983         rule.
23984
23985         wchar: Avoid #define replacements in C++ mode.
23986         * lib/wchar.in.h: Include c++defs.h.
23987         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23988         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23989         symbol.
23990         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23991         * modules/wchar (Depends-on): Add c++defs.
23992         (Makefile.am): Update wchar.h rule.
23993
23994         unistd: Avoid #define replacements in C++ mode.
23995         * lib/unistd.in.h: Include c++defs.h.
23996         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23997         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23998         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23999         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
24000         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
24001         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
24002         symbol.
24003         (environ): Update.
24004         * modules/unistd (Depends-on): Add c++defs.
24005         (Makefile.am): Update unistd.h rule.
24006
24007         time: Avoid #define replacements in C++ mode.
24008         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
24009         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
24010         define a namespaced alias symbol.
24011         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
24012         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
24013         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
24014         * modules/time (Depends-on): Add c++defs, warn-on-use.
24015         (Makefile.am): Update time.h rule.
24016         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24017         * modules/nanosleep (configure.ac): Likewise.
24018         * modules/strptime (configure.ac): Likewise.
24019         * modules/timegm (configure.ac): Likewise.
24020
24021         sys_time: Avoid #define replacements in C++ mode.
24022         * lib/sys_time.in.h: Include c++defs.h.
24023         (gettimeofday): In C++, define a namespaced alias symbol.
24024         * modules/sys_time (Depends-on): Add c++defs.
24025         (Makefile.am): Update sys/time.h rule.
24026
24027         sys_stat: Avoid #define replacements in C++ mode.
24028         * lib/sys_stat.in.h: Include c++defs.h.
24029         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
24030         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
24031         namespaced alias symbol.
24032         In C++, define a namespaced alias symbol.
24033         * modules/sys_stat (Depends-on): Add c++defs.
24034         (Makefile.am): Update sys/stat.h rule.
24035
24036         sys_socket: Avoid #define replacements in C++ mode.
24037         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
24038         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
24039         definitions also when the system has a <sys/socket.h>.
24040         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24041         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
24042         In C++, define a namespaced alias symbol.
24043         * modules/sys_socket (Depends-on): Add c++defs.
24044         (Makefile.am): Update sys/socket.h rule.
24045
24046         sys_select: Avoid #define replacements in C++ mode.
24047         * lib/sys_select.in.h: Include c++defs.h. Enable the function
24048         definitions also when the system has a <sys/select.h>.
24049         (select): In C++, define a namespaced alias symbol.
24050         * modules/sys_select (Depends-on): Add c++defs.
24051         (Makefile.am): Update sys/select.h rule.
24052
24053         sys_ioctl: Avoid #define replacements in C++ mode.
24054         * lib/sys_ioctl.in.h: Include c++defs.h.
24055         (ioctl): In C++, define a namespaced alias symbol.
24056         * modules/sys_ioctl (Depends-on): Add c++defs.
24057         (Makefile.am): Update sys/ioctl.h rule.
24058
24059         string: Avoid #define replacements in C++ mode.
24060         * lib/string.in.h: Include c++defs.h.
24061         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
24062         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24063         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24064         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
24065         strsignal, strverscmp): In C++, define a namespaced alias symbol.
24066         * modules/string (Depends-on): Add c++defs.
24067         (Makefile.am): Update string.h rule.
24068
24069         stdlib: Avoid #define replacements in C++ mode.
24070         * lib/stdlib.in.h: Include c++defs.h.
24071         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
24072         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
24073         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
24074         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
24075         symbol.
24076         * modules/stdlib (Depends-on): Add c++defs.
24077         (Makefile.am): Update stdlib.h rule.
24078
24079         stdio: Avoid #define replacements in C++ mode.
24080         * lib/stdio.in.h: Include c++defs.h.
24081         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
24082         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
24083         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
24084         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
24085         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
24086         namespaced alias symbol.
24087         * modules/stdio (Depends-on): Add c++defs.
24088         (Makefile.am): Update stdio.h rule.
24089
24090         spawn: Avoid #define replacements in C++ mode.
24091         * lib/spawn.in.h: Include c++defs.h.
24092         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24093         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24094         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24095         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24096         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24097         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24098         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24099         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24100         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24101         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24102         In C++, define a namespaced alias symbol.
24103         * modules/spawn (Depends-on): Add c++defs.
24104         (Makefile.am): Update spawn.h rule.
24105
24106         signal: Avoid #define replacements in C++ mode.
24107         * lib/signal.in.h: Include c++defs.h.
24108         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24109         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
24110         namespaced alias symbol.
24111         * modules/signal (Depends-on): Add c++defs.
24112         (Makefile.am): Update signal.h rule.
24113
24114         search: Avoid #define replacements in C++ mode.
24115         * lib/search.in.h: Include c++defs.h.
24116         (_gl_search_compar_fn, _gl_search_action_fn): New types.
24117         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
24118         symbol.
24119         * modules/search (Depends-on): Add c++defs.
24120         (Makefile.am): Update search.h rule.
24121
24122         math: Avoid #define replacements in C++ mode.
24123         * lib/math.in.h: Include c++defs.h.
24124         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
24125         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
24126         trunc, truncl): In C++, define a namespaced alias symbol.
24127         * modules/math (Depends-on): Add c++defs.
24128         (Makefile.am): Update math.h rule.
24129
24130         locale: Avoid #define replacements in C++ mode.
24131         * lib/locale.in.h: Include c++defs.h.
24132         (duplocale): In C++, define a namespaced alias symbol.
24133         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
24134         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
24135         * modules/locale (Depends-on): Add c++defs.
24136         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
24137
24138         langinfo: Avoid #define replacements in C++ mode.
24139         * lib/langinfo.in.h: Include c++defs.h.
24140         (nl_langinfo): In C++, define a namespaced alias symbol.
24141         * modules/langinfo (Depends-on): Add c++defs.
24142         (Makefile.am): Update langinfo.h rule.
24143
24144         iconv-h: Avoid #define replacements in C++ mode.
24145         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
24146         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
24147         symbol.
24148         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
24149         whenever iconv is present.
24150         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
24151         (Makefile.am): Update iconv.h rule.
24152
24153         glob: Avoid #define replacements in C++ mode.
24154         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
24155         (_gl_glob_errfunc_fn): New type.
24156         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
24157         symbol.
24158         * modules/glob (Depends-on): Add c++defs, warn-on-use.
24159         (Makefile.am): Update glob.h rule.
24160
24161         fcntl-h: Avoid #define replacements in C++ mode.
24162         * lib/fcntl.in.h: Include c++defs.h.
24163         (fcntl, open, openat): In C++, define a namespaced alias symbol.
24164         * modules/fcntl-h (Depends-on): Add c++defs.
24165         (Makefile.am): Update fcntl.h rule.
24166
24167         dirent: Avoid #define replacements in C++ mode.
24168         * lib/dirent.in.h: Include c++defs.h.
24169         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
24170         namespaced alias symbol.
24171         (dirfd): Update declaration.
24172         * modules/dirent (Depends-on): Add c++defs.
24173         (Makefile.am): Update dirent.h rule.
24174
24175         ctype: Make it usable in C++ code.
24176         * lib/ctype.in.h: Include c++defs.h.
24177         (isblank): Declare as extern "C".
24178         * modules/ctype (Depends-on): Add c++defs.
24179         (Makefile.am): Update ctype.h rule.
24180
24181         New module 'c++defs'.
24182         * modules/c++defs: New file.
24183         * build-aux/c++defs.h: New file.
24184         Reported by John W. Eaton <jwe@gnu.org>.
24185
24186 2010-03-07  Bruno Haible  <bruno@clisp.org>
24187
24188         logb: Provide missing declaration for Cygwin.
24189         * lib/math.in.h (logb): New declaration.
24190         * m4/logb.m4: New file.
24191         * modules/logb (Files): Add m4/logb.m4.
24192         (Depends-on): Add math.
24193         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
24194         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
24195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
24196         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
24197         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
24198
24199 2010-03-07  Bruno Haible  <bruno@clisp.org>
24200
24201         Fix test-cond link error.
24202         * tests/test-cond.c: Include <stdio.h>.
24203
24204 2010-03-07  Bruno Haible  <bruno@clisp.org>
24205
24206         Fix test-dirent-safer link error.
24207         * modules/dirent-safer-tests (Makefile.am): Define
24208         test_dirent_safer_LDADD.
24209
24210 2010-03-07  Bruno Haible  <bruno@clisp.org>
24211
24212         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
24213         among default module list.
24214
24215 2010-03-07  Bruno Haible  <bruno@clisp.org>
24216
24217         Fix link error on platforms with GNU libiconv.
24218         * modules/unistr/u8-strcoll-tests (Makefile): Define
24219         test_u8_strcoll_LDADD.
24220         * modules/unistr/u16-strcoll-tests (Makefile): Define
24221         test_u16_strcoll_LDADD.
24222         * modules/unistr/u32-strcoll-tests (Makefile): Define
24223         test_u32_strcoll_LDADD.
24224
24225 2010-03-07  Bruno Haible  <bruno@clisp.org>
24226
24227         Use POSIX declarations for socket functions.
24228         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
24229         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
24230         rpl_sendto): Change declaration to match POSIX.
24231         * lib/connect.c (rpl_connect): Likewise.
24232         * lib/accept.c (rpl_accept): Likewise.
24233         * lib/bind.c (rpl_bind): Likewise.
24234         * lib/getpeername.c (rpl_getpeername): Likewise.
24235         * lib/getsockname.c (rpl_getsockname): Likewise.
24236         * lib/recv.c (rpl_recv): Likewise.
24237         * lib/send.c (rpl_send): Likewise.
24238         * lib/recvfrom.c (rpl_recvfrom): Likewise.
24239         * lib/sendto.c (rpl_sendto): Likewise.
24240
24241 2010-03-06  Bruno Haible  <bruno@clisp.org>
24242
24243         Clarify access, euidaccess, faccessat.
24244         * doc/posix-functions/faccessat.texi: Mention security problem under
24245         "Other problems", not "Portability problems".
24246         * doc/posix-functions/access.texi: Likewise. Mention a related security
24247         problem.
24248         * doc/glibc-functions/euidaccess.texi: Mention security problems.
24249         * lib/euidaccess.c: Add comments about platforms.
24250         * lib/unistd.in.h (access, euidaccess): Add warnings.
24251
24252 2010-03-07  Bruno Haible  <bruno@clisp.org>
24253
24254         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
24255         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
24256         (POSIX_SPAWN_SETSCHEDULER): Likewise.
24257         (POSIX_SPAWN_USEVFORK): Define in a way that works when
24258         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24259         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
24260         declare when POSIX_SPAWN_SETSCHEDULER is zero.
24261         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
24262         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
24263         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
24264         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
24265         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
24266         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
24267         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
24268         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
24269         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
24270         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
24271         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
24272         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
24273         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
24274         Likewise.
24275         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
24276         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
24277         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
24278         Likewise.
24279         * tests/test-spawn.c (main): Make it work when
24280         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24281
24282 2010-03-07  Bruno Haible  <bruno@clisp.org>
24283
24284         Fix incorrect Makefile.am generation in German locale.
24285         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24286         Execute sed command with character range in C locale.
24287
24288 2010-03-06  Bruno Haible  <bruno@clisp.org>
24289
24290         Tests for module 'iconv-h'.
24291         * modules/iconv-h-tests: New file.
24292         * tests/test-iconv-h.c: New file.
24293
24294         New module 'iconv-h'.
24295         * modules/iconv-h: New file.
24296         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
24297         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
24298         (configure.ac): Remove gl_ICONV_H.
24299         (Makefile.am): Remove rule for iconv.h.
24300
24301 2010-03-06  Bruno Haible  <bruno@clisp.org>
24302
24303         More consistent naming of *.m4 files.
24304         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
24305         * modules/wctype (Files): Update.
24306
24307         More consistent naming of *.m4 files.
24308         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
24309         * modules/wchar (Files): Update.
24310
24311 2010-03-06  Jim Meyering  <meyering@redhat.com>
24312
24313         euidaccess: relax license to LGPLv2+
24314         * modules/euidaccess (License): Relax to LGPLv2+.
24315
24316 2010-03-06  Bruno Haible  <bruno@clisp.org>
24317
24318         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
24319         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
24320         (Makefile.am): Augment lib_SOURCES instead.
24321
24322 2010-03-04  Jim Meyering  <meyering@redhat.com>
24323
24324         utime: remove obsolete module
24325         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
24326         unnecessary for years, and has been marked as obsolete for 10 months.
24327         * modules/utime: Remove file.
24328         * lib/utime.c: Remove file.
24329         * m4/utime.m4: Remove file.
24330         * m4/utimes-null.m4: Remove file.
24331         * doc/posix-functions/utime.texi (utime): Remove reference to
24332         the module.  Move the sole "fixed by gnulib" item into the
24333         "problems not fixed by Gnulib" list.
24334         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
24335
24336 2010-03-05  Simon Josefsson  <simon@josefsson.org>
24337
24338         * modules/exit (License): Relax license to LGPLv2+.
24339         (Status): Mark as obsolete.
24340         * NEWS: Mention deprecated 'exit' module.
24341         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
24342         of now obsolete 'exit'.
24343
24344 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24345
24346         fts-lgpl: remove unused module
24347         * modules/fts-lgpl: Remove.
24348         * MODULES.html.sh (func_all_modules): Adjust.
24349         * check-module (find_included_lib_files): Adjust.
24350         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
24351
24352 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
24353
24354         copy-acl: enhance Solaris ACL error handling
24355         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
24356         * lib/set-mode-acl.c (qset_acl): Likewise.
24357
24358 2010-03-02  Bruno Haible  <bruno@clisp.org>
24359
24360         spawn: Don't override the system defined values on FreeBSD 8.
24361         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
24362         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
24363         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
24364         if HAVE_POSIX_SPAWN is 1.
24365         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
24366
24367 2010-03-01  Bruno Haible  <bruno@clisp.org>
24368
24369         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
24370         regarding Automake.
24371
24372 2010-02-25  Bruno Haible  <bruno@clisp.org>
24373
24374         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
24375         * gnulib-tool: Define 'echo' as a function only before the ksh alias
24376         setting, not afterwards.
24377         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
24378
24379 2010-02-24  Eric Blake  <eblake@redhat.com>
24380
24381         bootstrap, git-version-gen: use timestamp
24382         * build-aux/git-version-gen (scriptversion): Force UTC.
24383         * build-aux/bootstrap (scriptversion): New variable.
24384
24385         bootstrap: allow older git
24386         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
24387         older than 1.6.4.  Requested by the libvirt project.
24388
24389 2010-02-23  Eric Blake  <eblake@redhat.com>
24390
24391         warn-on-use: work with old autoconf
24392         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
24393         AS_VAR semantics of autoconf 2.60.
24394         Reported by Bruno Haible.
24395
24396         bootstrap: improve some comments
24397         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
24398         clarification comments.
24399
24400         gettimeofday: provide correct function
24401         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
24402         when replacement is declared, otherwise provide gettimeofday.
24403         Reported by Michael Goffioul.
24404
24405 2010-02-23  Jim Meyering  <meyering@redhat.com>
24406
24407         lib-ignore: relax license to "unlimited", not LGPLv2+
24408         * modules/lib-ignore (License): Relax to "unlimited".
24409
24410 2010-02-23  Jim Meyering  <meyering@redhat.com>
24411
24412         lib-ignore: relax license to LGPLv2+
24413         * modules/lib-ignore (License): Relax to LGPLv2+.
24414
24415 2010-02-22  Eric Blake  <eblake@redhat.com>
24416
24417         lseek: avoid bash 3.2 broken pipe bug
24418         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
24419         warning from bash 3.2.
24420         Reported by Ben Pfaff, with analysis from Bruno Haible.
24421
24422         bootstrap: support non-FSF copyright holder
24423         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
24424         bootstrap.conf override of COPYRIGHT_HOLDER.
24425         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
24426
24427         bootstrap: interoperate with gettext 0.14.1
24428         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
24429
24430         bootstrap: allow for alternate submodule location
24431         * build-aux/bootstrap (gnulib_path): New variable; use instead of
24432         hardcoding submodule location.
24433         (gnulib_mk): Allow direct use of Makefile.am.
24434
24435         bootstrap: use GNULIB_SRCDIR to reduce disk usage
24436         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
24437         rather than reconfiguring where the submodule points.
24438
24439         gettimeofday: restore support for platforms that lack function
24440         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
24441         replacement if function is missing.
24442         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
24443         * modules/sys_time (Makefile.am): Substitute it.
24444         * lib/sys_time.in.h (gettimeofday): Check it.
24445         Reported by Michael Goffioul.
24446
24447 2010-02-21  Bruno Haible  <bruno@clisp.org>
24448
24449         * lib/stdio.in.h (obstack_printf): Fix typo.
24450
24451 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
24452
24453         vc-list-files: use bzr ls's -R option
24454         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
24455         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
24456
24457 2010-02-21  Jim Meyering  <meyering@redhat.com>
24458
24459         init.sh: fix EXEEXT shims to work also for names like test-prog
24460         * tests/init.sh: Re-exec a better shell, when needed.
24461         If the current shell lacks support for posix $(...), an init.sh-using
24462         test will now try to find a shell that supports that.  If EXEEXT is
24463         nonempty, we also require support for hyphen-in-alias-name and shell
24464         substitutions like ${var#glob}.  Failure to find such a shell results
24465         in a skipped test.
24466
24467 2010-02-21  Bruno Haible  <bruno@clisp.org>
24468
24469         Really work around around "broken pipe" error message from bash 3.2.
24470         * gnulib-tool (func_reset_sigpipe): Remove function.
24471         (echo): In bash 3.2, define to a function that uses printf.
24472         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
24473
24474 2010-02-20  Bruno Haible  <bruno@clisp.org>
24475
24476         Restore support for automake 1.9.6 with autoconf 2.61.
24477         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
24478         Reported by James Youngman <jay@gnu.org>.
24479
24480 2010-02-20  Bruno Haible  <bruno@clisp.org>
24481
24482         Improve *printf warning condition.
24483         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
24484         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
24485         and the function is overridden due to SIGPIPE emulation.
24486
24487 2010-02-20  Bruno Haible  <bruno@clisp.org>
24488
24489         * lib/stdio.in.h: Tweak comments.
24490
24491 2010-02-19  Bruno Haible  <bruno@clisp.org>
24492
24493         Make it easier to find modules. New gnulib-tool option '--find'.
24494         * gnulib-tool: New option --find.
24495         (func_usage): Document it.
24496         (func_sanitize_modulelist): New function, extracted from
24497         func_all_modules.
24498         (func_all_modules): Invoke it.
24499         * doc/gnulib-tool.texi (Which modules?): New node.
24500
24501 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
24502
24503         * lib/sys_select.in.h: Provide select replacement even if
24504         sys/select.h exists on a system, for Interix.
24505
24506 2010-02-18  Jim Meyering  <meyering@redhat.com>
24507
24508         init.sh: don't use $(...) just yet
24509         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
24510         to accommodate e.g., Solaris' /bin/sh.
24511
24512 2010-02-17  Bruno Haible  <bruno@clisp.org>
24513
24514         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
24515         Reported by Ludovic Courtès <ludo@gnu.org>.
24516
24517 2010-02-16  Simon Josefsson  <simon@josefsson.org>
24518
24519         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
24520         linking with -lintl.
24521
24522 2010-02-17  Simon Josefsson  <simon@josefsson.org>
24523
24524         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
24525         if not provided by the system's netdb.h.  Reported by
24526         ludo@gnu.org (Ludovic Courtès).
24527
24528 2010-02-15  Jim Meyering  <meyering@redhat.com>
24529
24530         init.sh: improve portability and efficiency
24531         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
24532         "dummy" in a for loop.
24533         Use '!', not '^' to select the complement of a character set used
24534         in a "case" statement.
24535         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
24536         Suggestions from Eric Blake.
24537
24538         init.sh: automatically accommodate programs with the .exe suffix
24539         Automatically arrange for an invocation of "prog" to execute the
24540         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
24541         may use the simpler "prog", yet still work when built on a system
24542         that requires specifying the added suffix.
24543         Do this by constructing a function named "prog" that invokes
24544         "prog.exe" for each .exe file in selected directories.
24545         * tests/init.sh (find_exe_basenames_): New function.
24546         (create_exe_shim_functions_): New function.
24547         (path_prepend_): Use it.
24548
24549         maint.mk: mark syntax-check sc_*.m rules as .PHONY
24550         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
24551         "make -t syntax-check" doesn't create a ton of sc_*.m files.
24552
24553 2010-02-14  Jim Meyering  <meyering@redhat.com>
24554
24555         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
24556         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
24557         (sc_prohibit_hash_pjw_without_use): New rule.
24558
24559         maint.mk: allow the default upload destination dir to be overridden
24560         * top/maint.mk (upload_dest_dir_): Define with a default that
24561         preserves the status quo.
24562         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
24563         Reported by Peter Simons.
24564
24565         maint.mk: prohibit inclusion of "hash.h" without_use
24566         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
24567
24568 2010-02-10  Jim Meyering  <meyering@redhat.com>
24569
24570         maint.mk: prohibit inclusion of "ignore-value.h" without_use
24571         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
24572
24573 2010-02-09  Eric Blake  <ebb9@byu.net>
24574         and Bruno Haible  <bruno@clisp.org>
24575
24576         obstack-printf-posix: ensure declaration
24577         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
24578         extracted from gl_FUNC_OBSTACK_PRINTF.
24579         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
24580         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
24581         Likewise.
24582         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
24583         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
24584         0.
24585
24586 2010-02-08  Bruno Haible  <bruno@clisp.org>
24587
24588         gnulib-tool: Fix typo in 2010-02-07 commit.
24589         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
24590         Reported by Eric Blake.
24591
24592 2010-02-07  Bruno Haible  <bruno@clisp.org>
24593
24594         gnulib-tool: Fix up caching patches.
24595         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
24596         option --no-cache. Use associative arrays when supported by the shell.
24597         (sed_comments): New variable.
24598         (modcache): Renamed from do_cache.
24599         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
24600         abbreviate unnecessarily.
24601         (have_associative): New variable.
24602         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
24603         way also for ksh and zsh.
24604         (func_init_sed_convert_to_cache_statements): New function, extracted
24605         from func_cache_lookup_module. Add support for associative arrays.
24606         Don't set the c_MODULE_cached variable here. Ignore all lines before
24607         the first field header. Remove only the final newline, not all trailing
24608         newlines. Support empty fields correctly. Limit the use of 'eval' to
24609         assignments.
24610         (func_get_description, func_get_status, func_get_notice,
24611         func_get_applicability, func_get_filelist, func_get_dependencies,
24612         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
24613         func_get_automake_snippet, func_get_include_directive,
24614         func_get_link_directive, func_get_license, func_get_maintainer):
24615         Update documentation. List the unoptimized code first. Add support for
24616         associative arrays. Limit the use of 'eval' to assignments.
24617         (func_get_applicability): Undo stylistic pessimisations.
24618         (func_get_automake_snippet, func_get_include_directive): Reduce code
24619         duplication.
24620         (func_modules_transitive_closure, func_modules_add_dummy,
24621         func_modules_notice, func_modules_to_filelist, func_add_file,
24622         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
24623         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
24624         func_create_testdir, func_create_megatestdir): Update documentation.
24625
24626 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24627
24628         * gnulib-tool (func_cache_lookup_module): Store the module name
24629         belonging to the cache variable; error out if two different
24630         module names map to the same cache variable name.
24631
24632 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24633
24634         gnulib-tool: Make caching optional.
24635         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
24636         Update matching short versions of --no-changelog.
24637         (func_usage): Update.
24638         (sed_extract_cache_prog): Renamed from ...
24639         (sed_extract_prog): ... this; revert to old extraction script.
24640         (func_get_description, func_get_status)
24641         (func_get_notice, func_get_applicability, func_get_filelist)
24642         (func_get_dependencies, func_get_autoconf_early_snippet)
24643         (func_get_autoconf_snippet, func_get_automake_snippet)
24644         (func_get_include_directive, func_get_link_directive)
24645         (func_get_license, func_get_maintainer): If $do_cache is false,
24646         use old, non-caching extraction scripts.
24647         Suggestion by Bruno Haible.
24648
24649 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24650
24651         gnulib-tool: cache module metainformation.
24652         * gnulib-tool (sed_extract_prog): Match newline before each
24653         header, and rewrite header to a shell variable suffix.
24654         (func_cache_var, func_cache_lookup_module): New functions,
24655         to turn a module name into a cache variable prefix, and to
24656         look up and cache module metainformation.
24657         (func_get_description, func_get_status)
24658         (func_get_notice, func_get_applicability, func_get_filelist)
24659         (func_get_dependencies, func_get_autoconf_early_snippet)
24660         (func_get_autoconf_snippet, func_get_automake_snippet)
24661         (func_get_include_directive, func_get_link_directive)
24662         (func_get_license, func_get_maintainer): Use
24663         func_cache_lookup_module.
24664
24665 2010-02-07  Bruno Haible  <bruno@clisp.org>
24666
24667         fnctl: Fix missing dependency.
24668         * modules/fcntl (Depends-on): Add getdtablesize.
24669         Reported by John W. Eaton <jwe@gnu.org>.
24670
24671 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24672
24673         Argp: fix recognition of short alias options.
24674
24675         * lib/argp-parse.c (convert_options): Fix improper use of
24676         `|' between character values.
24677         * tests/test-argp.c (group1_option): New alias option
24678         --read (-r).
24679         (group1_parser): Special handling for 'r'.
24680         (test15): New test case.
24681         (test_fun): Add test15.
24682         * tests/test-argp-2.sh: Update expected --help and --usage
24683         outputs.
24684
24685 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24686
24687         * tests/test-argp.c: Fix indentation.
24688
24689 2010-02-04  Eric Blake  <ebb9@byu.net>
24690
24691         gettimeofday: expose type of second argument
24692         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
24693         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
24694         * tests/test-gettimeofday.c: Use it to silence warning.
24695         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
24696         the issue.
24697
24698 2010-02-03  Jim Meyering  <meyering@redhat.com>
24699
24700         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
24701         * lib/regcomp.c (TYPE_SIGNED): Define.
24702         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
24703
24704         regcomp.c: avoid a new -Wshadow warning
24705         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
24706
24707 2010-02-01  Jim Meyering  <meyering@redhat.com>
24708
24709         removing useless parentheses in cpp #define directives
24710         For motivation, see commit c0221df4, "define STREQ(a,b)
24711         consistently, removing useless parentheses"
24712         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
24713         * lib/mountlist.c (MNT_IGNORE): Likewise.
24714         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
24715
24716 2010-02-01  Eric Blake  <ebb9@byu.net>
24717
24718         sys_time: use link-warning
24719         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
24720         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
24721         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
24722         * modules/sys_time (Depends-on): Add warn-on-use.
24723         (Makefile.am): Always build replacement.
24724         (configure.ac): Update substitutions.
24725         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
24726         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
24727         bother with SYS_TIME_H.
24728         * modules/gettimeofday (configure.ac): Declare indicator.
24729         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
24730         in use.
24731
24732         closein-tests: silence compiler warning
24733         * tests/test-closein.c (main): Ignore fread result.
24734         * modules/closein-tests (Depends-on): Add ignore-value.
24735
24736         tests: silence warning about system return
24737         * tests/test-areadlink-with-size.c (main): Ignore system result.
24738         * tests/test-areadlink.c (main): Likewise.
24739         * tests/test-areadlinkat-with-size.c (main): Likewise.
24740         * tests/test-areadlinkat.c (main): Likewise.
24741         * tests/test-canonicalize-lgpl.c (main): Likewise.
24742         * tests/test-canonicalize.c (main): Likewise.
24743         * tests/test-chown.c (main): Likewise.
24744         * tests/test-fchownat.c (main): Likewise.
24745         * tests/test-fdutimensat.c (main): Likewise.
24746         * tests/test-fstatat.c (main): Likewise.
24747         * tests/test-futimens.c (main): Likewise.
24748         * tests/test-lchown.c (main): Likewise.
24749         * tests/test-link.c (main): Likewise.
24750         * tests/test-linkat.c (main): Likewise.
24751         * tests/test-lstat.c (main): Likewise.
24752         * tests/test-mkdir.c (main): Likewise.
24753         * tests/test-mkdirat.c (main): Likewise.
24754         * tests/test-mkfifo.c (main): Likewise.
24755         * tests/test-mkfifoat.c (main): Likewise.
24756         * tests/test-mknod.c (main): Likewise.
24757         * tests/test-readlink.c (main): Likewise.
24758         * tests/test-remove.c (main): Likewise.
24759         * tests/test-rename.c (main): Likewise.
24760         * tests/test-renameat.c (main): Likewise.
24761         * tests/test-rmdir.c (main): Likewise.
24762         * tests/test-symlink.c (main): Likewise.
24763         * tests/test-symlinkat.c (main): Likewise.
24764         * tests/test-unlink.c (main): Likewise.
24765         * tests/test-unlinkat.c (main): Likewise.
24766         * tests/test-utimens.c (main): Likewise.
24767         * tests/test-utimensat.c (main): Likewise.
24768         * modules/areadlink-tests (Depends-on): Add ignore-value.
24769         * modules/areadlink-with-size-tests (Depends-on): Likewise.
24770         * modules/areadlinkat-tests (Depends-on): Likewise.
24771         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
24772         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24773         * modules/canonicalize-tests (Depends-on): Likewise.
24774         * modules/chown-tests (Depends-on): Likewise.
24775         * modules/fdutimensat-tests (Depends-on): Likewise.
24776         * modules/futimens-tests (Depends-on): Likewise.
24777         * modules/lchown-tests (Depends-on): Likewise.
24778         * modules/link-tests (Depends-on): Likewise.
24779         * modules/linkat-tests (Depends-on): Likewise.
24780         * modules/lstat-tests (Depends-on): Likewise.
24781         * modules/mkdir-tests (Depends-on): Likewise.
24782         * modules/mkfifo-tests (Depends-on): Likewise.
24783         * modules/mkfifoat-tests (Depends-on): Likewise.
24784         * modules/mknod-tests (Depends-on): Likewise.
24785         * modules/openat-tests (Depends-on): Likewise.
24786         * modules/readlink-tests (Depends-on): Likewise.
24787         * modules/remove-tests (Depends-on): Likewise.
24788         * modules/rename-tests (Depends-on): Likewise.
24789         * modules/renameat-tests (Depends-on): Likewise.
24790         * modules/rmdir-tests (Depends-on): Likewise.
24791         * modules/symlink-tests (Depends-on): Likewise.
24792         * modules/symlinkat-tests (Depends-on): Likewise.
24793         * modules/unlink-tests (Depends-on): Likewise.
24794         * modules/utimens-tests (Depends-on): Likewise.
24795         * modules/utimensat-tests (Depends-on): Likewise.
24796
24797 2010-01-31  Bruno Haible  <bruno@clisp.org>
24798
24799         Perform the same test for many <math.h> functions.
24800         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24801         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24802         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24803         of gl_MATHFUNC.
24804         * modules/acos (configure.ac): Likewise.
24805         * modules/asin (configure.ac): Likewise.
24806         * modules/atan (configure.ac): Likewise.
24807         * modules/atan2 (configure.ac): Likewise.
24808         * modules/cbrt (configure.ac): Likewise.
24809         * modules/copysign (configure.ac): Likewise.
24810         * modules/cos (configure.ac): Likewise.
24811         * modules/cosh (configure.ac): Likewise.
24812         * modules/erf (configure.ac): Likewise.
24813         * modules/erfc (configure.ac): Likewise.
24814         * modules/exp (configure.ac): Likewise.
24815         * modules/fmod (configure.ac): Likewise.
24816         * modules/hypot (configure.ac): Likewise.
24817         * modules/j0 (configure.ac): Likewise.
24818         * modules/j1 (configure.ac): Likewise.
24819         * modules/jn (configure.ac): Likewise.
24820         * modules/lgamma (configure.ac): Likewise.
24821         * modules/log (configure.ac): Likewise.
24822         * modules/log10 (configure.ac): Likewise.
24823         * modules/log1p (configure.ac): Likewise.
24824         * modules/pow (configure.ac): Likewise.
24825         * modules/remainder (configure.ac): Likewise.
24826         * modules/sin (configure.ac): Likewise.
24827         * modules/sinh (configure.ac): Likewise.
24828         * modules/tan (configure.ac): Likewise.
24829         * modules/tanh (configure.ac): Likewise.
24830         * modules/y0 (configure.ac): Likewise.
24831         * modules/y1 (configure.ac): Likewise.
24832         * modules/yn (configure.ac): Likewise.
24833         Suggested by Paolo Bonzini.
24834
24835 2010-01-31  Bruno Haible  <bruno@clisp.org>
24836
24837         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
24838
24839 2010-01-31  Bruno Haible  <bruno@clisp.org>
24840
24841         Work around getdelim() bug on FreeBSD 8.0.
24842         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
24843         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
24844         not work.
24845         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
24846         is 1.
24847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
24848         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
24849         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
24850         a non-zero size.
24851         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
24852
24853 2010-01-31  Bruno Haible  <bruno@clisp.org>
24854
24855         Work around getline() bug on FreeBSD 8.0.
24856         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
24857         and a non-zero size.
24858         * tests/test-getline.c (main): Likewise.
24859         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
24860         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
24861
24862 2010-01-28  Eric Blake  <ebb9@byu.net>
24863
24864         regex: fix build failure
24865         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
24866         platforms.
24867
24868 2010-01-28  Jim Meyering  <meyering@redhat.com>
24869
24870         regex: do not ignore memory allocation failure
24871         * lib/regex_internal.c (create_cd_newstate): Detect
24872         re_node_set_init_copy failure.   Extracted from glibc commit
24873         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24874
24875         regex: sync more white-space changes from libc
24876         * lib/regex_internal.c: White-space only changes.
24877         * lib/regexec.c: Likewise.
24878
24879         regex: add many uses of __attribute_warn_unused_result__
24880         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
24881         * lib/regexec.c: Likewise.
24882         Extracted from a messy glibc commit.
24883
24884         regcomp.c: spelling and merge-artifact from glibc
24885         * lib/regcomp.c: Merge remainder of glibc's
24886         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24887
24888         regcomp.c: sync white-space changes from glibc
24889         * lib/regcomp.c: Merge to accommodate white space
24890         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24891
24892         regcomp.c: do not ignore internal return values
24893         * lib/regcomp.c: Do not ignore internal return values.
24894         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24895         but without its white-space changes and spelling fixes.
24896
24897         regex_internal.h: define __attribute_warn_unused_result__
24898         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24899
24900         maint: add a syntax-check rule to check for vulnerable Makefile.in
24901         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24902
24903 2010-01-27  Jim Meyering  <meyering@redhat.com>
24904
24905         ncftpput-ftp: clean up spaces
24906         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24907         Remove trailing blanks.
24908
24909 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24910
24911         * build-aux/git-version-gen: Fix copyright statement.
24912         * build-aux/gnupload: Likewise.
24913         * tests/test-arcfour.c: Likewise.
24914         * tests/test-arctwo.c: Likewise.
24915         * tests/test-count-one-bits.c: Likewise.
24916         * tests/test-crc.c: Likewise.
24917         * tests/test-des.c: Likewise.
24918         * tests/test-gc-arcfour.c: Likewise.
24919         * tests/test-gc-arctwo.c: Likewise.
24920         * tests/test-gc-des.c: Likewise.
24921         * tests/test-gc-hmac-md5.c: Likewise.
24922         * tests/test-gc-hmac-sha1.c: Likewise.
24923         * tests/test-gc-md2.c: Likewise.
24924         * tests/test-gc-md4.c: Likewise.
24925         * tests/test-gc-md5.c: Likewise.
24926         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24927         * tests/test-gc-rijndael.c: Likewise.
24928         * tests/test-gc-sha1.c: Likewise.
24929         * tests/test-gc.c: Likewise.
24930         * tests/test-gethostname.c: Likewise.
24931         * tests/test-gettimeofday.c: Likewise.
24932         * tests/test-hash.c: Likewise.
24933         * tests/test-hmac-md5.c: Likewise.
24934         * tests/test-hmac-sha1.c: Likewise.
24935         * tests/test-md2.c: Likewise.
24936         * tests/test-md4.c: Likewise.
24937         * tests/test-md5.c: Likewise.
24938         * tests/test-memchr.c: Likewise.
24939         * tests/test-memchr2.c: Likewise.
24940         * tests/test-memcmp.c: Likewise.
24941         * tests/test-memmem.c: Likewise.
24942         * tests/test-memrchr.c: Likewise.
24943         * tests/test-rawmemchr.c: Likewise.
24944         * tests/test-read-file.c: Likewise.
24945         * tests/test-rijndael.c: Likewise.
24946         * tests/test-sockets.c: Likewise.
24947         * tests/test-strchrnul.c: Likewise.
24948         * tests/test-strstr.c: Likewise.
24949         * tests/test-strtod.c: Likewise.
24950         * build-aux/ncftpput-ftp: Likewise.
24951
24952 2010-01-26  Eric Blake  <ebb9@byu.net>
24953
24954         ignore-value: update recommended header name
24955         * modules/ignore-value (Include): Only use <> for headers that
24956         exist in glibc.
24957
24958 2010-01-26  Jim Meyering  <meyering@redhat.com>
24959
24960         test-userspec.c: avoid compiler warnings
24961         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24962         and "initialization discards qualifiers..." warnings.
24963         Put the first "uid" in its own scope, and make char* members "const".
24964
24965 2010-01-25  Bruno Haible  <bruno@clisp.org>
24966
24967         gnulib-tool: Make warning diagnostics consistent.
24968         * gnulib-tool (func_warning): New function.
24969         Use it everywhere where gnulib-tool produces output to stderr and it is
24970         not a fatal error.
24971
24972 2010-01-25  Bruno Haible  <bruno@clisp.org>
24973
24974         Fix test dependencies.
24975         * modules/xstrtol-tests (Depends-on): Add inttypes.
24976         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24977
24978 2010-01-25 Pádraig Brady <P@draigBrady.com>
24979
24980         syntax-check: detect incorrect boolean macro values in config.h
24981         * modules/maintainer-makefile (configure.ac): Parameterize the location
24982         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24983         The logic is from Eric Blake and the location indicated by Jim Meyering.
24984         Note the more natural CONFIG_HEADER name is prohibited by automake
24985         for backwards compatibility reasons.
24986         * top/maint.mk (sc_Wundef_boolean): New rule.
24987
24988 2010-01-25  Jim Meyering  <meyering@redhat.com>
24989
24990         bootstrap: detect MacOS 10.6's shasum, too
24991         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24992         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24993
24994 2010-01-23  Jim Meyering  <meyering@redhat.com>
24995
24996         xstrtoll: new module
24997         * modules/xstrtoll: New file.
24998         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24999         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
25000         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
25001         ./configure fails if you use this module and lack "long long".
25002         * modules/xstrtoll-tests: New module.
25003         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
25004         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
25005         new init.sh-based test framework.
25006
25007 2010-01-24  Bruno Haible  <bruno@clisp.org>
25008
25009         Tests for module 'yn'.
25010         * modules/yn-tests: New file.
25011         * tests/test-yn.c: New file.
25012
25013         Tests for module 'y1'.
25014         * modules/y1-tests: New file.
25015         * tests/test-y1.c: New file.
25016
25017         Tests for module 'y0'.
25018         * modules/y0-tests: New file.
25019         * tests/test-y0.c: New file.
25020
25021         Tests for module 'tanh'.
25022         * modules/tanh-tests: New file.
25023         * tests/test-tanh.c: New file.
25024
25025         Tests for module 'tan'.
25026         * modules/tan-tests: New file.
25027         * tests/test-tan.c: New file.
25028
25029         Tests for module 'sqrt'.
25030         * modules/sqrt-tests: New file.
25031         * tests/test-sqrt.c: New file.
25032
25033         Tests for module 'sinh'.
25034         * modules/sinh-tests: New file.
25035         * tests/test-sinh.c: New file.
25036
25037         Tests for module 'sin'.
25038         * modules/sin-tests: New file.
25039         * tests/test-sin.c: New file.
25040
25041         Tests for module 'rint'.
25042         * modules/rint-tests: New file.
25043         * tests/test-rint.c: New file.
25044
25045         Tests for module 'remainder'.
25046         * modules/remainder-tests: New file.
25047         * tests/test-remainder.c: New file.
25048
25049         Tests for module 'pow'.
25050         * modules/pow-tests: New file.
25051         * tests/test-pow.c: New file.
25052
25053         Tests for module 'nextafter'.
25054         * modules/nextafter-tests: New file.
25055         * tests/test-nextafter.c: New file.
25056
25057         Tests for module 'modf'.
25058         * modules/modf-tests: New file.
25059         * tests/test-modf.c: New file.
25060
25061         Tests for module 'logb'.
25062         * modules/logb-tests: New file.
25063         * tests/test-logb.c: New file.
25064
25065         Tests for module 'log1p'.
25066         * modules/log1p-tests: New file.
25067         * tests/test-log1p.c: New file.
25068
25069         Tests for module 'log10'.
25070         * modules/log10-tests: New file.
25071         * tests/test-log10.c: New file.
25072
25073         Tests for module 'log'.
25074         * modules/log-tests: New file.
25075         * tests/test-log.c: New file.
25076
25077         Tests for module 'lgamma'.
25078         * modules/lgamma-tests: New file.
25079         * tests/test-lgamma.c: New file.
25080
25081         Tests for module 'ldexp'.
25082         * modules/ldexp-tests: New file.
25083         * tests/test-ldexp.c: New file.
25084
25085         Tests for module 'jn'.
25086         * modules/jn-tests: New file.
25087         * tests/test-jn.c: New file.
25088
25089         Tests for module 'j1'.
25090         * modules/j1-tests: New file.
25091         * tests/test-j1.c: New file.
25092
25093         Tests for module 'j0'.
25094         * modules/j0-tests: New file.
25095         * tests/test-j0.c: New file.
25096
25097         Tests for module 'hypot'.
25098         * modules/hypot-tests: New file.
25099         * tests/test-hypot.c: New file.
25100
25101         Tests for module 'fmod'.
25102         * modules/fmod-tests: New file.
25103         * tests/test-fmod.c: New file.
25104
25105         Tests for module 'fabs'.
25106         * modules/fabs-tests: New file.
25107         * tests/test-fabs.c: New file.
25108
25109         Tests for module 'exp'.
25110         * modules/exp-tests: New file.
25111         * tests/test-exp.c: New file.
25112
25113         Tests for module 'erfc'.
25114         * modules/erfc-tests: New file.
25115         * tests/test-erfc.c: New file.
25116
25117         Tests for module 'erf'.
25118         * modules/erf-tests: New file.
25119         * tests/test-erf.c: New file.
25120
25121         Tests for module 'cosh'.
25122         * modules/cosh-tests: New file.
25123         * tests/test-cosh.c: New file.
25124
25125         Tests for module 'cos'.
25126         * modules/cos-tests: New file.
25127         * tests/test-cos.c: New file.
25128
25129         Tests for module 'copysign'.
25130         * modules/copysign-tests: New file.
25131         * tests/test-copysign.c: New file.
25132
25133         Tests for module 'cbrt'.
25134         * modules/cbrt-tests: New file.
25135         * tests/test-cbrt.c: New file.
25136
25137         Tests for module 'atan2'.
25138         * modules/atan2-tests: New file.
25139         * tests/test-atan2.c: New file.
25140
25141         Tests for module 'atan'.
25142         * modules/atan-tests: New file.
25143         * tests/test-atan.c: New file.
25144
25145         Tests for module 'asin'.
25146         * modules/asin-tests: New file.
25147         * tests/test-asin.c: New file.
25148
25149         Tests for module 'acos'.
25150         * modules/acos-tests: New file.
25151         * tests/test-acos.c: New file.
25152
25153 2010-01-24  Bruno Haible  <bruno@clisp.org>
25154
25155         Fix tests for common <math.h> functions.
25156         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
25157         code snippet that references the function pointer, rather than merely
25158         calling the function. Substitute the FUNC_LIBM variable.
25159         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
25160         * modules/acos (configure.ac): Likewise.
25161         * modules/asin (configure.ac): Likewise.
25162         * modules/atan (configure.ac): Likewise.
25163         * modules/atan2 (configure.ac): Likewise.
25164         * modules/cbrt (configure.ac): Likewise.
25165         * modules/copysign (configure.ac): Likewise.
25166         * modules/cos (configure.ac): Likewise.
25167         * modules/cosh (configure.ac): Likewise.
25168         * modules/erf (configure.ac): Likewise.
25169         * modules/erfc (configure.ac): Likewise.
25170         * modules/exp (configure.ac): Likewise.
25171         * modules/fabs (configure.ac): Likewise.
25172         * modules/fmod (configure.ac): Likewise.
25173         * modules/hypot (configure.ac): Likewise.
25174         * modules/j0 (configure.ac): Likewise.
25175         * modules/j1 (configure.ac): Likewise.
25176         * modules/jn (configure.ac): Likewise.
25177         * modules/ldexp (configure.ac): Likewise.
25178         * modules/lgamma (configure.ac): Likewise.
25179         * modules/log (configure.ac): Likewise.
25180         * modules/log10 (configure.ac): Likewise.
25181         * modules/log1p (configure.ac): Likewise.
25182         * modules/logb (configure.ac): Likewise.
25183         * modules/modf (configure.ac): Likewise.
25184         * modules/nextafter (configure.ac): Likewise.
25185         * modules/pow (configure.ac): Likewise.
25186         * modules/remainder (configure.ac): Likewise.
25187         * modules/rint (configure.ac): Likewise.
25188         * modules/sin (configure.ac): Likewise.
25189         * modules/sinh (configure.ac): Likewise.
25190         * modules/tan (configure.ac): Likewise.
25191         * modules/tanh (configure.ac): Likewise.
25192         * modules/y0 (configure.ac): Likewise.
25193         * modules/y1 (configure.ac): Likewise.
25194         * modules/yn (configure.ac): Likewise.
25195
25196 2010-01-24  Bruno Haible  <bruno@clisp.org>
25197
25198         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
25199         * tests/test-acosl.c (x): New variable.
25200         (main): Store argument in x and fetch it from x.
25201         * tests/test-asinl.c (x): New variable.
25202         (main): Store argument in x and fetch it from x.
25203         * tests/test-atanl.c (x): New variable.
25204         (main): Store argument in x and fetch it from x.
25205         * tests/test-cosl.c (x): New variable.
25206         (main): Store argument in x and fetch it from x.
25207         * tests/test-expl.c (x): New variable.
25208         (main): Store argument in x and fetch it from x.
25209         * tests/test-logl.c (x): New variable.
25210         (main): Store argument in x and fetch it from x.
25211         * tests/test-sinl.c (x): New variable.
25212         (main): Store argument in x and fetch it from x.
25213         * tests/test-sqrtl.c (x): New variable.
25214         (main): Store argument in x and fetch it from x.
25215         * tests/test-tanl.c (x): New variable.
25216         (main): Store argument in x and fetch it from x.
25217
25218 2010-01-24  Bruno Haible  <bruno@clisp.org>
25219
25220         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
25221         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
25222         assignments to the initial TESTS_ENVIRONMENT.
25223         * doc/gnulib.texi (Unit test modules): Document it.
25224         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
25225         TESTS_ENVIRONMENT.
25226         * modules/btowc-tests (Makefile.am): Likewise.
25227         * modules/c-stack-tests (Makefile.am): Likewise.
25228         * modules/c-strcase-tests (Makefile.am): Likewise.
25229         * modules/copy-file-tests (Makefile.am): Likewise.
25230         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
25231         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
25232         * modules/mbrtowc-tests (Makefile.am): Likewise.
25233         * modules/mbscasecmp-tests (Makefile.am): Likewise.
25234         * modules/mbscasestr-tests (Makefile.am): Likewise.
25235         * modules/mbschr-tests (Makefile.am): Likewise.
25236         * modules/mbscspn-tests (Makefile.am): Likewise.
25237         * modules/mbsinit-tests (Makefile.am): Likewise.
25238         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
25239         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
25240         * modules/mbspbrk-tests (Makefile.am): Likewise.
25241         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
25242         * modules/mbsrchr-tests (Makefile.am): Likewise.
25243         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
25244         * modules/mbsspn-tests (Makefile.am): Likewise.
25245         * modules/mbsstr-tests (Makefile.am): Likewise.
25246         * modules/nl_langinfo-tests (Makefile.am): Likewise.
25247         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
25248         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
25249         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
25250         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
25251         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
25252         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
25253         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
25254         * modules/wcrtomb-tests (Makefile.am): Likewise.
25255         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
25256         * modules/wcsrtombs-tests (Makefile.am): Likewise.
25257         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
25258         assignments from TESTS_ENVIRONMENT.
25259         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
25260         augmentation.
25261         * modules/argp-version-etc-tests (Makefile.am): Likewise.
25262         * modules/atexit-tests (Makefile.am): Likewise.
25263         * modules/binary-io-tests (Makefile.am): Likewise.
25264         * modules/closein-tests (Makefile.am): Likewise.
25265         * modules/dprintf-posix-tests (Makefile.am): Likewise.
25266         * modules/exclude-tests (Makefile.am): Likewise.
25267         * modules/fflush-tests (Makefile.am): Likewise.
25268         * modules/fpending-tests (Makefile.am): Likewise.
25269         * modules/fprintf-posix-tests (Makefile.am): Likewise.
25270         * modules/freadahead-tests (Makefile.am): Likewise.
25271         * modules/freadptr-tests (Makefile.am): Likewise.
25272         * modules/freadseek-tests (Makefile.am): Likewise.
25273         * modules/fseek-tests (Makefile.am): Likewise.
25274         * modules/fseeko-tests (Makefile.am): Likewise.
25275         * modules/ftell-tests (Makefile.am): Likewise.
25276         * modules/ftello-tests (Makefile.am): Likewise.
25277         * modules/idpriv-drop-tests (Makefile.am): Likewise.
25278         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
25279         * modules/lseek-tests (Makefile.am): Likewise.
25280         * modules/parse-duration-tests (Makefile.am): Likewise.
25281         * modules/perror-tests (Makefile.am): Likewise.
25282         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
25283         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
25284         * modules/pipe-tests (Makefile.am): Likewise.
25285         * modules/pread-tests (Makefile.am): Likewise.
25286         * modules/printf-posix-tests (Makefile.am): Likewise.
25287         * modules/select-tests (Makefile.am): Likewise.
25288         * modules/sigpipe-tests (Makefile.am): Likewise.
25289         * modules/tsearch-tests (Makefile.am): Likewise.
25290         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
25291         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
25292         * modules/uniname/uniname-tests (Makefile.am): Likewise.
25293         * modules/uniwidth/width-tests (Makefile.am): Likewise.
25294         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
25295         * modules/version-etc-tests (Makefile.am): Likewise.
25296         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
25297         * modules/vprintf-posix-tests (Makefile.am): Likewise.
25298         * modules/xalloc-die-tests (Makefile.am): Likewise.
25299         * modules/xprintf-posix-tests (Makefile.am): Likewise.
25300         * modules/xstrtoimax-tests (Makefile.am): Likewise.
25301         * modules/xstrtol-tests (Makefile.am): Likewise.
25302         * modules/xstrtoumax-tests (Makefile.am): Likewise.
25303         * modules/yesno-tests (Makefile.am): Likewise.
25304         Suggested by Jim Meyering.
25305
25306 2010-01-24  Bruno Haible  <bruno@clisp.org>
25307
25308         More documentation.
25309         * doc/gnulib.texi (Writing modules): New chapter.
25310         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
25311         the new chapter.
25312
25313 2010-01-24  Jim Meyering  <meyering@redhat.com>
25314
25315         maint.mk: do not prepend "./" after filtering
25316         * top/maint.mk (_prepend_srcdir_prefix): New variable
25317         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
25318         "./" when $(srcdir) is ".".
25319
25320         define STREQ(a,b) consistently, removing useless parentheses
25321         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
25322         since the only risk is that "a" or "b" contains an unparenthesized
25323         comma, but if either did that, STREQ would have 3 or more arguments.
25324         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
25325         * lib/fts.c (STREQ): Remove unnecessary parentheses.
25326         * lib/hash-triple.c (STREQ): Likewise.
25327         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
25328         * lib/getugroups.c (STREQ): Likewise.
25329
25330 2010-01-23  Jim Meyering  <meyering@redhat.com>
25331
25332         maint.mk: fix syntax-check in a non-srcdir build directory
25333         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
25334         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
25335
25336 2010-01-22  Jim Meyering  <meyering@redhat.com>
25337
25338         userspec: add unit tests
25339         * tests/test-userspec.c: New file.
25340         * modules/userspec-tests: Likewise.
25341
25342 2010-01-21  Jim Meyering  <meyering@redhat.com>
25343
25344         maint.mk: handle source file names containing "." robustly
25345         * top/maint.mk (_dot_escaped_srcdir): Define.
25346         (VC_LIST): Use it in LHS of sed substitution.
25347
25348 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
25349
25350         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
25351         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
25352         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
25353         from a non-srcdir build.
25354
25355 2010-01-20  Eric Blake  <ebb9@byu.net>
25356
25357         warn-on-use: use instead of link-warning
25358         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
25359         * modules/unistd (Depends-on, Makefile.am): Likewise.
25360         * modules/arpa_inet (Depends-on): Replace link-warning with
25361         warn-on-use.
25362         (Makefile.am): Update rules accordingly.
25363         * modules/ctype (Depends-on, Makefile.am): Likewise.
25364         * modules/dirent (Depends-on, Makefile.am): Likewise.
25365         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
25366         * modules/inttypes (Depends-on, Makefile.am): Likewise.
25367         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25368         * modules/locale (Depends-on, Makefile.am): Likewise.
25369         * modules/math (Depends-on, Makefile.am): Likewise.
25370         * modules/search (Depends-on, Makefile.am): Likewise.
25371         * modules/signal (Depends-on, Makefile.am): Likewise.
25372         * modules/spawn (Depends-on, Makefile.am): Likewise.
25373         * modules/stdlib (Depends-on, Makefile.am): Likewise.
25374         * modules/string (Depends-on, Makefile.am): Likewise.
25375         * modules/strings (Depends-on, Makefile.am): Likewise.
25376         * modules/sys_file (Depends-on, Makefile.am): Likewise.
25377         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
25378         * modules/sys_select (Depends-on, Makefile.am): Likewise.
25379         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
25380         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
25381         * modules/sys_times (Depends-on, Makefile.am): Likewise.
25382         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25383         * modules/wchar (Depends-on, Makefile.am): Likewise.
25384         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
25385         should be poisoned.
25386         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
25387         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
25388         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
25389         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25390         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25391         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25392         * m4/math_h.m4 (gl_MATH_H): Likewise.
25393         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25394         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
25395         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25396         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
25397         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
25398         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
25399         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
25400         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
25401         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25402         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25403         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25404         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
25405         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25406         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25407         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25408         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25409         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
25410         GL_LINK_WARNING.
25411         * lib/ctype.in.h: Likewise.
25412         * lib/dirent.in.h: Likewise.
25413         * lib/fcntl.in.h: Likewise.
25414         * lib/inttypes.in.h: Likewise.
25415         * lib/langinfo.in.h: Likewise.
25416         * lib/locale.in.h: Likewise.
25417         * lib/math.in.h: Likewise.
25418         * lib/search.in.h: Likewise.
25419         * lib/signal.in.h: Likewise.
25420         * lib/spawn.in.h: Likewise.
25421         * lib/stdio.in.h: Likewise.
25422         * lib/stdlib.in.h: Likewise.
25423         * lib/string.in.h: Likewise.
25424         * lib/strings.in.h: Likewise.
25425         * lib/sys_file.in.h: Likewise.
25426         * lib/sys_ioctl.in.h: Likewise.
25427         * lib/sys_select.in.h: Likewise.
25428         * lib/sys_socket.in.h: Likewise.
25429         * lib/sys_stat.in.h: Likewise.
25430         * lib/sys_times.in.h: Likewise.
25431         * lib/sys_utsname.in.h: Likewise.
25432         * lib/unistd.in.h: Likewise.
25433         * lib/wchar.in.h: Likewise.
25434
25435 2010-01-20  Bruno Haible  <bruno@clisp.org>
25436
25437         Avoid duplicate -lm.
25438         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
25439         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
25440         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
25441         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
25442         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
25443         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
25444         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
25445         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
25446         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
25447         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
25448         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
25449         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25450         Reported by Paolo Bonzini.
25451
25452 2010-01-19  Bruno Haible  <bruno@clisp.org>
25453
25454         langinfo, nl_langinfo: Relicense under LGPLv2+.
25455         * modules/langinfo (License): Change to LGPLv2+.
25456         * modules/nl_langinfo (License): Likewise.
25457         Patch by David Lutterkort <lutter@redhat.com>.
25458
25459 2010-01-19  Bruno Haible  <bruno@clisp.org>
25460
25461         Avoid compilation error with cc on OSF/1 5.1.
25462         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
25463         statement, not before.
25464         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25465
25466 2010-01-18  Bruno Haible  <bruno@clisp.org>
25467
25468         Avoid a link error due to the __printf__ symbol.
25469         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
25470         and 2.6.x.
25471         (__format__, __printf__): Remove definitions.
25472         * lib/argp-fmtstream.h: Likewise.
25473         * lib/argp.h: Likewise.
25474         * lib/error.h: Likewise.
25475         * lib/vasnprintf.h: Likewise.
25476         * lib/xprintf.h: Likewise.
25477         * lib/xvasprintf.h: Likewise.
25478         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25479
25480 2010-01-18  Bruno Haible  <bruno@clisp.org>
25481
25482         Tests for module 'tanl'.
25483         * modules/tanl-tests: New file.
25484         * tests/test-tanl.c: New file.
25485
25486         Tests for module 'sqrtl'.
25487         * modules/sqrtl-tests: New file.
25488         * tests/test-sqrtl.c: New file.
25489
25490         Tests for module 'sinl'.
25491         * modules/sinl-tests: New file.
25492         * tests/test-sinl.c: New file.
25493
25494         Tests for module 'logl'.
25495         * modules/logl-tests: New file.
25496         * tests/test-logl.c: New file.
25497
25498         Tests for module 'expl'.
25499         * modules/expl-tests: New file.
25500         * tests/test-expl.c: New file.
25501
25502         Tests for module 'cosl'.
25503         * modules/cosl-tests: New file.
25504         * tests/test-cosl.c: New file.
25505
25506         Tests for module 'atanl'.
25507         * modules/atanl-tests: New file.
25508         * tests/test-atanl.c: New file.
25509
25510         Tests for module 'asinl'.
25511         * modules/asinl-tests: New file.
25512         * tests/test-asinl.c: New file.
25513
25514         Tests for module 'acosl'.
25515         * modules/acosl-tests: New file.
25516         * tests/test-acosl.c: New file.
25517
25518         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25519         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25520         tanl): Use the standard gnulib idiom.
25521         * lib/cosl.c: Don't include trigl.c and sincosl.c.
25522         * lib/sinl.c: Likewise.
25523         * lib/tanl.c: Don't include trigl.c.
25524         (kernel_tanl): Make static.
25525         * lib/sincosl.c: Include trigl.h first.
25526         * lib/trigl.c: Likewise.
25527         * m4/acosl.m4: New file.
25528         * m4/asinl.m4: New file.
25529         * m4/atanl.m4: New file.
25530         * m4/cosl.m4: New file.
25531         * m4/expl.m4: New file.
25532         * m4/logl.m4: New file.
25533         * m4/sinl.m4: New file.
25534         * m4/sqrtl.m4: New file.
25535         * m4/tanl.m4: New file.
25536         * m4/mathl.m4: Remove file.
25537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
25538         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25539         Don't initialize GNULIB_MATHL.
25540         * modules/acosl: New file.
25541         * modules/asinl: New file.
25542         * modules/atanl: New file.
25543         * modules/cosl: New file.
25544         * modules/expl: New file.
25545         * modules/logl: New file.
25546         * modules/sinl: New file.
25547         * modules/sqrtl: New file.
25548         * modules/tanl: New file.
25549         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
25550         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
25551         substitute GNULIB_MATHL.
25552         * modules/mathl: Rewritten.
25553         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
25554         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
25555         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
25556         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
25557         * doc/posix-functions/expl.texi: Mention the 'expl' module.
25558         * doc/posix-functions/logl.texi: Mention the 'logl' module.
25559         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
25560         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
25561         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
25562
25563 2010-01-18  Bruno Haible  <bruno@clisp.org>
25564
25565         sqrt: Make gl_FUNC_SQRT requirable.
25566         * m4/sqrt.m4: New file.
25567         * modules/sqrt (Files): Add it.
25568         (configure.ac): Invoke gl_FUNC_SQRT.
25569
25570 2010-01-18  Bruno Haible  <bruno@clisp.org>
25571
25572         New modules for common <math.h> functions.
25573         * m4/mathfunc.m4: New file.
25574         * modules/acos: New file.
25575         * modules/asin: New file.
25576         * modules/atan: New file.
25577         * modules/atan2: New file.
25578         * modules/cbrt: New file.
25579         * modules/copysign: New file.
25580         * modules/cos: New file.
25581         * modules/cosh: New file.
25582         * modules/erf: New file.
25583         * modules/erfc: New file.
25584         * modules/exp: New file.
25585         * modules/fabs: New file.
25586         * modules/fmod: New file.
25587         * modules/hypot: New file.
25588         * modules/j0: New file.
25589         * modules/j1: New file.
25590         * modules/jn: New file.
25591         * modules/ldexp: New file.
25592         * modules/lgamma: New file.
25593         * modules/log: New file.
25594         * modules/log10: New file.
25595         * modules/log1p: New file.
25596         * modules/logb: New file.
25597         * modules/modf: New file.
25598         * modules/nextafter: New file.
25599         * modules/pow: New file.
25600         * modules/remainder: New file.
25601         * modules/rint: New file.
25602         * modules/sin: New file.
25603         * modules/sinh: New file.
25604         * modules/sqrt: New file.
25605         * modules/tan: New file.
25606         * modules/tanh: New file.
25607         * modules/y0: New file.
25608         * modules/y1: New file.
25609         * modules/yn: New file.
25610         * doc/posix-functions/acos.texi: Mention the 'acos' module.
25611         * doc/posix-functions/asin.texi: Mention the 'asin' module.
25612         * doc/posix-functions/atan.texi: Mention the 'atan' module.
25613         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
25614         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
25615         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
25616         * doc/posix-functions/cos.texi: Mention the 'cos' module.
25617         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
25618         * doc/posix-functions/erf.texi: Mention the 'erf' module.
25619         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
25620         * doc/posix-functions/exp.texi: Mention the 'exp' module.
25621         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
25622         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
25623         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
25624         * doc/posix-functions/j0.texi: Mention the 'j0' module.
25625         * doc/posix-functions/j1.texi: Mention the 'j1' module.
25626         * doc/posix-functions/jn.texi: Mention the 'jn' module.
25627         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
25628         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
25629         * doc/posix-functions/log.texi: Mention the 'log' module.
25630         * doc/posix-functions/log10.texi: Mention the 'log10' module.
25631         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
25632         * doc/posix-functions/logb.texi: Mention the 'logb' module.
25633         * doc/posix-functions/modf.texi: Mention the 'modf' module.
25634         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
25635         * doc/posix-functions/pow.texi: Mention the 'pow' module.
25636         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
25637         * doc/posix-functions/rint.texi: Mention the 'rint' module.
25638         * doc/posix-functions/sin.texi: Mention the 'sin' module.
25639         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
25640         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
25641         * doc/posix-functions/tan.texi: Mention the 'tan' module.
25642         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
25643         * doc/posix-functions/y0.texi: Mention the 'y0' module.
25644         * doc/posix-functions/y1.texi: Mention the 'y1' module.
25645         * doc/posix-functions/yn.texi: Mention the 'yn' module.
25646
25647 2010-01-18  Jim Meyering  <meyering@redhat.com>
25648
25649         ignore-value: relax license to LGPLv2+
25650         * modules/ignore-value (License): Relax to LGPLv2+.
25651
25652         getdate: don't leak when TZ contains two or more '"'s
25653         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
25654         double quote in TZ after the first one.
25655
25656         readtokens: do not leak internal token_lengths buffer
25657         * lib/readtokens.c (readtokens): Free the local, lengths,
25658         when the supplied "token_lengths" parameter is NULL.
25659
25660 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25661
25662         Fix a couple of missing LIBTHREAD link failures on AIX.
25663         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
25664         $(LIBTHREAD).
25665         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
25666
25667         Link test-poll against INET_PTON_LIB.
25668         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
25669         for inet_pton on Solaris 10.
25670
25671 2010-01-17  Bruno Haible  <bruno@clisp.org>
25672
25673         unistdio/*-sprintf: Fix typo in module description.
25674         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
25675         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
25676         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
25677         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
25678         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
25679         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
25680         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
25681         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25682
25683 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25684
25685         gnulib-tool: fix filelist for AIX, HP-UX ksh.
25686         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
25687         variables in shell case patterns, for AIX and HP-UX ksh.
25688
25689         Split large sed scripts, for HP-UX sed.
25690         * modules/stdio: Split sed scripts around 50 sed commands,
25691         to avoid HP-UX limit of 99 commands, in the near future.
25692         * modules/string: Likewise.
25693         * modules/unistd: Likewise.
25694
25695         gnulib-tool: avoid writing in the current directory.
25696         * gnulib-tool (func_emit_lib_Makefile_am)
25697         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
25698         not in the current directory, so concurrent gnulib-tool
25699         instances do not interfere.
25700
25701 2010-01-16  Jim Meyering  <meyering@redhat.com>
25702
25703         doc: update users.txt
25704         * users.txt: Add grep.
25705         (diffutils, gzip): Update URLs.
25706
25707 2010-01-12  Bruno Haible  <bruno@clisp.org>
25708
25709         posix_spawn: Avoid test failure on Cygwin.
25710         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
25711         characters.
25712         Reported by Simon Josefsson.
25713
25714 2010-01-12  Bruno Haible  <bruno@clisp.org>
25715
25716         * tests/test-cond.c (main): When skipping the test, show the reason.
25717
25718 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25719
25720         * lib/striconv.c (str_cd_iconv): Avoid if before free.
25721
25722 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25723
25724         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
25725         VC_LIST_ALWAYS_EXCLUDE_REGEX.
25726
25727 2010-01-12  Eric Blake  <ebb9@byu.net>
25728
25729         build: guarantee AS_VAR_IF
25730         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
25731         (gl_AS_VAR_IF): Move...
25732         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
25733         Reported by Simon Josefsson.
25734
25735 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25736
25737         * lib/stdio.in.h: Fix typo.
25738
25739 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25740
25741         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
25742         libgpg-error.
25743
25744 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25745
25746         * tests/test-xalloc-die.sh: Use $EXEEXT.
25747
25748 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25749             Bruno Haible  <bruno@clisp.org>
25750
25751         getlogin, getlogin_r: Avoid test failure.
25752         * tests/test-getlogin.c: Include <stdio.h>.
25753         (main): Skip the test when the function fails because stdin is not a
25754         tty.
25755         * tests/test-getlogin_r.c: Include <stdio.h>.
25756         (main): Skip the test when the function fails because stdin is not a
25757         tty.
25758
25759 2010-01-11  Eric Blake  <ebb9@byu.net>
25760
25761         tests: avoid more large file warnings
25762         * tests/test-fflush.c: Avoid warning about ftell use.
25763         * tests/test-fseek.c: Avoid warning about fseek use.
25764
25765 2010-01-10  Bruno Haible  <bruno@clisp.org>
25766
25767         nproc: Work better on Linux when /proc and /sys are not mounted.
25768         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
25769         as lower bound when, on glibc/Linux systems,
25770         sysconf (_SC_NPROCESSORS_CONF) returns 1.
25771         Suggested by Pádraig Brady <P@draigbrady.com>.
25772         Reported by Dmitry V. Levin <ldv@altlinux.org>.
25773
25774         nproc: Refactor.
25775         * lib/nproc.c (num_processors_via_affinity_mask): New function,
25776         extracted from num_processors.
25777         (num_processors): Call it.
25778
25779 2010-01-11  Jim Meyering  <meyering@redhat.com>
25780
25781         utimecmp: avoid new warning from upcoming gcc-4.5.0
25782         * lib/utimecmp.c (BILLION): Define using #define rather than an
25783         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
25784
25785 2010-01-11  Eric Blake  <ebb9@byu.net>
25786
25787         math: add portability warnings for classification macros
25788         * modules/math (Depends-on): Add warn-on-use.
25789         (Makefile.am): Provide new substitutions.
25790         * m4/math_h.m4 (gl_MATH_H): Require inline.
25791         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
25792         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
25793         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
25794         implement warnings.
25795
25796         unistd: warn on use of environ without module
25797         * modules/unistd (Depends-on): Add warn-on-use.
25798         (Makefile.am): Provide new substitutions.
25799         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25800         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25801
25802         stdio: warn on suspicious uses
25803         * modules/stdio (Depends-on): Add warn-on-use.
25804         (Makefile.am): Provide new substitutions.
25805         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25806         fseeko.
25807         * lib/stdio.in.h (gets): Always warn on use.
25808         (fseek, ftell): Adjust when warnings are issued, and honor
25809         _GL_NO_LARGE_FILES as a way to silence the warning.
25810         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25811         any warning about large file offsets.
25812         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25813         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25814         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25815         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25816         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25817         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25818         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25819         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25820
25821         warn-on-use: new module
25822         * modules/warn-on-use: New file.
25823         * build-aux/warn-on-use.h: Likewise.
25824         * m4/warn-on-use.m4: Likewise.
25825         * MODULES.html.sh (Support for building): Mention it.
25826
25827 2010-01-10  Bruno Haible  <bruno@clisp.org>
25828
25829         Tests for module 'unistr/u32-strdup'.
25830         * modules/unistr/u32-strdup-tests: New file.
25831         * tests/unistr/test-u32-strdup.c: New file.
25832
25833         Tests for module 'unistr/u16-strdup'.
25834         * modules/unistr/u16-strdup-tests: New file.
25835         * tests/unistr/test-u16-strdup.c: New file.
25836
25837         Tests for module 'unistr/u8-strdup'.
25838         * modules/unistr/u8-strdup-tests: New file.
25839         * tests/unistr/test-u8-strdup.c: New file.
25840         * tests/unistr/test-strdup.h: New file.
25841
25842         Tests for module 'unistr/u32-strncmp'.
25843         * modules/unistr/u32-strncmp-tests: New file.
25844         * tests/unistr/test-u32-strncmp.c: New file.
25845
25846         Tests for module 'unistr/u16-strncmp'.
25847         * modules/unistr/u16-strncmp-tests: New file.
25848         * tests/unistr/test-u16-strncmp.c: New file.
25849
25850         Tests for module 'unistr/u8-strncmp'.
25851         * modules/unistr/u8-strncmp-tests: New file.
25852         * tests/unistr/test-u8-strncmp.c: New file.
25853         * tests/unistr/test-strncmp.h: New file.
25854
25855         Tests for module 'unistr/u32-strcoll'.
25856         * modules/unistr/u32-strcoll-tests: New file.
25857         * tests/unistr/test-u32-strcoll.c: New file.
25858
25859         Tests for module 'unistr/u16-strcoll'.
25860         * modules/unistr/u16-strcoll-tests: New file.
25861         * tests/unistr/test-u16-strcoll.c: New file.
25862
25863         Tests for module 'unistr/u8-strcoll'.
25864         * modules/unistr/u8-strcoll-tests: New file.
25865         * tests/unistr/test-u8-strcoll.c: New file.
25866
25867         Tests for module 'unistr/u32-strcmp'.
25868         * modules/unistr/u32-strcmp-tests: New file.
25869         * tests/unistr/test-u32-strcmp.c: New file.
25870         * tests/unistr/test-u32-strcmp.h: New file.
25871
25872         Tests for module 'unistr/u16-strcmp'.
25873         * modules/unistr/u16-strcmp-tests: New file.
25874         * tests/unistr/test-u16-strcmp.c: New file.
25875         * tests/unistr/test-u16-strcmp.h: New file.
25876
25877         Tests for module 'unistr/u8-strcmp'.
25878         * modules/unistr/u8-strcmp-tests: New file.
25879         * tests/unistr/test-u8-strcmp.c: New file.
25880         * tests/unistr/test-u8-strcmp.h: New file.
25881         * tests/unistr/test-strcmp.h: New file.
25882
25883         Tests for module 'unistr/u32-strncat'.
25884         * modules/unistr/u32-strncat-tests: New file.
25885         * tests/unistr/test-u32-strncat.c: New file.
25886
25887         Tests for module 'unistr/u16-strncat'.
25888         * modules/unistr/u16-strncat-tests: New file.
25889         * tests/unistr/test-u16-strncat.c: New file.
25890
25891         Tests for module 'unistr/u8-strncat'.
25892         * modules/unistr/u8-strncat-tests: New file.
25893         * tests/unistr/test-u8-strncat.c: New file.
25894         * tests/unistr/test-strncat.h: New file.
25895
25896         Tests for module 'unistr/u32-strcat'.
25897         * modules/unistr/u32-strcat-tests: New file.
25898         * tests/unistr/test-u32-strcat.c: New file.
25899
25900         Tests for module 'unistr/u16-strcat'.
25901         * modules/unistr/u16-strcat-tests: New file.
25902         * tests/unistr/test-u16-strcat.c: New file.
25903
25904         Tests for module 'unistr/u8-strcat'.
25905         * modules/unistr/u8-strcat-tests: New file.
25906         * tests/unistr/test-u8-strcat.c: New file.
25907         * tests/unistr/test-strcat.h: New file.
25908
25909         Tests for module 'unistr/u32-stpncpy'.
25910         * modules/unistr/u32-stpncpy-tests: New file.
25911         * tests/unistr/test-u32-stpncpy.c: New file.
25912
25913         Tests for module 'unistr/u16-stpncpy'.
25914         * modules/unistr/u16-stpncpy-tests: New file.
25915         * tests/unistr/test-u16-stpncpy.c: New file.
25916
25917         Tests for module 'unistr/u8-stpncpy'.
25918         * modules/unistr/u8-stpncpy-tests: New file.
25919         * tests/unistr/test-u8-stpncpy.c: New file.
25920         * tests/unistr/test-stpncpy.h: New file.
25921
25922         Tests for module 'unistr/u32-strncpy'.
25923         * modules/unistr/u32-strncpy-tests: New file.
25924         * tests/unistr/test-u32-strncpy.c: New file.
25925
25926         Tests for module 'unistr/u16-strncpy'.
25927         * modules/unistr/u16-strncpy-tests: New file.
25928         * tests/unistr/test-u16-strncpy.c: New file.
25929
25930         Tests for module 'unistr/u8-strncpy'.
25931         * modules/unistr/u8-strncpy-tests: New file.
25932         * tests/unistr/test-u8-strncpy.c: New file.
25933         * tests/unistr/test-strncpy.h: New file.
25934
25935         Tests for module 'unistr/u32-stpcpy'.
25936         * modules/unistr/u32-stpcpy-tests: New file.
25937         * tests/unistr/test-u32-stpcpy.c: New file.
25938
25939         Tests for module 'unistr/u16-stpcpy'.
25940         * modules/unistr/u16-stpcpy-tests: New file.
25941         * tests/unistr/test-u16-stpcpy.c: New file.
25942
25943         Tests for module 'unistr/u8-stpcpy'.
25944         * modules/unistr/u8-stpcpy-tests: New file.
25945         * tests/unistr/test-u8-stpcpy.c: New file.
25946         * tests/unistr/test-stpcpy.h: New file.
25947
25948         Tests for module 'unistr/u32-strcpy'.
25949         * modules/unistr/u32-strcpy-tests: New file.
25950         * tests/unistr/test-u32-strcpy.c: New file.
25951
25952         Tests for module 'unistr/u16-strcpy'.
25953         * modules/unistr/u16-strcpy-tests: New file.
25954         * tests/unistr/test-u16-strcpy.c: New file.
25955
25956         Tests for module 'unistr/u8-strcpy'.
25957         * modules/unistr/u8-strcpy-tests: New file.
25958         * tests/unistr/test-u8-strcpy.c: New file.
25959         * tests/unistr/test-strcpy.h: New file.
25960
25961         Tests for module 'unistr/u32-strnlen'.
25962         * modules/unistr/u32-strnlen-tests: New file.
25963         * tests/unistr/test-u32-strnlen.c: New file.
25964
25965         Tests for module 'unistr/u16-strnlen'.
25966         * modules/unistr/u16-strnlen-tests: New file.
25967         * tests/unistr/test-u16-strnlen.c: New file.
25968
25969         Tests for module 'unistr/u8-strnlen'.
25970         * modules/unistr/u8-strnlen-tests: New file.
25971         * tests/unistr/test-u8-strnlen.c: New file.
25972         * tests/unistr/test-strnlen.h: New file.
25973
25974         Tests for module 'unistr/u32-strlen'.
25975         * modules/unistr/u32-strlen-tests: New file.
25976         * tests/unistr/test-u32-strlen.c: New file.
25977
25978         Tests for module 'unistr/u16-strlen'.
25979         * modules/unistr/u16-strlen-tests: New file.
25980         * tests/unistr/test-u16-strlen.c: New file.
25981
25982         Tests for module 'unistr/u8-strlen'.
25983         * modules/unistr/u8-strlen-tests: New file.
25984         * tests/unistr/test-u8-strlen.c: New file.
25985
25986         Tests for module 'unistr/u32-prev'.
25987         * modules/unistr/u32-prev-tests: New file.
25988         * tests/unistr/test-u32-prev.c: New file.
25989
25990         Tests for module 'unistr/u16-prev'.
25991         * modules/unistr/u16-prev-tests: New file.
25992         * tests/unistr/test-u16-prev.c: New file.
25993
25994         Tests for module 'unistr/u8-prev'.
25995         * modules/unistr/u8-prev-tests: New file.
25996         * tests/unistr/test-u8-prev.c: New file.
25997
25998         Tests for module 'unistr/u32-next'.
25999         * modules/unistr/u32-next-tests: New file.
26000         * tests/unistr/test-u32-next.c: New file.
26001
26002         Tests for module 'unistr/u16-next'.
26003         * modules/unistr/u16-next-tests: New file.
26004         * tests/unistr/test-u16-next.c: New file.
26005
26006         Tests for module 'unistr/u8-next'.
26007         * modules/unistr/u8-next-tests: New file.
26008         * tests/unistr/test-u8-next.c: New file.
26009
26010         Tests for module 'unistr/u32-strmbtouc'.
26011         * modules/unistr/u32-strmbtouc-tests: New file.
26012         * tests/unistr/test-u32-strmbtouc.c: New file.
26013
26014         Tests for module 'unistr/u16-strmbtouc'.
26015         * modules/unistr/u16-strmbtouc-tests: New file.
26016         * tests/unistr/test-u16-strmbtouc.c: New file.
26017
26018         Tests for module 'unistr/u8-strmbtouc'.
26019         * modules/unistr/u8-strmbtouc-tests: New file.
26020         * tests/unistr/test-u8-strmbtouc.c: New file.
26021
26022         Tests for module 'unistr/u32-strmblen'.
26023         * modules/unistr/u32-strmblen-tests: New file.
26024         * tests/unistr/test-u32-strmblen.c: New file.
26025
26026         Tests for module 'unistr/u16-strmblen'.
26027         * modules/unistr/u16-strmblen-tests: New file.
26028         * tests/unistr/test-u16-strmblen.c: New file.
26029
26030         Tests for module 'unistr/u8-strmblen'.
26031         * modules/unistr/u8-strmblen-tests: New file.
26032         * tests/unistr/test-u8-strmblen.c: New file.
26033
26034         Tests for module 'unistr/u32-cpy-alloc'.
26035         * modules/unistr/u32-cpy-alloc-tests: New file.
26036         * tests/unistr/test-u32-cpy-alloc.c: New file.
26037
26038         Tests for module 'unistr/u16-cpy-alloc'.
26039         * modules/unistr/u16-cpy-alloc-tests: New file.
26040         * tests/unistr/test-u16-cpy-alloc.c: New file.
26041
26042         Tests for module 'unistr/u8-cpy-alloc'.
26043         * modules/unistr/u8-cpy-alloc-tests: New file.
26044         * tests/unistr/test-u8-cpy-alloc.c: New file.
26045         * tests/unistr/test-cpy-alloc.h: New file.
26046
26047         Tests for module 'unistr/u32-mbsnlen'.
26048         * modules/unistr/u32-mbsnlen-tests: New file.
26049         * tests/unistr/test-u32-mbsnlen.c: New file.
26050
26051         Tests for module 'unistr/u16-mbsnlen'.
26052         * modules/unistr/u16-mbsnlen-tests: New file.
26053         * tests/unistr/test-u16-mbsnlen.c: New file.
26054
26055         Tests for module 'unistr/u8-mbsnlen'.
26056         * modules/unistr/u8-mbsnlen-tests: New file.
26057         * tests/unistr/test-u8-mbsnlen.c: New file.
26058
26059         Tests for module 'unistr/u32-chr'.
26060         * modules/unistr/u32-chr-tests: New file.
26061         * tests/unistr/test-u32-chr.c: New file.
26062
26063         Tests for module 'unistr/u16-chr'.
26064         * modules/unistr/u16-chr-tests: New file.
26065         * tests/unistr/test-u16-chr.c: New file.
26066
26067         Tests for module 'unistr/u8-chr'.
26068         * modules/unistr/u8-chr-tests: New file.
26069         * tests/unistr/test-u8-chr.c: New file.
26070         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
26071
26072         Tests for module 'unistr/u32-cmp2'.
26073         * modules/unistr/u32-cmp2-tests: New file.
26074         * tests/unistr/test-u32-cmp2.c: New file.
26075
26076         Tests for module 'unistr/u16-cmp2'.
26077         * modules/unistr/u16-cmp2-tests: New file.
26078         * tests/unistr/test-u16-cmp2.c: New file.
26079
26080         Tests for module 'unistr/u8-cmp2'.
26081         * modules/unistr/u8-cmp2-tests: New file.
26082         * tests/unistr/test-u8-cmp2.c: New file.
26083         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
26084
26085         Tests for module 'unistr/u32-cmp'.
26086         * modules/unistr/u32-cmp-tests: New file.
26087         * tests/unistr/test-u32-cmp.c: New file.
26088
26089         Tests for module 'unistr/u16-cmp'.
26090         * modules/unistr/u16-cmp-tests: New file.
26091         * tests/unistr/test-u16-cmp.c: New file.
26092
26093         Tests for module 'unistr/u8-cmp'.
26094         * modules/unistr/u8-cmp-tests: New file.
26095         * tests/unistr/test-u8-cmp.c: New file.
26096         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
26097
26098         Tests for module 'unistr/u32-set'.
26099         * modules/unistr/u32-set-tests: New file.
26100         * tests/unistr/test-u32-set.c: New file.
26101
26102         Tests for module 'unistr/u16-set'.
26103         * modules/unistr/u16-set-tests: New file.
26104         * tests/unistr/test-u16-set.c: New file.
26105
26106         Tests for module 'unistr/u8-set'.
26107         * modules/unistr/u8-set-tests: New file.
26108         * tests/unistr/test-u8-set.c: New file.
26109         * tests/unistr/test-set.h: New file.
26110
26111         Tests for module 'unistr/u32-move'.
26112         * modules/unistr/u32-move-tests: New file.
26113         * tests/unistr/test-u32-move.c: New file.
26114
26115         Tests for module 'unistr/u16-move'.
26116         * modules/unistr/u16-move-tests: New file.
26117         * tests/unistr/test-u16-move.c: New file.
26118
26119         Tests for module 'unistr/u8-move'.
26120         * modules/unistr/u8-move-tests: New file.
26121         * tests/unistr/test-u8-move.c: New file.
26122         * tests/unistr/test-move.h: New file.
26123
26124         Tests for module 'unistr/u32-cpy'.
26125         * modules/unistr/u32-cpy-tests: New file.
26126         * tests/unistr/test-u32-cpy.c: New file.
26127
26128         Tests for module 'unistr/u16-cpy'.
26129         * modules/unistr/u16-cpy-tests: New file.
26130         * tests/unistr/test-u16-cpy.c: New file.
26131
26132         Tests for module 'unistr/u8-cpy'.
26133         * modules/unistr/u8-cpy-tests: New file.
26134         * tests/unistr/test-u8-cpy.c: New file.
26135         * tests/unistr/test-cpy.h: New file.
26136
26137 2010-01-09  Bruno Haible  <bruno@clisp.org>
26138
26139         Tests for module 'unistr/u32-uctomb'.
26140         * modules/unistr/u32-uctomb-tests: New file.
26141         * tests/unistr/test-u32-uctomb.c: New file.
26142
26143         Tests for module 'unistr/u16-uctomb'.
26144         * modules/unistr/u16-uctomb-tests: New file.
26145         * tests/unistr/test-u16-uctomb.c: New file.
26146
26147         Tests for module 'unistr/u8-uctomb'.
26148         * modules/unistr/u8-uctomb-tests: New file.
26149         * tests/unistr/test-u8-uctomb.c: New file.
26150
26151         Tests for module 'unistr/u32-mbtoucr'.
26152         * modules/unistr/u32-mbtoucr-tests: New file.
26153         * tests/unistr/test-u32-mbtoucr.c: New file.
26154
26155         Tests for module 'unistr/u16-mbtoucr'.
26156         * modules/unistr/u16-mbtoucr-tests: New file.
26157         * tests/unistr/test-u16-mbtoucr.c: New file.
26158
26159         Tests for module 'unistr/u8-mbtoucr'.
26160         * modules/unistr/u8-mbtoucr-tests: New file.
26161         * tests/unistr/test-u8-mbtoucr.c: New file.
26162
26163         Tests for module 'unistr/u32-mbtouc'.
26164         * modules/unistr/u32-mbtouc-tests: New file.
26165         * tests/unistr/test-u32-mbtouc.c: New file.
26166
26167         Tests for module 'unistr/u16-mbtouc'.
26168         * modules/unistr/u16-mbtouc-tests: New file.
26169         * tests/unistr/test-u16-mbtouc.c: New file.
26170
26171         Tests for module 'unistr/u8-mbtouc'.
26172         * modules/unistr/u8-mbtouc-tests: New file.
26173         * tests/unistr/test-u8-mbtouc.c: New file.
26174
26175         Tests for module 'unistr/u32-mbtouc-unsafe'.
26176         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
26177         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
26178         * tests/unistr/test-u32-mbtouc.h: New file.
26179
26180         Tests for module 'unistr/u16-mbtouc-unsafe'.
26181         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
26182         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
26183         * tests/unistr/test-u16-mbtouc.h: New file.
26184
26185         Tests for module 'unistr/u8-mbtouc-unsafe'.
26186         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
26187         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
26188         * tests/unistr/test-u8-mbtouc.h: New file.
26189
26190         Tests for module 'unistr/u32-mblen'.
26191         * modules/unistr/u32-mblen-tests: New file.
26192         * tests/unistr/test-u32-mblen.c: New file.
26193
26194         Tests for module 'unistr/u16-mblen'.
26195         * modules/unistr/u16-mblen-tests: New file.
26196         * tests/unistr/test-u16-mblen.c: New file.
26197
26198         Tests for module 'unistr/u8-mblen'.
26199         * modules/unistr/u8-mblen-tests: New file.
26200         * tests/unistr/test-u8-mblen.c: New file.
26201
26202         Tests for module 'unistr/u32-to-u16'.
26203         * modules/unistr/u32-to-u16-tests: New file.
26204         * tests/unistr/test-u32-to-u16.c: New file.
26205
26206         Tests for module 'unistr/u32-to-u8'.
26207         * modules/unistr/u32-to-u8-tests: New file.
26208         * tests/unistr/test-u32-to-u8.c: New file.
26209
26210         Tests for module 'unistr/u16-to-u32'.
26211         * modules/unistr/u16-to-u32-tests: New file.
26212         * tests/unistr/test-u16-to-u32.c: New file.
26213
26214         Tests for module 'unistr/u16-to-u8'.
26215         * modules/unistr/u16-to-u8-tests: New file.
26216         * tests/unistr/test-u16-to-u8.c: New file.
26217
26218         Tests for module 'unistr/u8-to-u32'.
26219         * modules/unistr/u8-to-u32-tests: New file.
26220         * tests/unistr/test-u8-to-u32.c: New file.
26221
26222         Tests for module 'unistr/u8-to-u16'.
26223         * modules/unistr/u8-to-u16-tests: New file.
26224         * tests/unistr/test-u8-to-u16.c: New file.
26225
26226         Tests for module 'unistr/u32-check'.
26227         * modules/unistr/u32-check-tests: New file.
26228         * tests/unistr/test-u32-check.c: New file.
26229
26230         Tests for module 'unistr/u16-check'.
26231         * modules/unistr/u16-check-tests: New file.
26232         * tests/unistr/test-u16-check.c: New file.
26233
26234         Tests for module 'unistr/u8-check'.
26235         * modules/unistr/u8-check-tests: New file.
26236         * tests/unistr/test-u8-check.c: New file.
26237
26238         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
26239         (category_equals): New function.
26240         (main): Add more tests.
26241         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
26242
26243         * tests/unictype/test-bidi_byname.c (main): Add more tests.
26244
26245 2010-01-10  Bruno Haible  <bruno@clisp.org>
26246
26247         unistr/u*-strcoll: Try harder to distinguish different strings.
26248         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
26249         compare s1 and s2 to see if they are different.
26250
26251 2010-01-10  Bruno Haible  <bruno@clisp.org>
26252
26253         unistr/u*-stpncpy: Fix the return value.
26254         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
26255         description of the return value consistent with stpncpy in glibc.
26256         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
26257         written non-NUL unit.
26258
26259 2010-01-10  Bruno Haible  <bruno@clisp.org>
26260
26261         unistr/u*-next: Add missing dependencies.
26262         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
26263         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
26264         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
26265
26266 2010-01-10  Bruno Haible  <bruno@clisp.org>
26267
26268         unistr/u8-mbsnlen: Fix return value for incomplete character.
26269         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
26270         u8_mblen.
26271         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
26272         Remove unistr/u8-mblen.
26273         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
26274         u16_mblen.
26275         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
26276         Remove unistr/u16-mblen.
26277
26278 2010-01-10  Bruno Haible  <bruno@clisp.org>
26279
26280         wchar: Fix compilation error when <wchar.h> is used from coreutils.
26281         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
26282         Reported by Brian Gough <bjg@gnu.org> and
26283         Chris Clayton <chris2553@googlemail.com> via
26284         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
26285
26286 2010-01-09  Bruno Haible  <bruno@clisp.org>
26287
26288         unistr/u16-to-u32: Reject invalid input.
26289         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
26290         u16_mbtouc.
26291         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
26292         Remove unistr/u16-mbtouc.
26293
26294         unistr/u16-to-u8: Reject invalid input.
26295         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
26296         u16_mbtouc.
26297         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
26298         Remove unistr/u16-mbtouc.
26299
26300         unistr/u8-to-u32: Reject invalid input.
26301         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
26302         u8_mbtouc.
26303         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
26304         Remove unistr/u8-mbtouc.
26305
26306         unistr/u8-to-u16: Reject invalid input.
26307         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
26308         u8_mbtouc.
26309         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
26310         Remove unistr/u8-mbtouc.
26311
26312 2010-01-09  Bruno Haible  <bruno@clisp.org>
26313
26314         Tests for module 'getlogin'.
26315         * modules/getlogin-tests: New file.
26316         * tests/test-getlogin.c: New file.
26317
26318         New module 'getlogin'.
26319         * lib/unistd.in.h (getlogin): New declaration.
26320         * lib/getlogin.c: New file.
26321         * m4/getlogin.m4: New file.
26322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
26323         HAVE_GETLOGIN.
26324         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
26325         HAVE_GETLOGIN.
26326         * modules/getlogin: New file.
26327         * doc/posix-functions/getlogin.texi: Mention the new module.
26328         Reported by John W. Eaton <jwe@gnu.org>.
26329
26330 2010-01-09  Bruno Haible  <bruno@clisp.org>
26331
26332         getlogin_r: Support for native Windows.
26333         * lib/getlogin_r.c: Include <windows.h>
26334         (getlogin_r): Implement for native Windows.
26335         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
26336         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
26337         via John W. Eaton <jwe@gnu.org>.
26338
26339 2010-01-09  Bruno Haible  <bruno@clisp.org>
26340
26341         getlogin_r: Small fixes.
26342         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
26343         succeeds.
26344         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
26345         before testing whether getlogin_r is declared. No need to set
26346         HAVE_DECL_GETLOGIN_R to 1.
26347         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
26348
26349 2010-01-09  Bruno Haible  <bruno@clisp.org>
26350
26351         * lib/unistd.in.h (getlogin_r): Add comment.
26352
26353 2010-01-09  Bruno Haible  <bruno@clisp.org>
26354
26355         Tests for module 'getlogin_r'.
26356         * modules/getlogin_r-tests: New file.
26357         * tests/test-getlogin_r.c: New file.
26358
26359 2010-01-09  Jim Meyering  <meyering@redhat.com>
26360
26361         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
26362         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
26363         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
26364
26365 2010-01-08  Simon Josefsson  <simon@josefsson.org>
26366
26367         * lib/dup2.c (rpl_dup2): Improve comment.
26368
26369 2010-01-08  Eric Blake  <ebb9@byu.net>
26370
26371         maint.mk: allow packages to add makefile @@ exceptions
26372         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
26373         (sc_makefile_check): Rename...
26374         (sc_makefile_at_at_check): ...to this, and use hook.
26375
26376         dup2: work around mingw bug
26377         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
26378         Reported by Simon Josefsson.
26379
26380 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
26381
26382         glob: Fix C++ compilation.
26383         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
26384         C++.
26385
26386 2010-01-07  Bruno Haible  <bruno@clisp.org>
26387
26388         Fix indentation of wctype.in.h, broken since 2007-01-06.
26389         * lib/wctype.in.h: Fix indentation of preprocessor directives.
26390
26391 2010-01-07  Bruno Haible  <bruno@clisp.org>
26392
26393         mbslen: Avoid collision with system function.
26394         * lib/string.in.h [MirBSD]: Include <wchar.h>.
26395         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
26396         * m4/mbslen.m4: New file.
26397         * modules/mbslen (Files): Add it.
26398         (configure.ac): Invoke gl_MBSLEN.
26399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
26400         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
26401         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
26402         via Ian Beckwith <ianb@erislabs.net>.
26403
26404 2010-01-07  Bruno Haible  <bruno@clisp.org>
26405
26406         dirent: Document the last fix.
26407         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
26408
26409 2010-01-07  Bruno Haible  <bruno@clisp.org>
26410
26411         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
26412         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
26413         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
26414         va_list are defined.
26415         * doc/posix-headers/stdio.texi: Document the bug of missing types.
26416         Reported by Eric Blake.
26417
26418 2010-01-07  Bruno Haible  <bruno@clisp.org>
26419
26420         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
26421         * modules/xlist (Depends-on): Add 'list',
26422         * modules/xoset (Depends-on): Add 'oset'.
26423         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26424
26425 2010-01-07  Bruno Haible  <bruno@clisp.org>
26426
26427         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
26428         * doc/posix-functions/strncasecmp.texi: Likewise.
26429
26430 2010-01-07  Bruno Haible  <bruno@clisp.org>
26431
26432         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
26433
26434 2010-01-07  John W. Eaton  <jwe@octave.org>
26435
26436         wctype: allow C++ use
26437         * lib/wctype.in.h: Add extern "C" block for C++.
26438
26439 2010-01-06  Eric Blake  <ebb9@byu.net>
26440
26441         maint.mk: detect incorrect GFDL usage
26442         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
26443
26444 2010-01-06  Jim Meyering  <meyering@redhat.com>
26445         and Eric Blake  <ebb9@byu.net>
26446
26447         maint.mk: ignore multi-line copyright in NEWS
26448         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
26449
26450 2010-01-06  Eric Blake  <ebb9@byu.net>
26451
26452         select: add missing dependency
26453         * modules/select-tests (Depends-on): Move sockets dependency...
26454         * modules/select (Depends-on): ...here.
26455         Reported by Ian Beckwith.
26456
26457         doc: regenerate INSTALL
26458         * doc/INSTALL: Reflect recent autoconf update.
26459         * doc/INSTALL.ISO: Likewise.
26460         * doc/INSTALL.UTF-8: Likewise.
26461
26462         pread: fix compilation on glibc
26463         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
26464         Reported by Ralf Wildenhues.
26465
26466         dirent: fix test failure
26467         * lib/dirent.in.h (includes): Guarantee ino_t.
26468         Reported by Ralf Wildenhues.
26469
26470 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
26471
26472         linkat, renameat: avoid bad free
26473         * lib/at-func2.c (at_func2): Fix typo.
26474         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
26475
26476 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26477
26478         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
26479         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
26480         to avoid failure of symlink test later.
26481
26482 2010-01-06  Eric Blake  <ebb9@byu.net>
26483
26484         stdio, unistd: guarantee ssize_t
26485         * lib/unistd.in.h (includes): Ensure that types required by POSIX
26486         2008 are exposed when needed.
26487         * lib/stdio.in.h (includes): Likewise.
26488         Reported by Ralf Wildenhues.
26489
26490 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
26491
26492         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
26493         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
26494         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
26495
26496 2010-01-06  Jim Meyering  <meyering@redhat.com>
26497
26498         readtokens: this module *does* require xalloc.h
26499         It uses only functions that were omitted by the old syntax-check rule.
26500         * lib/readtokens.c: Include "xalloc.h" once again.
26501         * modules/readtokens (Depends-on): Add xalloc.
26502         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
26503
26504 2010-01-05  Eric Blake  <ebb9@byu.net>
26505
26506         maint: support 'make announcement' from a VPATH build
26507         * top/maint.mk (announcement): Look for correct NEWS file.
26508
26509 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
26510
26511         utimens (fdutimens): ignore a negative FD, per contract
26512         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
26513         when we have a valid file descriptor.  Otherwise, using a brand
26514         new glibc (with just-patched futimens that now fails with EBADF)
26515         would cause this function to fail with ENOSYS.
26516         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
26517         See also http://bugzilla.redhat.com/552320.
26518
26519 2010-01-05  Eric Blake  <ebb9@byu.net>
26520
26521         strcase: document what it provides
26522         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
26523         gnulib module.
26524         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
26525         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
26526
26527 2010-01-05  Jim Meyering  <meyering@redhat.com>
26528
26529         maint: remove useless inclusions of "xalloc.h"
26530         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
26531         * lib/readtokens.c: Likewise.
26532         * lib/same.c: Likewise.
26533         * modules/getloadavg (Depends-on): Remove xalloc.
26534         * modules/readtokens: Likewise.
26535         * modules/same: Likewise.
26536
26537         maint.mk: include 4 more function names in alloca.h-checking regexp
26538         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
26539         regexp.  Before, we would give a false-positive (saying alloca.h
26540         is included unnecessarily) when the only uses involved omitted symbols.
26541
26542         xalloc.h: use consistent formatting
26543         * lib/xalloc.h: Move declarations to start in the first column.
26544
26545 2010-01-05  Eric Blake  <ebb9@byu.net>
26546
26547         mkdir: avoid xalloc
26548         * lib/mkdir.c (includes): Drop unused header.
26549         Reported by John W. Eaton.
26550
26551 2010-01-04  Jim Meyering  <meyering@redhat.com>
26552
26553         nl_langinfo: avoid configure-time syntax error
26554         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
26555         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
26556         the empty string.  Don't let that provoke a shell syntax error.
26557
26558         regcomp, regexec, fnmatch: avoid array bounds read error
26559         * lib/regcomp.c (build_equiv_class): From glibc:
26560         Use only the low 24 bits of a findidx return value as an index
26561         into the weights array.  Patch by Ulrich Drepper:
26562         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
26563         * lib/regexec.c (check_node_accept_bytes): Likewise.
26564         * lib/fnmatch_loop.c (FCT): Likewise.
26565
26566         regcomp: skip collseq lookup when there are no rules
26567         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
26568         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
26569
26570         regcomp: recognize ill-formed { } expressions
26571         * lib/regcomp.c (parse_dup_op): From glibc:
26572         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
26573
26574         regcomp: fix typo in comment
26575         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
26576         s/satisfy/satisfies/.
26577
26578         regcomp: sync from glibc: remove dead store
26579         * lib/regcomp.c (duplicate_node_closure): Remove useless
26580         search_duplicated_node call and dead store.
26581
26582         regcomp: sync from glibc; always use nl_langinfo
26583         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
26584         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
26585         * modules/regex (Depends-on): Add nl_langinfo.
26586
26587 2010-01-04  Eric Blake  <ebb9@byu.net>
26588
26589         fdopendir: fix configure test
26590         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
26591
26592 2010-01-01  Bruno Haible  <bruno@clisp.org>
26593
26594         wchar: Remove unused configure check.
26595         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
26596
26597 2010-01-01  Eric Blake  <ebb9@byu.net>
26598
26599         headers: make check of system header explicit
26600         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
26601         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
26602         ourselves.
26603         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26604         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26605         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
26606         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
26607         internals.
26608         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
26609         missing.
26610         Suggested by Bruno Haible.
26611
26612 2010-01-01  Jim Meyering  <meyering@redhat.com>
26613
26614         ChangeLog: tweak to eliminate unnecessary copyright line
26615         * ChangeLog: Remove a copyright line that was mistakenly updated
26616         by today's update-copyright run.  Reported by Eric Blake.
26617
26618         test-update-copyright: don't let envvar setting cause test failure
26619         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26620
26621 2010-01-01  Bruno Haible  <bruno@clisp.org>
26622
26623         localename: Avoid gcc warning.
26624         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
26625         function if it is not used.
26626
26627 2010-01-01  Jim Meyering  <meyering@redhat.com>
26628
26629         update nearly all FSF copyright year lists to include 2010
26630         Use the same procedure as for 2009, outlined in
26631         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
26632
26633         version-etc: set COPYRIGHT_YEAR to 2010
26634         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
26635
26636 2009-12-31  Eric Blake  <ebb9@byu.net>
26637
26638         doc: correct availability of cygwin 1.5.x getopt
26639         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
26640         variables.
26641         * doc/posix-functions/opterr.texi (opterr): Likewise.
26642         * doc/posix-functions/optind.texi (optind): Likewise.
26643         * doc/posix-functions/optopt.texi (optopt): Likewise.
26644         * doc/posix-functions/tzname.texi (tzname): Likewise.
26645
26646         openat: update maintainer
26647         * modules/openat (Maintainer): Add myself.
26648
26649         utimens: avoid shadowing warning
26650         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
26651         buffers into one, to avoid shadowing, as well as avoiding a
26652         redundant stat.
26653         Reported by Jim Meyering.
26654
26655         test-dup2: avoid compiler warning
26656         * tests/test-dup2.c (is_inheritable): Only define if used.
26657
26658 2010-01-01  Bruno Haible  <bruno@clisp.org>
26659
26660         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
26661         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
26662         defined, use wctomb instead of wcrtomb.
26663
26664 2010-01-01  Bruno Haible  <bruno@clisp.org>
26665
26666         iconv: Reject native Solaris iconv.
26667         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
26668         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
26669
26670 2009-12-31  Bruno Haible  <bruno@clisp.org>
26671
26672         * tests/test-signal.c (main): Remove test of 'SIG'.
26673
26674 2009-12-31  Bruno Haible  <bruno@clisp.org>
26675
26676         spawn: Fix incomplete fix.
26677         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26678         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26679         warnings for GNULIB_POSIXCHECK again.
26680         Reported by Eric Blake.
26681
26682 2009-12-31  Bruno Haible  <bruno@clisp.org>
26683
26684         Avoid namespace pollution on glibc systems.
26685         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
26686         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
26687         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
26688         glibc systems.
26689
26690 2009-12-31  Bruno Haible  <bruno@clisp.org>
26691
26692         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
26693         (gl_REPLACE_WCHAR_H): Turn into a no-op.
26694         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
26695         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
26696         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
26697         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
26698         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
26699
26700 2009-12-31  Bruno Haible  <bruno@clisp.org>
26701
26702         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26703         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
26704         afterwards.
26705
26706 2009-12-31  Bruno Haible  <bruno@clisp.org>
26707
26708         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
26709         SYS_UTSNAME_H.
26710
26711 2009-12-31  Bruno Haible  <bruno@clisp.org>
26712
26713         spawn: Fix misapplied patch.
26714         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26715         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26716         warnings for GNULIB_POSIXCHECK.
26717
26718 2009-12-31  Bruno Haible  <bruno@clisp.org>
26719
26720         times: Update after sys_times changed.
26721         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
26722         * modules/times (Files): Add it.
26723         (configure.ac): Invoke gl_FUNC_TIMES.
26724
26725 2009-12-31  Bruno Haible  <bruno@clisp.org>
26726
26727         Use AC_C_INLINE where necessary.
26728         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
26729         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26730         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26731         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
26732         * m4/mbfile.m4 (gl_MBFILE): Likewise.
26733         * m4/mbiter.m4 (gl_MBITER): Likewise.
26734         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26735         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26736         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
26737         * modules/u64 (configure.ac): Likewise.
26738
26739 2009-12-31  Bruno Haible  <bruno@clisp.org>
26740
26741         Use AC_C_INLINE instead of module 'inline' where possible.
26742         * modules/inline (Description): Clarify purpose.
26743         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
26744         * modules/count-one-bits (Depends-on): Remove inline.
26745         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
26746         * modules/openat (Depends-on): Remove inline.
26747         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
26748         instead of depending on module 'inline'.
26749         * modules/filevercmp (Depends-on, configure.ac): Likewise.
26750         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
26751         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
26752         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
26753         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
26754         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
26755         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
26756         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
26757         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
26758         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
26759         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
26760         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
26761         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
26762         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
26763         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
26764         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
26765         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
26766         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
26767         Likewise.
26768         * modules/unictype/property-ascii-hex-digit (Depends-on,
26769         configure.ac): Likewise.
26770         * modules/unictype/property-bidi-arabic-digit (Depends-on,
26771         configure.ac): Likewise.
26772         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
26773         configure.ac): Likewise.
26774         * modules/unictype/property-bidi-block-separator (Depends-on,
26775         configure.ac): Likewise.
26776         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
26777         configure.ac): Likewise.
26778         * modules/unictype/property-bidi-common-separator (Depends-on,
26779         configure.ac): Likewise.
26780         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
26781         Likewise.
26782         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
26783         configure.ac): Likewise.
26784         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
26785         configure.ac): Likewise.
26786         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
26787         configure.ac): Likewise.
26788         * modules/unictype/property-bidi-european-digit (Depends-on,
26789         configure.ac): Likewise.
26790         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
26791         configure.ac): Likewise.
26792         * modules/unictype/property-bidi-left-to-right (Depends-on,
26793         configure.ac): Likewise.
26794         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26795         configure.ac): Likewise.
26796         * modules/unictype/property-bidi-other-neutral (Depends-on,
26797         configure.ac): Likewise.
26798         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26799         Likewise.
26800         * modules/unictype/property-bidi-segment-separator (Depends-on,
26801         configure.ac): Likewise.
26802         * modules/unictype/property-bidi-whitespace (Depends-on,
26803         configure.ac): Likewise.
26804         * modules/unictype/property-combining (Depends-on, configure.ac):
26805         Likewise.
26806         * modules/unictype/property-composite (Depends-on, configure.ac):
26807         Likewise.
26808         * modules/unictype/property-currency-symbol (Depends-on,
26809         configure.ac): Likewise.
26810         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26811         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26812         Likewise.
26813         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26814         configure.ac): Likewise.
26815         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26816         Likewise.
26817         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26818         Likewise.
26819         * modules/unictype/property-extender (Depends-on, configure.ac):
26820         Likewise.
26821         * modules/unictype/property-format-control (Depends-on, configure.ac):
26822         Likewise.
26823         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
26824         Likewise.
26825         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
26826         Likewise.
26827         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
26828         Likewise.
26829         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
26830         Likewise.
26831         * modules/unictype/property-hyphen (Depends-on, configure.ac):
26832         Likewise.
26833         * modules/unictype/property-id-continue (Depends-on, configure.ac):
26834         Likewise.
26835         * modules/unictype/property-id-start (Depends-on, configure.ac):
26836         Likewise.
26837         * modules/unictype/property-ideographic (Depends-on, configure.ac):
26838         Likewise.
26839         * modules/unictype/property-ids-binary-operator (Depends-on,
26840         configure.ac): Likewise.
26841         * modules/unictype/property-ids-trinary-operator (Depends-on,
26842         configure.ac): Likewise.
26843         * modules/unictype/property-ignorable-control (Depends-on,
26844         configure.ac): Likewise.
26845         * modules/unictype/property-iso-control (Depends-on, configure.ac):
26846         Likewise.
26847         * modules/unictype/property-join-control (Depends-on, configure.ac):
26848         Likewise.
26849         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
26850         Likewise.
26851         * modules/unictype/property-line-separator (Depends-on, configure.ac):
26852         Likewise.
26853         * modules/unictype/property-logical-order-exception (Depends-on,
26854         configure.ac): Likewise.
26855         * modules/unictype/property-lowercase (Depends-on, configure.ac):
26856         Likewise.
26857         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
26858         * modules/unictype/property-non-break (Depends-on, configure.ac):
26859         Likewise.
26860         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
26861         Likewise.
26862         * modules/unictype/property-numeric (Depends-on, configure.ac):
26863         Likewise.
26864         * modules/unictype/property-other-alphabetic (Depends-on,
26865         configure.ac): Likewise.
26866         * modules/unictype/property-other-default-ignorable-code-point
26867         (Depends-on, configure.ac): Likewise.
26868         * modules/unictype/property-other-grapheme-extend (Depends-on,
26869         configure.ac): Likewise.
26870         * modules/unictype/property-other-id-continue (Depends-on,
26871         configure.ac): Likewise.
26872         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
26873         Likewise.
26874         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
26875         Likewise.
26876         * modules/unictype/property-other-math (Depends-on, configure.ac):
26877         Likewise.
26878         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
26879         Likewise.
26880         * modules/unictype/property-paired-punctuation (Depends-on,
26881         configure.ac): Likewise.
26882         * modules/unictype/property-paragraph-separator (Depends-on,
26883         configure.ac): Likewise.
26884         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26885         Likewise.
26886         * modules/unictype/property-pattern-white-space (Depends-on,
26887         configure.ac): Likewise.
26888         * modules/unictype/property-private-use (Depends-on, configure.ac):
26889         Likewise.
26890         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26891         Likewise.
26892         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26893         Likewise.
26894         * modules/unictype/property-radical (Depends-on, configure.ac):
26895         Likewise.
26896         * modules/unictype/property-sentence-terminal (Depends-on,
26897         configure.ac): Likewise.
26898         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26899         Likewise.
26900         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26901         * modules/unictype/property-terminal-punctuation (Depends-on,
26902         configure.ac): Likewise.
26903         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26904         Likewise.
26905         * modules/unictype/property-unassigned-code-value (Depends-on,
26906         configure.ac): Likewise.
26907         * modules/unictype/property-unified-ideograph (Depends-on,
26908         configure.ac): Likewise.
26909         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26910         Likewise.
26911         * modules/unictype/property-variation-selector (Depends-on,
26912         configure.ac): Likewise.
26913         * modules/unictype/property-white-space (Depends-on, configure.ac):
26914         Likewise.
26915         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26916         Likewise.
26917         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26918         Likewise.
26919         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26920         Likewise.
26921         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26922         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26923         Likewise.
26924
26925 2009-12-31  Bruno Haible  <bruno@clisp.org>
26926
26927         Remove unnecessary AC_C_INLINE invocation.
26928         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26929         since 2009-08-21.
26930
26931 2009-12-31  Jim Meyering  <meyering@redhat.com>
26932
26933         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26934         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26935         With this change, we can all remove the gpg_key_ID = ... definition
26936         from our respective cfg.mk files.
26937
26938         maint.mk: create announcement template in ~/, not in /tmp
26939         * top/maint.mk (emit_upload_commands): Adjust.
26940         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26941         Remove temporary file, .ci-msg.
26942
26943 2009-12-31  Eric Blake  <ebb9@byu.net>
26944
26945         link-warning: always build headers with link warnings
26946         * modules/arpa_inet (Makefile.am): Always build replacement
26947         header.
26948         * modules/ctype (Makefile.am): Likewise.
26949         * modules/dirent (Makefile.am): Likewise.
26950         * modules/inttypes (Makefile.am): Likewise.
26951         * modules/langinfo (Makefile.am): Likewise.
26952         * modules/locale (Makefile.am): Likewise.
26953         * modules/spawn (Makefile.am): Likewise.
26954         * modules/sys_file (Makefile.am): Likewise.
26955         * modules/sys_ioctl (Makefile.am): Likewise.
26956         * modules/sys_select (Makefile.am): Likewise.
26957         * modules/sys_socket (Makefile.am): Likewise.
26958         * modules/sys_times (Makefile.am): Likewise.
26959         * modules/sys_utsname (Makefile.am): Likewise.
26960         * modules/sys_wait (Makefile.am): Likewise.
26961         * modules/wchar (Makefile.am): Likewise.
26962         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26963         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26964         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26965         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26966         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26967         Likewise.
26968         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26969         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26970         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26971         Likewise.
26972         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26973         Likewise.
26974         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26975         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26976         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26977         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26978         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26979         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26980         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26981         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26982         (gl_WCHAR_H_DEFAULTS): Likewise.
26983
26984 2009-12-31  Eric Blake  <ebb9@byu.net>
26985
26986         signal, spawn: use link warnings
26987         * lib/signal.in.h (sigset_t): Make unconditional.
26988         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26989         (sigpending, sigprocmask, sigaction): Add link warnings.
26990         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26991         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26992         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26993         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26994         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26995         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26996         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26997         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26998         (posix_spawn_file_actions_destroy)
26999         (posix_spawn_file_actions_addopen)
27000         (posix_spawn_file_actions_addclose)
27001         (posix_spawn_file_actions_adddup2): Likewise.
27002         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
27003         * tests/test-signal.c (main): Enhance test.
27004
27005         spawn: improve wrapper support
27006         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
27007         (gl_SPAWN_H_DEFAULTS): New defaults.
27008         * modules/spawn (Makefile.am): Substitute them.
27009         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
27010         Only declare if missing or broken.
27011
27012         sys_times, sys_utsname: use include_next
27013         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
27014         header.
27015         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
27016         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
27017         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
27018         * modules/sys_times (Depends-on): Add include_next.
27019         (Makefile.am): Substitute additional values.
27020         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27021         * lib/sys_times.in.h (includes): Include native header, if
27022         available.
27023         * lib/sys_utsname.in.h (includes): Likewise.
27024         * tests/test-sys_times.c (main): Enhance test.
27025
27026         fdutimensat: revert prior patch
27027         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
27028         utimens.h.
27029         Reported by Bruno Haible.
27030
27031 2009-12-30  Eric Blake  <ebb9@byu.net>
27032
27033         sys_wait: drop link-warning dependency
27034         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
27035         link-warning efforts.
27036         * lib/sys_wait.in.h: Likewise.
27037
27038         fdutimensat: remove bogus dependency
27039         * modules/fdutimensat (Depends-on): Drop inline.
27040
27041         unistd: fix typo
27042         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
27043
27044 2009-12-30  Bruno Haible  <bruno@clisp.org>
27045
27046         Fix compilation error with Solaris cc.
27047         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
27048         * lib/unicase/u16-is-invariant.c: Likewise.
27049         * lib/unicase/u32-is-invariant.c: Likewise.
27050         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27051
27052 2009-12-30  Bruno Haible  <bruno@clisp.org>
27053
27054         Fix test crash.
27055         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
27056         locales.
27057         Reported by Simon Josefsson <simon@josefsson.org>.
27058
27059 2009-12-30  Bruno Haible  <bruno@clisp.org>
27060
27061         Fix compilation error on most platforms.
27062         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
27063         Reported by Simon Josefsson <simon@josefsson.org>
27064         and Nelson H. F. Beebe <beebe@math.utah.edu>.
27065
27066 2009-12-30  Eric Blake  <ebb9@byu.net>
27067
27068         futimens, utimensat: work around ntfs-3g bug
27069         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
27070         a ctime bug is present, and expand workaround to cover ntfs-3g.
27071         * lib/utimens.c (fdutimens, lutimens): Likewise.
27072         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
27073         (validate_timespec): Adjust return value.
27074         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
27075         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27076         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
27077
27078 2009-12-29  Eric Blake  <ebb9@byu.net>
27079
27080         link-warning: make usage consistent
27081         * modules/ctype (Depends-on): Add link-warning.
27082         (Makefile.am): Update rules accordingly.
27083         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27084         * modules/locale (Depends-on, Makefile.am): Likewise.
27085         * modules/sys_file (Makefile.am): Likewise.
27086         * modules/getopt-posix (Makefile.am): Delete unused link warning
27087         efforts.
27088         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
27089         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
27090         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
27091         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
27092
27093         stdio: remove unused variables
27094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
27095         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
27096         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27097
27098         tests: test more substitute headers
27099         * modules/ctype-tests: New file.
27100         * modules/dirent-tests: Likewise.
27101         * modules/spawn-tests: Likewise.
27102         * modules/sys_file-tests: Likewise.
27103         * modules/sys_ioctl-tests: Likewise.
27104         * modules/sys_wait-tests: Likewise.
27105         * tests/test-ctype.c: Likewise.
27106         * tests/test-dirent.c: Likewise.
27107         * tests/test-spawn.c: Likewise.
27108         * tests/test-sys_file.c: Likewise.
27109         * tests/test-sys_ioctl.c: Likewise.
27110         * tests/test-sys_wait.c: Likewise.
27111         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
27112         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
27113         whether or not flock is in use.
27114
27115         tests: remove License section from module
27116         * modules/arpa_inet-tests: Remove unneeded section.
27117         * modules/byteswap-tests: Likewise.
27118         * modules/ceilf-tests: Likewise.
27119         * modules/ceill-tests: Likewise.
27120         * modules/crypto/des-tests: Likewise.
27121         * modules/crypto/gc-arcfour-tests: Likewise.
27122         * modules/crypto/gc-arctwo-tests: Likewise.
27123         * modules/crypto/gc-des-tests: Likewise.
27124         * modules/crypto/gc-hmac-md5-tests: Likewise.
27125         * modules/crypto/gc-hmac-sha1-tests: Likewise.
27126         * modules/crypto/gc-md2-tests: Likewise.
27127         * modules/crypto/gc-md4-tests: Likewise.
27128         * modules/crypto/gc-md5-tests: Likewise.
27129         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
27130         * modules/crypto/gc-rijndael-tests: Likewise.
27131         * modules/crypto/gc-sha1-tests: Likewise.
27132         * modules/crypto/gc-tests: Likewise.
27133         * modules/crypto/md2-tests: Likewise.
27134         * modules/crypto/md4-tests: Likewise.
27135         * modules/fcntl-h-tests: Likewise.
27136         * modules/floorf-tests: Likewise.
27137         * modules/floorl-tests: Likewise.
27138         * modules/frexp-nolibm-tests: Likewise.
27139         * modules/frexp-tests: Likewise.
27140         * modules/frexpl-nolibm-tests: Likewise.
27141         * modules/frexpl-tests: Likewise.
27142         * modules/getaddrinfo-tests: Likewise.
27143         * modules/inttypes-tests: Likewise.
27144         * modules/isfinite-tests: Likewise.
27145         * modules/isinf-tests: Likewise.
27146         * modules/ldexpl-tests: Likewise.
27147         * modules/locale-tests: Likewise.
27148         * modules/math-tests: Likewise.
27149         * modules/netdb-tests: Likewise.
27150         * modules/netinet_in-tests: Likewise.
27151         * modules/printf-frexp-tests: Likewise.
27152         * modules/printf-frexpl-tests: Likewise.
27153         * modules/priv-set-tests: Likewise.
27154         * modules/random_r-tests: Likewise.
27155         * modules/round-tests: Likewise.
27156         * modules/roundf-tests: Likewise.
27157         * modules/roundl-tests: Likewise.
27158         * modules/search-tests: Likewise.
27159         * modules/select-tests: Likewise.
27160         * modules/signal-tests: Likewise.
27161         * modules/stdbool-tests: Likewise.
27162         * modules/stddef-tests: Likewise.
27163         * modules/stdint-tests: Likewise.
27164         * modules/stdio-tests: Likewise.
27165         * modules/stdlib-tests: Likewise.
27166         * modules/string-tests: Likewise.
27167         * modules/strings-tests: Likewise.
27168         * modules/sys_select-tests: Likewise.
27169         * modules/sys_socket-tests: Likewise.
27170         * modules/sys_stat-tests: Likewise.
27171         * modules/sys_time-tests: Likewise.
27172         * modules/sys_utsname-tests: Likewise.
27173         * modules/sysexits-tests: Likewise.
27174         * modules/time-tests: Likewise.
27175         * modules/trunc-tests: Likewise.
27176         * modules/truncf-tests: Likewise.
27177         * modules/truncl-tests: Likewise.
27178         * modules/tsearch-tests: Likewise.
27179         * modules/unistd-tests: Likewise.
27180         * modules/wchar-tests: Likewise.
27181         * modules/wctype-tests: Likewise.
27182
27183         tests: fix license on several tests
27184         * tests/test-des.c: Update to GPLv3+.
27185         * tests/test-flock.c: Likewise.
27186         * tests/test-fsync.c: Likewise.
27187         * tests/test-futimens.h: Likewise.
27188         * tests/test-gc-arcfour.c: Likewise.
27189         * tests/test-gc-arctwo.c: Likewise.
27190         * tests/test-gc-des.c: Likewise.
27191         * tests/test-gc-hmac-md5.c: Likewise.
27192         * tests/test-gc-hmac-sha1.c: Likewise.
27193         * tests/test-gc-md2.c: Likewise.
27194         * tests/test-gc-md4.c: Likewise.
27195         * tests/test-gc-md5.c: Likewise.
27196         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27197         * tests/test-gc-rijndael.c: Likewise.
27198         * tests/test-gc-sha1.c: Likewise.
27199         * tests/test-gc.c: Likewise.
27200         * tests/test-getcwd.c: Likewise.
27201         * tests/test-link.c: Likewise.
27202         * tests/test-link.h: Likewise.
27203         * tests/test-lutimens.h: Likewise.
27204         * tests/test-md2.c: Likewise.
27205         * tests/test-md4.c: Likewise.
27206         * tests/test-mkdir.h: Likewise.
27207         * tests/test-rename.c: Likewise.
27208         * tests/test-rename.h: Likewise.
27209         * tests/test-safe-alloc.c: Likewise.
27210         * tests/test-utimens-common.h: Likewise.
27211         * tests/test-utimens.h: Likewise.
27212
27213         maint: sync license texts
27214         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
27215         * doc/gpl-3.0.texi: Revert copyright year update.
27216         * doc/lgpl-3.0.texi: Likewise.
27217
27218 2009-12-29  Jim Meyering  <meyering@redhat.com>
27219
27220         update nearly all FSF copyright year lists to include 2009
27221         The files named by the following are exempted:
27222             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
27223               test -f "$dst" && { echo "$dst"; continue; }
27224               test -d "$dst" || continue
27225               echo "$dst"/$(basename "$src")
27226             done > exempt
27227             git ls-files tests/unictype >> exempt
27228         In the remaining files, convert to all-interval notation if
27229         - there is already at least one year interval like 2000-2003
27230         - the file is maintained by me
27231         - the file is in lib/uni*/, where that style already prevails
27232         Otherwise, use update-copyright's default.
27233
27234 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27235         and Eric Blake  <ebb9@byu.net>
27236
27237         tests: don't require debug system() to pass
27238         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
27239         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27240         * tests/test-unlink.h (test_unlink_func): Likewise.
27241         * tests/test-fstatat.c (main): ...into callers.
27242         * tests/test-lstat.c (main): Likewise.
27243         * tests/test-rmdir.c (main): Likewise.
27244         * tests/test-unlink.c (main): Likewise.
27245         * tests/test-unlinkat.c (main): Likewise.
27246         * tests/test-areadlink-with-size.c (main): Don't require a
27247         debug-only system call to pass, aiding cross-testing to mingw.
27248         * tests/test-areadlink.c (main): Likewise.
27249         * tests/test-areadlinkat-with-size.c (main): Likewise.
27250         * tests/test-areadlinkat.c (main): Likewise.
27251         * tests/test-canonicalize-lgpl.c (main): Likewise.
27252         * tests/test-canonicalize.c (main): Likewise.
27253         * tests/test-chown.c (main): Likewise.
27254         * tests/test-fchownat.c (main): Likewise.
27255         * tests/test-lchown.c (main): Likewise.
27256         * tests/test-fdutimensat.c (main): Likewise.
27257         * tests/test-futimens.c (main): Likewise.
27258         * tests/test-link.c (main): Likewise.
27259         * tests/test-linkat.c (main): Likewise.
27260         * tests/test-mkdir.c (main): Likewise.
27261         * tests/test-mkdirat.c (main): Likewise.
27262         * tests/test-mkfifo.c (main): Likewise.
27263         * tests/test-mkfifoat.c (main): Likewise.
27264         * tests/test-mknod.c (main): Likewise.
27265         * tests/test-readlink.c (main): Likewise.
27266         * tests/test-remove.c (main): Likewise.
27267         * tests/test-rename.c (main): Likewise.
27268         * tests/test-renameat.c (main): Likewise.
27269         * tests/test-symlink.c (main): Likewise.
27270         * tests/test-symlinkat.c (main): Likewise.
27271         * tests/test-utimens.c (main): Likewise.
27272         * tests/test-utimensat.c (main): Likewise.
27273
27274 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27275
27276         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
27277         on $(UNUSED_PARAMETER_H) to avoid build failure.
27278
27279 2009-12-28  Jim Meyering  <meyering@redhat.com>
27280
27281         update-copyright: you may specify a max. line length other than 72
27282         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27283
27284         maint: use consistent FSF copyright line syntax
27285         * lib/posixtm.c: Add missing comma in FSF copyright line.
27286         * lib/posixtm.h: Likewise.
27287         * lib/getugroups.c: Add missing ", Inc.".
27288
27289         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
27290         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
27291         FSF copyright line.  Remove trailing blanks.
27292
27293 2009-12-28  Eric Blake  <ebb9@byu.net>
27294
27295         test-dup2: reduce dependencies
27296         * modules/cloexec (Configure.ac): Set witness.
27297         * modules/dup2-tests (Depends-on): Drop cloexec.
27298         * tests/test-dup2.c (main): Skip portion of test if cloexec module
27299         not present.
27300         Suggested by Bruno Haible.
27301
27302 2009-12-26  Bruno Haible  <bruno@clisp.org>
27303
27304         Remove an unneeded dependency.
27305         * modules/fseterr (Depends-on): Remove dup2.
27306
27307 2009-12-26  Eric Blake  <ebb9@byu.net>
27308
27309         tests: use macros.h in more places
27310         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
27311         (ASSERT_STREAM): Provide default of stderr.
27312         * tests/test-dirent-safer.c: Include macros.h, using alternate
27313         stream for assertions.
27314         * tests/test-dup-safer.c: Likewise.
27315         * tests/test-freopen-safer.c: Likewise.
27316         * tests/test-getopt.c: Likewise.
27317         * tests/test-openat-safer.c: Likewise.
27318         * tests/test-pipe.c: Likewise.
27319         * tests/test-popen-safer.c: Likewise.
27320         * modules/dirent-safer-tests (Files): Include macros.h.
27321         * modules/unistd-safer-tests (Files): Likewise.
27322         * modules/freopen-safer-tests (Files): Likewise.
27323         * modules/getopt-posix-tests (Files): Likewise.
27324         * modules/openat-safer-tests (Files): Likewise.
27325         * modules/pipe-tests (Files): Likewise.
27326
27327 2009-12-26  Bruno Haible  <bruno@clisp.org>
27328
27329         javacomp: Portability fix.
27330         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
27331         that it also works on Solaris.
27332
27333 2009-12-26  Bruno Haible  <bruno@clisp.org>
27334
27335         localename: Fix storage allocation of gl_locale_name_thread's result.
27336         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
27337         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
27338         all platforms that have 'uselocale'.
27339         (gl_locale_name_thread_unsafe): New function, extracted from
27340         gl_locale_name_thread.
27341         (gl_locale_name_thread): Call struniq on all platforms that have
27342         'uselocale'.
27343         * tests/test-localename.c (test_locale_name_thread): Check that the
27344         resulting strings are permanently allocated.
27345         * modules/localename-tests (Depends-on): Add strdup.
27346
27347 2009-12-26  Bruno Haible  <bruno@clisp.org>
27348
27349         * tests/test-localename.c (categories): Fill in the strings.
27350
27351 2009-12-26  Jim Meyering  <meyering@redhat.com>
27352
27353         isdir: complete the removal of m4/isdir.m4
27354         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
27355
27356         isdir: clean up, since at least grep still uses it
27357         * lib/isdir.c: Include "isdir.h".
27358         (S_ISDIR): Remove now-unneeded definition.
27359         * modules/isdir (Files): Add lib/isdir.h.
27360         * lib/isdir.h: New file, with declaration.
27361         * m4/isdir.m4: Remove file -- unneeded.
27362
27363 2009-12-25  Bruno Haible  <bruno@clisp.org>
27364
27365         selinux-h: Make generated .h files standalone.
27366         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
27367         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
27368         * lib/se-selinux.in.h: Likewise.
27369         * modules/selinux-h (Depends-on): Add unused-parameter.
27370         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
27371         selinux/selinux.h and selinux/context.h.
27372         Suggested by Eric Blake.
27373
27374 2009-12-25  Bruno Haible  <bruno@clisp.org>
27375
27376         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
27377         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
27378         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
27379         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
27380         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
27381
27382 2009-12-24  Bruno Haible  <bruno@clisp.org>
27383
27384         openat: Fix warning.
27385         * lib/openat-proc.c: Include <unistd.h>.
27386
27387 2009-12-24  Bruno Haible  <bruno@clisp.org>
27388
27389         New module 'unused-parameter'.
27390         * build-aux/unused-parameter.h: New file, extracted from earlier
27391         gnulib-common.m4.
27392         * modules/unused-parameter: New file.
27393         * lib/unistr.h: Include unused-parameter.h.
27394         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
27395         _GL_UNUSED.
27396         * modules/unistr/base (Depends-on): Add unused-parameter.
27397
27398 2009-12-24  Bruno Haible  <bruno@clisp.org>
27399
27400         Add missing dependencies to 'extensions' module.
27401         * m4/extensions.m4: Add comment.
27402         * modules/accept4 (Depends-on): Add extensions.
27403         * modules/dup3 (Depends-on): Likewise.
27404         * modules/fcntl (Depends-on): Likewise.
27405         * modules/futimens (Depends-on): Likewise.
27406         * modules/mknod (Depends-on): Likewise.
27407         * modules/pipe2 (Depends-on): Likewise.
27408         * modules/stat-time (Depends-on): Likewise.
27409         * modules/strcasestr-simple (Depends-on): Likewise.
27410         * modules/strsignal (Depends-on): Likewise.
27411         * modules/utimensat (Depends-on): Likewise.
27412         * modules/localcharset (Depends-on): Likewise. Needed because of
27413         gl_FCNTL_O_FLAGS.
27414         * modules/wcrtomb (Depends-on): Likewise. Needed because of
27415         AC_TYPE_MBSTATE_T.
27416         * modules/wcsnrtombs (Depends-on): Likewise.
27417         * modules/wcsrtombs (Depends-on): Likewise.
27418
27419 2009-12-24  Bruno Haible  <bruno@clisp.org>
27420
27421         binary-io: Avoid gcc warning due to SET_BINARY.
27422         * lib/binary-io.h (SET_BINARY): Cast the result to void.
27423         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
27424
27425 2009-12-24  Bruno Haible  <bruno@clisp.org>
27426
27427         Avoid future namespace pollution on glibc systems.
27428         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
27429         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
27430         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
27431         glibc systems.
27432
27433 2009-12-24  Bruno Haible  <bruno@clisp.org>
27434
27435         Refactor common macros used in tests.
27436         * tests/macros.h: New file.
27437         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
27438         and/or <stdlib.h>, if appropriate.
27439         (ASSERT, SIZEOF): Remove macros.
27440         * tests/test-areadlink-with-size.c: Likewise.
27441         * tests/test-areadlinkat.c: Likewise.
27442         * tests/test-areadlinkat-with-size.c: Likewise.
27443         * tests/test-argmatch.c: Likewise.
27444         * tests/test-argv-iter.c: Likewise.
27445         * tests/test-array-mergesort.c: Likewise.
27446         * tests/test-array_list.c: Likewise.
27447         * tests/test-array_oset.c: Likewise.
27448         * tests/test-avltree_list.c: Likewise.
27449         * tests/test-avltree_oset.c: Likewise.
27450         * tests/test-avltreehash_list.c: Likewise.
27451         * tests/test-base64.c: Likewise.
27452         * tests/test-binary-io.c: Likewise.
27453         * tests/test-bitrotate.c: Likewise.
27454         * tests/test-btowc.c: Likewise.
27455         * tests/test-byteswap.c: Likewise.
27456         * tests/test-c-ctype.c: Likewise.
27457         * tests/test-c-stack.c: Likewise.
27458         * tests/test-c-strcasecmp.c: Likewise.
27459         * tests/test-c-strcasestr.c: Likewise.
27460         * tests/test-c-strncasecmp.c: Likewise.
27461         * tests/test-c-strstr.c: Likewise.
27462         * tests/test-canonicalize-lgpl.c: Likewise.
27463         * tests/test-canonicalize.c: Likewise.
27464         * tests/test-carray_list.c: Likewise.
27465         * tests/test-ceilf1.c: Likewise.
27466         * tests/test-ceilf2.c: Likewise.
27467         * tests/test-ceill.c: Likewise.
27468         * tests/test-chown.c: Likewise.
27469         * tests/test-cloexec.c: Likewise.
27470         * tests/test-copy-acl.c: Likewise.
27471         * tests/test-copy-file.c: Likewise.
27472         * tests/test-count-one-bits.c: Likewise.
27473         * tests/test-dprintf-posix.c: Likewise.
27474         * tests/test-dup2.c: Likewise.
27475         * tests/test-dup3.c: Likewise.
27476         * tests/test-duplocale.c: Likewise.
27477         * tests/test-fbufmode.c: Likewise.
27478         * tests/test-fchdir.c: Likewise.
27479         * tests/test-fchownat.c: Likewise.
27480         * tests/test-fcntl-safer.c: Likewise.
27481         * tests/test-fcntl.c: Likewise.
27482         * tests/test-fdopendir.c: Likewise.
27483         * tests/test-fdutimensat.c: Likewise.
27484         * tests/test-fflush2.c: Likewise.
27485         * tests/test-file-has-acl.c: Likewise.
27486         * tests/test-filevercmp.c: Likewise.
27487         * tests/test-flock.c: Likewise.
27488         * tests/test-floorf1.c: Likewise.
27489         * tests/test-floorf2.c: Likewise.
27490         * tests/test-floorl.c: Likewise.
27491         * tests/test-fnmatch.c: Likewise.
27492         * tests/test-fopen.h: Likewise.
27493         * tests/test-fpending.c: Likewise.
27494         * tests/test-fprintf-posix.c: Likewise.
27495         * tests/test-fpurge.c: Likewise.
27496         * tests/test-freadable.c: Likewise.
27497         * tests/test-freadahead.c: Likewise.
27498         * tests/test-freading.c: Likewise.
27499         * tests/test-freadptr.c: Likewise.
27500         * tests/test-freadptr2.c: Likewise.
27501         * tests/test-freadseek.c: Likewise.
27502         * tests/test-freopen.c: Likewise.
27503         * tests/test-frexp.c: Likewise.
27504         * tests/test-frexpl.c: Likewise.
27505         * tests/test-fseek.c: Likewise.
27506         * tests/test-fseeko.c: Likewise.
27507         * tests/test-fstatat.c: Likewise.
27508         * tests/test-fstrcmp.c: Likewise.
27509         * tests/test-fsync.c: Likewise.
27510         * tests/test-ftell.c: Likewise.
27511         * tests/test-ftello.c: Likewise.
27512         * tests/test-func.c: Likewise.
27513         * tests/test-futimens.c: Likewise.
27514         * tests/test-fwritable.c: Likewise.
27515         * tests/test-fwriting.c: Likewise.
27516         * tests/test-getcwd.c: Likewise.
27517         * tests/test-getdate.c: Likewise.
27518         * tests/test-getdelim.c: Likewise.
27519         * tests/test-getdtablesize.c: Likewise.
27520         * tests/test-getgroups.c: Likewise.
27521         * tests/test-getline.c: Likewise.
27522         * tests/test-getndelim2.c: Likewise.
27523         * tests/test-glob.c: Likewise.
27524         * tests/test-hash.c: Likewise.
27525         * tests/test-i-ring.c: Likewise.
27526         * tests/test-iconv-utf.c: Likewise.
27527         * tests/test-iconv.c: Likewise.
27528         * tests/test-idpriv-drop.c: Likewise.
27529         * tests/test-idpriv-droptemp.c: Likewise.
27530         * tests/test-inet_ntop.c: Likewise.
27531         * tests/test-inet_pton.c: Likewise.
27532         * tests/test-isblank.c: Likewise.
27533         * tests/test-isfinite.c: Likewise.
27534         * tests/test-isinf.c: Likewise.
27535         * tests/test-isnan.c: Likewise.
27536         * tests/test-isnand.h: Likewise.
27537         * tests/test-isnanf.h: Likewise.
27538         * tests/test-isnanl.h: Likewise.
27539         * tests/test-lchown.c: Likewise.
27540         * tests/test-ldexpl.c: Likewise.
27541         * tests/test-link.c: Likewise.
27542         * tests/test-linkat.c: Likewise.
27543         * tests/test-linked_list.c: Likewise.
27544         * tests/test-linkedhash_list.c: Likewise.
27545         * tests/test-localename.c: Likewise.
27546         * tests/test-lseek.c: Likewise.
27547         * tests/test-lstat.c: Likewise.
27548         * tests/test-mbmemcasecmp.c: Likewise.
27549         * tests/test-mbmemcasecoll.c: Likewise.
27550         * tests/test-mbrtowc.c: Likewise.
27551         * tests/test-mbscasecmp.c: Likewise.
27552         * tests/test-mbscasestr1.c: Likewise.
27553         * tests/test-mbscasestr2.c: Likewise.
27554         * tests/test-mbscasestr3.c: Likewise.
27555         * tests/test-mbscasestr4.c: Likewise.
27556         * tests/test-mbschr.c: Likewise.
27557         * tests/test-mbscspn.c: Likewise.
27558         * tests/test-mbsinit.c: Likewise.
27559         * tests/test-mbsncasecmp.c: Likewise.
27560         * tests/test-mbsnrtowcs.c: Likewise.
27561         * tests/test-mbspbrk.c: Likewise.
27562         * tests/test-mbspcasecmp.c: Likewise.
27563         * tests/test-mbsrchr.c: Likewise.
27564         * tests/test-mbsrtowcs.c: Likewise.
27565         * tests/test-mbsspn.c: Likewise.
27566         * tests/test-mbsstr1.c: Likewise.
27567         * tests/test-mbsstr2.c: Likewise.
27568         * tests/test-mbsstr3.c: Likewise.
27569         * tests/test-memchr.c: Likewise.
27570         * tests/test-memchr2.c: Likewise.
27571         * tests/test-memcmp.c: Likewise.
27572         * tests/test-memmem.c: Likewise.
27573         * tests/test-memrchr.c: Likewise.
27574         * tests/test-mkdir.c: Likewise.
27575         * tests/test-mkdirat.c: Likewise.
27576         * tests/test-mkfifo.c: Likewise.
27577         * tests/test-mkfifoat.c: Likewise.
27578         * tests/test-mknod.c: Likewise.
27579         * tests/test-nanosleep.c: Likewise.
27580         * tests/test-nl_langinfo.c: Likewise.
27581         * tests/test-obstack-printf.c: Likewise.
27582         * tests/test-open.c: Likewise.
27583         * tests/test-openat.c: Likewise.
27584         * tests/test-pipe-filter-gi1.c: Likewise.
27585         * tests/test-pipe-filter-gi2-main.c: Likewise.
27586         * tests/test-pipe-filter-ii1.c: Likewise.
27587         * tests/test-pipe-filter-ii2-main.c: Likewise.
27588         * tests/test-pipe2.c: Likewise.
27589         * tests/test-popen.h: Likewise.
27590         * tests/test-posixtm.c: Likewise.
27591         * tests/test-pread.c: Likewise.
27592         * tests/test-printf-frexp.c: Likewise.
27593         * tests/test-printf-frexpl.c: Likewise.
27594         * tests/test-printf-posix.c: Likewise.
27595         * tests/test-priv-set.c: Likewise.
27596         * tests/test-quotearg.c: Likewise.
27597         * tests/test-random_r.c: Likewise.
27598         * tests/test-rawmemchr.c: Likewise.
27599         * tests/test-rbtree_list.c: Likewise.
27600         * tests/test-rbtree_oset.c: Likewise.
27601         * tests/test-rbtreehash_list.c: Likewise.
27602         * tests/test-readlink.c: Likewise.
27603         * tests/test-remove.c: Likewise.
27604         * tests/test-rename.c: Likewise.
27605         * tests/test-renameat.c: Likewise.
27606         * tests/test-rmdir.c: Likewise.
27607         * tests/test-round1.c: Likewise.
27608         * tests/test-roundf1.c: Likewise.
27609         * tests/test-roundl.c: Likewise.
27610         * tests/test-safe-alloc.c: Likewise.
27611         * tests/test-sameacls.c: Likewise.
27612         * tests/test-set-mode-acl.c: Likewise.
27613         * tests/test-setenv.c: Likewise.
27614         * tests/test-sigaction.c: Likewise.
27615         * tests/test-signbit.c: Likewise.
27616         * tests/test-sleep.c: Likewise.
27617         * tests/test-snprintf-posix.c: Likewise.
27618         * tests/test-snprintf.c: Likewise.
27619         * tests/test-sprintf-posix.c: Likewise.
27620         * tests/test-stat-time.c: Likewise.
27621         * tests/test-stat.c: Likewise.
27622         * tests/test-strcasestr.c: Likewise.
27623         * tests/test-strchrnul.c: Likewise.
27624         * tests/test-strerror.c: Likewise.
27625         * tests/test-striconv.c: Likewise.
27626         * tests/test-striconveh.c: Likewise.
27627         * tests/test-striconveha.c: Likewise.
27628         * tests/test-strsignal.c: Likewise.
27629         * tests/test-strstr.c: Likewise.
27630         * tests/test-strtod.c: Likewise.
27631         * tests/test-strverscmp.c: Likewise.
27632         * tests/test-symlink.c: Likewise.
27633         * tests/test-symlinkat.c: Likewise.
27634         * tests/test-trunc1.c: Likewise.
27635         * tests/test-trunc2.c: Likewise.
27636         * tests/test-truncf1.c: Likewise.
27637         * tests/test-truncf2.c: Likewise.
27638         * tests/test-truncl.c: Likewise.
27639         * tests/test-uname.c: Likewise.
27640         * tests/test-unlink.c: Likewise.
27641         * tests/test-unlinkat.c: Likewise.
27642         * tests/test-unsetenv.c: Likewise.
27643         * tests/test-usleep.c: Likewise.
27644         * tests/test-utimens.c: Likewise.
27645         * tests/test-utimensat.c: Likewise.
27646         * tests/test-vasnprintf-posix.c: Likewise.
27647         * tests/test-vasnprintf-posix2.c: Likewise.
27648         * tests/test-vasnprintf.c: Likewise.
27649         * tests/test-vasprintf-posix.c: Likewise.
27650         * tests/test-vasprintf.c: Likewise.
27651         * tests/test-vdprintf-posix.c: Likewise.
27652         * tests/test-vfprintf-posix.c: Likewise.
27653         * tests/test-vprintf-posix.c: Likewise.
27654         * tests/test-vsnprintf-posix.c: Likewise.
27655         * tests/test-vsnprintf.c: Likewise.
27656         * tests/test-vsprintf-posix.c: Likewise.
27657         * tests/test-wcrtomb.c: Likewise.
27658         * tests/test-wcsnrtombs.c: Likewise.
27659         * tests/test-wcsrtombs.c: Likewise.
27660         * tests/test-wctype.c: Likewise.
27661         * tests/test-wcwidth.c: Likewise.
27662         * tests/test-xfprintf-posix.c: Likewise.
27663         * tests/test-xmemdup0.c: Likewise.
27664         * tests/test-xprintf-posix.c: Likewise.
27665         * tests/test-xvasprintf.c: Likewise.
27666         * tests/unicase/test-locale-language.c: Likewise.
27667         * tests/unicase/test-mapping-part1.h: Likewise.
27668         * tests/unicase/test-predicate-part1.h: Likewise.
27669         * tests/unicase/test-u8-casecmp.c: Likewise.
27670         * tests/unicase/test-u8-casecoll.c: Likewise.
27671         * tests/unicase/test-u8-casefold.c: Likewise.
27672         * tests/unicase/test-u8-is-cased.c: Likewise.
27673         * tests/unicase/test-u8-is-casefolded.c: Likewise.
27674         * tests/unicase/test-u8-is-lowercase.c: Likewise.
27675         * tests/unicase/test-u8-is-titlecase.c: Likewise.
27676         * tests/unicase/test-u8-is-uppercase.c: Likewise.
27677         * tests/unicase/test-u8-tolower.c: Likewise.
27678         * tests/unicase/test-u8-totitle.c: Likewise.
27679         * tests/unicase/test-u8-toupper.c: Likewise.
27680         * tests/unicase/test-u16-casecmp.c: Likewise.
27681         * tests/unicase/test-u16-casecoll.c: Likewise.
27682         * tests/unicase/test-u16-casefold.c: Likewise.
27683         * tests/unicase/test-u16-is-cased.c: Likewise.
27684         * tests/unicase/test-u16-is-casefolded.c: Likewise.
27685         * tests/unicase/test-u16-is-lowercase.c: Likewise.
27686         * tests/unicase/test-u16-is-titlecase.c: Likewise.
27687         * tests/unicase/test-u16-is-uppercase.c: Likewise.
27688         * tests/unicase/test-u16-tolower.c: Likewise.
27689         * tests/unicase/test-u16-totitle.c: Likewise.
27690         * tests/unicase/test-u16-toupper.c: Likewise.
27691         * tests/unicase/test-u32-casecmp.c: Likewise.
27692         * tests/unicase/test-u32-casecoll.c: Likewise.
27693         * tests/unicase/test-u32-casefold.c: Likewise.
27694         * tests/unicase/test-u32-is-cased.c: Likewise.
27695         * tests/unicase/test-u32-is-casefolded.c: Likewise.
27696         * tests/unicase/test-u32-is-lowercase.c: Likewise.
27697         * tests/unicase/test-u32-is-titlecase.c: Likewise.
27698         * tests/unicase/test-u32-is-uppercase.c: Likewise.
27699         * tests/unicase/test-u32-tolower.c: Likewise.
27700         * tests/unicase/test-u32-totitle.c: Likewise.
27701         * tests/unicase/test-u32-toupper.c: Likewise.
27702         * tests/unicase/test-ulc-casecmp.c: Likewise.
27703         * tests/unicase/test-ulc-casecoll.c: Likewise.
27704         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27705         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27706         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27707         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27708         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27709         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27710         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27711         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27712         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27713         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27714         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27715         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27716         * tests/unictype/test-bidi_byname.c: Likewise.
27717         * tests/unictype/test-bidi_name.c: Likewise.
27718         * tests/unictype/test-bidi_of.c: Likewise.
27719         * tests/unictype/test-bidi_test.c: Likewise.
27720         * tests/unictype/test-block_list.c: Likewise.
27721         * tests/unictype/test-block_of.c: Likewise.
27722         * tests/unictype/test-block_test.c: Likewise.
27723         * tests/unictype/test-categ_and.c: Likewise.
27724         * tests/unictype/test-categ_and_not.c: Likewise.
27725         * tests/unictype/test-categ_byname.c: Likewise.
27726         * tests/unictype/test-categ_name.c: Likewise.
27727         * tests/unictype/test-categ_none.c: Likewise.
27728         * tests/unictype/test-categ_of.c: Likewise.
27729         * tests/unictype/test-categ_or.c: Likewise.
27730         * tests/unictype/test-categ_test_withtable.c: Likewise.
27731         * tests/unictype/test-combining.c: Likewise.
27732         * tests/unictype/test-decdigit.c: Likewise.
27733         * tests/unictype/test-digit.c: Likewise.
27734         * tests/unictype/test-mirror.c: Likewise.
27735         * tests/unictype/test-numeric.c: Likewise.
27736         * tests/unictype/test-pr_byname.c: Likewise.
27737         * tests/unictype/test-pr_test.c: Likewise.
27738         * tests/unictype/test-predicate-part1.h: Likewise.
27739         * tests/unictype/test-scripts.c: Likewise.
27740         * tests/unictype/test-sy_c_ident.c: Likewise.
27741         * tests/unictype/test-sy_java_ident.c: Likewise.
27742         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
27743         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
27744         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
27745         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
27746         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
27747         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
27748         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
27749         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
27750         * tests/uninorm/test-canonical-decomposition.c: Likewise.
27751         * tests/uninorm/test-compat-decomposition.c: Likewise.
27752         * tests/uninorm/test-composition.c: Likewise.
27753         * tests/uninorm/test-decomposing-form.c: Likewise.
27754         * tests/uninorm/test-decomposition.c: Likewise.
27755         * tests/uninorm/test-u8-nfc.c: Likewise.
27756         * tests/uninorm/test-u8-nfd.c: Likewise.
27757         * tests/uninorm/test-u8-nfkc.c: Likewise.
27758         * tests/uninorm/test-u8-nfkd.c: Likewise.
27759         * tests/uninorm/test-u8-normcmp.c: Likewise.
27760         * tests/uninorm/test-u8-normcoll.c: Likewise.
27761         * tests/uninorm/test-u16-nfc.c: Likewise.
27762         * tests/uninorm/test-u16-nfd.c: Likewise.
27763         * tests/uninorm/test-u16-nfkc.c: Likewise.
27764         * tests/uninorm/test-u16-nfkd.c: Likewise.
27765         * tests/uninorm/test-u16-normcmp.c: Likewise.
27766         * tests/uninorm/test-u16-normcoll.c: Likewise.
27767         * tests/uninorm/test-u32-nfc.c: Likewise.
27768         * tests/uninorm/test-u32-nfd.c: Likewise.
27769         * tests/uninorm/test-u32-nfkc.c: Likewise.
27770         * tests/uninorm/test-u32-nfkd.c: Likewise.
27771         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27772         * tests/uninorm/test-u32-normcmp.c: Likewise.
27773         * tests/uninorm/test-u32-normcoll.c: Likewise.
27774         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
27775         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27776         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27777         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27778         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27779         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27780         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27781         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27782         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27783         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27784         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27785         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27786         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27787         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27788         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27789         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27790         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27791         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27792         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27793         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27794         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27795         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27796         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27797         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27798         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27799         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27800         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27801         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27802         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27803         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27804         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27805         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27806         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27807         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27808         * tests/uniwidth/test-u8-width.c: Likewise.
27809         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27810         * tests/uniwidth/test-u16-width.c: Likewise.
27811         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27812         * tests/uniwidth/test-u32-width.c: Likewise.
27813         * tests/uniwidth/test-uc_width.c: Likewise.
27814         * tests/uniwidth/test-uc_width2.c: Likewise.
27815         * modules/acl-tests (Files): Add tests/macros.h.
27816         * modules/areadlink-tests (Files): Likewise.
27817         * modules/areadlink-with-size-tests (Files): Likewise.
27818         * modules/areadlinkat-tests (Files): Likewise.
27819         * modules/areadlinkat-with-size-tests (Files): Likewise.
27820         * modules/argmatch-tests (Files): Likewise.
27821         * modules/argv-iter-tests (Files): Likewise.
27822         * modules/array-list-tests (Files): Likewise.
27823         * modules/array-mergesort-tests (Files): Likewise.
27824         * modules/array-oset-tests (Files): Likewise.
27825         * modules/avltree-list-tests (Files): Likewise.
27826         * modules/avltree-oset-tests (Files): Likewise.
27827         * modules/avltreehash-list-tests (Files): Likewise.
27828         * modules/base64-tests (Files): Likewise.
27829         * modules/binary-io-tests (Files): Likewise.
27830         * modules/bitrotate-tests (Files): Likewise.
27831         * modules/btowc-tests (Files): Likewise.
27832         * modules/byteswap-tests (Files): Likewise.
27833         * modules/c-ctype-tests (Files): Likewise.
27834         * modules/c-stack-tests (Files): Likewise.
27835         * modules/c-strcase-tests (Files): Likewise.
27836         * modules/c-strcasestr-tests (Files): Likewise.
27837         * modules/c-strstr-tests (Files): Likewise.
27838         * modules/canonicalize-lgpl-tests (Files): Likewise.
27839         * modules/canonicalize-tests (Files): Likewise.
27840         * modules/carray-list-tests (Files): Likewise.
27841         * modules/ceilf-tests (Files): Likewise.
27842         * modules/ceill-tests (Files): Likewise.
27843         * modules/chown-tests (Files): Likewise.
27844         * modules/cloexec-tests (Files): Likewise.
27845         * modules/copy-file-tests (Files): Likewise.
27846         * modules/count-one-bits-tests (Files): Likewise.
27847         * modules/dprintf-posix-tests (Files): Likewise.
27848         * modules/dup2-tests (Files): Likewise.
27849         * modules/dup3-tests (Files): Likewise.
27850         * modules/duplocale-tests (Files): Likewise.
27851         * modules/fbufmode-tests (Files): Likewise.
27852         * modules/fchdir-tests (Files): Likewise.
27853         * modules/fcntl-safer-tests (Files): Likewise.
27854         * modules/fcntl-tests (Files): Likewise.
27855         * modules/fdopendir-tests (Files): Likewise.
27856         * modules/fdutimensat-tests (Files): Likewise.
27857         * modules/fflush-tests (Files): Likewise.
27858         * modules/filevercmp-tests (Files): Likewise.
27859         * modules/flock-tests (Files): Likewise.
27860         * modules/floorf-tests (Files): Likewise.
27861         * modules/floorl-tests (Files): Likewise.
27862         * modules/fnmatch-tests (Files): Likewise.
27863         * modules/fopen-safer-tests (Files): Likewise.
27864         * modules/fopen-tests (Files): Likewise.
27865         * modules/fpending-tests (Files): Likewise.
27866         * modules/fprintf-posix-tests (Files): Likewise.
27867         * modules/fpurge-tests (Files): Likewise.
27868         * modules/freadable-tests (Files): Likewise.
27869         * modules/freadahead-tests (Files): Likewise.
27870         * modules/freading-tests (Files): Likewise.
27871         * modules/freadptr-tests (Files): Likewise.
27872         * modules/freadseek-tests (Files): Likewise.
27873         * modules/freopen-tests (Files): Likewise.
27874         * modules/frexp-nolibm-tests (Files): Likewise.
27875         * modules/frexp-tests (Files): Likewise.
27876         * modules/frexpl-nolibm-tests (Files): Likewise.
27877         * modules/frexpl-tests (Files): Likewise.
27878         * modules/fseek-tests (Files): Likewise.
27879         * modules/fseeko-tests (Files): Likewise.
27880         * modules/fstrcmp-tests (Files): Likewise.
27881         * modules/fsync-tests (Files): Likewise.
27882         * modules/ftell-tests (Files): Likewise.
27883         * modules/ftello-tests (Files): Likewise.
27884         * modules/func-tests (Files): Likewise.
27885         * modules/futimens-tests (Files): Likewise.
27886         * modules/fwritable-tests (Files): Likewise.
27887         * modules/fwriting-tests (Files): Likewise.
27888         * modules/getcwd-tests (Files): Likewise.
27889         * modules/getdate-tests (Files): Likewise.
27890         * modules/getdelim-tests (Files): Likewise.
27891         * modules/getdtablesize-tests (Files): Likewise.
27892         * modules/getgroups-tests (Files): Likewise.
27893         * modules/getline-tests (Files): Likewise.
27894         * modules/getndelim2-tests (Files): Likewise.
27895         * modules/glob-tests (Files): Likewise.
27896         * modules/hash-tests (Files): Likewise.
27897         * modules/i-ring-tests (Files): Likewise.
27898         * modules/iconv-tests (Files): Likewise.
27899         * modules/iconv_open-utf-tests (Files): Likewise.
27900         * modules/idpriv-drop-tests (Files): Likewise.
27901         * modules/idpriv-droptemp-tests (Files): Likewise.
27902         * modules/inet_ntop-tests (Files): Likewise.
27903         * modules/inet_pton-tests (Files): Likewise.
27904         * modules/isblank-tests (Files): Likewise.
27905         * modules/isfinite-tests (Files): Likewise.
27906         * modules/isinf-tests (Files): Likewise.
27907         * modules/isnan-tests (Files): Likewise.
27908         * modules/isnand-nolibm-tests (Files): Likewise.
27909         * modules/isnand-tests (Files): Likewise.
27910         * modules/isnanf-nolibm-tests (Files): Likewise.
27911         * modules/isnanf-tests (Files): Likewise.
27912         * modules/isnanl-nolibm-tests (Files): Likewise.
27913         * modules/isnanl-tests (Files): Likewise.
27914         * modules/lchown-tests (Files): Likewise.
27915         * modules/ldexpl-tests (Files): Likewise.
27916         * modules/link-tests (Files): Likewise.
27917         * modules/linkat-tests (Files): Likewise.
27918         * modules/linked-list-tests (Files): Likewise.
27919         * modules/linkedhash-list-tests (Files): Likewise.
27920         * modules/localename-tests (Files): Likewise.
27921         * modules/lseek-tests (Files): Likewise.
27922         * modules/lstat-tests (Files): Likewise.
27923         * modules/mbmemcasecmp-tests (Files): Likewise.
27924         * modules/mbmemcasecoll-tests (Files): Likewise.
27925         * modules/mbrtowc-tests (Files): Likewise.
27926         * modules/mbscasecmp-tests (Files): Likewise.
27927         * modules/mbscasestr-tests (Files): Likewise.
27928         * modules/mbschr-tests (Files): Likewise.
27929         * modules/mbscspn-tests (Files): Likewise.
27930         * modules/mbsinit-tests (Files): Likewise.
27931         * modules/mbsncasecmp-tests (Files): Likewise.
27932         * modules/mbsnrtowcs-tests (Files): Likewise.
27933         * modules/mbspbrk-tests (Files): Likewise.
27934         * modules/mbspcasecmp-tests (Files): Likewise.
27935         * modules/mbsrchr-tests (Files): Likewise.
27936         * modules/mbsrtowcs-tests (Files): Likewise.
27937         * modules/mbsspn-tests (Files): Likewise.
27938         * modules/mbsstr-tests (Files): Likewise.
27939         * modules/memchr-tests (Files): Likewise.
27940         * modules/memchr2-tests (Files): Likewise.
27941         * modules/memcmp-tests (Files): Likewise.
27942         * modules/memmem-tests (Files): Likewise.
27943         * modules/memrchr-tests (Files): Likewise.
27944         * modules/mkdir-tests (Files): Likewise.
27945         * modules/mkfifo-tests (Files): Likewise.
27946         * modules/mkfifoat-tests (Files): Likewise.
27947         * modules/mknod-tests (Files): Likewise.
27948         * modules/nanosleep-tests (Files): Likewise.
27949         * modules/nl_langinfo-tests (Files): Likewise.
27950         * modules/obstack-printf-tests (Files): Likewise.
27951         * modules/open-tests (Files): Likewise.
27952         * modules/openat-tests (Files): Likewise.
27953         * modules/pipe-filter-gi-tests (Files): Likewise.
27954         * modules/pipe-filter-ii-tests (Files): Likewise.
27955         * modules/pipe2-tests (Files): Likewise.
27956         * modules/popen-safer-tests (Files): Likewise.
27957         * modules/popen-tests (Files): Likewise.
27958         * modules/posixtm-tests (Files): Likewise.
27959         * modules/pread-tests (Files): Likewise.
27960         * modules/printf-frexp-tests (Files): Likewise.
27961         * modules/printf-frexpl-tests (Files): Likewise.
27962         * modules/printf-posix-tests (Files): Likewise.
27963         * modules/priv-set-tests (Files): Likewise.
27964         * modules/quotearg-tests (Files): Likewise.
27965         * modules/random_r-tests (Files): Likewise.
27966         * modules/rawmemchr-tests (Files): Likewise.
27967         * modules/rbtree-list-tests (Files): Likewise.
27968         * modules/rbtree-oset-tests (Files): Likewise.
27969         * modules/rbtreehash-list-tests (Files): Likewise.
27970         * modules/readlink-tests (Files): Likewise.
27971         * modules/remove-tests (Files): Likewise.
27972         * modules/rename-tests (Files): Likewise.
27973         * modules/renameat-tests (Files): Likewise.
27974         * modules/rmdir-tests (Files): Likewise.
27975         * modules/round-tests (Files): Likewise.
27976         * modules/roundf-tests (Files): Likewise.
27977         * modules/roundl-tests (Files): Likewise.
27978         * modules/safe-alloc-tests (Files): Likewise.
27979         * modules/setenv-tests (Files): Likewise.
27980         * modules/sigaction-tests (Files): Likewise.
27981         * modules/signbit-tests (Files): Likewise.
27982         * modules/sleep-tests (Files): Likewise.
27983         * modules/snprintf-posix-tests (Files): Likewise.
27984         * modules/snprintf-tests (Files): Likewise.
27985         * modules/sprintf-posix-tests (Files): Likewise.
27986         * modules/stat-tests (Files): Likewise.
27987         * modules/stat-time-tests (Files): Likewise.
27988         * modules/strcasestr-tests (Files): Likewise.
27989         * modules/strchrnul-tests (Files): Likewise.
27990         * modules/strerror-tests (Files): Likewise.
27991         * modules/striconv-tests (Files): Likewise.
27992         * modules/striconveh-tests (Files): Likewise.
27993         * modules/striconveha-tests (Files): Likewise.
27994         * modules/strsignal-tests (Files): Likewise.
27995         * modules/strstr-tests (Files): Likewise.
27996         * modules/strtod-tests (Files): Likewise.
27997         * modules/strverscmp-tests (Files): Likewise.
27998         * modules/symlink-tests (Files): Likewise.
27999         * modules/symlinkat-tests (Files): Likewise.
28000         * modules/trunc-tests (Files): Likewise.
28001         * modules/truncf-tests (Files): Likewise.
28002         * modules/truncl-tests (Files): Likewise.
28003         * modules/uname-tests (Files): Likewise.
28004         * modules/unicase/cased-tests (Files): Likewise.
28005         * modules/unicase/ignorable-tests (Files): Likewise.
28006         * modules/unicase/locale-language-tests (Files): Likewise.
28007         * modules/unicase/tolower-tests (Files): Likewise.
28008         * modules/unicase/totitle-tests (Files): Likewise.
28009         * modules/unicase/toupper-tests (Files): Likewise.
28010         * modules/unicase/u8-casecmp-tests (Files): Likewise.
28011         * modules/unicase/u8-casecoll-tests (Files): Likewise.
28012         * modules/unicase/u8-casefold-tests (Files): Likewise.
28013         * modules/unicase/u8-is-cased-tests (Files): Likewise.
28014         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
28015         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
28016         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
28017         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
28018         * modules/unicase/u8-tolower-tests (Files): Likewise.
28019         * modules/unicase/u8-totitle-tests (Files): Likewise.
28020         * modules/unicase/u8-toupper-tests (Files): Likewise.
28021         * modules/unicase/u16-casecmp-tests (Files): Likewise.
28022         * modules/unicase/u16-casecoll-tests (Files): Likewise.
28023         * modules/unicase/u16-casefold-tests (Files): Likewise.
28024         * modules/unicase/u16-is-cased-tests (Files): Likewise.
28025         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
28026         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
28027         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
28028         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
28029         * modules/unicase/u16-tolower-tests (Files): Likewise.
28030         * modules/unicase/u16-totitle-tests (Files): Likewise.
28031         * modules/unicase/u16-toupper-tests (Files): Likewise.
28032         * modules/unicase/u32-casecmp-tests (Files): Likewise.
28033         * modules/unicase/u32-casecoll-tests (Files): Likewise.
28034         * modules/unicase/u32-casefold-tests (Files): Likewise.
28035         * modules/unicase/u32-is-cased-tests (Files): Likewise.
28036         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
28037         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
28038         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
28039         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
28040         * modules/unicase/u32-tolower-tests (Files): Likewise.
28041         * modules/unicase/u32-totitle-tests (Files): Likewise.
28042         * modules/unicase/u32-toupper-tests (Files): Likewise.
28043         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
28044         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
28045         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
28046         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
28047         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
28048         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
28049         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
28050         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
28051         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
28052         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
28053         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
28054         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
28055         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
28056         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
28057         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
28058         * modules/unictype/bidicategory-name-tests (Files): Likewise.
28059         * modules/unictype/bidicategory-of-tests (Files): Likewise.
28060         * modules/unictype/bidicategory-test-tests (Files): Likewise.
28061         * modules/unictype/block-list-tests (Files): Likewise.
28062         * modules/unictype/block-of-tests (Files): Likewise.
28063         * modules/unictype/block-test-tests (Files): Likewise.
28064         * modules/unictype/category-C-tests (Files): Likewise.
28065         * modules/unictype/category-Cc-tests (Files): Likewise.
28066         * modules/unictype/category-Cf-tests (Files): Likewise.
28067         * modules/unictype/category-Cn-tests (Files): Likewise.
28068         * modules/unictype/category-Co-tests (Files): Likewise.
28069         * modules/unictype/category-Cs-tests (Files): Likewise.
28070         * modules/unictype/category-L-tests (Files): Likewise.
28071         * modules/unictype/category-Ll-tests (Files): Likewise.
28072         * modules/unictype/category-Lm-tests (Files): Likewise.
28073         * modules/unictype/category-Lo-tests (Files): Likewise.
28074         * modules/unictype/category-Lt-tests (Files): Likewise.
28075         * modules/unictype/category-Lu-tests (Files): Likewise.
28076         * modules/unictype/category-M-tests (Files): Likewise.
28077         * modules/unictype/category-Mc-tests (Files): Likewise.
28078         * modules/unictype/category-Me-tests (Files): Likewise.
28079         * modules/unictype/category-Mn-tests (Files): Likewise.
28080         * modules/unictype/category-N-tests (Files): Likewise.
28081         * modules/unictype/category-Nd-tests (Files): Likewise.
28082         * modules/unictype/category-Nl-tests (Files): Likewise.
28083         * modules/unictype/category-No-tests (Files): Likewise.
28084         * modules/unictype/category-P-tests (Files): Likewise.
28085         * modules/unictype/category-Pc-tests (Files): Likewise.
28086         * modules/unictype/category-Pd-tests (Files): Likewise.
28087         * modules/unictype/category-Pe-tests (Files): Likewise.
28088         * modules/unictype/category-Pf-tests (Files): Likewise.
28089         * modules/unictype/category-Pi-tests (Files): Likewise.
28090         * modules/unictype/category-Po-tests (Files): Likewise.
28091         * modules/unictype/category-Ps-tests (Files): Likewise.
28092         * modules/unictype/category-S-tests (Files): Likewise.
28093         * modules/unictype/category-Sc-tests (Files): Likewise.
28094         * modules/unictype/category-Sk-tests (Files): Likewise.
28095         * modules/unictype/category-Sm-tests (Files): Likewise.
28096         * modules/unictype/category-So-tests (Files): Likewise.
28097         * modules/unictype/category-Z-tests (Files): Likewise.
28098         * modules/unictype/category-Zl-tests (Files): Likewise.
28099         * modules/unictype/category-Zp-tests (Files): Likewise.
28100         * modules/unictype/category-Zs-tests (Files): Likewise.
28101         * modules/unictype/category-and-not-tests (Files): Likewise.
28102         * modules/unictype/category-and-tests (Files): Likewise.
28103         * modules/unictype/category-byname-tests (Files): Likewise.
28104         * modules/unictype/category-name-tests (Files): Likewise.
28105         * modules/unictype/category-none-tests (Files): Likewise.
28106         * modules/unictype/category-of-tests (Files): Likewise.
28107         * modules/unictype/category-or-tests (Files): Likewise.
28108         * modules/unictype/category-test-withtable-tests (Files): Likewise.
28109         * modules/unictype/combining-class-tests (Files): Likewise.
28110         * modules/unictype/ctype-alnum-tests (Files): Likewise.
28111         * modules/unictype/ctype-alpha-tests (Files): Likewise.
28112         * modules/unictype/ctype-blank-tests (Files): Likewise.
28113         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
28114         * modules/unictype/ctype-digit-tests (Files): Likewise.
28115         * modules/unictype/ctype-graph-tests (Files): Likewise.
28116         * modules/unictype/ctype-lower-tests (Files): Likewise.
28117         * modules/unictype/ctype-print-tests (Files): Likewise.
28118         * modules/unictype/ctype-punct-tests (Files): Likewise.
28119         * modules/unictype/ctype-space-tests (Files): Likewise.
28120         * modules/unictype/ctype-upper-tests (Files): Likewise.
28121         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
28122         * modules/unictype/decimal-digit-tests (Files): Likewise.
28123         * modules/unictype/digit-tests (Files): Likewise.
28124         * modules/unictype/mirror-tests (Files): Likewise.
28125         * modules/unictype/numeric-tests (Files): Likewise.
28126         * modules/unictype/property-alphabetic-tests (Files): Likewise.
28127         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
28128         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
28129         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
28130         Likewise.
28131         * modules/unictype/property-bidi-block-separator-tests (Files):
28132         Likewise.
28133         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
28134         Likewise.
28135         * modules/unictype/property-bidi-common-separator-tests (Files):
28136         Likewise.
28137         * modules/unictype/property-bidi-control-tests (Files): Likewise.
28138         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
28139         Likewise.
28140         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
28141         Likewise.
28142         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
28143         Likewise.
28144         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
28145         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
28146         Likewise.
28147         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
28148         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
28149         Likewise.
28150         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
28151         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
28152         * modules/unictype/property-bidi-segment-separator-tests (Files):
28153         Likewise.
28154         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
28155         * modules/unictype/property-byname-tests (Files): Likewise.
28156         * modules/unictype/property-combining-tests (Files): Likewise.
28157         * modules/unictype/property-composite-tests (Files): Likewise.
28158         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
28159         * modules/unictype/property-dash-tests (Files): Likewise.
28160         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
28161         * modules/unictype/property-default-ignorable-code-point-tests (Files):
28162         Likewise.
28163         * modules/unictype/property-deprecated-tests (Files): Likewise.
28164         * modules/unictype/property-diacritic-tests (Files): Likewise.
28165         * modules/unictype/property-extender-tests (Files): Likewise.
28166         * modules/unictype/property-format-control-tests (Files): Likewise.
28167         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
28168         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
28169         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
28170         * modules/unictype/property-hex-digit-tests (Files): Likewise.
28171         * modules/unictype/property-hyphen-tests (Files): Likewise.
28172         * modules/unictype/property-id-continue-tests (Files): Likewise.
28173         * modules/unictype/property-id-start-tests (Files): Likewise.
28174         * modules/unictype/property-ideographic-tests (Files): Likewise.
28175         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
28176         * modules/unictype/property-ids-trinary-operator-tests (Files):
28177         Likewise.
28178         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
28179         * modules/unictype/property-iso-control-tests (Files): Likewise.
28180         * modules/unictype/property-join-control-tests (Files): Likewise.
28181         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
28182         * modules/unictype/property-line-separator-tests (Files): Likewise.
28183         * modules/unictype/property-logical-order-exception-tests (Files):
28184         Likewise.
28185         * modules/unictype/property-lowercase-tests (Files): Likewise.
28186         * modules/unictype/property-math-tests (Files): Likewise.
28187         * modules/unictype/property-non-break-tests (Files): Likewise.
28188         * modules/unictype/property-not-a-character-tests (Files): Likewise.
28189         * modules/unictype/property-numeric-tests (Files): Likewise.
28190         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
28191         * modules/unictype/property-other-default-ignorable-code-point-tests
28192         (Files): Likewise.
28193         * modules/unictype/property-other-grapheme-extend-tests (Files):
28194         Likewise.
28195         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
28196         * modules/unictype/property-other-id-start-tests (Files): Likewise.
28197         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
28198         * modules/unictype/property-other-math-tests (Files): Likewise.
28199         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
28200         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
28201         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
28202         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
28203         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
28204         * modules/unictype/property-private-use-tests (Files): Likewise.
28205         * modules/unictype/property-punctuation-tests (Files): Likewise.
28206         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
28207         * modules/unictype/property-radical-tests (Files): Likewise.
28208         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
28209         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
28210         * modules/unictype/property-space-tests (Files): Likewise.
28211         * modules/unictype/property-terminal-punctuation-tests (Files):
28212         Likewise.
28213         * modules/unictype/property-test-tests (Files): Likewise.
28214         * modules/unictype/property-titlecase-tests (Files): Likewise.
28215         * modules/unictype/property-unassigned-code-value-tests (Files):
28216         Likewise.
28217         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
28218         * modules/unictype/property-uppercase-tests (Files): Likewise.
28219         * modules/unictype/property-variation-selector-tests (Files): Likewise.
28220         * modules/unictype/property-white-space-tests (Files): Likewise.
28221         * modules/unictype/property-xid-continue-tests (Files): Likewise.
28222         * modules/unictype/property-xid-start-tests (Files): Likewise.
28223         * modules/unictype/property-zero-width-tests (Files): Likewise.
28224         * modules/unictype/scripts-tests (Files): Likewise.
28225         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
28226         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
28227         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
28228         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
28229         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
28230         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
28231         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
28232         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
28233         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
28234         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
28235         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
28236         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
28237         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
28238         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
28239         * modules/uninorm/composition-tests (Files): Likewise.
28240         * modules/uninorm/decomposing-form-tests (Files): Likewise.
28241         * modules/uninorm/decomposition-tests (Files): Likewise.
28242         * modules/uninorm/filter-tests (Files): Likewise.
28243         * modules/uninorm/nfc-tests (Files): Likewise.
28244         * modules/uninorm/nfd-tests (Files): Likewise.
28245         * modules/uninorm/nfkc-tests (Files): Likewise.
28246         * modules/uninorm/nfkd-tests (Files): Likewise.
28247         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
28248         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
28249         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
28250         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
28251         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
28252         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
28253         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
28254         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28255         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
28256         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
28257         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
28258         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
28259         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28260         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
28261         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
28262         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
28263         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
28264         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28265         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
28266         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
28267         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
28268         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
28269         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28270         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
28271         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
28272         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
28273         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
28274         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
28275         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
28276         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
28277         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
28278         * modules/uniwidth/u8-width-tests (Files): Likewise.
28279         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
28280         * modules/uniwidth/u16-width-tests (Files): Likewise.
28281         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
28282         * modules/uniwidth/u32-width-tests (Files): Likewise.
28283         * modules/uniwidth/width-tests (Files): Likewise.
28284         * modules/unlink-tests (Files): Likewise.
28285         * modules/unsetenv-tests (Files): Likewise.
28286         * modules/usleep-tests (Files): Likewise.
28287         * modules/utimens-tests (Files): Likewise.
28288         * modules/utimensat-tests (Files): Likewise.
28289         * modules/vasnprintf-posix-tests (Files): Likewise.
28290         * modules/vasnprintf-tests (Files): Likewise.
28291         * modules/vasprintf-posix-tests (Files): Likewise.
28292         * modules/vasprintf-tests (Files): Likewise.
28293         * modules/vdprintf-posix-tests (Files): Likewise.
28294         * modules/vfprintf-posix-tests (Files): Likewise.
28295         * modules/vprintf-posix-tests (Files): Likewise.
28296         * modules/vsnprintf-posix-tests (Files): Likewise.
28297         * modules/vsnprintf-tests (Files): Likewise.
28298         * modules/vsprintf-posix-tests (Files): Likewise.
28299         * modules/wcrtomb-tests (Files): Likewise.
28300         * modules/wcsnrtombs-tests (Files): Likewise.
28301         * modules/wcsrtombs-tests (Files): Likewise.
28302         * modules/wctype-tests (Files): Likewise.
28303         * modules/wcwidth-tests (Files): Likewise.
28304         * modules/xmemdup0-tests (Files): Likewise.
28305         * modules/xprintf-posix-tests (Files): Likewise.
28306         * modules/xvasprintf-tests (Files): Likewise.
28307
28308 2009-12-24  Eric Blake  <ebb9@byu.net>
28309
28310         test-nanosleep: fix typo
28311         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
28312         patch.
28313         Reported by Bruno Haible.
28314
28315 2009-12-24  Bruno Haible  <bruno@clisp.org>
28316
28317         Reduce namespace pollution on glibc systems.
28318         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
28319         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
28320         systems.
28321         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
28322         <getopt.h> on glibc systems.
28323         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
28324         systems.
28325         * lib/fcntl.c: Include <unistd.h> here instead.
28326
28327 2009-12-24  Bruno Haible  <bruno@clisp.org>
28328
28329         * lib/stdlib.in.h (includes): Fix typo in today's commit.
28330
28331 2009-12-24  Eric Blake  <ebb9@byu.net>
28332
28333         tests: add signature checks
28334         * tests/signature.h (SIGNATURE_CHECK): New file.
28335         * modules/atexit-tests (Files): Use it.
28336         * modules/btowc-tests (Files): Likewise.
28337         * modules/canonicalize-lgpl-tests (Files): Likewise.
28338         * modules/ceilf-tests (Files): Likewise.
28339         * modules/ceill-tests (Files): Likewise.
28340         * modules/chown-tests (Files): Likewise.
28341         * modules/dprintf-posix-tests (Files): Likewise.
28342         * modules/dup2-tests (Files): Likewise.
28343         * modules/dup3-tests (Files): Likewise.
28344         * modules/duplocale-tests (Files): Likewise.
28345         * modules/fchdir-tests (Files): Likewise.
28346         * modules/fcntl-tests (Files): Likewise.
28347         * modules/fdopendir-tests (Files): Likewise.
28348         * modules/fflush-tests (Files): Likewise.
28349         * modules/flock-tests (Files): Likewise.
28350         * modules/floorf-tests (Files): Likewise.
28351         * modules/floorl-tests (Files): Likewise.
28352         * modules/fnmatch-tests (Files): Likewise.
28353         * modules/fopen-tests (Files): Likewise.
28354         * modules/fprintf-posix-tests (Files): Likewise.
28355         * modules/freopen-tests (Files): Likewise.
28356         * modules/frexp-nolibm-tests (Files): Likewise.
28357         * modules/frexp-tests (Files): Likewise.
28358         * modules/frexpl-nolibm-tests (Files): Likewise.
28359         * modules/frexpl-tests (Files): Likewise.
28360         * modules/fseek-tests (Files): Likewise.
28361         * modules/fseeko-tests (Files): Likewise.
28362         * modules/fsync-tests (Files): Likewise.
28363         * modules/ftell-tests (Files): Likewise.
28364         * modules/ftello-tests (Files): Likewise.
28365         * modules/futimens-tests (Files): Likewise.
28366         * modules/getaddrinfo-tests (Files): Likewise.
28367         * modules/getcwd-tests (Files): Likewise.
28368         * modules/getdelim-tests (Files): Likewise.
28369         * modules/getdtablesize-tests (Files): Likewise.
28370         * modules/getgroups-tests (Files): Likewise.
28371         * modules/gethostname-tests (Files): Likewise.
28372         * modules/getline-tests (Files): Likewise.
28373         * modules/getopt-posix-tests (Files): Likewise.
28374         * modules/gettimeofday-tests (Files): Likewise.
28375         * modules/glob-tests (Files): Likewise.
28376         * modules/iconv-tests (Files): Likewise.
28377         * modules/inet_ntop-tests (Files): Likewise.
28378         * modules/inet_pton-tests (Files): Likewise.
28379         * modules/isblank-tests (Files): Likewise.
28380         * modules/lchown-tests (Files): Likewise.
28381         * modules/ldexpl-tests (Files): Likewise.
28382         * modules/link-tests (Files): Likewise.
28383         * modules/linkat-tests (Files): Likewise.
28384         * modules/lseek-tests (Files): Likewise.
28385         * modules/lstat-tests (Files): Likewise.
28386         * modules/mbrtowc-tests (Files): Likewise.
28387         * modules/mbsinit-tests (Files): Likewise.
28388         * modules/mbsnrtowcs-tests (Files): Likewise.
28389         * modules/mbsrtowcs-tests (Files): Likewise.
28390         * modules/memchr-tests (Files): Likewise.
28391         * modules/memcmp-tests (Files): Likewise.
28392         * modules/memmem-tests (Files): Likewise.
28393         * modules/memrchr-tests (Files): Likewise.
28394         * modules/mkdir-tests (Files): Likewise.
28395         * modules/mkfifo-tests (Files): Likewise.
28396         * modules/mkfifoat-tests (Files): Likewise.
28397         * modules/mknod-tests (Files): Likewise.
28398         * modules/nanosleep-tests (Files): Likewise.
28399         * modules/nl_langinfo-tests (Files): Likewise.
28400         * modules/obstack-printf-tests (Files): Likewise.
28401         * modules/open-tests (Files): Likewise.
28402         * modules/openat-tests (Files): Likewise.
28403         * modules/perror-tests (Files): Likewise.
28404         * modules/pipe2-tests (Files): Likewise.
28405         * modules/poll-tests (Files): Likewise.
28406         * modules/popen-tests (Files): Likewise.
28407         * modules/posix_spawn-tests (Files): Likewise.
28408         * modules/posix_spawnp-tests (Files): Likewise.
28409         * modules/pread-tests (Files): Likewise.
28410         * modules/printf-posix-tests (Files): Likewise.
28411         * modules/pty-tests (Files): Likewise.
28412         * modules/random_r-tests (Files): Likewise.
28413         * modules/rawmemchr-tests (Files): Likewise.
28414         * modules/readlink-tests (Files): Likewise.
28415         * modules/remove-tests (Files): Likewise.
28416         * modules/rename-tests (Files): Likewise.
28417         * modules/renameat-tests (Files): Likewise.
28418         * modules/rmdir-tests (Files): Likewise.
28419         * modules/round-tests (Files): Likewise.
28420         * modules/roundf-tests (Files): Likewise.
28421         * modules/roundl-tests (Files): Likewise.
28422         * modules/select-tests (Files): Likewise.
28423         * modules/setenv-tests (Files): Likewise.
28424         * modules/sigaction-tests (Files): Likewise.
28425         * modules/sleep-tests (Files): Likewise.
28426         * modules/snprintf-posix-tests (Files): Likewise.
28427         * modules/snprintf-tests (Files): Likewise.
28428         * modules/sprintf-posix-tests (Files): Likewise.
28429         * modules/stat-tests (Files): Likewise.
28430         * modules/strcasestr-tests (Files): Likewise.
28431         * modules/strchrnul-tests (Files): Likewise.
28432         * modules/strerror-tests (Files): Likewise.
28433         * modules/strsignal-tests (Files): Likewise.
28434         * modules/strstr-tests (Files): Likewise.
28435         * modules/strtod-tests (Files): Likewise.
28436         * modules/strverscmp-tests (Files): Likewise.
28437         * modules/symlink-tests (Files): Likewise.
28438         * modules/symlinkat-tests (Files): Likewise.
28439         * modules/times-tests (Files): Likewise.
28440         * modules/trunc-tests (Files): Likewise.
28441         * modules/truncf-tests (Files): Likewise.
28442         * modules/truncl-tests (Files): Likewise.
28443         * modules/tsearch-tests (Files): Likewise.
28444         * modules/uname-tests (Files): Likewise.
28445         * modules/unlink-tests (Files): Likewise.
28446         * modules/unsetenv-tests (Files): Likewise.
28447         * modules/usleep-tests (Files): Likewise.
28448         * modules/utimensat-tests (Files): Likewise.
28449         * modules/vasprintf-tests (Files): Likewise.
28450         * modules/vdprintf-posix-tests (Files): Likewise.
28451         * modules/vfprintf-posix-tests (Files): Likewise.
28452         * modules/vprintf-posix-tests (Files): Likewise.
28453         * modules/vsnprintf-posix-tests (Files): Likewise.
28454         * modules/vsnprintf-tests (Files): Likewise.
28455         * modules/vsprintf-posix-tests (Files): Likewise.
28456         * modules/wcrtomb-tests (Files): Likewise.
28457         * modules/wcsnrtombs-tests (Files): Likewise.
28458         * modules/wcsrtombs-tests (Files): Likewise.
28459         * modules/wcwidth-tests (Files): Likewise.
28460         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
28461         * tests/test-isinf.c (isinf): Likewise.
28462         * tests/test-isnan.c (isnan): Likewise.
28463         * tests/test-signbit.c (signbit): Likewise.
28464         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
28465         declaration, either as macro or with correct signature.
28466         (select): Ensure function under test is declared with correct
28467         signature in correct header.
28468         * tests/test-atexit.c (atexit): Likewise.
28469         * tests/test-btowc.c (btowc): Likewise.
28470         * tests/test-canonicalize-lgpl.c (realpath)
28471         (canonicalize_file_name): Likewise.
28472         * tests/test-ceilf1.c (ceilf): Likewise.
28473         * tests/test-ceill.c (ceill): Likewise.
28474         * tests/test-chown.c (chown): Likewise.
28475         * tests/test-dprintf-posix.c (dprintf): Likewise.
28476         * tests/test-dup2.c (dup2): Likewise.
28477         * tests/test-dup3.c (dup3): Likewise.
28478         * tests/test-duplocale.c (duplocale): Likewise.
28479         * tests/test-fchdir.c (fchdir): Likewise.
28480         * tests/test-fchownat.c (fchownat): Likewise.
28481         * tests/test-fcntl.c (fcntl): Likewise.
28482         * tests/test-fdopendir.c (fdopendir): Likewise.
28483         * tests/test-fflush.c (fflush): Likewise.
28484         * tests/test-flock.c (flock): Likewise.
28485         * tests/test-floorf1.c (floorf): Likewise.
28486         * tests/test-floorl.c (floorl): Likewise.
28487         * tests/test-fnmatch.c (fnmatch): Likewise.
28488         * tests/test-fopen.c (fopen): Likewise.
28489         * tests/test-fprintf-posix.c (fprintf): Likewise.
28490         * tests/test-freopen.c (freopen): Likewise.
28491         * tests/test-frexp.c (frexp): Likewise.
28492         * tests/test-frexpl.c (frexpl): Likewise.
28493         * tests/test-fseek.c (fseek): Likewise.
28494         * tests/test-fseeko.c (fseeko): Likewise.
28495         * tests/test-fstatat.c (fstatat): Likewise.
28496         * tests/test-fsync.c (fsync): Likewise.
28497         * tests/test-ftell.c (ftell): Likewise.
28498         * tests/test-ftello.c (ftello): Likewise.
28499         * tests/test-futimens.c (futimens): Likewise.
28500         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
28501         (gai_strerror): Likewise.
28502         * tests/test-getcwd.c (getcwd): Likewise.
28503         * tests/test-getdelim.c (getdelim): Likewise.
28504         * tests/test-getdtablesize.c (getdtablesize): Likewise.
28505         * tests/test-getgroups.c (getgroups): Likewise.
28506         * tests/test-gethostname.c (gethostname): Likewise.
28507         * tests/test-getline.c (getline): Likewise.
28508         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
28509         Likewise.
28510         * tests/test-gettimeofday.c (gettimeofday): Likewise.
28511         * tests/test-glob.c (glob, globfree): Likewise.
28512         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
28513         * tests/test-inet_ntop.c (inet_ntop): Likewise.
28514         * tests/test-inet_pton.c (inet_pton): Likewise.
28515         * tests/test-isblank.c (isblank): Likewise.
28516         * tests/test-lchown.c (lchown): Likewise.
28517         * tests/test-ldexpl.c (ldexpl): Likewise.
28518         * tests/test-link.c (link): Likewise.
28519         * tests/test-linkat.c (linkat): Likewise.
28520         * tests/test-lseek.c (lseek): Likewise.
28521         * tests/test-lstat.c (lstat): Likewise.
28522         * tests/test-mbrtowc.c (mbrtowc): Likewise.
28523         * tests/test-mbsinit.c (mbsinit): Likewise.
28524         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
28525         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
28526         * tests/test-memchr.c (memchr): Likewise.
28527         * tests/test-memcmp.c (memcmp): Likewise.
28528         * tests/test-memmem.c (memmem): Likewise.
28529         * tests/test-memrchr.c (memrchr): Likewise.
28530         * tests/test-mkdir.c (mkdir): Likewise.
28531         * tests/test-mkdirat.c (mkdirat): Likewise.
28532         * tests/test-mkfifo.c (mkfifo): Likewise.
28533         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
28534         * tests/test-mknod.c (mknod): Likewise.
28535         * tests/test-nanosleep.c (nanosleep): Likewise.
28536         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
28537         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
28538         Likewise.
28539         * tests/test-open.c (open): Likewise.
28540         * tests/test-openat.c (openat): Likewise.
28541         * tests/test-perror.c (perror): Likewise.
28542         * tests/test-pipe2.c (pipe2): Likewise.
28543         * tests/test-poll.c (poll): Likewise.
28544         * tests/test-popen.c (popen, pclose): Likewise.
28545         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
28546         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
28547         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
28548         (posix_spawn_file_actions_destroy)
28549         (posix_spawn_file_actions_addclose)
28550         (posix_spawn_file_actions_addopen)
28551         (posix_spawn_file_actions_adddup2): Likewise.
28552         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
28553         * tests/test-pread.c (pread): Likewise.
28554         * tests/test-printf-posix.c (printf): Likewise.
28555         * tests/test-pty.c (openpty, forkpty): Likewise.
28556         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
28557         (random_r): Likewise.
28558         * tests/test-rawmemchr.c (rawmemchr): Likewise.
28559         * tests/test-readlink.c (readlink): Likewise.
28560         * tests/test-remove.c (remove): Likewise.
28561         * tests/test-rename.c (rename): Likewise.
28562         * tests/test-renameat.c (renameat): Likewise.
28563         * tests/test-rmdir.c (rmdir): Likewise.
28564         * tests/test-round1.c (round): Likewise.
28565         * tests/test-roundf1.c (roundf): Likewise.
28566         * tests/test-roundl.c (roundl): Likewise.
28567         * tests/test-setenv.c (setenv): Likewise.
28568         * tests/test-sigaction.c (sigaction): Likewise.
28569         * tests/test-sleep.c (sleep): Likewise.
28570         * tests/test-snprintf.c (snprintf): Likewise.
28571         * tests/test-sprintf-posix.c (sprintf): Likewise.
28572         * tests/test-stat.c (stat): Likewise.
28573         * tests/test-stpncpy.c (stpncpy): Likewise.
28574         * tests/test-strcasestr.c (strcasestr): Likewise.
28575         * tests/test-strchrnul.c (strchrnul): Likewise.
28576         * tests/test-strerror.c (strerror): Likewise.
28577         * tests/test-strsignal.c (strsignal): Likewise.
28578         * tests/test-strstr.c (strstr): Likewise.
28579         * tests/test-strtod.c (strtod): Likewise.
28580         * tests/test-strverscmp.c (strverscmp): Likewise.
28581         * tests/test-symlink.c (symlink): Likewise.
28582         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
28583         * tests/test-times.c (times): Likewise.
28584         * tests/test-trunc1.c (trunc): Likewise.
28585         * tests/test-truncf1.c (truncf): Likewise.
28586         * tests/test-truncl.c (truncl): Likewise.
28587         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
28588         Likewise.
28589         * tests/test-uname.c (uname): Likewise.
28590         * tests/test-unlink.c (unlink): Likewise.
28591         * tests/test-unlinkat.c (unlinkat): Likewise.
28592         * tests/test-unsetenv.c (unsetenv): Likewise.
28593         * tests/test-usleep.c (usleep): Likewise.
28594         * tests/test-utimensat.c (utimensat): Likewise.
28595         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
28596         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
28597         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
28598         * tests/test-vprintf-posix.c (vprintf): Likewise.
28599         * tests/test-vsnprintf.c (vsnprintf): Likewise.
28600         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
28601         * tests/test-wcrtomb.c (wcrtomb): Likewise.
28602         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
28603         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
28604         * tests/test-wcwidth.c (wcwidth): Likewise.
28605
28606         build: pull in conditional headers during GNULIB_POSIXCHECK
28607         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
28608         definitions from any conditionally-included headers.
28609         * lib/stdlib.in.h (includes): Likewise.
28610         * lib/unistd.in.h (includes): Likewise.
28611
28612 2009-12-24  Bruno Haible  <bruno@clisp.org>
28613
28614         * tests/test-argv-iter.c: Include header file being tested immediately
28615         after config.h.
28616         * tests/test-base64.c: Likewise.
28617         * tests/test-flock.c: Likewise.
28618         * tests/test-fsync.c: Likewise.
28619         * tests/test-getdate.c: Likewise.
28620         * tests/test-getndelim2.c: Likewise.
28621         * tests/test-isfinite.c: Likewise.
28622         * tests/test-isinf.c: Likewise.
28623         * tests/test-strerror.c: Likewise.
28624         * tests/test-strsignal.c: Likewise.
28625
28626 2009-12-23  Eric Blake  <ebb9@byu.net>
28627
28628         unistd: work around cygwin bug
28629         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
28630         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
28631         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28632
28633 2009-12-23  Bruno Haible  <bruno@clisp.org>
28634
28635         localename: More tests.
28636         * tests/test-localename.c (SIZEOF): New macro.
28637         (categories): New variable.
28638         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
28639         test_locale_name_default): Add test w.r.t. thread locale.
28640         (test_locale_name_thread): New function.
28641         (main): Invoke it.
28642
28643         localename: Make aware of thread locale.
28644         * lib/localename.h (gl_locale_name_thread): New declaration.
28645         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
28646         behaviour with respect to thread locale.
28647         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
28648         <langinfo.h>, glthread/lock.h.
28649         (SIZE_BITS): New macro.
28650         (string_hash): New function.
28651         (struct hash_node): New type.
28652         (HASH_TABLE_SIZE): New macro.
28653         (struniq_hash_table, struniq_lock): New variables.
28654         (struniq): New function.
28655         (gl_locale_name_thread): New function.
28656         (gl_locale_name): Invoke it.
28657         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
28658         * modules/localename (Depends-on): Add lock.
28659         Reported by Mike Gran <spk121@yahoo.com>.
28660
28661 2009-12-23  Eric Blake  <ebb9@byu.net>
28662
28663         va-args: new module
28664         * modules/va-args: New file.
28665         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
28666         * MODULES.html.sh (Core language properties): Mention it.
28667
28668         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
28669         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
28670         named alias for __attribute__((__unused__)).
28671         * lib/chown.c: Update client.
28672         * lib/fchmodat.c: Likewise.
28673         * lib/fts.c: Likewise.
28674         * lib/getdate.y: Likewise.
28675         * lib/getgroups.c: Likewise.
28676         * lib/getopt.c: Likewise.
28677         * lib/getugroups.c: Likewise.
28678         * lib/mkdir.c: Likewise.
28679         * lib/mkfifo.c: Likewise.
28680         * lib/mkfifoat.c: Likewise.
28681         * lib/mknod.c: Likewise.
28682         * lib/mknodat.c: Likewise.
28683         * lib/readlink.c: Likewise.
28684         * lib/se-context.in.h: Likewise.
28685         * lib/se-selinux.in.h: Likewise.
28686         * lib/sockets.c: Likewise.
28687         * lib/symlink.c: Likewise.
28688         * lib/symlinkat.c: Likewise.
28689         * lib/unicodeio.c: Likewise.
28690         * lib/unistr.h: Likewise.
28691         * tests/test-areadlink.c: Likewise.
28692         * tests/test-areadlinkat.c: Likewise.
28693         * tests/test-filenamecat.c: Likewise.
28694         * tests/test-fseeko.c: Likewise.
28695         * tests/test-ftello.c: Likewise.
28696         * tests/test-getdate.c: Likewise.
28697         * tests/test-getgroups.c: Likewise.
28698         * tests/test-gethostname.c: Likewise.
28699         * tests/test-quotearg.c: Likewise.
28700         * tests/test-version-etc.c: Likewise.
28701         * tests/test-xalloc-die.c: Likewise.
28702         * tests/test-xfprintf-posix.c: Likewise.
28703         * tests/test-xprintf-posix.c: Likewise.
28704         * tests/test-xvasprintf.c: Likewise.
28705
28706         tests: avoid compiler warnings
28707         * tests/test-fcntl.c (main): Delete unused parameters.
28708         * tests/test-freopen-safer.c (main): Likewise.
28709         * tests/test-xalloc-die.c (main): Mark unused parameters.
28710         * tests/test-fseeko.c (main): Likewise.
28711         * tests/test-ftello.c (main): Likewise.
28712         * tests/test-nanosleep.c (main): Avoid declaration warning.
28713         * tests/test-sleep.c (main): Likewise.
28714         * tests/test-unsetenv.c (main): Silence warning about string
28715         literal.
28716         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28717
28718 2009-12-23  Bruno Haible  <bruno@clisp.org>
28719
28720         * tests/test-localename.c (test_locale_name): New function, extracted
28721         from main. Also test mixed situations.
28722         (test_locale_name_posix, test_locale_name_environ,
28723         test_locale_name_default): New functions.
28724         (main): Invoke them all.
28725         * modules/localename-tests (configure.ac): Test for newlocale.
28726
28727 2009-12-23  Bruno Haible  <bruno@clisp.org>
28728
28729         unistd: Ensure getcwd gets declared before being overridden.
28730         * lib/unistd.in.h: Conditionally include <io.h>.
28731
28732 2009-12-22  Bruno Haible  <bruno@clisp.org>
28733
28734         wchar: Diagnose broken combination of glibc and gcc versions and flags.
28735         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
28736         (gl_WCHAR_H): Invoke it.
28737         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
28738         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
28739         Reported by Karl Berry <karl@freefriends.org>.
28740
28741 2009-12-22  Eric Blake  <ebb9@byu.net>
28742
28743         math, unistd: avoid redundant includes
28744         * lib/math.in.h (isnan): No need to re-include <math.h>.
28745         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
28746
28747         getsubopt: work around cygwin bug
28748         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
28749         avoid conflicting with system getsubopt.
28750         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
28751         bug.
28752
28753         getopt: synchronize from glibc
28754         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
28755         parameter order.  Adjust all callers.
28756         (_getopt_internal_r, main): Adjust quoting in error messages.
28757         Drop considerations for outdated POSIX 1003.2 error message.
28758         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
28759         callers.
28760         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
28761
28762         test-getopt: test stderr behavior
28763         * modules/getopt-posix-tests (Depends-on): Add dup2.
28764         * tests/test-getopt.c (ASSERT): Avoid stderr.
28765         (main): Move stderr to a temporary file.
28766         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
28767         Instead, add parameter to inform caller if output occurred.
28768         (test_getopt): Adjust all existing tests to expect silence, and
28769         add new tests of leading ":".
28770         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28771         glibc shortcomings with leading "-:" or "+:" in optstring.
28772         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28773         Likewise.
28774         * doc/posix-functions/getopt.texi (getopt): Likewise.
28775
28776         test-getopt: enhance test
28777         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
28778         supports optind=0.
28779         * tests/test-getopt.c (OPTIND_MIN): Move...
28780         * tests/test-getopt.h (OPTIND_MIN): ...here.
28781         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
28782         Require that optind=0 works, since modern BSD supports it in
28783         addition to optreset, and since coreutils expects it.
28784         (test_getopt_long_only): New test.
28785         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28786         glibc shortcomings with 'W;', and enforcement of optind=0.
28787         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28788         Likewise.
28789
28790 2009-12-21  Bruno Haible  <bruno@clisp.org>
28791
28792         localename: Improvements for MacOS X and Cygwin.
28793         * lib/localename.h (gl_locale_name_environ): New declaration.
28794         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28795         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28796         (gl_locale_name_posix): Invoke it.
28797         (gl_locale_name_default): Add comments. Use Windows native API also on
28798         Cygwin.
28799
28800 2009-12-21  Bruno Haible  <bruno@clisp.org>
28801
28802         Update list of Win32 locale ids.
28803         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28804         (LANG_SAMI): Renamed from LANG_SAAMI.
28805         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28806         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28807         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28808         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28809         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28810         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28811         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28812         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28813         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28814         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28815         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28816         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28817         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28818         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28819         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28820         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
28821         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
28822         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
28823         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
28824         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
28825         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
28826         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
28827         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
28828         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
28829         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
28830         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
28831         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
28832         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
28833         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
28834         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
28835         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
28836         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
28837         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
28838         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
28839         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
28840         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
28841         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
28842         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
28843         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
28844         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
28845         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
28846         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
28847         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
28848         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
28849         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
28850         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
28851         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
28852         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
28853         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
28854         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
28855         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
28856         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
28857         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
28858         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
28859         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
28860         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
28861         Add more languages and countries for Sami, Sorbian. Add more countries
28862         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
28863         for Pashto. Change country for Syriac, Tswana.
28864
28865 2009-12-21  Eric Blake  <ebb9@byu.net>
28866
28867         test-utimens: avoid spurious failure
28868         * tests/test-chown.h (nap): Factor...
28869         * tests/nap.h: ...into new file.
28870         * tests/test-lchown.h (nap): Avoid duplication.
28871         * tests/test-utimens-common.h (nap): Use shared implementation,
28872         necessary on file systems with 1-second resolution.
28873         * modules/chown-tests (Files): Include new file.
28874         * modules/fdutimensat-tests (Files): Likewise.
28875         * modules/futimens-tests (Files): Likewise.
28876         * modules/lchown-tests (Files): Likewise.
28877         * modules/openat-tests (Files): Likewise.
28878         * modules/utimens-tests (Files): Likewise.
28879         * modules/utimensat-tests (Files): Likewise.
28880
28881 2009-12-19  Eric Blake  <ebb9@byu.net>
28882
28883         futimens, utimensat: work around Linux bug
28884         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28885         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28886         * lib/utimensat.c (rpl_utimensat): Work around it.
28887         * lib/futimens.c (rpl_futimens): Adjust comment.
28888
28889         utimens: work around Linux ctime bug
28890         * lib/utimens.c (detect_ctime_bug): New helper function.
28891         (update_timespec): Differentiate between workaround needed for
28892         this bug vs. what is needed for systems that lack utimensat.
28893         (fdutimens, lutimens): Work around bug.
28894
28895         utimens: check for ctime update
28896         * tests/test-utimens-common.h (check_ctime): Define.
28897         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28898         * tests/test-futimens.h (test_futimens): Likewise.
28899         * tests/test-lutimens.h (test_lutimens): Likewise.
28900         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28901         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28902
28903 2009-12-19  Bruno Haible  <bruno@clisp.org>
28904
28905         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28906         * tests/test-dprintf-posix2.sh: New file.
28907         * tests/test-dprintf-posix2.c: New file.
28908         * modules/dprintf-posix-tests (Files): Add them.
28909         (configure.ac): Check for getrlimit and setrlimit.
28910         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28911
28912 2009-12-19  Bruno Haible  <bruno@clisp.org>
28913
28914         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28915         * tests/test-fprintf-posix3.sh: New file.
28916         * tests/test-fprintf-posix3.c: New file.
28917         * modules/fprintf-posix-tests (Files): Add them.
28918         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28919
28920 2009-12-19  Eric Blake  <ebb9@byu.net>
28921
28922         dirfd: fix prototype
28923         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28924         * lib/dirfd.c (dirfd): Likewise.
28925
28926         canonicalize: reduce memory usage
28927         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28928         allocation to size.
28929         Reported by Solar Designer <solar@openwall.com>.
28930
28931 2009-12-19  Bruno Haible  <bruno@clisp.org>
28932
28933         New module attribute 'Applicability'.
28934         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28935         * gnulib-tool: New option --extract-applicability.
28936         (func_usage): Document it.
28937         (sed_extract_prog): Recognize it.
28938         (func_get_applicability): New function.
28939         (func_import): Generalize handling of 'link-warning' module.
28940         * modules/link-warning (Applicability): New section.
28941         * modules/arg-nonnull (Applicability): New section.
28942         Repoted by Simon Josefsson <simon@josefsson.org>.
28943
28944 2009-12-19  Bruno Haible  <bruno@clisp.org>
28945
28946         fflush: tweak
28947         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28948         * lib/fseeko.c (rpl_fseeko): Likewise.
28949
28950 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28951
28952         * lib/gl_list.h: Fix typo in comment.
28953
28954 2009-12-16  Eric Blake  <ebb9@byu.net>
28955
28956         fcntl: use to simplify other modules
28957         * modules/cloexec (Depends-on): Add fcntl.
28958         * modules/fchdir (Depends-on): Likewise.
28959         * modules/fd-safer-flag (Depends-on): Likewise.
28960         * modules/unistd-safer (Depends-on): Likewise.
28961         * modules/dup3 (configure.ac): Set module indicator.
28962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28963         missing.
28964         * lib/fchdir.c (_gl_register_dup): Fix comment.
28965         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28966         * lib/dup-safer.c (dup_safer): Likewise.
28967         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28968         * lib/dup3.c (dup3): Likewise.
28969         * tests/test-fchdir.c (main): Enhance test.
28970         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28971
28972         fcntl: port portions of fcntl to mingw
28973         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28974         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28975         replacement for mingw.
28976         * modules/fcntl (Description): Update.
28977         (Depends-on): Add dup2.
28978         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28979         * modules/fcntl-h (Makefile.am): Substitute it.
28980         * lib/fcntl.in.h (fcntl): Update declaration.
28981         (F_DUPFD, F_GETFD): New macros, when needed.
28982         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28983         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28984         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28985         we now guarantee.
28986
28987         fcntl: work around cygwin bug in F_DUPFD
28988         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28989         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28990         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28991         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28992         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28993
28994         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28995         * modules/fcntl (Files): List new files.
28996         (configure.ac): Run a test.
28997         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28998         * lib/fcntl.c (rpl_fcntl): Likewise.
28999         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
29000         (gl_FCNTL_H): Always replace fcntl.h.
29001         * modules/fcntl-h (Makefile.am): Substitute witnesses.
29002         * lib/fcntl.in.h (fcntl): Declare replacement.
29003         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
29004         needed, plus a witness.
29005         * doc/posix-functions/fcntl.texi (fcntl): Document this.
29006         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29007         * tests/test-fcntl.c: New file.
29008         * modules/fcntl-tests: Likewise.
29009
29010         binary-io: avoid potential compilation warning
29011         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
29012         directives.
29013
29014         fflush: avoid compilation error on NetBSD
29015         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
29016         between off_t and fpos_t, since the latter is sometimes a struct.
29017         * lib/fseeko.c (rpl_fseeko): Likewise.
29018         Reported by Alexander Nasonov <alnsn@yandex.ru>.
29019
29020 2009-12-15  Eric Blake  <ebb9@byu.net>
29021
29022         fcntl-h, stdio, sys_ioctl: fix declarations
29023         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
29024         function must not take arguments.
29025         * lib/sys_ioctl.in.h (ioctl): Likewise.
29026         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
29027         (open): Add a link warning.
29028
29029 2009-12-15  Jim Meyering  <meyering@redhat.com>
29030
29031         areadlink, areadlink-with-size: relax license to LGPLv2+
29032         * modules/areadlink (License): Relax to LGPLv2+.
29033         * modules/areadlink-with-size (License): Likewise.
29034
29035 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
29036             Bruno Haible  <bruno@clisp.org>
29037
29038         *printf: Fix memory leak.
29039         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
29040         * lib/vfprintf.c (vfprintf): Likewise.
29041         * lib/dprintf.c (dprintf): Likewise.
29042         * lib/vdprintf.c (vdprintf): Likewise.
29043
29044 2009-12-14  Eric Blake  <ebb9@byu.net>
29045
29046         accept4: adjust module dependencies
29047         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
29048
29049         utimens: one more try at avoiding compiler warning
29050         * lib/utimens.c (lutimens): Lower scope of result.
29051
29052 2009-12-13  Bruno Haible  <bruno@clisp.org>
29053
29054         Move the malloc checking from module 'list' to new module 'xlist'.
29055         * modules/xlist: New file.
29056         * lib/gl_xlist.h: New file.
29057         * lib/gl_xlist.c: New file.
29058         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
29059         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
29060         gl_list_add_last, gl_list_add_before, gl_list_add_after,
29061         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
29062         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
29063         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
29064         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
29065         gl_sortedlist_nx_add): New declarations.
29066         (struct gl_list_implementation): Rename and change methods accordingly.
29067         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
29068         (gl_list_nx_create): Renamed from gl_list_create.
29069         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29070         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29071         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29072         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29073         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29074         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29075         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29076         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29077         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
29078         gl_list_create_empty.
29079         (gl_list_nx_create): Renamed from gl_list_create.
29080         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29081         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29082         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29083         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29084         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29085         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29086         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29087         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29088         * lib/gl_array_list.c: Don't include xalloc.h.
29089         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
29090         NULL upon out-of-memory.
29091         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
29092         out-of-memory.
29093         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
29094         Change return type to 'int'.
29095         (gl_array_nx_set_at): Renamed from gl_array_set_at.
29096         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
29097         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
29098         upon out-of-memory.
29099         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
29100         upon out-of-memory.
29101         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
29102         upon out-of-memory.
29103         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
29104         upon out-of-memory.
29105         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
29106         out-of-memory.
29107         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
29108         Update.
29109         (gl_array_list_implementation): Update.
29110         * lib/gl_carray_list.c: Don't include xalloc.h.
29111         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
29112         Return NULL upon out-of-memory.
29113         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
29114         out-of-memory.
29115         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
29116         Change return type to 'int'.
29117         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
29118         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
29119         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
29120         upon out-of-memory.
29121         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
29122         upon out-of-memory.
29123         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
29124         out-of-memory.
29125         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
29126         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
29127         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
29128         Update.
29129         (gl_carray_list_implementation): Update.
29130         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
29131         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
29132         gl_linked_create_empty. Return NULL upon out-of-memory.
29133         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
29134         out-of-memory.
29135         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
29136         Change return type to 'int'. Return -1 upon out-of-memory.
29137         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
29138         out-of-memory.
29139         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
29140         upon out-of-memory.
29141         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
29142         upon out-of-memory.
29143         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
29144         NULL upon out-of-memory.
29145         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
29146         upon out-of-memory.
29147         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
29148         out-of-memory.
29149         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
29150         Update.
29151         * lib/gl_linked_list.c: Don't include xalloc.h.
29152         (gl_linked_list_implementation): Update.
29153         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
29154         (add_to_bucket): Change return type to 'int'.
29155         (gl_linkedhash_list_implementation): Update.
29156         * lib/gl_anytree_list1.h (free_subtree): New function.
29157         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
29158         gl_tree_create_empty. Return NULL upon out-of-memory.
29159         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
29160         Change return type to 'int'. Return -1 upon out-of-memory.
29161         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
29162         out-of-memory.
29163         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
29164         (gl_tree_remove_node): New function, moved here from
29165         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
29166         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
29167         Update.
29168         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
29169         malloc, not xmalloc. Return NULL upon out-of-memory.
29170         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
29171         out-of-memory.
29172         (gl_tree_remove_node_from_tree): New function, extracted from
29173         gl_tree_remove_node.
29174         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
29175         upon out-of-memory.
29176         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
29177         out-of-memory.
29178         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
29179         upon out-of-memory.
29180         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
29181         upon out-of-memory.
29182         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
29183         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
29184         not xmalloc. Return NULL upon out-of-memory.
29185         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
29186         out-of-memory.
29187         (gl_tree_remove_node_from_tree): New function, extracted from
29188         gl_tree_remove_node.
29189         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
29190         upon out-of-memory.
29191         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
29192         out-of-memory.
29193         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
29194         upon out-of-memory.
29195         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
29196         upon out-of-memory.
29197         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
29198         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
29199         gl_anytree_list1.h before gl_anyavltree_list2.h.
29200         (gl_avltree_list_implementation): Update.
29201         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
29202         gl_anytree_list1.h before gl_anyavltree_list2.h.
29203         (gl_rbtree_list_implementation): Update.
29204         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
29205         Change return type to 'int'. Return -1 upon out-of-memory. Use
29206         __builtin_expect.
29207         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
29208         (gl_avltreehash_list_implementation): Update.
29209         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
29210         (gl_rbtreehash_list_implementation): Update.
29211         * modules/array-list (Depends-on): Remove xalloc.
29212         * modules/carray-list (Depends-on): Likewise.
29213         * modules/linked-list (Depends-on): Likewise.
29214         * modules/linkedhash-list (Depends-on): Likewise.
29215         * modules/avltree-list (Depends-on): Likewise.
29216         * modules/rbtree-list (Depends-on): Likewise.
29217         * modules/avltreehash-list (Depends-on): Likewise.
29218         * modules/rbtreehash-list (Depends-on): Likewise.
29219
29220         * modules/xsublist: New file.
29221         * lib/gl_xsublist.h: New file.
29222         * lib/gl_xsublist.c: New file.
29223         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
29224         (gl_sublist_nx_create): New declaration.
29225         * lib/gl_sublist.c: Don't include xalloc.h.
29226         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
29227         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
29228         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
29229         Change return type to 'int'. Return -1 upon out-of-memory.
29230         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
29231         upon out-of-memory.
29232         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
29233         NULL upon out-of-memory.
29234         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
29235         upon out-of-memory.
29236         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
29237         NULL upon out-of-memory.
29238         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
29239         NULL upon out-of-memory.
29240         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
29241         upon out-of-memory.
29242         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
29243         (gl_sublist_list_implementation): Update.
29244         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
29245         upon out-of-memory.
29246         * modules/sublist (Depends-on): Remove xalloc.
29247
29248         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
29249         * tests/test-carray_list.c: Likewise.
29250         * tests/test-linked_list.c: Likewise.
29251         * tests/test-linkedhash_list.c: Likewise.
29252         * tests/test-avltree_list.c: Likewise.
29253         * tests/test-rbtree_list.c: Likewise.
29254         * tests/test-avltreehash_list.c: Likewise.
29255         * tests/test-rbtreehash_list.c: Likewise.
29256         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
29257         * modules/carray-list-tests (Makefile.am): Likewise.
29258         * modules/linked-list-tests (Makefile.am): Likewise.
29259         * modules/linkedhash-list-tests (Makefile.am): Likewise.
29260         * modules/avltree-list-tests (Makefile.am): Likewise.
29261         * modules/rbtree-list-tests (Makefile.am): Likewise.
29262         * modules/avltreehash-list-tests (Makefile.am): Likewise.
29263         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
29264
29265         * NEWS: Mention the changes.
29266
29267         * lib/clean-temp.c: Include gl_xlist.h.
29268         * modules/clean-temp (Depends-on): Add xlist.
29269
29270         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
29271         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
29272
29273         * tests/test-array_oset.c: Include gl_xlist.h.
29274         * modules/array-oset-tests (Depends-on): Add xlist.
29275
29276         Reported by José E. Marchesi <jemarch@gnu.org>.
29277
29278 2009-12-13  Bruno Haible  <bruno@clisp.org>
29279
29280         Move the malloc checking from module 'oset' to new module 'xoset'.
29281         * modules/xoset: New file.
29282         * lib/gl_xoset.h: New file.
29283         * lib/gl_xoset.c: New file.
29284         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
29285         declarations.
29286         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
29287         (struct gl_oset_implementation): Rename and change methods accordingly.
29288         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
29289         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29290         'int'. Mark as __warn_unused_result__.
29291         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
29292         gl_oset_create_empty.
29293         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29294         'int'.
29295         * lib/gl_array_oset.c: Don't include xalloc.h.
29296         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
29297         malloc, not xmalloc.
29298         (grow): Change return type to 'int'. Don't call xalloc_die.
29299         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
29300         to 'int'.
29301         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
29302         'int'.
29303         (gl_array_oset_implementation): Update.
29304         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
29305         gl_tree_create_empty.
29306         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
29307         'int'.
29308         * lib/gl_avltree_oset.c: Don't include xalloc.h.
29309         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29310         xmalloc.
29311         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29312         not xmalloc.
29313         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29314         xmalloc.
29315         (gl_avltree_oset_implementation): Update.
29316         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
29317         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29318         xmalloc.
29319         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29320         not xmalloc.
29321         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29322         xmalloc.
29323         (gl_rbtree_oset_implementation): Update.
29324         * modules/array-oset (Depends-on): Remove xalloc.
29325         * modules/avltree-oset (Depends-on): Likewise.
29326         * modules/rbtree-oset (Depends-on): Likewise.
29327         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
29328         * tests/test-avltree_oset.c: Likewise.
29329         * tests/test-rbtree_oset.c: Likewise.
29330         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
29331         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
29332         * modules/rbtree-oset-tests (Makefile.am): Likewise.
29333         * NEWS: Mention the change.
29334
29335 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
29336
29337         maint.mk: allow a project to override release-prep commands
29338         * top/maint.mk (alpha, beta, stable): Move release-preparatory
29339         commands into a new rule.
29340         (release-prep): New rule.
29341         (release-prep-hook): New overridable variable.
29342
29343 2009-12-13  Bruno Haible  <bruno@clisp.org>
29344
29345         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
29346
29347 2009-12-13  Jim Meyering  <meyering@redhat.com>
29348
29349         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
29350         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
29351
29352 2009-12-12  Bruno Haible  <bruno@clisp.org>
29353
29354         duplocale: Tweak.
29355         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
29356
29357 2009-12-12  Karl Berry  <karl@gnu.org>
29358
29359         * config/srclist.txt (strtoll.c): tab changes, no more sync.
29360
29361 2009-12-12  Bruno Haible  <bruno@clisp.org>
29362
29363         * m4/po.m4: Undo incorrect untabification.
29364
29365 2009-12-12  Bruno Haible  <bruno@clisp.org>
29366
29367         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
29368         * modules/c-strtod (Depends-on): Add locale.
29369         * modules/c-strtold (Depends-on): Likewise.
29370
29371 2009-12-12  Bruno Haible  <bruno@clisp.org>
29372
29373         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
29374
29375 2009-12-11  Eric Blake  <ebb9@byu.net>
29376
29377         setenv: relax requirement in light of POSIX ruling
29378         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
29379         not NULL.
29380         * tests/test-setenv.c (main): Relax test.
29381         * tests/test-unsetenv.c (main): Likewise.
29382         * doc/posix-functions/setenv.texi (setenv): Document this.
29383         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29384
29385 2009-12-11  Bruno Haible  <bruno@clisp.org>
29386
29387         New module 'fd-safer-flag'.
29388         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
29389         * lib/dup-safer.c (dup_safer_flag): Remove function.
29390         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
29391         * lib/fd-safer.c (fd_safer_flag): Remove function.
29392         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
29393         * modules/cloexec (configure.ac): Drop indicator macro.
29394         * modules/fd-safer-flag: New file.
29395         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
29396         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
29397         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
29398
29399 2009-12-11  Bruno Haible  <bruno@clisp.org>
29400
29401         Tests for module 'nl_langinfo'.
29402         * modules/nl_langinfo-tests: New file.
29403         * tests/test-nl_langinfo.sh: New file.
29404         * tests/test-nl_langinfo.c: New file.
29405
29406         New module 'nl_langinfo'.
29407         * lib/nl_langinfo.c: New file.
29408         * m4/nl_langinfo.m4: New file.
29409         * modules/nl_langinfo: New file.
29410         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
29411
29412 2009-12-11  Bruno Haible  <bruno@clisp.org>
29413
29414         Tests for module 'langinfo'.
29415         * modules/langinfo-tests: New file.
29416         * tests/test-langinfo.c: New file.
29417
29418         New module 'langinfo'.
29419         * lib/langinfo.in.h: New file.
29420         * m4/langinfo_h.m4: New file.
29421         * modules/langinfo: New file.
29422         * doc/posix-headers/langinfo.texi: Mention the new module.
29423
29424 2009-12-11  Bruno Haible  <bruno@clisp.org>
29425
29426         * lib/config.charset: Untabify.
29427
29428 2009-12-11  Bruno Haible  <bruno@clisp.org>
29429
29430         * modules/unistd-safer (configure.ac): Drop indicator macro.
29431
29432 2009-12-11  Bruno Haible  <bruno@clisp.org>
29433
29434         Move pipe2-safer code to its own file.
29435         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
29436         * lib/pipe-safer.c (pipe2_safer): Remove function.
29437         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
29438         (Makefile.am): Add it to lib_SOURCES.
29439
29440 2009-12-10  Bruno Haible  <bruno@clisp.org>
29441
29442         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
29443
29444 2009-12-10  Bruno Haible  <bruno@clisp.org>
29445
29446         Declare which arguments expect non-NULL values, for GCC and clang.
29447         * build-aux/arg-nonnull.h: New file.
29448         * modules/arg-nonnull: New file.
29449         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
29450         (inet_ntop, inet_pton): Use it.
29451         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
29452         (closedir, dirfd, opendir, scandir, alphasort): Use it.
29453         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
29454         (open, openat): Use it.
29455         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
29456         (fnmatch): Use it.
29457         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
29458         (getopt, getopt_long, getopt_long_only): Use it.
29459         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
29460         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
29461         Use it.
29462         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
29463         (iconv_open): Use it.
29464         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
29465         (strtoimax, strtoumax): Use it.
29466         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
29467         (duplocale): Use it.
29468         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
29469         (frexp, frexpl): Use it.
29470         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
29471         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
29472         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
29473         (tsearch, tfind, tdelete, twalk): Use it.
29474         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
29475         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29476         sigpending): Use it.
29477         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
29478         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29479         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29480         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29481         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29482         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29483         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29484         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29485         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29486         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29487         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29488         Use it.
29489         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
29490         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
29491         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
29492         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
29493         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
29494         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
29495         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
29496         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
29497         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
29498         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
29499         strtoull, unsetenv): Use it.
29500         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
29501         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29502         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29503         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
29504         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
29505         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
29506         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
29507         (strcasecmp, strncasecmp): Use it.
29508         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
29509         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
29510         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
29511         rpl_setsockopt): Use it.
29512         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
29513         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
29514         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
29515         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
29516         (gettimeofday): Use it.
29517         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
29518         (times): Use it.
29519         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
29520         (uname): Use it.
29521         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
29522         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
29523         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
29524         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
29525         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
29526         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
29527         unlinkat, write): Use it.
29528         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
29529         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
29530         * lib/argv-iter.h: Include arg-nonnull.h.
29531         (_ATTRIBUTE_NONNULL_): Remove macro.
29532         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
29533         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
29534         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
29535         optimization.
29536         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
29537         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
29538         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
29539         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
29540         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
29541         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
29542         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
29543         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
29544         * modules/arpa_inet (Depends-on): Add arg-nonnull.
29545         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
29546         * modules/dirent (Depends-on): Add arg-nonnull.
29547         (Makefile.am): Insert arg-nonnull.h into dirent.h.
29548         * modules/fcntl-h (Depends-on): Add arg-nonnull.
29549         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
29550         * modules/fnmatch (Depends-on): Add arg-nonnull.
29551         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
29552         * modules/getopt-posix (Depends-on): Add arg-nonnull.
29553         (Makefile.am): Insert arg-nonnull.h into getopt.h.
29554         * modules/glob (Depends-on): Add arg-nonnull.
29555         (Makefile.am): Insert arg-nonnull.h into glob.h.
29556         * modules/iconv_open (Depends-on): Add arg-nonnull.
29557         (Makefile.am): Insert arg-nonnull.h into iconv.h.
29558         * modules/inttypes (Depends-on): Add arg-nonnull.
29559         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
29560         * modules/locale (Depends-on): Add arg-nonnull.
29561         (Makefile.am): Insert arg-nonnull.h into locale.h.
29562         * modules/math (Depends-on): Add arg-nonnull.
29563         (Makefile.am): Insert arg-nonnull.h into math.h.
29564         * modules/netdb (Depends-on): Add arg-nonnull.
29565         (Makefile.am): Insert arg-nonnull.h into netdb.h.
29566         * modules/search (Depends-on): Add arg-nonnull.
29567         (Makefile.am): Insert arg-nonnull.h into search.h.
29568         * modules/signal (Depends-on): Add arg-nonnull.
29569         (Makefile.am): Insert arg-nonnull.h into signal.h.
29570         * modules/spawn (Depends-on): Add arg-nonnull.
29571         (Makefile.am): Insert arg-nonnull.h into spawn.h.
29572         * modules/stdio (Depends-on): Add arg-nonnull.
29573         (Makefile.am): Insert arg-nonnull.h into stdio.h.
29574         * modules/stdlib (Depends-on): Add arg-nonnull.
29575         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
29576         * modules/string (Depends-on): Add arg-nonnull.
29577         (Makefile.am): Insert arg-nonnull.h into string.h.
29578         * modules/strings (Depends-on): Add arg-nonnull.
29579         (Makefile.am): Insert arg-nonnull.h into strings.h.
29580         * modules/sys_socket (Depends-on): Add arg-nonnull.
29581         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
29582         * modules/sys_stat (Depends-on): Add arg-nonnull.
29583         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
29584         * modules/sys_time (Depends-on): Add arg-nonnull.
29585         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
29586         * modules/sys_times (Depends-on): Add arg-nonnull.
29587         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
29588         * modules/sys_utsname (Depends-on): Add arg-nonnull.
29589         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
29590         * modules/time (Depends-on): Add arg-nonnull.
29591         (Makefile.am): Insert arg-nonnull.h into time.h.
29592         * modules/unistd (Depends-on): Add arg-nonnull.
29593         (Makefile.am): Insert arg-nonnull.h into unistd.h.
29594         * modules/wchar (Depends-on): Add arg-nonnull.
29595         (Makefile.am): Insert arg-nonnull.h into wchar.h.
29596         * modules/argv-iter (Depends-on): Add arg-nonnull.
29597         * tests/test-canonicalize.c (null_ptr): New function.
29598         (main): Use it.
29599         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
29600         (main): Use it.
29601         * tests/test-memmem.c (null_ptr): New function.
29602         (main): Use it.
29603         Reported by Jim Meyering.
29604
29605 2009-12-10  Bruno Haible  <bruno@clisp.org>
29606
29607         Use spaces for indentation, not tabs.
29608         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29609         * m4/*.m4: Untabify.
29610         * build-aux/*.h: Untabify.
29611         * tests/**/*.[hc]: Untabify.
29612         * README: New section "Indent with spaces, not TABs", based on
29613         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
29614         * NEWS: Mention the change.
29615
29616 2009-12-10  Bruno Haible  <bruno@clisp.org>
29617
29618         pty test: Fix link error.
29619         * modules/pty-tests (Makefile.am): Add the default LDADD value to
29620         test_pty_LDADD.
29621
29622 2009-12-07  Simon Josefsson  <simon@josefsson.org>
29623
29624         * modules/pty: New file.
29625         * modules/pty-tests: New file.
29626         * m4/pty.m4: New file.
29627         * tests/test-pty.c: New file.
29628         * doc/glibc-headers/pty.texi: Modified.
29629         * doc/glibc-functions/forkpty.texi: Modified.
29630         * doc/glibc-functions/openpty.texi: Modified.
29631
29632 2009-12-10  Bruno Haible  <bruno@clisp.org>
29633
29634         Avoid syntax error in C++ mode.
29635         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
29636
29637 2009-12-10  Bruno Haible  <bruno@clisp.org>
29638
29639         Use sed with option -e.
29640         * gnulib-tool (func_version, func_emit_copyright_notice,
29641         func_emit_initmacro_end, func_import, func_create_testdir): Pass
29642         option -e to sed.
29643         * modules/link-warning (Makefile.am): Likewise.
29644
29645 2009-12-10  Jim Meyering  <meyering@redhat.com>
29646
29647         mgetgroups: do not write bytes beyond end of malloc'd buffer
29648         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
29649         username, we call getgroups with a one-element-shorter buffer,
29650         but still told it the length was original, max_n_groups.
29651
29652 2009-12-09  Eric Blake  <ebb9@byu.net>
29653
29654         cloexec: relax license
29655         * modules/cloexec (Maintainer): Add myself.
29656         (License): Use LGPL, not GPL.
29657
29658         link-warning: optimize generation
29659         * modules/link-warning (Makefile.am): Reduce process usage.
29660
29661 2009-12-09  Bruno Haible  <bruno@clisp.org>
29662
29663         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
29664         workaround was added on 2009-11-17.
29665
29666 2009-12-09  Jim Meyering  <meyering@redhat.com>
29667             Bruno Haible  <bruno@clisp.org>
29668
29669         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
29670         * modules/link-warning (Makefile.am): Make the comment-removing sed
29671         command more robust in the face of bootstrap-prepended comment lines.
29672
29673 2009-12-09  Bruno Haible  <bruno@clisp.org>
29674
29675         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
29676         most one group.
29677
29678 2009-12-09  Simon Josefsson <simon@josefsson.org>
29679             Bruno Haible  <bruno@clisp.org>
29680
29681         * build-aux/link-warning.h: Add copyright notice.
29682         * modules/link-warning (Makefile.am): Generate link-warning.h from
29683         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
29684         * NEWS: Mention change in link-warning module.
29685         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
29686         * modules/dirent (Makefile.am): Add dependency to dirent.h.
29687         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
29688         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
29689         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
29690         * modules/math (Makefile.am): Add dependency to math.h.
29691         * modules/search (Makefile.am): Add dependency to search.h.
29692         * modules/signal (Makefile.am): Add dependency to signal.h.
29693         * modules/spawn (Makefile.am): Add dependency to spawn.h.
29694         * modules/stdio (Makefile.am): Add dependency to stdio.h.
29695         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
29696         * modules/string (Makefile.am): Add dependency to string.h.
29697         * modules/strings (Makefile.am): Add dependency to strings.h.
29698         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
29699         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
29700         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
29701         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
29702         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
29703         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
29704         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
29705         * modules/unistd (Makefile.am): Add dependency to unistd.h.
29706         * modules/wchar (Makefile.am): Add dependency to wchar.h.
29707
29708 2009-12-09  Bruno Haible  <bruno@clisp.org>
29709
29710         fchdir: Optimize away rpl_fstat when possible.
29711         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
29712         REPLACE_OPEN_DIRECTORY.
29713         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
29714
29715 2009-12-09  Bruno Haible  <bruno@clisp.org>
29716
29717         * lib/fchdir.c: Update comment.
29718
29719 2009-12-09  Bruno Haible  <bruno@clisp.org>
29720
29721         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
29722
29723 2009-12-08  Eric Blake  <ebb9@byu.net>
29724
29725         fchdir: avoid memory leak on re-registration.
29726         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
29727
29728 2009-12-08  Jim Meyering  <meyering@redhat.com>
29729
29730         init.sh: avoid Solaris 10 /bin/sh portability problem
29731         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
29732         sourced script:
29733           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
29734           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
29735           bar
29736         tests/init.sh relied on that, accepting a --set-path=DIR argument,
29737         and two tests used that idiom.
29738         * tests/init.sh: Update suggested usage comments.
29739         (path_prepend_): New function, to be used in place
29740         of the --src-path=DIR option.
29741         (setup_): Move PATH-prepending code into path_prepend_.
29742         * tests/test-pread.sh: Adapt to new usage.
29743         * tests/test-xalloc-die.sh: Likewise.
29744
29745 2009-12-08  Simon Josefsson  <simon@josefsson.org>
29746
29747         * doc/gnulib.texi (Glibc pty.h): Add.
29748         * doc/glibc-functions/forkpty.texi: Add.
29749         * doc/glibc-functions/openpty.texi: Add.
29750         Suggested by Bruno Haible.
29751
29752 2009-12-08  Eric Blake  <ebb9@byu.net>
29753
29754         fchdir: fix logic bugs
29755         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
29756         * tests/test-fchdir.c (main): Enhance test.
29757         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
29758         is in use.
29759
29760         dup2: fix logic bugs
29761         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
29762         REPLACE_DUP2 to decide when rpl_dup2 is needed.
29763         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
29764         exists.
29765         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
29766
29767 2009-12-07  Eric Blake  <ebb9@byu.net>
29768
29769         unlink: fix m4 detection
29770         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
29771
29772         unistd-safer: add unit test
29773         * modules/unistd-safer-tests: New file.
29774         * tests/test-dup-safer.c: Likewise.
29775         * tests/test-cloexec.c (setmode): Avoid compiler warning.
29776         * tests/test-dup2.c (setmode): Likewise.
29777         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
29778
29779         cloexec: preserve text vs. binary across dup_cloexec
29780         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
29781         mode.
29782         * modules/dup2-tests (Depends-on): Add binary-io.
29783         * modules/cloexec-tests (Depends-on): Likewise.
29784         * tests/test-dup2.c (setmode, is_mode): New helpers.
29785         (main): Add tests that translation mode is preserved.
29786         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
29787         Reported by Bruno Haible.
29788
29789         mgetgroups: reduce duplicate listings
29790         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
29791         resulting array.
29792         * tests/test-chown.h (test_chown): Simplify client.
29793         * tests/test-lchown.h (test_lchown): Likewise.
29794
29795 2009-12-06  Bruno Haible  <bruno@clisp.org>
29796
29797         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29798         value.
29799
29800 2009-12-06  Bruno Haible  <bruno@clisp.org>
29801
29802         * lib/progname.c: Include stdio.h, stdlib.h.
29803         (set_program_name): Reject a NULL argument.
29804
29805 2009-12-05  Eric Blake  <ebb9@byu.net>
29806
29807         pipe2-safer: new module
29808         * modules/pipe2-safer: New file.
29809         * lib/unistd-safer.h (pipe2_safer): New prototype.
29810         * lib/unistd--.h (pipe2): New wrapper.
29811         * lib/pipe-safer.c (pipe2_safer): New function.
29812         * modules/pipe (Depends-on): Add pipe2-safer.
29813         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29814
29815         stdlib-safer: preserve cloexec flag for mkostemp[s]
29816         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29817         fd_safer_flag.
29818
29819         unistd-safer: allow preservation of cloexec status via flag
29820         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
29821         prototypes.
29822         * lib/dup-safer.c (dup_safer_flag): New function.
29823         * lib/fd-safer.c (fd_safer_flag): Likewise.
29824         * modules/cloexec (configure.ac): Set witness.
29825
29826         test-dup2: enhance test
29827         * modules/dup2-tests (Depends-on): Add cloexec.
29828         * tests/test-dup2.c (main): Enhance test.
29829
29830         cloexec: add dup_cloexec
29831         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
29832         header and comments.
29833         * lib/cloexec.c (set_cloexec_flag): Add comments.
29834         (dup_cloexec): New function, with mingw implementation borrowed
29835         from...
29836         * lib/w32spawn.h (dup_noinherit): ...here.
29837         * modules/execute (Depends-on): Add cloexec.
29838         * modules/pipe (Depends-on): Likewise.
29839         * modules/cloexec (Depends-on): Add dup2.
29840         * modules/cloexec-tests (Files): New file.
29841         * tests/test-cloexec.c: Likewise.
29842
29843         test-xalloc-die: fix test for mingw
29844         * modules/xalloc-die-tests (Files): Add tests/init.sh.
29845         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
29846         directory and .exe suffix off argv[0] output.
29847
29848         test-fseeko: fix test for mingw
29849         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
29850         than undefining fseek, so test will pass on mingw.
29851
29852 2009-12-05  Bruno Haible  <bruno@clisp.org>
29853
29854         * lib/progname.h (set_program_name): Clarify specification.
29855         * lib/progname.c (set_program_name): Likewise.
29856         Reported by Jim Meyering.
29857
29858 2009-12-05  Jim Meyering  <meyering@redhat.com>
29859
29860         maint.mk: backslash-escape parens in default regexp
29861         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
29862         backslash-escape the literal parentheses.
29863
29864         maint.mk: news-date-check: use grep -E
29865         * top/maint.mk (today): Define a Make variable, not a...
29866         (news-date-check): ...shell variable.
29867         (news-date-regexp): Use the Make variable.
29868         Use grep's -E option.  Change the failing diagnostic to mention
29869         the variable, $(news-date-regexp).
29870
29871 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
29872
29873         maintainer-makefile: allow customization of NEWS entry format
29874         * top/maint.mk (news-date-regexp): New overridable variable.
29875         (news-date-check): Use it.
29876
29877 2009-12-04  Eric Blake  <ebb9@byu.net>
29878
29879         mgetgroups: add xgetgroups, and avoid ENOSYS failures
29880         * lib/mgetgroups.h (xgetgroups): New prototype.
29881         * lib/mgetgroups.c (xgetgroups): New wrapper.
29882         (mgetgroups): Handle ENOSYS.
29883         * modules/mgetgroups (Depends-on): Add realloc.
29884         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29885
29886         mgetgroups: avoid argument promotion issues with -1
29887         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29888         for invalid gid_t.
29889         * tests/test-chown.h (getegid, test_chown): Likewise.
29890         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29891
29892 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29893
29894         exclude: Fix header file problems.
29895         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29896
29897 2009-12-01  Jim Meyering  <meyering@redhat.com>
29898
29899         fts: fts_open: do not let an empty string cause immediate failure
29900         This is required in support of GNU rm, for which the command
29901         "rm A '' B" must process and remove both A and B, in spite of
29902         the empty string argument.
29903         * lib/fts.c (fts_open): Do not let the presence of an empty string
29904         cause fts_open to fail immediately.  Most fts-using tools must be
29905         able to process all arguments, in order, and can be expected to
29906         diagnose such arguments themselves.
29907
29908 2009-11-30  Eric Blake  <ebb9@byu.net>
29909
29910         utimens: fix compilation error
29911         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29912         Declare variable at right scope.
29913
29914 2009-11-29  Jim Meyering  <meyering@redhat.com>
29915
29916         bootstrap: handle perl-5.11's changed --version output
29917         * build-aux/bootstrap (get_version): Handle perl separately,
29918         since perl-5.11's --version output is different.
29919
29920 2009-11-28  Jim Meyering  <meyering@redhat.com>
29921
29922         userspec: depend on the inttostr module, too
29923         * modules/userspec (Depends-on): Add inttostr.
29924
29925         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29926         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29927         number of MAXUID when it evaluates to (uid_t) -1.
29928         Likewise for group ID.  Reported by Matt McCutchen in
29929         <http://savannah.gnu.org/bugs/?28113>
29930
29931         userspec: reformat to use spaces, not TABs
29932         * lib/userspec.c: Expand TABs to spaces.
29933         Add Emacs' "indent-tabs-mode: nil" hint.
29934
29935 2009-11-27  Eric Blake  <ebb9@byu.net>
29936
29937         getopt-gnu: flush out another BSD bug
29938         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29939         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29940         flush out BSD bug.
29941         * tests/test-getopt.h (test_getopt): End lists with NULL.
29942         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29943         (test_getopt_long_posix): Enhance test.
29944         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29945         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29946         getopt-gnu.
29947         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29948         Likewise.
29949
29950 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29951
29952         * modules/idpriv-droptemp-tests (Notice): Fix text.
29953
29954 2009-11-27  Jim Meyering  <meyering@redhat.com>
29955
29956         test-xalloc-die: avoid spurious failure due to libtool argv difference
29957         In a libtool-enabled project, this test would fail due to a difference
29958         in the emitted program name, e.g.,
29959         -test-xalloc-die: memory exhausted
29960         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29961         Use program to avoid that.
29962         * modules/xalloc-die-tests (Depends-on): Add progname.
29963         * tests/test-xalloc-die.c: Include progname.h".
29964         (program_name): Remove decl.
29965         (main): Call set_program_name.
29966         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29967
29968 2009-11-26  Richard Jones  <rjones@redhat.com>
29969
29970         w32sock: leave win32 error in place.
29971         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29972
29973 2009-11-26  Eric Blake  <ebb9@byu.net>
29974
29975         init.sh: suggest to use skip_ and fail_ functions in comments
29976         * tests/init.sh: Add a sentence.
29977
29978 2009-11-25  Bruno Haible  <bruno@clisp.org>
29979
29980         init.sh: add documentation in comments
29981         * tests/init.sh: Add some developer and user documentation.
29982
29983 2009-11-26  Jim Meyering  <meyering@redhat.com>
29984
29985         init.sh: accommodate even those who specify bogus srcdir manually
29986         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29987         configure-time tests to be sanitized, so that there is no need to
29988         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29989         (with no double quotes) suffices.  However, since tests may be
29990         invoked manually, and since you may explicitly set srcdir to the
29991         name of a directory containing spaces, do quote its uses here.
29992         * tests/test-pread.sh: Likewise.
29993         Suggested by Bruno Haible.
29994
29995         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29996         * tests/test-pread.sh: Write no data into the pipe, because
29997         test-pread actually reads none.  This avoids a diagnostic,
29998         "bash: echo: write error: Broken pipe", that arises in the unusual
29999         event something is ignoring SIGPIPE, and might be interpreted
30000         as some sort of failure.  Reported by Bruno Haible.
30001
30002 2009-11-25  Jim Meyering  <meyering@redhat.com>
30003
30004         test-pread: cover failure with ESPIPE and EINVAL
30005         * tests/test-pread.c (main): Test for failure, too.
30006         * tests/test-pread.sh: Invoke with stdin on a pipe.
30007         Suggested by Eric Blake.
30008
30009         pread: improvement and fix
30010         * modules/pread (Depends-on): Depend on lseek, for portability to
30011         e.g., mingw.  Suggested by Eric Blake.
30012         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
30013
30014         unistd.in.h: correct declaration of pread
30015         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
30016         Reported by Richard W.M. Jones.
30017
30018         test-pread.sh: distribute the test script
30019         * modules/pread-tests (Files): Include test-pread.sh.
30020
30021         test-pread.sh: clean up
30022         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
30023         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
30024         That is unnecessary, since it's always ".".
30025         Suggestion from Eric Blake.
30026
30027         test-pread.sh: make executable
30028         * tests/test-pread.sh: Set executable bit.
30029         Reported by Eric Blake.
30030
30031         correct typo in test-pread.sh
30032         * tests/test-pread.sh: Add #! line.
30033
30034         test pread
30035         * tests/test-pread.c: New file.
30036         * tests/test-pread.sh: Likewise.
30037         * modules/pread-tests: Likewise.
30038
30039         pread: new module
30040         * modules/pread: New file.
30041         * lib/unistd.in.h (pread): Define/declare.
30042         * lib/pread.c (pread): New file.
30043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
30044         * modules/unistd (Makefile.am): Substitute witnesses.
30045         * doc/posix-functions/pread.texi (pread): Update.
30046         * MODULES.html.sh: Add pread.
30047
30048 2009-11-25  Jim Meyering  <meyering@redhat.com>
30049
30050         tests/init.sh: new file to be used via most *.sh tests
30051         * tests/init.sh: New file.
30052
30053 2009-11-25  Eric Blake  <ebb9@byu.net>
30054
30055         utimens: work around older Linux failure with symlinks
30056         * lib/utimens.c (lutimensat_works_really): New variable.
30057         (fdutimens, lutimens): Use it to manage kernels that support
30058         nanosecond times on files, but not on symlinks.
30059         Reported by OndÅ™ej Vašík.
30060
30061         utimes: fix configure grammar
30062         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
30063
30064 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
30065
30066         regex: Fix fastmap for multibyte character ranges.
30067         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
30068         characters when a multibyte character range is included.
30069
30070 2009-11-22  Andy Wingo  <wingo@pobox.com>
30071
30072         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
30073         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
30074
30075 2009-11-24  Bruno Haible  <bruno@clisp.org>
30076
30077         doc: Most *_l functions exist in MacOS X 10.5.
30078         * doc/posix-functions/duplocale.texi: Update platforms list.
30079         * doc/posix-functions/freelocale.texi: Likewise.
30080         * doc/posix-functions/newlocale.texi: Likewise.
30081         * doc/posix-functions/uselocale.texi: Likewise.
30082         * doc/posix-functions/isalnum_l.texi: Likewise.
30083         * doc/posix-functions/isalpha_l.texi: Likewise.
30084         * doc/posix-functions/isblank_l.texi: Likewise.
30085         * doc/posix-functions/iscntrl_l.texi: Likewise.
30086         * doc/posix-functions/isdigit_l.texi: Likewise.
30087         * doc/posix-functions/isgraph_l.texi: Likewise.
30088         * doc/posix-functions/islower_l.texi: Likewise.
30089         * doc/posix-functions/isprint_l.texi: Likewise.
30090         * doc/posix-functions/ispunct_l.texi: Likewise.
30091         * doc/posix-functions/isspace_l.texi: Likewise.
30092         * doc/posix-functions/isupper_l.texi: Likewise.
30093         * doc/posix-functions/iswalnum_l.texi: Likewise.
30094         * doc/posix-functions/iswalpha_l.texi: Likewise.
30095         * doc/posix-functions/iswblank_l.texi: Likewise.
30096         * doc/posix-functions/iswcntrl_l.texi: Likewise.
30097         * doc/posix-functions/iswctype_l.texi: Likewise.
30098         * doc/posix-functions/iswdigit_l.texi: Likewise.
30099         * doc/posix-functions/iswgraph_l.texi: Likewise.
30100         * doc/posix-functions/iswlower_l.texi: Likewise.
30101         * doc/posix-functions/iswprint_l.texi: Likewise.
30102         * doc/posix-functions/iswpunct_l.texi: Likewise.
30103         * doc/posix-functions/iswspace_l.texi: Likewise.
30104         * doc/posix-functions/iswupper_l.texi: Likewise.
30105         * doc/posix-functions/iswxdigit_l.texi: Likewise.
30106         * doc/posix-functions/isxdigit_l.texi: Likewise.
30107         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
30108         * doc/posix-functions/strcasecmp_l.texi: Likewise.
30109         * doc/posix-functions/strcoll_l.texi: Likewise.
30110         * doc/posix-functions/strfmon_l.texi: Likewise.
30111         * doc/posix-functions/strftime_l.texi: Likewise.
30112         * doc/posix-functions/strncasecmp_l.texi: Likewise.
30113         * doc/posix-functions/strxfrm_l.texi: Likewise.
30114         * doc/posix-functions/tolower_l.texi: Likewise.
30115         * doc/posix-functions/toupper_l.texi: Likewise.
30116         * doc/posix-functions/towctrans_l.texi: Likewise.
30117         * doc/posix-functions/towlower_l.texi: Likewise.
30118         * doc/posix-functions/towupper_l.texi: Likewise.
30119         * doc/posix-functions/wcscoll_l.texi: Likewise.
30120         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
30121         * doc/posix-functions/wctrans_l.texi: Likewise.
30122         * doc/posix-functions/wctype_l.texi: Likewise.
30123         * doc/glibc-functions/strptime_l.texi: Likewise.
30124         * doc/glibc-functions/strtod_l.texi: Likewise.
30125         * doc/glibc-functions/strtof_l.texi: Likewise.
30126         * doc/glibc-functions/strtol_l.texi: Likewise.
30127         * doc/glibc-functions/strtold_l.texi: Likewise.
30128         * doc/glibc-functions/strtoll_l.texi: Likewise.
30129         * doc/glibc-functions/strtoul_l.texi: Likewise.
30130         * doc/glibc-functions/strtoull_l.texi: Likewise.
30131         * doc/glibc-functions/wcsftime_l.texi: Likewise.
30132         * doc/glibc-functions/wcstod_l.texi: Likewise.
30133         * doc/glibc-functions/wcstof_l.texi: Likewise.
30134         * doc/glibc-functions/wcstol_l.texi: Likewise.
30135         * doc/glibc-functions/wcstold_l.texi: Likewise.
30136         * doc/glibc-functions/wcstoll_l.texi: Likewise.
30137         * doc/glibc-functions/wcstoul_l.texi: Likewise.
30138         * doc/glibc-functions/wcstoull_l.texi: Likewise.
30139
30140 2009-11-24  Bruno Haible  <bruno@clisp.org>
30141
30142         duplocale: Fix logic bug.
30143         * lib/duplocale.c: Don't include <langinfo.h>.
30144         (_NL_LOCALE_NAME): Remove macro.
30145         (rpl_duplocale): Use setlocale instead of nl_langinfo.
30146         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
30147
30148 2009-11-23  Jim Meyering  <meyering@redhat.com>
30149
30150         test-update-copyright: don't hard-code /usr/bin/perl
30151         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
30152         perl to print the current year.  Gilles Espinasse reported that
30153         the replaced use of perl was hard-coded as /usr/bin/perl.
30154
30155 2009-11-23  Bruno Haible  <bruno@clisp.org>
30156
30157         duplocale: Add support for glibc 2.3.x.
30158         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
30159
30160 2009-11-22  Bruno Haible  <bruno@clisp.org>
30161
30162         vasnprintf: Tiny optimization.
30163         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
30164         MacOS X.
30165
30166 2009-11-22  Bruno Haible  <bruno@clisp.org>
30167
30168         Tests for module 'duplocale'.
30169         * modules/duplocale-tests: New file.
30170         * tests/test-duplocale.c: New file.
30171
30172         New module 'duplocale'.
30173         * m4/duplocale.m4: New file.
30174         * lib/locale.in.h (duplocale): New declaration.
30175         * lib/duplocale.c: New file.
30176         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
30177         gl_LOCALE_H_DEFAULTS): New macros.
30178         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
30179         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
30180         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
30181         REPLACE_DUPLOCALE.
30182         * modules/duplocale: New file.
30183         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
30184
30185 2009-11-22  Bruno Haible  <bruno@clisp.org>
30186
30187         * modules/locale-tests (configure.ac): Test for newlocale function.
30188         * tests/test-locale.c: When the system has extended locale functions,
30189         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
30190
30191         locale: Make locale_t available when possible.
30192         * lib/locale.in.h: Include <xlocale.h> when it exists.
30193         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
30194         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
30195         * modules/locale (Depends-on): Add extensions.
30196         (Makefile.am): Also substitute HAVE_XLOCALE_H.
30197         * doc/posix-headers/locale.texi: Document the problem with locale_t.
30198
30199 2009-11-22  Bruno Haible  <bruno@clisp.org>
30200
30201         Add comments.
30202         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
30203         invocation.
30204         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
30205         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30206         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30207
30208 2009-11-22  Bruno Haible  <bruno@clisp.org>
30209
30210         error: account for the possibility of freopen (stdout).
30211         * lib/error.c: Include <unistd.h>.
30212         (flush_stdout): New function, extracted from error and error_at_line.
30213         Determine stdout's fd dynamically.
30214         (error, error_at_line): Invoke flush_stdout.
30215         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
30216         * modules/error (Depends-on): Add unistd.
30217
30218 2009-11-22  Bruno Haible  <bruno@clisp.org>
30219
30220         diffseq: Add comment.
30221         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
30222
30223 2009-11-22  Jim Meyering  <meyering@redhat.com>
30224
30225         c-stack: avoid defining an unused static function
30226         * lib/c-stack.c (find_stack_direction): Do not define this function
30227         when it will not be used.
30228
30229         diffseq: avoid spurious gcc warnings
30230         * lib/diffseq.h (IF_LINT2): Define.
30231         (compareseq): Use it to initialize two members of "part".
30232         This avoids two used-uninitialized warnings.
30233
30234 2009-11-21  Jim Meyering  <meyering@redhat.com>
30235
30236         c-stack: avoid "ignoring return value of `write'" warning
30237         * lib/c-stack.c: Include "ignore-value.h".
30238         (die): Explicitly ignore each write return value.
30239         * modules/c-stack (Depends-on): Add ignore-value.
30240
30241 2009-11-21  Bruno Haible  <bruno@clisp.org>
30242
30243         diffseq: reduce scope of variable 'best'.
30244         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
30245         variable, earlier used for two different purposes.
30246
30247 2009-11-21  Jim Meyering  <meyering@redhat.com>
30248
30249         diffseq: remove useless assignment to "best"
30250         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
30251         assignment.  At that point "best" is already guaranteed to be zero.
30252
30253 2009-11-20  Eric Blake  <ebb9@byu.net>
30254
30255         build: mention ftp redirector in release announcements
30256         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
30257         values that used to come from cfg.mk; mention FTP redirect URL.
30258         * build-aux/announce-gen: Mention the mirror list.
30259         Suggested by Karl Berry.
30260
30261         nanosleep: improve port to mingw
30262         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
30263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
30264         LIB_NANOSLEEP, but only when needed.
30265         * modules/select (Link): Document LIBSOCKET.
30266         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
30267         enough.
30268
30269         nanosleep: work around cygwin bug
30270         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
30271         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
30272         bug.
30273         (getnow): Delete, not needed.
30274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
30275         LIB_CLOCK_GETTIME.
30276         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
30277         clock-time, gettime.
30278         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
30279         bug.
30280         * modules/nanosleep-tests: New test.
30281         * tests/test-nanosleep.c: New file.
30282
30283         sleep: work around cygwin bug
30284         * lib/sleep.c (rpl_sleep): Work around the bug.
30285         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
30286         (gl_PREREQ_SLEEP): Delete unused macro.
30287         * modules/sleep (Depends-on): Add verify.
30288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30289         * modules/unistd (Makefile.am): Substitute witness.
30290         * lib/unistd.in.h (sleep): Update prototype.
30291         * doc/posix-functions/sleep.texi (sleep): Document the bug.
30292         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
30293         * modules/sleep-tests (Depends-on): Check for alarm.
30294
30295 2009-11-20  Jim Meyering  <meyering@redhat.com>
30296
30297         maint.mk: improve sc_prohibit_magic_number_exit
30298         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
30299         so it does not match uses like System.exit(1).
30300         Add comments showing how to correct all offenders.
30301
30302 2009-11-19  Eric Blake  <ebb9@byu.net>
30303
30304         xalloc-die-tests: add missing library
30305         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
30306
30307         test-xvasprintf: silence compiler warnings
30308         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
30309         empty string from gcc.
30310
30311 2009-11-19  Jim Meyering  <meyering@redhat.com>
30312
30313         xfreopen: new module, from coreutils
30314         * modules/xfreopen: New module.
30315         * lib/xfreopen.c: New file.
30316         * lib/xfreopen.h: New file.
30317         * MODULES.html.sh (File stream based Input/Output"): Add it.
30318
30319 2009-11-19  Eric Blake  <ebb9@byu.net>
30320
30321         manywarnings: depend on warnings
30322         * modules/manywarnings (Depends-on): Add warnings.
30323
30324         build: avoid compiler warnings
30325         * lib/select.c (rpl_select): Delete unused variable.
30326         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
30327
30328 2009-11-18  Eric Blake  <ebb9@byu.net>
30329
30330         tests: avoid false negative with --with-packager
30331         * tests/test-version-etc.sh: Discard packager information.
30332         * tests/test-argp-version-etc-1.sh: Likewise.
30333         Reported by Mike Frysinger.
30334
30335         utimens: fix regression on Solaris
30336         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
30337         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
30338         can only change fd timestamps via futimesat.  Instead, use an
30339         additional witness macro to avoid BSD bug.
30340         Reported by Jim Meyering.
30341
30342 2009-11-17  Eric Blake  <ebb9@byu.net>
30343
30344         usleep: use it to simplify tests
30345         * modules/stat-time-tests (Depends-on): Add usleep.
30346         (configure.ac): Drop usleep check.
30347         * modules/chown-tests (Depends-on, configure.ac): Likewise.
30348         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
30349         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
30350         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
30351         * modules/openat-tests (Depends-on, configure.ac): Likewise.
30352         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
30353         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
30354         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
30355         Likewise.
30356         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
30357         * tests/test-lchown.h (nap): Likewise.
30358         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
30359         * tests/test-stat-time.c (nap): Likewise.
30360         * tests/test-utimens-common.h (nap): Update comments.
30361
30362         usleep: new module
30363         * modules/usleep: New file.
30364         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
30365         * lib/usleep.c (usleep): Likewise.
30366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30367         * modules/unistd (Makefile.am): Substitute witnesses.
30368         * lib/unistd.in.h (usleep): Add declaration.
30369         * doc/pastposix-functions/usleep.texi (usleep): Document this.
30370         * MODULES.html.sh (Date and time): Likewise.
30371         * modules/usleep-tests (Depends-on): New test.
30372         * tests/test-usleep.c: New file.
30373
30374         chown: work around OpenBSD bug
30375         * lib/chown.c (rpl_chown): Work around the bug.
30376         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
30377         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
30378         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
30379         * modules/chown (Depends-on): Add stdbool.
30380         * modules/lchown (Depends-on): Likewise.
30381         * doc/posix-functions/chown.texi (chown): Document the bug.
30382         * doc/posix-functions/lchown.texi (lchown): Likewise.
30383         * tests/test-lchown.h (test_chown): Relax test.
30384
30385         mkstemp: avoid conflict with C++ keyword template
30386         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
30387         * lib/mkostemp.c (mkostemp): Likewise.
30388         * lib/mkostemps.c (mkostemps): Likewise.
30389         * lib/mkstemp.c (mkstemp): Likewise.
30390         * lib/mkstemps.c (mkstemps): Likewise.
30391
30392         xalloc-die-tests: optimize
30393         * tests/test-xalloc-die.sh: Reduce number of processes.
30394
30395 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30396
30397         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
30398         patch from ludo@gnu.org (Ludovic Courtès).
30399
30400 2009-11-17  Jim Meyering  <meyering@redhat.com>
30401
30402         version-etc: use proper license string
30403         * modules/version-etc (License): Use LGPL, not LGPLv3+.
30404         * modules/version-etc-fsf: Likewise.
30405
30406 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30407
30408         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
30409         printed to stdout.  Deal with EOL differences.
30410
30411 2009-11-17  Eric Blake  <ebb9@byu.net>
30412
30413         unsetenv: work around Solaris bug
30414         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
30415         * lib/unsetenv.c (rpl_unsetenv): Work around it.
30416         Reported by Jim Meyering.
30417
30418         vasnprintf: avoid compiler warnings
30419         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
30420         variables.
30421         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
30422
30423 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30424
30425         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
30426         settings since xalloc-die is no longer the self test,
30427         xalloc-die.sh is.
30428
30429 2009-11-17  Jim Meyering  <meyering@redhat.com>
30430
30431         test-xalloc-die.sh: make the code agree with the commit log
30432         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
30433         at the end, just in case you happen to have a test-xalloc-die
30434         program in some other PATH directory.
30435
30436         test-xalloc-die.sh: fix a portability bug
30437         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
30438         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
30439         Otherwise, argv[0] (as often seen in diagnostics) would be too
30440         system-dependent, sometimes with, and sometimes without the leading "./".
30441
30442         version-etc-fsf: relax license to LGPLv3+
30443         * modules/version-etc-fsf (License): Relax license.
30444
30445 2009-11-16  Eric Blake  <ebb9@byu.net>
30446
30447         xalloc-die-tests: avoid printing null pointer
30448         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
30449         shell script.
30450         * tests/test-xalloc-die.c (program_name): Declare.
30451         * tests/test-xalloc-die.sh (tmpfiles): New file.
30452
30453         setenv, unsetenv: work around various bugs
30454         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
30455         (setenv) [HAVE_SETENV]: Work around bugs.
30456         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
30457         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
30458         for bugs.
30459         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
30460         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
30461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
30462         * modules/stdlib (Makefile.am): Update substitutions.
30463         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
30464         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
30465         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30466         * modules/setenv-tests: New test.
30467         * modules/unsetenv-tests: Likewise.
30468         * tests/test-setenv.c: New file.
30469         * tests/test-unsetenv.c: Likewise.
30470
30471 2009-11-16  Jim Meyering  <meyering@redhat.com>
30472
30473         version-etc: relax license to LGPLv3+
30474         * modules/version-etc (License): Relax license.
30475
30476         better AC_REQUIRE expanded-before-required-warning avoidance
30477         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
30478         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
30479         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
30480         which is no longer needed.
30481
30482 2009-11-16  Eric Blake  <ebb9@byu.net>
30483
30484         test-freading: clean up temporary file
30485         * tests/test-freading.c (main): Remove file on success, and use
30486         ASSERT more liberally.
30487         Reported by Jim Meyering.
30488
30489 2009-11-16  Jim Meyering  <meyering@redhat.com>
30490
30491         avoid new AC_REQUIRE expanded-before-required warnings
30492         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
30493         merely using it.
30494         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
30495         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
30496
30497 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30498
30499         * tests/test-xalloc-die.c: New file.
30500         * modules/xalloc-die-tests: New file.
30501         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
30502         XFAIL_TESTS so it can be appended by modules.
30503
30504 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30505
30506         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
30507         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
30508
30509 2009-11-14  Eric Blake  <ebb9@byu.net>
30510
30511         fnmatch: avoid compiler warning
30512         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
30513         to silence compiler warning about mismatch signedness in ?:.
30514         Reported by Robert Millan.
30515
30516         intprops: add double-inclusion guard
30517         * lib/intprops.h: Allow idempotent includes.
30518         Suggested by Bruce Korb.
30519
30520         openat: detect Solaris fchownat bug
30521         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
30522         penalizing glibc chownat when only lchownat is broken.
30523         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
30524         trailing slash bugs.
30525         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
30526         * modules/openat-tests (Files): Include more files.
30527         (Depends-on): Add mgetgroups, sleep, stat-time.
30528         (configure.ac): Add additional checks.
30529         (Makefile.am): Build new test.
30530         * tests/test-fchownat.c: New file.
30531
30532         lchown: detect Solaris and FreeBSD bug
30533         * lib/lchown.c (rpl_lchown): Work around bug.
30534         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
30535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30536         * modules/unistd (Makefile.am): Populate it.
30537         * lib/unistd.in.h (lchown): Update declaration.
30538         * doc/posix-functions/lchown.texi (lchown): Document the bug.
30539         * modules/lchown-tests: New file.
30540         * tests/test-lchown.h (test_lchown): Likewise.
30541         * tests/test-lchown.c (main): Likewise.
30542
30543         chown: detect Solaris and FreeBSD bug
30544         * lib/chown.c (rpl_chown): Work around bug.
30545         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
30546         (gl_PREREQ_CHOWN): Delete.
30547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30548         * modules/unistd (Makefile.am): Populate it.
30549         * lib/unistd.in.h (chown): Update declaration.
30550         * lib/lchown.c (chown): Update client.
30551         * modules/lchown (Depends-on): Add lstat.
30552         * doc/posix-functions/chown.texi (chown): Document the bug.
30553         * doc/posix-functions/getgroups.texi (getgroups): Document
30554         getgroups pitfall.
30555         * modules/chown-tests: New file.
30556         * tests/test-chown.h (test_chown): Likewise.
30557         * tests/test-chown.c (main): Likewise.
30558
30559 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
30560
30561         gnulib-tool: correctly detect absence of m4 directories
30562         * gnulib-tool: Avoid extra newline on data passed to wc -l.
30563
30564 2009-11-14  Jim Meyering  <meyering@redhat.com>
30565
30566         maint.mk: Prohibit inclusion of "xalloc.h" without use.
30567         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30568
30569 2009-11-14  John W. Eaton  <jwe@gnu.org>
30570
30571         strftime.h: wrap funtion declaration in extern "C" block
30572         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
30573
30574 2009-11-13  Eric Blake  <ebb9@byu.net>
30575
30576         getgroups: avoid compiler warning
30577         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
30578
30579         getgroups: work around FreeBSD bug
30580         * lib/getgroups.c (rpl_getgroups): Work around the bug.
30581         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
30582         * doc/posix-functions/getgroups.texi (getgroups): Document it.
30583         * tests/test-getgroups.c (main): Fix buffer overrun.
30584
30585         getgroups: avoid compilation failure
30586         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
30587         * modules/getgroups (Depends-on): Add stdint.
30588
30589 2009-11-13  Jim Meyering  <meyering@redhat.com>
30590
30591         test-getgroups: avoid compilation failure
30592         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
30593
30594 2009-11-13  Eric Blake  <ebb9@byu.net>
30595
30596         mgetgroups: new module, taken from coreutils
30597         * modules/mgetgroups: New file.
30598         * lib/mgetgroups.h: Likewise.
30599         * lib/mgetgroups.c (mgetgroups): Likewise.
30600         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
30601         * MODULES.html.sh (Users and groups): Mention it.
30602
30603         getgroups: don't expose GETGROUPS_T to user
30604         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
30605         an element at a time if GETGROUPS_T is wrong size.
30606         * lib/getugroups.h (getugroups): Change signature.
30607         * lib/unistd.in.h (getgroups): Likewise.
30608         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
30609         signature needs fixing.
30610         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
30611         AC_TYPE_GETGROUPS.
30612         * modules/group-member (Depends-on): Add getgroups.
30613         * lib/group-member.c (group_info, get_group_info): Use gid_t.
30614         (group_member): Rely on getgroups replacement.
30615         * lib/getugroups.c (getugroups): Use gid_t.
30616         * tests/test-getgroups.c (main): Likewise.
30617         * NEWS: Mention the signature change.
30618         * doc/posix-functions/getgroups.texi (getgroups): Mention the
30619         problem with signature.
30620         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
30621         GETGROUPS_T is still useful for setgroups.
30622
30623         getgroups, getugroups: provide stubs for mingw
30624         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
30625         * lib/getugroups.c (getugroups): Likewise.
30626         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
30627         function.  Modernize replacement scheme.
30628         (gl_PREREQ_GETGROUPS): Delete.
30629         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
30630         * modules/getgroups (configure.ac): Declare witness.
30631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30632         * modules/unistd (Depends-on): Substitute witness.
30633         * lib/unistd.in.h (getgroups): Declare replacement.
30634
30635         getgroups: avoid calling exit
30636         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
30637         drop xalloc.
30638         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
30639         dependencies.
30640         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
30641         exiting, in the rare case of malloc failure.
30642
30643         getgroups: fix logic error
30644         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
30645         has more than 20 groups.
30646         * modules/getgroups-tests: New test.
30647         * tests/test-getgroups.c: New file.
30648
30649 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30650
30651         * tests/test-base64.c: Improve.
30652
30653 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30654
30655         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
30656         Blake <ebb9@byu.net>.
30657
30658 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30659
30660         * tests/test-xvasprintf.c: Add %s%s related checks.
30661
30662 2009-11-12  Eric Blake  <ebb9@byu.net>
30663
30664         version-etc: match standards.texi style
30665         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
30666         and use <> only for URLs.
30667
30668 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
30669
30670         fts: do not fail on a submount during traversal
30671         * lib/fts.c (fts_build): Read the stat info again after opening
30672         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
30673         Original report at http://bugzilla.redhat.com/501848.
30674
30675 2009-11-12  Jim Meyering  <meyering@redhat.com>
30676
30677         bootstrap: sync from coreutils
30678         * build-aux/bootstrap (bootstrap_epilogue): New function.
30679         Use git_modules_config in one more place.  This make bootstrap's
30680         --gnulib-srcdir option more useful for testing.
30681
30682         bootstrap: generalize autoheader check
30683         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
30684         AC_CONFIG_HEADERS.
30685
30686 2009-11-11  Eric Blake  <ebb9@byu.net>
30687
30688         mkfifoat: use new modules for Solaris and BSD bugs
30689         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
30690         * lib/mkfifoat.c (mknodat): Split...
30691         * lib/mknodat.c (mknodat): ...into new file.
30692         * modules/mkfifoat (Files): Ship new file.
30693         (Depends-on): Add mkfifo, mknod.
30694         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
30695         (Depends-on): Add symlink.
30696         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
30697         redundant with test_mkfifo.h.
30698         (do_mkfifoat, do_mknodat): New helpers.
30699
30700         mknod: new module
30701         * modules/mknod: New file.
30702         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
30703         * lib/mknod.c (mknod): Likewise.
30704         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30705         defaults.
30706         * modules/sys_stat (Makefile.am): Substitute them.
30707         * lib/sys_stat.in.h (mknod): Declare replacement.
30708         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30709         Document it.
30710         * doc/posix-functions/mknod.texi (mknod): Likewise.
30711         * modules/mknod-tests: New test.
30712         * tests/test-mknod.c: Likewise.
30713
30714         mkfifo: new module
30715         * modules/mkfifo: New file.
30716         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
30717         * lib/mkfifo.c (mkfifo): Likewise.
30718         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30719         defaults.
30720         * modules/sys_stat (Makefile.am): Substitute them.
30721         * lib/sys_stat.in.h (mkfifo): Declare replacement.
30722         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30723         Document it.
30724         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
30725         * modules/mkfifo-tests: New test.
30726         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
30727         from test-mkfifoat.c.
30728         * tests/test-mkfifo.c: New file.
30729
30730         readlink: detect FreeBSD bug
30731         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
30732         slash on symlink.
30733         * doc/posix-functions/readlink.texi (readlink): Document the bug.
30734         * tests/test-readlink.h (test_readlink): Enhance test.
30735
30736         symlink: detect FreeBSD bug
30737         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
30738         slash on symlink.
30739         * doc/posix-functions/symlink.texi (symlink): Document the bug.
30740         * tests/test-symlink.h (test_symlink): Enhance test.
30741
30742 2009-11-10  Eric Blake  <ebb9@byu.net>
30743
30744         link: detect FreeBSD bug
30745         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
30746         symlink.
30747         * doc/posix-functions/link.texi (link): Document the bug.
30748         * tests/test-link.h (test_link): Enhance test.
30749         * tests/test-linkat.c (main): Update caller.
30750
30751         unlink, remove: detect FreeBSD bug
30752         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
30753         slash on symlink.
30754         * doc/posix-functions/unlink.texi (unlink): Document the bug.
30755         * doc/posix-functions/remove.texi (remove): Likewise.
30756         * tests/test-unlink.h (test_unlink): Enhance test.
30757         * tests/test-remove.c (main): Likewise.
30758
30759 2009-11-09  Eric Blake  <ebb9@byu.net>
30760
30761         rename: detect FreeBSD bug
30762         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
30763         slash on symlink.
30764         * modules/renameat-tests (Depends-on): Add filenamecat.
30765         * tests/test-rename.h (test_rename): Allow one more errno.
30766         * tests/test-renameat.c (main): Likewise.
30767         * doc/posix-functions/rename.texi (rename): Document the bug.
30768
30769         open: detect FreeBSD bug
30770         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
30771         symlink.
30772         * doc/posix-functions/open.texi (open): Document the bug.
30773         * doc/posix-functions/utimes.texi (utimes): Likewise.
30774         * tests/test-open.h (test_open): Add parameters, and test symlink
30775         handling.
30776         * tests/test-open.c (main): Adjust caller.
30777         * tests/test-fcntl-safer.c (main): Likewise.
30778         * modules/open-tests (Depends-on): Add stdbool, symlink.
30779         * modules/fcntl-safer-tests (Depends-on): Likewise.
30780         * tests/test-openat.c (main): Add test-open tests.
30781
30782         stat: detect FreeBSD bug
30783         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
30784         symlink.
30785         * doc/posix-functions/stat.texi (stat): Document the bug.
30786         * tests/test-stat.h (test_stat_func): Add argument.
30787         * tests/test-stat.c (main): Adjust caller.
30788         * tests/test-fstatat.c (main): Likewise.
30789         * modules/stat-tests (Depends-on): Add stdbool, symlink.
30790         Reported by Jim Meyering.
30791
30792 2009-11-09  James Youngman  <jay@gnu.org>
30793
30794         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30795         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30796
30797 2009-11-08  Jim Meyering  <meyering@redhat.com>
30798
30799         utimens: remove invalid futimesat call
30800         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30801         It used the file descriptor of the target file as the DIR_FD
30802         parameter and NULL as the file name.  That caused failure with
30803         errno == EFAULT on FreeBSD-8.0-rc2
30804
30805 2009-11-07  Eric Blake  <ebb9@byu.net>
30806
30807         fflush, freadseek: use fseeko, not fseek
30808         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30809         (clear_ungetc_buffer): Avoid potential problems on large files.
30810         * lib/freadseek.c (freadseek): Likewise.
30811         * modules/freadseek (Depends-on): Add fseeko.
30812         * modules/fseek (configure.ac): Set a witness.
30813         * tests/test-fflush.c (main): Use fseeko.
30814         * tests/test-fpurge.c (fseek): Disable link warning.
30815         * tests/test-freadable.c (fseek): Likewise.
30816         * tests/test-freading.c (fseek): Likewise.
30817         * tests/test-fseeko.c (fseek): Likewise.
30818         * tests/test-ftell.c (fseek): Likewise.
30819         * tests/test-ftello.c (fseek): Likewise.
30820         * tests/test-fwritable.c (fseek): Likewise.
30821         * tests/test-fwriting.c (fseek): Likewise.
30822
30823 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30824
30825         * modules/memchr (Depends-on): Drop getpagesize dependency.
30826
30827 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30828
30829         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
30830         Reported by Ludovic Courtès.
30831         * build-aux/pmccabe2html: Improve example usage.
30832         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
30833
30834 2009-11-06  Jim Meyering  <meyering@redhat.com>
30835
30836         do-release-commit-and-tag: New module.
30837         Automate the release-commit and tag process.
30838         * build-aux/do-release-commit-and-tag: New script, from coreutils.
30839         * modules/do-release-commit-and-tag: New file.
30840         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30841
30842 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30843
30844         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
30845         because test-select.c uses inet_pton.
30846
30847 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30848
30849         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
30850         GETADDRINFO_LIB.  Bump serial number.
30851         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
30852         Suggested by Eric Blake <ebb9@byu.net>.
30853
30854 2009-11-05  Eric Blake  <ebb9@byu.net>
30855
30856         strtod: detect darwin bug
30857         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
30858         Reported by Leo Davis.
30859
30860         freopen-safer: new module
30861         * modules/freopen-safer: New module.
30862         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
30863         * lib/freopen-safer.c (freopen_safer): New file.
30864         * lib/stdio-safer.h (freopen_safer): New declaration.
30865         * lib/stdio--.h (freopen): New override.
30866         * MODULES.html.sh (File stream based Input/Output): Mention it.
30867         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
30868         freopen-safer module.
30869         * doc/posix-functions/stderr.texi (stderr): Likewise.
30870         * doc/posix-functions/stdin.texi (stdin): Likewise.
30871         * doc/posix-functions/stdout.texi (stdout): Likewise.
30872         * modules/freopen-safer-tests: New test.
30873         * tests/test-reopen-safer.c: New file.
30874
30875 2009-11-05  Jim Meyering  <meyering@redhat.com>
30876
30877         maint.mk: Prohibit inclusion of "close-stream.h" without use.
30878         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30879
30880 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30881
30882         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
30883
30884 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30885
30886         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30887
30888 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30889
30890         Fix link error.
30891         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30892         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30893
30894 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30895
30896         * tests/test-func.c: Also test value of __func__.
30897
30898 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30899
30900         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30901         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30902
30903 2009-11-05  Bruno Haible  <bruno@clisp.org>
30904
30905         Fix link error.
30906         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30907         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30908         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30909
30910 2009-11-05  Bruno Haible  <bruno@clisp.org>
30911
30912         Tests for module 'inet_pton'.
30913         * modules/inet_pton-tests: New file.
30914         * tests/test-inet_pton.c: New file.
30915
30916 2009-11-05  Bruno Haible  <bruno@clisp.org>
30917
30918         Tests for module 'inet_ntop'.
30919         * modules/inet_ntop-tests: New file.
30920         * tests/test-inet_ntop.c: New file.
30921
30922 2009-11-04  Eric Blake  <ebb9@byu.net>
30923
30924         stdlib-safer: wrap all mkstemp variants
30925         * modules/mkostemp (configure.ac): Set witness.
30926         * modules/mkostemps (configure.ac): Likewise.
30927         * modules/mkstemps (configure.ac): Likewise.
30928         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30929         (mkstemps_safer): Wrap more functions.
30930         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30931         wrapping.
30932         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30933         (mkstemps_safer): Implement the wrappers.
30934
30935         mkstemps, mkostemps: new modules
30936         * modules/mkostemps: New module.
30937         * modules/mkstemps: Likewise.
30938         * lib/mkostemps.c (mkostemps): New file.
30939         * lib/mkstemps.c (mkstemps): Likewise.
30940         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30941         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30943         * modules/stdlib (Makefile.am): Substitute them.
30944         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30945         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30946         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30947         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30948         * MODULES.html.sh (File system functions): Mention them.
30949
30950         tempname: resync from glibc
30951         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30952         same values for __GT_FILE as glibc.  Abort even when assertions
30953         are disabled.
30954         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30955         match its value otherwise.  Allow idempotent inclusion.
30956         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30957         * lib/mkostemp.c (mkostemp): Likewise.
30958         * lib/mkstemp.c (mkstemp): Likewise.
30959         * lib/tmpfile.c (tmpfile): Likewise.
30960         * NEWS: Document this.
30961
30962         utimens: fix use of futimens on older Linux
30963         * lib/utimens.c (fdutimens): Use updated, rather than original,
30964         timespec to avoid bug in older Linux kernel.
30965         Reported by Simon Josefsson.
30966
30967 2009-11-04  Bruno Haible  <bruno@clisp.org>
30968
30969         Make num_processors more flexible and consistent.
30970         * lib/nproc.h (enum nproc_query): New type.
30971         (num_processors): Add a 'query' argument.
30972         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30973         (num_processors): Add a 'query' argument. Test the value of the
30974         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30975         mingw, count the number of CPUs available for the current process.
30976         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30977         Check for sched_getaffinity and sched_getaffinity_np.
30978         * modules/nproc (Depends-on): Add c-ctype, extensions.
30979         * NEWS: Mention the change.
30980
30981 2009-11-03  Bruno Haible  <bruno@clisp.org>
30982
30983         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30984
30985 2009-11-03  Jim Meyering  <meyering@redhat.com>
30986
30987         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30988         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30989         if it is defined.
30990
30991 2009-11-02  Eric Blake  <ebb9@byu.net>
30992
30993         mktime, timegm: share common declaration
30994         * lib/mktime-internal.h: New file.
30995         * lib/mktime.c: Use it rather than open-coding a declaration.
30996         * lib/timegm.c: Likewise.
30997         * modules/mktime (Files): Ship it.
30998         * modules/timegm (Files): Likewise.
30999         Suggested by Bruno Haible.
31000
31001         test-update-copyright: update test to match script changes
31002         * tests/test-update-copyright.sh: Avoid hard-coding perl
31003         location.  Don't update *.bak created by earlier runs.
31004
31005 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31006             Simon Josefsson  <simon@josefsson.org>
31007             Bruno Haible  <bruno@clisp.org>
31008
31009         Fix link error on Solaris 8.
31010         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
31011         also in libnsl. Define also INET_PTON_LIB.
31012         * modules/inet_pton (Link): New section.
31013
31014 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31015             Bruno Haible  <bruno@clisp.org>
31016
31017         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
31018         * modules/inet_ntop (Link): New section.
31019         Reported by Boyan Kasarov <bkasarov@gmail.com>.
31020
31021 2009-11-02  Eric Blake  <ebb9@byu.net>
31022
31023         maint: avoid compiler warnings in m4 macros
31024         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
31025         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
31026
31027 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31028
31029         * m4/pmccabe2html.m4: Remove file.
31030         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
31031         function.  Change maintainer.
31032         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
31033         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
31034         Courtès).
31035
31036 2009-10-31  Eric Blake  <ebb9@byu.net>
31037
31038         fseeko: fix m4 regression
31039         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
31040         regression from 2009-10-27.
31041         Reported by Ralf Wildenhues.
31042
31043 2009-10-31  Jim Meyering  <meyering@redhat.com>
31044
31045         inttostr: aesthetics and improved (compile-time) safety
31046         Define inttype_is_signed rather than inttype_is_unsigned,
31047         since the sole use is via "#if inttype_is_signed".
31048         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
31049         inttype_is_unsigned.
31050         * lib/offtostr.c (inttype_is_signed): Likewise.
31051         * lib/uinttostr.c (inttype_is_signed): Likewise.
31052         * lib/umaxtostr.c (inttype_is_signed): Likewise.
31053         * lib/inttostr.c (inttostr): Use verify to cross-check the
31054         inttype_is_signed value and the signedness of the actual type.
31055         * modules/inttostr (Depends-on): Add verify.
31056
31057 2009-10-30  Eric Blake  <ebb9@byu.net>
31058
31059         build: avoid compiler warnings
31060         * lib/fchmodat.c (lchmod): Mark unused variables.
31061         * lib/getopt.c (_getopt_initialize): Likewise.
31062         * lib/mktime.c (__mktime_internal): Provide prototype.
31063         * lib/inttostr.c (inttostr): Avoid compiler warning even with
31064         older gcc that do not understand #pragma GCC diagnostic.
31065         * lib/uinttostr.c (inttype_is_unsigned): Define.
31066         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
31067
31068 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31069
31070         stat: fix compilation on AIX
31071         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
31072         only see struct stat64.
31073
31074 2009-10-30  Eric Blake  <ebb9@byu.net>
31075
31076         exclude: make more robust
31077         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
31078         rather than masking a coding bug.
31079         Suggested by Bruno Haible.
31080
31081 2009-10-30  Jim Meyering  <meyering@redhat.com>
31082
31083         perl scripts: remove #!/usr/bin/perl in favor of more portable...
31084         Rather than putting #!/usr/bin/perl on the first line,
31085         start with a variant of what's recommended by "man perlrun" that
31086         invokes the first "perl" program from your shell's search path.
31087         * build-aux/gitlog-to-changelog: Replace #!... as above.
31088         Add a "Local Variables" perl mode setting.
31089         Prompted by a patch from Ludovic Courtès.
31090         Improved by Eric Blake.
31091         * build-aux/useless-if-before-free: Likewise.
31092         * build-aux/announce-gen: Likewise.
31093         * build-aux/update-copyright: Likewise.
31094
31095 2009-10-29  Eric Blake  <ebb9@byu.net>
31096
31097         filenamecat-lgpl: adjust clients
31098         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
31099         filenamecat.
31100         * modules/renameat (Depends-on): Likewise.
31101
31102         filenamecat: split into filenamecat-lgpl
31103         * modules/filenamecat-lgpl: New module.
31104         * modules/filenamecat (Files): Move library-safe files into
31105         filenamecat-lgpl.
31106         (Depends-on): Add filenamecat-lgpl.
31107         (configure.ac): Declare witness.
31108         * lib/filenamecat.h (file_name_concat): Only declare when using
31109         GPL module.
31110         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
31111         Move...
31112         * lib/filenamecat-lgpl.c: ...into new file.
31113         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
31114         (gl_FILE_NAME_CONCAT): Use it.
31115         * MODULES.html.sh (File system functions): Mention new module.
31116
31117         argp: avoid memory leak
31118         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
31119         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
31120         base_name, since the latter malloc()s and can call exit().
31121         Leak introduced 2006-07-03.
31122
31123         dirname-lgpl: adjust clients that don't need full dirname
31124         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
31125         * modules/filenamecat (Depends-on): Likewise.
31126         * modules/linkat (Depends-on): Likewise.
31127         * modules/mkancesdirs (Depends-on): Likewise.
31128         * modules/mkdir (Depends-on): Likewise.
31129         * modules/openat (Depends-on): Likewise.
31130         * modules/savewd (Depends-on): Likewise.
31131         * modules/rename (Depends-on): Likewise.
31132         (License): Relax license.
31133         * modules/mkdir-tests (Depends-on): Drop progname.
31134         (Makefile.am): Delete unneeded LDADD.
31135         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
31136
31137         dirname: split into dirname-lgpl
31138         * modules/dirname-lgpl: New module.
31139         * modules/dirname (Files): Move library-safe files into
31140         dirname-lgpl.
31141         (Depends-on): Add dirname-lgpl.
31142         (configure.ac): Declare witness.
31143         * modules/double-slash-root (License): Relax license.
31144         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
31145         module.
31146         * lib/dirname.c (dir_len, mdir_name): Move...
31147         * lib/dirname-lgpl.c: ...into new file.
31148         * lib/basename.c (last_component, base_len): Move...
31149         * lib/basename-lgpl.c: ...into new file.
31150         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
31151         (gl_DIRNAME): Use it.
31152         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
31153         Mention new module.
31154         * modules/dirname-tests (Depends-on): Add progname.
31155         * tests/test-dirname.c (program_name): Delete.
31156
31157         mkdir: make safe for libraries
31158         * modules/mkdir (Depends-on): Drop xalloc.
31159         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
31160         exit.
31161
31162         tests: avoid some compiler warnings
31163         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
31164         literals.
31165         * tests/test-memchr.c (main): Avoid type mismatch.
31166         * tests/test-arpa_inet.c (main): Avoid unused parameters.
31167         * tests/test-base64.c (main): Likewise.
31168         * tests/test-getdelim.c (main): Likewise.
31169         * tests/test-gethostname.c (main): Likewise.
31170         * tests/test-getline.c (main): Likewise.
31171         * tests/test-netinet_in.c (main): Likewise.
31172         * tests/test-select.c (open_server_socket, main): Likewise.
31173         * tests/test-select-stdin.c (main): Likewise.
31174         * tests/test-sockets.c (main): Likewise.
31175         * tests/test-strsignal.c (main): Likewise.
31176         * tests/test-sys_select.c (main): Likewise.
31177         * tests/test-sys_socket.c (main): Likewise.
31178         * tests/test-u64.c (main): Likewise.
31179         * tests/test-xfprintf-posix.c (main): Likewise.
31180         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
31181
31182         sockets: avoid compiler warning
31183         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
31184
31185         maint: detect usage(1) and other suspicious exits
31186         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
31187
31188 2009-10-29  Jim Meyering  <meyering@redhat.com>
31189
31190         timespec: long-to-int truncation could make timespec_cmp malfunction
31191         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
31192         a multiple of 2^32 nanoseconds as no difference.
31193
31194 2009-10-28  Jim Meyering  <meyering@redhat.com>
31195
31196         fprintftime: wrap macro code argument in "do {...} while(0)"
31197         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
31198         cpy macro must be a statement that can be followed by a semicolon.
31199         Now that the else clause contains a comment and is hence longer
31200         than one line, I require curly braces.  That in turn requires
31201         that we wrap this code block in the standard do...while(0).
31202
31203         fprintftime: remove stray semicolon from previous change
31204         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
31205
31206         fprintftime: avoid a warning about ignored fwrite return value
31207         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
31208         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
31209         that is unsafe.
31210         * modules/fprintftime (Depends-on): Add ignore-value.
31211
31212         exclude: avoid an unwarranted warning
31213         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
31214
31215 2009-10-27  Eric Blake  <ebb9@byu.net>
31216
31217         fseek: avoid compilation failure when fflush is replaced
31218         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
31219         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
31220         module is in use.
31221         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
31222         module is not in use; since REPLACE_FSEEK worked otherwise.
31223         (GNULIB_FTELLO): Likewise for ftell.
31224         Reported by Ian Beckwith and others.
31225
31226 2009-10-27  Bruno Haible  <bruno@clisp.org>
31227
31228         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
31229         Reported by Jim Meyering.
31230
31231 2009-10-27  Jim Meyering  <jim@meyering.net>
31232             Bruno Haible  <bruno@clisp.org>
31233
31234         Avoid warning despite dropping the return value of fwrite.
31235         * lib/unicodeio.c: Include ignore-value.h.
31236         (fwrite_success_callback): Explicitly ignore fwrite's return value.
31237         * modules/unicodeio (Depends-on): Add ignore-value.
31238
31239 2009-10-26  Eric Blake  <ebb9@byu.net>
31240
31241         areadlinkat: fix fallback path
31242         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
31243         pointer and zero.
31244
31245 2009-10-22  Pádraig Brady  <P@draigBrady.com>
31246
31247         Use a better IO block size for modern systems
31248         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
31249         * lib/md2.c: Likewise.
31250         * lib/md4.c: Likewise.
31251         * lib/md5.c: Likewise.
31252         * lib/sha1.c: Likewise.
31253         * lib/sha256.c: Likewise.
31254         * lib/sha512.c: Likewise.
31255
31256 2009-10-22  Eric Blake  <ebb9@byu.net>
31257
31258         tests: avoid several compiler warnings
31259         * tests/test-getcwd.c (main): Avoid buffer underflow.
31260         * tests/test-getdate.c (main): String literals are not safe with
31261         putenv, so use setenv.  Declare unused argument.
31262         * modules/getdate-tests (Depends-on): Add setenv.
31263         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
31264         problems with string literals in char *.
31265         * tests/test-hash.c (main): Avoid shadowing declaration.
31266         (insert_new): Treat string literals as char const *.
31267         * tests/test-getopt.h (test_getopt): Likewise.
31268         (getopt_loop): Alter types to minimize casting elsewhere.
31269         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
31270         (test_getopt_long_posix): Likewise.
31271         (do_getopt_long): Add wrapper to minimize casting.
31272         * tests/test-atexit.c (clear_temp_file): Use void.
31273         * tests/test-areadlink-with-size.c (main): Declare unused
31274         arguments.
31275         * tests/test-areadlink.c (main): Likewise.
31276         * tests/test-areadlinkat-with-size.c (main): Likewise.
31277         * tests/test-areadlinkat.c (main): Likewise.
31278         * tests/test-canonicalize-lgpl.c (main): Likewise.
31279         * tests/test-canonicalize.c (main): Likewise.
31280         * tests/test-dirent-safer.c (main): Likewise.
31281         * tests/test-dirname.c (main): Likewise.
31282         * tests/test-dup2.c (main): Likewise.
31283         * tests/test-fchdir.c (main): Likewise.
31284         * tests/test-fcntl-h.c (main): Likewise.
31285         * tests/test-fcntl-safer.c (main): Likewise.
31286         * tests/test-fdopendir.c (main): Likewise.
31287         * tests/test-fdutimensat.c (main): Likewise.
31288         * tests/test-fflush.c (main): Likewise.
31289         * tests/test-filenamecat.c (main): Likewise.
31290         * tests/test-filevercmp.c (main): Likewise.
31291         * tests/test-fopen-safer.c (main): Likewise.
31292         * tests/test-fopen.c (main): Likewise.
31293         * tests/test-fpending.c (main): Likewise.
31294         * tests/test-fpurge.c (main): Likewise.
31295         * tests/test-freading.c (main): Likewise.
31296         * tests/test-fstatat.c (main): Likewise.
31297         * tests/test-fsync.c (main): Likewise.
31298         * tests/test-futimens.c (main): Likewise.
31299         * tests/test-getndelim2.c (main): Likewise.
31300         * tests/test-gettimeofday.c (main): Likewise.
31301         * tests/test-getopt.c (main): Likewise.
31302         * tests/test-i-ring.c (main): Likewise.
31303         * tests/test-inttypes.c (main): Likewise.
31304         * tests/test-link.c (main): Likewise.
31305         * tests/test-lstat.c (main): Likewise.
31306         * tests/test-math.c (main): Likewise.
31307         * tests/test-md5.c (main): Likewise.
31308         * tests/test-memchr2.c (main): Likewise.
31309         * tests/test-memrchr.c (main): Likewise.
31310         * tests/test-mkdir.c (main): Likewise.
31311         * tests/test-mkdirat.c (main): Likewise.
31312         * tests/test-mkfifoat.c (main): Likewise.
31313         * tests/test-open.c (main): Likewise.
31314         * tests/test-openat-safer.c (main): Likewise.
31315         * tests/test-openat.c (main): Likewise.
31316         * tests/test-quotearg.c (main): Likewise.
31317         * tests/test-rawmemchr.c (main): Likewise.
31318         * tests/test-readlink.c (main): Likewise.
31319         * tests/test-remove.c (main): Likewise.
31320         * tests/test-rename.c (main): Likewise.
31321         * tests/test-renameat.c (main): Likewise.
31322         * tests/test-rmdir.c (main): Likewise.
31323         * tests/test-sha1.c (main): Likewise.
31324         * tests/test-signal.c (main): Likewise.
31325         * tests/test-sigaction.c (main): Likewise.
31326         * tests/test-stat.c (main): Likewise.
31327         * tests/test-stat-time.c (main): Likewise.
31328         * tests/test-stddef.c (main): Likewise.
31329         * tests/test-stdint.c (main): Likewise.
31330         * tests/test-stdio.c (main): Likewise.
31331         * tests/test-stdlib.c (main): Likewise.
31332         * tests/test-strchrnul.c (main): Likewise.
31333         * tests/test-strerror.c (main): Likewise.
31334         * tests/test-string.c (main): Likewise.
31335         * tests/test-strtod.c (main): Likewise.
31336         * tests/test-strverscmp.c (main): Likewise.
31337         * tests/test-symlink.c (main): Likewise.
31338         * tests/test-symlinkat.c (main): Likewise.
31339         * tests/test-sys_stat.c (main): Likewise.
31340         * tests/test-sys_time.c (main): Likewise.
31341         * tests/test-time.c (main): Likewise.
31342         * tests/test-unistd.c (main): Likewise.
31343         * tests/test-unlink.c (main): Likewise.
31344         * tests/test-unlinkat.c (main): Likewise.
31345         * tests/test-utimens.c (main): Likewise.
31346         * tests/test-utimensat.c (main): Likewise.
31347         * tests/test-version-etc.c (main): Likewise.
31348         * tests/test-wchar.c (main): Likewise.
31349         * tests/test-wctype.c (main): Likewise.
31350         * tests/test-xprintf-posix.c (main): Likewise.
31351         * tests/test-posixtm.c (main): Likewise.
31352         (STREQ): Delete unused macro.
31353         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
31354         shadowed variables.
31355         * tests/test-memchr.c (main): Likewise.
31356
31357 2009-10-21  Eric Blake  <ebb9@byu.net>
31358
31359         areadlinkat: avoid failure on older glibc
31360         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
31361         rather than mis-comparing 0 against FUNC_RESULT of char*.
31362
31363 2009-10-21  Bruno Haible  <bruno@clisp.org>
31364
31365         * modules/stpncpy (License): Relicense under LGPLv2+.
31366         Reported by David Lutterkort <lutter@redhat.com>.
31367
31368 2009-10-20  Eric Blake  <ebb9@byu.net>
31369
31370         utimensat: work around Solaris 9 bug
31371         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
31372         has trailing slash bugs.
31373         * tests/test-lutimens.h (test_lutimens): Enhance test.
31374         * tests/test-utimens.h (test_utimens): Likewise.
31375         * doc/posix-functions/utime.texi (utime): Enhance documentation.
31376         * doc/posix-functions/utimes.texi (utimes): Likewise.
31377         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31378         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
31379         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
31380         * doc/posix-functions/futimens.texi (futimens): Likewise.
31381
31382         fdutimensat: new module
31383         * modules/fdutimensat: New file.
31384         * lib/fdutimensat.c (fdutimensat): Likewise.
31385         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
31386         * MODULES.html.sh (File system functions): Mention module.
31387         * modules/fdutimensat-tests: New test.
31388         * tests/test-fdutimensat.c: Likewise.
31389
31390         doc: regenerate INSTALL
31391         * doc/INSTALL: Reflect recent autoconf update.
31392         * doc/INSTALL.ISO: Likewise.
31393         * doc/INSTALL.UTF-8: Likewise.
31394
31395 2009-10-20  Pádraig Brady  <P@draigBrady.com>
31396
31397         acl: warn if ACL support is not detected
31398         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
31399
31400 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
31401
31402         * lib/nproc.h: Add extern "C" block for C++.
31403
31404 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
31405             Bruno Haible  <bruno@clisp.org>
31406
31407         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
31408         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
31409         * doc/posix-functions/isalpha.texi: Likewise.
31410         * doc/posix-functions/isblank.texi: Likewise.
31411         * doc/posix-functions/iscntrl.texi: Likewise.
31412         * doc/posix-functions/isdigit.texi: Likewise.
31413         * doc/posix-functions/isgraph.texi: Likewise.
31414         * doc/posix-functions/islower.texi: Likewise.
31415         * doc/posix-functions/isprint.texi: Likewise.
31416         * doc/posix-functions/ispunct.texi: Likewise.
31417         * doc/posix-functions/isspace.texi: Likewise.
31418         * doc/posix-functions/isupper.texi: Likewise.
31419         * doc/posix-functions/isxdigit.texi: Likewise.
31420
31421 2009-10-18  Bruno Haible  <bruno@clisp.org>
31422
31423         Tests for module 'isblank'.
31424         * modules/isblank-tests: New file.
31425         * tests/test-isblank.c: New file.
31426
31427         New module 'isblank'.
31428         * lib/isblank.c: New file.
31429         * m4/isblank.m4: New file.
31430         * modules/isblank: New file.
31431         * doc/posix-functions/isblank.texi: Mention the new module.
31432
31433 2009-10-18  Bruno Haible  <bruno@clisp.org>
31434
31435         New module 'ctype'.
31436         * lib/ctype.in.h: New file.
31437         * m4/ctype.m4: New file.
31438         * modules/ctype: New file.
31439         * doc/posix-headers/ctype.texi: Mention the new module.
31440
31441 2009-10-18  Jim Meyering  <meyering@redhat.com>
31442
31443         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
31444         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
31445         right after its initialization, rather than farther down.
31446         Keeping these in close proximity makes it easier to ensure
31447         that each such variable is initialized.  E.g.,
31448
31449             LIB_CLOCK_GETTIME=
31450             AC_SUBST([LIB_CLOCK_GETTIME])
31451
31452         This change also increments these serial numbers.
31453         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
31454         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31456
31457 2009-10-18  Bruno Haible  <bruno@clisp.org>
31458
31459         Don't let environment variables perturb build.
31460         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
31461         (gl_PREREQ_GETHRXTIME): ... not here.
31462
31463 2009-10-18  Bruno Haible  <bruno@clisp.org>
31464
31465         Avoid symlink attack in localcharset module.
31466         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
31467         (O_NOFOLLOW): Define fallback.
31468         (get_charset_aliases): Don't open the file if it is a symbolic link.
31469         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
31470         gl_FCNTL_H.
31471         (gl_FCNTL_H): Require it.
31472         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
31473         * modules/localcharset (Files): Add m4/fcntl_h.m4.
31474         Reported by Fergal Glynn <fglynn@veracode.com>.
31475
31476 2009-10-18  Bruno Haible  <bruno@clisp.org>
31477
31478         Implement nproc for mingw.
31479         * lib/nproc.c: Include <windows.h>
31480         (num_processors): On native Windows platforms, try GetSystemInfo.
31481
31482 2009-10-18  Bruno Haible  <bruno@clisp.org>
31483
31484         Implement nproc for IRIX.
31485         * lib/nproc.c: Include <sys/sysmp.h>.
31486         (num_processors): On IRIX systems, try sysmp.
31487         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
31488
31489 2009-10-18  Bruno Haible  <bruno@clisp.org>
31490
31491         Implement nproc for HP-UX.
31492         * lib/nproc.c: Include <sys/pstat.h>
31493         (num_processors): On HP-UX systems, try pstat_getdynamic.
31494         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
31495         pstat_getdynamic.
31496
31497 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
31498             Bruno Haible  <bruno@clisp.org>
31499
31500         Implement nproc for NetBSD, OpenBSD.
31501         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
31502         (ARRAY_SIZE): New macro.
31503         (num_processors): On BSD systems, try sysctl of HW_NCPU.
31504         * m4/nproc.m4: New file.
31505         * modules/nproc (Files): Add m4/nproc.m4.
31506         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
31507         (Makefile.am): Instead, augment lib_SOURCES.
31508
31509 2009-10-18  Bruno Haible  <bruno@clisp.org>
31510
31511         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
31512         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
31513         sys/param.h.
31514
31515 2009-10-16  Eric Blake  <ebb9@byu.net>
31516
31517         utimensat: new module
31518         * modules/utimensat: New file.
31519         * lib/utimensat.c (utimensat): Likewise.
31520         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31521         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
31522         so we can work around Linux bugs.
31523         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31524         * modules/sys_stat (Makefile.am): Substitute them.
31525         * lib/sys_stat.in.h (utimensat): Declare it.
31526         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31527         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31528         * modules/utimensat-tests: New test.
31529         * tests/test-utimensat.c: Likewise.
31530
31531         utimens: let lutimens work on non-symlinks
31532         * lib/utimens.c (lutimens): Fall back to utimens rather than
31533         failing with ENOSYS, when file is not a symlink.
31534         (utimens): Reduce redirection.
31535         * tests/test-lutimens.h (test_lutimens): Update test to cover
31536         non-symlinks.
31537         * tests/test-utimens.h (test_utimens): Update test to cover
31538         symlinks.
31539         * tests/test-utimens.c (main): Update caller.
31540
31541         utimens: cache whether utimensat syscall works
31542         * lib/utimens.c (utimensat_works_really): New cache variable.
31543         (fdutimens, lutimens): Use it to avoid failing syscall.
31544
31545         test-stat-time, test-utimens: improve portability
31546         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
31547         ext4 on alpha, and for cygwin.
31548         * tests/test-utimens-common.h: New file.
31549         (nap): Factor delays into single function.
31550         * tests/test-lutimens.h (test_lutimens): Use new header.
31551         * tests/test-futimens.h (test_futimens): Likewise.
31552         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
31553         timestamps to occur from same machine, as was done previously for
31554         test_utimens.
31555         * modules/utimens-tests (Files): Ship new file.
31556         * modules/futimens-tests (Files): Likewise.
31557         Reported in part by Jim Meyering.
31558
31559         sys_stat: sort replacement declarations
31560         * lib/sys_stat.in.h: Sort declarations.
31561         * lib/futimens.c (futimens): Fix typo.
31562
31563 2009-10-15  Jim Meyering  <meyering@redhat.com>
31564
31565         don't let environment settings perturb build
31566         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
31567         could cause a configure-time and/or build-time malfunction.
31568         Typically, a configure-time function-in-library test is performed
31569         via code like this:
31570
31571           LIB_VAR=
31572           AC_SUBST([LIB_VAR])
31573           prefix_saved_LIBS=$LIBS
31574             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
31575                        [test "$ac_cv_search_FUNC" = "none required" ||
31576                         LIB_VAR=$ac_cv_search_FUNC])
31577           LIBS=$prefix_saved_LIBS
31578
31579         However, in each of the files affected by this change, the LIB_VAR=
31580         initialization was omitted.  Thus, when set in the environment, its
31581         value would propagate into generated Makefiles when FUNC is not found
31582         in LIB_NAME.
31583         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
31584         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31586
31587 2009-10-14  Eric Blake  <ebb9@byu.net>
31588
31589         fchdir: avoid infinite recursion in mingw
31590         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
31591         recursing.
31592
31593         test-stat-time: port to mingw
31594         * tests/test-stat-time.c (force_unlink): Return a value.
31595         (test_ctime) [W32]: Fix compilation error.
31596         (nap): Don't call usleep with too large an argument.  Use
31597         force_unlink.
31598         * doc/pastposix-functions/usleep.texi (usleep): Document the
31599         portability issue.
31600
31601 2009-10-13  Jim Meyering  <meyering@redhat.com>
31602
31603         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
31604         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
31605         * modules/pipe-filter-ii: Likewise.
31606         * modules/sys_socket-tests: Likewise.
31607         * modules/tsearch-tests: Likewise.
31608         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
31609         (check): Depend on it.
31610
31611 2009-10-12  Eric Blake  <ebb9@byu.net>
31612
31613         utimens-tests: port to NFS file systems
31614         * tests/test-utimens.h (test_utimens): Refactor utimecmp
31615         comparisons to avoid spurious failures from timestamp drift
31616         between NFS machines.
31617
31618 2009-10-12  Eric Blake  <ebb9@byu.net>
31619
31620         stat-time-tests: minor cleanups
31621         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
31622         * tests/test-stat-time.c (nap): Separate assignment from call.
31623         Suggested by Paolo Bonzini and Bruno Haible.
31624
31625         sys_stat: guarantee struct timespec
31626         * lib/sys_stat.in.h (includes): Always include <time.h>
31627         * modules/sys_stat (Depends-on): Add time.
31628         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
31629         mode_t permission values.
31630         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
31631         get at subsecond timestamps.
31632
31633 2009-10-10  Eric Blake  <ebb9@byu.net>
31634
31635         futimens: new module
31636         * modules/futimens: New file.
31637         * lib/futimens.c (futimens): Likewise.
31638         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
31639         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
31640         we can work around Linux bugs.
31641         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31642         * modules/sys_stat (Makefile.am): Substitute them.
31643         * lib/sys_stat.in.h (futimens): Declare it.
31644         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31645         * doc/posix-functions/futimens.texi (futimens): Likewise.
31646         * modules/futimens-tests: New test.
31647         * tests/test-futimens.c: Likewise.
31648
31649         utimens: introduce fdutimens
31650         * lib/utimens.h (fdutimens): New prototype.
31651         * lib/utimens.c (gl_futimens): Move guts...
31652         (fdutimens): ...to new interface.
31653         * tests/test-utimens.c (do_fdutimens): Use it.
31654
31655         utimens: add UTIME_NOW and UTIME_OMIT support
31656         * lib/utimens.c (validate_timespec, update_timespec): New helper
31657         functions.
31658         (gl_futimens, lutimens): Use them.
31659         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
31660         stdbool, sys_stat.
31661         (Link): Mention resulting library dependency.
31662         * modules/utimecmp (Link): Likewise.
31663         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
31664         (Makefile.am): Pick up library dependency.
31665         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
31666         definition.
31667         * tests/test-sys_stat.c: Test the definitions.
31668         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
31669         * NEWS: Document library dependency.
31670
31671         utimecmp: support symlink timestamps
31672         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
31673         hashing when possible.  Use pathconf when available.
31674         (SYSCALL_RESOLUTION): Recognize tighter resolution.
31675         * modules/utimecmp (Depends-on): Add lstat.
31676
31677         utimens: add lutimens interface
31678         * lib/utimens.c (lutimens): New function.
31679         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
31680         * lib/utimens.h (lutimens): Declare new interface.
31681         * tests/test-utimens.c (main): Enhance test.
31682         * tests/test-lutimens.h (test_lutimens): New file.
31683         * modules/utimens-tests (Files): Distribute it.
31684         (Depends-on): Add symlink.
31685         (configure.ac): Check for usleep.
31686
31687         utimens: validate futimens usage
31688         * lib/utimens.c (gl_futimens): Require valid fd up front, using
31689         fewer syscalls on failure later on.  Avoid compiler warning on
31690         mingw.
31691         * modules/utimens (Depends-on): Add dup2.
31692
31693         utimens: add test
31694         * modules/utimens-tests: New test.
31695         * tests/test-utimens.h: New file.
31696         * tests/test-futimens.h: Likewise.
31697         * tests/test-utimens.c: Likewise.
31698
31699         doc: mention timestamp portability issues
31700         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
31701         instead.
31702         * doc/posix-functions/utime.texi (utime): Likewise.
31703         * doc/posix-functions/utimes.texi (utimes): Likewise.
31704         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
31705         instead.
31706         * doc/posix-functions/futimens.texi (futimens): Mention utimens
31707         module.
31708         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31709         Mention weakness with symlink timestamps.
31710         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
31711         to utimensat/futimens instead.
31712         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
31713
31714         test-dup2: enhance test
31715         * tests/test-dup2.c (main): Also check AT_FDCWD.
31716
31717         test-stat-time: avoid more spurious failures
31718         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
31719         xfs; and avoid race if the two timestamps cross quantization edge.
31720
31721         relocatable: prefer 'file system' over 'filesystem'
31722         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
31723         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
31724         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
31725         * doc/relocatable.texi (Enabling Relocatability): Likewise.
31726         * lib/relocatable.c (compute_curr_prefix): Likewise.
31727
31728 2009-10-10  Jim Meyering  <meyering@redhat.com>
31729
31730         stat-time-tests: check for the usleep function
31731         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
31732
31733 2009-10-10  Bruno Haible  <bruno@clisp.org>
31734
31735         * modules/xnanosleep: Put the Link section after the Include section.
31736
31737 2009-10-09  Eric Blake  <ebb9@byu.net>
31738
31739         dup2: work around FreeBSD 6.1 bug
31740         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
31741         * doc/posix-functions/dup2.texi (dup2): Document it.
31742         Reported by Nelson H. F. Beebe and Jim Meyering.
31743
31744         test-stat-time: port to buggy NFS clients
31745         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
31746         (test_ctime): Also skip test if mtime and ctime are skewed.
31747
31748         maint: prefer 'file system' over 'filesystem'
31749         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31750         * doc/posix-functions/lstat.texi (lstat): Likewise.
31751         * lib/file-has-acl.c (file_has_acl): Likewise.
31752         * lib/fwriteerror.c [TEST]: Likewise.
31753         * tests/test-areadlink.h (test_areadlink): Likewise.
31754         * tests/test-areadlinkat-with-size.c (main): Likewise.
31755         * tests/test-areadlinkat.c (main): Likewise.
31756         * tests/test-canonicalize-lgpl.c (main): Likewise.
31757         * tests/test-canonicalize.c (main): Likewise.
31758         * tests/test-fstatat.c (main): Likewise.
31759         * tests/test-linkat.c (main): Likewise.
31760         * tests/test-lstat.h (test_lstat_func): Likewise.
31761         * tests/test-mkdir.h (test_mkdir): Likewise.
31762         * tests/test-readlink.h (test_readlink): Likewise.
31763         * tests/test-remove.c (main): Likewise.
31764         * tests/test-rename.h (test_rename): Likewise.
31765         * tests/test-renameat.c (main): Likewise.
31766         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31767         * tests/test-symlink.h (test_symlink): Likewise.
31768         * tests/test-symlinkat.c (main): Likewise.
31769         * tests/test-unlink.h (test_unlink_func): Likewise.
31770         * tests/test-unlinkat.c (main): Likewise.
31771
31772         maint: make realtime library usage explicit
31773         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
31774         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
31775         * modules/settime (Link): Likewise.
31776         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
31777
31778         test-stat-time: speed up execution
31779         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
31780         warning on mingw.
31781         (nap): New helper function.
31782         (prepare_test): Use it to reduce sleep time.
31783         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
31784         execution.
31785         * modules/stat-time-tests (configure.ac): Check for usleep.
31786
31787 2009-10-09  Jim Meyering  <meyering@redhat.com>
31788
31789         selinux-h: always use getfilecon wrappers
31790         * lib/getfilecon.c: New file.
31791         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
31792         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
31793         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
31794         (fgetfilecon): Provide a stub.
31795         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31796         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31797         file unconditionally.
31798         When <selinux/selinux.h> is found, arrange to use wrappers.
31799         * modules/selinux-h (Files): Add getfilecon.c.
31800         (Makefile.am): Substitute include-next-related bits
31801         into the now-always-generated selinux/selinux.h file.
31802         * doc/glibc-functions/lgetfilecon.texi: New file.
31803         * doc/glibc-functions/fgetfilecon.texi: New file.
31804         * doc/glibc-functions/getfilecon.texi: New file.
31805         * doc/glibc-functions/getfilecon-desc.texi: New file.
31806         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31807         which to pull in the new files.
31808         * MODULES.html.sh (Misc): Add selinux-h.
31809
31810 2009-10-08  Jim Meyering  <meyering@redhat.com>
31811
31812         unistd: fix comment typo
31813         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31814
31815 2009-10-08  Eric Blake  <ebb9@byu.net>
31816
31817         areadlink: use SIZE_MAX consistently
31818         * modules/areadlink (Depends-on): Add stdint.
31819         * modules/areadlink-with-size (Depends-on): Likewise.
31820         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
31821         gives NULL; drop sys/types, since unistd gives size_t; and add
31822         stdint for SIZE_MAX.
31823         (SIZE_MAX): Rely on headers.
31824         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
31825         and add stdint.
31826         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
31827         (SIZE_MAX): Likewise.
31828         (INITIAL_BUF_SIZE): Turn into enum.
31829         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
31830
31831 2009-10-08  Jim Meyering  <meyering@redhat.com>
31832
31833         areadlinkat: avoid compilation failure
31834         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
31835         Fix typo in comment.
31836
31837 2009-10-07  Eric Blake  <ebb9@byu.net>
31838
31839         areadlinkat-with-size: new module
31840         * modules/areadlinkat-with-size: New module.
31841         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
31842         * lib/areadlink.h (areadlinkat): Declare it.
31843         * MODULES.html.sh (File system functions): Mention it.
31844         * modules/areadlinkat-with-size-tests: New test.
31845         * tests/test-areadlinkat-with-size.c: New file.
31846
31847         xreadlinkat: new module
31848         * modules/xreadlinkat: New module.
31849         * lib/xreadlinkat.c (xreadlinkat): New file.
31850         * lib/xreadlink.h (xreadlinkat): Declare it.
31851         * MODULES.html.sh (File system functions): Mention it.
31852
31853         areadlinkat: new module
31854         * lib/at-func.c (FUNC_FAIL): New define.
31855         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
31856         * modules/areadlinkat: New module.
31857         * lib/linkat.c (areadlinkat): Move...
31858         * lib/areadlinkat.c (areadlinkat): ...to new file.
31859         * lib/areadlink.h (areadlinkat): Declare it.
31860         * modules/linkat (Depends-on): Add areadlinkat.
31861         * MODULES.html.sh (File system functions): Mention it.
31862         * modules/areadlinkat-tests: New test.
31863         * tests/test-areadlinkat.c: New file.
31864
31865         areadlink, areadlink-with-size: add tests
31866         * modules/areadlink-tests: New test.
31867         * modules/areadlink-with-size-tests: Likewise.
31868         * tests/test-areadlink.h: New file.
31869         * tests/test-areadlink.c: Likewise.
31870         * tests/test-areadlink-with-size.c: Likewise.
31871
31872         maint: minor cleanups
31873         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
31874         _UNUSED_PARAMETER_ instead.
31875         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
31876         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
31877         * modules/linkat-tests (Files): Distribute test-link.h.
31878
31879         openat, utimens: whitespace cleanup
31880         * lib/openat.c: Prefer space throughout, rather than mix of 8
31881         spaces vs. tabs.
31882         * lib/at-func.c: Likewise.
31883         * lib/utimens.c: Likewise.
31884
31885         openat: avoid using wrong fd
31886         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31887         working directory chooses same fd.
31888         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31889
31890         mkdir, mkdirat: fix cygwin 1.5.x bug
31891         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31892         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31893         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31894         bug.
31895         (gl_PREREQ_MKDIR): Delete unused macro.
31896         * modules/mkdir (Files): Track file rename.
31897         (configure.ac): Update macro name.
31898         * modules/openat (Depends-on): Add mkdir.
31899         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31900
31901         mkdir, mkdirat: add tests
31902         * modules/mkdir-tests: New test.
31903         * tests/test-mkdir.h: New file.
31904         * tests/test-mkdir.c: Likewise.
31905         * tests/test-mkdirat.c: Likewise.
31906         * modules/openat-tests (Files): Add new files.
31907         (Makefile.am): Run new test.
31908
31909 2009-10-06  Eric Blake  <ebb9@byu.net>
31910
31911         doc: tweak *at function documentation
31912         * doc/posix-functions/faccessat.texi (faccessat): Mention
31913         known issue with replacement.
31914         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31915         * doc/posix-functions/linkat.texi (linkat): Likewise.
31916         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31917         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31918         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31919         * doc/posix-functions/renameat.texi (renameat): Likewise.
31920         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31921
31922         openat: fix GNU/Hurd bug in unlinkat
31923         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31924         broken.
31925         * doc/posix-functions/unlink.texi (unlink): Document this.
31926         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31927
31928         fdopendir: fix GNU/Hurd bug
31929         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31930         allowing non-directory fds.
31931         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31932         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31933         * modules/dirent (Makefile.am): Substitute it.
31934         * lib/dirent.in.h (fdopendir): Declare replacement.
31935         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31936         * tests/test-fdopendir.c (main): Test something other than
31937         /dev/null, since on Hurd that behaves like a directory.
31938
31939         test-symlink: port to GNU/Hurd
31940         * tests/test-symlink.h (test_symlink): Relax expected errno.
31941
31942         doc: tweak more cygwin information
31943         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31944         now compatible with glibc.
31945         * doc/posix-functions/getopt.texi (getopt): Likewise.
31946
31947         getopt-gnu: add another test
31948         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31949         guarantee behavior relied on by m4.
31950         * tests/test-getopt.c (main): Use it.
31951         * modules/getopt-posix-tests (Depends-on): Add setenv.
31952         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31953
31954         getopt: fix compilation on darwin
31955         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31956         include.
31957         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31958         Reported by Ludovic Courtès.
31959
31960 2009-10-06  Bruno Haible  <bruno@clisp.org>
31961
31962         * modules/size_max (Description): Discourage its use.
31963         Reported by Simon Josefsson.
31964
31965 2009-10-06  Jim Meyering  <meyering@redhat.com>
31966
31967         linkat: avoid compilation failure
31968         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31969
31970 2009-10-05  Eric Blake  <ebb9@byu.net>
31971
31972         linkat: support Linux 2.6.17
31973         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31974         linkat on Linux, but allow cache variable override.
31975         * lib/linkat.c (rpl_linkat): Define override.
31976         * modules/linkat (Depends-on): Add symlinkat.
31977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31978         * modules/unistd (Makefile.am): Substitute it.
31979         * lib/unistd.in.h (linkat): Declare replacement.
31980         Reported by Pádraig Brady.
31981
31982         quotearg: port test to systems with C.UTF-8 locale
31983         * tests/test-quotearg.c (struct result_strings): Add another
31984         member, differentiating between C.ASCII and C.UTF-8 handling.
31985         (compare_strings): Add parameter.
31986         (main): Adjust all callers.
31987
31988         getopt: avoid clash with FreeBSD _getopt_internal
31989         * lib/getopt.in.h (_getopt_internal): Override the name.
31990         * lib/getopt_int.h (includes): Pick up any overrides.
31991         Reported by Reuben Thomas.
31992
31993         hash: allow C89 compilation
31994         * lib/hash.c (check_tuning): Move declaration before statement.
31995         Reported by Reuben Thomas.
31996
31997 2009-10-05  Karl Berry  <karl@gnu.org>
31998
31999         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
32000
32001 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
32002             Bruno Haible  <bruno@clisp.org>
32003
32004         * lib/uname.c (uname): Use a table-driven algorithm to compute
32005         Windows NT versions.
32006
32007 2009-10-04  Bruno Haible  <bruno@clisp.org>
32008
32009         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
32010         program_invocation_short_name.
32011         * modules/progname (configure.ac): Test for presence of
32012         program_invocation_short_name.
32013         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32014
32015 2009-10-04  Bruno Haible  <bruno@clisp.org>
32016
32017         * lib/progname.c (set_program_name): Fix comment.
32018         Reported by Jim Meyering.
32019
32020 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32021             Bruno Haible  <bruno@clisp.org>
32022
32023         * lib/uname.c: Include <string.h>.
32024         (uname): Do only one call to GetVersionEx in the common case.
32025
32026 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32027             Bruno Haible  <bruno@clisp.org>
32028
32029         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
32030         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
32031         (uname): Add support for Windows CE and various non-x86 CPU types.
32032
32033 2009-10-03  Bruno Haible  <bruno@clisp.org>
32034
32035         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
32036         invocation to tests/configure.ac.
32037         Reported by Ian Beckwith <ianb@erislabs.net>.
32038
32039 2009-10-02  Eric Blake  <ebb9@byu.net>
32040
32041         fchdir: avoid compiler warning
32042         * lib/fchdir.c (canonicalize_file_name)
32043         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
32044
32045         test-open: support mingw errno values
32046         * tests/test-open.h (test_open): Relax test.
32047         * tests/test-fopen.h (test_fopen): Likewise.
32048         * tests/test-openat-safer.c (main): Likewise.
32049
32050         open: fix opening directory on mingw
32051         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
32052
32053         test-open: on GNU/Hurd, /dev/null is a directory
32054         * tests/test-fopen.h (main): Rename...
32055         (test_fopen): ...to this.  Use a guaranteed non-directory when
32056         confirming open behavior on trailing slash.
32057         * tests/test-openat-safer.c (main): Likewise.
32058         * tests/test-open.h (main): Likewise....
32059         (test_open): ...to this.
32060         * tests/test-fopen.c (main): Adjust caller.
32061         * tests/test-fopen-safer.c (main): Likewise.
32062         * tests/test-open.c (main): Likewise.
32063         * tests/test-fcntl-safer.c (main): Likewise.
32064         Reported by Samuel Thibault.
32065
32066         rename, fchdir: don't ignore chdir failure
32067         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
32068         * lib/rename.c (rpl_rename) [W32]: Likewise.
32069         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
32070         an empty destination directory if source cannot be renamed,
32071         although there is still possibility for failure.
32072         * doc/posix-functions/rename.texi (rename): Document the race.
32073         Reported by Jim Meyering.
32074
32075         maint: cleanup whitespace in recent commits
32076         * lib/rename.c (rpl_rename): Remove tabs.
32077         * tests/test-link.h (test_link): Likewise.
32078         * lib/fchdir.c (get_name): Likewise.
32079         Reported by Jim Meyering.
32080
32081 2009-10-02  Ben Pfaff  <blp@gnu.org>
32082
32083         relocatable-prog-wrapper: Add missing dependency on
32084         double-slash-root.
32085         * modules/relocatable-prog-wrapper: Add dependency.
32086         Reported by Ian Beckwith <ianb@erislabs.net>.
32087
32088 2009-10-02  Eric Blake  <ebb9@byu.net>
32089
32090         renameat: fix Solaris bugs
32091         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
32092         needed fixing.
32093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
32094         * modules/stdio (Makefile.am): Substitute it.
32095         * lib/stdio.in.h (renameat): Declare replacement.
32096         * lib/renameat.c (rpl_renameat): Implement fix.
32097
32098         renameat: new module
32099         * modules/renameat: New file.
32100         * lib/renameat.c (renameat): Likewise.
32101         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
32102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32103         * modules/stdio (Makefile.am): Substitute them.
32104         * lib/stdio.in.h (renameat): Declare it.
32105         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32106         * doc/posix-functions/renameat.texi (renameat): Likewise.
32107         * modules/renameat-tests: New test.
32108         * tests/test-renameat.c: Likewise.
32109
32110         rename: fix mingw bugs
32111         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
32112         directory overwrite bugs.
32113
32114         rename: fix another cygwin 1.5 bug
32115         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
32116         checks.
32117         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
32118         unnecessary cygwin workarounds.  Also work around bug with moving
32119         full directory onto an empty one.
32120         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
32121
32122         rename-dest-slash: merge into rename module
32123         * modules/rename-dest-slash (Status): Mark obsolete.
32124         (Depends-on): Add rename.
32125         (Files): Let rename do it all.
32126         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
32127         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
32128         * m4/rename-dest-slash.m4: ...so this file can be deleted.
32129         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
32130         * lib/rename.c (rpl_rename): Update comments.
32131
32132         rename: fix cygwin 1.5.x bugs
32133         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
32134         * lib/rename.c (rpl_rename): Work around them.
32135         * modules/rename (Depends-on): Add same-inode.
32136
32137         rename: fix Solaris 10 bug
32138         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
32139         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
32140         was the only bug.
32141
32142         rename: fix Solaris 9 bug
32143         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
32144         on non-directory.  Avoid calling exit.
32145         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
32146         strdup.
32147         * modules/rename-tests (Depends-on): Drop lstat.
32148         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
32149         (gl_PREREQ_RENAME): Delete unused macro.
32150
32151         rename-dest-slash: fix NetBSD bug
32152         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
32153         links.
32154         * modules/rename-dest-slash (Depends-on): Add same-inode.
32155
32156         rename-tests: new test, exposes several platform bugs
32157         * modules/rename-tests: New file.
32158         * tests/test-rename.h: Likewise.
32159         * tests/test-rename.c: Likewise.
32160         * doc/posix-functions/rename.texi (rename): Improve documentation,
32161         including bugs that will eventually be fixed in gnulib.
32162
32163 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
32164
32165         * lib/uname.c: Include <stdlib.h>
32166         (uname): Assume version info is available.
32167
32168 2009-10-02  Jim Meyering  <meyering@redhat.com>
32169
32170         gnu-web-doc-update: correct --help output
32171         * build-aux/gnu-web-doc-update: Make --help output relevant.
32172
32173         gnu-web-doc-update: add standard options
32174         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
32175
32176         gnu-web-doc-update: New module.
32177         Use this script to automatically update the on-line web documentation
32178         for your GNU project at http://www.gnu.org/software/$pkg/manual/
32179         * modules/gnu-web-doc-update: New file, from coreutils.
32180         * build-aux/gnu-web-doc-update: New script.
32181
32182 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
32183
32184         link: LoadLibrary is not needed.
32185         * lib/link.c: Use GetModuleHandle.
32186
32187 2009-10-01  Eric Blake  <ebb9@byu.net>
32188
32189         getopt: bump serial number
32190         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
32191         change.
32192
32193         tests: tighten link, rmdir, and remove tests
32194         * tests/test-link.h (includes): No need to use <config.h> here.
32195         Clean up if directory hard link was created, otherwise test for
32196         trailing '.'.
32197         * tests/test-linkat.c (main): Simplify.
32198         * tests/test-remove.c (main): Enhance test for trailing '.'.
32199         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32200
32201 2009-10-01  Jim Meyering  <meyering@redhat.com>
32202
32203         maint.mk: requiring "make major" was annoying, for a "minor" release.
32204         What is intended is "stable", to contrast with alpha and beta,
32205         so require "make stable", not "make major".
32206         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
32207         (get_tool_versions): Likewise.
32208         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
32209
32210 2009-09-30  Ben Pfaff  <blp@gnu.org>
32211
32212         Fix broken build of replacement for Windows tmpfile().
32213         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
32214         flags argument added along with the 'mkostemp' module.
32215
32216 2009-09-28  Bruno Haible  <bruno@clisp.org>
32217
32218         Avoid identifier clash with POSIX function 'remove' defined as a macro.
32219         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
32220         to 'remove_elt'.
32221         (gl_list_remove): Update.
32222         * lib/gl_list.c (gl_list_remove): Update.
32223         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
32224         to 'remove_elt'.
32225         (gl_oset_remove): Update.
32226         * lib/gl_list.c (gl_oset_remove): Update.
32227         Reported by Eric Blake.
32228
32229 2009-09-28  Eric Blake  <ebb9@byu.net>
32230
32231         doc: mention yet more cygwin 1.7 status
32232         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
32233         cygwin.
32234         * doc/glibc-functions/execvpe.texi (execvpe): New file.
32235         * doc/gnulib.texi (Glibc unistd.h): Mention it.
32236
32237         argp: fix test failure
32238         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
32239         that are not upper-case.  Pass correct range to tolower.
32240
32241 2009-09-27  Jim Meyering  <meyering@redhat.com>
32242
32243         test-yesno: work around sparc-dash here-document infelicity
32244         Without this change, the literal \177 byte in a here document
32245         would make dash 0.5.5.1-3 access uninitialized memory.
32246         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
32247         Instead, use a marker, "@", and filter through tr to create the desired
32248         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
32249
32250 2009-09-27  Bruno Haible  <bruno@clisp.org>
32251
32252         Disable untested support for new flavours of ACLs on AIX.
32253         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
32254         progress.
32255         * lib/set-mode-acl.c (qset_acl): Likewise.
32256
32257 2008-12-07  Bruno Haible  <bruno@clisp.org>
32258
32259         Add support for new flavours of ACLs on AIX. (Untested.)
32260         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
32261         (file_has_acl): Add support for newer AIX.
32262         * lib/set-mode-acl.c (qset_acl): Likewise.
32263         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
32264         Rainer Tammer <tammer@tammer.net>.
32265
32266 2009-09-26  Eric Blake  <ebb9@byu.net>
32267
32268         argp: fix compilation of getopt
32269         * lib/getopt.in.h (includes): Use different guard than glibc.
32270         Reported by Sergey Poznyakoff.
32271
32272         doc: mention more cygwin 1.7 status
32273         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
32274         bug.
32275         * doc/posix-functions/execl.texi (execl): Likewise.
32276         * doc/posix-functions/execle.texi (execle): Likewise.
32277         * doc/posix-functions/execlp.texi (execlp): Likewise.
32278         * doc/posix-functions/execv.texi (execv): Likewise.
32279         * doc/posix-functions/execve.texi (execve): Likewise.
32280         * doc/posix-functions/execvp.texi (execvp): Likewise.
32281         * doc/glibc-functions/canonicalize_file_name.texi
32282         (canonicalize_file_name): Cygwin 1.7 now provides this.
32283         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
32284         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
32285         on AT_SYMLINK_NOFOLLOW.
32286
32287 2009-09-24  Eric Blake  <ebb9@byu.net>
32288
32289         test-linkat: make test more robust
32290         * tests/test-linkat.c (main): Avoid collision with EEXIST.
32291
32292         getopt: fix inclusion guards for cygwin
32293         * modules/getopt-posix (Depends-on): Add include-next.
32294         (Makefile.am): Substitute more items in replacement header.
32295         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
32296         <getopt.h>.
32297         * lib/getopt.in.h (includes): Use split inclusion guard, and
32298         prefer <getopt.h> over include <unistd.h> when one is present.
32299         (option): Also override name of 'struct option'.
32300
32301         same-inode: revert prior change; it is not yet ready
32302         * NEWS: Undo mention of this change.
32303         * lib/same-inode.h (same-inode.h): Undo tri-state change.
32304         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32305         * lib/cycle-check.c (cycle_check): Likewise.
32306         * lib/same.c (same_name): Likewise.
32307         * lib/at-func2.c (at_func2): Likewise.
32308
32309 2009-09-23  Eric Blake  <ebb9@byu.net>
32310
32311         linkat: new module
32312         * modules/linkat: New file.
32313         * lib/at-func2.c (at_func2): Likewise.
32314         * lib/linkat.c (linkat): Likewise.
32315         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
32316         * lib/openat-priv.h (at_func2): Add declaration.
32317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32318         * modules/unistd (Makefile.am): Substitute them.
32319         * lib/unistd.in.h (linkat): Declare it.
32320         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32321         * doc/posix-functions/linkat.texi (linkat): Likewise.
32322         * doc/posix-functions/link.texi (link): Tweak wording.
32323         * tests/test-link.c (main): Move guts...
32324         * tests/test-link.h (test_link): ...into new file.
32325         * modules/linkat-tests: New test.
32326         * tests/test-linkat.c: Likewise.
32327         * modules/link-tests (Files): Ship new file.
32328         (Depends-on): Add stdbool.
32329
32330         dirname: add library-safe mdir_name
32331         * lib/dirname.h (mdir_name): New prototype.
32332         * lib/dirname.c (dir_name): Move guts...
32333         (mdir_name): ...to new function that avoids xalloc_die.
32334
32335         fchdir: another mingw fix
32336         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
32337         * lib/fchdir.c (get_name): New helper method; skips canonicalize
32338         on mingw (where it has not yet been ported), and make it optional
32339         elsewhere.
32340         (_gl_register_fd): Use it.
32341
32342         same-inode: make SAME_INODE tri-state, to port to mingw
32343         * NEWS: Mention this change.
32344         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
32345         st_ino always being 0.
32346         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32347         * lib/cycle-check.c (cycle_check): Likewise.
32348         * lib/same.c (same_name): Likewise.
32349
32350         lstat: avoid mingw compilation error
32351         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
32352         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
32353         lstat ourselves.
32354         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
32355         was adequate.
32356         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
32357         the checks for lstat.
32358         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
32359
32360         link: fix test failure on Solaris 9
32361         * lib/link.c (rpl_link): Don't assume link will catch bogus
32362         trailing slash on source.
32363
32364         test-symlinkat: enhance test
32365         * tests/test-readlink.c (main): Move guts...
32366         * tests/test-readlink.h (test_readlink): ...into new file.
32367         * tests/test-symlink.c (main): Move guts...
32368         * tests/test-symlink.h (test_symlink): ...into new file.
32369         * tests/test-symlinkat.c (main): Use new files for further
32370         coverage.
32371         (do_symlink, do_readlink): New helper functions.
32372         * modules/symlink-tests (Files): Ship new file.
32373         (Depends-on): Add stdbool.
32374         * modules/readlink-tests (Files): Ship new file.
32375         (Depends-on): Add stdbool.
32376         * modules/symlinkat-tests (Files): Use new files.
32377
32378 2009-09-23  Eric Blake  <ebb9@byu.net>
32379
32380         readlink: document portability issue with symlink length
32381         * doc/posix-functions/lstat.texi (lstat): Mention that some file
32382         systems have bogus st_size on symlinks, and mention the
32383         areadlink-with-size module.
32384         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32385         * doc/posix-functions/readlink.texi (readlink): Mention the
32386         areadlink module, and ERANGE failure.
32387         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32388         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
32389
32390         readlink: fix Solaris 9 bug with trailing slash
32391         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
32392         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
32393         * doc/posix-functions/readlink.texi (readlink): Document this.
32394         * modules/readlink-tests: New test.
32395         * tests/test-readlink.c: Likewise.
32396
32397         readlink: fix cygwin 1.5.x bug with return type
32398         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
32399         * lib/unistd.in.h (readlink): Use ssize_t.
32400         * lib/readlink.c (readlink): Likewise.
32401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32402         * modules/unistd (Makefile.am): Substitute it.
32403         * lib/unistd.in.h (readlink): Declare replacement.
32404         * doc/posix-functions/readlink.texi (readlink): Document this.
32405
32406         symlink: use throughout gnulib
32407         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
32408         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
32409         symlink is not used.
32410         * modules/symlinkat (Depends-on): Add symlink.
32411         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32412         * modules/canonicalize-tests (Depends-on): Likewise.
32413         * modules/lstat-tests (Depends-on): Likewise.
32414         * modules/openat-tests (Depends-on): Likewise.
32415         * modules/remove-tests (Depends-on): Likewise.
32416         * modules/rmdir-tests (Depends-on): Likewise.
32417         * modules/unlink-tests (Depends-on): Likewise.
32418         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
32419         * tests/test-canonicalize.c (symlink): Likewise.
32420         * tests/test-fstatat.c (symlink): Likewise.
32421         * tests/test-lstat.c (symlink): Likewise.
32422         * tests/test-remove.c (symlink): Likewise.
32423         * tests/test-rmdir.c (symlink): Likewise.
32424         * tests/test-unlink.c (symlink): Likewise.
32425         * tests/test-unlinkat.c (symlink): Likewise.
32426
32427         symlink: new module, for Solaris 9 bug
32428         * modules/symlink: New file.
32429         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
32430         * lib/symlink.c: Likewise.
32431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32432         * modules/unistd (Makefile.am): Substitute them.
32433         * lib/unistd.in.h (symlink): Declare replacement.
32434         * MODULES.html.sh (File system functions): Mention it.
32435         * doc/posix-functions/symlink.texi (symlink): Likewise.
32436         * modules/symlink-tests: New test.
32437         * tests/test-symlink.c: Likewise.
32438
32439 2009-09-23  Bruno Haible  <bruno@clisp.org>
32440
32441         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
32442         when needed.
32443         Test case: gnulib-tool --import --with-tests atexit inttypes.
32444         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
32445
32446 2009-09-23  Bruno Haible  <bruno@clisp.org>
32447
32448         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
32449         subcommand, not in a subshell.
32450
32451 2009-09-22  Eric Blake  <ebb9@byu.net>
32452
32453         unistd: sort replacement declarations
32454         * lib/unistd.in.h: Sort declarations.
32455
32456         open, openat: minor optimization
32457         * lib/open.c (open): If open succeeded, len is non-zero.
32458         * lib/openat.c (rpl_openat): Likewise.
32459
32460         link-follow: ensure correct result
32461         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
32462         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
32463         distinguish between possible failures.
32464
32465 2009-09-21  Eric Blake  <ebb9@byu.net>
32466
32467         fts: avoid compiler warning
32468         * lib/fts.c (dirent_inode_sort_may_be_useful)
32469         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
32470
32471 2009-09-19  Bruno Haible  <bruno@clisp.org>
32472
32473         * lib/progreloc.c (canonicalize_file_name): New declaration.
32474
32475 2009-09-19  Eric Blake  <ebb9@byu.net>
32476
32477         link: fix quoting
32478         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
32479
32480         openat: fix openat bugs on Solaris 9
32481         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
32482         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
32483         * modules/openat (Depends-on): Add open.
32484         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
32485         * modules/fcntl-h (Makefile.am): Substitute it.
32486         * lib/fcntl.in.h (openat): Declare replacement.
32487         * doc/posix-functions/openat.texi (openat): Document this.
32488
32489         openat: move fstatat and unlinkat into correct files
32490         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
32491         compiled.
32492         * lib/openat.c (fstatat, unlinkat): Move...
32493         * lib/fstatat.c (fstatat): ...into correct files.
32494         * lib/unlinkat.c (unlinkat): Likewise.
32495
32496         openat: fix unlinkat bugs on Solaris 9
32497         * lib/unlinkat.c (unlinkat): New file.
32498         * modules/openat (Depends-on): Add unlink.
32499         (Files): Distribute it.
32500         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
32501         trailing slash behavior is broken.
32502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32503         * modules/unistd (Makefile.am): Substitute it.
32504         * lib/unistd.in.h (unlinkat): Declare replacement.
32505         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
32506
32507         openat: fix fstatat bugs on Solaris 9
32508         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
32509         stat.
32510         * doc/posix-functions/fstatat.texi (fstatat): Document this.
32511
32512         test-unlinkat: enhance test, to expose Solaris 9 bug
32513         * tests/test-unlink.c (main): Factor guts...
32514         * tests/test-unlink.h (test_rmdir_func): ...into new file.
32515         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
32516         * tests/test-rmdir.c (main): Adjust caller.
32517         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
32518         (unlinker): New helper function.
32519         (rmdirat): Enhance check.
32520         * modules/rmdir-tests (Depends-on): Add stdbool.
32521         * modules/unlink-tests (Depends-on): Likewise.
32522         (Files): Add test-unlink.h.
32523         * modules/openat-tests (Files): Likewise.
32524         (Depends-on): Add unlinkdir.
32525
32526         test-fstatat: new test, to expose Solaris 9 bugs
32527         * tests/test-stat.c (main): Factor guts...
32528         * tests/test-stat.h (test_stat_func): ...into new file.
32529         * tests/test-lstat.c (main): Factor guts...
32530         * tests/test-lstat.h (test_lstat_func): ...into new file.
32531         * tests/test-fstatat.c: New file.
32532         * modules/stat-tests (Files): Add test-stat.h.
32533         * modules/lstat-tests (Files): Add test-lstat.h.
32534         (Depends-on): Add stdbool.
32535         * modules/openat-tests (Depends-on): Add pathmax.
32536         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
32537         (Makefile.am): Run new test.
32538
32539         remove: new module, for mingw and Solaris 9 bugs
32540         * modules/remove: New file.
32541         * lib/remove.c: Likewise.
32542         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
32543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32544         * modules/stdio (Makefile.am): Use them.
32545         * lib/stdio.in.h (remove): Declare replacement.
32546         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32547         * doc/posix-functions/remove.texi (remove): Likewise.
32548         * modules/remove-tests: New test.
32549         * tests/test-remove.c: Likewise.
32550
32551         unlink: new module, for Solaris 9 bug
32552         * modules/unlink: New file.
32553         * lib/unlink.c: Likewise.
32554         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
32555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32556         * modules/unistd (Makefile.am): Use them.
32557         * lib/unistd.in.h (stat): Declare replacement.
32558         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32559         * doc/posix-functions/unlink.texi (unlink): Likewise.
32560         * modules/unlink-tests: New test.
32561         * tests/test-unlink.c: Likewise.
32562
32563         lstat: fix Solaris 9 bug
32564         * lib/lstat.c (lstat): Also check for trailing slash on
32565         non-symlink, non-directories.  Use stat module to simplify logic.
32566         * doc/posix-functions/lstat.texi (lstat): Document it.
32567         * modules/lstat-tests (Depends-on): Add errno, same-inode.
32568         (configure.ac): Check for symlink.
32569         * tests/test-lstat.c (main): Add more tests.
32570
32571         stat: add as dependency to other modules
32572         * modules/chown (Depends-on): Add stat.
32573         * modules/euidaccess (Depends-on): Likewise.
32574         * modules/fchdir (Depends-on): Likewise.
32575         * modules/isdir (Depends-on): Likewise.
32576         * modules/link (Depends-on): Likewise.
32577         * modules/lstat (Depends-on): Likewise.
32578         * modules/mkdir-p (Depends-on): Likewise.
32579         * modules/modechange (Depends-on): Likewise.
32580         * modules/open (Depends-on): Likewise.
32581         * modules/readlink (Depends-on): Likewise.
32582         * modules/same (Depends-on): Likewise.
32583
32584         stat: fix Solaris 9 bug
32585         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
32586         slash.
32587         * lib/stat.c (rpl_stat): Work around it.
32588         * doc/posix-functions/stat.texi (stat): Update documentation.
32589
32590         stat: new module, for mingw bug
32591         * modules/stat: New file.
32592         * lib/stat.c: Likewise.
32593         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32594         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32595         * modules/sys_stat (Makefile.am): Use them.
32596         * lib/sys_stat.in.h (stat): Declare replacement.
32597         * lib/openat.c (fstatat): Deal with lstat and stat being function
32598         macros.
32599         * modules/openat (Depends-on): Add inline.
32600         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32601         * doc/posix-functions/stat.texi (stat): Likewise.
32602         * modules/stat-tests: New test.
32603         * tests/test-stat.c: Likewise.
32604
32605 2009-09-19  Jim Meyering  <meyering@redhat.com>
32606
32607         syntax-check: detect unnecessary inclusion of canonicalize.h
32608         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
32609
32610 2009-09-19  Eric Blake  <ebb9@byu.net>
32611
32612         canonicalize-lgpl: adjust clients to use correct header
32613         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32614         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
32615         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
32616         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
32617         * lib/progreloc.c (includes): Likewise.
32618
32619 2009-09-19  Jim Meyering  <meyering@redhat.com>
32620
32621         test-posixtm.c: correct a comment
32622         * tests/test-posixtm.c: Correct first-line comment.
32623         Spotted by Eric Blake.
32624
32625 2009-09-16  Jim Meyering  <meyering@redhat.com>
32626
32627         posixtm-tests: make T const-correct; add a test case
32628         * tests/test-posixtm.c (T): Declare const.
32629         Add a test for -(2^31+1).
32630         Remove useless can-succeed-only-in-2002 test.
32631
32632         posixtm-tests: adjust the sole failing test
32633         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
32634         expected output matches what mktime now produces.  Cross-checked via
32635         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
32636
32637         posixtm: move #ifdef'd tests into a new module
32638         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
32639         * tests/test-posixtm.c: ... this new file.
32640         * modules/posixtm-tests: New module.
32641
32642 2009-09-19  Eric Blake  <ebb9@byu.net>
32643
32644         openat: simplify use of at-func.c
32645         * lib/at-func.c (includes): Include prerequisites here, to
32646         simplify requirements on client files.
32647         * lib/openat-priv.h: Add double-inclusion guard.
32648         * lib/faccessat.c (includes): Simplify.
32649         * lib/fchmodat.c (includes): Likewise.
32650         * lib/fchownat.c (includes): Likewise.
32651         * lib/mkdirat.c (includes): Likewise.
32652         * lib/mkfifoat.c (includes): Likewise.
32653         * lib/symlinkat.c (includes): Likewise.
32654
32655         openat: allow return of fd 0
32656         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
32657         * modules/save-cwd (Depends-on): Replace fcntl-safer with
32658         unistd-safer.
32659         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
32660         <fcntl.h>; this module does not leak fds.
32661         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
32662         must be allowed to return 0, leaving openat_safer to add the
32663         safety.
32664         (openat_permissive): Avoid writing to just-opened fd 2 if
32665         restoring the current directory fails.
32666         * lib/openat-die.c (openat_restore_fail): Add comment.
32667         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
32668         (save_cwd): Guarantee safe fd, but without use of open_safer.
32669         * tests/test-openat.c: New test.
32670         * modules/openat-tests (Files, Makefile.am): Distribute and build
32671         new file.
32672
32673         relocatable-prog-wrapper: fix build
32674         * modules/relocatable-prog-wrapper (Files): Update name of
32675         canonicalize m4 file, broken on 2009-09-17.
32676         Reported by emad hajjar <aleppos@hotmail.com>.
32677
32678 2009-09-19  Bruno Haible  <bruno@clisp.org>
32679
32680         * lib/safe-alloc.h: Use the standard header with GPL copyright.
32681         * lib/safe-alloc.c: Likewise.
32682         Reported by Ian Beckwith <ianb@erislabs.net>.
32683
32684 2009-09-18  Bruno Haible  <bruno@clisp.org>
32685
32686         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
32687         Reported by <erobles@sensacd.com.mx>.
32688
32689 2009-09-17  Eric Blake  <ebb9@byu.net>
32690
32691         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
32692         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
32693         slashes when checking if last component is missing.
32694         * tests/test-canonicalize.c (main): Test this.
32695
32696         canonicalize, canonicalize-lgpl: honor // if distinct from /
32697         * modules/canonicalize (Files): Add double-slash-root.m4.
32698         * modules/canonicalize-lgpl (Files): Likewise.
32699         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32700         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
32701         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
32702         fallback definition.
32703         (canonicalize_filename_mode): Use it to protect //.
32704         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
32705         (__realpath): Likewise.
32706         * tests/test-canonicalize.c (main): Test this.
32707         * tests/test-canonicalize-lgpl.c (main): Likewise.
32708         * modules/canonicalize-tests (Depends-on): Add same-inode.
32709         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32710
32711         canonicalize-lgpl: fix glibc bug with trailing slash
32712         * m4/canonicalize-lgpl.m4: Move contents...
32713         * m4/canonicalize.m4: ...here.
32714         (gl_CANONICALIZE_LGPL): Factor realpath check...
32715         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
32716         glibc 2.3.5 bug, fixed 2005-04-27.
32717         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
32718         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
32719         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
32720         * modules/canonicalize-lgpl (Files): Manage file rename.
32721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32722         * modules/stdlib (Makefile.am): Substitute witness.
32723         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
32724         is needed.
32725         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
32726         replacement is required.
32727         * lib/canonicalize.c (canonicalize_file_name): Likewise.
32728         * doc/glibc-functions/canonicalize_file_name.texi
32729         (canonicalize_file_name): Document this.
32730         * doc/posix-functions/realpath.texi (realpath): Likewise.
32731
32732         canonicalize-lgpl: reject non-directory with trailing slash
32733         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
32734         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
32735         catches failures in glibc 2.3.5.
32736         * tests/test-canonicalize.c (main): Likewise.
32737
32738         canonicalize-lgpl: use native realpath if it works
32739         * lib/canonicalize-lgpl.c (realpath): Guard with
32740         FUNC_REALPATH_WORKS.
32741         * lib/stdlib.in.h (realpath): Make declaration optional based on
32742         HAVE_REALPATH.
32743         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
32744         native realpath works.
32745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32746         * modules/stdlib (Makefile.am): Substitute witness.
32747
32748         canonicalize, canonicalize-lgpl: use <stdlib.h>
32749         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
32750         (Include): Mention <stdlib.h>.
32751         (configure.ac): Mention functions we provide.
32752         * modules/canonicalize (configure.ac): Likewise.
32753         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
32754         realpath if canonicalize_file_name is missing.
32755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
32756         * modules/stdlib (Makefile.am): Substitute witnesses.
32757         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
32758         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
32759         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
32760         * NEWS: Document this.
32761         * doc/glibc-functions/canonicalize_file_name.texi
32762         (canonicalize_file_name): Likewise.
32763         * doc/posix-functions/realpath.texi (realpath): Likewise.
32764         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
32765
32766         test-canonicalize: consolidate into single C program
32767         * tests/test-canonicalize.sh: Delete; move setup into...
32768         * tests/test-canonicalize.c (main): ...the program, making it
32769         easier to run in debugger.  Add some tests.
32770         * modules/canonicalize-tests (Files): Remove unused file.
32771         (Depends-on): Add progname.
32772         (configure.ac, Makefile.am): Simplify.
32773
32774         test-canonicalize-lgpl: consolidate into single C program
32775         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
32776         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
32777         easier to run in debugger.  Add some tests.
32778         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
32779         (configure.ac, Makefile.am): Simplify.
32780
32781         canonicalize: avoid resolvepath
32782         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
32783         unnecessary checks.
32784         * lib/canonicalize.c (includes): Simplify.
32785         (canonicalize_file_name): Drop resolvepath implementation.
32786         * modules/canonicalize (Depends-on): Drop filenamecat.
32787
32788         canonicalize: don't lose errno
32789         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
32790         over calls to free.
32791
32792         canonicalize: simplify errno handling
32793         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
32794         assignment.
32795
32796         canonicalize, canonicalize-lgpl: update module dependencies
32797         * modules/canonicalize (Depends-on): Add extensions, lstat,
32798         pathmax, stdlib.
32799         (Files): Drop pathmax.h.
32800         (configure.ac): Adjust macro name.
32801         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32802         lstat, stdlib, sys_stat.
32803         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32804         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32805         extensions.
32806         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32807         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32808         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32809         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32810         declaration, if available.
32811         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32812         we can rely on the readlink module.
32813         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32814         (includes): Use <unistd.h> unconditionally.
32815
32816 2009-09-17  Eric Blake  <ebb9@byu.net>
32817
32818         maint: make Include sections of modules consistent
32819         * modules/alloca: Use only header name; no need to list #include.
32820         * modules/alloca-opt: Likewise.
32821         * modules/arpa_inet: Likewise.
32822         * modules/canon-host: Likewise.
32823         * modules/configmake: Likewise.
32824         * modules/dirent: Likewise.
32825         * modules/eealloc: Likewise.
32826         * modules/environ: Likewise.
32827         * modules/fchdir: Likewise.
32828         * modules/fcntl: Likewise.
32829         * modules/fcntl-h: Likewise.
32830         * modules/gethrxtime: Likewise.
32831         * modules/gettime: Likewise.
32832         * modules/ignore-value: Likewise.
32833         * modules/inet_ntop: Likewise.
32834         * modules/inet_pton: Likewise.
32835         * modules/inttypes: Likewise.
32836         * modules/isnand-nolibm: Likewise.
32837         * modules/isnanf-nolibm: Likewise.
32838         * modules/mbchar: Likewise.
32839         * modules/mbfile: Likewise.
32840         * modules/mbiter: Likewise.
32841         * modules/mbuiter: Likewise.
32842         * modules/netdb: Likewise.
32843         * modules/netinet_in: Likewise.
32844         * modules/nproc: Likewise.
32845         * modules/pagealign_alloc: Likewise.
32846         * modules/poll: Likewise.
32847         * modules/printf-frexp: Likewise.
32848         * modules/pthread: Likewise.
32849         * modules/putenv: Likewise.
32850         * modules/random_r: Likewise.
32851         * modules/relocatable-prog: Likewise.
32852         * modules/search: Likewise.
32853         * modules/select: Likewise.
32854         * modules/selinux-h: Likewise.
32855         * modules/settime: Likewise.
32856         * modules/signal: Likewise.
32857         * modules/size_max: Likewise.
32858         * modules/socklen: Likewise.
32859         * modules/ssize_t: Likewise.
32860         * modules/stdarg: Likewise.
32861         * modules/stdbool: Likewise.
32862         * modules/stddef: Likewise.
32863         * modules/stdint: Likewise.
32864         * modules/stdio: Likewise.
32865         * modules/stdlib: Likewise.
32866         * modules/string: Likewise.
32867         * modules/strings: Likewise.
32868         * modules/sys_file: Likewise.
32869         * modules/sys_ioctl: Likewise.
32870         * modules/sys_select: Likewise.
32871         * modules/sys_socket: Likewise.
32872         * modules/sys_stat: Likewise.
32873         * modules/sys_time: Likewise.
32874         * modules/sys_times: Likewise.
32875         * modules/sys_utsname: Likewise.
32876         * modules/sys_wait: Likewise.
32877         * modules/sysexits: Likewise.
32878         * modules/time: Likewise.
32879         * modules/times: Likewise.
32880         * modules/tmpfile: Likewise.
32881         * modules/trim: Likewise.
32882         * modules/unistd: Likewise.
32883         * modules/wchar: Likewise.
32884         * modules/wctype: Likewise.
32885
32886 2009-09-17  Bruno Haible  <bruno@clisp.org>
32887
32888         Make getdate.y compile on QNX and NetBSD 5 / i386.
32889         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32890         TIME_T_FITS_IN_LONG_INT.
32891         * lib/getdate.y (long_time_t): New type.
32892         (relative_time): Change type of 'seconds' field to long_time_t.
32893         (get_date): Update types of local variables. Check against overflow
32894         during conversion from long_time_t to time_t.
32895         Reported by Matt Kraai <kraai@ftbfs.org>
32896         and Hasso Tepper <hasso@netbsd.org>.
32897
32898 2009-09-17  Bruno Haible  <bruno@clisp.org>
32899
32900         * modules/COPYING: Update copyright years.
32901         * modules/README: Likeiwse.
32902         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32903         Reported by Ian Beckwith <ianb@erislabs.net>.
32904
32905 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32906
32907         * users.txt: Update references for gnuit package.
32908
32909 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32910
32911         * m4/getdelim.m4: Fix typo in copyright line.
32912
32913 2009-09-17  Bruno Haible  <bruno@clisp.org>
32914
32915         * lib/atoll.c: Use the standard header with GPL copyright.
32916         * lib/argz.in.h: Likewise.
32917         * lib/glob.c: Likewise.
32918         * lib/glob-libc.h: Likewise.
32919         * lib/random_r.c: Likewise.
32920         * lib/siglist.h: Likewise.
32921         * lib/strsignal.c: Likewise.
32922         Reported by Ian Beckwith <ianb@erislabs.net>.
32923
32924 2009-09-17  Eric Blake  <ebb9@byu.net>
32925
32926         rmdir: ensure correct dependency order
32927         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32928
32929 2009-09-17  Bruno Haible  <bruno@clisp.org>
32930
32931         Disable assertion that fails on NetBSD 5 / i386.
32932         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32933         Reported by Sam Steingold <sds@gnu.org>
32934         and Hasso Tepper <hasso@netbsd.org>.
32935
32936 2009-09-16  Eric Blake  <ebb9@byu.net>
32937
32938         unlinkdir: port to mingw
32939         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32940         on which no one can unlink a directory.
32941
32942         stdlib: sort witness names
32943         * modules/stdlib (Makefile.am): Sort replacements.
32944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32945         * lib/stdlib.in.h: Likewise.
32946
32947         parse-duration-tests: avoid link failure
32948         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32949         LIBINTL.
32950         Reported by Tom G. Christensen.
32951
32952         openat-tests: ensure unlinkat behaves like rmdir
32953         * tests/test-rmdir.c (main): Factor guts...
32954         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32955         * modules/rmdir-tests (Files): Ship new file.
32956         * modules/openat-tests: New test.
32957         * tests/test-unlinkat.c: Likewise.
32958
32959         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32960         * modules/rmdir-errno (Status, Notice): Now obsolete.
32961
32962         rmdir: work around cygwin 1.5.x and mingw bugs
32963         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32964         * lib/rmdir.c (rmdir): Work around it.
32965         * modules/rmdir (Status, Notice): No longer obsolete.
32966         (Files): Add dos.m4.
32967         (Depends-on): Add unistd.
32968         (configure.ac): Set witnesses.
32969         (License): Relax to LGPLv2+.
32970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32971         * modules/unistd (Makefile.am): Substitute witnesses.
32972         * lib/unistd.in.h (rmdir): Declare replacement.
32973         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32974         * modules/rmdir-tests: New tests.
32975         * tests/test-rmdir.c: Likewise.
32976
32977 2009-09-15  Eric Blake  <ebb9@byu.net>
32978
32979         fchdir: improve use of replacement functions
32980         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32981         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32982         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32983         REPLACE_CLOSEDIR.
32984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32985         * modules/sys_stat (Makefile.am): Substitute correct witness.
32986         * modules/dirent (Makefile.am): Likewise.
32987         * modules/unistd (Makefile.am): Likewise.
32988         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32989         * lib/unistd.in.h (dup): Likewise.
32990         * lib/sys_stat.in.h (fstat): Likewise.
32991
32992         maint: ignore gnulib-tool temp files
32993         * .gitignore: Ignore files created during gnulib-tool --test.
32994
32995 2009-09-13  Jim Meyering  <meyering@redhat.com>
32996
32997         posixtm: don't reject a time that specify "60" as the number of seconds
32998         * lib/posixtm.c (posixtime): The code to reject invalid dates
32999         would also reject a time specified with the .60 suffix.
33000         But POSIX allows that, in order to accommodate leap seconds.
33001         So don't reject it.
33002         (main): Adjust tests accordingly.
33003         * modules/posixtm (Depends-on): Add stpcpy.
33004
33005 2009-09-11  Jim Meyering  <meyering@redhat.com>
33006
33007         announce-gen: include [$release_type] in emitted Subject:
33008         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
33009         e.g., [stable] in the emitted Subject: line.
33010
33011 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33012
33013         Remove obsolete macros from several modules.
33014         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
33015         obsolete Autoconf macros with their modern counterparts.
33016         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
33017         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
33018         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
33019         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
33020         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
33021         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33022         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33023         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33024         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
33025         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
33026         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33027         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33028         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
33029         * m4/sockets.m4 (gl_SOCKETS): Likewise.
33030         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
33031         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
33032         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33033         * m4/time_r.m4 (gl_TIME_R): Likewise.
33034         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
33035         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
33036         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33037
33038         Fix copyright header in build-aux scripts.
33039         * build-aux/git-version-gen: Fix copyright header to match GPLv3
33040         recommendation.
33041         * build-aux/ncftpput-ftp: Likewise.
33042         * build-aux/update-copyright: Likewise.
33043
33044 2009-09-09  Eric Blake  <ebb9@byu.net>
33045
33046         test-link: allow Linux choice of errno
33047         * tests/test-link.c (main): Relax test for alternate error.
33048
33049         strndup: fix improper m4 caching
33050         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
33051         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
33052         (gl_PREREQ_STRNDUP): Delete.
33053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
33054         * modules/string (Makefile.am): Substitute it.
33055         * lib/string.in.h (strndup): Modernize prototype.
33056
33057         getcwd: port to mingw
33058         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
33059         different from the POSIX assumptions made throughout the getcwd
33060         module; fortunately, the mingw getcwd does not need replacement.
33061         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
33062         * modules/getcwd-tests: New test.
33063         * tests/test-getcwd.c: Likewise.
33064
33065         link: fix platform bugs
33066         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
33067         * lib/link.c (link): Work around them.  Fix related mingw bug.
33068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
33069         * modules/unistd (Makefile.am): Substitute it.
33070         * lib/unistd.in.h (link): Declare replacement.
33071         * doc/posix-functions/link.texi (link): Document this.
33072         * modules/link (Depends-on): Add strdup-posix, sys_stat.
33073
33074         test-link: consolidate into single C program, test more cases
33075         * tests/test-link.sh: Delete.
33076         * tests/test-link.c: Test more error conditions.  Exposes bugs on
33077         at least Cygwin and Solaris.
33078         * modules/link-tests (Files): Remove unused file.
33079         (Depends-on): Add errno, sys_stat.
33080         (Makefile.am): Simplify.
33081
33082 2009-09-08  Bruno Haible  <bruno@clisp.org>
33083
33084         Work around towlower, towupper bug on mingw.
33085         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
33086         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
33087         * doc/posix-functions/towlower.texi: Mention the mingw bug.
33088         * doc/posix-functions/towupper.texi: Likewise.
33089         Reported by Eric Blake.
33090
33091 2009-09-08  Jim Meyering  <meyering@redhat.com>
33092
33093         build: don't try to run autoheader if we don't use it
33094         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
33095         is not used in configure.ac.
33096
33097 2009-09-08  Eric Blake  <ebb9@byu.net>
33098
33099         euidaccess: fix compilation error
33100         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
33101
33102         rawmemchr: relax license
33103         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
33104         okay.
33105         Reported by Jim Meyering.
33106
33107         mkfifoat: new module
33108         * modules/mkfifoat: New file.
33109         * lib/mkfifoat.c: Likewise.
33110         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
33111         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33112         * modules/sys_stat (Makefile.am): Use them.
33113         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
33114         * MODULES.html.sh (File system functions): Mention module.
33115         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33116         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33117         * modules/mkfifoat-tests: New test.
33118         * tests/test-mkfifoat.c: Likewise.
33119
33120         strchrnul: relax license
33121         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
33122         okay.
33123         Reported by Jim Meyering.
33124
33125 2009-09-08  Eric Blake  <ebb9@byu.net>
33126
33127         fstatat: fix compilation on Solaris
33128         * lib/fstatat.c (includes): Add fcntl.h.
33129         Reported by Pádraig Brady.
33130
33131 2009-09-07  Eric Blake  <ebb9@byu.net>
33132
33133         rename: modernize replacement
33134         * modules/rename (Depends-on): Add stdio.
33135         (configure.ac): Declare witness.
33136         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
33137         stdio take care of replacement.
33138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
33139         * modules/stdio (Makefile.am): Substitute them.
33140         * lib/stdio.in.h (rename): Declare replacement.
33141         * lib/rename.c (includes): Allow cross-compilation to non-windows
33142         machines.
33143         * doc/posix-functions/rename.texi (rename): Improve
33144         documentation.
33145
33146         stdio: sort witness names
33147         * modules/stdio (Makefile.am): Sort replacements.
33148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33149         * lib/stdio.in.h: Likewise.
33150
33151         getcwd: minor cleanups
33152         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
33153         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
33154
33155         openat: provide more convenience names
33156         * modules/faccessat (configure.ac): Add C witness.
33157         * lib/unistd.in.h (readlinkat): Fix typo.
33158         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
33159         convenience wrappers.
33160         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
33161         wrappers in syntax checks.
33162
33163 2009-09-06  Eric Blake  <ebb9@byu.net>
33164
33165         doc: fix comments in recent patches
33166         * lib/faccessat.c: Mention correct function.
33167         * lib/fchmodat.c: Likewise.
33168         * lib/fchownat.c: Likewise.
33169         * lib/symlinkat.c: Likewise.
33170         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
33171         constants.
33172
33173         faccessat, symlinkat: continue cleanup of previous patch
33174         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
33175         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33176         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
33177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
33178         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
33179         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
33180         set.
33181
33182 2009-09-06  Bruno Haible  <bruno@clisp.org>
33183
33184         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
33185         (fstatat): Declare if GNULIB_FSTATAT is set.
33186         (mkdirat): Declare if GNULIB_MKDIRAT is set.
33187         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
33188         (unlinkat): Declare if GNULIB_UNLINKAT is set.
33189         * modules/fcntl-h (Files): Remove m4/openat.m4.
33190         * modules/sys_stat (Files): Remove m4/openat.m4.
33191         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
33192         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
33193         * modules/unistd (Files): Remove m4/openat.m4.
33194         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
33195         GNULIB_OPENAT.
33196         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
33197         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
33198         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
33199         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
33200         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
33201         gl_OPENAT_DEFAULTS.
33202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
33203         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
33204         Don't require gl_OPENAT_DEFAULTS.
33205         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
33206         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
33207         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
33208         (gl_OPENAT_DEFAULTS): Remove macro.
33209
33210 2009-09-06  Bruno Haible  <bruno@clisp.org>
33211
33212         * modules/openat (configure.ac): Remove unneeded witness.
33213
33214 2009-09-06  Bruno Haible  <bruno@clisp.org>
33215
33216         Set errno to ENOSYS when a function is entirely unsupported.
33217         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
33218         EOPNOTSUPP.
33219         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33220         * modules/chown (Depends-on): Remove errno.
33221
33222 2009-09-06  Bruno Haible  <bruno@clisp.org>
33223
33224         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
33225
33226 2009-09-06  Bruno Haible  <bruno@clisp.org>
33227
33228         * lib/sys_stat.in.h: Fix preprocessor command indentation.
33229
33230 2009-09-06  Ben Pfaff  <blp@gnu.org>
33231             Bruno Haible  <bruno@clisp.org>
33232
33233         Work around a glibc bug in strtok_r.
33234         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
33235         Undefine if UNDEFINE_STRTOK_R is set.
33236         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
33237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33238         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
33239         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
33240         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
33241         UNDEFINE_STRTOK_R.
33242         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
33243
33244 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33245
33246         exclude: minor fix
33247         * lib/exclude.c: Include wctype.h
33248
33249 2009-09-06  Akim Demaille  <demaille@gostai.com>
33250
33251         bootstrap: improve error message
33252         * build-aux/bootstrap (find_tool): Upon failure, report the list
33253         of candidates.
33254         Honor the initial value of the envvar.
33255
33256 2009-09-05  Eric Blake  <ebb9@byu.net>
33257
33258         symlinkat: new module
33259         * modules/symlinkat: New file.
33260         * lib/symlinkat.c: Likewise.
33261         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
33262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33263         * modules/unistd (Makefile.am): Use them.
33264         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
33265         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
33266         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
33267         * MODULES.html.sh (File system functions): Mention module.
33268         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33269         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33270         * modules/symlinkat-tests: New test.
33271         * tests/test-symlinkat.c: Likewise.
33272
33273         test-openat-safer: add more checks
33274         * tests/test-openat-safer.c (main): Check more code paths.
33275
33276 2009-09-05  Jim Meyering  <meyering@redhat.com>
33277
33278         syntax-check: detect unnecessary inclusion of openat.h
33279         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
33280
33281 2009-09-05  Bruno Haible  <bruno@clisp.org>
33282
33283         Support towlower, towupper.
33284         * doc/posix-functions/towlower.texi: Mention module wctype.
33285         * doc/posix-functions/towupper.texi: Likewise.
33286         * lib/wctype.in.h (towlower, towupper): New functions.
33287         * tests/test-wctype.c: Include stdio.h, stdlib.h.
33288         (ASSERT): New macro.
33289         (e): New variable.
33290         (main): Test also towlower, towupper. Test WEOF argument.
33291         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33292
33293 2009-09-05  Bruno Haible  <bruno@clisp.org>
33294
33295         Fix conversion behaviour when the input is invalid.
33296         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
33297         mark occurring in first pass of indirect conversion.
33298         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
33299         input.
33300         Found by clang's static analyzer.
33301
33302 2009-09-05  Bruno Haible  <bruno@clisp.org>
33303
33304         * tests/test-striconveh.c (main): Test indirect conversion on platforms
33305         where direct conversion is possible.
33306
33307 2009-09-04  Eric Blake  <ebb9@byu.net>
33308
33309         openat: fail with ENOENT on empty name
33310         * lib/openat-proc.c (openat_proc_name): Special-case the empty
33311         buffer.
33312
33313         link-follow: fix logic bug in prior patch
33314         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
33315         reversed sense of yes and no in prior patch.  Avoid confusing
33316         compilation failure with desired semantics.
33317
33318         link-follow: accomodate mingw and cross-compilation
33319         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
33320         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
33321         cross-compilation results to -1, to make linkat easier to
33322         implement when cross-compiling.  Trivially support mingw.
33323         * modules/link-follow (configure.ac): Call new name.
33324         * NEWS: Mention this.
33325
33326 2009-09-03  Eric Blake  <ebb9@byu.net>
33327
33328         faccessat: compile replacement
33329         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
33330         needed.
33331
33332         fts: fix compilation error
33333         * lib/fts.c (includes): Re-add "openat.h", for
33334         openat_needs_fchdir.
33335
33336         faccessat: new module
33337         * modules/faccessat: New file.
33338         * lib/faccessat.c: Likewise.
33339         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33341         * modules/unistd (Makefile.am): Use it.
33342         * lib/unistd.in.h (faccessat): Declare it.
33343         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
33344         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
33345         * MODULES.html.sh (File system functions): Mention it.
33346         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
33347         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33348
33349         euidaccess: prefer POSIX over non-standard implementation
33350         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
33351         * lib/euidaccess.c (euidaccess): Use it if available.
33352
33353         openat: make template easier to use
33354         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
33355         AT_FUNC_F2 to be undefined.
33356         (VALIDATE_FLAG): New macro; use it to reject bad flags.
33357         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
33358         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
33359         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
33360         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
33361         Likewise.
33362         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
33363         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
33364         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
33365         Likewise.
33366
33367         openat: declare in POSIX headers
33368         * NEWS: Mention this.
33369         * modules/openat (configure.ac): Declare witnesses.
33370         (Depends-on): Add fcntl-h, sys_stat, unistd.
33371         (Include): Mention correct headers.
33372         * modules/fcntl-h (Depends-on): Add link-warning.
33373         (Files): Add openat.m4.
33374         (Makefile.am): Substitute witnesses.
33375         * modules/sys_stat (Files, Makefile.am): Likewise.
33376         * modules/unistd (Files, Makefile.am): Likewise.
33377         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
33378         (gl_OPENAT_DEFAULTS): New macro.
33379         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
33380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
33381         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
33382         (SYS_STAT_H): Remove unused variable.
33383         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
33384         * lib/fcntl--.h (includes): Remove unneeded header.
33385         * lib/openat-safer.c (includes): Likewise.
33386         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
33387         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
33388         appropriate headers.
33389         (__OPENAT_PREFIX): Delete.
33390         * lib/fcntl.in.h (openat): Provide declaration.
33391         (AT_FDCWD): Fix Solaris bug.
33392         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
33393         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
33394         * lib/fchmodat.c (includes):  Adjust to find declaration.
33395         * lib/fchownat.c (includes): Likewise.
33396         * lib/mkdirat.c (includes): Likewise.
33397         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
33398         still visible.
33399
33400 2009-09-02  Eric Blake  <ebb9@byu.net>
33401
33402         errno: use consistently
33403         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
33404         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
33405         * lib/canonicalize.c (ELOOP): Likewise.
33406         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
33407         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
33408         * lib/lchown.c (EOPNOTSUPP): Likewise.
33409         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
33410         * lib/savewd.c (ESTALE): Likewise.
33411         * lib/settime.c (ENOSYS): Likewise.
33412         * lib/utimens.c (ENOSYS): Likewise.
33413         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
33414         * lib/chdir-safer.c (ELOOP): Likewise.
33415         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
33416         * modules/c-stack (Depends-on): Add errno.
33417         * modules/canonicalize (Depends-on): Likewise.
33418         * modules/chdir-safer (Depends-on): Likewise.
33419         * modules/fdopendir (Depends-on): Likewise.
33420         * modules/inet_ntop (Depends-on): Likewise.
33421         * modules/inet_pton (Depends-on): Likewise.
33422         * modules/lchown (Depends-on): Likewise.
33423         * modules/openat (Depends-on): Likewise.
33424         * modules/savewd (Depends-on): Likewise.
33425         * modules/settime (Depends-on): Likewise.
33426         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
33427
33428         fts: avoid leaking fds
33429         * modules/fts (Depends-on): Add cloexec.
33430         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
33431         flag.
33432
33433         fts: make directory fds more robust
33434         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
33435         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
33436
33437         backupfile, chdir-long, fts, savedir: make safer
33438         * lib/backupfile.c (includes): Use "dirent--.h", since
33439         numbered_backup can write to stderr during readdir.
33440         * lib/savedir.c (includes): Likewise.
33441         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
33442         emulation can write to stderr on failure.
33443         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
33444         * lib/getcwd.c: Document why opendir_safer is unused.
33445         * lib/glob.c: Likewise.
33446         * lib/scandir.c: Likewise.
33447         * lib/openat-proc.c: Likewise, for open_safer.
33448         * modules/backupfile (Depends-on): Add dirent-safer.
33449         * modules/savedir (Depends-on): Likewise.
33450         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
33451         * modules/chdir-long (Depends-on): Add openat-safer.
33452
33453         openat-safer: new module
33454         * modules/openat-safer: New file.
33455         * lib/openat-safer.c: Likewise.
33456         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
33457         * lib/fcntl-safer.h (openat_safer): Declare.
33458         * lib/fcntl--.h (openat): Override.
33459         * MODULES.html.sh (File descriptor based I/O): Mention it.
33460         * lib/openat.h: Add double-inclusion guards.
33461         * lib/openat.c (includes): Only include "fcntl-safer.h", not
33462         "fcntl--.h", so we can implement openat.
33463         * modules/openat-safer-tests: New test.
33464         * tests/test-openat-safer.c: New file.
33465
33466         dirent-safer: new module
33467         * modules/dirent-safer: New file.
33468         * lib/dirent--.h: Likewise.
33469         * lib/dirent-safer.h: Likewise.
33470         * lib/opendir-safer.c: Likewise.
33471         * m4/dirent-safer.m4: Likewise.
33472         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
33473         * modules/dirent-safer-tests: New test.
33474         * tests/test-dirent-safer.c: New file.
33475         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
33476
33477         fdopendir: optimize on mingw
33478         * lib/unistd.in.h (_gl_directory_name): New prototype.
33479         * lib/fchdir.c (_gl_directory_name): Implement it.
33480         (fchdir): Use it to simplify implementation.
33481         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
33482         fchdir, when available, to avoid calling [f]chdir().
33483
33484         fdopendir: split into its own module
33485         * lib/openat.c (fdopendir): Move...
33486         * lib/fdopendir.c: ...into new file.
33487         * modules/fdopendir: New module.
33488         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
33489         * modules/openat (Depends-on): Add fdopendir.
33490         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
33491         fdopendir here.
33492         * modules/savedir (Depends-on): Only need fdopendir, not full
33493         openat.
33494         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
33495         * lib/openat.h (fdopendir): Drop prototype.
33496         * lib/dirent.in.h (fdopendir): Provide prototype.
33497         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
33498         * modules/dirent (Makefile.am): Substitute them.
33499         * MODULES.html.sh (File system functions): Mention it.
33500         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
33501         * modules/fdopendir-tests: New file.
33502         * tests/test-fdopendir.c: Likewise.
33503
33504         fchdir: use more consistent macro convention
33505         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
33506         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
33507         REPLACE_FCHDIR, rather than relying on config.h macros.
33508         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
33509         inside a single make-time REPLACE_FCHDIR block, rather than using
33510         the config.h FCHDIR_REPLACEMENT.
33511         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
33512         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
33513         Manage fstat replacement.
33514         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
33515         REPLACE_FCHDIR.
33516         * modules/sys_stat (Files): Add m4/unistd_h.m4.
33517         (Makefile.am): Substitute REPLACE_FCHDIR.
33518         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
33519         FCHDIR_REPLACEMENT.
33520         * lib/dup-safer.c (dup_safer): Likewise.
33521         * lib/dup2.c (rpl_dup2): Likewise.
33522         * lib/dup3.c (rpl_dup3): Likewise.
33523         * lib/open.c (rpl_open): Likewise.
33524
33525         fchdir: simplify error handling, and support dup3
33526         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
33527         stdbool, malloc-posix, realloc-posix.
33528         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
33529         (ensure_dirs_slot): Return false on allocation failure.
33530         (rpl_dup2): Delete.
33531         (_gl_register_dup): New function.
33532         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
33533         (_gl_register_fd): Close fd on allocation failure.
33534         * lib/fcntl.in.h (_gl_register_fd): Update signature.
33535         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
33536         prototype.
33537         (rpl_dup2_fchdir): Delete prototype.
33538         * lib/open.c (open): Update caller.
33539         * lib/dup2.c (dup2): Track fchdir metadata.
33540         * lib/dup3.c (dup3): Likewise.
33541         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
33542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
33543
33544 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33545
33546         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
33547         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
33548         don't pass arguments to AC_OUTPUT.
33549
33550 2009-09-02  Bruno Haible  <bruno@clisp.org>
33551
33552         * modules/mkdtemp (License): Relicense under LGPLv2+.
33553         Reported by Paolo Bonzini.
33554
33555 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33556
33557         Replace uses of obsolete autoconf macros in Jim's modules.
33558         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
33559         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
33560         can evoke a warning from autoconf when run with -Wobsolete
33561         enabled.  They were declared obsolete for good reasons (see
33562         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
33563         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
33564         should not continue using the deprecated macros.
33565         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
33566         obsolete Autoconf macros with modern counterparts.
33567         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33568         * m4/dos.m4 (gl_AC_DOS): Likewise.
33569         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
33570         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
33571         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
33572         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
33573         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
33574         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
33575         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
33576         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
33577         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
33578         Likewise.
33579         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
33580         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
33581         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
33582         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
33583         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33584         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
33585
33586 2009-09-01  Eric Blake  <ebb9@byu.net>
33587
33588         fchdir: fix off-by-one bug in previous patch
33589         * lib/fchdir.c (rpl_fstat): Use correct bounds.
33590         (_gl_unregister_fd): Delete useless if.
33591
33592 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
33593
33594         maint.mk: sort the list of syntax-check rules
33595         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
33596         easier to get a sense of progress when the rules are run sequentially
33597         and take a long time.
33598
33599 2009-09-01  Simon Josefsson  <simon@josefsson.org>
33600
33601         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
33602         * modules/netinet_in: Likewise.
33603         * modules/sys_file: Likewise.
33604         * modules/sys_ioctl: Likewise.
33605         * modules/sys_select: Likewise.
33606         * modules/sys_socket: Likewise.
33607         * modules/sys_stat: Likewise.
33608         * modules/sys_time: Likewise.
33609         * modules/sys_times: Likewise.
33610         * modules/sys_utsname: Likewise.
33611         * modules/sys_wait: Likewise.
33612
33613 2009-09-01  Jim Meyering  <meyering@redhat.com>
33614
33615         fts: help ensure that return values are not ignored
33616         * lib/fts_.h (__GNUC_PREREQ): Define.
33617         (__attribute_warn_unused_result__): Define.
33618         (fts_children, fts_close, fts_open, fts_read): Declare with
33619         __attribute_warn_unused_result__.
33620
33621         fts: fts_close now fails also when closing a dir file descriptor fails
33622         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
33623         and propagate to caller, along with errno.
33624
33625         announce-gen: correct formatting in --help output
33626         * build-aux/announce-gen (usage): Move the one-line description in
33627         --help output "up", to where it belongs, just after Usage:.
33628
33629 2009-08-31  Eric Blake  <ebb9@byu.net>
33630
33631         fchdir: port to mingw
33632         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
33633         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
33634         opened, then use a substitute.
33635         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
33636         replacement.
33637         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
33638         (_gl_register_fd): No need to check stat if open already filters
33639         all directories.
33640         (fchdir): Fix error condition to match POSIX.
33641         * modules/fchdir (Depends-on): Add sys_stat.
33642         * doc/posix-functions/open.texi (open): Document the limitation.
33643         * modules/fchdir-tests: New file.
33644         * tests/test-fchdir.c: Likewise.
33645
33646         canonicalize: allow cross-testing from cygwin to mingw
33647         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
33648         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
33649         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
33650         Likewise.
33651         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
33652         target does not support symlinks.
33653         * tests/test-canonicalize-lgpl.sh: Likewise.
33654
33655         chown: avoid compilation warning on mingw
33656         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
33657         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
33658         mingw.
33659         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33660         * modules/chown (Depends-on): Add errno.
33661
33662 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
33663
33664         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
33665         command.
33666
33667 2009-08-31  Jim Meyering  <meyering@redhat.com>
33668
33669         canonicalize: remove useless initialization
33670         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
33671         initialization of local, "end".
33672
33673 2009-08-30  Bruno Haible  <bruno@clisp.org>
33674
33675         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
33676         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
33677         ENOSYS.
33678
33679 2009-08-30  Bruno Haible  <bruno@clisp.org>
33680
33681         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
33682         /usr/xpg4/bin/tr when it exists.
33683         * tests/test-pipe-filter-gi1.sh: Likewise.
33684
33685 2009-08-30  Bruno Haible  <bruno@clisp.org>
33686
33687         Work around deficient /usr/bin/id program on Solaris.
33688         * tests/test-file-has-acl.sh (ID): New variable.
33689         * tests/test-set-mode-acl.sh (ID): Likewise.
33690         * tests/test-copy-acl.sh (ID): Likewise.
33691         * tests/test-copy-file.sh (ID): Likewise.
33692
33693 2009-08-30  Bruno Haible  <bruno@clisp.org>
33694
33695         New module 'xstriconveh'.
33696         * lib/xstriconveh.h: New file.
33697         * lib/xstriconveh.c: New file.
33698         * modules/xstriconveh: New file.
33699
33700 2009-08-30  Bruno Haible  <bruno@clisp.org>
33701
33702         Make it easier to use mem_cd_iconveh.
33703         * lib/striconveh.h (iconveh_t): New type.
33704         (iconveh_open, iconveh_close): New declarations.
33705         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33706         with a single 'const iconveh_t *' argument.
33707         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
33708         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33709         with a single 'const iconveh_t *' argument.
33710         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
33711         * tests/test-striconveh.c (main): Update.
33712         * NEWS: Mention the change.
33713
33714 2009-08-30  Bruno Haible  <bruno@clisp.org>
33715
33716         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
33717         problem.
33718
33719 2009-08-30  Bruno Haible  <bruno@clisp.org>
33720
33721         Work around iconv_open problem on Solaris.
33722         * lib/iconv_open-solaris.gperf: New file.
33723         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
33724         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
33725         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
33726         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
33727         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
33728         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
33729
33730 2009-08-29  Jim Meyering  <meyering@redhat.com>
33731
33732         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
33733         * top/maint.mk (cvs-check): Remove target; it was just an alias
33734         to the better-named vc-diff-check.
33735         (maintainer-distcheck): Remove rule.  It was used only from
33736         the (alpha/beta/major) target, and all of its commands but one
33737         were coreutils-specific.
33738         (vc-dist): Remove rule.
33739         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
33740         Run vc-diff-check, not vc-dist.
33741         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
33742
33743 2009-08-27  Bruno Haible  <bruno@clisp.org>
33744
33745         * tests/test-bitrotate.c (main): Remove test that uses a shift count
33746         of 0.
33747
33748 2009-08-27  Bruno Haible  <bruno@clisp.org>
33749
33750         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
33751         compilers.
33752         * doc/func.texi: Document the SunPRO C bug.
33753
33754 2009-08-27  Bruno Haible  <bruno@clisp.org>
33755
33756         Fix link error on Solaris.
33757         * tests/test-parse-duration.c (xstrdup): Remove function.
33758
33759 2009-08-26  Pádraig Brady  <P@draigbrady.com>
33760
33761         ignore-value: handle pointer types, too
33762         * lib/ignore-value.h (__attribute__): Remove definition.
33763         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
33764         of a more concise and more-often effective "(void) i" statement.
33765         (ignore_ptr): New function to suppress warnings from functions that
33766         return pointers, and to make it explicit that one function doesn't
33767         handle all cases.
33768
33769 2009-08-25  Bruno Haible  <bruno@clisp.org>
33770
33771         dup2: work around a Linux bug.
33772         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
33773         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
33774         * doc/posix-functions/dup2.texi: Mention the Linux bug.
33775         Reported by Simon Josefsson.
33776
33777 2009-08-25  Jim Meyering  <meyering@redhat.com>
33778
33779         libguestfs uses gnulib
33780         * users.txt: Add libguestfs.
33781
33782 2009-08-24  Eric Blake  <ebb9@byu.net>
33783
33784         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
33785         * lib/pipe2.c (includes): Add binary-io.h.
33786         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
33787
33788 2009-08-24  Bruno Haible  <bruno@clisp.org>
33789
33790         Tolerate declared but missing accept4 syscall.
33791         * lib/accept4.c (accept4): Invoke original accept4 function first, if
33792         available.
33793         * lib/sys_socket.in.h (accept4): If the function is already present,
33794         override it.
33795         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33796         * modules/accept4 (Makefile.am): Compile accept4.c always.
33797         Reported by Paolo Bonzini and Eric Blake.
33798
33799 2009-08-23  Bruno Haible  <bruno@clisp.org>
33800
33801         New module 'accept4'.
33802         * lib/sys_socket.in.h (accept4): New declaration.
33803         * lib/accept4.c: New file.
33804         * m4/accept4.m4: New file.
33805         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33806         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33807         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33808         HAVE_ACCEPT4.
33809         * modules/accept4: New file.
33810         * doc/glibc-functions/accept4.texi: Mention the new module.
33811
33812 2009-08-24  Jim Meyering  <meyering@redhat.com>
33813
33814         progname: also set global program_invocation_name, when possible
33815         Before this change, a libtool-enabled program that calls glibc's
33816         error function would report the program name as
33817         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33818         * modules/progname (configure.ac): Check for a declaration of
33819         program_invocation_name.
33820         * lib/progname.c:  Include <errno.h>.
33821         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
33822         Set program_invocation_name.
33823
33824 2009-08-23  Bruno Haible  <bruno@clisp.org>
33825
33826         * lib/dup3.c: Include <string.h>.
33827
33828 2009-08-23  Bruno Haible  <bruno@clisp.org>
33829
33830         * lib/dup3.c (dup3): Test only once whether the system actually exists.
33831         * lib/pipe2.c (pipe2): Likewise.
33832         Suggested by Eric Blake.
33833
33834 2009-08-23  Bruno Haible  <bruno@clisp.org>
33835
33836         Tolerate declared but missing dup3 syscall.
33837         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
33838         * lib/unistd.in.h (dup3): If the function is already present,
33839         override it.
33840         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
33841         * modules/dup3 (Makefile.am): Compile dup3.c always.
33842         Reported by Paolo Bonzini.
33843
33844 2009-08-23  Bruno Haible  <bruno@clisp.org>
33845
33846         Tolerate declared but missing pipe2 syscall.
33847         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
33848         available.
33849         * lib/unistd.in.h (pipe2): If the function is already present,
33850         override it.
33851         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
33852         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
33853         Reported by Paolo Bonzini.
33854
33855 2009-08-23  Bruno Haible  <bruno@clisp.org>
33856
33857         * lib/pipe2.c (pipe2): Move #ifs inside function.
33858
33859 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33860
33861         quotearg: document limitations of quote_these_too
33862         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
33863         those limitations are created.
33864         * lib/quotearg.h (set_char_quoting): Document that digits and
33865         letters that are special after backslash are not permitted.
33866         (quotearg_char): Cross-reference set_char_quoting documentation.
33867
33868 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
33869
33870         quotearg: implement custom_quoting_style
33871         * lib/quotearg.c: (struct quoting_options): Add left_quote and
33872         right_quote fields.
33873         (set_custom_quoting): New public function.
33874         (quotearg_buffer_restyled): Add left_quote and right_quote
33875         arguments, handle them very much like locale quoting, and update
33876         all uses.
33877         (quotearg_n_custom): New public function.
33878         (quotearg_n_custom_mem): New public function.
33879         (quotearg_custom): New public function.
33880         (quotearg_custom_mem): New public function.
33881         * lib/quotearg.h: Prototype and document new public functions.
33882         (enum quoting_style): For escape_quoting_style and
33883         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33884         ignored even though they're otherwise like c_quoting_style.
33885         Add custom_quoting_style member and document with comparison to
33886         clocale_quoting_style.
33887         * tests/test-quotearg.c (custom_quotes): New array.
33888         (custom_results): New array.
33889         (main): Extend to test custom quoting.
33890
33891 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33892
33893         quotearg: fix right quote escaping when it's in quote_these_too
33894         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33895         quote, be sure to prepend only one backslash.
33896         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33897         (main): Test it.
33898
33899 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33900
33901         quotearg-tests: test escaping of embedded locale quotes
33902         * tests/test-quotearg.c (struct result_strings): Add member for
33903         new input.
33904         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33905         (inputs): Add new input.
33906         (results_g): Add expected results.
33907         (flag_results): Likewise.
33908         (locale_results): Likewise.
33909         (compare_strings): Check those.
33910
33911 2009-08-23  Bruno Haible  <bruno@clisp.org>
33912
33913         Tests for module 'dup3'.
33914         * modules/dup3-tests: New file.
33915         * tests/test-dup3.c: New file.
33916
33917         New module 'dup3'.
33918         * lib/unistd.in.h (dup3): New declaration.
33919         * lib/dup3.c: New file.
33920         * m4/dup3.m4: New file.
33921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33922         HAVE_DUP3.
33923         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33924         * modules/dup3: New file.
33925         * doc/glibc-functions/dup3.texi: Mention the new module.
33926
33927 2009-08-23  Bruno Haible  <bruno@clisp.org>
33928
33929         Tweak the dup2 test.
33930         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33931         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33932         the test file is still empty. Fix argument order of lseek.
33933
33934 2009-08-23  Bruno Haible  <bruno@clisp.org>
33935
33936         Avoid test link errors when the modules getopt-gnu, gettext are used.
33937         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33939
33940 2009-08-23  Bruno Haible  <bruno@clisp.org>
33941
33942         Fix getdtablesize() on mingw.
33943         * lib/getdtablesize.c (getdtablesize): Implement differently.
33944         * lib/unistd.in.h (getdtablesize): Improve comment.
33945
33946 2009-08-23  Bruno Haible  <bruno@clisp.org>
33947
33948         New module 'mkostemp'.
33949         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33950         * lib/stdlib.in.h (mksotemp): New declaration.
33951         * lib/mkostemp.c: New file, from glibc with modifications.
33952         * lib/tempname.h (GT_FILE): Remove outdated comment.
33953         (gen_tempname): Add flags argument.
33954         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33955         (__GT_FILE): Map to 1.
33956         (small_open, large_open): Remove macros.
33957         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33958         * lib/mkstemp.c (mkstemp): Update.
33959         * lib/mkdtemp.c (mkdtemp): Likewise.
33960         * m4/mkostemp.m4: New file.
33961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33962         HAVE_MKOSTEMP.
33963         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33964         HAVE_MKOSTEMP.
33965         * modules/mkostemp: New file, based on modules/mkstemp.
33966         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33967         * NEWS: Mention the change.
33968
33969 2009-08-23  Bruno Haible  <bruno@clisp.org>
33970
33971         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33972         Reported by Eric Blake.
33973
33974 2009-08-23  Bruno Haible  <bruno@clisp.org>
33975
33976         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33977         Reported by Eric Blake.
33978
33979 2009-08-23  Bruno Haible  <bruno@clisp.org>
33980
33981         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33982         * modules/pipe2 (Depends-on): Likewise.
33983
33984 2009-08-23  Eric Blake  <ebb9@byu.net>
33985
33986         fcntl-h: add O_TTY_INIT support
33987         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33988         * tests/test-fcntl-h.c (o): Test it.
33989         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33990
33991         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33992         * modules/fcntl: Move <fcntl.h> header replacement...
33993         * modules/fcntl-h: ...to new name, so as not to collide with
33994         like-named function.
33995         * tests/test-fcntl.c: Rename...
33996         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33997         * modules/fcntl-tests: Rename...
33998         * modules/fcntl-h-tests: ...to this.  Update test file name.
33999         * modules/chdir-long (Depends-on): Update clients.
34000         * modules/chdir-safer (Depends-on): Likewise.
34001         * modules/fcntl-safer (Depends-on): Likewise.
34002         * modules/fts (Depends-on): Likewise.
34003         * modules/mkancesdirs (Depends-on): Likewise.
34004         * modules/mkdir-p (Depends-on): Likewise.
34005         * modules/open (Depends-on): Likewise.
34006         * modules/savewd (Depends-on): Likewise.
34007         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
34008         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34009
34010 2009-08-22  Bruno Haible  <bruno@clisp.org>
34011
34012         * modules/binary-io (License): Relicense under LGPL.
34013         * modules/pipe2 (License): Likewise.
34014
34015 2009-08-22  Bruno Haible  <bruno@clisp.org>
34016
34017         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
34018         return value.
34019         * lib/pipe-filter-gi.c (filter_init): Likewise.
34020         Reported by Eric Blake.
34021
34022 2009-08-22  Bruno Haible  <bruno@clisp.org>
34023
34024         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
34025         * modules/pipe (Depends-on): Add pipe2.
34026
34027 2009-08-22  Bruno Haible  <bruno@clisp.org>
34028
34029         Tests for module 'pipe2'.
34030         * modules/pipe2-tests: New file.
34031         * tests/test-pipe2.c: New file.
34032
34033         New module 'pipe2'.
34034         * lib/unistd.in.h (pipe2): New declaration.
34035         * lib/pipe2.c: New file.
34036         * m4/pipe2.m4: New file.
34037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
34038         HAVE_PIPE2.
34039         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
34040         * modules/pipe2: New file.
34041         * doc/glibc-functions/pipe2.texi: Mention the new module.
34042
34043 2009-08-22  Bruno Haible  <bruno@clisp.org>
34044
34045         Reference some new glibc functions.
34046         * doc/glibc-functions/accept4.texi: New file.
34047         * doc/glibc-functions/dup3.texi: New file.
34048         * doc/glibc-functions/mkostemp.texi: New file.
34049         * doc/glibc-functions/pipe2.texi: New file.
34050         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
34051         (Glibc sys/socket.h): Refer to accept4.
34052         (Glibc unistd.h): Refer to dup3, pipe2.
34053         Reported by Eric Blake.
34054
34055 2009-08-22  Jim Meyering  <meyering@redhat.com>
34056             Bruno Haible  <bruno@clisp.org>
34057
34058         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
34059         This makes it so packages using automake-1.11's silent-rules option
34060         can print e.g., a single "GEN    configmake.h" line, rather than
34061         the 30+ statements that perform the job.  If you want to see the
34062         actual commands, you can still run "make V=1".
34063         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
34064         so that make output is abbreviated when those variables are defined
34065         appropriately.
34066         * modules/argz: Likewise.
34067         * modules/arpa_inet: Likewise.
34068         * modules/byteswap: Likewise.
34069         * modules/configmake: Likewise.
34070         * modules/dirent: Likewise.
34071         * modules/errno: Likewise.
34072         * modules/fcntl: Likewise.
34073         * modules/float: Likewise.
34074         * modules/fnmatch: Likewise.
34075         * modules/getopt-posix: Likewise.
34076         * modules/glob: Likewise.
34077         * modules/iconv_open: Likewise.
34078         * modules/inttypes: Likewise.
34079         * modules/localcharset: Likewise.
34080         * modules/locale: Likewise.
34081         * modules/math: Likewise.
34082         * modules/netdb: Likewise.
34083         * modules/netinet_in: Likewise.
34084         * modules/poll: Likewise.
34085         * modules/posix_spawnp-tests: Likewise.
34086         * modules/sched: Likewise.
34087         * modules/search: Likewise.
34088         * modules/selinux-h: Likewise.
34089         * modules/signal: Likewise.
34090         * modules/spawn: Likewise.
34091         * modules/stdarg: Likewise.
34092         * modules/stdbool: Likewise.
34093         * modules/stddef: Likewise.
34094         * modules/stdint: Likewise.
34095         * modules/stdio: Likewise.
34096         * modules/stdlib: Likewise.
34097         * modules/string: Likewise.
34098         * modules/strings: Likewise.
34099         * modules/sys_file: Likewise.
34100         * modules/sys_ioctl: Likewise.
34101         * modules/sys_select: Likewise.
34102         * modules/sys_socket: Likewise.
34103         * modules/sys_stat: Likewise.
34104         * modules/sys_time: Likewise.
34105         * modules/sys_times: Likewise.
34106         * modules/sys_utsname: Likewise.
34107         * modules/sys_wait: Likewise.
34108         * modules/sysexits: Likewise.
34109         * modules/time: Likewise.
34110         * modules/unistd: Likewise.
34111         * modules/wchar: Likewise.
34112         * modules/wctype: Likewise.
34113
34114 2009-08-22  Jim Meyering  <meyering@redhat.com>
34115
34116         announce-gen: detect write failure
34117         * build-aux/announce-gen: Add Coda at end.
34118         Remove equivalent-but-more-verbose block at top.
34119
34120 2009-08-19  Akim Demaille  <demaille@gostai.com>
34121
34122         bootstrap: --help to stdout.
34123         * bootstrap (usage): Don't send --help to stderr.
34124         Use a here doc instead of a long string.
34125
34126 2009-08-21  Eric Blake  <ebb9@byu.net>
34127
34128         test-popen-safer: split from test-popen
34129         * tests/test-popen.c (main): Move...
34130         * tests/test-popen.h: ...into new file.
34131         * tests/test-popen-safer2.c: New file.
34132         * modules/popen-tests (Files): Add test-popen.h.
34133         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
34134         Suggested by Bruno Haible.
34135
34136         test-fcntl-safer: split from test-open
34137         * tests/test-open.c (main): Move...
34138         * tests/test-open.h: ...into new file.
34139         * tests/test-fcntl-safer.c: New file.
34140         * modules/open-tests (Files): Add test-open.h.
34141         * modules/fcntl-safer-tests: New file.
34142         Suggested by Bruno Haible.
34143
34144         test-fopen-safer: split from test-fopen
34145         * tests/test-fopen.c (main): Move...
34146         * tests/test-fopen.h: ...into new file.
34147         * tests/test-fopen-safer.c: New file.
34148         * modules/fopen-tests (Files): Add test-fopen.h.
34149         * modules/fopen-safer-tests: New file.
34150         Suggested by Bruno Haible.
34151
34152 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
34153
34154         popen-safer: test O_CLOEXEC at run-time.
34155         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
34156
34157 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
34158
34159         fcntl: move more flags to the header
34160         * lib/cloexec.c: Do not define FD_CLOEXEC here.
34161         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
34162         * lib/fcntl.in.h: Do both things here.
34163
34164 2009-08-21  Jim Meyering  <meyering@redhat.com>
34165
34166         consistently remove $@-t before redirecting to it
34167         * modules/argz: Remove $@-t and $@ before redirecting to the former.
34168         * modules/alloca-opt: Likewise.
34169         * modules/byteswap: Likewise.
34170         * modules/fnmatch: Likewise.
34171         * modules/getopt-posix: Likewise.
34172         * modules/glob: Likewise.
34173         * modules/poll: Likewise.
34174         * modules/posix_spawnp-tests: Likewise.
34175         * modules/sys_socket: Likewise.
34176         * modules/sysexits: Likewise.
34177
34178 2009-08-21  Eric Blake  <ebb9@byu.net>
34179
34180         popen: simplify access to original popen
34181         * lib/popen.c (rpl_popen): No need to worry about popen being a
34182         macro.
34183         Reported by Bruno Haible.
34184
34185 2009-08-20  Eric Blake  <ebb9@byu.net>
34186
34187         build: avoid some compiler warnings
34188         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
34189         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
34190         type.
34191         (new_exclude_segment, excluded_file_pattern_p)
34192         (excluded_file_name_p): Reduce scope.
34193         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
34194         old-style declaration.
34195
34196 2009-08-20  Simon Josefsson  <simon@josefsson.org>
34197
34198         * tests/test-exclude1.sh: Handle Windows EOL.
34199         * tests/test-exclude2.sh: Likewise.
34200         * tests/test-exclude3.sh: Likewise.
34201         * tests/test-exclude4.sh: Likewise.
34202         * tests/test-exclude5.sh: Likewise.
34203         * tests/test-exclude6.sh: Likewise.
34204         * tests/test-exclude7.sh: Likewise.
34205
34206 2009-08-19  Akim Demaille  <demaille@gostai.com>
34207
34208         bootstrap: find sha1sum when named gsha1sum.
34209         * bootstrap (find_tool): New.
34210         ($SHA1SUM): New.
34211         Use it.
34212
34213 2009-08-20  Jim Meyering  <meyering@redhat.com>
34214
34215         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
34216         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
34217         expression that converts "." in a file name to "\." in the resulting
34218         regexp.  Start with a dummy statement, so that prior shell variable
34219         definitions are expanded portably.  Reported by Simon Josefsson.
34220
34221 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
34222
34223         Fix polling for writeability of a screen buffer.
34224         * lib/poll.c: Distinguish input and screen buffers for the
34225         Win32 implementation.
34226         * lib/select.c: Likewise.
34227
34228 2009-08-19  Eric Blake  <ebb9@byu.net>
34229
34230         popen-safer: prevent popen from clobbering std descriptors
34231         * modules/popen-safer: New file.
34232         * lib/popen-safer.c: Likewise.
34233         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
34234         * lib/stdio--.h (popen): Provide override.
34235         * lib/stdio-safer.h (popen_safer): Provide declaration.
34236         * tests/test-popen.c (includes): Partially test this.
34237         * modules/popen-safer-tests: New file, for more tests.
34238         * tests/test-popen-safer.c: Likewise.
34239         * MODULES.html.sh (file stream based Input/Output): Mention it.
34240
34241         tests: test some of the *-safer modules
34242         * modules/fopen-safer (Depends-on): Add fopen.
34243         * modules/fcntl-safer (Depends-on): Add fcntl.
34244         * modules/stdlib-safer (Depends-on): Add stdlib.
34245         (configure.ac): Set indicator.
34246         * modules/unistd-safer (configure.ac): Likewise.
34247         * modules/tmpfile-safer (configure.ac): Likewise.
34248         (Depends-on): Add tmpfile.
34249         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
34250         active.
34251         * tests/test-fopen.c (includes): Test safer versions when they are
34252         in use.
34253         * tests/test-open.c (includes): Likewise.
34254
34255         popen: fix cygwin 1.5 bug when stdin closed
34256         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
34257         * modules/popen: New file.
34258         * modules/popen-tests: Likewise.
34259         * tests/test-popen.c: Likewise.
34260         * m4/popen.m4: Likewise.
34261         * lib/popen.c: Likewise.
34262         * lib/stdio.in.h (popen): New declaration.
34263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
34264         * modules/stdio (Makefile.am): Likewise.
34265         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
34266
34267 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
34268
34269         maint.mk: give full control over update-copyright exclusions
34270         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
34271         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
34272         (update-copyright): Don't force inclusion of top-level
34273         ChangeLog.  Don't force exclusion of all COPYING files, but make
34274         them the default exclusion instead.
34275
34276 2009-08-16  Bruno Haible  <bruno@clisp.org>
34277
34278         Fix test failures on Solaris 10.
34279         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
34280         tests when Solaris iconv() is used.
34281         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34282         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34283         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34284         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34285         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34286
34287 2009-08-16  Bruno Haible  <bruno@clisp.org>
34288
34289         Fix test failures on Solaris 10.
34290         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
34291         'tr' program and pass it as first argument.
34292         * tests/test-pipe-filter-gi1.sh: Likewise.
34293         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
34294         program as first argument.
34295         * tests/test-pipe-filter-gi1.c (main): Likewise.
34296
34297 2009-08-16  Eric Blake  <ebb9@byu.net>
34298
34299         fpurge: fix previous commits
34300         * modules/fpurge (Makefile.am): Make replacement conditional,
34301         partially reverting 2007-04-29 change; missed in previous
34302         attempt.
34303         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
34304         is missing.
34305
34306 2009-08-16  Bruno Haible  <bruno@clisp.org>
34307
34308         Clarify fpurge's effect on the file position.
34309         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
34310         * tests/test-fpurge.c (main): Make a second pass for checking the file
34311         position.
34312
34313 2009-08-16  Bruno Haible  <bruno@clisp.org>
34314
34315         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
34316         declaration of fpurge is missing.
34317         * tests/test-fpurge.c (main): Check that the file has not more contents
34318         than expected. Close the file before removing it.
34319
34320 2009-08-15  Eric Blake  <ebb9@byu.net>
34321
34322         fpurge: don't wrap working cygwin implementation
34323         * lib/fpurge.c (fpurge): Fix comment typo.
34324         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
34325         1.7 to avoid replacement.
34326         * tests/test-fpurge.c (main): Enhance test.
34327
34328 2009-08-15  Eric Blake  <ebb9@byu.net>
34329         and Jim Meyering  <meyering@redhat.com>
34330
34331         test-update-copyright: skip if perl is insufficient
34332         * tests/test-update-copyright.sh: Failure to run maintainer tool
34333         should not cause testsuite failure on cygwin 1.5.
34334
34335 2009-08-14  Eric Blake  <ebb9@byu.net>
34336
34337         doc: mention more functions added in cygwin 1.7.0
34338         * doc/posix-headers/limits.texi (limits.h): Update for recent
34339         cygwin additions.
34340         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
34341         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
34342         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
34343         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
34344         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
34345
34346 2009-08-14  Eric Blake  <ebb9@byu.net>
34347
34348         maint.mk: simplify update-copyright rule
34349         * top/maint.mk (update-copyright-local): Delete, and document how
34350         to do it in cfg.mk instead.
34351         (update-copyright-exclude-regexp): Delete, and document how to do
34352         it in .x-update-copyright instead.
34353         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
34354         exclude ChangeLog.
34355
34356 2009-08-14  Bruno Haible  <bruno@clisp.org>
34357
34358         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
34359
34360 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34361
34362         maint.mk: support update-copyright-env
34363         * top/maint.mk (update-copyright-env): Define place-holder.
34364         (update-copyright): Expand $(update-copyright-env) before
34365         invoking update-copyright.
34366
34367 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34368
34369         update-copyright: implement forced reformatting
34370         * build-aux/update-copyright: Implement and document
34371         UPDATE_COPYRIGHT_FORCE.
34372         * tests/test-update-copyright.sh: Test it.
34373
34374 2009-08-14  Eric Blake  <ebb9@byu.net>
34375         and Bruno Haible  <bruno@clisp.org>
34376
34377         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
34378         * tests/test-locale.c: Revert previous patch related to NULL.
34379         * tests/test-stdio.c: Likewise.
34380         * tests/test-stdlib.c: Likewise.
34381         * tests/test-string.c: Likewise.
34382         * tests/test-unistd.c: Likewise.
34383         * modules/time-tests (Depends-on): Add verify.
34384         * modules/wchar-tests (Depends-on): Likewise.
34385         * tests/test-time.c: Test for NULL compliance.
34386         * tests/test-wchar.c: Likewise.
34387         * modules/locale (Depends-on): Add stddef.
34388         * modules/stdio (Depends-on): Likewise.
34389         * modules/stdlib (Depends-on): Likewise.
34390         * modules/string (Depends-on): Likewise.
34391         * modules/time (Depends-on): Likewise.
34392         * modules/unistd (Depends-on): Likewise.
34393         * modules/wchar (Depends-on): Likewise.
34394         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
34395         * lib/stdlib.in.h (includes): Likewise.
34396         * lib/string.in.h (includes): Likewise.
34397         * lib/time.in.h (includes): Likewise.
34398         * lib/unistd.in.h (includes): Likewise.
34399         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
34400         replaced.
34401         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34402         * m4/stddef_h.m4: New file.
34403         * modules/stddef: Likewise.
34404         * lib/stddef.in.h: Likewise.
34405         * modules/stddef-tests: Likewise.
34406         * tests/test-stddef.c: Likewise.
34407         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
34408         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
34409         * doc/posix-headers/locale.texi (locale.h): Likewise.
34410         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
34411         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
34412         * doc/posix-headers/string.texi (string.h): Likewise.
34413         * doc/posix-headers/time.texi (time.h): Likewise.
34414         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
34415         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
34416
34417 2009-08-14  Eric Blake  <ebb9@byu.net>
34418
34419         doc: improve git diff of texinfo files
34420         * .gitattributes: Add rule for *.texi files, with hint on how to
34421         use it.
34422         Copied from m4, and based on a report by Bruno Haible.
34423
34424 2009-08-14  Bruno Haible  <bruno@clisp.org>
34425
34426         Disable multithread support by default on Cygwin 1.5.x for real.
34427         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
34428
34429 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34430
34431         update-copyright: much ado about intervals
34432         * build-aux/update-copyright: Implement and document
34433         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
34434         of copyright year intervals.
34435         Also, document UPDATE_COPYRIGHT_YEAR.
34436         * tests/test-update-copyright.sh: Test it.
34437
34438         update-copyright: convert 2-digit to 4-digit years
34439         * build-aux/update-copyright: Implement and document.
34440         * tests/test-update-copyright.sh: Update.
34441
34442 2009-08-14  Jim Meyering  <meyering@redhat.com>
34443
34444         test-exclude: avoid coreutils "make check" failure
34445         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
34446         just as in test-argmatch.c.
34447
34448 2009-08-13  Eric Blake  <ebb9@byu.net>
34449
34450         test-dup2: fix bad assumption
34451         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
34452         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
34453
34454         test-version-etc: fix CRLF portability issue
34455         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
34456         recognize \r.
34457         * tests/test-argp-version-etc-1.sh: Likewise.
34458
34459         getopt: update client modules
34460         * modules/argp (Depends-on): Use getopt-gnu.
34461         * modules/git-merge-changelog (Depends-on): Likewise.
34462         * modules/long-options (Depends-on): Likewise.
34463         * modules/xstrtol (Depends-on): Likewise.
34464
34465 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34466
34467         * tests/test-version-etc.sh: Don't fail on different
34468         project/version.  Don't fail on CRLF differences.  Rewrite to use
34469         multiple -e instead of multiple sed forks, suggested by Eric Blake
34470         <ebb9@byu.net>.
34471         * tests/test-argp-version-etc-1.sh: Likewise.
34472
34473 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34474
34475         * tests/test-version-etc.sh: Don't fail on different
34476         project/version.
34477
34478 2009-08-12  Bruno Haible  <bruno@clisp.org>
34479
34480         Tests for modules 'getopt-posix', 'getopt-gnu'.
34481         * modules/getopt-posix-tests: New file.
34482         * tests/test-getopt.c: New file.
34483         * tests/test-getopt.h: New file.
34484         * tests/test-getopt_long.h: New file.
34485
34486         New modules 'getopt-posix', 'getopt-gnu'.
34487         * modules/getopt-gnu: New file, renamed from modules/getopt.
34488         * modules/getopt-posix: New file.
34489         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
34490         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
34491         (gl_GETOPT): Remove macro.
34492         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
34493         Disable the test against BSD systems that declare optreset. Test
34494         against mingw bug. Test against lack of support of optional arguments
34495         on many platforms.
34496         * doc/glibc-headers/getopt.texi: Update module name and list of
34497         relevant platforms.
34498         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
34499         'getopt-gnu' and more portability problems.
34500         * NEWS: Mention the changes.
34501
34502 2009-08-12  Bruno Haible  <bruno@clisp.org>
34503
34504         Ensure that optarg etc. get declared by <unistd.h>.
34505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
34506         AC_USE_SYSTEM_EXTENSIONS.
34507         * modules/getopt (Depends-on): Add 'extensions'.
34508
34509 2009-08-12  Bruno Haible  <bruno@clisp.org>
34510
34511         Avoid test link errors.
34512         * modules/pipe-filter-ii-tests (Makefile.am): Define
34513         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
34514         * modules/pipe-filter-gi-tests (Makefile.am): Define
34515         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
34516         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34517
34518 2009-08-12  Bruno Haible  <bruno@clisp.org>
34519
34520         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
34521         gl_GETOPT_SUBSTITUTE before.
34522         (gl_GETOPT): Use it.
34523         * m4/argp.m4 (gl_ARGP): Update.
34524         Reported by Sergey Poznyakoff.
34525
34526         * m4/getopt.m4: Reorder macros.
34527         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
34528         (gl_GETOPT_SUBSTITUTE): Remove macro.
34529
34530 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34531
34532         Minor improvement in gitlog-to-changelog
34533
34534         * build-aux/gitlog-to-changelog: New option `--format' makes
34535         output format string configurable.
34536
34537 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34538
34539         Optimize exclude: use hash tables for non-wildcard patterns.
34540
34541         * lib/exclude.c: Include hash.h and mbuiter.h
34542         (struct exclude_pattern, exclude_segment): New data types.
34543         (struct exclude): Rewrite.
34544         (fnmatch_pattern_has_wildcards): New function.
34545         (new_exclude_segment, free_exclude_segment): New functions.
34546         (excluded_file_pattern_p, excluded_file_name_p): New functions.
34547         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
34548         * lib/exclude.h (is_fnmatch_pattern): New prototype.
34549         * modules/exclude: Depend on hash and mbuiter.
34550
34551         * modules/exclude-tests: New file.
34552         * tests/test-exclude.c: New file.
34553         * tests/test-exclude1.sh: New file.
34554         * tests/test-exclude2.sh: New file.
34555         * tests/test-exclude3.sh: New file.
34556         * tests/test-exclude4.sh: New file.
34557         * tests/test-exclude5.sh: New file.
34558         * tests/test-exclude6.sh: New file.
34559         * tests/test-exclude7.sh: New file.
34560
34561 2009-08-12  Bruno Haible  <bruno@clisp.org>
34562
34563         Ensure that getopt() gets declared by <unistd.h>.
34564         * lib/unistd.in.h: Conditionally include getopt.h.
34565         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
34566         Set GNULIB_UNISTD_H_GETOPT.
34567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34568         GNULIB_UNISTD_H_GETOPT.
34569         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
34570
34571 2009-08-12  Bruno Haible  <bruno@clisp.org>
34572
34573         Clarify logic.
34574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
34575         gl_replace_getopt instead of GETOPT_H.
34576
34577 2009-08-12  Bruno Haible  <bruno@clisp.org>
34578
34579         * m4/getopt.m4: Add comments.
34580
34581 2009-08-12  Bruno Haible  <bruno@clisp.org>
34582
34583         Disable multithread support by default on Cygwin 1.5.x.
34584         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
34585         set gl_use_threads=no if not specified otherwise.
34586
34587 2009-08-11  Bruno Haible  <bruno@clisp.org>
34588
34589         Avoid compilation error on NetBSD 5.0.
34590         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
34591         * tests/test-stdio.c: Likewise.
34592         * tests/test-stdlib.c: Likewise.
34593         * tests/test-string.c: Likewise.
34594         * tests/test-unistd.c: Likewise.
34595         Reported by Greg Troxel <gdt@ir.bbn.com>
34596         at <https://savannah.gnu.org/support/?106973>.
34597
34598 2009-08-11  Bruno Haible  <bruno@clisp.org>
34599
34600         * modules/dup2-tests (Depends-on): Remove close.
34601
34602         Undo 2009-07-19 commit.
34603         * modules/acl-tests (Depends-on): Remove close.
34604         * modules/binary-io-tests (Depends-on): Likewise.
34605         * modules/closein-tests (Depends-on): Likewise.
34606         * modules/flock-tests (Depends-on): Likewise.
34607         * modules/fsync-tests (Depends-on): Likewise.
34608         * modules/lseek-tests (Depends-on): Likewise.
34609         * modules/pipe-tests (Depends-on): Likewise.
34610         * modules/posix_spawn-tests (Depends-on): Likewise.
34611         * modules/posix_spawnp-tests (Depends-on): Likewise.
34612         * modules/stat-time-tests (Depends-on): Likewise.
34613         * modules/yesno-tests (Depends-on): Likewise.
34614
34615 2009-08-10  Bruno Haible  <bruno@clisp.org>
34616
34617         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
34618
34619 2009-08-10  Bruno Haible  <bruno@clisp.org>
34620
34621         Fix a gcc warning.
34622         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
34623
34624 2009-08-10  Bruno Haible  <bruno@clisp.org>
34625
34626         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
34627         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
34628         not only the first time.
34629         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
34630         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
34631         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
34632         is 1, not only the the first time.
34633
34634 2009-08-10  Bruno Haible  <bruno@clisp.org>
34635
34636         Make it possible to use module 'gethostname' without module 'close'.
34637         * lib/unistd.in.h (close): Evoke a link error only if
34638         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34640         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34641         * modules/unistd (Makefile.am): Substitute
34642         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34643         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
34644         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34645         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34646         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34647         * modules/sys_ioctl (Makefile.am): Substitute
34648         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34649         * modules/socket (configure.ac): On native Windows, set
34650         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
34651         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34652         Reported by Sam Steingold <sds@gnu.org>.
34653
34654 2009-08-10  Bruno Haible  <bruno@clisp.org>
34655
34656         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
34657         * modules/ioctl (configure.ac): Likewise.
34658
34659 2009-08-10  Bruno Haible  <bruno@clisp.org>
34660
34661         Avoid collision between gnulib wrapper and libintl wrapper.
34662         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
34663         already defined in intl/printf.c.
34664         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
34665         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
34666
34667 2009-08-09  Bruno Haible  <bruno@clisp.org>
34668
34669         Make <sys/select.h> really self-contained, also on Solaris 10.
34670         * lib/sys_select.in.h: Include <string.h>.
34671         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
34672         Solaris 10 problem.
34673         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
34674         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
34675         Reported by Jim Meyering.
34676
34677 2009-08-09  Bruno Haible  <bruno@clisp.org>
34678
34679         Avoid warnings from 'aclocal' that are due to a use of macro name
34680         AM_XGETTEXT_OPTION that is not defined in automake.
34681         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
34682         automake.
34683         * modules/error (configure.ac): Likewise.
34684         * modules/propername (configure.ac): Likewise.
34685         * modules/vasprintf (configure.ac): Likewise.
34686         * modules/verror (configure.ac): Likewise.
34687         * modules/xprintf (configure.ac): Likewise.
34688         * modules/xvasprintf (configure.ac): Likewise.
34689
34690 2009-08-08  Bruno Haible  <bruno@clisp.org>
34691
34692         Avoid compilation error in C++ mode.
34693         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
34694         Reported by Sam Steingold <sds@gnu.org>.
34695
34696 2009-08-08  Bruno Haible  <bruno@clisp.org>
34697
34698         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
34699         for the various Unix platforms.
34700         * doc/posix-headers/limits.texi: Update platforms list regarding
34701         HOST_NAME_MAX.
34702         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34703
34704 2009-08-07  Jim Meyering  <meyering@redhat.com>
34705
34706         selinux-at: fix typo in a comment
34707         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
34708         Spotted by Paolo Bonzini.
34709
34710         selinux-at: remove redundant m4 code, add documentation
34711         * modules/selinux-at (configure.ac): Remove redundant code.
34712         LIB_SELINUX is already set via the dependent module, selinux-h.
34713         (Include): Add quotes around selinux-at.h.
34714         * lib/selinux-at.h: Add documentation.
34715         Reported by Bruno Haible in
34716         http://marc.info/?l=gnulib-bug&m=124958988300749
34717
34718 2009-08-07  Bruno Haible  <bruno@clisp.org>
34719
34720         Avoid link error on MacOS X 10.3 and 10.4.
34721         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
34722         on non-ELF systems.
34723         * lib/argp-pv.c (argp_program_version): Likewise.
34724         Reported by Simon Josefsson.
34725
34726 2009-08-07  Simon Josefsson  <simon@josefsson.org>
34727
34728         * tests/test-version-etc.sh: Use $EXEEXT.
34729
34730 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
34731
34732         update-copyright: update documentation to point to maint.mk
34733         * build-aux/update-copyright: Here.
34734
34735 2009-08-06  Jim Meyering  <meyering@redhat.com>
34736
34737         maint.mk: support update-copyright-local
34738         * top/maint.mk (update-copyright-local): Define place-holder.
34739         (update-copyright): Depend on $(update-copyright-local).
34740
34741 2009-08-06  Jim Meyering  <meyering@redhat.com>
34742
34743         selinux-at: new module
34744         Initially written for coreutils, this module will soon be
34745         used by findutils, too.
34746         * MODULES.html.sh [Misc]: Add selinux-at.
34747         * lib/selinux-at.h: New file, from coreutils.
34748         * lib/selinux-at.c: Likewise.
34749         * modules/selinux-at: Likewise.
34750         (License): Change from LGPL to GPL, since it depends
34751         on the GPL'd openat module.
34752
34753         doc: update README
34754         * README: Remove references to cogito.
34755         Remove cvs-repo-updating instructions from 2007.
34756         Don't imply that CVS is better if you have limited disk space.
34757
34758 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34759
34760         update-copyright: support C-style comments
34761         * build-aux/update-copyright: Implement and document.
34762         * tests/test-update-copyright.sh: Test.
34763
34764 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34765
34766         update-copyright: support omitted "(C)"
34767         * build-aux/update-copyright: Implement and document.  Also,
34768         allow variable whitespace before "(C)".
34769         * tests/test-update-copyright.sh: Test.
34770
34771 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34772
34773         update-copyright: don't trip on non-FSF copyright statements
34774         * build-aux/update-copyright: Fix so that the first correctly
34775         formatted FSF copyright statement is recognized no matter what
34776         appears before it.  Update documentation.
34777         * tests/test-update-copyright.sh: Test that.
34778
34779 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34780
34781         update-copyright: clean up code a little
34782         * build-aux/update-copyright: Append "_re" to the name of any
34783         variable holding a regular expression.
34784         Replace "old" and "new" with "stmt" in variable names.
34785         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
34786         handled correctly.
34787         Format code more consistently.
34788
34789 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34790
34791         update-copyright-tests: improve portability
34792         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
34793         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
34794
34795 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34796
34797         update-copyright: support @copyright{} and &copy;
34798         * build-aux/update-copyright: Implement and document.
34799         * tests/test-update-copyright.sh: Test.
34800
34801 2009-08-04  Jim Meyering  <meyering@redhat.com>
34802
34803         update-copyright-tests: correctly test EOL=\r\n handling
34804         * tests/test-update-copyright.sh: Put \r at the end of some lines
34805         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34806
34807         maint.mk: make update-copyright exclusion list more configurable
34808         * top/maint.mk (update-copyright): Default to excluding COPYING,
34809         but allow an override, in case someone does want to update that file.
34810
34811         maint.mk: don't update copyright date in COPYING
34812         * top/maint.mk (update-copyright): Exclude COPYING.
34813
34814         maint.mk: add a copyright-updating rule
34815         * top/maint.mk (update-copyright): New rule.
34816         Derived from coreutils/Makefile.am.
34817
34818         update-copyright: rename some variables
34819         * build-aux/update-copyright: Rename a few variables for clarity.
34820         Tweak syntax.  List Joel E. Denny as coauthor.
34821
34822 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34823
34824         update-copyright: fix bug for 2-digit last year and add tests
34825         * build-aux/update-copyright: Fix bug.
34826         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
34827         specified.
34828         * modules/update-copyright-tests: New
34829         * tests/test-update-copyright.sh: New.
34830
34831 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34832
34833         update-copyright: handle leading tabs in line prefix
34834         * build-aux/update-copyright: Count leading tabs as 8 spaces
34835         when computing margin.  This helps with the formatting of
34836         ChangeLogs, for example.
34837         Fix documentation a little.
34838
34839 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34840
34841         update-copyright: support EOL=\r\n
34842         * build-aux/update-copyright: Implement that.
34843
34844 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34845
34846         update-copyright: automatically format copyright statements
34847         * build-aux/update-copyright: Implement that.
34848         Also, be a little more predictable and safer by always failing
34849         when the full copyright format is not perfectly recognized as an
34850         unbroken whole.  Discussed at
34851         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
34852         Rewrite documentation.
34853
34854 2009-08-03  Bruno Haible  <bruno@clisp.org>
34855
34856         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
34857
34858 2009-08-02  Bruno Haible  <bruno@clisp.org>
34859
34860         Tests for module 'uname'.
34861         * modules/uname-tests: New file.
34862         * tests/test-uname.c: New file.
34863
34864         New module 'uname'.
34865         * lib/uname.c: New file.
34866         * m4/uname.m4: New file.
34867         * modules/uname: New file.
34868         * doc/posix-functions/uname.texi: Mention the new module.
34869
34870 2009-08-02  Bruno Haible  <bruno@clisp.org>
34871
34872         Tests for module 'sys_utsname'.
34873         * modules/sys_utsname-tests: New file.
34874         * tests/test-sys_utsname.c: New file.
34875
34876         New module 'sys_utsname'.
34877         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
34878         * m4/sys_utsname_h.m4: New file.
34879         * modules/sys_utsname: New file.
34880         * doc/posix-headers/sys_utsname.texi: Mention the new module.
34881
34882 2009-08-02  Bruno Haible  <bruno@clisp.org>
34883
34884         Implicitly initialize the sockets library.
34885         * lib/gethostname.c: Include sockets.h.
34886         (rpl_gethostname): Invoke gl_sockets_startup.
34887         * lib/socket.c: Include sockets.h.
34888         (rpl_socket): Invoke gl_sockets_startup.
34889         * modules/gethostname (Depends-on): Add sockets.
34890         * modules/socket (Depends-on): Likewise.
34891         * tests/test-poll.c: Don't include sockets.h.
34892         (main): Don't invoke gl_sockets_startup.
34893         * tests/test-select.c: Don't include sockets.h.
34894         (main): Don't invoke gl_sockets_startup.
34895
34896 2009-08-02  Bruno Haible  <bruno@clisp.org>
34897
34898         Allow multiple calls to gl_sockets_startup.
34899         * lib/sockets.c (initialized_sockets_version): New variable.
34900         (gl_sockets_startup): Do nothing if already called for this or a higher
34901         version.
34902         (gl_sockets_cleanup): Reset initialized_sockets_version.
34903
34904 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34905
34906         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34907         different project/version.
34908
34909 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34910             Bruno Haible  <bruno@clisp.org>
34911
34912         Tests for module 'pipe-filter-gi'.
34913         * modules/pipe-filter-gi-tests: New file.
34914         * tests/test-pipe-filter-gi1.sh: New file.
34915         * tests/test-pipe-filter-gi1.c: New file.
34916         * tests/test-pipe-filter-gi2.sh: New file.
34917         * tests/test-pipe-filter-gi2-main.c: New file.
34918         * tests/test-pipe-filter-gi2-child.c: New file.
34919
34920         New module 'pipe-filter-gi'.
34921         * lib/pipe-filter-gi.c: New file.
34922         * modules/pipe-filter-gi: New file.
34923
34924 2009-08-02  Bruno Haible  <bruno@clisp.org>
34925             Paolo Bonzini  <bonzini@gnu.org>
34926
34927         Tests for module 'pipe-filter-ii'.
34928         * modules/pipe-filter-ii-tests: New file.
34929         * tests/test-pipe-filter-ii1.sh: New file.
34930         * tests/test-pipe-filter-ii1.c: New file.
34931         * tests/test-pipe-filter-ii2.sh: New file.
34932         * tests/test-pipe-filter-ii2-main.c: New file.
34933         * tests/test-pipe-filter-ii2-child.c: New file.
34934
34935         New module 'pipe-filter-ii'.
34936         * lib/pipe-filter.h: New file.
34937         * lib/pipe-filter-ii.c: New file.
34938         * lib/pipe-filter-aux.h: New file.
34939         * modules/pipe-filter-ii: New file.
34940
34941 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34942
34943         * lib/gc-libgcrypt.c: Change copyright to FSF.
34944         * lib/gc-gnulib.c: Likewise.
34945
34946 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34947
34948         * lib/gethostname.c: Include limits.h.
34949
34950 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34951             Bruno Haible  <bruno@clisp.org>
34952
34953         Ensure HOST_NAME_MAX as part of the gethostname module.
34954         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34955         define also HOST_NAME_MAX.
34956         * tests/test-gethostname.c: Include <limits.h>.
34957         (main): Check also HOST_NAME_MAX.
34958         * doc/posix-headers/limits.texi: Document the mingw problem.
34959
34960 2009-08-02  Bruno Haible  <bruno@clisp.org>
34961
34962         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34963         Add comments.
34964
34965 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34966
34967         * lib/gethostname.c: Add Windows wrapper.
34968         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34969         * modules/gethostname: Depend on sys_socket & errno, for also
34970         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34971         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34972
34973 2009-07-31  Jim Meyering  <meyering@redhat.com>
34974
34975         getloadavg: fix symbol name in comment
34976         * lib/getloadavg.c: Correct a typo I introduced when adding
34977         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34978         Matt Kraai spotted the problem.
34979
34980 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34981
34982         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34983         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34984         code also if ! defined N_NAME_POINTER.
34985         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34986         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34987         but the n_name member is a 12-byte array.
34988
34989 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34990
34991         update-copyright: generalize comment handling
34992         * build-aux/update-copyright: Handle copyright statements
34993         within more comment styles.
34994         Document usage.
34995         Report any file with an external copyright holder or parse failure.
34996
34997 2009-07-29  Jim Meyering  <meyering@redhat.com>
34998
34999         mktime: correct setting of REPLACE_MKTIME
35000         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
35001
35002         update-copyright: new module
35003         * modules/update-copyright: New file.
35004         * build-aux/update-copyright: New file.
35005         * MODULES.html.sh (maint+release support): Add update-copyright.
35006
35007 2009-07-27  Bruno Haible  <bruno@clisp.org>
35008
35009         Fix compilation error when <ctime> is used and mktime is replaced.
35010         * lib/time.in.h (mktime): New declaration.
35011         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
35012         REPLACE_MKTIME instead of defining mktime in config.h.
35013         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
35014         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
35015         Reported by Ross McFarland <rwmcfa1@neces.com>.
35016
35017 2009-07-27  Bruno Haible  <bruno@clisp.org>
35018
35019         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
35020         Reported by Matt Kraai <mkraai@beckman.com>.
35021
35022 2009-07-25  Jim Meyering  <meyering@redhat.com>
35023
35024         maint.mk: avoid warnings about missing files
35025         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
35026         diagnostic when .prev-version does not exist.
35027         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
35028         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
35029         nonexistent cfg.mk.
35030         Suggestions from Simon Josefsson.
35031
35032 2009-07-25  Bruno Haible  <bruno@clisp.org>
35033
35034         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
35035         defined as macros. Needed on QNX 6.4.1.
35036         Reported by Matt Kraai <mkraai@beckman.com>.
35037
35038 2009-07-23  Jim Meyering  <meyering@redhat.com>
35039
35040         maint.mk: invoke "make dist" with a working value of XZ_OPT
35041         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
35042
35043 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
35044
35045         Make fseeko.c compile on QNX.
35046         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
35047
35048 2009-07-22  Peter Simons  <simons@cryp.to>
35049
35050         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
35051         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
35052         * lib/md4.h: Likewise.
35053         * lib/md5.h: Likewise.
35054         * lib/sha1.h: Likewise.
35055         * lib/sha256.h: Likewise.
35056         * lib/sha512.h: Likewise.
35057
35058         tests-sha1: don't assign literal string to 'char *' variable
35059         * tests/test-sha1.c (main): Declare locals with "const" to match
35060         attributes of the right hand side.
35061
35062 2009-07-21  Eric Blake  <ebb9@byu.net>
35063
35064         dup2: fix more mingw problems
35065         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
35066         fd to itself.
35067         * doc/posix-functions/dup2.texi (dup2): Document the bug.
35068         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
35069         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
35070         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
35071         care of mingw bugs.
35072
35073 2009-07-21  Jim Meyering  <meyering@redhat.com>
35074
35075         vc-list-files: avoid failure when /bin/sh is dash
35076         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
35077         On some Debian based systems, /bin/sh is a symlink to dash, and running
35078         this command would omit the "/" following each 'tests' prefix:
35079           dash -x build-aux/vc-list-files -C . tests
35080         That is because bash and dash work differently:
35081           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
35082           bash ok
35083           dash odd
35084
35085 2009-07-21  Eric Blake  <ebb9@byu.net>
35086
35087         dup2-tests: test previous patch
35088         * modules/dup2-tests: New file.
35089         * tests/test-dup2.c: Likewise.
35090         * tests/test-open.c (main): Avoid unspecified behavior.
35091         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
35092         test.
35093
35094         dup2: work around mingw and cygwin 1.5 bug
35095         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
35096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35097         * modules/unistd (Makefile.am): Substitute it.
35098         * lib/unistd.in.h (dup2): Declare the replacement.
35099         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
35100         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
35101         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
35102         * modules/execute (Depends-on): Add dup2.
35103         * modules/fseterr (Depends-on): Likewise.
35104         * modules/pipe (Depends-on): Likewise.
35105         * modules/posix_spawn-internal (Depends-on): Likewise.
35106
35107 2009-07-21  Bruno Haible  <bruno@clisp.org>
35108
35109         * modules/.gitattributes: New file.
35110
35111 2009-07-20  Bruno Haible  <bruno@clisp.org>
35112
35113         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
35114         (main): Use it.
35115
35116 2009-07-20  Eric Blake  <ebb9@byu.net>
35117
35118         test-pipe: make a bit more robust.
35119         * tests/test-pipe.c (myerr): Allow error messages regardless of
35120         what we do to stderr.
35121         (test_pipe): Rearrange to avoid deadlock.
35122         (child_main): Try a larger read, to ensure we avoided deadlock.
35123         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
35124         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
35125         if misused.
35126
35127 2009-07-19  Jim Meyering  <meyering@redhat.com>
35128
35129         fts: avoid false-positive cycle-detection
35130         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
35131         for each new command line argument.
35132
35133 2009-07-19  Bruno Haible  <bruno@clisp.org>
35134
35135         Fix build error on mingw with the modules sys_select and unistd.
35136         * modules/acl-tests (Depends-on): Add close.
35137         * modules/binary-io-tests (Depends-on): Likewise.
35138         * modules/closein-tests (Depends-on): Likewise.
35139         * modules/flock-tests (Depends-on): Likewise.
35140         * modules/fsync-tests (Depends-on): Likewise.
35141         * modules/lseek-tests (Depends-on): Likewise.
35142         * modules/pipe-tests (Depends-on): Likewise.
35143         * modules/posix_spawn-tests (Depends-on): Likewise.
35144         * modules/posix_spawnp-tests (Depends-on): Likewise.
35145         * modules/stat-time-tests (Depends-on): Likewise.
35146         * modules/yesno-tests (Depends-on): Likewise.
35147
35148 2009-07-19  Bruno Haible  <bruno@clisp.org>
35149
35150         Unify conditionals.
35151         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
35152         macros, not at the compiler macros.
35153         * lib/pipe.c: Likewise.
35154         * lib/execute.c: Likewise.
35155         * lib/spawni.c: Likewise.
35156
35157 2009-07-19  Bruno Haible  <bruno@clisp.org>
35158
35159         Fix handling of closed stdin/stdout/stderr on mingw.
35160         * lib/w32spawn.h: Include unistd.h.
35161         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
35162         file descriptor with O_NOINHERIT flag.
35163         (fd_safer_noinherit): New function, based on fd-safer.c.
35164         (dup_safer_noinherit): New function, based on dup-safer.c.
35165         (undup_safer_noinherit): New function.
35166         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
35167         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
35168         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
35169         instead of fd_safer.
35170         * tests/test-pipe.c: Include <windows.h>.
35171         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
35172         result.
35173
35174         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
35175         from main.
35176         (test_pipe): Pass an extra argument for disambiguation.
35177         (main): Invoke parent_main or child_main.
35178
35179         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
35180         consistently.
35181
35182 2009-07-18  Eric Blake  <ebb9@byu.net>
35183
35184         test-pipe: fix mingw build
35185         * tests/test-pipe.c (main): Avoid fcntl on mingw.
35186
35187 2009-07-18  Bruno Haible  <bruno@clisp.org>
35188
35189         * modules/pipe-tests (Makefile.am): Fix typo.
35190
35191 2009-07-18  Eric Blake  <ebb9@byu.net>
35192
35193         error: fix mingw build
35194         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
35195         Reported by Bruno Haible.
35196
35197         error: avoid undefined use of stdout
35198         * lib/error.c (error, error_at_line): Check that fd 1 is open
35199         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
35200         is handling faults and the close_stdout module wants to report the
35201         detection of closed stdout as an error.
35202
35203 2009-07-17  Eric Blake  <ebb9@byu.net>
35204
35205         pipe: be robust in face of closed fds
35206         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
35207         should cause child to misbehave.
35208         * modules/pipe-tests: New module.
35209         * tests/test-pipe.c: New file.
35210         * tests/test-pipe.sh: New file.
35211         Reported by Akim Demaille.
35212
35213 2009-07-14  Bruno Haible  <bruno@clisp.org>
35214
35215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
35216         Reported by anonymous kc.
35217
35218 2009-07-07  Jim Meyering  <meyering@redhat.com>
35219
35220         maint.mk: don't look for translatable strings in *.m4 or *.mk
35221         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
35222         when searching for translatable strings.
35223
35224 2009-07-05  Jim Meyering  <meyering@redhat.com>
35225
35226         remove superfluous parentheses in STREQ definition
35227         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
35228         * lib/getugroups.c (STREQ): Likewise.
35229         * lib/fnmatch.c (STREQ): Likewise.
35230         Spotted by Bruno Haible.
35231
35232 2009-07-04  Jim Meyering  <meyering@redhat.com>
35233
35234         argv-iter: new module
35235         * MODULES.html.sh: Add argv-iter.
35236         * lib/argv-iter.c, lib/argv-iter.h: New files.
35237         * modules/argv-iter: New file.
35238         * modules/argv-iter-tests: New file.
35239         * tests/test-argv-iter.c: Test it.
35240
35241 2009-07-04  Bruno Haible  <bruno@clisp.org>
35242
35243         Fix assertion.
35244         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
35245         contains more exact copies of a given entry than file2, leave the extra
35246         copies unpaired rather than aborting.
35247         Reported by Eric Blake.
35248
35249 2009-07-02  Bruno Haible  <bruno@clisp.org>
35250
35251         Speedup git-merge-changelog for git cherry-pick.
35252         * lib/git-merge-changelog.c (struct entries_mapping): New type.
35253         (entries_mapping_get): New function, extracted from compute_mapping.
35254         (entries_mapping_reverse_get): New function.
35255         (compute_mapping): Add a 'full' argument. Return the result in a
35256         'struct entries_mapping'.
35257         (main): Update. Access the mappings through entries_mapping_get.
35258         Reported by Eric Blake.
35259
35260 2009-07-02  Bruno Haible  <bruno@clisp.org>
35261
35262         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
35263         best_i.
35264
35265 2009-07-02  Bruno Haible  <bruno@clisp.org>
35266
35267         Speed up approximate search for matching ChangeLog entries.
35268         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
35269         argument. Call fstrcmp_bounded instead of fstrcmp.
35270         (compute_mapping, try_split_merged_entry, main): Update callers.
35271
35272 2009-07-02  Bruno Haible  <bruno@clisp.org>
35273
35274         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
35275
35276 2009-06-30  Bruno Haible  <bruno@clisp.org>
35277
35278         Reduce the number of uc_is_cased calls.
35279         * lib/unicase.h (casing_suffix_context_t): Add
35280         'first_char_except_ignorable' field.
35281         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
35282         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
35283         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
35284         Update initializer.
35285         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
35286         case-ignorable characters.
35287         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
35288         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
35289         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
35290         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
35291         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
35292
35293 2009-06-30  Bruno Haible  <bruno@clisp.org>
35294
35295         Tests for module 'unicase/ignorable'.
35296         * modules/unicase/ignorable-tests: New file.
35297         * tests/unicase/test-ignorable.c: New file, generated by
35298         gen-uni-tables.
35299
35300         Tests for module 'unicase/cased'.
35301         * modules/unicase/cased-tests: New file.
35302         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
35303         * tests/unicase/test-predicate-part1.h: New file, derived from
35304         tests/unictype/test-predicate-part1.h.
35305         * tests/unicase/test-predicate-part2.h: New file, same as
35306         tests/unictype/test-predicate-part2.h.
35307
35308         Fix evaluation of "Before C" condition of FINAL_SIGMA.
35309         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
35310         (output_casing_properties): New function.
35311         (main): Call it.
35312         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
35313         * lib/unicase/cased.c: Include unictype/bitmap.h.
35314         (uc_is_cased): Define through a bitmap lookup.
35315         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
35316         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
35317         (uc_is_case_ignorable): Define through a bitmap lookup.
35318         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
35319         lib/unictype/bitmap.h.
35320         (Depends-on): Add inline. Clean up.
35321         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
35322         lib/unictype/bitmap.h.
35323         (Depends-on): Add inline. Clean up.
35324         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
35325         recognition.
35326         * tests/unicase/test-u16-tolower.c (main): Likewise.
35327         * tests/unicase/test-u32-tolower.c (main): Likewise.
35328
35329 2009-06-30  Bruno Haible  <bruno@clisp.org>
35330
35331         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
35332         * lib/unicase/u16-casemap.c: Likewise.
35333         * lib/unicase/u32-casemap.c: Likewise.
35334
35335 2009-06-29  Bruno Haible  <bruno@clisp.org>
35336
35337         Define u32_casefold as a wrapper around u32_ct_casefold.
35338         * lib/unicase/u32-casefold.c: Update.
35339         * modules/unicase/u32-casefold (Depends-on): Add
35340         unicase/u32-ct-casefold, unicase/empty-prefix-context,
35341         unicase/empty-suffix-context. Clean up.
35342
35343         Define u16_casefold as a wrapper around u16_ct_casefold.
35344         * lib/unicase/u16-casefold.c: Update.
35345         * modules/unicase/u16-casefold (Depends-on): Add
35346         unicase/u16-ct-casefold, unicase/empty-prefix-context,
35347         unicase/empty-suffix-context. Clean up.
35348
35349         Define u8_casefold as a wrapper around u8_ct_casefold.
35350         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
35351         * lib/unicase/u8-casefold.c: Update.
35352         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
35353         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35354
35355         Define u32_totitle as a wrapper around u32_ct_totitle.
35356         * lib/unicase/u32-totitle.c: Update.
35357         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
35358         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35359
35360         Define u16_totitle as a wrapper around u16_ct_totitle.
35361         * lib/unicase/u16-totitle.c: Update.
35362         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
35363         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35364
35365         Define u8_totitle as a wrapper around u8_ct_totitle.
35366         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
35367         functions.
35368         (FUNC): Delegate to U_CT_TOTITLE.
35369         * lib/unicase/u8-totitle.c: Update.
35370         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
35371         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35372
35373         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
35374         invocation.
35375         * modules/unicase/u32-tolower (Depends-on): Add
35376         unicase/empty-prefix-context, unicase/empty-suffix-context.
35377
35378         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
35379         invocation.
35380         * modules/unicase/u16-tolower (Depends-on): Add
35381         unicase/empty-prefix-context, unicase/empty-suffix-context.
35382
35383         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
35384         * modules/unicase/u8-tolower (Depends-on): Add
35385         unicase/empty-prefix-context, unicase/empty-suffix-context.
35386
35387         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
35388         invocation.
35389         * modules/unicase/u32-toupper (Depends-on): Add
35390         unicase/empty-prefix-context, unicase/empty-suffix-context.
35391
35392         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
35393         invocation.
35394         * modules/unicase/u16-toupper (Depends-on): Add
35395         unicase/empty-prefix-context, unicase/empty-suffix-context.
35396
35397         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
35398         * modules/unicase/u8-toupper (Depends-on): Add
35399         unicase/empty-prefix-context, unicase/empty-suffix-context.
35400
35401         New module 'unicase/u32-ct-casefold'.
35402         * lib/unicase/u32-ct-casefold.c: New file.
35403         * modules/unicase/u32-ct-casefold: New file.
35404
35405         New module 'unicase/u16-ct-casefold'.
35406         * lib/unicase/u16-ct-casefold.c: New file.
35407         * modules/unicase/u16-ct-casefold: New file.
35408
35409         New module 'unicase/u8-ct-casefold'.
35410         * lib/unicase/u8-ct-casefold.c: New file.
35411         * lib/unicase/u-ct-casefold.h: New file, derived from
35412         lib/unicase/u-casefold.h.
35413         * modules/unicase/u8-ct-casefold: New file.
35414
35415         New module 'unicase/u32-ct-totitle'.
35416         * lib/unicase/u32-ct-totitle.c: New file.
35417         * modules/unicase/u32-ct-totitle: New file.
35418
35419         New module 'unicase/u16-ct-totitle'.
35420         * lib/unicase/u16-ct-totitle.c: New file.
35421         * modules/unicase/u16-ct-totitle: New file.
35422
35423         New module 'unicase/u8-ct-totitle'.
35424         * lib/unicase/u8-ct-totitle.c: New file.
35425         * lib/unicase/u-ct-totitle.h: New file, derived from
35426         lib/unicase/u-totitle.h.
35427         * modules/unicase/u8-ct-totitle: New file.
35428
35429         New module 'unicase/u32-ct-tolower'.
35430         * lib/unicase/u32-ct-tolower.c: New file.
35431         * modules/unicase/u32-ct-tolower: New file.
35432
35433         New module 'unicase/u16-ct-tolower'.
35434         * lib/unicase/u16-ct-tolower.c: New file.
35435         * modules/unicase/u16-ct-tolower: New file.
35436
35437         New module 'unicase/u8-ct-tolower'.
35438         * lib/unicase/u8-ct-tolower.c: New file.
35439         * modules/unicase/u8-ct-tolower: New file.
35440
35441         New module 'unicase/u32-ct-toupper'.
35442         * lib/unicase/u32-ct-toupper.c: New file.
35443         * modules/unicase/u32-ct-toupper: New file.
35444
35445         New module 'unicase/u16-ct-toupper'.
35446         * lib/unicase/u16-ct-toupper.c: New file.
35447         * modules/unicase/u16-ct-toupper: New file.
35448
35449         New module 'unicase/u8-ct-toupper'.
35450         * lib/unicase/u8-ct-toupper.c: New file.
35451         * modules/unicase/u8-ct-toupper: New file.
35452
35453         Add context arguments to u*_casemap functions.
35454         * lib/unicase/unicasemap.h: Include unicase.h.
35455         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
35456         suffix_context arguments.
35457         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
35458         functions.
35459         (FUNC): Add prefix_context and suffix_context arguments. Use
35460         uc_is_cased and uc_is_case_ignorable.
35461         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
35462         * lib/unicase/u16-casemap.c: Likewise.
35463         * lib/unicase/u32-casemap.c: Likewise.
35464         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
35465         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35466         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
35467         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35468         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
35469         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35470
35471         New module 'unicase/u32-suffix-context'.
35472         * lib/unicase/u32-suffix-context.c: New file.
35473         * modules/unicase/u32-suffix-context: New file.
35474
35475         New module 'unicase/u16-suffix-context'.
35476         * lib/unicase/u16-suffix-context.c: New file.
35477         * modules/unicase/u16-suffix-context: New file.
35478
35479         New module 'unicase/u8-suffix-context'.
35480         * lib/unicase/u8-suffix-context.c: New file.
35481         * lib/unicase/u-suffix-context.h: New file.
35482         * modules/unicase/u8-suffix-context: New file.
35483
35484         New module 'unicase/empty-suffix-context'.
35485         * lib/unicase/empty-suffix-context.c: New file.
35486         * modules/unicase/empty-suffix-context: New file.
35487
35488         New module 'unicase/u32-prefix-context'.
35489         * lib/unicase/u32-prefix-context.c: New file.
35490         * modules/unicase/u32-prefix-context: New file.
35491
35492         New module 'unicase/u16-prefix-context'.
35493         * lib/unicase/u16-prefix-context.c: New file.
35494         * modules/unicase/u16-prefix-context: New file.
35495
35496         New module 'unicase/u8-prefix-context'.
35497         * lib/unicase/u8-prefix-context.c: New file.
35498         * lib/unicase/u-prefix-context.h: New file.
35499         * lib/unicase/context.h: New file.
35500         * modules/unicase/u8-prefix-context: New file.
35501
35502         New module 'unicase/empty-prefix-context'.
35503         * lib/unicase/empty-prefix-context.c: New file.
35504         * modules/unicase/empty-prefix-context: New file.
35505
35506         New module 'unicase/ignorable'.
35507         * lib/unicase/ignorable.c: New file.
35508         * modules/unicase/ignorable: New file.
35509
35510         New module 'unicase/cased'.
35511         * lib/unicase/caseprop.h: New file.
35512         * lib/unicase/cased.c: New file.
35513         * modules/unicase/cased: New file.
35514
35515         New functions for case mapping of substrings.
35516         * lib/unicase.h (casing_prefix_context_t): New type.
35517         (unicase_empty_prefix_context): New variable.
35518         (u8_casing_prefix_context, u16_casing_prefix_context,
35519         u32_casing_prefix_context, u8_casing_prefixes_context,
35520         u16_casing_prefixes_context, u32_casing_prefixes_context): New
35521         declarations.
35522         (casing_suffix_context_t): New type.
35523         (unicase_empty_suffix_context): New variable.
35524         (u8_casing_suffix_context, u16_casing_suffix_context,
35525         u32_casing_suffix_context, u8_casing_suffixes_context,
35526         u16_casing_suffixes_context, u32_casing_suffixes_context,
35527         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
35528         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
35529         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
35530         declarations.
35531
35532 2009-06-28  Jim Meyering  <meyering@redhat.com>
35533
35534         boostrap: indent only with spaces
35535         * build-aux/bootstrap: Indent only with spaces, never TABs.
35536
35537         bootstrap: split long lines
35538         * build-aux/bootstrap: Keep line length < 80.
35539
35540         bootstrap: sync from coreutils
35541         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
35542         just as autoreconf does.  Verify a list of prerequisite
35543         package-name,version-number pairs if defined in bootstrap.conf.
35544         Refer to README-prereq, if prerequisites are not satisfied.
35545
35546 2009-06-27  Eric Blake  <ebb9@byu.net>
35547
35548         tests: add test for bogus NULL definition
35549         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
35550         * tests/test-stdlib.c: Likewise.
35551         * tests/test-string.c: Likewise.
35552         * tests/test-locale.c: Likewise.
35553         * tests/test-unistd.c: Likewise.
35554         * modules/stdio-tests (Depends-on): Add verify.
35555         * modules/stdlib-tests (Depends-on): Likewise.
35556         * modules/string-tests (Depends-on): Likewise.
35557         * modules/locale-tests (Depends-on): Likewise.
35558         * modules/unistd-tests (Depends-on): Likewise.
35559
35560 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
35561
35562         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
35563         self-explaining comment.
35564         * m4/selinux-selinux-h: Update serial.
35565         (gl_LIBSELINUX): New macro, adding a warning for missing development
35566         packages to code extracted from...
35567         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
35568         Add warning for missing development packages here, too.
35569
35570 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
35571
35572         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
35573
35574 2009-06-25  Eric Blake  <ebb9@byu.net>
35575
35576         version-etc: fix regression
35577         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
35578         gcc.
35579         (version_etc): Use it, to catch bugs with trailing NULL.
35580         * lib/version-etc.c (version_etc_arn): Delete unused argument.
35581         (version_etc_va): Fix logic bug.
35582         * modules/version-etc-tests: Add test.
35583         * tests/test-version-etc.c: New file.
35584         * tests/test-version-etc.sh: Likewise.
35585
35586 2009-06-25  Sam Steingold  <sds@gnu.org>
35587
35588         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
35589         mbtowc declaration.
35590
35591 2009-06-25  Eric Blake  <ebb9@byu.net>
35592
35593         fpurge: migrate into <stdio.h>
35594         * lib/fpurge.h: Delete...
35595         * lib/stdio.in.h (fpurge): ...and declare here, instead.
35596         * lib/fpurge.c (fpurge): Change declaring header.
35597         * modules/fpurge (Files): Drop deleted file.
35598         (Depends-on): Add stdio.
35599         (configure.ac): Set witness.
35600         * modules/stdio (Makefile.am): Support fpurge macros.
35601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35602         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
35603         * lib/fflush.c: Update client.
35604         * tests/test-fpurge.c: Likewise.
35605         * NEWS: Mention the change.
35606
35607 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35608
35609         * lib/argp-version-etc.c (program_authors): Add const
35610         qualifier.
35611         * lib/version-etc.c: Fix typos in the comments.
35612         * modules/argp-version-etc: Depends on version-etc.
35613
35614 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35615
35616         argp-version-etc: new module.
35617
35618         * lib/argp-version-etc.c: New file.
35619         * lib/argp-version-etc.h: New file.
35620         * modules/argp-version-etc: New file.
35621         * modules/argp-version-etc-tests: New file.
35622         * tests/test-argp-version-etc.c: New test.
35623         * tests/test-argp-version-etc-1.sh: New test.
35624
35625 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35626
35627         Provide additional interfaces and documentation for version-etc
35628         module.
35629
35630         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
35631         interfaces.
35632         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
35633         prototypes.
35634
35635 2009-06-24  Bruno Haible  <bruno@clisp.org>
35636
35637         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
35638         HAVE_LIB${NAME} macro.
35639         Reported by Sam Steingold <sds@gnu.org>.
35640
35641 2009-06-23  Simon Josefsson  <simon@josefsson.org>
35642
35643         * modules/hash-tests (test_hash_LDADD): Link to libintl when
35644         needed.
35645
35646 2009-06-21  Bruno Haible  <bruno@clisp.org>
35647
35648         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
35649         work.
35650         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
35651         together with LIB${NAME}, LTLIB${NAME}.
35652         Reported by Sam Steingold <sds@gnu.org>.
35653
35654 2009-06-20  Jim Meyering  <meyering@redhat.com>
35655
35656         tests: make sc_require_test_exit_idiom more generic
35657         * top/maint.mk (Exit_witness_file): New overridable variable.
35658         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
35659         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
35660
35661 2009-06-19  Jim Meyering  <meyering@redhat.com>
35662
35663         hash: reverse order of src/dst parameters in an internal interface
35664         * lib/hash.c (transfer_entries): Reverse order of parameters to
35665         put DST before SRC.  Adjust callers.
35666
35667         tests: test-hash: avoid wholesale duplication
35668         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
35669         Instead, use a loop and add a single conditional.
35670
35671         tests: test-hash: allow seed selection via a command line argument
35672         * tests/test-hash.c (get_seed): New function.
35673         (main): Use it.
35674
35675 2009-06-19  Eric Blake  <ebb9@byu.net>
35676
35677         hash: avoid memory leak on allocation failure
35678         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
35679         failure.  Factor repeated algorithm...
35680         (transfer_entries): ...into new helper routine.
35681         (hash_delete): React to hash_rehash return value.
35682
35683         hash: reduce memory pressure in hash_rehash no-op case
35684         * lib/hash.c (next_prime): Avoid overflow.
35685         (hash_initialize): Factor bucket size computation...
35686         (compute_bucket_size): ...into new helper function.
35687         (hash_rehash): Use new function and open coding to reduce memory
35688         pressure, and avoid a memory leak in USE_OBSTACK code.
35689         Reported by Jim Meyering.
35690
35691 2009-06-18  Eric Blake  <ebb9@byu.net>
35692
35693         hash: make rotation more obvious
35694         * modules/hash (Depends-on): Add bitrotate and stdint.
35695         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
35696         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
35697         (SIZE_MAX): Rely on headers for definition.
35698         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
35699         (raw_hasher): Use rotr_sz.
35700         Suggested by Jim Meyering.
35701
35702         hash: fix memory leak in last patch
35703         * lib/hash.c (hash_rehash): Avoid memory leak.
35704
35705         hash: avoid no-op rehashing
35706         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
35707
35708         hash: provide default callback functions
35709         * lib/hash.c (raw_hasher, raw_comparator): New functions.
35710         (hash_initialize): Use them as defaults.
35711         * tests/test-hash.c (main): Test this.
35712
35713         hash: minor optimization
35714         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
35715         when possible.
35716         (hash_initialize): Document this promise.
35717         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
35718         * tests/test-hash.c (hash_compare_strings): Test this.
35719
35720 2009-06-18  Bruno Haible  <bruno@clisp.org>
35721
35722         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
35723         going to be replaced anyway.
35724
35725 2009-06-18  Bruno Haible  <bruno@clisp.org>
35726
35727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
35728         in one place.
35729         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
35730         be replaced anyway.
35731
35732 2009-06-18  Eric Blake  <ebb9@byu.net>
35733
35734         hash: check for resize before insertion
35735         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
35736         threshold before insertion, so that a pathological hash_rehash
35737         that fills every bucket can still trigger another rehash.
35738
35739 2009-06-18  Jim Meyering  <meyering@redhat.com>
35740
35741         hash-tests: add a loop around the small tests
35742         * tests/test-hash.c (main): Repeat small tests with selected
35743         small initial table sizes.
35744
35745 2009-06-17  Eric Blake  <ebb9@byu.net>
35746
35747         hash: minor cleanups
35748         * lib/hash.h (hash_entry): Make opaque, by moving...
35749         * lib/hash.c (hash_entry): ...here.
35750         (hash_insert): Clarify restrictions on what can be inserted.
35751         (hash_get_next): Clarify when it is safe to remove an element
35752         during traversal.
35753         (check_tuning): Skip verification when tuning is known safe.
35754         (hash_initialize): Clarify restrictions on tuning.
35755
35756 2009-06-17  Jim Meyering  <jim@meyering.net>
35757         and Eric Blake  <ebb9@byu.net>
35758
35759         hash-tests: new module
35760         * modules/hash-tests: New file.
35761         * tests/test-hash.c: New file.
35762
35763 2009-06-17  Eric Blake  <ebb9@byu.net>
35764
35765         strstr-simple: document new module
35766         * MODULES.html.sh: Document new module.
35767
35768         strstr, strcasestr: replace on platforms with broken memchr
35769         * modules/strstr: Split into...
35770         * modules/strstr-simple: ...new module that does not care about
35771         performance, but does care about glibc bug.
35772         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
35773         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
35774         if platform memchr is broken, per Debian bug 521737.
35775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
35776         memchr.
35777         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
35778         * doc/posix-functions/strstr.texi (strstr): Document the fix.
35779         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35780         * modules/mountlist (Depends-on): Add strstr-simple.
35781         * modules/gen-uni-tables (Depends-on): Likewise.
35782         * modules/argz (Depends-on): Add strstr.
35783
35784 2009-06-17  Bruno Haible  <bruno@clisp.org>
35785
35786         * modules/posix_spawn-internal (Depends-on): Add errno.
35787
35788 2009-06-17  Bruno Haible  <bruno@clisp.org>
35789
35790         Define missing ESTALE on Interix 3.5.
35791         * lib/errno.in.h (ESTALE): Assign a value if missing.
35792         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
35793         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
35794         missing.
35795         * doc/posix-headers/errno.texi: Mention the Interix bug.
35796         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35797
35798 2009-06-15  Eric Blake  <ebb9@byu.net>
35799
35800         memchr, memchr2: add valgrind exception
35801         * lib/memchr.valgrind: New file.
35802         * lib/memchr2.valgrind: New file.
35803         * modules/memchr (Files): Distribute valgrind file.
35804         * modules/memchr2 (Files): Likewise.
35805
35806         docs: memchr is no longer obsolete
35807         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35808         * lib/string.in.h (memchr): Simplify logic.
35809
35810 2009-06-14  Jim Meyering  <meyering@redhat.com>
35811
35812         link-follow: fix the "checking..." message to not mention trailing slash
35813         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35814         never considered trailing slashes.
35815
35816 2009-06-14  Bruno Haible  <bruno@clisp.org>
35817
35818         * m4/memchr.m4: Mention also the bug on IA-64.
35819         * doc/posix-functions/memchr.texi: Likewise.
35820
35821 2009-06-12  Eric Blake  <ebb9@byu.net>
35822
35823         memchr: detect broken x86_64 and alpha implementations
35824         * modules/memchr-tests (Depends-on): Move mmap detection...
35825         * modules/memchr (Depends-on): ...here.
35826         (configure.ac): Set indicator.
35827         * lib/string.in.h (memchr): Declare replacement.
35828         * modules/string (Makefile.am): Trigger replacement.
35829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35830         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
35831         bugs.
35832         * doc/posix-functions/memchr.texi (memchr): Document the bug.
35833         * modules/getpagesize (License): Relax license.
35834
35835 2009-06-11  Bruno Haible  <bruno@clisp.org>
35836
35837         * lib/idpriv.h: Add more references.
35838
35839 2009-06-08  Bruno Haible  <bruno@clisp.org>
35840
35841         Tests for module 'idpriv-droptemp'.
35842         * modules/idpriv-droptemp-tests: New file.
35843         * tests/test-idpriv-droptemp.sh: New file.
35844         * tests/test-idpriv-droptemp.su.sh: New file.
35845         * tests/test-idpriv-droptemp.c: New file.
35846
35847         New module 'idpriv-droptemp'.
35848         * lib/idpriv-droptemp.c: New file.
35849         * modules/idpriv-droptemp: New file.
35850
35851 2009-06-08  Bruno Haible  <bruno@clisp.org>
35852
35853         Tests for module 'idpriv-drop'.
35854         * modules/idpriv-drop-tests: New file.
35855         * tests/test-idpriv-drop.sh: New file.
35856         * tests/test-idpriv-drop.su.sh: New file.
35857         * tests/test-idpriv-drop.c: New file.
35858
35859         New module 'idpriv-drop'.
35860         * lib/idpriv.h: New file.
35861         * lib-idpriv-drop.c: New file.
35862         * m4/idpriv.m4: New file.
35863         * modules/idpriv-drop: New file.
35864
35865 2009-06-08  Bruno Haible  <bruno@clisp.org>
35866
35867         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
35868         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35869         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35870         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35871         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35872         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35873         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35874
35875 2009-06-08  Eric Blake  <ebb9@byu.net>
35876
35877         test-strstr: use memory fence, when possible
35878         * tests/test-strstr.c (main): Use memory fence, in order to be
35879         more likely to trigger Debian bug 521737.
35880         * modules/strstr-tests (Files): Pull in additional files.
35881
35882         memchr: no longer obsolete, for wider field testing
35883         * modules/memchr (Status, Notice): Delete, this module is no
35884         longer obsolete.
35885         * modules/vasnprintf (Depends-on): Add memchr.
35886
35887 2009-06-07  Jim Meyering  <meyering@redhat.com>
35888
35889         hash: declare some functions with the warn_unused_result attribute
35890         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35891
35892 2009-06-07  Bruno Haible  <bruno@clisp.org>
35893
35894         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35895         Reported by Eric Blake.
35896
35897 2009-06-06  Eric Blake  <ebb9@byu.net>
35898
35899         test-alignof: fix typo with long double
35900         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35901         compiler error.
35902
35903 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35904
35905         Escape non-texinfo { and }s.
35906         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35907         markup error.
35908
35909 2009-06-04  Jim Meyering  <meyering@redhat.com>
35910
35911         gitlog-to-changelog: don't infloop on an empty commit log
35912         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35913         Reported by Boris Petersen <transacid@centerim.org>.
35914
35915 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35916
35917         version-etc: extend for packagers
35918         Add three new configure options, intended for packagers:
35919           --with-packager="packager name"
35920           --with-packager-version="packager-specific version"
35921           --with-packager-bug-reports="packager bug reporting"
35922         An example with coreutils:
35923           $ ./configure \
35924             --with-packager=Gentoo \
35925             --with-packager-bug-report=http://bugs.gentoo.org/ \
35926             --with-packager-version="patchset 1.6"
35927           $ ./src/ls --version | head -n2
35928           ls (GNU coreutils) 7.1-dirty
35929           Packaged by Gentoo (patchset 1.6)
35930         Note that the bug reporting info via --help doesn't show up because
35931         coreutils uses its own custom emit_bug_reporting_address() implementation
35932         in src/system.h.  If it didn't, it'd look like:
35933           $ ./src/ls --help | tail -n4
35934           Report bugs to <bug-coreutils@gnu.org>.
35935           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35936           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35937           General help using GNU software: <http://www.gnu.org/gethelp/>.
35938         * lib/version-etc.c: Print new information, if provided.
35939         * m4/version-etc.m4: New file.
35940         * modules/version-etc (Files): Add m4/version-etc.m4.
35941         (configure.ac): Add gl_VERSION_ETC.
35942
35943 2009-05-31  Bruno Haible  <bruno@clisp.org>
35944
35945         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35946         and 'int64_t'.
35947         * modules/alignof-tests (Dependencies): Add stdint.
35948         Reported by Eric Blake.
35949
35950 2009-05-31  Bruno Haible  <bruno@clisp.org>
35951
35952         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35953         restriction due to compiler bugs.
35954         Reported by Eric Blake.
35955
35956 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35957             Bruno Haible  <bruno@clisp.org>
35958
35959         Fix test-alignof failure.
35960         * lib/alignof.h (alignof_slot): New macro.
35961         (alignof_type): New macro, with the same semantics as the previous
35962         'alignof'.
35963         (alignof): Alias to alignof_slot.
35964         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35965         check that the results are usable as constant expressions.
35966
35967 2009-05-31  Bruno Haible  <bruno@clisp.org>
35968
35969         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35970         * tests/test-memchr.c (main): Check that memchr does not read past the
35971         first occurrence of the byte.
35972         * tests/test-strstr.c (main): Update comment.
35973         Suggested by Eric Blake.
35974
35975 2009-05-30  Bruno Haible  <bruno@clisp.org>
35976
35977         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35978         detail how to use dumpbin.
35979         Reported by David Byron <dbyron@dbyron.com>.
35980
35981 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35982
35983         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35984
35985 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35986
35987         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35988
35989 2009-05-28  Bruno Haible  <bruno@clisp.org>
35990
35991         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35992         build-aux/ files.
35993
35994 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35995
35996         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35997
35998 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35999
36000         * gnulib-tool (sed_transform_main_lib_file)
36001         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
36002         regexps.
36003
36004 2009-05-26  Simon Josefsson  <simon@josefsson.org>
36005
36006         * tests/test-strstr.c: Add another self-test.
36007         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
36008         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
36009
36010 2009-05-23  Bruno Haible  <bruno@clisp.org>
36011
36012         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
36013         change.
36014
36015 2009-05-21  Bruno Haible  <bruno@clisp.org>
36016
36017         Simplify use of mode_t varargs.
36018         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
36019         uses 'mode_t' or 'int'.
36020         * lib/openat.c (openat): Likewise.
36021         * lib/open-safer.c (open_safer): Likewise.
36022         * m4/mode_t.m4: New file.
36023         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
36024         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
36025         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
36026         * modules/open (Files): Add m4/mode_t.m4.
36027         * modules/openat (Files): Likewise.
36028         * modules/fcntl-safer (Files): Likewise.
36029         Suggested by Eric Blake.
36030
36031 2009-05-21  Pádraig Brady  <P@draigbrady.com>
36032
36033         * doc/glibc-functions/fallocate.texi: New file.
36034         * doc/gnulib.texi: Include it.
36035
36036 2009-05-21  Eric Blake  <ebb9@byu.net>
36037             Bruno Haible  <bruno@clisp.org>
36038
36039         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
36040         invocations.
36041         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36042
36043 2009-05-21  Eric Blake  <ebb9@byu.net>
36044             Bruno Haible  <bruno@clisp.org>
36045
36046         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
36047         include_next. Fix of 2008-11-20 commit.
36048         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
36049         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
36050         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
36051         NEXT_MATH_H.
36052         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
36053         instead of NEXT_MATH_H.
36054
36055 2009-05-21  Bruno Haible  <bruno@clisp.org>
36056
36057         Avoid redefinition warnings for SIZE_MAX.
36058         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
36059         Reported by Simon Josefsson.
36060
36061 2009-05-21  Bruno Haible  <bruno@clisp.org>
36062
36063         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
36064         AC_CACHE_VAL.
36065
36066 2009-05-20  Bruno Haible  <bruno@clisp.org>
36067
36068         Make zeroptr.h work on mingw.
36069         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
36070         mprotect.
36071         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
36072         * modules/memchr2-tests (configure.ac): Likewise.
36073         * modules/memcmp-tests (configure.ac): Likewise.
36074         * modules/memmem-tests (configure.ac): Likewise.
36075         * modules/memrchr-tests (configure.ac): Likewise.
36076         Reported by Simon Josefsson.
36077
36078 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36079
36080         * tests/test-glob.c: Include string.h for strcmp prototype.
36081
36082 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36083
36084         * modules/getdelim (Depends-on): Add explicit stdint, although it
36085         was implicitly already pulled in via realloc-posix.
36086         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
36087
36088 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36089
36090         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
36091         G. Christensen" <tgc@jupiterrise.com>.
36092         * m4/sys_socket_h.m4: Check for sa_family_t.
36093         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
36094         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
36095         * tests/test-sys_socket.c: Check that sa_family_t works.
36096
36097 2009-05-18  Eric Blake  <ebb9@byu.net>
36098
36099         maint.mk: allow gnulib_dir in VPATH build
36100         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
36101
36102 2009-05-15  Jim Meyering  <meyering@redhat.com>
36103
36104         maint.mk: Give gnulib_dir a default definition.
36105         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
36106         Thus, most packages no longer need to specify this variable in cfg.mk
36107
36108 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
36109
36110         rename.m4: fix typos that would make non-mingw cross-configure fail
36111         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
36112
36113 2009-05-13  Eric Blake  <ebb9@byu.net>
36114
36115         mmap-anon: avoid out-of-order autoconf expansion
36116         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
36117         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
36118         * modules/memchr-tests (Depends-on): Add extensions.
36119         * modules/memchr2-tests (Depends-on): Add extensions.
36120         * modules/memcmp-tests (Depends-on): Add extensions.
36121         * modules/memmem-tests (Depends-on): Add extensions.
36122         * modules/memrchr-tests (Depends-on): Add extensions.
36123
36124 2009-05-13  Bruno Haible  <bruno@clisp.org>
36125
36126         Make some tests ISO C 99 compliant.
36127         * tests/zerosize-ptr.h: New file.
36128         * tests/test-memchr.c: Include zerosize-ptr.h.
36129         (main): Use a zero-size object pointer instead of NULL.
36130         * tests/test-memchr2.c: Include zerosize-ptr.h.
36131         (main): Use a zero-size object pointer instead of NULL.
36132         * tests/test-memcmp.c: Include zerosize-ptr.h.
36133         (main): Use a zero-size object pointer instead of NULL.
36134         * tests/test-memmem.c: Include zerosize-ptr.h.
36135         (main): Use a zero-size object pointer instead of NULL.
36136         * tests/test-memrchr.c: Include zerosize-ptr.h.
36137         (main): Use a zero-size object pointer instead of NULL.
36138         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
36139         m4/mmap-anon.m4.
36140         (Depends-on): Add getpagesize.
36141         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36142         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
36143         m4/mmap-anon.m4.
36144         (Depends-on): Add getpagesize.
36145         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36146         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
36147         m4/mmap-anon.m4.
36148         (Depends-on): Add getpagesize.
36149         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36150         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
36151         m4/mmap-anon.m4.
36152         (Depends-on): Add getpagesize.
36153         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36154         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
36155         m4/mmap-anon.m4.
36156         (Depends-on): Add getpagesize.
36157         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36158
36159 2009-05-12  Bruno Haible  <bruno@clisp.org>
36160
36161         Tests for module 'alignof'.
36162         * modules/alignof-tests: New file.
36163         * tests/test-alignof.c: New file.
36164
36165 2009-05-12  Bruno Haible  <bruno@clisp.org>
36166
36167         Fix alignof macro.
36168         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
36169         vendor compilers that are always correct.
36170
36171 2009-05-12  Bruno Haible  <bruno@clisp.org>
36172
36173         Make the MAP_ANONYMOUS detection work on HP-UX 11.
36174         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
36175         not whether its fully works.
36176
36177 2009-05-12  Bruno Haible  <bruno@clisp.org>
36178
36179         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
36180
36181 2009-05-12  Jim Meyering  <meyering@redhat.com>
36182
36183         * top/maint.mk: Adjust backslash alignment.
36184
36185 2009-05-11  Simon Josefsson  <simon@josefsson.org>
36186
36187         * top/maint.mk: Make $(srcdir)/build-aux configurable.
36188
36189 2009-05-11  Eric Blake  <ebb9@byu.net>
36190
36191         argp: avoid undefined behavior
36192         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
36193         macros.
36194
36195 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36196
36197         * tests/test-vc-list-files-git.sh: Do git config of user.email and
36198         user.name to prevent git commit from complaining.
36199
36200 2009-05-10  Bruno Haible  <bruno@clisp.org>
36201
36202         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
36203         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
36204         it rewrites every file name only once.
36205         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
36206
36207 2009-05-08  Bruno Haible  <bruno@clisp.org>
36208
36209         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
36210         instead of 'max'.
36211
36212 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36213
36214         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
36215         sockaddr_storage test.
36216
36217 2009-05-07  Simon Josefsson  <simon@josefsson.org>
36218
36219         * modules/sys_socket (Makefile.am): Substitute
36220         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
36221         * m4/sys_socket_h.m4: Check for sockaddr_storage.
36222         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
36223         * tests/test-sys_socket.c: Check sockaddr_storage.
36224
36225 2009-05-08  Bruno Haible  <bruno@clisp.org>
36226
36227         New module 'alignof'.
36228         * lib/alignof.h: New file.
36229         * modules/alignof: New file.
36230
36231 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36232             Bruno Haible  <bruno@clisp.org>
36233
36234         Fix test-file-has-acl on FreeBSD.
36235         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
36236         mask is implicitly added.
36237         * tests/test-file-has-acl.c: Include <signal.h>.
36238         (main): Terminate the test after 5 seconds.
36239         * modules/acl-tests (configure.ac): Check for alarm function.
36240
36241 2009-05-04  Bruno Haible  <bruno@clisp.org>
36242
36243         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
36244         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
36245         * modules/errno (configure.ac): Drop AC_REQUIRE.
36246         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
36247         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
36248
36249 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36250
36251         * modules/glob-tests: New module.
36252         * tests/test-glob.c: Add.
36253
36254 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36255
36256         * modules/fnmatch-tests: New module.
36257         * tests/test-fnmatch.c: Add.
36258
36259 2009-05-04  Eric Blake  <ebb9@byu.net>
36260
36261         maint: make the new no-submodule-changes rule VPATH-safe
36262         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
36263
36264 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36265             Bruno Haible  <bruno@clisp.org>
36266
36267         acl: Fix infinite loop on FreeBSD.
36268         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
36269         of return value from acl_get_entry.
36270         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
36271         Likewise.
36272
36273 2009-05-03  Bruno Haible  <bruno@clisp.org>
36274
36275         * lib/acl-internal.h (acl_entries): Clarify return value.
36276         * lib/acl_entries.c (acl_entries): Likewise.
36277
36278 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36279
36280         Bug fix in acl module.
36281         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
36282
36283 2009-05-03  Bruno Haible  <bruno@clisp.org>
36284
36285         Create gperf-generated file in the source dir, not in the build dir.
36286         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
36287         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
36288         * modules/unicase/locale-language (unicase/locale-languages.h):
36289         Likewise.
36290         * modules/unicase/special-casing (unicase/special-casing-table.h):
36291         Likewise.
36292         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
36293         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
36294         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
36295         Reported by Ralf Wildenhues.
36296
36297 2009-05-03  Bruno Haible  <bruno@clisp.org>
36298
36299         * modules/fnmatch (Description, configure.ac): Taken from
36300         fnmatch-posix.
36301         * modules/fnmatch-posix: Turn into a symbolic reference to the
36302         'fnmatch' module, and deprecate.
36303         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
36304
36305 2009-05-03  Bruno Haible  <bruno@clisp.org>
36306
36307         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
36308         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
36309         Reported by Ralf Wildenhues.
36310
36311 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36312
36313         * m4/fnmatch.m4: Fix fnmatch re-define.
36314
36315 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36316
36317         priv-set: new module and tests; adapt write-any-file
36318         * lib/priv-set.c: New file.
36319         * lib/priv-set.h: New file.
36320         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
36321         * lib/write-any-file.c: Simplify by using priv-set module.
36322         * m4/priv-set.m4: New file.
36323         * modules/priv-set: New file.
36324         * modules/unlinkdir: Add dependency on priv-set module.
36325         * modules/write-any-file: Likewise.
36326
36327         Tests for module 'priv-set'.
36328         * modules/priv-set-tests: New file.
36329         * tests/test-priv-set.c: New file.
36330
36331 2009-05-03  Jim Meyering  <meyering@redhat.com>
36332             Bruno Haible  <bruno@clisp.org>
36333
36334         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
36335         use the converted UTF-8 variant of the name instead.
36336
36337 2009-05-03  Jim Meyering  <meyering@redhat.com>
36338
36339         tests: tighten some getdate tests
36340         * tests/test-getdate.c (main): Tighten tests: require equality,
36341         not just greater than.  Set TZ envvar to UTC0.
36342
36343 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
36344
36345         getdate: correctly interpret "next monday" when run on a Monday
36346         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
36347         that e.g., "next tues" (when run on a tuesday) results in a date
36348         that is one week in the future, and not today's date.
36349         I.e., add a week when the wday is the same as the current one.
36350         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
36351         and earlier by Martin Bernreuther and Jan Minář.
36352         * tests/test-getdate.c (main): Check that "next DAY" is always in
36353         the future and that "last DAY" is always in the past.
36354
36355 2009-05-02  Jim Meyering  <meyering@redhat.com>
36356
36357         build: ensure that a release build fails when a submodule is unclean
36358         * top/maint.mk (no-submodule-changes): New rule.
36359         (alpha beta major): Depend on it.
36360
36361 2009-05-02  Bruno Haible  <bruno@clisp.org>
36362
36363         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
36364         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
36365         shell variable gl_fnmatch_required to detect which variant is
36366         requested.
36367         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
36368         gl_FUNC_FNMATCH_POSIX.
36369         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
36370         exclude fnmatch-posix.
36371
36372 2009-05-02  Bruno Haible  <bruno@clisp.org>
36373
36374         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
36375         * modules/mbsrtowcs (License): Change to LGPLv2+.
36376         * modules/strnlen1 (License): Likewise.
36377         Reported by Simon Josefsson.
36378
36379 2009-05-02  Bruno Haible  <bruno@clisp.org>
36380
36381         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
36382         "cross".
36383         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
36384         gnulib-tool was called with option --source-base=lib.
36385
36386 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36387
36388         Use automake *-local hooks without commands, for extensibility.
36389         * modules/localcharset (Makefile.am): Rename install-exec-local
36390         rule to install-exec-localcharset, and make it a prerequisite of
36391         install-exec-local.  Likewise, rename the uninstall-local rule to
36392         uninstall-localcharset, and make it a prerequisite of the former.
36393
36394 2009-05-01  Bruno Haible  <bruno@clisp.org>
36395
36396         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
36397         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36398         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
36399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
36400         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
36401         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36402         m4/locale-zh.m4, m4/codeset.m4.
36403
36404         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36405         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
36406         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36407         m4/locale-zh.m4.
36408
36409         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
36410         REPLACE_WCRTOMB if mbstate_t must be replaced.
36411         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
36412         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
36413
36414 2009-05-01  Bruno Haible  <bruno@clisp.org>
36415
36416         Avoid compiler warnings when redefining macros defined by <libintl.h>.
36417         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
36418         dngettext, dcngettext, textdomain, bindtextdomain,
36419         bind_textdomain_codeset): Undefine before redefining.
36420
36421 2009-04-30  Bruno Haible  <bruno@clisp.org>
36422
36423         Fix bug introduced on 2009-04-25.
36424         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
36425         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
36426         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
36427         is defined.
36428         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
36429         is defined.
36430         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
36431         is defined.
36432         Reported by Elbert_Pol <elbert.pol@gmail.com>.
36433
36434 2009-04-28  Bruno Haible  <bruno@clisp.org>
36435
36436         Comment tweaks.
36437         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
36438         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
36439         * lib/unicase.h (u*_casexfrm): Likewise.
36440         Reported by Paolo Bonzini.
36441
36442 2009-04-28  Bruno Haible  <bruno@clisp.org>
36443
36444         Fix a compilation error.
36445         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
36446         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36447         Reported by Jim Meyering.
36448
36449 2009-04-27  Bruno Haible  <bruno@clisp.org>
36450
36451         New module 'libunistring'.
36452         * modules/libunistring: New file.
36453         * m4/libunistring.m4: New file.
36454         * MODULES.html.sh (Unicode string functions): Add it.
36455
36456 2009-04-27  Eric Blake  <ebb9@byu.net>
36457
36458         maint.mk: allow package-specific header to provide <config.h>
36459         * top/maint.mk (sc_require_config_h): New variable.
36460         (sc_require_config_h, sc_require_config_h_first): Use it.
36461
36462 2009-04-27  Simon Josefsson  <simon@josefsson.org>
36463
36464         * top/maint.mk (sc_avoid_if_before_free): Except
36465         useless-if-before-free script.
36466
36467 2009-04-27  Eric Blake  <ebb9@byu.net>
36468
36469         maintainer-makefile: depend on all required helper scripts
36470         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
36471         useless-if-before-free.
36472         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
36473         version, rather than assuming gnulib checkout is available.
36474         Reported by Simen Josefsson.
36475
36476 2009-04-26  Bruno Haible  <bruno@clisp.org>
36477
36478         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
36479         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
36480         "../" or "..".
36481
36482 2009-04-26  Bruno Haible  <bruno@clisp.org>
36483
36484         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
36485         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
36486         AC_LIB_HAVE_LINKFLAGS.
36487
36488 2009-04-26  Bruno Haible  <bruno@clisp.org>
36489
36490         Simplify calling convention of u*_conv_from_encoding.
36491         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
36492         u32_conv_from_encoding): Expect a resultbuf argument and return the
36493         result directly as a pointer.
36494         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
36495         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
36496         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
36497         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
36498         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
36499         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36500         Update.
36501         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
36502         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
36503         * lib/vasnprintf.c (VASNPRINTF): Update.
36504         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
36505         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
36506         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
36507         * NEWS: Mention the change.
36508
36509 2009-04-26  Bruno Haible  <bruno@clisp.org>
36510
36511         Simplify calling convention of u*_conv_to_encoding.
36512         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
36513         u32_conv_to_encoding): Expect a resultbuf argument and return the
36514         result directly as a pointer.
36515         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36516         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
36517         freeing scaled_offsets if mem_iconveha failed.
36518         * lib/unicase/u-casexfrm.h (FUNC): Update.
36519         * lib/uninorm/u-normxfrm.h (FUNC): Update.
36520         * lib/vasnprintf.c (VASNPRINTF): Update.
36521         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
36522         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
36523         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
36524         * NEWS: Mention the change.
36525
36526 2009-04-26  Bruno Haible  <bruno@clisp.org>
36527
36528         Avoid test failures on AIX and OSF/1.
36529         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
36530         malloc(0).
36531         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36532         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36533         Likewise.
36534         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
36535         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
36536         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
36537         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
36538         * doc/posix-functions/malloc.texi: Document the portability problem
36539         related to malloc(0).
36540
36541 2009-04-26  Bruno Haible  <bruno@clisp.org>
36542
36543         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
36544         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
36545         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
36546
36547 2009-04-25  Bruno Haible  <bruno@clisp.org>
36548
36549         Avoid link error when creating a namespace clean library.
36550         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
36551         as macro with arguments if already defined as an alias.
36552         * lib/signbitf.c (gl_signbitf): Don't undefine.
36553         * lib/signbitd.c (gl_signbitd): Don't undefine.
36554         * lib/signbitl.c (gl_signbitl): Don't undefine.
36555
36556 2009-04-25  Jim Meyering  <meyering@redhat.com>
36557
36558         vc-list-files: fix another quoting bug
36559         * build-aux/vc-list-files: Avoid sed backslash expansion
36560         of pathological directory names.
36561
36562 2009-04-25  Eric Blake  <ebb9@byu.net>
36563
36564         vc-list-files: fix shell quoting error
36565         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
36566         timestamp.
36567
36568 2009-04-25  Jim Meyering  <meyering@redhat.com>
36569
36570         vc-list-files: restore lost functionality with subdir argument
36571         * build-aux/vc-list-files: When given a non-"." sub-directory
36572         argument, substitute the $dir/ prefix back onto each resulting name.
36573         Otherwise, coreutils' root_tests check would fail.
36574
36575 2009-04-24  Eric Blake  <ebb9@byu.net>
36576
36577         vc-list-files: ignore git symlinks
36578         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
36579         than ls-files, to ignore git symlinks.
36580
36581         maint.mk: import improvements from m4
36582         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
36583         (move_if_change): Delete unused macro.
36584         (news-date-check, vc-diff-check): Support VPATH builds.
36585         (announcement): Likewise.  Split --bootstrap-tools list...
36586         (boostrap-tools): ...into separate list, which can be overridden
36587         in cfg.mk.
36588         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
36589         requiring dependency on useless-if-before-free module.
36590         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
36591         Support VPATH builds.
36592
36593 2009-04-24  Jim Meyering  <meyering@redhat.com>
36594
36595         maint.mk: remove coreutils-specific rules and variables
36596         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
36597         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
36598         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
36599
36600         maint.mk: remove obsolete rule
36601         * top/maint.mk (rel-check): Remove rule.
36602         (WGET, WGETFLAGS): Remove now-unused variables.
36603
36604 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36605
36606         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
36607         consistency.
36608
36609         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
36610         '$(PATH_SEPARATOR)' instead of ':'.
36611
36612 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36613
36614         * lib/getopt1.c (main): Use 'const' for static array.
36615
36616 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36617
36618         * top/maint.mk: Sync with coreutils.
36619         * NEWS: Explain incompatibilities.
36620
36621 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36622             Bruno Haible  <bruno@clisp.org>
36623
36624         Fix cross-compilation results.
36625         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
36626         statement, as third argument of AC_TRY_RUN.
36627         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
36628         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
36629         Likewise.
36630         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
36631         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
36632         Likewise.
36633         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
36634         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
36635         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
36636
36637 2009-04-20  Bruno Haible  <bruno@clisp.org>
36638
36639         Avoid test failure on mingw.
36640         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
36641
36642 2009-04-20  Bruno Haible  <bruno@clisp.org>
36643
36644         Avoid compilation error on mingw.
36645         * modules/localename-tests (Depends-on): Add locale.
36646
36647 2009-04-19  Bruno Haible  <bruno@clisp.org>
36648
36649         Support for building a shared library on Windows platforms.
36650         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
36651         (main): Test the presence of UNINORM_NFC here.
36652         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
36653         (main): Test the presence of UNINORM_NFD here.
36654         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
36655         (main): Test the presence of UNINORM_NFKC here.
36656         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
36657         (main): Test the presence of UNINORM_NFKD here.
36658
36659 2009-04-19  Bruno Haible  <bruno@clisp.org>
36660
36661         Avoid a compiler warning.
36662         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
36663         Change type of variable 'sequence'.
36664
36665 2009-04-19  Bruno Haible  <bruno@clisp.org>
36666
36667         * modules/configmake (Makefile.am): When the contents of configmake.h
36668         does not change, arrange to preserve its modification time.
36669
36670 2009-04-17  Simon Josefsson  <simon@josefsson.org>
36671
36672         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
36673         gettext domain.
36674
36675 2009-04-16  Jim Meyering  <meyering@redhat.com>
36676
36677         useless-if-before-free: improve conversion code
36678         * build-aux/useless-if-before-free: Adjust code-in-comment to match
36679         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
36680
36681 2009-04-14  Bruno Haible  <bruno@clisp.org>
36682
36683         * modules/fcntl (Depends-on): Add extensions.
36684         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
36685
36686 2009-04-12  Ben Pfaff  <blp@gnu.org>
36687
36688         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
36689         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
36690
36691 2009-03-20  Ben Pfaff  <blp@gnu.org>
36692
36693         Make rename replace existing destinations on Windows.
36694         * m4/rename.m4: Add test for Mingw.
36695         * lib/rename.c: Add rename replacement that uses MoveFileEx with
36696         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
36697         * doc/posix-functions/rename.texi: Document.
36698
36699 2009-04-10  Bruno Haible  <bruno@clisp.org>
36700
36701         New include file "iconveh.h".
36702         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
36703         * lib/striconveh.h: Include it.
36704         (enum iconv_ilseq_handler): Remove definition.
36705         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
36706         striconveh.h.
36707         * lib/striconveha.c: Include striconveh.h.
36708         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
36709         * modules/striconveh (Files): Add lib/iconveh.h.
36710         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
36711         lib/striconveh.h.
36712
36713 2009-04-10  Bruno Haible  <bruno@clisp.org>
36714
36715         * lib/uniconv.h: Update comment.
36716
36717 2009-04-10  Bruno Haible  <bruno@clisp.org>
36718
36719         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
36720         always.
36721         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36722         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36723         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36724         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
36725         "unistring-notinline.h", so that the function gets defined always.
36726         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36727         * lib/unistr/u8-uctomb.c: Likewise.
36728         * lib/unistr/u16-mbtouc.c: Likewise.
36729         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36730         * lib/unistr/u16-uctomb.c: Likewise.
36731         * lib/unistr/u32-mbtouc.c: Likewise.
36732         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36733         * lib/unistr/u32-uctomb.c: Likewise.
36734
36735 2009-04-10  Bruno Haible  <bruno@clisp.org>
36736
36737         Mark 'utime' obsolete.
36738         * modules/utime (Status, Notice): New sections.
36739         Suggested by Jim Meyering.
36740
36741         Fix cross-compile guess for utime test.
36742         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
36743         autoconf.
36744         * doc/posix-functions/utime.texi: Give more precisions.
36745         Reported by Jan <ipif@ymail.com>.
36746
36747 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
36748
36749         filevercmp: correct today's change
36750         * lib/filevercmp.c: Also handle coreutils' test inputs.
36751         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
36752
36753         Fix regression in 'filevercmp' module. Thanks Sven Joachim
36754         for reporting it.
36755         * lib/filevercmp.c: Special handle for "", "." and "..".
36756         * tests/test-filevercmp.c: Enlarge the set suite.
36757
36758 2009-04-07  Jim Meyering  <meyering@redhat.com>
36759
36760         useless-if-before-free: show how to remove braced useless free, too
36761         * build-aux/useless-if-before-free: still only in a comment, though.
36762
36763 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
36764
36765         maint.mk: import changes to syntax-check macros from coreutils
36766         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
36767         Use them in the relevant macros.
36768
36769 2009-04-06  Bruno Haible  <bruno@clisp.org>
36770
36771         Fix unportable use of bit-fields.
36772         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
36773         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
36774         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
36775
36776 2009-04-06  Bruno Haible  <bruno@clisp.org>
36777
36778         Avoid test failures on AIX and OSF/1.
36779         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
36780         that malloc(0) = NULL.
36781         * tests/unicase/test-u8-tolower.c (check): Likewise.
36782         * tests/unicase/test-u8-totitle.c (check): Likewise.
36783         * tests/unicase/test-u8-toupper.c (check): Likewise.
36784         * tests/unicase/test-u16-casefold.c (check): Likewise.
36785         * tests/unicase/test-u16-tolower.c (check): Likewise.
36786         * tests/unicase/test-u16-totitle.c (check): Likewise.
36787         * tests/unicase/test-u16-toupper.c (check): Likewise.
36788         * tests/unicase/test-u32-casefold.c (check): Likewise.
36789         * tests/unicase/test-u32-tolower.c (check): Likewise.
36790         * tests/unicase/test-u32-totitle.c (check): Likewise.
36791         * tests/unicase/test-u32-toupper.c (check): Likewise.
36792         * tests/uninorm/test-u8-nfc.c (check): Likewise.
36793         * tests/uninorm/test-u8-nfd.c (check): Likewise.
36794         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36795         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36796         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36797         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36798         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36799         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36800         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36801         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36802         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36803         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36804
36805 2009-04-05  Bruno Haible  <bruno@clisp.org>
36806
36807         Work around an autoconf limitation.
36808         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36809         comment line if it would be longer than 3 KB.
36810
36811 2009-04-05  Bruno Haible  <bruno@clisp.org>
36812
36813         Avoid test failure with libiconv-1.13.
36814         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36815         of the expected test results.
36816
36817 2009-04-05  Bruno Haible  <bruno@clisp.org>
36818
36819         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36820         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
36821         that it should be installed.
36822
36823 2009-04-05  Bruno Haible  <bruno@clisp.org>
36824
36825         * gnulib-tool: New option --copy-file.
36826         (func_usage): Document it.
36827         (func_dest_tmpfilename): Moved out of func_import.
36828         (func_add_file, func_update_file): New functions, extracted from
36829         func_import.
36830         (func_import): Update.
36831
36832 2009-04-05  Karl Berry  <karl@gnu.org>
36833
36834         * README: prominently mention gnulib-tool.
36835         Rearrange sections so getting the code is near the top.
36836
36837 2009-04-05  Bruno Haible  <bruno@clisp.org>
36838
36839         * lib/unicase.h: Mention u*_cmp2.
36840         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36841         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
36842         * lib/unicase/ulc-casecmp.c: Likewise.
36843         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
36844         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
36845         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
36846         unistr/u8-cmp.
36847         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
36848         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
36849         unistr/u16-cmp.
36850         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
36851         unistr/u32-cmp.
36852
36853         * lib/uninorm.h: Mention u*_cmp2.
36854         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36855         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
36856         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
36857         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36858         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
36859         unistr/u8-cmp.
36860         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
36861         unistr/u16-cmp.
36862         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
36863         unistr/u32-cmp.
36864
36865         New module 'unistr/u32-cmp2'.
36866         * lib/unistr/u32-cmp2.c: New file.
36867         * modules/unistr/u32-cmp2: New file.
36868
36869         New module 'unistr/u16-cmp2'.
36870         * lib/unistr/u16-cmp2.c: New file.
36871         * modules/unistr/u16-cmp2: New file.
36872
36873         New module 'unistr/u8-cmp2'.
36874         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
36875         * lib/unistr/u8-cmp2.c: New file.
36876         * lib/unistr/u-cmp2.h: New file.
36877         * modules/unistr/u8-cmp2: New file.
36878
36879 2009-04-05  Bruno Haible  <bruno@clisp.org>
36880
36881         * lib/unictype.h (uc_property_is_valid): New macro.
36882         * tests/unictype/test-pr_byname.c (main): Use it.
36883
36884         * lib/unistr.h: Doc fixes.
36885         * lib/uniconv.h: Doc fixes.
36886         * lib/unictype.h: Doc fixes.
36887
36888 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36889
36890         Port coreutils 7.2 to Solaris 8.
36891
36892         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36893         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36894         for Solaris 8.  This is a bit of a hack, as it means it's the
36895         caller's responsibility to add -lnsl if needed, but most likely it
36896         won't be needed since only getaddrinfo uses this and getaddrinfo
36897         isn't needed on Solaris 8.
36898
36899         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36900         problem to Solaris 8 encountered with coreutils 7.2, which
36901         resulted in a message "fnmatch.c:292: warning: passing argument 4
36902         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36903         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36904
36905 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36906
36907         * m4/ld-version-script.m4: Add FIXME comment.
36908
36909 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36910
36911         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36912         SOVERSION variable.
36913
36914 2009-04-02  Bruno Haible  <bruno@clisp.org>
36915
36916         * Makefile (info, html, dvi, pdf): Combine the rules.
36917         Suggested by Jim Meyering.
36918
36919 2009-04-01  Bruno Haible  <bruno@clisp.org>
36920
36921         * Makefile (info, html, dvi, pdf): New targets.
36922         Reported by Reuben Thomas <rrt@sc3d.org>.
36923
36924 2009-04-01  Bruno Haible  <bruno@clisp.org>
36925
36926         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36927         can be put into PATH.
36928         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36929
36930 2009-04-01  Bruno Haible  <bruno@clisp.org>
36931
36932         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36933
36934 2009-04-01  Bruno Haible  <bruno@clisp.org>
36935
36936         Rename module 'visibility'.
36937         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36938         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36939         * doc/gnulib.texi: Update.
36940         * MODULES.html.sh (Misc): Update.
36941         * NEWS: Mention the change.
36942
36943 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36944
36945         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36946         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36947         Eric Blake <ebb9@byu.net> for review.
36948         * MODULES.html.sh: Add lib-msvc-compat.
36949         * doc/gnulib.texi: Link to new section.
36950         * m4/ld-output-def.m4: New file.
36951         * doc/ld-output-def.texi: New file.
36952
36953 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36954
36955         Rename ld-version-script to lib-symbol-versions.  Suggested by
36956         Bruno Haible <bruno@clisp.org>.
36957         * modules/ld-version-script: Renamed to lib-symbol-versions.
36958         * doc/ld-version-script.texi: Fix module name.
36959         * MODULES.html.sh: Add lib-symbol-versions.
36960
36961 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36962
36963         * modules/u64-tests: New file.
36964         * tests/test-u64.c: New file.
36965
36966 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36967
36968         * MODULES.html.sh: Mention u64.
36969         * modules/u64: New module.
36970         * modules/crypto/sha512: Depend on u64 module instead of providing
36971         u64.h.
36972
36973 2009-03-27  Eric Blake  <ebb9@byu.net>
36974
36975         test-strerror: make debugging EAI_SYSTEM easier
36976         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36977         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36978         failure was EAI_SYSTEM.
36979
36980 2009-03-25  Bruno Haible  <bruno@clisp.org>
36981
36982         Fix a problem with --enable-relocatable on Solaris 7.
36983         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36984         since 2008-02-24.
36985
36986 2009-03-25  Eric Blake  <ebb9@byu.net>
36987
36988         test-sockets: avoid gcc warning
36989         * tests/test-sockets.c (main): Silence compiler warning.
36990
36991 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36992
36993         New modules nproc, pthread, contributed by Glen Lenker.
36994
36995         * MODULES.html.sh: Add pthread, nproc.
36996         * lib/nproc.c: New file.
36997         * lib/nproc.h: New file.
36998         * lib/pthread.in.h: New file.
36999         * m4/pthread.m4: New file.
37000         * modules/nproc: New file.
37001         * modules/pthread: New file.
37002
37003 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37004
37005         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
37006         New variable.
37007
37008 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
37009
37010         filevercmp: handle simple~ and numbered.~3~ backup suffixes
37011         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
37012         * tests/test-filevercmp.c: Add tests for backup suffixes.
37013
37014 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37015
37016         * modules/stdlib (Depends-on): Add stdint, needed when defining
37017         struct random_data on, for example, HP-UX 10.20.  Reported by
37018         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37019
37020 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37021
37022         * lib/readline.c (readline): Call fflush on stdout after printing
37023         prompt.
37024
37025 2009-03-20  Bruno Haible  <bruno@clisp.org>
37026
37027         Remove dependency from 'close' module to -lws2_32 on native Windows.
37028         * lib/close-hook.h: New file.
37029         * lib/close-hook.c: New file.
37030         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
37031         w32sock.h.
37032         (_gl_close_fd_maybe_socket): Remove function.
37033         (rpl_close): Invoke execute_all_close_hooks instead of
37034         _gl_close_fd_maybe_socket.
37035         * lib/sockets.c: Include close-hook.h, w32sock.h.
37036         (close_fd_maybe_socket): New function, essentially from lib/close.c.
37037         (close_sockets_hook): New variable.
37038         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
37039         (gl_sockets_cleanup): Unregister it.
37040         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
37041         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
37042         * modules/close-hook: New file.
37043         * modules/close (Files): Remove lib/w32sock.h.
37044         (Depends-on): Add close-hook.
37045         (Link): Remove section.
37046         * modules/sockets (Files): Add lib/w32sock.h.
37047         (Depends-on): Add close-hook.
37048         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
37049         invocation.
37050         * NEWS: Mention that LIB_CLOSE is gone.
37051
37052 2009-03-23  Eric Blake  <ebb9@byu.net>
37053
37054         signal-tests: test previous patch
37055         * tests/test-signal.c: New file.
37056         * modules/signal-tests: Likewise.
37057
37058         signal.h: always support 'volatile sig_atomic_t'
37059         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
37060         (gl_SIGNAL_H_DEFAULTS): Add a default.
37061         * modules/signal (Makefile.am): Substitute if needed.
37062         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
37063         users can blindly add volatile.
37064         * doc/posix-headers/signal.texi (signal.h): Document it.
37065         Reported by Matthew Woehlke.
37066
37067 2009-03-23  Jim Meyering  <meyering@redhat.com>
37068
37069         pathmax: PATH_MAX: use pathconf only when available
37070         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
37071         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
37072         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
37073         This avoids a link failure in a PSP cross-compilation environment
37074         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
37075
37076         * lib/vasnprintf.c (divide): Fix typo in comment.
37077
37078 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37079
37080         * gnulib-tool (func_filter_filelist): Fix comment.
37081
37082 2009-03-20  Bruno Haible  <bruno@clisp.org>
37083
37084         Make sockets.h self-contained.
37085         * lib/sockets.c: Include sockets.h first.
37086         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
37087
37088 2009-03-19  Eric Blake  <ebb9@byu.net>
37089
37090         doc: mention more functions added in cygwin 1.7.0
37091         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
37092         addition.
37093         * doc/posix-functions/log2f.texi: Likewise.
37094
37095 2009-03-19  Jim Meyering  <meyering@redhat.com>
37096
37097         fsusage: avoid syntax error due to statement-before-declaration
37098         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
37099         after all declarations.  Reported by Matthew Woehlke in
37100         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
37101
37102 2009-03-18  Eric Blake  <ebb9@byu.net>
37103
37104         build-aux/compile: sync from automake
37105         * build-aux/compile: New file, from automake.
37106         * config/srclist.txt: Mention build-aux/compile.
37107
37108 2009-03-17  Bruno Haible  <bruno@clisp.org>
37109
37110         * lib/git-merge-changelog.c: Fix typo in comment.
37111         Reported by Reuben Thomas <rrt@sc3d.org>.
37112
37113 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
37114
37115         * m4/regex.m4: update and improve help for
37116         --without-included-regex.
37117
37118 2009-03-17  Simon Josefsson  <simon@josefsson.org>
37119
37120         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
37121         failure on missing include files.
37122
37123 2009-03-17  Eric Blake  <ebb9@byu.net>
37124
37125         doc: mention more functions added in cygwin 1.7.0
37126         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
37127         addition.
37128         * doc/posix-functions/fwscanf.texi: Likewise.
37129         * doc/posix-functions/swprintf.texi: Likewise.
37130         * doc/posix-functions/swscanf.texi: Likewise.
37131         * doc/posix-functions/vfwprintf.texi: Likewise.
37132         * doc/posix-functions/vfwscanf.texi: Likewise.
37133         * doc/posix-functions/vswprintf.texi: Likewise.
37134         * doc/posix-functions/vswscanf.texi: Likewise.
37135         * doc/posix-functions/vwprintf.texi: Likewise.
37136         * doc/posix-functions/vwscanf.texi: Likewise.
37137         * doc/posix-functions/wcscasecmp.texi: Likewise.
37138         * doc/posix-functions/wcsdup.texi: Likewise.
37139         * doc/posix-functions/wcsftime.texi: Likewise.
37140         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37141         * doc/posix-functions/wprintf.texi: Likewise.
37142         * doc/posix-functions/wscanf.texi: Likewise.
37143         * doc/glibc-functions/gethostbyname2.texi: Likewise.
37144
37145 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37146
37147         maint.mk: really add $(AM_MAKEFLAGS)
37148         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
37149         was inadvertently omitted in the last commit.
37150         Spotted by Bruno Haible.
37151
37152         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
37153         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
37154         $(AM_MAKEFLAGS)' rather than plain `make'.
37155
37156         gnulib-tool: execute $MAKE not make
37157         * gnulib-tool: Default $MAKE to 'make'.
37158         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
37159         than make.  Initialize $MAKE in the do-autobuild script.
37160
37161         gnulib-tool: use $MAKE not make in generated files
37162         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
37163         make, in generated files.  Initialize $MAKE in the do-autobuild
37164         script.
37165
37166         * top/GNUmakefile (_have-git-version-gen): Fix typo.
37167
37168         GNUmakefile: disable parallelism only for multiple, recursive targets
37169         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
37170         additions in the Makefile.
37171         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
37172         by Automake.
37173         (.NOTPARALLEL): Only disable parallel builds if multiple targets
37174         are listed on the command line and at least one of them is
37175         listed in $(ALL_RECURSIVE_TARGETS).
37176
37177 2009-03-14  Bruno Haible  <bruno@clisp.org>
37178
37179         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
37180         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
37181         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
37182         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
37183         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
37184         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
37185         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
37186         unistr/u8-uctomb.
37187         * modules/unistr/u8-strchr (Depends-on): Likewise.
37188         * modules/unistr/u8-strrchr (Depends-on): Likewise.
37189         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
37190         unistr/u16-uctomb.
37191         * modules/unistr/u16-strchr (Depends-on): Likewise.
37192         * modules/unistr/u16-strrchr (Depends-on): Likewise.
37193
37194 2009-03-12  Bruno Haible  <bruno@clisp.org>
37195
37196         Work around select() bug on Interix 3.5.
37197         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
37198         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
37199         * m4/select.m4: New file.
37200         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
37201         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
37202         * modules/select (Files): Add m4/select.m4.
37203         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
37204         * modules/nanosleep (Depends-on): Add select.
37205         * modules/poll (Depends-on): Likewise.
37206         * doc/posix-functions/select.texi: Mention the Interix bug.
37207         Reported by Markus Duft <mduft@gentoo.org>.
37208
37209         * lib/select.c: Renamed from lib/winsock-select.c.
37210         * modules/select (Files): Add lib/select.c, remove
37211         lib/winsock-select.c.
37212         (configure.ac): Update.
37213
37214 2009-03-12  Jim Meyering  <meyering@redhat.com>
37215
37216         avoid gcc warnings about unused macro definitions
37217         * lib/readtokens.c (STREQ): Remove unused definition.
37218         * lib/xmalloc.c (SIZE_MAX): Likewise.
37219         * lib/openat-die.c (N_): Likewise.
37220         * lib/mountlist.c (SIZE_MAX): Remove definition.
37221         Instead, include <stdint.h>.
37222         * lib/readutmp.c: Likewise.
37223         * modules/readutmp (Depends-on): Add stdint.
37224         * modules/mountlist (Depends-on): Add stdint.
37225         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
37226
37227 2009-03-10  Bruno Haible  <bruno@clisp.org>
37228
37229         Tests for module 'mbmemcasecoll'.
37230         * modules/mbmemcasecoll-tests: New file.
37231         * tests/test-mbmemcasecoll1.sh: New file.
37232         * tests/test-mbmemcasecoll2.sh: New file.
37233         * tests/test-mbmemcasecoll3.sh: New file.
37234         * tests/test-mbmemcasecoll.c: New file.
37235
37236         New module 'mbmemcasecoll'.
37237         * lib/mbmemcasecoll.h: New file.
37238         * lib/mbmemcasecoll.c: New file.
37239         * modules/mbmemcasecoll: New file.
37240
37241         * tests/test-mbmemcasecmp.h: New file, extracted from
37242         tests/test-mbmemcasecmp.c.
37243         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
37244         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
37245         (main): Update.
37246         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
37247
37248 2009-03-09  Bruno Haible  <bruno@clisp.org>
37249
37250         Tests for module 'mbmemcasecmp'.
37251         * modules/mbmemcasecmp-tests: New file.
37252         * tests/test-mbmemcasecmp1.sh: New file.
37253         * tests/test-mbmemcasecmp2.sh: New file.
37254         * tests/test-mbmemcasecmp3.sh: New file.
37255         * tests/test-mbmemcasecmp.c: New file.
37256
37257         New module 'mbmemcasecmp'.
37258         * lib/mbmemcasecmp.h: New file.
37259         * lib/mbmemcasecmp.c: New file.
37260         * modules/mbmemcasecmp: New file.
37261
37262 2009-03-09  Bruno Haible  <bruno@clisp.org>
37263
37264         Tests for module 'unicase/ulc-casecoll'.
37265         * modules/unicase/ulc-casecoll-tests: New file.
37266         * tests/unicase/test-ulc-casecoll1.sh: New file.
37267         * tests/unicase/test-ulc-casecoll2.sh: New file.
37268         * tests/unicase/test-ulc-casecoll.c: New file.
37269
37270         New module 'unicase/ulc-casecoll'.
37271         * lib/unicase.h (ulc_casecoll): New declaration.
37272         * lib/unicase/ulc-casecoll.c: New file.
37273         * modules/unicase/ulc-casecoll: New file.
37274
37275         New module 'unicase/ulc-casexfrm'.
37276         * lib/unicase.h (ulc_casexfrm): New declaration.
37277         * lib/unicase/ulc-casexfrm.c: New file.
37278         * modules/unicase/ulc-casexfrm: New file.
37279
37280 2009-03-09  Bruno Haible  <bruno@clisp.org>
37281
37282         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
37283         invocations.
37284
37285         * m4/mbscasecmp.m4: Remove file.
37286         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
37287         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
37288
37289         * m4/mbscasestr.m4: Remove file.
37290         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
37291         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
37292
37293         * m4/mbschr.m4: Remove file.
37294         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
37295         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
37296
37297         * m4/mbscspn.m4: Remove file.
37298         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
37299         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
37300
37301         * m4/mbslen.m4: Remove file.
37302         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
37303         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
37304
37305         * m4/mbsncasecmp.m4: Remove file.
37306         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
37307         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
37308
37309         * m4/mbsnlen.m4: Remove file.
37310         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
37311         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
37312
37313         * m4/mbspbrk.m4: Remove file.
37314         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
37315         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
37316
37317         * m4/mbspcasecmp.m4: Remove file.
37318         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
37319         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
37320
37321         * m4/mbsrchr.m4: Remove file.
37322         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
37323         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
37324
37325         * m4/mbssep.m4: Remove file.
37326         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
37327         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
37328
37329         * m4/mbsspn.m4: Remove file.
37330         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
37331         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
37332
37333         * m4/mbsstr.m4: Remove file.
37334         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
37335         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
37336
37337         * m4/mbstok_r.m4: Remove file.
37338         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
37339         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
37340
37341         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
37342
37343         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
37344         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
37345
37346         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
37347
37348 2009-03-08  Bruno Haible  <bruno@clisp.org>
37349
37350         Tests for module 'unicase/ulc-casecmp'.
37351         * modules/unicase/ulc-casecmp-tests: New file.
37352         * tests/unicase/test-ulc-casecmp1.sh: New file.
37353         * tests/unicase/test-ulc-casecmp2.sh: New file.
37354         * tests/unicase/test-ulc-casecmp.c: New file.
37355
37356         New module 'unicase/ulc-casecmp'.
37357         * lib/unicase.h (ulc_casecmp): New declaration.
37358         * lib/unicase/ulc-casecmp.c: New file.
37359         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
37360         'const SRC_UNIT *'.
37361         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
37362         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
37363         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
37364         * modules/unicase/ulc-casecmp: New file.
37365
37366         Tests for module 'unicase/u32-is-cased'.
37367         * modules/unicase/u32-is-cased-tests: New file.
37368         * tests/unicase/test-u32-is-cased.c: New file.
37369
37370         Tests for module 'unicase/u16-is-cased'.
37371         * modules/unicase/u16-is-cased-tests: New file.
37372         * tests/unicase/test-u16-is-cased.c: New file.
37373
37374         Tests for module 'unicase/u8-is-cased'.
37375         * modules/unicase/u8-is-cased-tests: New file.
37376         * tests/unicase/test-u8-is-cased.c: New file.
37377         * tests/unicase/test-is-cased.h: New file.
37378
37379         New module 'unicase/u32-is-cased'.
37380         * lib/unicase/u32-is-cased.c: New file.
37381         * modules/unicase/u32-is-cased: New file.
37382
37383         New module 'unicase/u16-is-cased'.
37384         * lib/unicase/u16-is-cased.c: New file.
37385         * modules/unicase/u16-is-cased: New file.
37386
37387         New module 'unicase/u8-is-cased'.
37388         * lib/unicase/u8-is-cased.c: New file.
37389         * lib/unicase/u-is-cased.h: New file.
37390         * modules/unicase/u8-is-cased: New file.
37391
37392         Tests for module 'unicase/u32-is-casefolded'.
37393         * modules/unicase/u32-is-casefolded-tests: New file.
37394         * tests/unicase/test-u32-is-casefolded.c: New file.
37395
37396         Tests for module 'unicase/u16-is-casefolded'.
37397         * modules/unicase/u16-is-casefolded-tests: New file.
37398         * tests/unicase/test-u16-is-casefolded.c: New file.
37399
37400         Tests for module 'unicase/u8-is-casefolded'.
37401         * modules/unicase/u8-is-casefolded-tests: New file.
37402         * tests/unicase/test-u8-is-casefolded.c: New file.
37403         * tests/unicase/test-is-casefolded.h: New file.
37404
37405         New module 'unicase/u32-is-casefolded'.
37406         * lib/unicase/u32-is-casefolded.c: New file.
37407         * modules/unicase/u32-is-casefolded: New file.
37408
37409         New module 'unicase/u16-is-casefolded'.
37410         * lib/unicase/u16-is-casefolded.c: New file.
37411         * modules/unicase/u16-is-casefolded: New file.
37412
37413         New module 'unicase/u8-is-casefolded'.
37414         * lib/unicase/u8-is-casefolded.c: New file.
37415         * modules/unicase/u8-is-casefolded: New file.
37416
37417         Tests for module 'unicase/u32-is-titlecase'.
37418         * modules/unicase/u32-is-titlecase-tests: New file.
37419         * tests/unicase/test-u32-is-titlecase.c: New file.
37420
37421         Tests for module 'unicase/u16-is-titlecase'.
37422         * modules/unicase/u16-is-titlecase-tests: New file.
37423         * tests/unicase/test-u16-is-titlecase.c: New file.
37424
37425         Tests for module 'unicase/u8-is-titlecase'.
37426         * modules/unicase/u8-is-titlecase-tests: New file.
37427         * tests/unicase/test-u8-is-titlecase.c: New file.
37428         * tests/unicase/test-is-titlecase.h: New file.
37429
37430         New module 'unicase/u32-is-titlecase'.
37431         * lib/unicase/u32-is-titlecase.c: New file.
37432         * modules/unicase/u32-is-titlecase: New file.
37433
37434         New module 'unicase/u16-is-titlecase'.
37435         * lib/unicase/u16-is-titlecase.c: New file.
37436         * modules/unicase/u16-is-titlecase: New file.
37437
37438         New module 'unicase/u8-is-titlecase'.
37439         * lib/unicase/u8-is-titlecase.c: New file.
37440         * modules/unicase/u8-is-titlecase: New file.
37441
37442         Tests for module 'unicase/u32-is-lowercase'.
37443         * modules/unicase/u32-is-lowercase-tests: New file.
37444         * tests/unicase/test-u32-is-lowercase.c: New file.
37445
37446         Tests for module 'unicase/u16-is-lowercase'.
37447         * modules/unicase/u16-is-lowercase-tests: New file.
37448         * tests/unicase/test-u16-is-lowercase.c: New file.
37449
37450         Tests for module 'unicase/u8-is-lowercase'.
37451         * modules/unicase/u8-is-lowercase-tests: New file.
37452         * tests/unicase/test-u8-is-lowercase.c: New file.
37453         * tests/unicase/test-is-lowercase.h: New file.
37454
37455         New module 'unicase/u32-is-lowercase'.
37456         * lib/unicase/u32-is-lowercase.c: New file.
37457         * modules/unicase/u32-is-lowercase: New file.
37458
37459         New module 'unicase/u16-is-lowercase'.
37460         * lib/unicase/u16-is-lowercase.c: New file.
37461         * modules/unicase/u16-is-lowercase: New file.
37462
37463         New module 'unicase/u8-is-lowercase'.
37464         * lib/unicase/u8-is-lowercase.c: New file.
37465         * modules/unicase/u8-is-lowercase: New file.
37466
37467         Tests for module 'unicase/u32-is-uppercase'.
37468         * modules/unicase/u32-is-uppercase-tests: New file.
37469         * tests/unicase/test-u32-is-uppercase.c: New file.
37470
37471         Tests for module 'unicase/u16-is-uppercase'.
37472         * modules/unicase/u16-is-uppercase-tests: New file.
37473         * tests/unicase/test-u16-is-uppercase.c: New file.
37474
37475         Tests for module 'unicase/u8-is-uppercase'.
37476         * modules/unicase/u8-is-uppercase-tests: New file.
37477         * tests/unicase/test-u8-is-uppercase.c: New file.
37478         * tests/unicase/test-is-uppercase.h: New file.
37479
37480         New module 'unicase/u32-is-uppercase'.
37481         * lib/unicase/u32-is-uppercase.c: New file.
37482         * modules/unicase/u32-is-uppercase: New file.
37483
37484         New module 'unicase/u16-is-uppercase'.
37485         * lib/unicase/u16-is-uppercase.c: New file.
37486         * modules/unicase/u16-is-uppercase: New file.
37487
37488         New module 'unicase/u8-is-uppercase'.
37489         * lib/unicase/u8-is-uppercase.c: New file.
37490         * modules/unicase/u8-is-uppercase: New file.
37491
37492         New module 'unicase/u32-is-invariant'.
37493         * lib/unicase/u32-is-invariant.c: New file.
37494         * modules/unicase/u32-is-invariant: New file.
37495
37496         New module 'unicase/u16-is-invariant'.
37497         * lib/unicase/u16-is-invariant.c: New file.
37498         * modules/unicase/u16-is-invariant: New file.
37499
37500         New module 'unicase/u8-is-invariant'.
37501         * lib/unicase/u8-is-invariant.c: New file.
37502         * lib/unicase/invariant.h: New file.
37503         * lib/unicase/u-is-invariant.h: New file.
37504         * modules/unicase/u8-is-invariant: New file.
37505
37506         Tests for module 'unicase/u32-casecoll'.
37507         * modules/unicase/u32-casecoll-tests: New file.
37508         * tests/unicase/test-u32-casecoll.c: New file.
37509
37510         Tests for module 'unicase/u16-casecoll'.
37511         * modules/unicase/u16-casecoll-tests: New file.
37512         * tests/unicase/test-u16-casecoll.c: New file.
37513
37514         Tests for module 'unicase/u8-casecoll'.
37515         * modules/unicase/u8-casecoll-tests: New file.
37516         * tests/unicase/test-u8-casecoll.c: New file.
37517
37518         New module 'unicase/u32-casecoll'.
37519         * lib/unicase/u32-casecoll.c: New file.
37520         * modules/unicase/u32-casecoll: New file.
37521
37522         New module 'unicase/u16-casecoll'.
37523         * lib/unicase/u16-casecoll.c: New file.
37524         * modules/unicase/u16-casecoll: New file.
37525
37526         New module 'unicase/u8-casecoll'.
37527         * lib/unicase/u8-casecoll.c: New file.
37528         * lib/unicase/u-casecoll.h: New file.
37529         * modules/unicase/u8-casecoll: New file.
37530
37531         New module 'unicase/u32-casexfrm'.
37532         * lib/unicase/u32-casexfrm.c: New file.
37533         * modules/unicase/u32-casexfrm: New file.
37534
37535         New module 'unicase/u16-casexfrm'.
37536         * lib/unicase/u16-casexfrm.c: New file.
37537         * modules/unicase/u16-casexfrm: New file.
37538
37539         New module 'unicase/u8-casexfrm'.
37540         * lib/unicase/u8-casexfrm.c: New file.
37541         * lib/unicase/u-casexfrm.h: New file.
37542         * modules/unicase/u8-casexfrm: New file.
37543
37544         Tests for module 'unicase/u32-casecmp'.
37545         * modules/unicase/u32-casecmp-tests: New file.
37546         * tests/unicase/test-u32-casecmp.c: New file.
37547
37548         Tests for module 'unicase/u16-casecmp'.
37549         * modules/unicase/u16-casecmp-tests: New file.
37550         * tests/unicase/test-u16-casecmp.c: New file.
37551
37552         Tests for module 'unicase/u8-casecmp'.
37553         * modules/unicase/u8-casecmp-tests: New file.
37554         * tests/unicase/test-u8-casecmp.c: New file.
37555         * tests/unicase/test-casecmp.h: New file.
37556
37557         New module 'unicase/u32-casecmp'.
37558         * lib/unicase/u32-casecmp.c: New file.
37559         * modules/unicase/u32-casecmp: New file.
37560
37561         New module 'unicase/u16-casecmp'.
37562         * lib/unicase/u16-casecmp.c: New file.
37563         * modules/unicase/u16-casecmp: New file.
37564
37565         New module 'unicase/u8-casecmp'.
37566         * lib/unicase/u8-casecmp.c: New file.
37567         * lib/unicase/u-casecmp.h: New file.
37568         * modules/unicase/u8-casecmp: New file.
37569
37570         Tests for module 'unicase/u32-casefold'.
37571         * modules/unicase/u32-casefold-tests: New file.
37572         * tests/unicase/test-u32-casefold.c: New file.
37573
37574         Tests for module 'unicase/u16-casefold'.
37575         * modules/unicase/u16-casefold-tests: New file.
37576         * tests/unicase/test-u16-casefold.c: New file.
37577
37578         Tests for module 'unicase/u8-casefold'.
37579         * modules/unicase/u8-casefold-tests: New file.
37580         * tests/unicase/test-u8-casefold.c: New file.
37581
37582         New module 'unicase/u32-casefold'.
37583         * lib/unicase/u32-casefold.c: New file.
37584         * modules/unicase/u32-casefold: New file.
37585
37586         New module 'unicase/u16-casefold'.
37587         * lib/unicase/u16-casefold.c: New file.
37588         * modules/unicase/u16-casefold: New file.
37589
37590         New module 'unicase/u8-casefold'.
37591         * lib/unicase/u8-casefold.c: New file.
37592         * lib/unicase/u-casefold.h: New file.
37593         * modules/unicase/u8-casefold: New file.
37594
37595         New module 'unicase/tocasefold'.
37596         * lib/unicase/casefold.h: New file.
37597         * lib/unicase/tocasefold.c: New file.
37598         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
37599         * modules/unicase/tocasefold: New file.
37600
37601         Tests for module 'unicase/u32-totitle'.
37602         * modules/unicase/u32-totitle-tests: New file.
37603         * tests/unicase/test-u32-totitle.c: New file.
37604
37605         Tests for module 'unicase/u16-totitle'.
37606         * modules/unicase/u16-totitle-tests: New file.
37607         * tests/unicase/test-u16-totitle.c: New file.
37608
37609         Tests for module 'unicase/u8-totitle'.
37610         * modules/unicase/u8-totitle-tests: New file.
37611         * tests/unicase/test-u8-totitle.c: New file.
37612
37613         New module 'unicase/u32-totitle'.
37614         * lib/unicase/u32-totitle.c: New file.
37615         * modules/unicase/u32-totitle: New file.
37616
37617         New module 'unicase/u16-totitle'.
37618         * lib/unicase/u16-totitle.c: New file.
37619         * modules/unicase/u16-totitle: New file.
37620
37621         New module 'unicase/u8-totitle'.
37622         * lib/unicase/u8-totitle.c: New file.
37623         * lib/unicase/u-totitle.h: New file.
37624         * modules/unicase/u8-totitle: New file.
37625
37626         Tests for module 'unicase/u32-tolower'.
37627         * modules/unicase/u32-tolower-tests: New file.
37628         * tests/unicase/test-u32-tolower.c: New file.
37629
37630         Tests for module 'unicase/u16-tolower'.
37631         * modules/unicase/u16-tolower-tests: New file.
37632         * tests/unicase/test-u16-tolower.c: New file.
37633
37634         Tests for module 'unicase/u8-tolower'.
37635         * modules/unicase/u8-tolower-tests: New file.
37636         * tests/unicase/test-u8-tolower.c: New file.
37637
37638         New module 'unicase/u32-tolower'.
37639         * lib/unicase/u32-tolower.c: New file.
37640         * modules/unicase/u32-tolower: New file.
37641
37642         New module 'unicase/u16-tolower'.
37643         * lib/unicase/u16-tolower.c: New file.
37644         * modules/unicase/u16-tolower: New file.
37645
37646         New module 'unicase/u8-tolower'.
37647         * lib/unicase/u8-tolower.c: New file.
37648         * modules/unicase/u8-tolower: New file.
37649
37650         Tests for module 'unicase/u32-toupper'.
37651         * modules/unicase/u32-toupper-tests: New file.
37652         * tests/unicase/test-u32-toupper.c: New file.
37653
37654         Tests for module 'unicase/u16-toupper'.
37655         * modules/unicase/u16-toupper-tests: New file.
37656         * tests/unicase/test-u16-toupper.c: New file.
37657
37658         Tests for module 'unicase/u8-toupper'.
37659         * modules/unicase/u8-toupper-tests: New file.
37660         * tests/unicase/test-u8-toupper.c: New file.
37661
37662         New module 'unicase/u32-toupper'.
37663         * lib/unicase/u32-toupper.c: New file.
37664         * modules/unicase/u32-toupper: New file.
37665
37666         New module 'unicase/u16-toupper'.
37667         * lib/unicase/u16-toupper.c: New file.
37668         * modules/unicase/u16-toupper: New file.
37669
37670         New module 'unicase/u8-toupper'.
37671         * lib/unicase/u8-toupper.c: New file.
37672         * modules/unicase/u8-toupper: New file.
37673
37674         New module 'unicase/u32-casemap'.
37675         * lib/unicase/u32-casemap.c: New file.
37676         * modules/unicase/u32-casemap: New file.
37677
37678         New module 'unicase/u16-casemap'.
37679         * lib/unicase/u16-casemap.c: New file.
37680         * modules/unicase/u16-casemap: New file.
37681
37682         New module 'unicase/u8-casemap'.
37683         * lib/unicase/unicasemap.h: New file.
37684         * lib/unicase/u8-casemap.c: New file.
37685         * lib/unicase/u-casemap.h: New file.
37686         * modules/unicase/u8-casemap: New file.
37687
37688         New module 'unicase/special-casing'.
37689         * lib/unicase/special-casing.h: New file.
37690         * lib/unicase/special-casing.c: New file.
37691         * lib/unicase/special-casing-table.gperf: New file, generated by
37692         gen-uni-tables.c.
37693         * modules/unicase/special-casing: New file.
37694
37695         Tests for module 'unicase/locale-language'.
37696         * modules/unicase/locale-language-tests: New file.
37697         * tests/unicase/test-locale-language.sh: New file.
37698         * tests/unicase/test-locale-language.c: New file.
37699
37700         New module 'unicase/locale-language'.
37701         * lib/unicase/locale-language.c: New file.
37702         * lib/unicase/locale-languages.gperf: New file.
37703         * modules/unicase/locale-language: New file.
37704
37705         Generate more tables for case conversion and case folding.
37706         * lib/gen-uni-tables.c (SCC_*): New enum items.
37707         (struct special_casing_rule): New type.
37708         (casing_rules, num_casing_rules, allocated_casing_rules): New
37709         variables.
37710         (add_casing_rule, fill_casing_rules): New functions.
37711         (struct casefold_rule): New type.
37712         (casefolding_rules, num_casefolding_rules,
37713         allocated_casefolding_rules): New variables.
37714         (fill_casefolding_rules): New function.
37715         (unicode_casefold): New variable.
37716         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
37717         sort_casing_rules, output_casing_rules): New functions.
37718         (main): Accept to more arguments: SpecialCasing.txt and
37719         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
37720         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
37721         Output mapping for casefolding.
37722
37723         * lib/unicase.h: Include stdbool.h, uninorm.h.
37724         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
37725         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
37726         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
37727         arguments.
37728         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
37729         resultp arguments.
37730         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
37731         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
37732         resultp arguments.
37733         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
37734         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
37735         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
37736         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
37737         declarations.
37738         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
37739
37740 2009-03-08  Bruno Haible  <bruno@clisp.org>
37741
37742         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37743         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
37744         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
37745         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37746
37747 2009-03-07  Bruno Haible  <bruno@clisp.org>
37748
37749         Adjust u*_normcmp, u*_normcoll API.
37750         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37751         u16_normcoll, u32_normcoll): Change failure conventions.
37752         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
37753         errno and return -1.
37754         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37755
37756 2009-03-07  Bruno Haible  <bruno@clisp.org>
37757
37758         Tests for module 'uninorm/u32-normcoll'.
37759         * modules/uninorm/u32-normcoll-tests: New file.
37760         * tests/uninorm/test-u32-normcoll.c: New file.
37761
37762         Tests for module 'uninorm/u16-normcoll'.
37763         * modules/uninorm/u16-normcoll-tests: New file.
37764         * tests/uninorm/test-u16-normcoll.c: New file.
37765
37766         Tests for module 'uninorm/u8-normcoll'.
37767         * modules/uninorm/u8-normcoll-tests: New file.
37768         * tests/uninorm/test-u8-normcoll.c: New file.
37769
37770 2009-03-07  Bruno Haible  <bruno@clisp.org>
37771
37772         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
37773         tests/uninorm/test-u32-normcmp.c.
37774         * tests/uninorm/test-u32-normcmp.c: Include it.
37775         (test_nonascii): New function, extracted from main. Add some more
37776         tests.
37777         (main): Invoke test_ascii and test_nonascii.
37778         * modules/uninorm/u32-normcmp-tests (Files): Add
37779         tests/uninorm/test-u32-normcmp.h.
37780         (Depends-on): Remove uninorm/u32-normcmp.
37781
37782         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
37783         tests/uninorm/test-u16-normcmp.c.
37784         * tests/uninorm/test-u16-normcmp.c: Include it.
37785         (test_nonascii): New function, extracted from main. Add some more
37786         tests.
37787         (main): Invoke test_ascii and test_nonascii.
37788         * modules/uninorm/u16-normcmp-tests (Files): Add
37789         tests/uninorm/test-u16-normcmp.h.
37790         (Depends-on): Remove uninorm/u16-normcmp.
37791
37792         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
37793         tests/uninorm/test-u8-normcmp.c.
37794         * tests/uninorm/test-u8-normcmp.c: Include it.
37795         (test_nonascii): New function, extracted from main. Add some more
37796         tests.
37797         (main): Invoke test_ascii and test_nonascii.
37798         * modules/uninorm/u8-normcmp-tests (Files): Add
37799         tests/uninorm/test-u8-normcmp.h.
37800         (Depends-on): Remove uninorm/u8-normcmp.
37801
37802 2009-03-07  Bruno Haible  <bruno@clisp.org>
37803
37804         New module 'uninorm/u32-normcoll'.
37805         * lib/uninorm/u32-normcoll.c: New file.
37806         * modules/uninorm/u32-normcoll: New file.
37807
37808         New module 'uninorm/u16-normcoll'.
37809         * lib/uninorm/u16-normcoll.c: New file.
37810         * modules/uninorm/u16-normcoll: New file.
37811
37812         New module 'uninorm/u8-normcoll'.
37813         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37814         declarations.
37815         * lib/uninorm/u8-normcoll.c: New file.
37816         * lib/uninorm/u-normcoll.h: New file.
37817         * modules/uninorm/u8-normcoll: New file.
37818
37819         New module 'uninorm/u32-normxfrm'.
37820         * lib/uninorm/u32-normxfrm.c: New file.
37821         * modules/uninorm/u32-normxfrm: New file.
37822
37823         New module 'uninorm/u16-normxfrm'.
37824         * lib/uninorm/u16-normxfrm.c: New file.
37825         * modules/uninorm/u16-normxfrm: New file.
37826
37827         New module 'uninorm/u8-normxfrm'.
37828         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
37829         declarations.
37830         * lib/uninorm/u8-normxfrm.c: New file.
37831         * lib/uninorm/u-normxfrm.h: New file.
37832         * modules/uninorm/u8-normxfrm: New file.
37833
37834 2009-03-07  Bruno Haible  <bruno@clisp.org>
37835
37836         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
37837         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
37838         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
37839
37840 2009-03-07  Bruno Haible  <bruno@clisp.org>
37841
37842         New module 'memxfrm'.
37843         * lib/memxfrm.h: New file.
37844         * lib/memxfrm.c: New file.
37845         * modules/memxfrm: New file.
37846
37847 2009-03-07  Bruno Haible  <bruno@clisp.org>
37848
37849         New module 'memcmp2'.
37850         * lib/memcmp2.h: New file.
37851         * lib/memcmp2.c: New file.
37852         * modules/memcmp2: New file.
37853
37854 2009-03-07  Bruno Haible  <bruno@clisp.org>
37855
37856         Tests for module 'uninorm/decomposing-form'.
37857         * modules/uninorm/decomposing-form-tests: New file.
37858         * tests/uninorm/test-decomposing-form.c: New file.
37859
37860         New module 'uninorm/decomposing-form'.
37861         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
37862         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
37863         Add 'decomposing_variant' field.
37864         * lib/uninorm/decomposing-form.c: New file.
37865         * lib/uninorm/nfc.c (uninorm_nfc): Update.
37866         * lib/uninorm/nfd.c (uninorm_nfd): Update.
37867         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
37868         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
37869         * modules/uninorm/decomposing-form: New file.
37870         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
37871         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
37872
37873 2009-03-07  Bruno Haible  <bruno@clisp.org>
37874
37875         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
37876         strings.
37877
37878 2009-03-06  Bruno Haible  <bruno@clisp.org>
37879
37880         Tests for module 'uninorm/u32-normcmp'.
37881         * tests/uninorm/test-u32-normcmp.c: New file.
37882         * modules/uninorm/u32-normcmp-tests: New file.
37883
37884         Tests for module 'uninorm/u16-normcmp'.
37885         * tests/uninorm/test-u16-normcmp.c: New file.
37886         * modules/uninorm/u16-normcmp-tests: New file.
37887
37888         Tests for module 'uninorm/u8-normcmp'.
37889         * tests/uninorm/test-u8-normcmp.c: New file.
37890         * modules/uninorm/u8-normcmp-tests: New file.
37891
37892         New module 'uninorm/u32-normcmp'.
37893         * lib/uninorm/u32-normcmp.c: New file.
37894         * modules/uninorm/u32-normcmp: New file.
37895
37896         New module 'uninorm/u16-normcmp'.
37897         * lib/uninorm/u16-normcmp.c: New file.
37898         * modules/uninorm/u16-normcmp: New file.
37899
37900         New module 'uninorm/u8-normcmp'.
37901         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37902         declarations.
37903         * lib/uninorm/u8-normcmp.c: New file.
37904         * lib/uninorm/u-normcmp.h: New file.
37905         * modules/uninorm/u8-normcmp: New file.
37906
37907 2009-03-06  Bruno Haible  <bruno@clisp.org>
37908
37909         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37910         Reported by Eric Blake.
37911
37912 2009-03-06  Eric Blake  <ebb9@byu.net>
37913             Bruno Haible  <bruno@clisp.org>
37914
37915         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37916         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37917         condition.
37918         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37919         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37920         condition.
37921         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37922
37923 2009-03-06  Eric Blake  <ebb9@byu.net>
37924
37925         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37926         to avoid compiler warnings.
37927         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37928
37929 2009-03-05  Bruno Haible  <bruno@clisp.org>
37930
37931         * tests/test-ftell.c (main): Disable test beyond end of file on
37932         FreeMiNT.
37933         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37934
37935 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37936
37937         * lib/filevercmp.c: Move hidden files up in ordering.
37938         * tests/test-filevercmp.c: Add tests for hidden files.
37939
37940 2009-03-04  Bruno Haible  <bruno@clisp.org>
37941
37942         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37943         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37944         AM_CFLAGS.
37945         Reported by Simon Josefsson.
37946
37947 2009-03-03  Bruno Haible  <bruno@clisp.org>
37948
37949         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37950         Reported by Simon Josefsson.
37951
37952         * doc/ld-version-script.texi: Update node reference.
37953
37954 2009-03-03  Bruno Haible  <bruno@clisp.org>
37955
37956         * modules/visibility (License): Change to 'unlimited'.
37957         Suggested by Simon Josefsson.
37958
37959 2009-03-03  Jim Meyering  <meyering@redhat.com>
37960
37961         unlinkdir: cannot_unlink_dir may modify process state
37962         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37963         it's neither thread-safe nor appropriate for use in a library.
37964
37965 2009-03-03  Eric Blake  <ebb9@byu.net>
37966
37967         test-closein: silence test under Darwin
37968         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37969         care if it dies from EPIPE or EBADF.
37970
37971 2009-03-03  Bruno Haible  <bruno@clisp.org>
37972
37973         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37974         earlier.
37975         * doc/visibility.texi: Fix @node and @section.
37976
37977 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37978
37979         * doc/gnulib.texi: Link to sections for ld version script and
37980         visibility.
37981         * doc/visibility.texi: Add @node and @section.
37982         * modules/ld-version-script: New module.
37983         * m4/ld-version-script.m4: New file.
37984         * doc/ld-version-script.texi: New file.
37985
37986 2009-03-02  David Lutterkort  <lutter@redhat.com>
37987
37988         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37989         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37990
37991 2009-03-02  Bruno Haible  <bruno@clisp.org>
37992
37993         * doc/visibility.texi: Mention libtool's -export-symbols option.
37994
37995 2009-03-02  Jim Meyering  <meyering@redhat.com>
37996
37997         announce-gen: new option: --no-print-checksums
37998         * build-aux/announce-gen (usage): Describe it.
37999         (print_checksums): Print a newline here, not in the [*] footnote.
38000         (main): Honor it.
38001
38002 2009-03-01  Bruno Haible  <bruno@clisp.org>
38003
38004         Use socklen_t in the native Windows replacements prototypes.
38005         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
38006         instead of 'int'.
38007         * lib/getsockopt.c (rpl_getsockopt): Likewise.
38008         * lib/setsockopt.c (rpl_setsockopt): Likewise.
38009         * modules/getsockopt (Depends-on): Add socklen.
38010         * modules/setsockopt (Depends-on): Add socklen.
38011
38012 2009-03-01  Bruno Haible  <bruno@clisp.org>
38013
38014         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
38015         least 4.2.
38016
38017 2009-03-01  Eric Blake  <ebb9@byu.net>
38018             Bruno Haible  <bruno@clisp.org>
38019
38020         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
38021         error messages.
38022         * lib/wait-process.c (wait_subprocess): Omit error message about
38023         deadly signal sent to the child of termsigp != NULL.
38024
38025 2009-03-01  Eric Blake  <ebb9@byu.net>
38026
38027         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
38028
38029 2009-03-01  Bruno Haible  <bruno@clisp.org>
38030
38031         Avoid a gcc warning.
38032         * tests/test-sched.c (b): Make global.
38033         Reported by Eric Blake.
38034
38035 2009-01-19  Martin Lambers  <marlam@marlam.de>
38036
38037         Provide POSIX semantics for socket timeout options on W32.
38038         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
38039         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
38040         * modules/setsockopt: Depend on sys_time module for struct timeval.
38041         * modules/getsockopt: Depend on sys_time module for struct timeval.
38042
38043 2009-03-01  Simon Josefsson  <simon@josefsson.org>
38044
38045         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
38046         __USE_GNU, for consistency with netdb.in.h.
38047         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38048
38049 2009-03-01  Bruno Haible  <bruno@clisp.org>
38050
38051         More support for FreeMiNT.
38052         * lib/fseeko.c (rpl_fseeko): Complete last commit.
38053         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38054
38055 2009-03-01  Bruno Haible  <bruno@clisp.org>
38056
38057         More support for FreeMiNT.
38058         * lib/fpurge.c (fpurge): Correct last commit.
38059         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38060
38061 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38062
38063         Fix unportable awk script in vc-list-files.
38064         * build-aux/vc-list-files: In the replacement awk script, use
38065         substr with a second argument of 1, not zero.
38066         Report by Simon Josefsson.
38067
38068 2009-02-28  Bruno Haible  <bruno@clisp.org>
38069
38070         More support for FreeMiNT.
38071         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
38072         to FreeMiNT today.
38073         * lib/fwriting.c (fwriting): Likewise.
38074         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
38075
38076 2009-02-28  Bruno Haible  <bruno@clisp.org>
38077
38078         * tests/test-freadseek.c (main): Disable test beyond end of file on
38079         FreeMiNT.
38080         * tests/test-ftello.c (main): Likewise.
38081         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38082
38083 2009-02-28  Bruno Haible  <bruno@clisp.org>
38084
38085         Add tentative support for FreeMiNT.
38086         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
38087         * lib/fpurge.c (fpurge): Likewise.
38088         * lib/freadable.c (freadable): Likewise.
38089         * lib/freading.c (freading): Likewise.
38090         * lib/freadptr.c (freadptr): Likewise.
38091         * lib/freadseek.c (freadptrinc): Likewise.
38092         * lib/fseeko.c (rpl_fseeko): Likewise.
38093         * lib/fseterr.c (fseterr): Likewise.
38094         * lib/fwritable.c (fwritable): Likewise.
38095         * lib/fwriting.c (fwriting): Likewise.
38096         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
38097         Hourihane.
38098         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38099
38100 2009-02-28  Bruno Haible  <bruno@clisp.org>
38101
38102         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
38103         SIGCHLD.
38104         Reported by Jim Meyering.
38105
38106 2009-02-28  Bruno Haible  <bruno@clisp.org>
38107
38108         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
38109         Mention the results of these tests on various platforms.
38110         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
38111         order.
38112         * doc/posix-functions/printf.texi: Likewise.
38113         * doc/posix-functions/snprintf.texi: Likewise.
38114         * doc/posix-functions/sprintf.texi: Likewise.
38115         * doc/posix-functions/vfprintf.texi: Likewise.
38116         * doc/posix-functions/vprintf.texi: Likewise.
38117         * doc/posix-functions/vsnprintf.texi: Likewise.
38118         * doc/posix-functions/vsprintf.texi: Likewise.
38119         * doc/glibc-functions/obstack_printf.texi: Likewise.
38120         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
38121
38122 2009-02-28  Bruno Haible  <bruno@clisp.org>
38123
38124         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
38125         Reported by Loïc Minier <lool@dooz.org>.
38126
38127 2009-02-27  Bruno Haible  <bruno@clisp.org>
38128
38129         * gnulib-tool (func_import): Make the sed expression used to create the
38130         sed script for updating the .gitignore file POSIX compliant.
38131         Reported by Eric Blake.
38132
38133 2009-02-27  Bruno Haible  <bruno@clisp.org>
38134
38135         * gnulib-tool (sed): Don't alias as "sed --posix".
38136         Reported by Eric Blake.
38137
38138 2009-02-27  Bruno Haible  <bruno@clisp.org>
38139
38140         Avoid test link errors.
38141         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
38142         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
38143         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
38144         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
38145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38146
38147 2009-02-27  Bruno Haible  <bruno@clisp.org>
38148
38149         Avoid spurious "(cached)" in configure output.
38150         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
38151         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
38152         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
38153         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
38154         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
38155         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
38156         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
38157         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
38158         Reported by Eric Blake.
38159
38160 2009-02-27  Eric Blake  <ebb9@byu.net>
38161
38162         printf: fix regression in previous patch
38163         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
38164
38165 2009-02-27  Bruno Haible  <bruno@clisp.org>
38166
38167         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
38168         value.
38169         * lib/stdint.in.h: Likewise.
38170         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
38171
38172 2009-02-27  Eric Blake  <ebb9@byu.net>
38173
38174         doc: mention more functions added in cygwin 1.7.0
38175         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
38176         addition.
38177         * doc/posix-functions/open_wmemstream.texi: Likewise.
38178         * doc/posix-functions/wcsnlen.texi: Likewise.
38179         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38180         * doc/posix-functions/wcstod.texi: Likewise.
38181         * doc/posix-functions/wcstof.texi: Likewise.
38182         * doc/posix-functions/wcstoimax.texi: Likewise.
38183         * doc/posix-functions/wcstok.texi: Likewise.
38184         * doc/posix-functions/wcstoumax.texi: Likewise.
38185
38186         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
38187         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
38188         * doc/posix-functions/fprintf.texi: Update.
38189         * doc/posix-functions/printf.texi: Update.
38190         * doc/posix-functions/snprintf.texi: Update.
38191         * doc/posix-functions/sprintf.texi: Update.
38192         * doc/posix-functions/vfprintf.texi: Update.
38193         * doc/posix-functions/vprintf.texi: Update.
38194         * doc/posix-functions/vsnprintf.texi: Update.
38195         * doc/posix-functions/vsprintf.texi: Update.
38196         * doc/glibc-functions/obstack_printf.texi: Update.
38197         * doc/glibc-functions/obstack_vprintf.texi: Update.
38198
38199 2009-02-26  Eric Blake  <ebb9@byu.net>
38200
38201         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
38202         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
38203         compilation bug by using runtime conversion.
38204         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
38205         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
38206         * modules/ceill-tests (Files): Use nan.h.
38207         * modules/floorl-tests (Files): Likewise.
38208         * modules/frexpl-tests (Files): Likewise.
38209         * modules/isnanl-tests (Files): Likewise.
38210         * modules/ldexpl-tests (Files): Likewise.
38211         * modules/roundl-tests (Files): Likewise.
38212         * modules/truncl-tests (Files): Likewise.
38213         * tests/test-ceill.c (main): Use a working NaN.
38214         * tests/test-floorl.c (main): Likewise.
38215         * tests/test-frexpl.c (main): Likewise.
38216         * tests/test-isnan.c (test_long_double): Likewise.
38217         * tests/test-isnanl.h (main): Likewise.
38218         * tests/test-ldexpl.h (main): Likewise.
38219         * tests/test-roundl.h (main): Likewise.
38220         * tests/test-truncl.h (main): Likewise.
38221         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
38222
38223 2009-02-26  Eric Blake  <ebb9@byu.net>
38224             Bruno Haible  <bruno@clisp.org>
38225
38226         Work around a *printf bug with %ls on Solaris.
38227         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
38228         precision is specified, sprintf stops converting the wide string
38229         argument when the number of bytes that have been produced by this
38230         conversion equals or exceeds the precision.
38231         * doc/posix-functions/fprintf.texi: Update.
38232         * doc/posix-functions/printf.texi: Update.
38233         * doc/posix-functions/snprintf.texi: Update.
38234         * doc/posix-functions/sprintf.texi: Update.
38235         * doc/posix-functions/vfprintf.texi: Update.
38236         * doc/posix-functions/vprintf.texi: Update.
38237         * doc/posix-functions/vsnprintf.texi: Update.
38238         * doc/posix-functions/vsprintf.texi: Update.
38239         * doc/glibc-functions/obstack_printf.texi: Update.
38240         * doc/glibc-functions/obstack_vprintf.texi: Update.
38241
38242 2009-02-26  Eric Blake  <ebb9@byu.net>
38243
38244         stdlib: favor compiler check of random.h
38245         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
38246         to avoid an ObjC random.h installed by Swarm.
38247
38248 2009-02-26  Bruno Haible  <bruno@clisp.org>
38249
38250         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
38251         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
38252         Reported by Gary V. Vaughan <gary@gnu.org>.
38253
38254 2009-02-26  Bruno Haible  <bruno@clisp.org>
38255
38256         Fix *printf behaviour regarding the %ls directive.
38257         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
38258         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
38259         NEED_PRINTF_DIRECTIVE_LS.
38260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
38261         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38262         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38263         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
38264         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
38265         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
38266         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38267         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38271         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
38272         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38273         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38274         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38275         * doc/posix-functions/fprintf.texi: Update.
38276         * doc/posix-functions/printf.texi: Update.
38277         * doc/posix-functions/snprintf.texi: Update.
38278         * doc/posix-functions/sprintf.texi: Update.
38279         * doc/posix-functions/vfprintf.texi: Update.
38280         * doc/posix-functions/vprintf.texi: Update.
38281         * doc/posix-functions/vsnprintf.texi: Update.
38282         * doc/posix-functions/vsprintf.texi: Update.
38283         * doc/glibc-functions/obstack_printf.texi: Update.
38284         * doc/glibc-functions/obstack_vprintf.texi: Update.
38285         Reported by Eric Blake.
38286
38287 2009-02-25  Bruno Haible  <bruno@clisp.org>
38288
38289         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
38290         with known value.
38291         Reported by Gary V. Vaughan <gary@gnu.org>.
38292
38293 2009-02-25  Bruno Haible  <bruno@clisp.org>
38294
38295         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
38296         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
38297         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
38298         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
38299         Reported by Gary V. Vaughan <gary@gnu.org>.
38300
38301 2009-02-25  Bruno Haible  <bruno@clisp.org>
38302
38303         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
38304         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
38305         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
38306         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
38307         Reported by Gary V. Vaughan <gary@gnu.org>.
38308
38309 2009-02-25  Eric Blake  <ebb9@byu.net>
38310
38311         tests: skip fseek/ftell tests if ungetc is broken
38312         * m4/ungetc.m4: New file.
38313         * modules/fseek-tests: Split test, so ungetc dependency is
38314         separate from rest of test.
38315         * modules/fseeko-tests: Likewise.
38316         * modules/ftell-tests: Likewise.
38317         * modules/ftello-tests: Likewise.
38318         * tests/test-fseek.c (main): Isolate ungetc dependency.
38319         * tests/test-fseeko.c (main): Likewise.
38320         * tests/test-ftell.c (main): Likewise.
38321         * tests/test-ftello.c (main): Likewise.
38322         * tests/test-fseek2.sh: New file.
38323         * tests/test-fseeko2.sh: Likewise.
38324         * tests/test-ftell2.sh: Likewise.
38325         * tests/test-ftello2.sh: Likewise.
38326
38327 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
38328
38329         test-getaddrinfo: fix usage of skip return code 77
38330         * tests/test-gettaddrinfo.c: Return skip code 77 only
38331         for first occurance of skip (4x77 is not 77)
38332
38333 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
38334
38335         strtod: avoid C99 decl-after-statement
38336         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
38337
38338 2009-02-24  Eric Blake  <ebb9@byu.net>
38339
38340         strtod: detect HP-UX 11.31 bug
38341         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
38342         Reported by Gary V. Vaughan.
38343
38344 2009-02-23  Bruno Haible  <bruno@clisp.org>
38345
38346         Fix invalid read past end of memory block.
38347         * lib/vasnprintf.c (DCHAR_SET): Define.
38348         (local_wcslen): Define only when needed.
38349         (local_strnlen, local_wcsnlen): New functions.
38350         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
38351         directives that involve a conversion ourselves.
38352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
38353         wcsnlen, mbrtowc, wcrtomb.
38354         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
38355         * tests/test-vasprintf-posix.c (test_function): Likewise.
38356         * tests/test-snprintf-posix.h (test_function): Likewise.
38357         * tests/test-sprintf-posix.h (test_function): Likewise.
38358         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38359
38360 2009-02-22  Bruno Haible  <bruno@clisp.org>
38361
38362         Implement new clarified decomposition of Hangul syllables.
38363         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
38364         of type LTV, return only a pairwise decomposition.
38365         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
38366         Likewise.
38367         * tests/uninorm/test-decomposition.c (main): Updated expected result.
38368         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
38369         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
38370
38371 2009-02-22  Bruno Haible  <bruno@clisp.org>
38372
38373         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
38374         zero-length results and shrink excess allocated memory.
38375         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
38376         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
38377         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
38378         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
38379         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
38380         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
38381         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
38382         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
38383         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
38384         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
38385         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
38386         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
38387
38388 2009-02-21  Bruno Haible  <bruno@clisp.org>
38389
38390         * doc/gnulib.texi: Include safe-alloc.texi earlier.
38391         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
38392         spaces after a period. Put a space between a macro name and its
38393         argument list. Trivial rewordings.
38394         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
38395         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
38396         (main): Return 0 explicitly.
38397
38398 2009-02-21  Bruno Haible  <bruno@clisp.org>
38399
38400         Tests for module 'uninorm/filter'.
38401         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
38402         * modules/uninorm/filter-tests: New file.
38403
38404         New module 'uninorm/filter'.
38405         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
38406         uninorm_filter_flush, uninorm_filter_free): New declarations.
38407         * lib/uninorm/uninorm-filter.c: New file.
38408         * modules/uninorm/filter: New file.
38409
38410 2009-02-21  Bruno Haible  <bruno@clisp.org>
38411
38412         Tests for module 'uninorm/nfkc'.
38413         * tests/uninorm/test-nfkc.c: New file.
38414         * tests/uninorm/test-u8-nfkc.c: New file.
38415         * tests/uninorm/test-u16-nfkc.c: New file.
38416         * tests/uninorm/test-u32-nfkc.c: New file.
38417         * tests/uninorm/test-u32-nfkc-big.sh: New file.
38418         * tests/uninorm/test-u32-nfkc-big.c: New file.
38419         * modules/uninorm/nfkc-tests: New file.
38420
38421         New module 'uninorm/nfkc'.
38422         * lib/uninorm/nfkc.c: New file.
38423         * modules/uninorm/nfkc: New file.
38424
38425         Tests for module 'uninorm/nfkd'.
38426         * tests/uninorm/test-nfkd.c: New file.
38427         * tests/uninorm/test-u8-nfkd.c: New file.
38428         * tests/uninorm/test-u16-nfkd.c: New file.
38429         * tests/uninorm/test-u32-nfkd.c: New file.
38430         * tests/uninorm/test-u32-nfkd-big.sh: New file.
38431         * tests/uninorm/test-u32-nfkd-big.c: New file.
38432         * modules/uninorm/nfkd-tests: New file.
38433
38434         New module 'uninorm/nfkd'.
38435         * lib/uninorm/nfkd.c: New file.
38436         * modules/uninorm/nfkd: New file.
38437
38438         Tests for module 'uninorm/nfc'.
38439         * tests/uninorm/test-nfc.c: New file.
38440         * tests/uninorm/test-u8-nfc.c: New file.
38441         * tests/uninorm/test-u16-nfc.c: New file.
38442         * tests/uninorm/test-u32-nfc.c: New file.
38443         * tests/uninorm/test-u32-nfc-big.sh: New file.
38444         * tests/uninorm/test-u32-nfc-big.c: New file.
38445         * modules/uninorm/nfc-tests: New file.
38446
38447         New module 'uninorm/nfc'.
38448         * lib/uninorm/nfc.c: New file.
38449         * modules/uninorm/nfc: New file.
38450
38451         Tests for module 'uninorm/nfd'.
38452         * tests/uninorm/test-nfd.c: New file.
38453         * tests/uninorm/test-u8-nfd.c: New file.
38454         * tests/uninorm/test-u16-nfd.c: New file.
38455         * tests/uninorm/test-u32-nfd.c: New file.
38456         * tests/uninorm/test-u32-nfd-big.sh: New file.
38457         * tests/uninorm/test-u32-nfd-big.c: New file.
38458         * tests/uninorm/test-u32-normalize-big.h: New file.
38459         * tests/uninorm/test-u32-normalize-big.c: New file.
38460         * tests/uninorm/NormalizationTest.txt: New file, created from
38461         Unicode 5.1.0 NormalizationTest.txt.
38462         * modules/uninorm/nfd-tests: New file.
38463
38464         New module 'uninorm/nfd'.
38465         * lib/uninorm/nfd.c: New file.
38466         * modules/uninorm/nfd: New file.
38467
38468         New module 'uninorm/u32-normalize'.
38469         * lib/uninorm/u32-normalize.c: New file.
38470         * modules/uninorm/u32-normalize: New file.
38471
38472         New module 'uninorm/u16-normalize'.
38473         * lib/uninorm/u16-normalize.c: New file.
38474         * modules/uninorm/u16-normalize: New file.
38475
38476         New module 'uninorm/u8-normalize'.
38477         * lib/uninorm/u8-normalize.c: New file.
38478         * lib/uninorm/normalize-internal.h: New file.
38479         * lib/uninorm/u-normalize-internal.h: New file.
38480         * modules/uninorm/u8-normalize: New file.
38481
38482         New module 'uninorm/decompose-internal'.
38483         * lib/uninorm/decompose-internal.c: New file.
38484         * modules/uninorm/decompose-internal: New file.
38485
38486         Tests for module 'uninorm/composition'.
38487         * tests/uninorm/test-composition.c: New file.
38488         * modules/uninorm/composition-tests: New file.
38489
38490         New module 'uninorm/composition'.
38491         * lib/uninorm/composition.c: New file.
38492         * lib/uninorm/composition-table.gperf: New file, generated by
38493         gen-uni-tables.
38494         * modules/uninorm/composition: New file.
38495
38496         Tests for module 'uninorm/compat-decomposition'.
38497         * tests/uninorm/test-compat-decomposition.c: New file.
38498         * modules/uninorm/compat-decomposition-tests: New file.
38499
38500         New module 'uninorm/compat-decomposition'.
38501         * lib/uninorm/decompose-internal.h: New file.
38502         * lib/uninorm/compat-decomposition.c: New file.
38503         * modules/uninorm/compat-decomposition: New file.
38504
38505         Tests for module 'uninorm/canonical-decomposition'.
38506         * tests/uninorm/test-canonical-decomposition.c: New file.
38507         * modules/uninorm/canonical-decomposition-tests: New file.
38508
38509         New module 'uninorm/canonical-decomposition'.
38510         * lib/uninorm/canonical-decomposition.c: New file.
38511         * modules/uninorm/canonical-decomposition: New file.
38512
38513         Tests for module 'uninorm/decomposition'.
38514         * tests/uninorm/test-decomposition.c: New file.
38515         * modules/uninorm/decomposition-tests: New file.
38516
38517         New module 'uninorm/decomposition'.
38518         * lib/uninorm/decomposition.c: New file.
38519         * modules/uninorm/decomposition: New file.
38520
38521         New module 'uninorm/decomposition-table'.
38522         * lib/uninorm/decomposition-table.h: New file.
38523         * lib/uninorm/decomposition-table.c: New file.
38524         * lib/uninorm/decomposition-table1.h: New file, generated by
38525         gen-uni-tables.
38526         * lib/uninorm/decomposition-table2.h: New file, generated by
38527         gen-uni-tables.
38528         * modules/uninorm/decomposition-table: New file.
38529
38530         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
38531         (UC_DECOMP_*): New enumeration items.
38532         (get_decomposition): New function.
38533         (struct decomp_table): New type.
38534         (output_decomposition, output_decomposition_tables): New functions.
38535         (unicode_composition_exclusions): New variable.
38536         (fill_composition_exclusions, debug_output_composition_tables): New
38537         functions.
38538         (main): Accept one more argument. Invoke fill_composition_exclusions.
38539         Output decomposition and composition tables.
38540
38541         New module 'uninorm/base'.
38542         * lib/uninorm.h: New file.
38543         * lib/unictype.h: Update comment.
38544         * modules/uninorm/base: New file.
38545
38546 2009-02-21  David Lutterkort  <lutter@redhat.com>
38547
38548         Tests for module 'safe-alloc'.
38549         * tests/test-safe-alloc.c: New file.
38550         * modules/safe-alloc-tests: New file.
38551
38552         New module 'safe-alloc'.
38553         * lib/safe-alloc.h: New file.
38554         * lib/safe-alloc.c: New file.
38555         * m4/safe-alloc.m4: New file.
38556         * modules/safe-alloc: New file.
38557         * doc/safe-alloc.texi: New file.
38558         * doc/gnulib.texi: Include it.
38559         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
38560         safe-alloc.
38561
38562 2009-02-18  Bruno Haible  <bruno@clisp.org>
38563
38564         Fix link error on non-glibc systems.
38565         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
38566         variable.
38567         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38568
38569 2009-02-18  Jim Meyering  <meyering@redhat.com>
38570
38571         fts: avoid used-uninitialized error due to recent change
38572         * lib/fts.c (fts_read): Guard uses of the new member,
38573         parent->fts_n_dirs_remaining, since it's not relevant for
38574         the parent of a directory specified on the command-line.
38575
38576 2009-02-17  James Youngman  <jay@gnu.org>
38577             Bruno Haible  <bruno@clisp.org>
38578
38579         * m4/include_next.m4: Reformulate comment.
38580
38581 2009-02-16  Jim Meyering  <meyering@redhat.com>
38582
38583         fts: add #if guards so that the fts_lgpl module still builds
38584         * lib/fts.c: Guard just-added hash-table-using parts with
38585         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
38586         Reported by Simon Josefsson.
38587
38588 2009-02-15  Bruno Haible  <bruno@clisp.org>
38589
38590         * modules/array-mergesort-tests: New file.
38591         * tests/test-array-mergesort.c: New file.
38592
38593         New module 'array-mergesort'.
38594         * modules/array-mergesort: New file.
38595         * lib/array-mergesort.h: New file.
38596
38597 2009-02-15  Bruno Haible  <bruno@clisp.org>
38598
38599         Fix 2009-02-07 commit.
38600         * lib/gen-uni-tables.c (output_predicate, output_category,
38601         output_combclass, output_bidi_category, output_decimal_digit,
38602         output_digit, output_numeric, output_mirror, output_scripts,
38603         output_ident_category, output_simple_mapping): Fix format directives.
38604         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
38605
38606 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
38607
38608         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
38609         fixes are available from IBM.
38610
38611 2009-02-13  Jim Meyering  <meyering@redhat.com>
38612
38613         fts: arrange not to stat non-directories in more cases
38614         This makes GNU find (when it doesn't need to stat each file)
38615         *much* more efficient at traversing reiserfs file systems.
38616         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
38617         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
38618         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
38619         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
38620         (leaf_optimization_applies): New function.
38621         (LCO_hash, LCO_compare): New helper functions.
38622         (link_count_optimize_ok): New function.
38623         (fts_stat): Initialize new member (if dir).
38624         (fts_read): Decrement parent's fts_n_dirs_remaining count if
38625         we've just stat'ed a directory.  Skip the stat call when possible.
38626         ---
38627         Note this AFS-related exchange:
38628         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
38629         and note find's pioctl call in find/fstype.c.
38630         But that is necessary only if you want to enable the
38631         optimization for AFS, and for now, I don't.
38632
38633         fts: move a function definition "up" (no semantic change)
38634         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
38635         "up" to precede upcoming use of a related function.
38636
38637 2009-02-11  Jim Meyering  <meyering@redhat.com>
38638
38639         fts: correct internal computation of nlinks (optimization-related)
38640         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
38641         whether the current entry is a directory, so don't test it.
38642
38643 2009-02-10  Bruno Haible  <bruno@clisp.org>
38644
38645         Tests for module 'uniwbrk/ulc-wordbreaks'.
38646         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
38647         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
38648         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
38649
38650         Tests for module 'uniwbrk/u32-wordbreaks'.
38651         * modules/uniwbrk/u32-wordbreaks-tests: New file.
38652         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
38653
38654         Tests for module 'uniwbrk/u16-wordbreaks'.
38655         * modules/uniwbrk/u16-wordbreaks-tests: New file.
38656         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
38657
38658         Tests for module 'uniwbrk/u8-wordbreaks'.
38659         * modules/uniwbrk/u8-wordbreaks-tests: New file.
38660         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
38661
38662 2009-02-10  Bruno Haible  <bruno@clisp.org>
38663
38664         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
38665         property.
38666         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
38667         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
38668         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
38669
38670 2009-02-10  Simon Josefsson  <simon@josefsson.org>
38671
38672         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
38673         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
38674
38675 2009-02-10  Bruno Haible  <bruno@clisp.org>
38676
38677         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
38678         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
38679         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
38680         * lib/unilbrk/u8-possible-linebreaks.c: Update.
38681         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
38682         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
38683
38684 2009-02-09  Simon Josefsson  <simon@josefsson.org>
38685
38686         * lib/sockets.h (gl_fd_to_handle): New function.
38687
38688         * tests/test-sockets.c: Call gl_fd_to_handle.
38689
38690 2009-02-09  Bruno Haible  <bruno@clisp.org>
38691
38692         * doc/havelib.texi: Document the conventions on bi-arch systems.
38693
38694 2009-02-08  Bruno Haible  <bruno@clisp.org>
38695
38696         Document the AC_LIB_LINKFLAGS macro.
38697         * doc/havelib.texi: New file, mostly written on 2005-05-24.
38698         * doc/gnulib.texi: Include it.
38699
38700 2009-02-08  Bruno Haible  <bruno@clisp.org>
38701
38702         Fix wrong order of sections, compared to TOC.
38703         * doc/gnulib.texi: Include relocatable-maint.texi after the
38704         "Regular expressions" node, not before.
38705
38706 2009-02-08  Bruno Haible  <bruno@clisp.org>
38707
38708         Tests for module 'unicase/totitle'.
38709         * modules/unicase/totitle-tests: New file.
38710
38711         Tests for module 'unicase/tolower'.
38712         * modules/unicase/tolower-tests: New file.
38713
38714         Tests for module 'unicase/toupper'.
38715         * modules/unicase/toupper-tests: New file.
38716         * tests/unicase/test-mapping-part1.h: New file.
38717         * tests/unicase/test-mapping-part2.h: New file.
38718
38719         New module 'unicase/totitle'.
38720         * modules/unicase/totitle: New file.
38721         * lib/unicase/totitle.c: New file.
38722
38723         New module 'unicase/tolower'.
38724         * modules/unicase/tolower: New file.
38725         * lib/unicase/tolower.c: New file.
38726
38727         New module 'unicase/toupper'.
38728         * modules/unicase/toupper: New file.
38729         * lib/unicase/toupper.c: New file.
38730         * lib/unicase/simple-mapping.h: New file.
38731
38732         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
38733         (mapping_table): New structure.
38734         (output_simple_mapping): New function.
38735         (main): Invoke output_simple_mapping_test and output_simple_mapping.
38736         * modules/gen-uni-tables (Description): Update.
38737         * lib/unicase/toupper.h: New file, automatically generated by
38738         gen-uni-tables.
38739         * lib/unicase/tolower.h: New file, automatically generated by
38740         gen-uni-tables.
38741         * lib/unicase/totitle.h: New file, automatically generated by
38742         gen-uni-tables.
38743         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
38744         gen-uni-tables.
38745         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
38746         gen-uni-tables.
38747         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
38748         gen-uni-tables.
38749
38750         New module 'unicase/base'.
38751         * modules/unicase/base: New file.
38752         * lib/unicase.h: New file.
38753
38754 2009-02-08  Bruno Haible  <bruno@clisp.org>
38755
38756         New module 'uniwbrk/ulc-wordbreaks'.
38757         * modules/uniwbrk/ulc-wordbreaks: New file.
38758         * lib/uniwbrk/ulc-wordbreaks.c: New file.
38759
38760         New module 'uniwbrk/u32-wordbreaks'.
38761         * modules/uniwbrk/u32-wordbreaks: New file.
38762         * lib/uniwbrk/u32-wordbreaks.c: New file.
38763
38764         New module 'uniwbrk/u16-wordbreaks'.
38765         * modules/uniwbrk/u16-wordbreaks: New file.
38766         * lib/uniwbrk/u16-wordbreaks.c: New file.
38767
38768         New module 'uniwbrk/u8-wordbreaks'.
38769         * modules/uniwbrk/u8-wordbreaks: New file.
38770         * lib/uniwbrk/u8-wordbreaks.c: New file.
38771         * lib/uniwbrk/u-wordbreaks.h: New file.
38772
38773         New module 'uniwbrk/table'.
38774         * modules/uniwbrk/table: New file.
38775         * lib/uniwbrk/wbrktable.h: New file.
38776         * lib/uniwbrk/wbrktable.c: New file.
38777
38778         New module 'uniwbrk/wordbreak-property'.
38779         * modules/uniwbrk/wordbreak-property: New file.
38780         * lib/uniwbrk/wordbreak-property.c: New file.
38781
38782         * lib/gen-uni-tables.c (WBP_*): New enum items.
38783         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
38784         (unicode_org_wbp): New variable.
38785         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
38786         New functions.
38787         (wbp_table): New structure.
38788         (output_wbp, output_wbrk_tables): New functions.
38789         (main): Accept additional argument. Invoke fill_org_wbp,
38790         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
38791         output_wbrk_tables.
38792         * modules/gen-uni-tables (Description): Update.
38793         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
38794         gen-uni-tables.
38795
38796         New module 'uniwbrk/base'.
38797         * modules/uniwbrk/base: New file.
38798         * lib/uniwbrk.h: New file.
38799
38800 2009-02-08  Bruno Haible  <bruno@clisp.org>
38801
38802         Update to Unicode 5.1.0.
38803         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38804         U+2185..U+2188.
38805         (is_property_default_ignorable_code_point): Don't include characters
38806         of category Cc or Cs and not-a-characters.
38807         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38808         U+0D79, U+109E, U+109F, U+A60C.
38809         * lib/unictype/bidi_of.h: Regenerated.
38810         * lib/unictype/blocks.h: Regenerated.
38811         * lib/unictype/categ_C.h: Regenerated.
38812         * lib/unictype/categ_Cf.h: Regenerated.
38813         * lib/unictype/categ_Cn.h: Regenerated.
38814         * lib/unictype/categ_L.h: Regenerated.
38815         * lib/unictype/categ_Ll.h: Regenerated.
38816         * lib/unictype/categ_Lm.h: Regenerated.
38817         * lib/unictype/categ_Lo.h: Regenerated.
38818         * lib/unictype/categ_Lu.h: Regenerated.
38819         * lib/unictype/categ_M.h: Regenerated.
38820         * lib/unictype/categ_Mc.h: Regenerated.
38821         * lib/unictype/categ_Me.h: Regenerated.
38822         * lib/unictype/categ_Mn.h: Regenerated.
38823         * lib/unictype/categ_N.h: Regenerated.
38824         * lib/unictype/categ_Nd.h: Regenerated.
38825         * lib/unictype/categ_Nl.h: Regenerated.
38826         * lib/unictype/categ_No.h: Regenerated.
38827         * lib/unictype/categ_P.h: Regenerated.
38828         * lib/unictype/categ_Pd.h: Regenerated.
38829         * lib/unictype/categ_Pe.h: Regenerated.
38830         * lib/unictype/categ_Pf.h: Regenerated.
38831         * lib/unictype/categ_Pi.h: Regenerated.
38832         * lib/unictype/categ_Po.h: Regenerated.
38833         * lib/unictype/categ_Ps.h: Regenerated.
38834         * lib/unictype/categ_S.h: Regenerated.
38835         * lib/unictype/categ_Sk.h: Regenerated.
38836         * lib/unictype/categ_Sm.h: Regenerated.
38837         * lib/unictype/categ_So.h: Regenerated.
38838         * lib/unictype/categ_of.h: Regenerated.
38839         * lib/unictype/combining.h: Regenerated.
38840         * lib/unictype/ctype_alnum.h: Regenerated.
38841         * lib/unictype/ctype_alpha.h: Regenerated.
38842         * lib/unictype/ctype_graph.h: Regenerated.
38843         * lib/unictype/ctype_lower.h: Regenerated.
38844         * lib/unictype/ctype_print.h: Regenerated.
38845         * lib/unictype/ctype_punct.h: Regenerated.
38846         * lib/unictype/ctype_upper.h: Regenerated.
38847         * lib/unictype/decdigit.h: Regenerated.
38848         * lib/unictype/digit.h: Regenerated.
38849         * lib/unictype/mirror.h: Regenerated.
38850         * lib/unictype/numeric.h: Regenerated.
38851         * lib/unictype/pr_alphabetic.h: Regenerated.
38852         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
38853         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
38854         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
38855         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
38856         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
38857         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
38858         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
38859         * lib/unictype/pr_combining.h: Regenerated.
38860         * lib/unictype/pr_dash.h: Regenerated.
38861         * lib/unictype/pr_decimal_digit.h: Regenerated.
38862         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
38863         * lib/unictype/pr_deprecated.h: Regenerated.
38864         * lib/unictype/pr_diacritic.h: Regenerated.
38865         * lib/unictype/pr_extender.h: Regenerated.
38866         * lib/unictype/pr_format_control.h: Regenerated.
38867         * lib/unictype/pr_grapheme_base.h: Regenerated.
38868         * lib/unictype/pr_grapheme_extend.h: Regenerated.
38869         * lib/unictype/pr_grapheme_link.h: Regenerated.
38870         * lib/unictype/pr_id_continue.h: Regenerated.
38871         * lib/unictype/pr_id_start.h: Regenerated.
38872         * lib/unictype/pr_ideographic.h: Regenerated.
38873         * lib/unictype/pr_ignorable_control.h: Regenerated.
38874         * lib/unictype/pr_lowercase.h: Regenerated.
38875         * lib/unictype/pr_math.h: Regenerated.
38876         * lib/unictype/pr_numeric.h: Regenerated.
38877         * lib/unictype/pr_other_alphabetic.h: Regenerated.
38878         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
38879         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
38880         * lib/unictype/pr_other_id_continue.h: Regenerated.
38881         * lib/unictype/pr_other_lowercase.h: Regenerated.
38882         * lib/unictype/pr_other_math.h: Regenerated.
38883         * lib/unictype/pr_punctuation.h: Regenerated.
38884         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38885         * lib/unictype/pr_soft_dotted.h: Regenerated.
38886         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38887         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38888         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38889         * lib/unictype/pr_uppercase.h: Regenerated.
38890         * lib/unictype/pr_xid_continue.h: Regenerated.
38891         * lib/unictype/pr_xid_start.h: Regenerated.
38892         * lib/unictype/pr_zero_width.h: Regenerated.
38893         * lib/unictype/scripts.h: Regenerated.
38894         * lib/unictype/scripts_byname.gperf: Regenerated.
38895         * lib/unictype/sy_java_ident.h: Regenerated.
38896         * lib/unilbrk/lbrkprop1.h: Regenerated.
38897         * lib/unilbrk/lbrkprop2.h: Regenerated.
38898         * tests/unictype/test-categ_C.c: Regenerated.
38899         * tests/unictype/test-categ_Cf.c: Regenerated.
38900         * tests/unictype/test-categ_Cn.c: Regenerated.
38901         * tests/unictype/test-categ_L.c: Regenerated.
38902         * tests/unictype/test-categ_Ll.c: Regenerated.
38903         * tests/unictype/test-categ_Lm.c: Regenerated.
38904         * tests/unictype/test-categ_Lo.c: Regenerated.
38905         * tests/unictype/test-categ_Lu.c: Regenerated.
38906         * tests/unictype/test-categ_M.c: Regenerated.
38907         * tests/unictype/test-categ_Mc.c: Regenerated.
38908         * tests/unictype/test-categ_Me.c: Regenerated.
38909         * tests/unictype/test-categ_Mn.c: Regenerated.
38910         * tests/unictype/test-categ_N.c: Regenerated.
38911         * tests/unictype/test-categ_Nd.c: Regenerated.
38912         * tests/unictype/test-categ_Nl.c: Regenerated.
38913         * tests/unictype/test-categ_No.c: Regenerated.
38914         * tests/unictype/test-categ_P.c: Regenerated.
38915         * tests/unictype/test-categ_Pd.c: Regenerated.
38916         * tests/unictype/test-categ_Pe.c: Regenerated.
38917         * tests/unictype/test-categ_Pf.c: Regenerated.
38918         * tests/unictype/test-categ_Pi.c: Regenerated.
38919         * tests/unictype/test-categ_Po.c: Regenerated.
38920         * tests/unictype/test-categ_Ps.c: Regenerated.
38921         * tests/unictype/test-categ_S.c: Regenerated.
38922         * tests/unictype/test-categ_Sk.c: Regenerated.
38923         * tests/unictype/test-categ_Sm.c: Regenerated.
38924         * tests/unictype/test-categ_So.c: Regenerated.
38925         * tests/unictype/test-ctype_alnum.c: Regenerated.
38926         * tests/unictype/test-ctype_alpha.c: Regenerated.
38927         * tests/unictype/test-ctype_graph.c: Regenerated.
38928         * tests/unictype/test-ctype_lower.c: Regenerated.
38929         * tests/unictype/test-ctype_print.c: Regenerated.
38930         * tests/unictype/test-ctype_punct.c: Regenerated.
38931         * tests/unictype/test-ctype_upper.c: Regenerated.
38932         * tests/unictype/test-decdigit.h: Regenerated.
38933         * tests/unictype/test-digit.h: Regenerated.
38934         * tests/unictype/test-numeric.h: Regenerated.
38935         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38936         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38937         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38938         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38939         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38940         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38941         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38942         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38943         * tests/unictype/test-pr_combining.c: Regenerated.
38944         * tests/unictype/test-pr_dash.c: Regenerated.
38945         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38946         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38947         * tests/unictype/test-pr_deprecated.c: Regenerated.
38948         * tests/unictype/test-pr_diacritic.c: Regenerated.
38949         * tests/unictype/test-pr_extender.c: Regenerated.
38950         * tests/unictype/test-pr_format_control.c: Regenerated.
38951         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38952         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38953         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38954         * tests/unictype/test-pr_id_continue.c: Regenerated.
38955         * tests/unictype/test-pr_id_start.c: Regenerated.
38956         * tests/unictype/test-pr_ideographic.c: Regenerated.
38957         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38958         * tests/unictype/test-pr_lowercase.c: Regenerated.
38959         * tests/unictype/test-pr_math.c: Regenerated.
38960         * tests/unictype/test-pr_numeric.c: Regenerated.
38961         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38962         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38963         Regenerated.
38964         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38965         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38966         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38967         * tests/unictype/test-pr_other_math.c: Regenerated.
38968         * tests/unictype/test-pr_punctuation.c: Regenerated.
38969         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38970         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38971         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38972         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38973         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38974         * tests/unictype/test-pr_uppercase.c: Regenerated.
38975         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38976         * tests/unictype/test-pr_xid_start.c: Regenerated.
38977         * tests/unictype/test-pr_zero_width.c: Regenerated.
38978
38979         Update to Unicode 5.1.0.
38980         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38981         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38982         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38983         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38984         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38985         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38986         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38987         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38988         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38989         (nonspacing_table_ind): Update.
38990         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38991
38992         Update to Unicode 5.1.0.
38993         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38994         code transform.
38995         * lib/uniname/uniname.c (unicode_character_name,
38996         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38997         * lib/uniname/uninames.h: Regenerated.
38998         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38999
39000 2009-02-07  Bruno Haible  <bruno@clisp.org>
39001
39002         Merge gen-ctype and gen-lbrk into a single program.
39003         * lib/gen-uni-tables.c: New file, incorporating
39004         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
39005         Add directory prefixes to the names of the generated files.
39006         * lib/unictype/gen-ctype.c: Remove file.
39007         * lib/unilbrk/gen-lbrk.c: Remove file.
39008         * modules/gen-uni-tables: New file.
39009         * modules/unictype/gen-ctype: Remove file.
39010         * modules/unilbrk/gen-lbrk: Remove file.
39011
39012 2009-02-07  Bruno Haible  <bruno@clisp.org>
39013
39014         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
39015
39016         New module 'unistr/u32-strcoll'.
39017         * modules/unistr/u32-strcoll: New file.
39018         * lib/unistr/u32-strcoll.c: New file.
39019
39020         New module 'unistr/u16-strcoll'.
39021         * modules/unistr/u16-strcoll: New file.
39022         * lib/unistr/u16-strcoll.c: New file.
39023
39024         New module 'unistr/u8-strcoll'.
39025         * modules/unistr/u8-strcoll: New file.
39026         * lib/unistr/u8-strcoll.c: New file.
39027         * lib/unistr/u-strcoll.h: New file.
39028
39029 2009-02-07  Bruno Haible  <bruno@clisp.org>
39030
39031         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
39032         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39033         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39034         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
39035         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
39036         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
39037
39038 2009-02-07  Bruno Haible  <bruno@clisp.org>
39039
39040         Make 64-bit clean.
39041         * lib/unictype/gen-ctype.c (output_predicate, output_category,
39042         output_combclass, output_bidi_category, output_decimal_digit,
39043         output_digit, output_numeric, output_mirror, output_scripts,
39044         output_ident_category): Use proper width specifier in format strings.
39045
39046 2009-02-07  Bruno Haible  <bruno@clisp.org>
39047
39048         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
39049         failure behaviour.
39050
39051 2009-02-07  Jim Meyering  <meyering@redhat.com>
39052
39053         regex: avoid compilation failure with upcoming gcc-4.4
39054         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
39055         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
39056         "... error: integer overflow in preprocessor expression".
39057
39058 2009-02-05  Ben Pfaff  <blp@gnu.org>
39059
39060         Fix link errors on Windows when close module is used.
39061         * modules/close: Add $(LIB_CLOSE) to Link section.
39062         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
39063         $(LIB_CLOSE) on Windows.
39064
39065 2009-02-05  Jim Meyering  <meyering@redhat.com>
39066
39067         still avoid unused-parameter warnings, but do it cleanly
39068         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
39069         (get_fs_usage): Cast to void instead.
39070         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
39071         (dev_from_mount_options, read_file_system_list): Cast to void.
39072         Prompted by Bruno Haible.
39073
39074 2009-02-04  Jim Meyering  <meyering@redhat.com>
39075
39076         fsusage.c: correct copyright year
39077         * lib/fsusage.c: Reflect year in which the change is pushed into
39078
39079         avoid misc. warnings
39080         * lib/fsusage.c (UNUSED_PARAM): Define.
39081         (get_fs_usage): Mark parameter "disk" as unused.
39082         * lib/getugroups.c (getgrent): Use "void" in prototype.
39083         * lib/mountlist.c: Mark unused parameters.
39084         (read_file_system_list): Declare a local with "const".
39085         * lib/nanosleep.c (getnow): Declare static.
39086         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
39087
39088         dirfd: set errno upon failure
39089         * lib/dirfd.c: Include <errno.h>.
39090         Set errno to ENOTSUP when returning -1.
39091         * modules/dirfd (Depends-on): Add errno.
39092         Suggested by John Kodis <kodis@comcast.net>.
39093
39094 2009-02-01  Bruno Haible  <bruno@clisp.org>
39095
39096         Don't assume sizeof (long) >= sizeof (void *).
39097         * lib/memcmp.c: Include stdint.h.
39098         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
39099         srcp2 to 'const byte *'.
39100         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
39101         types to uintptr_t.
39102         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
39103         * modules/memcmp (Depends-on): Add stdint.
39104         Reported by Ozkan Sezer <sezeroz@gmail.com>.
39105
39106 2009-01-30  Eric Blake  <ebb9@byu.net>
39107
39108         fix more require-before-expand issues
39109         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
39110         expand, AC_PROG_AWK.
39111         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
39112
39113 2009-01-28  Eric Blake  <ebb9@byu.net>
39114
39115         version-etc: use consistent URL formatting
39116         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
39117         Improve formatting.  Use fputs for string without %.
39118
39119 2009-01-28  Jim Meyering  <meyering@redhat.com>
39120
39121         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
39122         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
39123         "underquoted definition of NAME" from autoconf-2.59.
39124
39125 2009-01-28  Bruno Haible  <bruno@clisp.org>
39126
39127         * doc/gnulib.texi: Add "Obsolete modules" to index.
39128
39129 2009-01-28  Jim Meyering  <meyering@redhat.com>
39130
39131         useless-if-before-free: recognize more variants
39132         * build-aux/useless-if-before-free: Also recognize e.g.,
39133         if (NULL != p) free (p);
39134
39135 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
39136
39137         test-getaddrinfo: skip (don't fail) this test when there's no network
39138         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
39139         on the presumption that it means you lack network access.
39140
39141 2009-01-26  Jim Meyering  <meyering@redhat.com>
39142
39143         fflush: avoid warnings on modern systems
39144         * lib/fflush.c (rpl_fflush): Move declarations of locals,
39145         pos and result, into scopes where they're used.
39146
39147 2009-01-26  Eric Blake  <ebb9@byu.net>
39148
39149         Silence warning reintroduced by recent extensions patch.
39150         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
39151         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
39152         autoconf.
39153
39154         Backport improved autoconf semantics of AC_DEFUN_ONCE.
39155         * m4/00gnulib.m4: New file.
39156         * gnulib-tool (func_get_filelist): Always use it.
39157         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
39158         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
39159
39160 2009-01-25  Bruno Haible  <bruno@clisp.org>
39161
39162         Make test-quotearg work on MacOS X and AIX.
39163         * tests/test-quotearg.sh: New file.
39164         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
39165         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
39166         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
39167         include <libintl.h>.
39168         (fake_locale): Remove variable.
39169         (gettext, dgettext, dcgettext): Remove functions.
39170         (main): Instead of setting a fake locale, set a real locale. Call
39171         textdomain and bindtextdomain.
39172         * modules/quotearg-tests (Files): Add the new files.
39173         (Depends-on): Add gettext, setenv, unsetenv.
39174         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
39175         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
39176         Augment TESTS_ENVIRONMENT.
39177
39178 2009-01-25  Bruno Haible  <bruno@clisp.org>
39179
39180         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
39181         fr_FR.ISO8859-1 locale on MacOS X.
39182         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
39183         ja_JP.eucJP locale on MacOS X.
39184         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
39185         zh_CN.GB18030 locale on MacOS X.
39186
39187 2009-01-25  Bruno Haible  <bruno@clisp.org>
39188
39189         Avoid link errors on MacOS X 10.3.
39190         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
39191         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39192
39193 2009-01-25  Bruno Haible  <bruno@clisp.org>
39194
39195         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39196         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
39197         * modules/pipe (Files): Remove m4/posix_spawn.m4.
39198         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39199         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
39200         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39201         posix_spawnattr_init, posix_spawnattr_setsigmask,
39202         posix_spawnattr_setflags, posix_spawnattr_destroy.
39203
39204         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39205         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
39206         * modules/execute (Files): Remove m4/posix_spawn.m4.
39207         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39208         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39209         posix_spawnattr_init, posix_spawnattr_setsigmask,
39210         posix_spawnattr_setflags, posix_spawnattr_destroy.
39211
39212 2009-01-25  Bruno Haible  <bruno@clisp.org>
39213
39214         * lib/glthread/threadlib.c: Include <stdlib.h>.
39215
39216 2009-01-25  Bruno Haible  <bruno@clisp.org>
39217
39218         * lib/glthread/threadlib.c (dummy): New declaration.
39219
39220 2009-01-25  Bruno Haible  <bruno@clisp.org>
39221
39222         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
39223         multibyte characters also for the GB18030 encoding. Don't crash when
39224         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
39225
39226 2009-01-25  Bruno Haible  <bruno@clisp.org>
39227
39228         Avoid redefining 'struct random_data' on OSF/1 5.1.
39229         * lib/stdlib.in.h: Include <random.h> if it exists.
39230         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
39231         HAVE_RANDOM_H. Include <random.h> when testing whether
39232         'struct random_data' exists.
39233         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
39234
39235 2009-01-25  Bruno Haible  <bruno@clisp.org>
39236
39237         Don't install charset.alias on MacOS X >= 10.3.
39238         * lib/localcharset.c (DARWIN7): New macro.
39239         (get_charset_aliases): Hardcode the result for Darwin7.
39240         * modules/localcharset (install-exec-local): Don't install
39241         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
39242
39243 2009-01-25  Bruno Haible  <bruno@clisp.org>
39244
39245         Don't install charset.alias on mingw and Cygwin.
39246         * modules/localcharset (install-exec-local): Don't install
39247         charset.alias on mingw and Cygwin, if the file does not yet exist.
39248         The result for these platforms is hardcoded in localcharset.c.
39249
39250 2009-01-25  Bruno Haible  <bruno@clisp.org>
39251
39252         Make it possible again to use AC_GNU_SOURCE together with gnulib.
39253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
39254         before requiring AC_USE_SYSTEM_EXTENSIONS.
39255
39256 2009-01-25  Jim Meyering  <meyering@redhat.com>
39257
39258         c-strtod: avoid warnings
39259         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
39260         "assignment discards qualifiers from pointer target type" warnings.
39261
39262 2009-01-24  Bruno Haible  <bruno@clisp.org>
39263
39264         Add support for non-UTF-8 locales on MacOS X.
39265         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
39266         canonical encodings. For Darwin 7 and newer, don't map traditional
39267         encodings to UTF-8.
39268         Reported by Vincent Lefevre <vincent@vinc17.org>
39269         at <http://savannah.gnu.org/bugs/?25235>.
39270
39271 2009-01-24  Bruno Haible  <bruno@clisp.org>
39272
39273         * doc/gnulib.texi (Obsolete modules): New section.
39274         Reported by Mike Frysinger <vapier@gentoo.org>.
39275
39276 2009-01-24  Bruno Haible  <bruno@clisp.org>
39277
39278         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
39279         (%.dvi): New rule.
39280
39281 2009-01-24  Bruno Haible  <bruno@clisp.org>
39282
39283         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
39284         Reported by Eric Blake.
39285
39286 2009-01-24  Bruno Haible  <bruno@clisp.org>
39287
39288         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
39289         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
39290         Reported by Gary V. Vaughan <gary@gnu.org>.
39291
39292 2009-01-24  Bruno Haible  <bruno@clisp.org>
39293
39294         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
39295
39296 2009-01-23  Bruno Haible  <bruno@clisp.org>
39297
39298         Make c-strtod, c-strtold usable in libraries.
39299         * lib/c-strtod.c: Include string.h instead of xalloc.h.
39300         (C_STRTOD): Call strdup instead of xstrdup.
39301         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
39302         * modules/c-strtold (Depends-on): Likewise.
39303         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
39304         * NEWS: Mention the change.
39305         Reported by Michael Gold <mgold@ncf.ca>.
39306
39307 2009-01-23  Jim Meyering  <meyering@redhat.com>
39308
39309         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
39310         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
39311         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
39312
39313 2009-01-23  Simon Josefsson  <simon@josefsson.org>
39314
39315         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
39316         GNU CoreUtils.
39317         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
39318         * modules/version-etc (Description): Update.
39319
39320 2009-01-22  Bruno Haible  <bruno@clisp.org>
39321
39322         Cache the C locale object.
39323         * lib/c-strtod.c (c_locale_cache): New variable.
39324         (c_locale): New function.
39325         (C_STRTOD): Use it, and don't call freelocale.
39326         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
39327         Suggested by Paolo Bonzini.
39328
39329 2009-01-21  Bruno Haible  <bruno@clisp.org>
39330
39331         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
39332         conditions other than overflow.
39333
39334 2009-01-21  Bruno Haible  <bruno@clisp.org>
39335
39336         * lib/c-strtod.c: Include errno.h.
39337         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
39338         value from STRTOD_L and STRTOD.
39339
39340 2009-01-21  Bruno Haible  <bruno@clisp.org>
39341         and Jim Meyering  <meyering@redhat.com>
39342
39343         nanosleep: skip configure test (fail it) for apple universal builds
39344         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
39345         universal builds, assume that nanosleep does not work.
39346         * modules/nanosleep (Depends-on): Add multiarch.
39347
39348         mktime: skip configure test (fail it) for apple universal builds
39349         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
39350         universal builds, assume that mktime does not work.
39351         * modules/mktime (Depends-on): Add multiarch.
39352
39353 2009-01-21  Eric Blake  <ebb9@byu.net>
39354
39355         multiarch: avoid expand-before-require warning
39356         * modules/multiarch (configure.ac): Require, rather than expand,
39357         gl_MULTIARCH.
39358         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
39359         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
39360         enforce that all clients require it.  Partial reversion of
39361         2008-12-29 patch.
39362
39363         error: avoid expand-before-require warning
39364         * modules/errno (configure.ac): Require, rather than expand,
39365         gl_HEADER_ERRNO_H.
39366         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
39367         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
39368         enforce that all clients require it.
39369
39370         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
39371         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
39372         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
39373         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
39374
39375 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
39376
39377         Revert:
39378         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39379
39380         regex: do not depend on obsolete modules.
39381         * modules/regex: Remove memcmp and memmove.
39382
39383 2009-01-20  Bruno Haible  <bruno@clisp.org>
39384
39385         Make the 'link' module link on Windows NT 4.
39386         * lib/link.c (_WIN32_WINNT): Don't define.
39387         (CreateHardLinkFuncType): New type.
39388         (CreateHardLinkFunc, initialized): New variables.
39389         (initialize): New function.
39390         (link): Invoke CreateHardLink indirectly through the function pointer.
39391
39392 2009-01-20  Bruno Haible  <bruno@clisp.org>
39393
39394         Fix compilation failure on mingw.
39395         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
39396
39397 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
39398
39399         * doc/c-strtod.texi: Mention a couple of restrictions.
39400
39401 2009-01-20  Jim Meyering  <meyering@redhat.com>
39402
39403         gettimeofday: move more declarations out of functions
39404         * lib/gettimeofday.c: Move extern declarations of tzset and
39405         gmtime out of containing functions.  Prompted by Bruno Haible.
39406
39407 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39408
39409         regex: do not depend on obsolete modules.
39410         * modules/regex: Remove memcmp and memmove.
39411
39412 2009-01-19  Bruno Haible  <bruno@clisp.org>
39413
39414         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39415         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
39416         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39417         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
39418         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
39419
39420 2009-01-19  Bruno Haible  <bruno@clisp.org>
39421
39422         * tests/test-link.c: Include <errno.h>.
39423         (main): Exit with code 77 when a hard link cannot be created due to
39424         the file system.
39425         * tests/test-link.sh: Skip test when a hard link cannot be created due
39426         to the file system.
39427         Suggested by Eric Blake.
39428
39429 2009-01-19  Martin Lambers  <marlam@marlam.de>
39430
39431         * modules/link-tests: New file.
39432         * tests/test-link.sh: New file.
39433         * tests/test-link.c: New file.
39434
39435 2009-01-19  Eric Blake  <ebb9@byu.net>
39436
39437         doc: mention another function added in cygwin 1.7.0
39438         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
39439         Another new function in cygwin 1.7.
39440
39441 2009-01-19  Bruno Haible  <bruno@clisp.org>
39442
39443         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39444         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
39445         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
39446         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39447         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39448         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
39449         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
39450         * m4/md4.m4 (gl_MD4): Likewise.
39451         * m4/md5.m4 (gl_MD5): Likewise.
39452         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
39453         * m4/sha1.m4 (gl_SHA1): Likewise.
39454         * m4/sha256.m4 (gl_SHA256): Likewise.
39455         * m4/sha512.m4 (gl_SHA512): Likewise.
39456
39457 2009-01-19  Bruno Haible  <bruno@clisp.org>
39458
39459         * modules/uniname/uniname-tests (Depends-on): Add progname.
39460         * tests/uniname/test-uninames.c: Include progname.h.
39461         (main): Call set_program_name.
39462
39463         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
39464         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
39465         (main): Call set_program_name.
39466
39467         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
39468         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
39469         (main): Call set_program_name.
39470
39471         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
39472         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
39473         (main): Call set_program_name.
39474
39475         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
39476         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
39477         (main): Call set_program_name.
39478
39479         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
39480         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
39481         (main): Call set_program_name.
39482
39483         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
39484         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
39485         (main): Call set_program_name.
39486
39487         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
39488         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
39489         (main): Call set_program_name.
39490
39491         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
39492         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
39493         (main): Call set_program_name.
39494
39495 2009-01-19  Eric Blake  <ebb9@byu.net>
39496
39497         test-unistd: test previous patch
39498         * tests/test-unistd.c: Test *_FILENO macros.
39499
39500         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
39501         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39502         Guarantee a definition.
39503         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
39504         * modules/unistd-safer (Depends-on): Add dependency on unistd.
39505         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
39506         * lib/dup-safer.c (STDERR_FILENO): Likewise.
39507         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39508         Likewise.
39509         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
39510         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
39511         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39512         Likewise.
39513         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
39514         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
39515         (STDERR_FILENO): Likewise.
39516         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
39517         (STDERR_FILENO): Likewise.
39518         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
39519         (STDERR_FILENO): Likewise.
39520         Reported by Elbert Pol.
39521
39522 2009-01-19  Eric Blake  <ebb9@byu.net>
39523
39524         doc: mention more functions added in cygwin 1.7.0
39525         * doc/posix-functions/abort.texi (abort): Update wording related
39526         to cygwin.
39527         * doc/posix-functions/daylight.texi (daylight): Likewise.
39528         * doc/posix-functions/optarg.texi (optarg): Likewise.
39529         * doc/posix-functions/optarg.texi (opterr): Likewise.
39530         * doc/posix-functions/optarg.texi (optind): Likewise.
39531         * doc/posix-functions/optarg.texi (optopt): Likewise.
39532         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
39533         worked in 1.5.x, and was withdrawn in 1.7.
39534         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
39535         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
39536         cygwin versions.
39537         * doc/posix-functions/perror.texi (perror): Likewise.
39538         * doc/posix-functions/printf.texi (printf): Likewise.
39539         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
39540         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
39541         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39542         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39543         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
39544         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
39545         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39546         Likewise.
39547         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39548         Likewise.
39549         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
39550         this function.
39551         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
39552         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
39553         Likewise.
39554         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
39555         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
39556         * doc/posix-functions/confstr.texi (confstr): Likewise.
39557         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
39558         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
39559         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
39560         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
39561         * doc/posix-functions/fputws.texi (fputws): Likewise.
39562         * doc/posix-functions/fwide.texi (fwide): Likewise.
39563         * doc/posix-functions/getwc.texi (getwc): Likewise.
39564         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
39565         * doc/posix-functions/putwc.texi (putwc): Likewise.
39566         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
39567         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
39568         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
39569         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
39570         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
39571         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
39572         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
39573         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
39574         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
39575         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
39576         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
39577
39578 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39579
39580         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
39581         * lib/ioctl.c: Include <sys/ioctl.h>.
39582
39583 2009-01-19  Simon Josefsson  <simon@josefsson.org>
39584
39585         * modules/getdate-tests (Depends-on): Add progname.
39586         * tests/test-getdate.c: Use progname module, to avoid link errors
39587         on non-glibc systems.
39588
39589 2009-01-18  Simon Josefsson  <simon@josefsson.org>
39590
39591         * modules/filenamecat-tests (Depends-on): Add progname.
39592         * modules/fstrcmp-tests (Depends-on): Likewise.
39593
39594         * tests/test-filenamecat.c: Use progname module, to avoid link
39595         errors on non-glibc systems.
39596         * tests/test-fstrcmp.c: Likewise.
39597
39598 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39599
39600         gettimeofday: avoid warning: nested extern declaration of 'localtime'
39601         * lib/gettimeofday.c: Move extern declaration out of function.
39602
39603 2009-01-18  Bruno Haible  <bruno@clisp.org>
39604
39605         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
39606         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
39607         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
39608
39609 2009-01-18  Bruno Haible  <bruno@clisp.org>
39610
39611         * lib/strftime.c (MEMPCPY): Remove unused macro.
39612         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
39613
39614 2009-01-18  Martin Lambers  <marlam@marlam.de>
39615
39616         New module 'link'.
39617         * lib/unistd.in.h (link): New declaration.
39618         * lib/link.c: New file.
39619         * m4/link.m4: New file.
39620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
39621         HAVE_LINK.
39622         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
39623         * modules/link: New file.
39624         * doc/posix-functions/link.texi: Mention the new module.
39625
39626 2009-01-18  Bruno Haible  <bruno@clisp.org>
39627
39628         * tests/test-avltree_list.c (main): Call set_program_name.
39629         * tests/test-avltree_oset.c (main): Likewise.
39630         * tests/test-obstack-printf.c: Include progname.h.
39631         (main): Call set_program_name.
39632         * tests/test-quotearg.c: Include progname.h.
39633         (main): Call set_program_name.
39634         * tests/test-xmemdup0.c: Include progname.h.
39635         (main): Call set_program_name.
39636
39637 2009-01-18  Bruno Haible  <bruno@clisp.org>
39638
39639         New module 'alphasort'.
39640         * lib/dirent.in.h (alphasort): New declaration.
39641         * lib/alphasort.c: New file, from glibc with modifications.
39642         * m4/alphasort.m4: New file.
39643         * modules/alphasort: New file.
39644         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
39645         HAVE_ALPHASORT.
39646         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
39647         HAVE_ALPHASORT.
39648         * doc/posix-functions/alphasort.texi: Mention the new module and the
39649         portability problems.
39650
39651 2009-01-18  Bruno Haible  <bruno@clisp.org>
39652
39653         New module 'scandir'.
39654         * lib/dirent.in.h (scandir): New declaration.
39655         * lib/scandir.c: New file, from glibc with modifications.
39656         * m4/scandir.m4: New file.
39657         * modules/scandir: New file.
39658         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
39659         HAVE_SCANDIR.
39660         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
39661         HAVE_SCANDIR.
39662         * doc/posix-functions/scandir.texi: Mention the new module and the
39663         portability problems.
39664
39665 2009-01-17  Bruno Haible  <bruno@clisp.org>
39666
39667         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
39668         Update documentation.
39669         (func_remove_suffix): Escape all dots in the suffix. Update
39670         documentation.
39671         (func_filter_filelist): Update documentation.
39672         Reported by Ralf Wildenhues.
39673
39674 2009-01-17  Bruno Haible  <bruno@clisp.org>
39675
39676         * modules/dprintf-posix-tests: New file.
39677         * tests/test-dprintf-posix.sh: New file.
39678         * tests/test-dprintf-posix.c: New file.
39679
39680         New modules 'dprintf', 'dprintf-posix'.
39681         * lib/stdio.in.h (dprintf): New declaration.
39682         * lib/dprintf.c: New file.
39683         * m4/dprintf.m4: New file.
39684         * m4/dprintf-posix.m4: New file.
39685         * modules/dprintf: New file.
39686         * modules/dprintf-posix: New file.
39687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
39688         HAVE_DPRINTF, REPLACE_DPRINTF.
39689         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
39690         HAVE_DPRINTF, REPLACE_DPRINTF.
39691         * doc/posix-functions/dprintf.texi: Mention the new modules.
39692
39693 2009-01-17  Bruno Haible  <bruno@clisp.org>
39694
39695         * modules/vdprintf-posix-tests: New file.
39696         * tests/test-vdprintf-posix.sh: New file.
39697         * tests/test-vdprintf-posix.c: New file.
39698
39699         New modules 'vdprintf', 'vdprintf-posix'.
39700         * lib/stdio.in.h (vdprintf): New declaration.
39701         * lib/vdprintf.c: New file.
39702         * m4/vdprintf.m4: New file.
39703         * m4/vdprintf-posix.m4: New file.
39704         * modules/vdprintf: New file.
39705         * modules/vdprintf-posix: New file.
39706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
39707         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39708         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
39709         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39710         * doc/posix-functions/vdprintf.texi: Mention the new modules.
39711
39712 2009-01-17  Bruno Haible  <bruno@clisp.org>
39713
39714         Fix replacement of fopen on mingw.
39715         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
39716         mingw.
39717
39718 2009-01-17  Bruno Haible  <bruno@clisp.org>
39719
39720         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
39721         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
39722
39723 2009-01-17  Bruno Haible  <bruno@clisp.org>
39724
39725         Avoid test-fflush2.sh failure on mingw.
39726         * tests/test-fflush2.c: Include binary-io.h.
39727         (main): Put standard input into binary mode.
39728         * modules/fflush-tests (Depends-on): Add binary-io.
39729
39730 2009-01-17  Bruno Haible  <bruno@clisp.org>
39731
39732         * lib/wchar.in.h: In another particular situation, include only the
39733         system's <wchar.h> file.
39734         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
39735         Reported by Albert Chin-A-Young <china@thewrittenword.com>
39736         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
39737
39738 2009-01-17  Bruno Haible  <bruno@clisp.org>
39739
39740         Support for stripping executables in --enable-relocatable.
39741         * build-aux/install-reloc: Expect one more argument, or an environment
39742         variable RELOC_STRIP_PROG. If set, strip the destination program and
39743         its wrapper.
39744         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
39745         RELOC_STRIP_PROG.
39746         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
39747         to set RELOCATABLE_STRIP.
39748         * NEWS: Mention the new Makefile requirement.
39749
39750 2009-01-17  Bruno Haible  <bruno@clisp.org>
39751
39752         * build-aux/install-reloc: Remove debugging information left over by
39753         C compiler on MacOS X.
39754
39755 2009-01-17  Bruno Haible  <bruno@clisp.org>
39756
39757         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
39758         * lib/progreloc.c (find_executable): Fix type of pointer passed to
39759         _NSGetExecutablePath.
39760
39761 2009-01-16  Jim Meyering  <meyering@redhat.com>
39762
39763         strerror: avoid warnings about discarding "const"
39764         * lib/strerror.c (rpl_strerror): Instead of returning a const
39765         string from each and every "case", use a variable, and add a single
39766         cast after the switch.
39767
39768 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
39769
39770         * lib/arpa_inet.in.h: Add extern "C" block for C++.
39771
39772 2009-01-16  Bruno Haible  <bruno@clisp.org>
39773
39774         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
39775         array initializer syntax that also works in C++ mode.
39776         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39777
39778 2009-01-16  Jim Meyering  <meyering@redhat.com>
39779
39780         poll: suppress a warning
39781         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
39782         to ignore "...unsigned expression < 0 is always false" warnings.
39783
39784 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
39785
39786         poll: remove declarations of unused variables
39787         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
39788         sockbuf and optlen.
39789
39790 2009-01-15  Bruno Haible  <bruno@clisp.org>
39791
39792         Make fflush-after-ungetc POSIX compliant on BSD systems.
39793         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
39794         (clear_ungetc_buffer): Implement also for other systems.
39795         (rpl_fflush): On glibc systems, invoke
39796         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39797         clear_ungetc_buffer after fetching the stream's position, not before.
39798
39799 2009-01-15  Bruno Haible  <bruno@clisp.org>
39800
39801         Make fflush-after-ungetc POSIX compliant on glibc systems.
39802         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39803         after ungetc.
39804         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39805         (rpl_fflush): On glibc systems, simply call the system's fflush
39806         function after clearing the ungetc buffer.
39807         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39808         Instead, lseek only to the end of file, then use the system's fseeko
39809         for the rest. On glibc systems, reset the EOF indicator bit.
39810
39811 2009-01-15  Jim Meyering  <meyering@redhat.com>
39812
39813         openmp.m4: revert quote-adding change, for portability to older autoconf
39814         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39815         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39816         Simon Josefsson noticed the problem when using autoconf-2.61.
39817
39818 2009-01-15  Bruno Haible  <bruno@clisp.org>
39819
39820         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
39821         * tests/test-fflush2.c (ASSERT): Always fail.
39822         (main): Add two tests for fflush() after ungetc(), taking into account
39823         the Austin Group's clarification.
39824         Suggested by Eric Blake.
39825
39826 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
39827
39828         mktime.m4: remove K&R-style function prototypes
39829         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
39830         for the Sun C++ compiler.
39831
39832 2009-01-14  Bruno Haible  <bruno@clisp.org>
39833
39834         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
39835         while including <wchar.h>.
39836         * lib/wchar.in.h: In two particular situations on HP-UX, include only
39837         the system's <wchar.h> file.
39838         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39839
39840 2009-01-14  Bruno Haible  <bruno@clisp.org>
39841
39842         * m4/csharp.m4: Don't mention gettext on the serial number line.
39843         * m4/csharpexec.m4: Likewise.
39844         * m4/eaccess.m4: Likewise.
39845         * m4/javaexec.m4: Likewise.
39846         * m4/sig_atomic_t.m4: Likewise.
39847         * m4/tmpdir.m4: Likewise.
39848         * m4/intldir.m4: Bump gettext version.
39849         * m4/lib-ld.m4: Likewise.
39850
39851 2009-01-14  Bruno Haible  <bruno@clisp.org>
39852
39853         * lib/progname.c (set_program_name): Add more comments.
39854         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39855
39856 2009-01-14  Simon Josefsson  <simon@josefsson.org>
39857
39858         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
39859         were sys/stat.h does not define it.
39860
39861 2009-01-14  Jim Meyering  <meyering@redhat.com>
39862
39863         many *.m4 files: improve m4 quoting
39864         99% of this change was performed by running the following commands:
39865         git ls-files | grep '\.m4$' | xargs perl -pi \
39866           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
39867           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39868           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39869           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
39870         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
39871         The remainder were to add Copyright dates, increment serial numbers,
39872         undo some changes in comments, exclude m4/intl.m4, and add quotes
39873         around the "1" in ",1" where the unusual spacing prohibited the
39874         above regexps from doing the job.  For more details, see
39875         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
39876         * m4/acl.m4: Modified.
39877         * m4/afs.m4: Likewise.
39878         * m4/alloca.m4: Likewise.
39879         * m4/argp.m4: Likewise.
39880         * m4/argz.m4: Likewise.
39881         * m4/atexit.m4: Likewise.
39882         * m4/bison-i18n.m4: Likewise.
39883         * m4/bison.m4: Likewise.
39884         * m4/byteswap.m4: Likewise.
39885         * m4/c-stack.m4: Likewise.
39886         * m4/c-strtod.m4: Likewise.
39887         * m4/calloc.m4: Likewise.
39888         * m4/canonicalize-lgpl.m4: Likewise.
39889         * m4/chown.m4: Likewise.
39890         * m4/clock_time.m4: Likewise.
39891         * m4/codeset.m4: Likewise.
39892         * m4/copy-file.m4: Likewise.
39893         * m4/csharp.m4: Likewise.
39894         * m4/csharpcomp.m4: Likewise.
39895         * m4/csharpexec.m4: Likewise.
39896         * m4/d-ino.m4: Likewise.
39897         * m4/d-type.m4: Likewise.
39898         * m4/dirfd.m4: Likewise.
39899         * m4/double-slash-root.m4: Likewise.
39900         * m4/eaccess.m4: Likewise.
39901         * m4/eealloc.m4: Likewise.
39902         * m4/environ.m4: Likewise.
39903         * m4/errno_h.m4: Likewise.
39904         * m4/euidaccess.m4: Likewise.
39905         * m4/execute.m4: Likewise.
39906         * m4/fatal-signal.m4: Likewise.
39907         * m4/fchdir.m4: Likewise.
39908         * m4/fcntl_h.m4: Likewise.
39909         * m4/fileblocks.m4: Likewise.
39910         * m4/filenamecat.m4: Likewise.
39911         * m4/findprog.m4: Likewise.
39912         * m4/flexmember.m4: Likewise.
39913         * m4/fnmatch.m4: Likewise.
39914         * m4/fopen.m4: Likewise.
39915         * m4/fpending.m4: Likewise.
39916         * m4/fprintf-posix.m4: Likewise.
39917         * m4/free.m4: Likewise.
39918         * m4/frexp.m4: Likewise.
39919         * m4/frexpl.m4: Likewise.
39920         * m4/fsusage.m4: Likewise.
39921         * m4/ftruncate.m4: Likewise.
39922         * m4/gc-camellia.m4: Likewise.
39923         * m4/gc-random.m4: Likewise.
39924         * m4/gc.m4: Likewise.
39925         * m4/getaddrinfo.m4: Likewise.
39926         * m4/getcwd-abort-bug.m4: Likewise.
39927         * m4/getcwd-path-max.m4: Likewise.
39928         * m4/getdate.m4: Likewise.
39929         * m4/getdomainname.m4: Likewise.
39930         * m4/getgroups.m4: Likewise.
39931         * m4/gethostname.m4: Likewise.
39932         * m4/gethrxtime.m4: Likewise.
39933         * m4/getline.m4: Likewise.
39934         * m4/getloadavg.m4: Likewise.
39935         * m4/getndelim2.m4: Likewise.
39936         * m4/getpass.m4: Likewise.
39937         * m4/gettext.m4: Likewise.
39938         * m4/gettime.m4: Likewise.
39939         * m4/gettimeofday.m4: Likewise.
39940         * m4/gnulib-common.m4: Likewise.
39941         * m4/group-member.m4: Likewise.
39942         * m4/host-os.m4: Likewise.
39943         * m4/iconv.m4: Likewise.
39944         * m4/iconv_open.m4: Likewise.
39945         * m4/inet_ntop.m4: Likewise.
39946         * m4/inet_pton.m4: Likewise.
39947         * m4/inline.m4: Likewise.
39948         * m4/intldir.m4: Likewise.
39949         * m4/intlmacosx.m4: Likewise.
39950         * m4/intmax.m4: Likewise.
39951         * m4/intmax_t.m4: Likewise.
39952         * m4/inttypes.m4: Likewise.
39953         * m4/inttypes_h.m4: Likewise.
39954         * m4/inttypes-pri.m4: Likewise.
39955         * m4/isapipe.m4: Likewise.
39956         * m4/isnand.m4: Likewise.
39957         * m4/isnanf.m4: Likewise.
39958         * m4/isnanl.m4: Likewise.
39959         * m4/javacomp.m4: Likewise.
39960         * m4/javaexec.m4: Likewise.
39961         * m4/jm-winsz1.m4: Likewise.
39962         * m4/jm-winsz2.m4: Likewise.
39963         * m4/lchown.m4: Likewise.
39964         * m4/lcmessage.m4: Likewise.
39965         * m4/ldexpl.m4: Likewise.
39966         * m4/lib-ld.m4: Likewise.
39967         * m4/lib-link.m4: Likewise.
39968         * m4/libsigsegv.m4: Likewise.
39969         * m4/link-follow.m4: Likewise.
39970         * m4/localcharset.m4: Likewise.
39971         * m4/locale-fr.m4: Likewise.
39972         * m4/locale-ja.m4: Likewise.
39973         * m4/locale-tr.m4: Likewise.
39974         * m4/locale-zh.m4: Likewise.
39975         * m4/lock.m4: Likewise.
39976         * m4/longlong.m4: Likewise.
39977         * m4/ls-mntd-fs.m4: Likewise.
39978         * m4/lstat.m4: Likewise.
39979         * m4/malloc.m4: Likewise.
39980         * m4/mathl.m4: Likewise.
39981         * m4/mbrtowc.m4: Likewise.
39982         * m4/mbstate_t.m4: Likewise.
39983         * m4/mbswidth.m4: Likewise.
39984         * m4/memchr.m4: Likewise.
39985         * m4/memcmp.m4: Likewise.
39986         * m4/memcpy.m4: Likewise.
39987         * m4/memmem.m4: Likewise.
39988         * m4/memmove.m4: Likewise.
39989         * m4/mempcpy.m4: Likewise.
39990         * m4/memrchr.m4: Likewise.
39991         * m4/memset.m4: Likewise.
39992         * m4/minmax.m4: Likewise.
39993         * m4/mkdir-slash.m4: Likewise.
39994         * m4/mkdtemp.m4: Likewise.
39995         * m4/mktime.m4: Likewise.
39996         * m4/mmap-anon.m4: Likewise.
39997         * m4/mountlist.m4: Likewise.
39998         * m4/nanosleep.m4: Likewise.
39999         * m4/nls.m4: Likewise.
40000         * m4/nocrash.m4: Likewise.
40001         * m4/open.m4: Likewise.
40002         * m4/openat.m4: Likewise.
40003         * m4/openmp.m4: Likewise.
40004         * m4/pathmax.m4: Likewise.
40005         * m4/perl.m4: Likewise.
40006         * m4/physmem.m4: Likewise.
40007         * m4/pipe.m4: Likewise.
40008         * m4/po.m4: Likewise.
40009         * m4/poll.m4: Likewise.
40010         * m4/posixtm.m4: Likewise.
40011         * m4/posixver.m4: Likewise.
40012         * m4/printf-frexp.m4: Likewise.
40013         * m4/printf-frexpl.m4: Likewise.
40014         * m4/printf-posix.m4: Likewise.
40015         * m4/printf-posix-rpl.m4: Likewise.
40016         * m4/printf.m4: Likewise.
40017         * m4/progtest.m4: Likewise.
40018         * m4/putenv.m4: Likewise.
40019         * m4/readline.m4: Likewise.
40020         * m4/readlink.m4: Likewise.
40021         * m4/readutmp.m4: Likewise.
40022         * m4/realloc.m4: Likewise.
40023         * m4/regex.m4: Likewise.
40024         * m4/relocatable.m4: Likewise.
40025         * m4/relocatable-lib.m4: Likewise.
40026         * m4/rename-dest-slash.m4: Likewise.
40027         * m4/rename.m4: Likewise.
40028         * m4/rmdir-errno.m4: Likewise.
40029         * m4/rmdir.m4: Likewise.
40030         * m4/roundf.m4: Likewise.
40031         * m4/roundl.m4: Likewise.
40032         * m4/rpmatch.m4: Likewise.
40033         * m4/save-cwd.m4: Likewise.
40034         * m4/selinux-selinux-h.m4: Likewise.
40035         * m4/setenv.m4: Likewise.
40036         * m4/settime.m4: Likewise.
40037         * m4/sig2str.m4: Likewise.
40038         * m4/sig_atomic_t.m4: Likewise.
40039         * m4/signalblocking.m4: Likewise.
40040         * m4/signbit.m4: Likewise.
40041         * m4/sigpipe.m4: Likewise.
40042         * m4/sockets.m4: Likewise.
40043         * m4/sockpfaf.m4: Likewise.
40044         * m4/st_dm_mode.m4: Likewise.
40045         * m4/stat-time.m4: Likewise.
40046         * m4/stdbool.m4: Likewise.
40047         * m4/stdint.m4: Likewise.
40048         * m4/stdint_h.m4: Likewise.
40049         * m4/stpcpy.m4: Likewise.
40050         * m4/stpncpy.m4: Likewise.
40051         * m4/strcase.m4: Likewise.
40052         * m4/strchrnul.m4: Likewise.
40053         * m4/strcspn.m4: Likewise.
40054         * m4/strdup.m4: Likewise.
40055         * m4/strftime.m4: Likewise.
40056         * m4/strndup.m4: Likewise.
40057         * m4/strnlen.m4: Likewise.
40058         * m4/strpbrk.m4: Likewise.
40059         * m4/strptime.m4: Likewise.
40060         * m4/strsep.m4: Likewise.
40061         * m4/strtod.m4: Likewise.
40062         * m4/strtoimax.m4: Likewise.
40063         * m4/strtok_r.m4: Likewise.
40064         * m4/strtol.m4: Likewise.
40065         * m4/strtoll.m4: Likewise.
40066         * m4/strtoul.m4: Likewise.
40067         * m4/strtoull.m4: Likewise.
40068         * m4/strtoumax.m4: Likewise.
40069         * m4/strverscmp.m4: Likewise.
40070         * m4/threadlib.m4: Likewise.
40071         * m4/timegm.m4: Likewise.
40072         * m4/tm_gmtoff.m4: Likewise.
40073         * m4/tmpdir.m4: Likewise.
40074         * m4/tmpfile.m4: Likewise.
40075         * m4/tzset.m4: Likewise.
40076         * m4/uintmax_t.m4: Likewise.
40077         * m4/unlinkdir.m4: Likewise.
40078         * m4/unlocked-io.m4: Likewise.
40079         * m4/uptime.m4: Likewise.
40080         * m4/userspec.m4: Likewise.
40081         * m4/utimbuf.m4: Likewise.
40082         * m4/utime.m4: Likewise.
40083         * m4/utimes-null.m4: Likewise.
40084         * m4/utimes.m4: Likewise.
40085         * m4/vararrays.m4: Likewise.
40086         * m4/vasnprintf.m4: Likewise.
40087         * m4/vfprintf-posix.m4: Likewise.
40088         * m4/vprintf-posix.m4: Likewise.
40089         * m4/wait-process.m4: Likewise.
40090         * m4/wchar_t.m4: Likewise.
40091         * m4/wint_t.m4: Likewise.
40092         * m4/write-any-file.m4: Likewise.
40093         * m4/yield.m4: Likewise.
40094
40095 2009-01-13  Bruno Haible  <bruno@clisp.org>
40096
40097         Avoid test-copy-file.sh failures when ACL support insufficient.
40098         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
40099         TESTS_ENVIRONMENT.
40100         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
40101         Reported by Jim Meyering.
40102
40103 2009-01-13  Bruno Haible  <bruno@clisp.org>
40104
40105         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
40106         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
40107         * modules/unistdio/u8-printf-parse (Files): Likewise.
40108         * modules/unistdio/u32-printf-parse (Files): Likewise.
40109         * modules/unistdio/ulc-printf-parse (Files): Likewise.
40110
40111 2009-01-13  Simon Josefsson  <simon@josefsson.org>
40112
40113         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
40114         and m4/inttypes_h.m4 too.
40115
40116 2009-01-12  Eric Blake  <ebb9@byu.net>
40117
40118         tests: IRIX 6.2 cc can't compile -0.0 into .data
40119         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
40120         rather than at compile-time.
40121         * tests/test-floorl.c (minus_zero): Likewise.
40122         * tests/test-frexpl.c (minus_zero): Likewise.
40123         * tests/test-isnan.c (minus_zerol): Likewise.
40124         * tests/test-isnanl.h (minus_zero): Likewise.
40125         * tests/test-ldexpl.c (minus_zero): Likewise.
40126         * tests/test-roundl.c (minus_zero): Likewise.
40127         * tests/test-signbit.c (minus_zerol): Likewise.
40128         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40129         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40130         * tests/test-truncl.c (minus_zero): Likewise.
40131         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40132         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40133         Reported by Tom G. Christensen and Nelson H. F. Beebe.
40134
40135 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40136
40137         regex: fix glibc bug 9697
40138         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
40139         handling.
40140
40141 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40142
40143         regex: fix glibc bug 697
40144         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
40145         being NULL also if there are no backreferences.
40146
40147 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40148
40149         regex: merge glibc changes
40150         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
40151         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
40152         re_string_skip_chars, re_string_reconstruct): Likewise.
40153         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
40154
40155 2009-01-07  Jim Meyering  <meyering@redhat.com>
40156
40157         poll: filter through cppi
40158         * lib/poll.c: Indent cpp directives to reflect nesting.
40159
40160 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
40161
40162         poll: don't return uninitialized
40163         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
40164
40165 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
40166
40167         avoid compile failure on AIX 6.1
40168         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
40169         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
40170
40171 2009-01-04  Jim Meyering  <meyering@redhat.com>
40172
40173         remove duplicate inclusion of <stdio.h>
40174         * tests/test-fprintf-posix.c: Likewise.
40175         * tests/test-printf-posix.c: Likewise.
40176         * tests/test-snprintf-posix.c: Likewise.
40177         * tests/test-sprintf-posix.c: Likewise.
40178         * tests/test-vasprintf-posix.c: Likewise.
40179         * tests/test-vfprintf-posix.c: Likewise.
40180         * tests/test-vprintf-posix.c: Likewise.
40181         * tests/test-vsnprintf-posix.c: Likewise.
40182         * tests/test-vsprintf-posix.c: Likewise.
40183
40184 2009-01-03  Jim Meyering  <meyering@redhat.com>
40185
40186         gnulib-tool: fix sed-based filtering
40187         * gnulib-tool (func_filter_filelist): Remove extra backslash
40188         in sed_fff_filter definition.
40189
40190 2009-01-02  Jim Meyering  <meyering@redhat.com>
40191
40192         strftime: avoid compilation failure on Solaris 2.6
40193         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
40194         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
40195         Don't #define mbrlen or mbsinit, since now they're guaranteed to
40196         be available.  Reported by Tom G. Christensen.  Details in
40197         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
40198
40199 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40200             Bruno Haible  <bruno@clisp.org>
40201
40202         Speed up gnulib-tool by doing more string processing through shell
40203         built-ins.
40204         * gnulib-tool (fast_func_append): New variable.
40205         (func_remove_prefix, func_remove_suffix): New functions.
40206         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
40207         (func_filter_filelist): New function.
40208         (func_get_dependencies): Use func_remove_suffix instead of sed.
40209         (func_get_automake_snippet): Use func_filter_filelist instead of a
40210         subshell and sed invocation.
40211
40212 2009-01-01  Bruno Haible  <bruno@clisp.org>
40213
40214         Fix a security bug.
40215         * gnulib-tool (func_import, import, update): Don't allow the characters
40216         '"', '$', '`', '\' in macro arguments that become part of commands that
40217         are evaluated.
40218
40219 2009-01-01  Bruno Haible  <bruno@clisp.org>
40220
40221         * gnulib-tool (func_reset_sigpipe): Add more comments.
40222
40223 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40224
40225         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
40226         func_emit_tests_Makefile_am, func_import): Abort loops early if we
40227         already know the answer.
40228
40229 2009-01-01  Jim Meyering  <meyering@redhat.com>
40230
40231         * lib/version-etc.c (version_etc_va): Update copyright year.
40232
40233 2008-12-30  Bruno Haible  <bruno@clisp.org>
40234
40235         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
40236         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
40237         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
40238
40239 2008-12-29  Eric Blake  <ebb9@byu.net>
40240
40241         multiarch: avoid autoconf AC_REQUIRE bug
40242         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
40243         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
40244         2.63 and older.
40245         Reported by Bruno Haible, and analyzed in
40246         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
40247
40248 2008-12-29  Bruno Haible  <bruno@clisp.org>
40249
40250         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
40251         files in subdirectories correctly.
40252         Reported by Ralf Wildenhues.
40253
40254 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40255
40256         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
40257         rather than 'join FILE -', for Solaris join.
40258
40259 2008-12-29  Bruno Haible  <bruno@clisp.org>
40260
40261         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
40262         quoting.
40263         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40264         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
40265         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
40266         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
40267         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
40268         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
40269         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
40270         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
40271         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40272         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
40273         * m4/nls.m4 (AM_NLS): Likewise.
40274         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
40275         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
40276         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40277         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
40278         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
40279         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
40280         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
40281         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
40282         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
40283         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40284         * m4/xsize.m4 (gl_XSIZE): Likewise.
40285         Suggested by Jim Meyering.
40286
40287 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40288
40289         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
40290         * lib/parse-duration.c: use a switch instead of cascading if's.
40291
40292 2008-12-29  Eric Blake  <ebb9@byu.net>
40293
40294         wchar.h: supply WEOF on Irix 5.3
40295         * lib/wchar.in.h (wint_t): Also supply WEOF.
40296         * lib/wctype.in.h (wint_t): Likewise.
40297         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
40298         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
40299         Reported by Tom G. Christensen.
40300
40301 2008-12-26  Bruno Haible  <bruno@clisp.org>
40302
40303         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
40304         i486, i586, i686.
40305
40306 2008-12-26  Bruno Haible  <bruno@clisp.org>
40307
40308         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
40309
40310 2008-12-26  Bruno Haible  <bruno@clisp.org>
40311
40312         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
40313         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
40314         not __STDC_CONSTANT_MACROS.
40315         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40316
40317 2008-12-25  Bruno Haible  <bruno@clisp.org>
40318
40319         Add support for universal builds to vasnprintf.
40320         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
40321         universal builds, guess no.
40322         * modules/vasnprintf-posix (Depends-on): Add multiarch.
40323         * modules/vasprintf-posix (Depends-on): Likewise.
40324         * modules/fprintf-posix (Depends-on): Likewise.
40325         * modules/vfprintf-posix (Depends-on): Likewise.
40326         * modules/snprintf-posix (Depends-on): Likewise.
40327         * modules/vsnprintf-posix (Depends-on): Likewise.
40328         * modules/sprintf-posix (Depends-on): Likewise.
40329         * modules/vsprintf-posix (Depends-on): Likewise.
40330         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40331         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40332         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40333         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40334         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40335         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40336         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40337
40338         Add support for universal builds to <inttypes.h>.
40339         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
40340         _SCNu64_PREFIX): In Apple
40341         universal builds, define directly, using _LP64.
40342         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
40343         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
40344         * modules/inttypes (Depends-on): Add multiarch.
40345         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40346
40347         Add support for universal builds to <stdint.h>.
40348         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
40349         universal builds, define directly, using _LP64.
40350         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
40351         Apple universal builds, don't test for the size and suffix of ptrdiff_t
40352         and size_t.
40353         * modules/stdint (Depends-on): Add multiarch.
40354         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40355
40356         New module 'multiarch'.
40357         * modules/multiarch: New file.
40358         * m4/multiarch.m4: New file.
40359
40360 2008-12-25  Bruno Haible  <bruno@clisp.org>
40361
40362         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
40363
40364 2008-12-25  Bruno Haible  <bruno@clisp.org>
40365
40366         * modules/btowc (License): Relicense under LGPLv2+.
40367         * modules/mbsinit (License): Likewise.
40368         * modules/mbrtowc (License): Likewise.
40369         * modules/wcrtomb (License): Likewise.
40370         * modules/streq (License): Likewise.
40371         Reported by David Lutterkort <lutter@redhat.com>.
40372
40373 2008-12-23  Bruno Haible  <bruno@clisp.org>
40374
40375         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
40376
40377 2008-12-23  Bruno Haible  <bruno@clisp.org>
40378
40379         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
40380         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
40381         GETADDRINFO_LIB, not in LIBS.
40382         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
40383         * modules/canon-host (Link): Likewise.
40384         * NEWS: Mention the change.
40385         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
40386         GETADDRINFO_LIB.
40387
40388 2008-12-22  Bruno Haible  <bruno@clisp.org>
40389
40390         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
40391         * doc/posix-functions/iswalpha_l.texi: Likewise.
40392         * doc/posix-functions/iswblank_l.texi: Likewise.
40393         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40394         * doc/posix-functions/iswctype_l.texi: Likewise.
40395         * doc/posix-functions/iswdigit_l.texi: Likewise.
40396         * doc/posix-functions/iswgraph_l.texi: Likewise.
40397         * doc/posix-functions/iswlower_l.texi: Likewise.
40398         * doc/posix-functions/iswprint_l.texi: Likewise.
40399         * doc/posix-functions/iswpunct_l.texi: Likewise.
40400         * doc/posix-functions/iswspace_l.texi: Likewise.
40401         * doc/posix-functions/iswupper_l.texi: Likewise.
40402         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40403         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
40404         * doc/posix-functions/open_wmemstream.texi: Likewise.
40405         * doc/posix-functions/swscanf.texi: Likewise.
40406         * doc/posix-functions/towctrans_l.texi: Likewise.
40407         * doc/posix-functions/towlower.texi: Likewise.
40408         * doc/posix-functions/towlower_l.texi: Likewise.
40409         * doc/posix-functions/towupper.texi: Likewise.
40410         * doc/posix-functions/towupper_l.texi: Likewise.
40411         * doc/posix-functions/vfwprintf.texi: Likewise.
40412         * doc/posix-functions/vfwscanf.texi: Likewise.
40413         * doc/posix-functions/vswscanf.texi: Likewise.
40414         * doc/posix-functions/vwprintf.texi: Likewise.
40415         * doc/posix-functions/vwscanf.texi: Likewise.
40416         * doc/posix-functions/wcpcpy.texi: Likewise.
40417         * doc/posix-functions/wcpncpy.texi: Likewise.
40418         * doc/posix-functions/wcscasecmp.texi: Likewise.
40419         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
40420         * doc/posix-functions/wcscoll_l.texi: Likewise.
40421         * doc/posix-functions/wcsdup.texi: Likewise.
40422         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40423         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
40424         * doc/posix-functions/wcsnlen.texi: Likewise.
40425         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40426         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40427         * doc/posix-functions/wctrans_l.texi: Likewise.
40428         * doc/posix-functions/wctype_l.texi: Likewise.
40429         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
40430         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
40431         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
40432         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
40433         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
40434         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
40435         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
40436         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
40437         * doc/glibc-functions/wcschrnul.texi: Likewise.
40438         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40439         * doc/glibc-functions/wcstod_l.texi: Likewise.
40440         * doc/glibc-functions/wcstof_l.texi: Likewise.
40441         * doc/glibc-functions/wcstol_l.texi: Likewise.
40442         * doc/glibc-functions/wcstold_l.texi: Likewise.
40443         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40444         * doc/glibc-functions/wcstoq.texi: Likewise.
40445         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40446         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40447         * doc/glibc-functions/wcstouq.texi: Likewise.
40448         * doc/glibc-functions/wmempcpy.texi: Likewise.
40449
40450 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
40451             Eric Blake  <ebb9@byu.net>
40452             Paolo Bonzini  <bonzini@gnu.org>
40453             Bruno Haible  <bruno@clisp.org>
40454
40455         Make c-stack work on Haiku.
40456         * lib/c-stack.c (SA_ONSTACK): Define fallback.
40457         (c_stack_action): Use SA_ONSTACK flag.
40458
40459 2008-12-22  Bruno Haible  <bruno@clisp.org>
40460
40461         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
40462
40463 2008-12-22  Bruno Haible  <bruno@clisp.org>
40464
40465         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
40466         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
40467         being overridden.
40468         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
40469         New macros.
40470         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
40471         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
40472         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
40473         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
40474
40475 2008-12-22  Bruno Haible  <bruno@clisp.org>
40476
40477         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
40478         from test code.
40479
40480 2008-12-22  Eric Blake  <ebb9@byu.net>
40481
40482         Avoid gcc warnings on cygwin.
40483         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
40484         Avoid unused variable.
40485         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
40486         Likewise.
40487
40488 2008-12-22  Bruno Haible  <bruno@clisp.org>
40489
40490         Remove HAVE_MBRTOWC conditionals.
40491         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
40492         (mbscasecmp): Assume mbrtowc function.
40493         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
40494         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
40495         * lib/mbschr.c: Include mbuiter.h unconditionally.
40496         (mbschr): Assume mbrtowc function.
40497         * lib/mbscspn.c: Include mbuiter.h unconditionally.
40498         (mbscspn): Assume mbrtowc function.
40499         * lib/mbslen.c: Include mbuiter.h unconditionally.
40500         (mbslen): Assume mbrtowc function.
40501         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
40502         (mbsncasecmp): Assume mbrtowc function.
40503         * lib/mbsnlen.c: Include mbiter.h unconditionally.
40504         (mbsnlen): Assume mbrtowc function.
40505         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
40506         (mbspbrk): Assume mbrtowc function.
40507         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
40508         (mbspcasecmp): Assume mbrtowc function.
40509         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
40510         (mbsrchr): Assume mbrtowc function.
40511         * lib/mbssep.c: Include mbuiter.h unconditionally.
40512         (mbssep): Assume mbrtowc function.
40513         * lib/mbsspn.c: Include mbuiter.h unconditionally.
40514         (mbsspn): Assume mbrtowc function.
40515         * lib/mbsstr.c: Include mbuiter.h unconditionally.
40516         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
40517         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
40518         (mbstok_r): Assume mbrtowc function.
40519         * lib/propername.c: Include mbuiter.h unconditionally.
40520         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
40521         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
40522         (trim2): Assume mbrtowc function.
40523         * lib/mbswidth.c (mbsinit): Remove fallback definition.
40524         (mbsnwidth): Assume mbrtowc function.
40525         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
40526         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
40527         fallback definitions.
40528         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
40529
40530 2008-12-22  Bruno Haible  <bruno@clisp.org>
40531
40532         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
40533
40534 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
40535
40536         * modules/regex: Request emulations for the mb*/wc* functions we need.
40537         * m4/regex.m4: Don't look for those functions here.
40538         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
40539
40540 2008-12-22  Bruno Haible  <bruno@clisp.org>
40541
40542         * modules/fnmatch (Depends-on): Remove duplicated dependency.
40543
40544 2008-12-21  Bruno Haible  <bruno@clisp.org>
40545
40546         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
40547         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
40548         (Include): Remove conditionalization.
40549         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
40550         (Include): Remove conditionalization.
40551         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
40552         (Include): Remove conditionalization.
40553         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
40554         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40555         * NEWS: Mention the change.
40556         Reported by Alan Hourihane <alanh@fairlite.co.uk>
40557         via Sergey Poznyakoff <gray@gnu.org.ua>.
40558
40559 2008-12-21  Bruno Haible  <bruno@clisp.org>
40560
40561         * MODULES.html.sh (Extended multibyte and wide character utilities
40562         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
40563         wcrtomb, wcsrtombs.
40564         (Support for systems lacking POSIX:2008): Add accept, bind, close,
40565         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
40566         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
40567         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
40568
40569 2008-12-21  Bruno Haible  <bruno@clisp.org>
40570
40571         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
40572
40573 2008-12-21  Bruno Haible  <bruno@clisp.org>
40574
40575         * modules/wcsnrtombs-tests: New file.
40576         * tests/test-wcsnrtombs1.sh: New file.
40577         * tests/test-wcsnrtombs2.sh: New file.
40578         * tests/test-wcsnrtombs3.sh: New file.
40579         * tests/test-wcsnrtombs4.sh: New file.
40580         * tests/test-wcsnrtombs.c: New file.
40581
40582         New module 'wcsnrtombs'.
40583         * lib/wchar.in.h (wcsnrtombs): New declaration.
40584         * lib/wcsnrtombs.c: New file.
40585         * lib/wcsrtombs-state.c: New file.
40586         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
40587         (internal_state): Remove variable.
40588         * m4/wcsnrtombs.m4: New file.
40589         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
40590         compilation units.
40591         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
40592         HAVE_WCSNRTOMBS.
40593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
40594         HAVE_WCSNRTOMBS.
40595         * modules/wcsnrtombs: New file.
40596         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
40597         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
40598
40599 2008-12-21  Bruno Haible  <bruno@clisp.org>
40600
40601         * modules/wcsrtombs-tests: New file.
40602         * tests/test-wcsrtombs1.sh: New file.
40603         * tests/test-wcsrtombs2.sh: New file.
40604         * tests/test-wcsrtombs3.sh: New file.
40605         * tests/test-wcsrtombs4.sh: New file.
40606         * tests/test-wcsrtombs.c: New file.
40607
40608         New module 'wcsrtombs'.
40609         * lib/wchar.in.h (wcsrtombs): New declaration.
40610         * lib/wcsrtombs.c: New file.
40611         * m4/wcsrtombs.m4: New file.
40612         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
40613         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40614         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
40615         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40616         * modules/wcsrtombs: New file.
40617         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
40618         bugs.
40619
40620 2008-12-21  Bruno Haible  <bruno@clisp.org>
40621
40622         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
40623         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
40624         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
40625         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
40626         if not correct.
40627         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
40628         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
40629         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40630         m4/locale-zh.m4, m4/codeset.m4.
40631         * doc/posix-functions/wcrtomb.texi: Document the bug.
40632
40633 2008-12-21  Bruno Haible  <bruno@clisp.org>
40634
40635         Work around a btowc() bug on IRIX 6.5.
40636         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
40637         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
40638         REPLACE_WTOBC if not.
40639         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
40640         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
40641         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
40642
40643 2008-12-21  Bruno Haible  <bruno@clisp.org>
40644
40645         * modules/wcrtomb-tests: New file.
40646         * tests/test-wcrtomb.sh: New file.
40647         * tests/test-wcrtomb.c: New file.
40648
40649         New module 'wcrtomb'.
40650         * lib/wchar.in.h (wcrtomb): New declaration.
40651         * lib/wcrtomb.c: New file.
40652         * m4/wcrtomb.m4: New file.
40653         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
40654         HAVE_WCRTOMB.
40655         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
40656         HAVE_WCRTOMB.
40657         * modules/wcrtomb: New file.
40658         * doc/posix-functions/wcrtomb.texi: Mention the new module.
40659
40660 2008-12-21  Bruno Haible  <bruno@clisp.org>
40661
40662         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
40663         * modules/mbsrtowcs (Files): Likewise.
40664         * modules/wctob (Files): Likewise.
40665         * modules/c-strcase-tests (Files): Likewise.
40666         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40667         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40668         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40669         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40670         * modules/vasnprintf-posix-tests (Files): Likewise.
40671
40672 2008-12-21  William Pursell  <bill.pursell@gmail.com>
40673
40674         gitlog-to-changelog: pass all command-line arguments to git-log
40675         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
40676         it is sometimes convenient to filter the commits in various ways.
40677         gitlog-to-changelog only allows --since to specify a start date,
40678         but git-log itself supports many other filtering mechanisms.
40679         At the moment, I want to filter by branch name.  Rather than
40680         adding a --branch option to gitlog-to-changelog, it seems more
40681         flexible to simply pass all options directly to git-log and let
40682         git do the work.  Notice that this effectively makes --since a
40683         redundant option for gitlog-to-changelog, but removing it would
40684         require current usage to change since calls would then require
40685         an additional '--'.
40686
40687 2008-12-21  Bruno Haible  <bruno@clisp.org>
40688
40689         * modules/mbsnrtowcs-tests: New file.
40690         * tests/test-mbsnrtowcs1.sh: New file.
40691         * tests/test-mbsnrtowcs2.sh: New file.
40692         * tests/test-mbsnrtowcs3.sh: New file.
40693         * tests/test-mbsnrtowcs4.sh: New file.
40694         * tests/test-mbsnrtowcs.c: New file.
40695
40696         New module 'mbsnrtowcs'.
40697         * lib/wchar.in.h (mbsnrtowcs): New declaration.
40698         * lib/mbsnrtowcs.c: New file.
40699         * lib/mbsrtowcs-state.c: New file.
40700         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
40701         (internal_state): Remove variable.
40702         * m4/mbsnrtowcs.m4: New file.
40703         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
40704         compilation units.
40705         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
40706         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40707         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
40708         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40709         * modules/mbsnrtowcs: New file.
40710         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
40711         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
40712         portability problem.
40713
40714 2008-12-21  Bruno Haible  <bruno@clisp.org>
40715
40716         Work around mbsrtowcs bug.
40717         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
40718         (gl_FUNC_MBSRTOWCS): Invoke it.
40719         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40720         m4/locale-zh.m4.
40721         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
40722
40723 2008-12-21  Bruno Haible  <bruno@clisp.org>
40724
40725         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
40726
40727 2008-12-21  Bruno Haible  <bruno@clisp.org>
40728
40729         Update doc for AIX.
40730         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
40731         16-bit wchar_t type.
40732         * doc/posix-functions/btowc.texi: Likewise.
40733         * doc/posix-functions/fgetwc.texi: Likewise.
40734         * doc/posix-functions/fgetws.texi: Likewise.
40735         * doc/posix-functions/fputwc.texi: Likewise.
40736         * doc/posix-functions/fputws.texi: Likewise.
40737         * doc/posix-functions/fwide.texi: Likewise.
40738         * doc/posix-functions/fwprintf.texi: Likewise.
40739         * doc/posix-functions/fwscanf.texi: Likewise.
40740         * doc/posix-functions/getwchar.texi: Likewise.
40741         * doc/posix-functions/getwc.texi: Likewise.
40742         * doc/posix-functions/iswalnum.texi: Likewise.
40743         * doc/posix-functions/iswalpha.texi: Likewise.
40744         * doc/posix-functions/iswblank.texi: Likewise.
40745         * doc/posix-functions/iswcntrl.texi: Likewise.
40746         * doc/posix-functions/iswctype.texi: Likewise.
40747         * doc/posix-functions/iswdigit.texi: Likewise.
40748         * doc/posix-functions/iswgraph.texi: Likewise.
40749         * doc/posix-functions/iswlower.texi: Likewise.
40750         * doc/posix-functions/iswprint.texi: Likewise.
40751         * doc/posix-functions/iswpunct.texi: Likewise.
40752         * doc/posix-functions/iswspace.texi: Likewise.
40753         * doc/posix-functions/iswupper.texi: Likewise.
40754         * doc/posix-functions/iswxdigit.texi: Likewise.
40755         * doc/posix-functions/mbrtowc.texi: Likewise.
40756         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40757         * doc/posix-functions/mbstowcs.texi: Likewise.
40758         * doc/posix-functions/mbtowc.texi: Likewise.
40759         * doc/posix-functions/putwchar.texi: Likewise.
40760         * doc/posix-functions/putwc.texi: Likewise.
40761         * doc/posix-functions/swprintf.texi: Likewise.
40762         * doc/posix-functions/tolower.texi: Likewise.
40763         * doc/posix-functions/toupper.texi: Likewise.
40764         * doc/posix-functions/towctrans.texi: Likewise.
40765         * doc/posix-functions/ungetwc.texi: Likewise.
40766         * doc/posix-functions/vswprintf.texi: Likewise.
40767         * doc/posix-functions/wcrtomb.texi: Likewise.
40768         * doc/posix-functions/wcscat.texi: Likewise.
40769         * doc/posix-functions/wcschr.texi: Likewise.
40770         * doc/posix-functions/wcscmp.texi: Likewise.
40771         * doc/posix-functions/wcscoll.texi: Likewise.
40772         * doc/posix-functions/wcscpy.texi: Likewise.
40773         * doc/posix-functions/wcscspn.texi: Likewise.
40774         * doc/posix-functions/wcsftime.texi: Likewise.
40775         * doc/posix-functions/wcslen.texi: Likewise.
40776         * doc/posix-functions/wcsncat.texi: Likewise.
40777         * doc/posix-functions/wcsncmp.texi: Likewise.
40778         * doc/posix-functions/wcsncpy.texi: Likewise.
40779         * doc/posix-functions/wcspbrk.texi: Likewise.
40780         * doc/posix-functions/wcsrchr.texi: Likewise.
40781         * doc/posix-functions/wcsrtombs.texi: Likewise.
40782         * doc/posix-functions/wcsspn.texi: Likewise.
40783         * doc/posix-functions/wcsstr.texi: Likewise.
40784         * doc/posix-functions/wcstod.texi: Likewise.
40785         * doc/posix-functions/wcstof.texi: Likewise.
40786         * doc/posix-functions/wcstoimax.texi: Likewise.
40787         * doc/posix-functions/wcstok.texi: Likewise.
40788         * doc/posix-functions/wcstold.texi: Likewise.
40789         * doc/posix-functions/wcstoll.texi: Likewise.
40790         * doc/posix-functions/wcstol.texi: Likewise.
40791         * doc/posix-functions/wcstombs.texi: Likewise.
40792         * doc/posix-functions/wcstoull.texi: Likewise.
40793         * doc/posix-functions/wcstoul.texi: Likewise.
40794         * doc/posix-functions/wcstoumax.texi: Likewise.
40795         * doc/posix-functions/wcswidth.texi: Likewise.
40796         * doc/posix-functions/wcsxfrm.texi: Likewise.
40797         * doc/posix-functions/wctob.texi: Likewise.
40798         * doc/posix-functions/wctomb.texi: Likewise.
40799         * doc/posix-functions/wctrans.texi: Likewise.
40800         * doc/posix-functions/wctype.texi: Likewise.
40801         * doc/posix-functions/wcwidth.texi: Likewise.
40802         * doc/posix-functions/wmemchr.texi: Likewise.
40803         * doc/posix-functions/wmemcmp.texi: Likewise.
40804         * doc/posix-functions/wmemcpy.texi: Likewise.
40805         * doc/posix-functions/wmemmove.texi: Likewise.
40806         * doc/posix-functions/wmemset.texi: Likewise.
40807         * doc/posix-functions/wprintf.texi: Likewise.
40808         * doc/posix-functions/wscanf.texi: Likewise.
40809
40810 2008-12-21  Bruno Haible  <bruno@clisp.org>
40811
40812         Update doc for HP-UX 11.11.
40813         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40814         in HP-UX version 11.00, not in all versions of HP-UX 11.
40815         * doc/posix-functions/fwide.texi: Likewise.
40816         * doc/posix-functions/fwprintf.texi: Likewise.
40817         * doc/posix-functions/fwscanf.texi: Likewise.
40818         * doc/posix-functions/inet_ntop.texi: Likewise.
40819         * doc/posix-functions/inet_pton.texi: Likewise.
40820         * doc/posix-functions/mbrlen.texi: Likewise.
40821         * doc/posix-functions/mbrtowc.texi: Likewise.
40822         * doc/posix-functions/mbsinit.texi: Likewise.
40823         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40824         * doc/posix-functions/swprintf.texi: Likewise.
40825         * doc/posix-functions/swscanf.texi: Likewise.
40826         * doc/posix-functions/towctrans.texi: Likewise.
40827         * doc/posix-functions/vfwprintf.texi: Likewise.
40828         * doc/posix-functions/vswprintf.texi: Likewise.
40829         * doc/posix-functions/vwprintf.texi: Likewise.
40830         * doc/posix-functions/wcrtomb.texi: Likewise.
40831         * doc/posix-functions/wcsrtombs.texi: Likewise.
40832         * doc/posix-functions/wcsstr.texi: Likewise.
40833         * doc/posix-functions/wctob.texi: Likewise.
40834         * doc/posix-functions/wctrans.texi: Likewise.
40835         * doc/posix-functions/wmemchr.texi: Likewise.
40836         * doc/posix-functions/wmemcmp.texi: Likewise.
40837         * doc/posix-functions/wmemcpy.texi: Likewise.
40838         * doc/posix-functions/wmemmove.texi: Likewise.
40839         * doc/posix-functions/wmemset.texi: Likewise.
40840         * doc/posix-functions/wprintf.texi: Likewise.
40841         * doc/posix-functions/wscanf.texi: Likewise.
40842
40843 2008-12-21  Bruno Haible  <bruno@clisp.org>
40844
40845         Work around a portability problem.
40846         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
40847         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
40848
40849 2008-12-20  Bruno Haible  <bruno@clisp.org>
40850
40851         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
40852         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
40853         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
40854         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
40855         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
40856
40857         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
40858         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
40859         set.
40860         (GNULIB_defined_mbstate_t): New macro.
40861         (mbsinit): Redefine if REPLACE_MBSINIT is set.
40862         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
40863         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
40864         reuses the system's mbrtowc function but works around the bugs.
40865         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
40866         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
40867         macros.
40868         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
40869         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
40870         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
40871         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
40872         REPLACE_MBSINIT if mbsinit needs to be overridden.
40873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
40874         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40875         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
40876         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40877         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40878         m4/locale-zh.m4.
40879         (Depends): Add mbsinit.
40880         * modules/mbsinit (Depends): Add mbrtowc.
40881         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
40882
40883 2008-12-20  Bruno Haible  <bruno@clisp.org>
40884
40885         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40886         so that there are no conversion errors on AIX.
40887         * tests/test-mbsrtowcs.c (main): LIkewise.
40888
40889 2008-12-20  Bruno Haible  <bruno@clisp.org>
40890
40891         Work around wctob bug on Solaris <= 9.
40892         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40893         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40894         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40895         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40896         * modules/wctob (Files): Add m4/locale-fr.m4.
40897         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40898
40899 2008-12-20  Bruno Haible  <bruno@clisp.org>
40900
40901         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40902         /dev/null.
40903         * tests/test-select-in.sh: Likewise.
40904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40905
40906 2008-12-20  Bruno Haible  <bruno@clisp.org>
40907
40908         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40909         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40910         Cygwin 1.5.x.
40911
40912 2008-12-20  Bruno Haible  <bruno@clisp.org>
40913
40914         Ensure mbstate_t is defined on HP-UX 11.11.
40915         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40916         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40917         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40918         AC_USE_SYSTEM_EXTENSIONS.
40919         * modules/fnmatch (Depends-on): Add extensions.
40920         * modules/mbrlen (Depends-on): Likewise.
40921         * modules/mbrtowc (Depends-on): Likewise.
40922         * modules/mbsinit (Depends-on): Likewise.
40923         * modules/mbsrtowcs (Depends-on): Likewise.
40924         * modules/mbswidth (Depends-on): Likewise.
40925         * modules/quotearg (Depends-on): Likewise.
40926         * modules/strftime (Depends-on): Likewise.
40927
40928 2008-12-20  Bruno Haible  <bruno@clisp.org>
40929
40930         Ensure wctob is declared on IRIX 6.5.
40931         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40932         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40933         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40934         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40935         of HAVE_WCTOB.
40936         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40937         HAVE_WCTOB.
40938         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40939
40940 2008-12-19  Bruno Haible  <bruno@clisp.org>
40941
40942         * modules/mbsrtowcs-tests: New file.
40943         * tests/test-mbsrtowcs1.sh: New file.
40944         * tests/test-mbsrtowcs2.sh: New file.
40945         * tests/test-mbsrtowcs3.sh: New file.
40946         * tests/test-mbsrtowcs4.sh: New file.
40947         * tests/test-mbsrtowcs.c: New file.
40948
40949         New module 'mbsrtowcs'.
40950         * lib/wchar.in.h (mbsrtowcs): New declaration.
40951         * lib/mbsrtowcs.c: New file.
40952         * m4/mbsrtowcs.m4: New file.
40953         * modules/mbsrtowcs: New file.
40954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40955         HAVE_MBSRTOWCS.
40956         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40957         HAVE_MBSRTOWCS.
40958         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40959
40960 2008-12-19  Bruno Haible  <bruno@clisp.org>
40961
40962         New module 'mbrlen'.
40963         * lib/wchar.in.h (mbrlen): New declaration.
40964         * lib/mbrlen.c: New file.
40965         * m4/mbrlen.m4: New file.
40966         * modules/mbrlen: New file.
40967         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40968         HAVE_MBRLEN.
40969         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40970         HAVE_MBRLEN.
40971         * doc/posix-functions/mbrlen.texi: Document the new module.
40972
40973 2008-12-19  Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40976         * modules/mbrtowc (Depends-on): Add verify.
40977         Suggested by Paul Eggert.
40978
40979 2008-12-18  Bruno Haible  <bruno@clisp.org>
40980
40981         * modules/mbsinit-tests: New file.
40982         * tests/test-mbsinit.sh: New file.
40983         * tests/test-mbsinit.c: New file.
40984
40985 2008-12-18  Bruno Haible  <bruno@clisp.org>
40986
40987         * modules/mbrtowc-tests: New file.
40988         * tests/test-mbrtowc1.sh: New file.
40989         * tests/test-mbrtowc2.sh: New file.
40990         * tests/test-mbrtowc3.sh: New file.
40991         * tests/test-mbrtowc4.sh: New file.
40992         * tests/test-mbrtowc.c: New file.
40993
40994         New module 'mbrtowc'.
40995         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40996         mbsinit and mbrtowc.
40997         (mbrtowc): New declaration.
40998         * lib/mbrtowc.c: New file.
40999         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
41000         * modules/mbrtowc: New file.
41001         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
41002         HAVE_MBRTOWC.
41003         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
41004         HAVE_MBRTOWC.
41005         * doc/posix-functions/mbrtowc.texi: Document the new module.
41006
41007 2008-12-18  Bruno Haible  <bruno@clisp.org>
41008
41009         New module 'wctob'.
41010         * lib/wchar.in.h (wctob): New declaration.
41011         * lib/wctob.c: New file.
41012         * m4/wctob.m4: New file.
41013         * modules/wctob: New file.
41014         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
41015         HAVE_WCTOB.
41016         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
41017         * doc/posix-functions/wctob.texi: Document the new module.
41018
41019 2008-12-18  Bruno Haible  <bruno@clisp.org>
41020
41021         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
41022         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
41023
41024 2008-12-18  Simon Josefsson  <simon@josefsson.org>
41025
41026         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
41027         G. Christensen" <tgc@jupiterrise.com>.
41028
41029         * lib/flock.c: Need to include errno.h.  Reported by "Tom
41030         G. Christensen" <tgc@jupiterrise.com>.
41031
41032         * lib/flock.c: Need to include string.h.  Reported by "Tom
41033         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
41034         <ebb9@byu.net>.
41035
41036 2008-12-18  Bruno Haible  <bruno@clisp.org>
41037
41038         * m4/locale-ja.m4: New file, from GNU gettext.
41039
41040 2008-12-17  Bruno Haible  <bruno@clisp.org>
41041
41042         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
41043         Suggested by Eric Blake.
41044
41045 2008-12-17  Bruno Haible  <bruno@clisp.org>
41046
41047         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
41048
41049 2008-12-17  Bruno Haible  <bruno@clisp.org>
41050
41051         * lib/mbsinit.c: Include verify.h. Verify an assumption.
41052         * modules/mbsinit (Depends-on): Add verify.
41053         Suggested by Paul Eggert.
41054
41055 2008-12-17  Bruno Haible  <bruno@clisp.org>
41056
41057         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
41058         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
41059         gl_FUNC_MBRTOWC.
41060         * m4/mbiter.m4 (gl_MBITER): LIkewise.
41061         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
41062         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
41063         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
41064         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
41065         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
41066         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
41067         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
41068         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
41069         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
41070         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
41071         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
41072         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
41073         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
41074         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
41075         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41076         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
41077         * modules/trim (configure.ac): Likewise.
41078
41079 2008-12-17  Bruno Haible  <bruno@clisp.org>
41080
41081         * modules/btowc-tests: New file.
41082         * tests/test-btowc1.sh: New file.
41083         * tests/test-btowc2.sh: New file.
41084         * tests/test-btowc.c: New file.
41085
41086         New module 'btowc'.
41087         * lib/wchar.in.h (btowc): New declaration.
41088         * lib/btowc.c: New file.
41089         * m4/btowc.m4: New file.
41090         * modules/btowc: New file.
41091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
41092         HAVE_BTOWC.
41093         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
41094         * doc/posix-functions/btowc.texi: Document the new module.
41095
41096 2008-12-17  Bruno Haible  <bruno@clisp.org>
41097
41098         New module 'mbsinit'.
41099         * lib/wchar.in.h (mbsinit): New declaration.
41100         * lib/mbsinit.c: New file.
41101         * m4/mbsinit.m4: New file.
41102         * modules/mbsinit: New file.
41103         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
41104         HAVE_MBSINIT.
41105         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
41106         HAVE_MBSINIT.
41107         * doc/posix-functions/mbsinit.texi: Document the new module.
41108
41109 2008-12-16  Bruno Haible  <bruno@clisp.org>
41110
41111         * lib/unistd.in.h: Add comment.
41112         * tests/test-environ.c: Don't include <stdlib.h>.
41113
41114 2008-12-16  Bruno Haible  <bruno@clisp.org>
41115
41116         * lib/parse-duration.h (parse_duration): Document return value
41117         convention.
41118         * lib/parse-duration.c: Include specification header first. Add
41119         comments.
41120         (_): Remove macro.
41121         (parse_year_month_day, parse_hour_minute_second): Move side effects
41122         outside of strchr call.
41123         (parse_non_iso8601): Move side effects outside of isspace call.
41124         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
41125         call.
41126
41127 2008-12-16  Bruno Haible  <bruno@clisp.org>
41128
41129         * tests/test-parse-duration.sh: Produce no output when the test
41130         succeeds.
41131
41132 2008-12-16  Bruno Haible  <bruno@clisp.org>
41133
41134         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
41135         expressions.
41136
41137 2008-12-15  Bruno Haible  <bruno@clisp.org>
41138
41139         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
41140         * doc/glibc-functions/flistxattr.texi: Likewise.
41141         * doc/glibc-functions/fopencookie.texi: Likewise.
41142         * doc/glibc-functions/fremovexattr.texi: Likewise.
41143         * doc/glibc-functions/fsetxattr.texi: Likewise.
41144         * doc/glibc-functions/getxattr.texi: Likewise.
41145         * doc/glibc-functions/lgetxattr.texi: Likewise.
41146         * doc/glibc-functions/listxattr.texi: Likewise.
41147         * doc/glibc-functions/llistxattr.texi: Likewise.
41148         * doc/glibc-functions/lremovexattr.texi: Likewise.
41149         * doc/glibc-functions/lsetxattr.texi: Likewise.
41150         * doc/glibc-functions/removexattr.texi: Likewise.
41151         * doc/glibc-functions/setxattr.texi: Likewise.
41152         * doc/posix-functions/open_memstream.texi: Likewise.
41153
41154 2008-12-15  Eric Blake  <ebb9@byu.net>
41155
41156         Update doc for cygwin 1.7.
41157         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
41158         functions.
41159         * doc/posix-functions/fchmodat.texi: Likewise.
41160         * doc/posix-functions/fchownat.texi: Likewise.
41161         * doc/posix-functions/fdopendir.texi: Likewise.
41162         * doc/posix-functions/fmemopen.texi: Likewise.
41163         * doc/posix-functions/freeaddrinfo.texi: Likewise.
41164         * doc/posix-functions/fstatat.texi: Likewise.
41165         * doc/posix-functions/futimens.texi: Likewise.
41166         * doc/posix-functions/gai_strerror.texi: Likewise.
41167         * doc/posix-functions/getaddrinfo.texi: Likewise.
41168         * doc/posix-functions/getnameinfo.texi: Likewise.
41169         * doc/posix-functions/if_freenameindex.texi: Likewise.
41170         * doc/posix-functions/if_indextoname.texi: Likewise.
41171         * doc/posix-functions/if_nameindex.texi: Likewise.
41172         * doc/posix-functions/if_nametoindex.texi: Likewise.
41173         * doc/posix-functions/insque.texi: Likewise.
41174         * doc/posix-functions/linkat.texi: Likewise.
41175         * doc/posix-functions/llrint.texi: Likewise.
41176         * doc/posix-functions/llrintf.texi: Likewise.
41177         * doc/posix-functions/llrintl.texi: Likewise.
41178         * doc/posix-functions/lockf.texi: Likewise.
41179         * doc/posix-functions/lrintl.texi: Likewise.
41180         * doc/posix-functions/mkdirat.texi: Likewise.
41181         * doc/posix-functions/mkfifoat.texi: Likewise.
41182         * doc/posix-functions/mknodat.texi: Likewise.
41183         * doc/posix-functions/mq_close.texi: Likewise.
41184         * doc/posix-functions/mq_getattr.texi: Likewise.
41185         * doc/posix-functions/mq_notify.texi: Likewise.
41186         * doc/posix-functions/mq_open.texi: Likewise.
41187         * doc/posix-functions/mq_receive.texi: Likewise.
41188         * doc/posix-functions/mq_send.texi: Likewise.
41189         * doc/posix-functions/mq_setattr.texi: Likewise.
41190         * doc/posix-functions/mq_timedreceive.texi: Likewise.
41191         * doc/posix-functions/mq_timedsend.texi: Likewise.
41192         * doc/posix-functions/mq_unlink.texi: Likewise.
41193         * doc/posix-functions/open_memstream.texi: Likewise.
41194         * doc/posix-functions/openat.texi: Likewise.
41195         * doc/posix-functions/posix_fadvise.texi: Likewise.
41196         * doc/posix-functions/posix_fallocate.texi: Likewise.
41197         * doc/posix-functions/posix_madvise.texi: Likewise.
41198         * doc/posix-functions/posix_memalign.texi: Likewise.
41199         * doc/posix-functions/posix_openpt.texi: Likewise.
41200         * doc/posix-functions/readlinkat.texi: Likewise.
41201         * doc/posix-functions/remque.texi: Likewise.
41202         * doc/posix-functions/renameat.texi: Likewise.
41203         * doc/posix-functions/rintl.texi: Likewise.
41204         * doc/posix-functions/sem_unlink.texi: Likewise.
41205         * doc/posix-functions/shm_open.texi: Likewise.
41206         * doc/posix-functions/shm_unlink.texi: Likewise.
41207         * doc/posix-functions/signgam.texi: Likewise.
41208         * doc/posix-functions/sigset.texi: Likewise.
41209         * doc/posix-functions/stpcpy.texi: Likewise.
41210         * doc/posix-functions/stpncpy.texi: Likewise.
41211         * doc/posix-functions/strerror.texi: Likewise.
41212         * doc/posix-functions/strtod.texi: Likewise.
41213         * doc/posix-functions/symlinkat.texi: Likewise.
41214         * doc/posix-functions/unlinkat.texi: Likewise.
41215         * doc/posix-functions/utimensat.texi: Likewise.
41216         * doc/glibc-functions/bindresvport.texi: Likewise.
41217         * doc/glibc-functions/dn_expand.texi: Likewise.
41218         * doc/glibc-functions/exp10.texi: Likewise.
41219         * doc/glibc-functions/exp10f.texi: Likewise.
41220         * doc/glibc-functions/fgetxattr.texi: Likewise.
41221         * doc/glibc-functions/flistxattr.texi: Likewise.
41222         * doc/glibc-functions/fopencookie.texi: Likewise.
41223         * doc/glibc-functions/freeifaddrs.texi: Likewise.
41224         * doc/glibc-functions/fremovexattr.texi: Likewise.
41225         * doc/glibc-functions/fsetxattr.texi: Likewise.
41226         * doc/glibc-functions/getifaddrs.texi: Likewise.
41227         * doc/glibc-functions/getxattr.texi: Likewise.
41228         * doc/glibc-functions/lgetxattr.texi: Likewise.
41229         * doc/glibc-functions/listxattr.texi: Likewise.
41230         * doc/glibc-functions/llistxattr.texi: Likewise.
41231         * doc/glibc-functions/lremovexattr.texi: Likewise.
41232         * doc/glibc-functions/lsetxattr.texi: Likewise.
41233         * doc/glibc-functions/pow10.texi: Likewise.
41234         * doc/glibc-functions/pow10f.texi: Likewise.
41235         * doc/glibc-functions/rcmd_af.texi: Likewise.
41236         * doc/glibc-functions/removexattr.texi: Likewise.
41237         * doc/glibc-functions/res_init.texi: Likewise.
41238         * doc/glibc-functions/res_mkquery.texi: Likewise.
41239         * doc/glibc-functions/res_query.texi: Likewise.
41240         * doc/glibc-functions/res_querydomain.texi: Likewise.
41241         * doc/glibc-functions/res_send.texi: Likewise.
41242         * doc/glibc-functions/rresvport_af.texi: Likewise.
41243         * doc/glibc-functions/setxattr.texi: Likewise.
41244         * doc/glibc-functions/strcasestr.texi: Likewise.
41245
41246 2008-12-15  Bruno Haible  <bruno@clisp.org>
41247
41248         Fix compilation error on OSF/1 4.0.
41249         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
41250         <sys/time.h>, simply delegate to the system header.
41251         Reported by Daniel Richard G. <oss@teragram.com>.
41252
41253 2008-12-15  Bruno Haible  <bruno@clisp.org>
41254
41255         * doc/posix-functions/openat.texi: Mention the 'openat' module.
41256         * doc/posix-functions/fchmodat.texi: Likewise.
41257         * doc/posix-functions/fchownat.texi: Likewise.
41258         * doc/posix-functions/fdopendir.texi: Likewise.
41259         * doc/posix-functions/fstatat.texi: Likewise.
41260         * doc/posix-functions/mkdirat.texi: Likewise.
41261         * doc/posix-functions/unlinkat.texi: Likewise.
41262
41263 2008-12-14  Bruno Haible  <bruno@clisp.org>
41264
41265         Update doc for POSIX:2008.
41266         * doc/posix-functions/faccessat.texi: New file.
41267         * doc/posix-functions/fchmodat.texi: New file.
41268         * doc/posix-functions/fchownat.texi: New file.
41269         * doc/posix-functions/fdopendir.texi: New file.
41270         * doc/posix-functions/fstatat.texi: New file.
41271         * doc/posix-functions/futimens.texi: New file.
41272         * doc/posix-functions/linkat.texi: New file.
41273         * doc/posix-functions/mkdirat.texi: New file.
41274         * doc/posix-functions/mkfifoat.texi: New file.
41275         * doc/posix-functions/mknodat.texi: New file.
41276         * doc/posix-functions/open_wmemstream.texi: New file.
41277         * doc/posix-functions/openat.texi: New file.
41278         * doc/posix-functions/psiginfo.texi: New file.
41279         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
41280         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
41281         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
41282         * doc/posix-functions/readlinkat.texi: New file.
41283         * doc/posix-functions/renameat.texi: New file.
41284         * doc/posix-functions/strerror_l.texi: New file.
41285         * doc/posix-functions/symlinkat.texi: New file.
41286         * doc/posix-functions/unlinkat.texi: New file.
41287         * doc/posix-functions/utimensat.texi: New file.
41288         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41289
41290 2008-12-14  Bruno Haible  <bruno@clisp.org>
41291
41292         Update doc for POSIX:2008.
41293         * doc/posix-functions/alphasort.texi: Renamed from
41294         doc/glibc-functions/alphasort.texi.
41295         * doc/posix-functions/dirfd.texi: Renamed from
41296         doc/glibc-functions/dirfd.texi.
41297         * doc/posix-functions/dprintf.texi: Renamed from
41298         doc/glibc-functions/dprintf.texi.
41299         * doc/posix-functions/duplocale.texi: Renamed from
41300         doc/glibc-functions/duplocale.texi.
41301         * doc/posix-functions/fexecve.texi: Renamed from
41302         doc/glibc-functions/fexecve.texi.
41303         * doc/posix-functions/fmemopen.texi: Renamed from
41304         doc/glibc-functions/fmemopen.texi.
41305         * doc/posix-functions/freelocale.texi: Renamed from
41306         doc/glibc-functions/freelocale.texi.
41307         * doc/posix-functions/getdate_err.texi: Renamed from
41308         doc/glibc-functions/getdate_err.texi.
41309         * doc/posix-functions/isalnum_l.texi: Renamed from
41310         doc/glibc-functions/isalnum_l.texi.
41311         * doc/posix-functions/isalpha_l.texi: Renamed from
41312         doc/glibc-functions/isalpha_l.texi.
41313         * doc/posix-functions/isblank_l.texi: Renamed from
41314         doc/glibc-functions/isblank_l.texi.
41315         * doc/posix-functions/iscntrl_l.texi: Renamed from
41316         doc/glibc-functions/iscntrl_l.texi.
41317         * doc/posix-functions/isdigit_l.texi: Renamed from
41318         doc/glibc-functions/isdigit_l.texi.
41319         * doc/posix-functions/isgraph_l.texi: Renamed from
41320         doc/glibc-functions/isgraph_l.texi.
41321         * doc/posix-functions/islower_l.texi: Renamed from
41322         doc/glibc-functions/islower_l.texi.
41323         * doc/posix-functions/isprint_l.texi: Renamed from
41324         doc/glibc-functions/isprint_l.texi.
41325         * doc/posix-functions/ispunct_l.texi: Renamed from
41326         doc/glibc-functions/ispunct_l.texi.
41327         * doc/posix-functions/isspace_l.texi: Renamed from
41328         doc/glibc-functions/isspace_l.texi.
41329         * doc/posix-functions/isupper_l.texi: Renamed from
41330         doc/glibc-functions/isupper_l.texi.
41331         * doc/posix-functions/iswalnum_l.texi: Renamed from
41332         doc/glibc-functions/iswalnum_l.texi.
41333         * doc/posix-functions/iswalpha_l.texi: Renamed from
41334         doc/glibc-functions/iswalpha_l.texi.
41335         * doc/posix-functions/iswblank_l.texi: Renamed from
41336         doc/glibc-functions/iswblank_l.texi.
41337         * doc/posix-functions/iswcntrl_l.texi: Renamed from
41338         doc/glibc-functions/iswcntrl_l.texi.
41339         * doc/posix-functions/iswctype_l.texi: Renamed from
41340         doc/glibc-functions/iswctype_l.texi.
41341         * doc/posix-functions/iswdigit_l.texi: Renamed from
41342         doc/glibc-functions/iswdigit_l.texi.
41343         * doc/posix-functions/iswgraph_l.texi: Renamed from
41344         doc/glibc-functions/iswgraph_l.texi.
41345         * doc/posix-functions/iswlower_l.texi: Renamed from
41346         doc/glibc-functions/iswlower_l.texi.
41347         * doc/posix-functions/iswprint_l.texi: Renamed from
41348         doc/glibc-functions/iswprint_l.texi.
41349         * doc/posix-functions/iswpunct_l.texi: Renamed from
41350         doc/glibc-functions/iswpunct_l.texi.
41351         * doc/posix-functions/iswspace_l.texi: Renamed from
41352         doc/glibc-functions/iswspace_l.texi.
41353         * doc/posix-functions/iswupper_l.texi: Renamed from
41354         doc/glibc-functions/iswupper_l.texi.
41355         * doc/posix-functions/iswxdigit_l.texi: Renamed from
41356         doc/glibc-functions/iswxdigit_l.texi.
41357         * doc/posix-functions/isxdigit_l.texi: Renamed from
41358         doc/glibc-functions/isxdigit_l.texi.
41359         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
41360         doc/glibc-functions/mbsnrtowcs.texi.
41361         * doc/posix-functions/mkdtemp.texi: Renamed from
41362         doc/glibc-functions/mkdtemp.texi.
41363         * doc/posix-functions/newlocale.texi: Renamed from
41364         doc/glibc-functions/newlocale.texi.
41365         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
41366         doc/glibc-functions/nl_langinfo_l.texi.
41367         * doc/posix-functions/open_memstream.texi: Renamed from
41368         doc/glibc-functions/open_memstream.texi.
41369         * doc/posix-functions/opterr.texi: Renamed from
41370         doc/glibc-functions/opterr.texi.
41371         * doc/posix-functions/optind.texi: Renamed from
41372         doc/glibc-functions/optind.texi.
41373         * doc/posix-functions/optopt.texi: Renamed from
41374         doc/glibc-functions/optopt.texi.
41375         * doc/posix-functions/psignal.texi: Renamed from
41376         doc/glibc-functions/psignal.texi.
41377         * doc/posix-functions/scandir.texi: Renamed from
41378         doc/glibc-functions/scandir.texi.
41379         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
41380         doc/glibc-functions/sched_get_priority_min.texi.
41381         * doc/posix-functions/signgam.texi: Renamed from
41382         doc/glibc-functions/signgam.texi.
41383         * doc/posix-functions/stpcpy.texi: Renamed from
41384         doc/glibc-functions/stpcpy.texi.
41385         * doc/posix-functions/stpncpy.texi: Renamed from
41386         doc/glibc-functions/stpncpy.texi.
41387         * doc/posix-functions/strcasecmp_l.texi: Renamed from
41388         doc/glibc-functions/strcasecmp_l.texi.
41389         * doc/posix-functions/strcoll_l.texi: Renamed from
41390         doc/glibc-functions/strcoll_l.texi.
41391         * doc/posix-functions/strfmon_l.texi: Renamed from
41392         doc/glibc-functions/strfmon_l.texi.
41393         * doc/posix-functions/strftime_l.texi: Renamed from
41394         doc/glibc-functions/strftime_l.texi.
41395         * doc/posix-functions/strncasecmp_l.texi: Renamed from
41396         doc/glibc-functions/strncasecmp_l.texi.
41397         * doc/posix-functions/strndup.texi: Renamed from
41398         doc/glibc-functions/strndup.texi.
41399         * doc/posix-functions/strnlen.texi: Renamed from
41400         doc/glibc-functions/strnlen.texi.
41401         * doc/posix-functions/strsignal.texi: Renamed from
41402         doc/glibc-functions/strsignal.texi.
41403         * doc/posix-functions/strxfrm_l.texi: Renamed from
41404         doc/glibc-functions/strxfrm_l.texi.
41405         * doc/posix-functions/timer_gettime.texi: Renamed from
41406         doc/glibc-functions/timer_gettime.texi.
41407         * doc/posix-functions/tolower_l.texi: Renamed from
41408         doc/glibc-functions/tolower_l.texi.
41409         * doc/posix-functions/toupper_l.texi: Renamed from
41410         doc/glibc-functions/toupper_l.texi.
41411         * doc/posix-functions/towctrans_l.texi: Renamed from
41412         doc/glibc-functions/towctrans_l.texi.
41413         * doc/posix-functions/towlower_l.texi: Renamed from
41414         doc/glibc-functions/towlower_l.texi.
41415         * doc/posix-functions/towupper_l.texi: Renamed from
41416         doc/glibc-functions/towupper_l.texi.
41417         * doc/posix-functions/uselocale.texi: Renamed from
41418         doc/glibc-functions/uselocale.texi.
41419         * doc/posix-functions/vdprintf.texi: Renamed from
41420         doc/glibc-functions/vdprintf.texi.
41421         * doc/posix-functions/wcpcpy.texi:
41422         Renamed from doc/glibc-functions/wcpcpy.texi.
41423         * doc/posix-functions/wcpncpy.texi: Renamed from
41424         doc/glibc-functions/wcpncpy.texi.
41425         * doc/posix-functions/wcscasecmp.texi: Renamed from
41426         doc/glibc-functions/wcscasecmp.texi.
41427         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
41428         doc/glibc-functions/wcscasecmp_l.texi.
41429         * doc/posix-functions/wcscoll_l.texi: Renamed from
41430         doc/glibc-functions/wcscoll_l.texi.
41431         * doc/posix-functions/wcsdup.texi: Renamed from
41432         doc/glibc-functions/wcsdup.texi.
41433         * doc/posix-functions/wcsncasecmp.texi: Renamed from
41434         doc/glibc-functions/wcsncasecmp.texi.
41435         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
41436         doc/glibc-functions/wcsncasecmp_l.texi.
41437         * doc/posix-functions/wcsnlen.texi: Renamed from
41438         doc/glibc-functions/wcsnlen.texi.
41439         * doc/posix-functions/wcsnrtombs.texi: Renamed from
41440         doc/glibc-functions/wcsnrtombs.texi.
41441         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
41442         doc/glibc-functions/wcsxfrm_l.texi.
41443         * doc/posix-functions/wctrans_l.texi: Renamed from
41444         doc/glibc-functions/wctrans_l.texi.
41445         * doc/posix-functions/wctype_l.texi: Renamed from
41446         doc/glibc-functions/wctype_l.texi.
41447         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41448         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
41449         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
41450         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
41451         these subsections.
41452         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
41453         Remove sections.
41454
41455 2008-12-14  Bruno Haible  <bruno@clisp.org>
41456
41457         Update doc for POSIX:2008.
41458         * doc/posix-functions/*.texi: Update URL of POSIX specification.
41459
41460 2008-12-14  Bruno Haible  <bruno@clisp.org>
41461
41462         Update doc for POSIX:2008.
41463         * doc/pastposix-functions/bcmp.texi: Renamed from
41464         doc/posix-functions/bcmp.texi.
41465         * doc/pastposix-functions/bcopy.texi: Renamed from
41466         doc/posix-functions/bcopy.texi.
41467         * doc/pastposix-functions/bsd_signal.texi: Renamed from
41468         doc/posix-functions/bsd_signal.texi.
41469         * doc/pastposix-functions/bzero.texi: Renamed from
41470         doc/posix-functions/bzero.texi.
41471         * doc/pastposix-functions/ecvt.texi: Renamed from
41472         doc/posix-functions/ecvt.texi.
41473         * doc/pastposix-functions/fcvt.texi: Renamed from
41474         doc/posix-functions/fcvt.texi.
41475         * doc/pastposix-functions/ftime.texi: Renamed from
41476         doc/posix-functions/ftime.texi.
41477         * doc/pastposix-functions/gcvt.texi: Renamed from
41478         doc/posix-functions/gcvt.texi.
41479         * doc/pastposix-functions/getcontext.texi: Renamed from
41480         doc/posix-functions/getcontext.texi.
41481         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
41482         doc/posix-functions/gethostbyaddr.texi.
41483         * doc/pastposix-functions/gethostbyname.texi: Renamed from
41484         doc/posix-functions/gethostbyname.texi.
41485         * doc/pastposix-functions/getwd.texi: Renamed from
41486         doc/posix-functions/getwd.texi.
41487         * doc/pastposix-functions/h_errno.texi: Renamed from
41488         doc/posix-functions/h_errno.texi.
41489         * doc/pastposix-functions/index.texi: Renamed from
41490         doc/posix-functions/index.texi.
41491         * doc/pastposix-functions/makecontext.texi: Renamed from
41492         doc/posix-functions/makecontext.texi.
41493         * doc/pastposix-functions/mktemp.texi: Renamed from
41494         doc/posix-functions/mktemp.texi.
41495         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
41496         doc/posix-functions/pthread_attr_getstackaddr.texi.
41497         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
41498         doc/posix-functions/pthread_attr_setstackaddr.texi.
41499         * doc/pastposix-functions/rindex.texi: Renamed from
41500         doc/posix-functions/rindex.texi.
41501         * doc/pastposix-functions/scalb.texi: Renamed from
41502         doc/posix-functions/scalb.texi.
41503         * doc/pastposix-functions/setcontext.texi: Renamed from
41504         doc/posix-functions/setcontext.texi.
41505         * doc/pastposix-functions/swapcontext.texi: Renamed from
41506         doc/posix-functions/swapcontext.texi.
41507         * doc/pastposix-functions/ualarm.texi: Renamed from
41508         doc/posix-functions/ualarm.texi.
41509         * doc/pastposix-functions/usleep.texi: Renamed from
41510         doc/posix-functions/usleep.texi.
41511         * doc/pastposix-functions/vfork.texi: Renamed from
41512         doc/posix-functions/vfork.texi.
41513         * doc/pastposix-functions/wcswcs.texi: Renamed from
41514         doc/posix-functions/wcswcs.texi.
41515         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
41516         (Function Substitutes): Update.
41517
41518 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41519
41520         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
41521         m4/strerror.m4.
41522
41523 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41524             Bruno Haible  <bruno@clisp.org>
41525
41526         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
41527
41528 2008-12-13  Bruno Haible  <bruno@clisp.org>
41529
41530         * modules/strtoull (Depends-on): Remove unistd.
41531
41532 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41533
41534         * modules/strtoull (Depends-on): Add stdlib.
41535
41536 2008-12-11  Simon Josefsson  <simon@josefsson.org>
41537
41538         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
41539
41540 2008-12-10  Jim Meyering  <meyering@redhat.com>
41541
41542         gl_ASSERT: don't say assertions are disabled when they're not
41543         * m4/assert.m4 (gl_ASSERT): Do not make configure report
41544         "checking whether to enable assertions... no", when they are in
41545         fact enabled.  This is solely a bug in the output of configure.
41546         In spite of saying "no", NDEBUG was not defined in that case.
41547         Also, as noted by Eric Blake, leave assertions enabled upon
41548         --enable-assert=INVALID.
41549
41550 2008-12-10  Bruno Haible  <bruno@clisp.org>
41551
41552         Change MODULES.html to refer to POSIX:2008 where possible.
41553         * MODULES.html.sh (POSIX2008_URL): New variable.
41554         (posix_headers): Remove sys/timeb, ucontext.
41555         (posix2001_headers): New variable.
41556         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
41557         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
41558         index, makecontext, mktemp, pthread_attr_getstackaddr,
41559         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
41560         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
41561         (posix2001_functions): New variable.
41562         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
41563         otherwise.
41564
41565 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41566
41567         add missing include to parse-duration.c
41568         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
41569         * modules/parse-duration (Depends-on): Add xalloc.
41570
41571         fix sed script reading maint.mk
41572         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
41573         (syntax-check-rules): Use it.
41574
41575 2008-12-09  Bruno Haible  <bruno@clisp.org>
41576
41577         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
41578         MacOS X 10.4/PowerPC.
41579         Reported by Simon Josefsson.
41580
41581 2008-12-08  Jim Meyering  <meyering@redhat.com>
41582
41583         work around mingw's lack of some S_IF definitions
41584         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
41585         Reported by Simon Josefsson.
41586
41587 2008-12-08  Bruno Haible  <bruno@clisp.org>
41588
41589         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
41590         applied to variables. Needed on MacOS X 10.4/PowerPC.
41591         Reported by Simon Josefsson.
41592
41593 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
41594         and Eric Blake  <ebb9@byu.net>
41595
41596         assert: honor --enable-assert
41597         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
41598         order to honor --enable-assert, rather than treating it as a
41599         synonym for --disable-assert.
41600
41601 2008-12-08  Jim Meyering  <meyering@redhat.com>
41602
41603         * lib/posixtm.c: Remove now-useless declaration of mktime.
41604
41605         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
41606
41607 2008-12-07  Bruno Haible  <bruno@clisp.org>
41608
41609         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
41610         test_once): Mark functions as static.
41611         * tests/test-tls.c (test_tls): Likewise.
41612
41613 2008-12-07  Bruno Haible  <bruno@clisp.org>
41614
41615         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
41616         iconv_register_autodetect.
41617
41618 2008-12-07  Jim Meyering  <meyering@redhat.com>
41619
41620         posixtm.c: avoid a warning
41621         * lib/posixtm.c (posixtime): Don't initialize tm0.
41622         It's no longer needed to placate gcc4's -Wuninitialized,
41623         and the attempt to placate would elicit a new warning.
41624
41625         unicodeio.c: mark unused parameters
41626         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41627         (fallback_failure_callback): Likewise.
41628
41629 2008-12-07  Bruno Haible  <bruno@clisp.org>
41630
41631         * gnulib-tool (func_create_testdir): When building the tests
41632         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
41633         Reported by Simon Josefsson.
41634
41635 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41636
41637         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
41638
41639 2008-12-06  Bruno Haible  <bruno@clisp.org>
41640
41641         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
41642         Suggested by Eric Blake.
41643
41644 2008-12-06  Bruno Haible  <bruno@clisp.org>
41645
41646         Fix a c-stack test failure on MacOS X.
41647         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
41648         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
41649         handler for SIGBUS as well.
41650         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
41651         install a signal handler for SIGBUS as well.
41652         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
41653
41654 2008-12-06  Bruno Haible  <bruno@clisp.org>
41655
41656         Advocacy documentation.
41657         * doc/gnulib-intro.texi (Benefits): New section.
41658         * doc/gnulib.texi: Update.
41659
41660 2008-12-06  Bruno Haible  <bruno@clisp.org>
41661
41662         Document the 'manywarnings' module.
41663         * doc/manywarnings.texi: New file.
41664         * doc/gnulib.texi: Include it.
41665
41666 2008-12-05  Eric Blake  <ebb9@byu.net>
41667
41668         tests: silence some gcc warnings
41669         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
41670         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
41671         type mismatches.
41672
41673 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41674             Bruno Haible  <bruno@clisp.org>
41675
41676         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
41677
41678 2008-11-29  Jim Meyering  <meyering@redhat.com>
41679
41680         unicodeio.c: mark unused parameters
41681         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41682         (fallback_failure_callback): Likewise.
41683
41684         fts: fix a thinko
41685         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
41686         (set_stat_type): Return S_IF*-valued "type" directly.
41687         Prompted by James Youngman's spotting a related bug.
41688         Confirmed by further testing through find.
41689
41690         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
41691         * lib/fts.c (D_TYPE): Define.
41692         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
41693         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
41694         (s_ifmt_shift_bits): New function.
41695         (set_stat_type): New function.
41696         (fts_build): When not calling fts_stat, call set_stat_type
41697         to propagate dirent.d_type info to fts_read caller.
41698         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
41699         fts_statp->st_mode type information may be valid.
41700
41701 2008-11-28  Simon Josefsson  <simon@josefsson.org>
41702
41703         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
41704         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
41705         <sds@gnu.org>.
41706
41707 2008-11-20  Bruno Haible  <bruno@clisp.org>
41708
41709         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
41710         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
41711         INCLUDE_NEXT.
41712         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
41713         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
41714         * modules/math (Makefile.am): Substitute
41715         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
41716         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41717
41718 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
41719             Bruno Haible  <bruno@clisp.org>
41720
41721         * lib/stdint.in.h: Define all type macros so that their expansion is
41722         a single typedef'ed token. Fixes a compilation failure in Boost which
41723         does "using ::int8_t;".
41724
41725 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41726
41727         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
41728         gl_MANYWARN_ALL_GCC.
41729         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
41730         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
41731         * modules/manywarnings: New file.
41732         * MODULES.html.sh: Mention manywarnings module.
41733
41734 2008-11-18  Bruno Haible  <bruno@clisp.org>
41735
41736         * doc/gnulib-tool.texi (Unit tests): New section.
41737
41738 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41739
41740         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
41741         paths like 'lib/po/foo.po'.
41742
41743 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41744
41745         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
41746         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
41747
41748 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41749
41750         * m4/warnings.m4: Use CPPFLAGS to really check whether the
41751         parameter works.
41752
41753 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41754
41755         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
41756
41757 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41758
41759         * modules/parse-duration-tests: New file.
41760         * tests/test-parse-duration.sh: New file.
41761         * tests/test-parse-duration.c: New file.
41762
41763         New module 'parse-duration'.
41764         * lib/parse-duration.h: New file.
41765         * lib/parse-duration.c: New file.
41766         * modules/parse-duration: New file.
41767
41768 2008-11-17  Bruno Haible  <bruno@clisp.org>
41769
41770         * tests/test-select-out.sh: Comment out the first pipe test.
41771         Reported by Simon Josefsson.
41772
41773 2008-11-17  Bruno Haible  <bruno@clisp.org>
41774
41775         * modules/getaddrinfo (Depends-on): Add servent, hostent.
41776         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
41777         gl_HOSTENT.
41778
41779 2008-11-17  Bruno Haible  <bruno@clisp.org>
41780
41781         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
41782         -lnetwork and -lnet. Needed for Haiku and BeOS.
41783
41784 2008-11-16  Bruno Haible  <bruno@clisp.org>
41785
41786         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41787
41788 2008-11-16  Bruno Haible  <bruno@clisp.org>
41789
41790         Avoid test failure on Haiku.
41791         * tests/test-fsync.c: Include <errno.h>.
41792         (main): Don't require that fsync (0) fails.
41793
41794 2008-11-15  Bruno Haible  <bruno@clisp.org>
41795
41796         New module 'hostent'.
41797         * modules/hostent: New file.
41798         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41799
41800 2008-11-15  Bruno Haible  <bruno@clisp.org>
41801
41802         New module 'servent'.
41803         * modules/servent: New file.
41804         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41805
41806 2008-11-15  Bruno Haible  <bruno@clisp.org>
41807
41808         Avoid generating same test program with two different rules.
41809         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41810         test-frexp to test-frexp-nolibm.
41811         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41812         test-frexpl to test-frexpl-nolibm.
41813
41814 2008-11-15  Bruno Haible  <bruno@clisp.org>
41815
41816         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41817         $(FREXPL_LIBM).
41818
41819 2008-11-15  Bruno Haible  <bruno@clisp.org>
41820
41821         * lib/netdb.in.h: Activate the definitions also when the system's
41822         <netdb.h> has 'struct addrinfo'.
41823         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41824         EAI_OVERFLOW or AI_NUMERICSERV.
41825         * doc/posix-headers/netdb.texi: Document the problem.
41826
41827 2008-11-15  Bruno Haible  <bruno@clisp.org>
41828
41829         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
41830
41831         Make the 'sched' module work on platforms where <sched.h> exists but
41832         is incomplete (such as Haiku).
41833         * lib/sched.in.h; Include the system's <sched.h> if it exists.
41834         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
41835         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
41836         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
41837         HAVE_STRUCT_SCHED_PARAM.
41838         * modules/sched (Depends-on): Add include_next.
41839         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
41840         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
41841         * doc/posix-headers/sched.texi: Document the issue.
41842
41843 2008-11-13  Jim Meyering  <meyering@redhat.com>
41844
41845         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
41846         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
41847         test would fail due to the difference in the Report bugs to ...
41848         line.  The expected address is empty, "<>", while the actual
41849         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
41850
41851 2008-11-12  Bruno Haible  <bruno@clisp.org>
41852
41853         lstat: don't compile lstat.c on systems lacking lstat
41854         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
41855         which don't have lstat; this is handled by lib/sys_stat.in.h already.
41856         Reported by Daniel P. Berrange via Jim Meyering.
41857
41858 2008-11-12  Jim Meyering  <meyering@redhat.com>
41859
41860         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
41861
41862 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41863
41864         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
41865         instead.
41866
41867 2008-11-12  Bruno Haible  <bruno@clisp.org>
41868
41869         * lib/unicodeio.c: Include unistr.h.
41870         (utf8_wctomb): Remove function.
41871         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
41872
41873 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41874
41875         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
41876         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
41877         <bruno@clisp.org>.
41878         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
41879
41880 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41881
41882         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
41883         * doc/gnulib.texi: Add section for warnings.
41884
41885 2008-11-11  Bruno Haible  <bruno@clisp.org>
41886
41887         * lib/sockets.h: Add a comment.
41888
41889 2008-11-11  Karl Berry  <karl@gnu.org>
41890
41891         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41892
41893 2008-11-11  Eric Blake  <ebb9@byu.net>
41894
41895         fdl.texi: avoid git symlinks
41896         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41897
41898 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41899
41900         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41901
41902 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41903
41904         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41905         (gl_WARN_ADD): Substitute $2 if literal.
41906
41907 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41908
41909         * m4/warning.m4: Remove.
41910
41911 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41912
41913         * m4/warnings.m4: Almost complete rewrite. :-)
41914
41915 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41916
41917         * modules/warnings: New module.
41918         * m4/warnings.m4: New file.
41919         * MODULES.html.sh: Mention warnings module.
41920         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41921         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41922
41923 2008-11-10  Eric Blake  <ebb9@byu.net>
41924
41925         fdl.texi: make a symlink to the latest version
41926         * doc/standards.texi: Revert today's earlier change.
41927         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41928         * doc/fdl.texi: ...and replace this with a symlink to the newer
41929         fdl-1.3.texi.
41930
41931 2008-11-10  Bruno Haible  <bruno@clisp.org>
41932
41933         * tests/test-select-fd.c (main): Accept the result file name as fourth
41934         argument.
41935         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41936         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41937
41938 2008-11-10  Bruno Haible  <bruno@clisp.org>
41939
41940         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41941         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41942         as autoconf-substituted macros.
41943         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41944         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41945         gl_NETDB_H_DEFAULTS. Set these variables.
41946         * modules/netdb (Makefile.am): Substitute these variables.
41947
41948 2008-11-10  Eric Blake  <ebb9@byu.net>
41949
41950         standards.texi: include correct file for FDL 1.3
41951         * doc/standards.texi (GNU Free Documentation License): Change
41952         include file to pull in FDL 1.3, not 1.2.
41953
41954         fdl.texi: revert accidental change to license
41955         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41956
41957 2008-11-10  Bruno Haible  <bruno@clisp.org>
41958
41959         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41960         cross-compiling guesses also when the native compile gives no result.
41961
41962 2008-11-10  Bruno Haible  <bruno@clisp.org>
41963
41964         * lib/spawni.c (__spawni): Force variable into the stack.
41965
41966 2008-11-10  Bruno Haible  <bruno@clisp.org>
41967
41968         Add support for Haiku.
41969         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41970         glibc and BeOS, but also on Haiku.
41971         * lib/fpurge.c (fpurge): Likewise.
41972         * lib/freadable.c (freadable): Likewise.
41973         * lib/freadahead.c (freadahead): Likewise.
41974         * lib/freading.c (freading): Likewise.
41975         * lib/freadptr.c (freadptr): Likewise.
41976         * lib/freadseek.c (freadptrinc): Likewise.
41977         * lib/fseeko.c (rpl_fseeko): Likewise.
41978         * lib/fseterr.c (fseterr): Likewise.
41979         * lib/fwritable.c (fwritable): Likewise.
41980         * lib/fwriting.c (fwriting): Likewise.
41981         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41982
41983 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41984
41985         * lib/config.charset: Treat Haiku like BeOS.
41986
41987 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41988
41989         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41990         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41991
41992 2008-11-08  Bruno Haible  <bruno@clisp.org>
41993
41994         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41995         AC_CACHE_CHECK.
41996
41997 2008-11-08  Bruno Haible  <bruno@clisp.org>
41998
41999         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
42000
42001 2008-11-08  Bruno Haible  <bruno@clisp.org>
42002
42003         * tests/test-select-fd.c: New file.
42004         * tests/test-select-in.sh: New file.
42005         * tests/test-select-out.sh: New file.
42006         * tests/test-select-stdin.c: New file.
42007         * modules/select-tests (Files): Add the new files.
42008         (Depends-on): Add gettimeofday.
42009         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
42010         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
42011         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
42012
42013 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
42014             Bruno Haible  <bruno@clisp.org>
42015
42016         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
42017
42018 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
42019
42020         * build-aux/pmccabe2html: Added support for C++ source files.
42021
42022 2008-11-05  Ben Pfaff  <blp@gnu.org>
42023
42024         Fix lib/close.c build on Windows.
42025         * modules/close (Files): Add lib/w32sock.h.
42026
42027 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
42028
42029         Accept Bison's NEWS format.
42030         * build-aux/announce-gen (print_news_deltas): Tweak
42031         $re_prefix.
42032
42033 2008-11-04  Bruno Haible  <bruno@clisp.org>
42034
42035         * modules/random_r (Maintainer): Add glibc.
42036
42037 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42038
42039         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
42040         by karl@freefriends.org (Karl Berry).
42041         * doc/alloca.texi: Likewise.
42042         * doc/c-ctype.texi: Likewise.
42043         * doc/c-strcase.texi: Likewise.
42044         * doc/c-strcaseeq.texi: Likewise.
42045         * doc/c-strcasestr.texi: Likewise.
42046         * doc/c-strstr.texi: Likewise.
42047         * doc/c-strtod.texi: Likewise.
42048         * doc/c-strtold.texi: Likewise.
42049         * doc/ctime.texi: Likewise.
42050         * doc/error.texi: Likewise.
42051         * doc/fdl.texi: Likewise.
42052         * doc/gcd.texi: Likewise.
42053         * doc/getdate.texi: Likewise.
42054         * doc/gnulib-intro.texi: Likewise.
42055         * doc/gnulib-tool.texi: Likewise.
42056         * doc/gnulib.texi: Likewise.
42057         * doc/inet_ntoa.texi: Likewise.
42058         * doc/maintain.texi: Likewise.
42059         * doc/make-stds.texi: Likewise.
42060         * doc/quote.texi: Likewise.
42061         * doc/regexprops-generic.texi: Likewise.
42062         * doc/standards.texi: Likewise.
42063         * doc/verify.texi: Likewise.
42064         * doc/visibility.texi: Likewise.
42065         * doc/gnulib.texi (GNU Free Documentation License): Include
42066         fdl-1.3.texi instead of fdl.texi.
42067
42068 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42069
42070         * doc/fdl-1.3.texi: New file, from
42071         <http://www.gnu.org/licenses/fdl-1.3.texi>.
42072         * modules/fdl-1.3: Add.
42073         * MODULES.html.sh: Add fdl-1.3.
42074
42075 2008-11-03  Bruno Haible  <bruno@clisp.org>
42076
42077         Make determination of absolute name of header file work with AIX xlc.
42078         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
42079         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
42080         preprocessing.
42081         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42082         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42083
42084 2008-11-03  Simon Josefsson  <simon@josefsson.org>
42085
42086         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
42087         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
42088         <ludo@gnu.org>.
42089
42090 2008-11-02  Bruno Haible  <bruno@clisp.org>
42091
42092         Mark 'strpbrk' obsolete.
42093         * modules/strpbrk (Status, Notice): New sections.
42094         * modules/strtok_r (Depends-on): Add strpbrk.
42095
42096 2008-11-02  Bruno Haible  <bruno@clisp.org>
42097
42098         Mark 'strdup' obsolete.
42099         * modules/strdup (Status, Notice): New sections.
42100         * modules/findprog (Depends-on): Add strdup.
42101         * modules/getaddrinfo (Depends-on): Likewise.
42102         * modules/localename (Depends-on): Likewise.
42103         * modules/relocatable-lib (Depends-on): Likewise.
42104         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
42105         * modules/relocatable-prog (Depends-on): Likewise.
42106         * modules/trim (Depends-on): Likewise.
42107         * modules/unictype/gen-ctype (Depends-on): Likewise.
42108         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
42109
42110 2008-11-02  Bruno Haible  <bruno@clisp.org>
42111
42112         Mark 'strcspn' obsolete.
42113         * modules/strcspn (Status, Notice): New sections.
42114
42115 2008-11-02  Bruno Haible  <bruno@clisp.org>
42116
42117         Mark 'rmdir' obsolete.
42118         * modules/rmdir (Status, Notice): New sections.
42119         * modules/clean-temp (Depends-on): Add rmdir.
42120         * modules/openat (Depends-on): Likewise.
42121
42122 2008-11-02  Bruno Haible  <bruno@clisp.org>
42123
42124         Mark 'raise' obsolete.
42125         * modules/raise (Status, Notice): New sections.
42126         (Include): Specify <signal.h>.
42127         * modules/stdio (Depends-on): Add raise.
42128         * modules/write (Depends-on): Likewise.
42129
42130 2008-11-02  Bruno Haible  <bruno@clisp.org>
42131
42132         Mark 'memset' obsolete.
42133         * modules/memset (Status, Notice): New sections.
42134
42135 2008-11-02  Bruno Haible  <bruno@clisp.org>
42136
42137         Mark 'memmove' obsolete.
42138         * modules/memmove (Status, Notice): New sections.
42139         * modules/argp (Depends-on): Add memmove.
42140         * modules/argz (Depends-on): Likewise.
42141         * modules/canonicalize (Depends-on): Likewise.
42142         * modules/canonicalize-lgpl (Depends-on): Likewise.
42143         * modules/fts (Depends-on): Likewise.
42144         * modules/getcwd (Depends-on): Likewise.
42145         * modules/human (Depends-on): Likewise.
42146         * modules/regex (Depends-on): Likewise.
42147         * modules/striconveh (Depends-on): Likewise.
42148         * modules/trim (Depends-on): Likewise.
42149         * modules/unistr/u8-move (Depends-on): Likewise.
42150         * modules/unistr/u16-move (Depends-on): Likewise.
42151         * modules/unistr/u32-move (Depends-on): Likewise.
42152
42153 2008-11-02  Bruno Haible  <bruno@clisp.org>
42154
42155         Mark 'memcpy' obsolete.
42156         * modules/memcpy (Status, Notice): New sections.
42157
42158 2008-11-02  Bruno Haible  <bruno@clisp.org>
42159
42160         Mark 'memcmp' obsolete.
42161         * modules/memcmp (Status, Notice): New sections.
42162         * modules/argmatch (Depends-on): Add memchr.
42163         * modules/backupfile (Depends-on): Likewise.
42164         * modules/c-strcasestr (Depends-on): Likewise.
42165         * modules/crypto/des (Depends-on): Likewise.
42166         * modules/csharpcomp (Depends-on): Likewise.
42167         * modules/fnmatch (Depends-on): Likewise.
42168         * modules/git-merge-changelog (Depends-on): Likewise.
42169         * modules/isnand (Depends-on): Likewise.
42170         * modules/isnand-nolibm (Depends-on): Likewise.
42171         * modules/isnanf (Depends-on): Likewise.
42172         * modules/isnanf-nolibm (Depends-on): Likewise.
42173         * modules/isnanl (Depends-on): Likewise.
42174         * modules/isnanl-nolibm (Depends-on): Likewise.
42175         * modules/mbchar (Depends-on): Likewise.
42176         * modules/memcoll (Depends-on): Likewise.
42177         * modules/quotearg (Depends-on): Likewise.
42178         * modules/regex (Depends-on): Likewise.
42179         * modules/relocatable-prog (Depends-on): Likewise.
42180         * modules/same (Depends-on): Likewise.
42181         * modules/signbit (Depends-on): Likewise.
42182         * modules/strcasestr-simple (Depends-on): Likewise.
42183         * modules/unictype/gen-ctype (Depends-on): Likewise.
42184         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
42185         * modules/uniname/uniname (Depends-on): Likewise.
42186         * modules/unistr/u8-cmp (Depends-on): Likewise.
42187
42188 2008-11-02  Bruno Haible  <bruno@clisp.org>
42189
42190         Mark 'memchr' obsolete.
42191         * modules/memchr (Status, Notice): New sections.
42192         * modules/argp (Depends-on): Add memchr.
42193         * modules/base64 (Depends-on): Likewise.
42194         * modules/c-strcasestr (Depends-on): Likewise.
42195         * modules/chdir-long (Depends-on): Likewise.
42196         * modules/fnmatch (Depends-on): Likewise.
42197         * modules/getsubopt (Depends-on): Likewise.
42198         * modules/git-merge-changelog (Depends-on): Likewise.
42199         * modules/glob (Depends-on): Likewise.
42200         * modules/strcasestr-simple (Depends-on): Likewise.
42201         * modules/strnlen (Depends-on): Likewise.
42202
42203 2008-11-02  Bruno Haible  <bruno@clisp.org>
42204
42205         Mark 'atexit' obsolete.
42206         * modules/atexit (Status, Notice): New sections.
42207         * modules/chdir-long (Depends-on): Add atexit.
42208         * modules/wait-process (Depends-on): Likewise.
42209
42210 2008-11-02  Bruno Haible  <bruno@clisp.org>
42211
42212         * gnulib-tool: New option --with-obsolete.
42213         (func_usage): Document it.
42214         (func_modules_transitive_closure): Drop obsolete dependencies if
42215         incobsolete is not true.
42216         (func_import): Read and save the incobsolete variable to the cache.
42217
42218 2008-11-02  Bruno Haible  <bruno@clisp.org>
42219
42220         * modules/TEMPLATE-EXTENDED: New field 'Status'.
42221         * gnulib-tool: New option --extract-status.
42222         (func_usage): Document it.
42223         (sed_extract_prog): Recognize it.
42224         (func_get_status): New function.
42225
42226 2008-10-30  Simon Josefsson  <simon@josefsson.org>
42227
42228         * modules/sockets (License): Change from LGPL to LGPLv2+.
42229
42230 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42231
42232         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
42233
42234 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42235
42236         * MODULES.html.sh (Support for systems lacking POSIX:2001):
42237         Mention times and sys_times.
42238         * modules/sys_times, modules/sys_times-tests: New modules.
42239         * modules/times, modules/times-tests: Likewise
42240         * m4/sys_times_h.m4: New file.
42241         * lib/sys_times.in.h: Likewise
42242         * lib/times.c: Likewise.
42243         * tests/test-sys_times.c: Likewise.
42244         * tests/test-times.c: Likewise.
42245         * doc/posix-headers/sys_times.texi: Update.
42246         * doc/posix-functions/times.texi: Update.
42247
42248 2008-10-28  Jim Meyering  <meyering@redhat.com>
42249
42250         * modules/tempname (Depends-on): Add lstat.
42251
42252         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
42253
42254 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42255
42256         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
42257         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
42258         using idiom used elsewhere in gnulib.
42259
42260 2008-10-27  Jim Meyering  <meyering@redhat.com>
42261
42262         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
42263
42264 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42265
42266         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
42267         TESTS_ENVIRONMENT, for shell scripts that needs to call built
42268         programs.
42269         * tests/test-argp-2.sh: Use $EXEEXT when needed.
42270
42271 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42272
42273         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
42274
42275 2008-10-27  Bruno Haible  <bruno@clisp.org>
42276
42277         * tests/test-lstat.c: Include <stdio.h>.
42278
42279 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42280
42281         * modules/lstat-tests: New module.
42282         * tests/test-lstat.c: New file.
42283
42284 2008-10-26  Jim Meyering  <meyering@redhat.com>
42285
42286         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
42287
42288 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42289             Bruno Haible  <bruno@clisp.org>
42290
42291         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
42292         * modules/configmake (Include): Add a note that the include must come
42293         after all system headers.
42294         * lib/javaversion.c: Include configmake.h after all other includes.
42295
42296 2008-10-26  Bruno Haible  <bruno@clisp.org>
42297
42298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
42299         HAVE_STRUCT_RANDOM_DATA to 1.
42300         (gl_STDLIB_H): Simplify.
42301
42302 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42303
42304         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
42305         substitute HAVE_STRUCT_RANDOM_DATA.
42306         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
42307         random_data.
42308         * modules/stdlib (Makefile.am): Substitute
42309         HAVE_STRUCT_RANDOM_DATA.
42310
42311 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42312
42313         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
42314         * doc/gnulib-intro.texi (Copyright): Likewise.
42315
42316 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42317
42318         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
42319         findings.
42320
42321 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
42322             Bruno Haible  <bruno@clisp.org>
42323
42324         * lib/unistd.in.h: Include <winsock2.h>.
42325         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
42326         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
42327         Provide dummy declarations.
42328         (gethostname): Override.
42329         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
42330         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
42331         gl_PREREQ_SYS_H_WINSOCK2.
42332         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
42333         * doc/posix-functions/gethostname.texi: More details.
42334
42335 2008-10-25  Bruno Haible  <bruno@clisp.org>
42336
42337         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42338         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
42339         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
42340
42341         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
42342         here ...
42343         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
42344         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
42345         gl_UNISTD_H_DEFAULTS.
42346
42347 2008-10-25  Eric Blake  <ebb9@byu.net>
42348
42349         signbit: avoid spurious compiler failure
42350         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
42351         declarations inside function.
42352
42353 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42354             Bruno Haible  <bruno@clisp.org>
42355
42356         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
42357         * modules/random_r (Depends-on): Add stdint.
42358
42359 2008-10-24  Bruno Haible  <bruno@clisp.org>
42360
42361         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
42362         Eggert.
42363         * modules/strerror (License): Likewise.
42364
42365 2008-10-24  Jim Meyering  <meyering@redhat.com>
42366
42367         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
42368         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
42369
42370 2008-10-24  Eric Blake  <ebb9@byu.net>
42371
42372         getgroups: fix compilation when getgroups is available
42373         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
42374         but with <config.h> override of getgroups disabled.
42375
42376 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42377
42378         * doc/gnulib.texi (Header files): Add note about C++ problems.
42379         Explained by Bruno Haible <bruno@clisp.org>.
42380
42381 2008-10-23  Bruno Haible  <bruno@clisp.org>
42382
42383         Define a dummy SA_NODEFER macro on Interix.
42384         * lib/signal.in.h (SA_NODEFER): Define fallback.
42385         Reported by Aleksey Cheusov <cheusov@tut.by> via
42386         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
42387
42388 2008-10-23  Bruno Haible  <bruno@clisp.org>
42389
42390         * modules/freadahead (License): Change to LGPLv2+.
42391         Suggested by Simon Josefsson.
42392
42393 2008-10-23  Jim Meyering  <meyering@redhat.com>
42394
42395         random_r: new module
42396         * modules/random_r: New file.
42397         * m4/random_r.m4: New file.
42398         * lib/random_r.c: New file, from glibc.
42399         * modules/random_r-tests: New file.
42400         * tests/test-random_r.c: New file.
42401         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
42402          Declare.
42403         (RAND_MAX): Define.
42404         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
42405         * modules/stdlib: Substitute them, too.
42406         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
42407         * doc/glibc-functions/initstate_r.texi: Mention the new module.
42408         * doc/glibc-functions/random_r.texi: Likewise.
42409         * doc/glibc-functions/setstate_r.texi: Likewise.
42410         * doc/glibc-functions/srandom_r.texi: Likewise.
42411         * config/srclist.txt: Mention it.
42412
42413 2008-10-23  David Lutterkort  <lutter@redhat.com>
42414
42415         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
42416         link requirement
42417
42418 2008-10-23  Jim Meyering  <meyering@redhat.com>
42419
42420         selinux-h: mark parameters of stub functions as intentionally unused
42421         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
42422         * lib/se-context.in.h: Likewise.
42423
42424 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42425
42426         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
42427
42428 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42429
42430         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
42431
42432 2008-10-22  Eric Blake  <ebb9@byu.net>
42433
42434         glthread/thread: avoid compiler warning
42435         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
42436         Add unreachable abort to silence compiler.
42437
42438 2008-10-22  Eric Blake  <ebb9@byu.net>
42439
42440         netdb: also supply struct addrinfo for cygwin 1.5.x
42441         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
42442         older cygwin.
42443         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
42444         cygwin.
42445         * doc/posix-headers/netdb.texi (netdb.h): Document this.
42446
42447 2008-10-22  Bruno Haible  <bruno@clisp.org>
42448
42449         * users.txt: Update entry about pspp.
42450
42451 2008-10-21  Bruno Haible  <bruno@clisp.org>
42452
42453         Simplification.
42454         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
42455         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
42456
42457         Simplification.
42458         * lib/ioctl.c (ioctl): Don't undefine.
42459         * lib/socket.c (socket): Don't undefine.
42460
42461         Remove unused module indicator macros.
42462         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
42463         GNULIB_$1 as a C macro.
42464
42465         * doc/posix-functions/close.texi: Undo last change.
42466         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
42467         Windows platforms.
42468
42469 2008-10-21  Bruno Haible  <bruno@clisp.org>
42470
42471         Add gethostname() declaration to <unistd.h>.
42472         * lib/unistd.in.h (gethostname): New declaration.
42473         * lib/gethostname.c: Include <unistd.h>.
42474         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
42475         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
42476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
42477         and HAVE_GETHOSTNAME.
42478         * modules/gethostname (Depends-on): Add unistd.
42479         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42480         (Include): Specify <unistd.h>.
42481         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
42482         HAVE_GETHOSTNAME.
42483         * tests/test-gethostname.c: Include <unistd.h> first.
42484
42485 2008-10-21  Bruno Haible  <bruno@clisp.org>
42486
42487         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
42488         * modules/select-tests (Depends-on): Likewise.
42489         Reported by Simon Josefsson.
42490
42491 2008-10-21  Simon Josefsson  <simon@josefsson.org>
42492
42493         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
42494         * lib/accept.c: New file, based on winsock.c.
42495         * lib/bind.c: New file, based on winsock.c.
42496         * lib/connect.c: New file, based on winsock.c.
42497         * lib/getpeername.c: New file, based on winsock.c.
42498         * lib/getsockname.c: New file, based on winsock.c.
42499         * lib/getsockopt.c: New file, based on winsock.c.
42500         * lib/ioctl.c: New file, based on winsock.c.
42501         * lib/listen.c: New file, based on winsock.c.
42502         * lib/recv.c: New file, based on winsock.c.
42503         * lib/recvfrom.c: New file, based on winsock.c.
42504         * lib/send.c: New file, based on winsock.c.
42505         * lib/sendto.c: New file, based on winsock.c.
42506         * lib/setsockopt.c: New file, based on winsock.c.
42507         * lib/shutdown.c: New file, based on winsock.c.
42508         * lib/socket.c: New file, based on winsock.c.
42509         * lib/w32sock.h: New file, based on winsock.c.
42510         * lib/winsock.c: Remove file.
42511         * modules/accept: Likewise.
42512         * modules/bind: Likewise.
42513         * modules/connect: Likewise.
42514         * modules/getpeername: Likewise.
42515         * modules/getsockname: Likewise.
42516         * modules/getsockopt: Likewise.
42517         * modules/ioctl: Likewise.
42518         * modules/listen: Likewise.
42519         * modules/recv: Likewise.
42520         * modules/recvfrom: Likewise.
42521         * modules/send: Likewise.
42522         * modules/sendto: Likewise.
42523         * modules/setsockopt: Likewise.
42524         * modules/shutdown: Likewise.
42525         * modules/socket: Use socket.c instead of winsock.c.
42526         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
42527         * doc/posix-functions/accept.texi: Doc fix.
42528         * doc/posix-functions/bind.texi: Doc fix.
42529         * doc/posix-functions/close.texi: Doc fix.
42530         * doc/posix-functions/connect.texi: Doc fix.
42531         * doc/posix-functions/getpeername.texi: Doc fix.
42532         * doc/posix-functions/getsockname.texi: Doc fix.
42533         * doc/posix-functions/getsockopt.texi: Doc fix.
42534         * doc/posix-functions/ioctl.texi: Doc fix.
42535         * doc/posix-functions/listen.texi: Doc fix.
42536         * doc/posix-functions/recv.texi: Doc fix.
42537         * doc/posix-functions/recvfrom.texi: Doc fix.
42538         * doc/posix-functions/send.texi: Doc fix.
42539         * doc/posix-functions/sendto.texi: Doc fix.
42540         * doc/posix-functions/setsockopt.texi: Doc fix.
42541         * doc/posix-functions/shutdown.texi: Doc fix.
42542         * doc/posix-functions/socket.texi: Doc fix.
42543
42544 2008-10-20  Bruno Haible  <bruno@clisp.org>
42545
42546         Take into account the role of SIGABRT_COMPAT on Windows 2008.
42547         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
42548         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
42549         as an alias for SIGABRT.
42550         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
42551         (sigaction): Map it to SIGABRT.
42552         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
42553
42554 2008-10-20  Bruno Haible  <bruno@clisp.org>
42555
42556         * lib/fts.c: Don't include lstat.h.
42557         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
42558
42559         Move the lstat() declaration to <sys/stat.h>.
42560         * lib/lstat.h: Remove file.
42561         * lib/sys_stat.in.h: Add special invocation convention.
42562         (lstat): New declaration.
42563         * lib/lstat.c (orig_lstat): New function.
42564         (rpl_lstat): Use orig_lstat instead of lstat.
42565         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
42566         AC_C_INLINE. Set REPLACE_LSTAT.
42567         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
42568         and REPLACE_LSTAT.
42569         * modules/lstat (Files): Remove lib/lstat.h.
42570         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42571         (Include): Specify <sys/stat.h> instead of lstat.h.
42572         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
42573         REPLACE_LSTAT.
42574         * NEWS: Mention the change.
42575
42576 2008-10-20  Bruno Haible  <bruno@clisp.org>
42577
42578         * modules/posix_spawn-tests: New file.
42579         * tests/test-posix_spawn3.c: New file.
42580
42581 2008-10-20  Bruno Haible  <bruno@clisp.org>
42582
42583         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
42584         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42585         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
42586         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42587         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
42588
42589 2008-10-20  Bruno Haible  <bruno@clisp.org>
42590
42591         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
42592         of posix_spawn on AIX 5.3.
42593
42594 2008-10-20  Bruno Haible  <bruno@clisp.org>
42595
42596         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
42597
42598 2008-10-20  Bruno Haible  <bruno@clisp.org>
42599
42600         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
42601         of AC_LANG_PROGRAM.
42602
42603 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42604
42605         * lib/netdb.in.h: Don't define GNU specific constants until they
42606         are supported or needed.  Reported by Bruno Haible
42607         <bruno@clisp.org>.
42608
42609 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42610
42611         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
42612
42613 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42614
42615         * lib/getaddrinfo.h: Remove file.
42616         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
42617         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
42618         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
42619         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
42620         * modules/netdb: Substitute GNULIB_GETADDRINFO.
42621         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
42622         * tests/test-getaddrinfo.c: Likewise.
42623         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
42624         * NEWS: Mention change.
42625
42626 2008-10-19  Bruno Haible  <bruno@clisp.org>
42627
42628         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
42629
42630 2008-10-19  Bruno Haible  <bruno@clisp.org>
42631
42632         * lib/wait-process.c: Include simply <sys/wait.h>.
42633         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
42634         WIFSTOPPED): Remove fallback definitions.
42635         * modules/wait-process (Depends-on): Add sys_wait.
42636
42637         New module 'sys_wait'.
42638         * modules/sys_wait: New file.
42639         * lib/sys_wait.in.h: New file, partially copied from
42640         lib/wait-process.c.
42641         * m4/sys_wait_h.m4: New file.
42642         * doc/posix-headers/sys_wait.texi: Mention the new module.
42643
42644 2008-10-19  Bruno Haible  <bruno@clisp.org>
42645
42646         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
42647
42648 2008-10-19  Bruno Haible  <bruno@clisp.org>
42649
42650         Assume that waitpid() fills an 'int' status, not a 'union wait'.
42651         * lib/wait-process.c (WAIT_T): Remove type.
42652         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
42653         (wait_subprocess): Update.
42654
42655 2008-10-19  Bruno Haible  <bruno@clisp.org>
42656
42657         New module 'atoll'.
42658         * modules/atoll: New file.
42659         * lib/stdlib.in.h (atoll): New declaration.
42660         * lib/atoll.c: New file, from glibc with modifications.
42661         * m4/atoll.m4: New file.
42662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
42663         HAVE_ATOLL.
42664         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
42665         * doc/posix-functions/atoll.texi: Mention the new module.
42666
42667 2008-10-19  Bruno Haible  <bruno@clisp.org>
42668
42669         Add strtoull() declaration to <stdlib.h>.
42670         * lib/stdlib.in.h (strtoull): New declaration.
42671         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42672         Set HAVE_STRTOULL.
42673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
42674         HAVE_STRTOULL.
42675         * modules/strtoull (Depends-on): Add stdlib.
42676         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42677         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
42678         HAVE_STRTOULL.
42679
42680 2008-10-19  Bruno Haible  <bruno@clisp.org>
42681
42682         Add strtoll() declaration to <stdlib.h>.
42683         * lib/stdlib.in.h (strtoll): New declaration.
42684         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42685         Set HAVE_STRTOLL.
42686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
42687         HAVE_STRTOLL.
42688         * modules/strtoll (Depends-on): Add stdlib.
42689         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42690         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
42691
42692 2008-10-19  Bruno Haible  <bruno@clisp.org>
42693
42694         * modules/bcopy (Depends-on): Add strings.
42695         (Include): Specify <strings.h>.
42696
42697 2008-10-19  Bruno Haible  <bruno@clisp.org>
42698
42699         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
42700
42701 2008-10-19  Bruno Haible  <bruno@clisp.org>
42702
42703         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
42704         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
42705         mingw.
42706
42707 2008-10-19  Bruno Haible  <bruno@clisp.org>
42708
42709         * lib/atanl.c: Don't include isnanl.h.
42710         * lib/cosl.c: Likewise.
42711         * lib/ldexpl.c: Likewise.
42712         * lib/logl.c: Likewise.
42713         * lib/sinl.c: Likewise.
42714         * lib/sqrtl.c: Likewise.
42715         * lib/tanl.c: Likewise.
42716
42717         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
42718         * lib/isnanf.h: Remove file.
42719         * lib/isnand.h: Remove file.
42720         * lib/isnanl.h: Remove file.
42721         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
42722         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
42723         macros.
42724         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
42725         HAVE_ISNANF, don't define it as a C macro.
42726         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
42727         HAVE_ISNAND, don't define it as a C macro.
42728         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
42729         HAVE_ISNANL, don't define it as a C macro.
42730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
42731         HAVE_ISNAN[FDL].
42732         * modules/isnanf (Files): Remove lib/isnanf.h.
42733         (Depends-on): Add math.
42734         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42735         (Include): Specify <math.h> instead of isnanf.h.
42736         * modules/isnand (Files): Remove lib/isnand.h.
42737         (Depends-on): Add math.
42738         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42739         (Include): Specify <math.h> instead of isnand.h.
42740         * modules/isnanl (Files): Remove lib/isnanl.h.
42741         (Depends-on): Add math.
42742         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42743         (Include): Specify <math.h> instead of isnanl.h.
42744         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
42745         HAVE_ISNAN[FDL].
42746         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
42747         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
42748         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
42749         * NEWS: Mention the change.
42750
42751 2008-10-18  Bruno Haible  <bruno@clisp.org>
42752
42753         Add getusershell(), setusershell(), endusershell() declarations to
42754         <unistd.h>.
42755         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
42756         declarations.
42757         * lib/getusershell.c: Include unistd.h.
42758         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
42759         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42760         HAVE_GETUSERSHELL.
42761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
42762         and HAVE_GETUSERSHELL.
42763         * modules/getusershell (Depends-on): Add unistd, extensions.
42764         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42765         (Include): Specify <unistd.h>.
42766         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
42767         HAVE_GETUSERSHELL.
42768
42769 2008-10-18  Bruno Haible  <bruno@clisp.org>
42770
42771         Add a getloadavg() declaration to <stdlib.h>.
42772         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
42773         getloadavg declaration.
42774         (getloadavg): New declaration.
42775         * lib/getloadavg.c: Include <stdlib.h> first.
42776         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
42777         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
42778         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
42779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
42780         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42781         * modules/getloadavg (Depends-on): Add stdlib, extensions.
42782         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42783         (Include): Specify <stdlib.h>.
42784         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
42785         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42786
42787 2008-10-18  Bruno Haible  <bruno@clisp.org>
42788
42789         * lib/dirchownmod.c: Don't include lchmod.h.
42790
42791         Move the lchmod() declaration to <sys/stat.h>.
42792         * lib/lchmod.h: Remove file.
42793         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
42794         (lchmod): New declaration, moved here from lib/lchown.h.
42795         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42796         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42797         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42798         and HAVE_LCHMOD.
42799         * modules/lchmod (Files): Remove lib/lchmod.h.
42800         (Depends-on): Add sys_stat, extensions.
42801         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42802         (Include): Specify <sys/stat.h> instead of lchmod.h.
42803         * modules/sys_stat (Depends-on): Add link-warning.
42804         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42805         definition of GL_LINK_WARNING.
42806         * NEWS: Mention the change.
42807
42808 2008-10-18  Bruno Haible  <bruno@clisp.org>
42809
42810         * lib/fchdir.c: Don't include dirfd.h.
42811         * lib/fts.c: Likewise.
42812         * lib/getcwd.c: Likewise.
42813         * lib/glob.c: Likewise.
42814
42815         Move the dirfd() declaration to <dirent.h>.
42816         * lib/dirfd.h: Remove file.
42817         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42818         (dirfd): New declaration.
42819         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42820         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
42821         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
42822         HAVE_DECL_DIRFD.
42823         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
42824         HAVE_DECL_DIRFD.
42825         * modules/dirfd (Files): Remove lib/dirfd.h.
42826         (Depends-on): Add dirent, extensions.
42827         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
42828         (Include): Specify <dirent.h> instead of dirfd.h.
42829         * modules/dirent (Depends-on): Add link-warning.
42830         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
42831         definition of GL_LINK_WARNING.
42832         * NEWS: Mention the change.
42833
42834 2008-10-18  Bruno Haible  <bruno@clisp.org>
42835
42836         Move the euidaccess() declaration to <unistd.h>.
42837         * lib/euidaccess.h: Remove file.
42838         * lib/unistd.in.h (euidaccess): New declaration.
42839         * lib/euidaccess.c: Don't include euidaccess.h.
42840         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
42841         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
42842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
42843         and HAVE_EUIDACCESS.
42844         * modules/euidaccess (Files): Remove lib/euidaccess.h.
42845         (Depends-on): Add unistd.
42846         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42847         (Include): Specify <unistd.h> instead of euidaccess.h.
42848         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
42849         HAVE_EUIDACCESS.
42850         * NEWS: Mention the change.
42851
42852 2008-10-18  Bruno Haible  <bruno@clisp.org>
42853
42854         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
42855
42856         Move the getdomainname() declaration to <unistd.h>.
42857         * lib/getdomainname.h: Remove file.
42858         * lib/unistd.in.h (getdomainname): New declaration.
42859         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
42860         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42861         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42862         HAVE_GETDOMAINNAME.
42863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42864         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
42865         * modules/getdomainname (Files): Remove lib/getdomainname.h.
42866         (Depends-on): Add unistd, extensions.
42867         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42868         (Includes): Specify <unistd.h> instead of getdomainname.h.
42869         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
42870         HAVE_GETDOMAINNAME.
42871         * NEWS: Mention the change.
42872
42873 2008-10-18  Bruno Haible  <bruno@clisp.org>
42874
42875         * modules/dirent: New file.
42876         * m4/dirent_h.m4: New file.
42877         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
42878         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
42879         * modules/fchdir (Files): Remove lib/dirent.in.h.
42880         (Depends-on): Add dirent.
42881         (Makefile.am): Move rules to modules/dirent.
42882         * doc/posix-headers/dirent.texi: Mention the new module.
42883
42884 2008-10-18  Bruno Haible  <bruno@clisp.org>
42885
42886         Avoid -Wunused-parameter warnings in public gnulib header files.
42887         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42888         macro.
42889         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42890
42891 2008-10-18  Bruno Haible  <bruno@clisp.org>
42892
42893         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42894         * doc/glibc-functions/error.texi: Mention the module 'error'.
42895         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42896         * doc/glibc-functions/getdomainname.texi: Mention the module
42897         'getdomainname'.
42898         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42899         * doc/glibc-functions/getpagesize.texi: Mention the module
42900         'getpagesize'.
42901         * doc/glibc-functions/getusershell.texi: Mention the module
42902         'getusershell'.
42903         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42904         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42905         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42906         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42907         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42908         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42909         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42910         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42911         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42912         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42913         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42914         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42915         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42916         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42917
42918 2008-10-17  Bruno Haible  <bruno@clisp.org>
42919
42920         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42921         HP-UX and IRIX, use -0.0L.
42922         * tests/test-ceill.c (minus_zero): Likewise.
42923         * tests/test-floorl.c (minus_zero): Likewise.
42924         * tests/test-frexpl.c (minus_zero): Likewise.
42925         * tests/test-isnan.c (minus_zerol): Likewise.
42926         * tests/test-isnanl.h (minus_zero): Likewise.
42927         * tests/test-ldexpl.c (minus_zero): Likewise.
42928         * tests/test-roundl.c (minus_zero): Likewise.
42929         * tests/test-signbit.c (minus_zerol): Likewise.
42930         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42931         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42932         * tests/test-truncl.c (minus_zero): Likewise.
42933         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42934         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42935         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42936         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42937
42938 2008-10-17  Bruno Haible  <bruno@clisp.org>
42939
42940         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42941         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42942         that it gets activated only for gcc >= 3.0.
42943         * lib/dirent.in.h: Likewise.
42944         * lib/errno.in.h: Likewise.
42945         * lib/fcntl.in.h: Likewise.
42946         * lib/float.in.h: Likewise.
42947         * lib/iconv.in.h: Likewise.
42948         * lib/inttypes.in.h: Likewise.
42949         * lib/locale.in.h: Likewise.
42950         * lib/math.in.h: Likewise.
42951         * lib/netdb.in.h: Likewise.
42952         * lib/netinet_in.in.h: Likewise.
42953         * lib/search.in.h: Likewise.
42954         * lib/signal.in.h: Likewise.
42955         * lib/spawn.in.h: Likewise.
42956         * lib/stdarg.in.h: Likewise.
42957         * lib/stdint.in.h: Likewise.
42958         * lib/stdio.in.h: Likewise.
42959         * lib/stdlib.in.h: Likewise.
42960         * lib/string.in.h: Likewise.
42961         * lib/strings.in.h: Likewise.
42962         * lib/sys_file.in.h: Likewise.
42963         * lib/sys_ioctl.in.h: Likewise.
42964         * lib/sys_select.in.h: Likewise.
42965         * lib/sys_socket.in.h: Likewise.
42966         * lib/sys_stat.in.h: Likewise.
42967         * lib/sys_time.in.h: Likewise.
42968         * lib/sysexits.in.h: Likewise.
42969         * lib/time.in.h: Likewise.
42970         * lib/unistd.in.h: Likewise.
42971         * lib/wchar.in.h: Likewise.
42972         * lib/wctype.in.h: Likewise.
42973         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42974
42975 2008-10-17  Jim Meyering  <meyering@redhat.com>
42976
42977         ignore-value: don't depend on inline module
42978         * modules/ignore-value (Depends-on): Remove 'inline'.
42979         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42980         Suggestion from Bruno Haible.
42981
42982 2008-10-17  Bruno Haible  <bruno@clisp.org>
42983
42984         New implementation of condition variables for Win32.
42985         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42986         (gl_linked_waitqueue_t): New type.
42987         (gl_cond_t): Use it.
42988         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42989         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42990         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42991         (glthread_cond_init_func, glthread_cond_wait_func,
42992         glthread_cond_timedwait_func, glthread_cond_signal_func,
42993         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42994         Reimplemented on the basis of gl_linked_waitqueue_t.
42995         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42996         gl_waitqueue_t.
42997         (gl_rwlock_t): Update.
42998         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42999
43000 2008-10-17  Simon Josefsson  <simon@josefsson.org>
43001
43002         * modules/recvfrom (Depends-on): Add dependency on getpeername.
43003         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43004
43005 2008-10-17  Jim Meyering  <meyering@redhat.com>
43006
43007         ignore-value: new module
43008         * modules/ignore-value: New file.
43009         * lib/ignore-value.h: New file.
43010         * MODULES.html.sh (Compiler warning management): New section,
43011         just for this module.  More to come.
43012
43013 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43014
43015         open-safer.c: avoid 'signed and unsigned in conditional...' warning
43016         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
43017         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
43018
43019 2008-10-16  Jim Meyering  <meyering@redhat.com>
43020
43021         openat-die.c: avoid 'no previous prototype' warning
43022         * lib/openat-die.c: Include "openat.h".
43023         Reported by Reuben Thomas <rrt@sc3d.org>.
43024
43025 2008-10-16  Simon Josefsson  <simon@josefsson.org>
43026
43027         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
43028         * lib/netdb.in.h: Fix typo.
43029         Reported by Bruno Haible  <bruno@clisp.org>
43030
43031         * lib/netdb.in.h: Include sys/socket.h for platforms without
43032         netdb.h, to get structures like hostent on MinGW.
43033         * modules/netdb (Depends-on): Add sys_socket.
43034
43035 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43036
43037         * modules/netdb, modules/netdb-tests: New file.
43038         * m4/netdb_h.m4: New file.
43039         * lib/netdb.in.h: Add, currently just an empty file pending
43040         definitions.
43041         * tests/test-netdb.c: New file.
43042         * doc/posix-headers/netdb.texi: Mention that we replace it if
43043         needed.
43044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43045         netdb.
43046
43047 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43048
43049         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
43050         with code.
43051
43052 2008-10-13  Bruno Haible  <bruno@clisp.org>
43053
43054         * lib/glthread/cond.c (glthread_cond_wait_func,
43055         glthread_cond_timedwait_func): Add a comment.
43056
43057 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43058
43059         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
43060         * tests/test-select.c: Likewise,
43061
43062 2008-10-13  Bruno Haible  <bruno@clisp.org>
43063
43064         * lib/glthread/cond.c (glthread_cond_wait_func,
43065         glthread_cond_timedwait_func): Fix variable name.
43066         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43067
43068 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
43069
43070         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
43071         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
43072         struct sockaddr.sa_len.
43073         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
43074
43075 2008-10-13  Simon Josefsson  <simon@josefsson.org>
43076
43077         * build-aux/pmccabe2html: Add css and css_url parameters.
43078
43079 2008-10-12  Bruno Haible  <bruno@clisp.org>
43080
43081         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
43082         calling aclx_get.
43083         Reported by Rainer Tammer <tammer@tammer.net>.
43084
43085 2008-10-12  Bruno Haible  <bruno@clisp.org>
43086
43087         Use msvcrt aware primitives for creation/termination of Win32 threads.
43088         * lib/glthread/thread.c: Include <process.h>.
43089         (glthread_create_func): Use _beginthreadex instead of CreateThread.
43090         (wrapper_func): Update signature.
43091         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
43092
43093 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43094             Bruno Haible  <bruno@clisp.org>
43095
43096         Provide a Win32 implementation of the 'cond' module.
43097         * lib/glthread/cond.h [USE_WIN32]: New implementation.
43098         * lib/glthread/cond.c (glthread_cond_init_func,
43099         glthread_cond_wait_func, glthread_cond_timedwait_func,
43100         glthread_cond_signal_func, glthread_cond_broadcast_func,
43101         glthread_cond_destroy_func) [USE_WIN32]: New functions.
43102         * modules/cond (Dependencies): Add gettimeofday.
43103
43104 2008-10-11  Bruno Haible  <bruno@clisp.org>
43105
43106         Make sleep work on older versions of mingw.
43107         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
43108         only whether it exists.
43109         * doc/posix-functions/sleep.texi: Mention the problem with older
43110         versions of mingw.
43111
43112 2008-10-11  Bruno Haible  <bruno@clisp.org>
43113
43114         New module 'shutdown'.
43115         * modules/shutdown: New file.
43116         * lib/sys_socket.in.h (shutdown): New declaration.
43117         * lib/winsock.c (shutdown): New function.
43118         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43119         GNULIB_SHUTDOWN.
43120         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
43121         * doc/posix-functions/shutdown.texi: Document the new module.
43122
43123 2008-10-11  Jim Meyering  <meyering@redhat.com>
43124
43125         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
43126
43127 2008-10-11  Bruno Haible  <bruno@clisp.org>
43128
43129         New module 'fclose'.
43130         * modules/fclose: New file.
43131         * lib/stdio.in.h (fclose): New declaration.
43132         * lib/fclose.c: New file.
43133         * m4/fclose.m4: New file.
43134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
43135         REPLACE_FCLOSE.
43136         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
43137         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
43138         REPLACE_FCLOSE.
43139         * modules/close (Depends-on): fclose.
43140         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
43141
43142 2008-10-11  Bruno Haible  <bruno@clisp.org>
43143
43144         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
43145         set errno and don't call _close.
43146
43147 2008-10-10  Bruno Haible  <bruno@clisp.org>
43148
43149         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
43150         ACL, not afterwards. Fixes test failure on Cygwin.
43151
43152 2008-10-09  Ben Pfaff  <blp@gnu.org>
43153
43154         * build-aux/announce-gen: Fix gnulib version related part of usage
43155         message.  Die with a useful error message if no tarballs are
43156         found.
43157
43158 2008-10-10  Jim Meyering  <meyering@redhat.com>
43159
43160         bootstrap: use git's --depth=N option only if it's supported
43161         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
43162         recognize the --depth option.  Reported by Pádraig Brady.
43163
43164 2008-10-09  Bruno Haible  <bruno@clisp.org>
43165
43166         New module 'ioctl'.
43167         * modules/ioctl: New file.
43168         * lib/sys_socket.in.h (ioctl): Remove declaration.
43169         * lib/winsock.c: Include <sys/ioctl.h>.
43170         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
43171         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43172         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
43173         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
43174         * doc/posix-functions/ioctl.texi: Mention the new module.
43175
43176 2008-10-09  Bruno Haible  <bruno@clisp.org>
43177
43178         New module 'sys_ioctl'.
43179         * lib/sys_ioctl.in.h: New file.
43180         * m4/sys_ioctl_h.m4: New file.
43181         * modules/sys_ioctl: New file.
43182         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
43183
43184 2008-10-09  Bruno Haible  <bruno@clisp.org>
43185
43186         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
43187         * lib/winsock.c: Include <stdarg.h>.
43188         (rpl_ioctl): Change to second argument 'int' and then varargs.
43189
43190 2008-10-09  Bruno Haible  <bruno@clisp.org>
43191
43192         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
43193         when the sys_socket module is present and the system has <winsock2.h>.
43194
43195 2008-10-09  Bruno Haible  <bruno@clisp.org>
43196
43197         * doc/posix-functions/close.texi: Mention module 'close' instead of
43198         module 'sys_socket'.
43199
43200 2008-10-09  Bruno Haible  <bruno@clisp.org>
43201
43202         * doc/glibc-headers/sys_ioctl.texi: New file.
43203         * doc/gnulib.texi: Include it.
43204
43205 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43206             Bruno Haible  <bruno@clisp.org>
43207
43208         Combine the two replacements of 'close'.
43209         * lib/sys_socket.in.h (close): Define to a reminder to include
43210         <unistd.h>.
43211         (_gl_close_fd_maybe_socket): New declaration.
43212         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
43213         * lib/winsock.c (close): Remove undefinition.
43214         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
43215         needed for the gnulib module 'close'.
43216         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
43217         define to an error symbol or to a warning, if suitable.
43218         * lib/close.c: Include <sys/socket.h>.
43219         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
43220         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
43221         UNISTD_H_HAVE_WINSOCK2_H.
43222         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
43223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43224         UNISTD_H_HAVE_WINSOCK2_H.
43225         * modules/sys_socket (Files): Add m4/unistd_h.m4.
43226         (configure.ac): Set a module indicator.
43227         (Makefile.am): Substitute GNULIB_CLOSE.
43228         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
43229         * modules/poll-tests (Depends-on): Add close.
43230         * modules/select-tests (Depends-on): Likewise.
43231
43232 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43233             Bruno Haible  <bruno@clisp.org>
43234
43235         New module 'close'.
43236         * modules/close: New file.
43237         * lib/unistd.in.h (close): Move declaration out of the
43238         FCHDIR_REPLACEMENT scope.
43239         (_gl_unregister_fd): New declaration.
43240         * lib/close.c: New file.
43241         * lib/fchdir.c (rpl_close): Remove function.
43242         * m4/close.m4: New file.
43243         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43244         close.
43245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
43246         REPLACE_CLOSE.
43247         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
43248         REPLACE_CLOSE.
43249         * modules/fchdir (Depends-on): Add close.
43250
43251 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43252             Bruno Haible  <bruno@clisp.org>
43253
43254         * lib/fcntl.in.h (open): Simplify conditionals.
43255         (_gl_register_fd): New declaration.
43256         * lib/fchdir.c (rpl_open): Remove function.
43257         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
43258         also.
43259         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
43260         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43261         open.
43262
43263 2008-10-09  Jim Meyering  <meyering@redhat.com>
43264
43265         GNUmakefile: use the more name-space-friendly "_version"
43266         * top/GNUmakefile (_dummy): Update.
43267         (_version): Rename from "version".
43268
43269 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43270             Bruno Haible  <bruno@clisp.org>
43271
43272         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
43273         rpl_close.
43274         (_gl_register_fd): New function, extracted from rpl_open.
43275         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
43276         (rpl_open, rpl_opendir): Use _gl_register_fd.
43277
43278 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43279
43280         Fix organization of 'open' replacement.
43281         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
43282         (gl_FUNC_OPEN): Use it.
43283         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
43284
43285 2008-10-08  Bruno Haible  <bruno@clisp.org>
43286
43287         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
43288
43289 2008-10-08  Simon Josefsson  <simon@josefsson.org>
43290
43291         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
43292         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
43293         listen).
43294
43295 2008-10-08  Eric Blake  <ebb9@byu.net>
43296
43297         GNUmakefile: add 'make version' target
43298         * top/GNUmakefile (_curr-ver): Split version update rules...
43299         (version): ...into a target.
43300
43301 2008-10-07  Bruno Haible  <bruno@clisp.org>
43302
43303         Use a more portable replacement expression for -0.0L.
43304         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
43305         instead of -0.0L. Fix m4 quotation.
43306
43307         * tests/test-signbit.c: Include <float.h>.
43308         (minus_zero): New variable.
43309         (test_signbitl): Use minus_zero instead of -zero.
43310         * modules/signbit-tests (Depends-on): Add float.
43311
43312         * tests/test-ceill.c: Include <float.h>.
43313         (zero): Remove variable.
43314         (minus_zero): New variable.
43315         (main): Use minus_zero instead of -zero.
43316         * modules/ceill-tests (Depends-on): Add float.
43317
43318         * tests/test-floorl.c: Include <float.h>.
43319         (zero): Remove variable.
43320         (minus_zero): New variable.
43321         (main): Use minus_zero instead of -zero.
43322         * modules/floorl-tests (Depends-on): Add float.
43323
43324         * tests/test-roundl.c: Include <float.h>.
43325         (zero): Remove variable.
43326         (minus_zero): New variable.
43327         (main): Use minus_zero instead of -zero.
43328         * modules/roundl-tests (Depends-on): Add float.
43329
43330         * tests/test-truncl.c: Include <float.h>.
43331         (zero): Remove variable.
43332         (minus_zero): New variable.
43333         (main): Use minus_zero instead of -zero.
43334         * modules/truncl-tests (Depends-on): Add float.
43335
43336         * tests/test-frexpl.c (zero): Remove variable.
43337         (minus_zero): New variable.
43338         (main): Use minus_zero instead of -zero.
43339         * modules/frexpl-tests (Depends-on): Add float.
43340
43341         * tests/test-isnan.c (zerol): Remove variable.
43342         (minus_zerol): New variable.
43343         (test_long_double): Use minus_zerol instead of -zerol.
43344         * modules/isnan-tests (Depends-on): Add float.
43345
43346         * tests/test-isnanl.h (zero): Remove variable.
43347         (minus_zero): New variable.
43348         (main): Use minus_zero instead of -zero.
43349         * modules/isnanl-nolibm-tests (Depends-on): Add float.
43350         * modules/isnanl-tests (Depends-on): Add float.
43351
43352         * tests/test-ldexpl.c (zero): Remove variable.
43353         (minus_zero): New variable.
43354         (main): Use minus_zero instead of -zero.
43355         * modules/ldexpl-tests (Depends-on): Add float.
43356
43357         * tests/test-snprintf-posix.h (zerol): Remove variable.
43358         (minus_zerol): New variable.
43359         (test_function): Use minus_zerol instead of -zerol.
43360         * modules/snprintf-posix-tests (Depends-on): Add float.
43361         * modules/vsnprintf-posix-tests (Depends-on): Add float.
43362
43363         * tests/test-sprintf-posix.h (zerol): Remove variable.
43364         (minus_zerol): New variable.
43365         (test_function): Use minus_zerol instead of -zerol.
43366         * modules/sprintf-posix-tests (Depends-on): Add float.
43367         * modules/vsprintf-posix-tests (Depends-on): Add float.
43368
43369         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
43370         (minus_zerol): New variable.
43371         (test_function): Use minus_zerol instead of -zerol.
43372         * modules/vasnprintf-posix-tests (Depends-on): Add float.
43373
43374         * tests/test-vasprintf-posix.c (zerol): Remove variable.
43375         (minus_zerol): New variable.
43376         (test_function): Use minus_zerol instead of -zerol.
43377         * modules/vasprintf-posix-tests (Depends-on): Add float.
43378
43379 2008-10-07  Simon Josefsson  <simon@josefsson.org>
43380
43381         * MODULES.html.sh (Support for building documentation): Mention
43382         pmccabe2html.  Sort entries.
43383
43384         Add pmccabe2html module, from gnupdf.
43385         * build-aux/pmccabe.css: New file.
43386         * build-aux/pmccabe2html: New file.
43387         * m4/pmccabe2html.m4: New file.
43388         * modules/pmccabe2html: New file.
43389
43390 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
43391
43392         flock: new module
43393         * MODULES.html.sh: Add to list of modules.
43394         * lib/flock.c: flock implementation for Windows and Unix systems
43395         which have fcntl.
43396         * doc/glibc-functions/flock.texi: Update documentation.
43397         * lib/sys_file.in.h: <sys/file.h> header file.
43398         * m4/flock.m4: M4 macros.
43399         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
43400         * modules/flock: flock module.
43401         * modules/flock-tests: flock tests module.
43402         * modules/sys_file: sys/file.h module.
43403         * tests/test-flock.c: test suite for flock.
43404
43405 2008-10-06  Jim Meyering  <meyering@redhat.com>
43406
43407         bootstrap: check for LT_INIT more portably still ;-)
43408         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
43409         Spotted by Bruno Haible.
43410
43411 2008-10-06  Eric Blake  <ebb9@byu.net>
43412
43413         test-signbit: avoid tripping Irix cc bug on -0.0L
43414         * tests/test-signbit.c (minus_zerol): Delete, and replace with
43415         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
43416         entire testsuite consistent and avoids an Irix 6.2 bug.
43417
43418 2008-10-05  Bruno Haible  <bruno@clisp.org>
43419             Jim Meyering  <jim@meyering.net>
43420
43421         Add an option for ignoring EPIPE during close_stdout.
43422         * lib/closeout.h: Include <stdbool.h>.
43423         (close_stdout_set_ignore_EPIPE): New declaration.
43424         * lib/closeout.c: Include <stdbool.h>.
43425         (ignore_EPIPE): New variable.
43426         (close_stdout_set_ignore_EPIPE): New function.
43427         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
43428         * lib/close-stream.c (close_stream): Mention the possible EPIPE
43429         failure.
43430         * modules/closeout (Depends-on): Add stdbool.
43431
43432 2008-10-05  Bruno Haible  <bruno@clisp.org>
43433
43434         * modules/accept: New file.
43435         * modules/bind: New file.
43436         * modules/connect: New file.
43437         * modules/getpeername: New file.
43438         * modules/getsockname: New file.
43439         * modules/getsockopt: New file.
43440         * modules/listen: New file.
43441         * modules/recv: New file.
43442         * modules/recvfrom: New file.
43443         * modules/send: New file.
43444         * modules/sendto: New file.
43445         * modules/setsockopt: New file.
43446         * modules/socket: New file.
43447         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
43448         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
43449         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
43450         the particular module is requested. Add a link warning when the
43451         particular module is not requested.
43452         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
43453         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
43454         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
43455         the particular module is requested.
43456         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
43457         gl_SYS_SOCKET_H_DEFAULTS): New macros.
43458         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
43459         * modules/sys_socket (Depends-on): Add link-warning.
43460         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
43461         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
43462         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
43463         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
43464         GL_LINK_WARNING.
43465         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
43466         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
43467         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
43468         * doc/posix-functions/getpeername.texi: Mention the new module
43469         'getpeername'.
43470         * doc/posix-functions/getsockname.texi: Mention the new module
43471         'getsockname'.
43472         * doc/posix-functions/getsockopt.texi: Mention the new module
43473         'getsockopt'.
43474         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
43475         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
43476         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
43477         * doc/posix-functions/send.texi: Mention the new module 'send'.
43478         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
43479         * doc/posix-functions/setsockopt.texi: Mention the new module
43480         'setsockopt'.
43481         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
43482         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
43483         listen, connect, accept.
43484         * modules/select-tests (Depends-on): Likewise.
43485
43486 2008-10-05  Bruno Haible  <bruno@clisp.org>
43487
43488         * lib/winsock.c (strerror): Remove unused #undef.
43489         (rpl_close): Remove unused local variable.
43490
43491         * modules/sys_socket (Depends-on); Add errno.
43492
43493 2008-10-05  Bruno Haible  <bruno@clisp.org>
43494
43495         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
43496         (select): Add a link warning when the 'select' module is not used.
43497         * modules/sys_select (Depends-on): Add link-warning.
43498         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
43499         Suggested by Paolo Bonzini.
43500
43501 2008-10-05  Jim Meyering  <meyering@redhat.com>
43502
43503         bootstrap: check for LT_INIT more portably
43504         * build-aux/bootstrap: Avoid using grep -E, since it's not
43505         portable enough.  Suggestion from Bruno Haible.
43506
43507 2008-10-05  Bruno Haible  <bruno@clisp.org>
43508
43509         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
43510         as being fixed by gnulib.
43511
43512 2008-10-05  Bruno Haible  <bruno@clisp.org>
43513
43514         * modules/select-tests: New file, mostly copied from
43515         modules/sys_select-tests.
43516         * tests/test-select.c: New file, mostly copied from
43517         tests/test-sys_select.c.
43518         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
43519         * modules/sys_select-tests (Depends-on): Remove all dependencies.
43520         (Makefile.am): Remove test_sys_select_LDADD.
43521
43522         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
43523         to an undefined symbol, for an error message.
43524         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
43525         (gl_SYS_SELECT_H_DEFAULTS): New macro.
43526         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
43527         winsock-select.c here.
43528         * modules/sys_select (Files): Remove lib/winsock-select.c.
43529         (Depends-on): Remove alloca.
43530         (Makefile.am): Substitute GNULIB_SELECT.
43531         * modules/select: New file.
43532         * doc/posix-functions/select.texi: Update.
43533
43534 2008-10-05  Bruno Haible  <bruno@clisp.org>
43535
43536         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
43537         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
43538         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
43539         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
43540         getdtablesize.
43541         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
43542         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
43543
43544 2008-10-05  Bruno Haible  <bruno@clisp.org>
43545
43546         * modules/getdtablesize-tests: New file.
43547         * tests/test-getdtablesize.c: New file.
43548
43549         New module 'getdtablesize'.
43550         * lib/unistd.in.h (getdtablesize): New declaration.
43551         * lib/getdtablesize.c: New file.
43552         * m4/getdtablesize.m4: New file.
43553         * modules/getdtablesize: New file.
43554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43555         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
43556         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
43557         HAVE_GETDTABLESIZE.
43558         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
43559
43560 2008-10-05  Bruno Haible  <bruno@clisp.org>
43561
43562         * modules/sched (Makefile.am): Fix typo.
43563         Reported by Simon Josefsson.
43564
43565 2008-10-05  Jim Meyering  <meyering@redhat.com>
43566
43567         bootstrap: check for LT_INIT, too
43568         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
43569         are deprecated.  Suggestion from Ralf Wildenhues.
43570
43571 2008-10-05  Bruno Haible  <bruno@clisp.org>
43572
43573         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
43574         overriding them by ours.
43575         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
43576
43577 2008-10-05  Jim Meyering  <meyering@redhat.com>
43578
43579         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
43580         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
43581         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
43582
43583 2008-10-04  Bruno Haible  <bruno@clisp.org>
43584
43585         * modules/dup2 (License): Change to LGPLv2+.
43586         * modules/sleep (License): Likewise.
43587         * modules/perror (License): Likewise.
43588         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
43589         Blake.
43590         * modules/signal (License): Likewise.
43591         * modules/sigprocmask (License): Likewise.
43592         * modules/raise (License): Change to LGPLv2+, with approval by Jim
43593         Meyering.
43594
43595 2008-10-04  Bruno Haible  <bruno@clisp.org>
43596
43597         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
43598         Reported by Rainer Tammer <tammer@tammer.net>.
43599
43600 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
43601             Bruno Haible  <bruno@clisp.org>
43602
43603         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
43604         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
43605         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
43606
43607 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
43608
43609         filevercmp: new module
43610         * lib/filevercmp.h: New function filevercmp comparing version strings.
43611         * lib/filevercmp.c: Implementation of filevercmp function.
43612         * modules/filevercmp: Module metadata.
43613         * tests/test-filevercmp.c: Unit test for new module.
43614         * modules/filevercmp-tests: Unit test metadata.
43615         * MODULES.html.sh: Add filevercmp module.
43616
43617 2008-10-03  Bruno Haible  <bruno@clisp.org>
43618
43619         * lib/c-ctype.h: Add comment.
43620         Reported by Jim Meyering.
43621
43622 2008-10-02  Bruno Haible  <bruno@clisp.org>
43623
43624         * modules/posix_spawn-internal (Depends-on): Add 'open'.
43625
43626 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43627
43628         * build-aux/bootstrap: Allow renaming bootstrap, and change the
43629         name of bootstrap.conf accordingly.
43630
43631 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43632
43633         * build-aux/bootstrap: Install git-merge-changelog configuration
43634         items into .gitconfig if needed.
43635
43636 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43637
43638         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
43639         git repository, and initialize/update it accordingly.
43640
43641 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
43642
43643         * modules/fsync-tests: New file.
43644         * tests/test-fsync.c: New file.
43645
43646         New module 'fsync'.
43647         * lib/fsync.c: New file.
43648         * m4/fsync.m4: New file.
43649         * modules/fsync: New file.
43650         * lib/unistd.in.h (fsync): New declaration.
43651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
43652         GNULIB_FSYNC and HAVE_FSYNC.
43653         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
43654         * MODULES.html.sh (posix_functions): Add fsync.
43655         * doc/posix-functions/fsync.texi: Mention the new module.
43656
43657 2008-10-02  Jim Meyering  <meyering@redhat.com>
43658
43659         fts.c: sync with similar code from coreutils' remove.c
43660         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
43661         Guard also with "#if defined __linux__", since for now at least,
43662         this code is Linux-kernel-specific.
43663
43664 2008-10-02  Jim Meyering  <meyering@redhat.com>
43665
43666         fts: bug fixes
43667         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
43668         Include <sys/vfs.h>, not <sys/statfs.h>.
43669
43670         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
43671         Include <sys/vfs.h>, not <sys/statfs.h>.
43672
43673 2008-10-01  Bruno Haible  <bruno@clisp.org>
43674
43675         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
43676         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
43677         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
43678         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
43679         * doc/posix-functions/posix_spawnp.texi: Likewise.
43680         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
43681         whether posix_spawn actually works.
43682         * m4/pipe.m4 (gl_PIPE): Likewise.
43683         * modules/execute (Files): Add m4/posix_spawn.m4.
43684         * modules/pipe (Files): Add m4/posix_spawn.m4.
43685         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
43686
43687 2008-10-01  Jim Meyering  <meyering@redhat.com>
43688
43689         remove trailing spaces
43690         * NEWS: Likewise.
43691         * lib/poll.c (poll): Likewise.
43692         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
43693         * lib/winsock.c (rpl_close): Likewise.
43694         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
43695         * modules/yield: Likewise.
43696         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
43697         * tests/test-sys_select.c (connect_to_socket): Likewise.
43698
43699         fts.c: adjust a new interface to be more generally useful
43700         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
43701         (fts_build): Adjust caller.
43702
43703 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43704
43705         * modules/cond-tests: New file.
43706         * tests/test-cond.c: New file.
43707
43708 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43709             Bruno Haible  <bruno@clisp.org>
43710
43711         * modules/cond (Dependencies): Add errno, time.
43712         * lib/glthread/cond.h: Include <time.h>.
43713         (gl_cond_define, gl_cond_define_initialized): Use the same definition
43714         across platforms.
43715
43716 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43717             Bruno Haible  <bruno@clisp.org>
43718
43719         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
43720
43721 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43722             Bruno Haible  <bruno@clisp.org>
43723
43724         * modules/tls-tests (Depends-on): Add thread, yield.
43725         (configure.ac): Remove all checks.
43726         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
43727         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43728         gl_thread_self): Remove definitions. Include glthread/thread.h and
43729         glthread/yield.h instead.
43730         (test_tls): Pass an additional NULL argument to gl_thread_join.
43731
43732 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43733             Bruno Haible  <bruno@clisp.org>
43734
43735         * modules/lock-tests (Depends-on): Add thread, yield.
43736         (configure.ac): Remove all checks.
43737         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
43738         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43739         gl_thread_self): Remove definitions. Include glthread/thread.h and
43740         glthread/yield.h instead.
43741         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
43742         additional NULL argument to gl_thread_join.
43743
43744 2008-09-30  Bruno Haible  <bruno@clisp.org>
43745
43746         Fix the Win32 implementation of the 'thread' module.
43747         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
43748         pointer type.
43749         (gl_thread_self): Invoke gl_thread_self_func.
43750         (gl_thread_self_func): New declaration.
43751         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
43752         (do_init_self_key, init_self_key): New functions.
43753         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
43754         Remove some fields.
43755         (running_threads, running_lock): Remove variables.
43756         (get_current_thread_handle): New function.
43757         (gl_thread_self_func, wrapper_func, glthread_create_func,
43758         glthread_join_func, gl_thread_exit_func): Largely rewritten and
43759         simplified.
43760
43761 2008-09-30  Bruno Haible  <bruno@clisp.org>
43762
43763         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
43764         files.
43765
43766 2008-09-30  Jim Meyering  <meyering@redhat.com>
43767
43768         fts.m4: correct the test for statfs.f_type
43769         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
43770         when checking for statfs.f_type.
43771
43772 2008-09-15  Simon Josefsson  <simon@josefsson.org>
43773
43774         tests: avoid some compiler warnings
43775         * tests/test-memchr.c (main): Pass NULL indirectly.
43776         * tests/test-getdate.c (main): Remove unused variable 'ret'.
43777
43778 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
43779
43780         getdate.y: disallow countable dayshifts like "4 yesterday ago"
43781         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
43782         exactly specified dayshifts.
43783         (dayshift): New rule.
43784         (rel): Add dayshift.
43785         (relative_time_table) [tomorrow, yesterday, today, now]:
43786         Use tDAY_SHIFT in place of tDAY_UNIT.
43787         * tests/test-getdate.c: Add tests for now-disallowed countable
43788         dayshifts, e.g., "4 yesterday ago".
43789
43790 2008-09-29  Bruno Haible  <bruno@clisp.org>
43791
43792         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
43793         * tests/test-posix_spawn1.in.sh: Renamed from
43794         tests/test-posix_spawn.in.sh.
43795         * tests/test-posix_spawn2.c: New file.
43796         * tests/test-posix_spawn2.in.sh: New file.
43797         * modules/posix_spawnp-tests (Files): Update.
43798         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43799
43800 2008-09-29  Bruno Haible  <bruno@clisp.org>
43801
43802         Propagate effects of putenv/setenv/unsetenv to child processes.
43803         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43804         * lib/pipe.c (create_pipe): Likewise.
43805
43806 2008-09-29  Bruno Haible  <bruno@clisp.org>
43807
43808         Enable use of shell scripts as executables in mingw.
43809         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43810         run the program as a shell script.
43811         * lib/pipe.c (create_pipe): Likewise.
43812         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43813         resulting array.
43814
43815 2008-09-29  Eric Blake  <ebb9@byu.net>
43816
43817         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43818
43819 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43820
43821         * doc/posix-functions/accept.texi: Update mingw problems.
43822         * doc/posix-functions/bind.texi: Update mingw problems.
43823         * doc/posix-functions/close.texi: Update mingw problems.
43824         * doc/posix-functions/connect.texi: Update mingw problems.
43825         * doc/posix-functions/getpeername.texi: Update mingw problems.
43826         * doc/posix-functions/getsockname.texi: Update mingw problems.
43827         * doc/posix-functions/getsockopt.texi: Update mingw problems.
43828         * doc/posix-functions/ioctl.texi: Update mingw problems.
43829         * doc/posix-functions/listen.texi: Update mingw problems.
43830         * doc/posix-functions/recv.texi: Update mingw problems.
43831         * doc/posix-functions/recvfrom.texi: Update mingw problems.
43832         * doc/posix-functions/select.texi: Update mingw problems.
43833         * doc/posix-functions/send.texi: Update mingw problems.
43834         * doc/posix-functions/sendto.texi: Update mingw problems.
43835         * doc/posix-functions/setsockopt.texi: Update mingw problems.
43836         * doc/posix-functions/socket.texi: Update mingw problems.
43837
43838 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
43839             Bruno Haible  <bruno@clisp.org>
43840
43841         * lib/sys_select.in.h: Include sys/time.h.
43842         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
43843         * modules/sys_select: Depend on sys_time.
43844         * tests/test-sys_select.c: Test that sys/select.h defines struct
43845         timeval fully.
43846
43847 2008-09-29  Bruno Haible  <bruno@clisp.org>
43848
43849         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
43850         * lib/sys_select.in.h: Likewise.
43851
43852 2008-09-29  Bruno Haible  <bruno@clisp.org>
43853
43854         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
43855
43856 2008-09-29  Bruno Haible  <bruno@clisp.org>
43857
43858         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
43859         Set LIBSOCKET instead of augmenting LIBS.
43860         * modules/sockets (Link): New section.
43861         * modules/sockets-tests (test_sockets_LDADD): New variable.
43862         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
43863         * modules/poll-tests (test_poll_LDADD): New variable.
43864         * NEWS: Document the change.
43865
43866 2008-09-29  Bruno Haible  <bruno@clisp.org>
43867
43868         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
43869         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
43870         ARPA_INET_H directly.
43871         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43872
43873 2008-09-28  Bruno Haible  <bruno@clisp.org>
43874
43875         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
43876         from gl_HEADER_SYS_SOCKET.
43877         (gl_HEADER_SYS_SOCKET): Invoke it.
43878         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43879
43880 2008-09-28  Bruno Haible  <bruno@clisp.org>
43881
43882         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
43883         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43884         Needed on OSF/1 4.0.
43885
43886 2008-09-28  Bruno Haible  <bruno@clisp.org>
43887
43888         Override open more carefully.
43889         * lib/open.c (orig_open): New function.
43890         (rpl_open): Use orig_open instead of open.
43891         * lib/fcntl.in.h: Add special invocation convention.
43892         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43893         (gl_FUNC_OPEN): Invoke it.
43894
43895         Override freopen more carefully.
43896         * lib/freopen.c (orig_freopen): New function.
43897         (rpl_freopen): Use orig_freopen instead of freopen.
43898         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43899         (gl_FUNC_FREOPEN): Invoke it.
43900
43901         Override fopen more carefully.
43902         * lib/fopen.c (orig_fopen): New function.
43903         (rpl_fopen): Use orig_fopen instead of fopen.
43904         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43905         (gl_FUNC_FOPEN): Invoke it.
43906         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43907
43908 2008-09-28  Bruno Haible  <bruno@clisp.org>
43909
43910         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43911         SIGPIPE.
43912
43913 2008-09-28  Bruno Haible  <bruno@clisp.org>
43914
43915         * tests/test-sigaction.c (handler, main): Disable the check whether
43916         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43917         glibc systems with LinuxThreads.
43918
43919 2008-09-28  Bruno Haible  <bruno@clisp.org>
43920
43921         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43922
43923         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43924         with AIX xlc.
43925         * lib/fcntl.in.h (open): Likewise.
43926         Reported by Rainer Tammer <tammer@tammer.net>.
43927
43928 2008-09-28  Bruno Haible  <bruno@clisp.org>
43929
43930         * modules/posix_spawnp-tests: New file.
43931         * tests/test-posix_spawn.c: New file.
43932         * tests/test-posix_spawn.in.sh: New file.
43933
43934         New module 'posix_spawnp'.
43935         * modules/posix_spawnp: New file.
43936         * lib/spawnp.c: New file, from GNU libc with modifications.
43937         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43938
43939         New module 'posix_spawn'.
43940         * modules/posix_spawn: New file.
43941         * lib/spawn.c: New file, from GNU libc with modifications.
43942         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43943
43944         New module 'posix_spawnattr_destroy'.
43945         * modules/posix_spawnattr_destroy: New file.
43946         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43947         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43948         module.
43949
43950         New module 'posix_spawnattr_setsigmask'.
43951         * modules/posix_spawnattr_setsigmask: New file.
43952         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43953         modifications.
43954         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43955         new module.
43956
43957         New module 'posix_spawnattr_getsigmask'.
43958         * modules/posix_spawnattr_getsigmask: New file.
43959         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43960         modifications.
43961         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43962         new module.
43963
43964         New module 'posix_spawnattr_setsigdefault'.
43965         * modules/posix_spawnattr_setsigdefault: New file.
43966         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43967         modifications.
43968         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43969         new module.
43970
43971         New module 'posix_spawnattr_getsigdefault'.
43972         * modules/posix_spawnattr_getsigdefault: New file.
43973         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43974         modifications.
43975         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43976         new module.
43977
43978         New module 'posix_spawnattr_setschedpolicy'.
43979         * modules/posix_spawnattr_setschedpolicy: New file.
43980         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43981         modifications.
43982         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43983         new module.
43984
43985         New module 'posix_spawnattr_getschedpolicy'.
43986         * modules/posix_spawnattr_getschedpolicy: New file.
43987         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43988         modifications.
43989         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43990         new module.
43991
43992         New module 'posix_spawnattr_setschedparam'.
43993         * modules/posix_spawnattr_setschedparam: New file.
43994         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43995         modifications.
43996         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43997         new module.
43998
43999         New module 'posix_spawnattr_getschedparam'.
44000         * modules/posix_spawnattr_getschedparam: New file.
44001         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
44002         modifications.
44003         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
44004         new module.
44005
44006         New module 'posix_spawnattr_setpgroup'.
44007         * modules/posix_spawnattr_setpgroup: New file.
44008         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
44009         modifications.
44010         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
44011         module.
44012
44013         New module 'posix_spawnattr_getpgroup'.
44014         * modules/posix_spawnattr_getpgroup: New file.
44015         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
44016         modifications.
44017         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
44018         module.
44019
44020         New module 'posix_spawnattr_setflags'.
44021         * modules/posix_spawnattr_setflags: New file.
44022         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
44023         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
44024         module.
44025
44026         New module 'posix_spawnattr_getflags'.
44027         * modules/posix_spawnattr_getflags: New file.
44028         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
44029         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
44030         module.
44031
44032         New module 'posix_spawnattr_init'.
44033         * modules/posix_spawnattr_init: New file.
44034         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
44035         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
44036         module.
44037
44038         New module 'posix_spawn_file_actions_destroy'.
44039         * modules/posix_spawn_file_actions_destroy: New file.
44040         * lib/spawn_faction_destroy.c: New file, from GNU libc with
44041         modifications.
44042         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
44043         the new module.
44044
44045         New module 'posix_spawn_file_actions_addopen'.
44046         * modules/posix_spawn_file_actions_addopen: New file.
44047         * lib/spawn_faction_addopen.c: New file, from GNU libc with
44048         modifications.
44049         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44050         the new module.
44051
44052         New module 'posix_spawn_file_actions_adddup2'.
44053         * modules/posix_spawn_file_actions_adddup2: New file.
44054         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
44055         modifications.
44056         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44057         the new module.
44058
44059         New module 'posix_spawn_file_actions_addclose'.
44060         * modules/posix_spawn_file_actions_addclose: New file.
44061         * lib/spawn_faction_addclose.c: New file, from GNU libc with
44062         modifications.
44063         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44064         the new module.
44065
44066         New module 'posix_spawn_file_actions_init'.
44067         * modules/posix_spawn_file_actions_init: New file.
44068         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
44069         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
44070         new module.
44071
44072         New module 'posix_spawn-internal'.
44073         * modules/posix_spawn-internal: New file.
44074         * lib/spawn_int.h: New file, from GNU libc with modifications.
44075         * lib/spawni.c: New file, from GNU libc with modifications.
44076         * m4/posix_spawn.m4: New file.
44077
44078         New module 'spawn'.
44079         * modules/spawn: New file.
44080         * lib/spawn.in.h: New file, from GNU libc with modifications.
44081         * m4/spawn_h.m4: New file.
44082         * doc/posix-headers/spawn.texi: Mention the new module.
44083
44084 2008-09-28  Bruno Haible  <bruno@clisp.org>
44085
44086         * modules/sched-tests: New file.
44087         * tests/test-sched.c: New file.
44088
44089         New module 'sched'.
44090         * modules/sched: New file.
44091         * lib/sched.in.h: New file.
44092         * m4/sched_h.m4: New file.
44093         * doc/posix-headers/sched.texi: Mention the new module.
44094
44095 2008-09-27  Eric Blake  <ebb9@byu.net>
44096
44097         Fix previous patch, and tweak references to $0.
44098         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
44099         (func_version, func_gnulib_dir): Don't call this program
44100         gnulib-tool.
44101         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
44102         with using $0 in function.
44103         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
44104         (func_fatal_error): Reuse the name the user invoked us with.
44105
44106 2008-09-27  Bruno Haible  <bruno@clisp.org>
44107
44108         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
44109         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
44110         (gl_ICONV_H): Not here.
44111         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
44112         instead of assigning ICONV_H directly.
44113
44114         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
44115         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
44116         WCHAR_H directly.
44117
44118 2008-09-27  Bruno Haible  <bruno@clisp.org>
44119
44120         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
44121         * modules/arpa_inet (Depends-on): Add link-warning.
44122         (Makefile.am): Insert the definition of GL_LINK-WARNING.
44123         * modules/unistd (Makefile.am): Likewise.
44124
44125 2008-09-26  Bruno Haible  <bruno@clisp.org>
44126
44127         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
44128         variables.
44129         (func_version): Essentially copied from gnulib-tool.
44130         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
44131         func_readlink): Copied from gnulib-tool.
44132
44133 2008-09-26  Bruno Haible  <bruno@clisp.org>
44134
44135         * gnulib-tool (func_version): Change directory to $gnulib_dir before
44136         invoking git-version-gen.
44137
44138 2008-09-26  Bruno Haible  <bruno@clisp.org>
44139
44140         * posix-modules: Update to directory names changed on 2008-01-19.
44141         Remove commas in output before splitting into words. No more need to
44142         avoid 'ftruncate' since 2007-02-19.
44143
44144 2008-09-26  Bruno Haible  <bruno@clisp.org>
44145
44146         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
44147
44148 2008-09-26  Bruno Haible  <bruno@clisp.org>
44149
44150         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
44151         * modules/fwriteerror (Depends-on): Add errno.
44152
44153 2008-09-26  Bruno Haible  <bruno@clisp.org>
44154
44155         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
44156         * tests/test-vc-list-files-cvs.sh: Likewise.
44157
44158 2008-09-26  Bruno Haible  <bruno@clisp.org>
44159
44160         * doc/posix-headers/sys_resource.texi: Reorder items.
44161
44162 2008-09-26  Jim Meyering  <meyering@redhat.com>
44163
44164         fts: tweak inode comparison function
44165         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
44166         inode numbers, as documented.
44167
44168         fts: sort dirent entries on inode number before traversing
44169         This avoids a quadratic, seek-related performance penalty when
44170         operating on a directory containing many entries (measurable at 10k;
44171         3.5 hours at 2 million entries with a cold cache) on certain types
44172         of file systems, including ext3 and ext4, but not tmpfs.
44173         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
44174         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
44175         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
44176         (fs_handles_readdir_ordered_dirents_efficiently): New function.
44177         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
44178         (fts_build): Set the stat.st_ino member from D_INO.
44179         If it is likely to be useful, sort dirent entries on inode number.
44180
44181         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
44182         and the struct statfs.f_type member.
44183         * modules/fts (Depends-on): Add d-ino.
44184
44185 2008-09-26  Bruno Haible  <bruno@clisp.org>
44186
44187         * modules/sigpipe-die (Depends-on): Add sigpipe.
44188
44189         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
44190         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
44191         and GNULIB_STDIO_H_SIGPIPE are set.
44192         * lib/stdio-write.c: New file.
44193         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
44194         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44195         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44196         REPLACE_STDIO_WRITE_FUNCS.
44197         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
44198         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44199         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44200         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44201         * modules/stdio (Files): Add lib/stdio-write.c.
44202         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
44203         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44204         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44205         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44206         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
44207         REPLACE_FPRINTF_POSIX.
44208         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
44209         REPLACE_PRINTF_POSIX.
44210         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
44211         REPLACE_VFPRINTF_POSIX.
44212         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
44213         REPLACE_VPRINTF_POSIX.
44214         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
44215         SIGPIPE issue.
44216         * doc/posix-functions/fputc.texi: Likewise.
44217         * doc/posix-functions/fputs.texi: Likewise.
44218         * doc/posix-functions/fwrite.texi: Likewise.
44219         * doc/posix-functions/printf.texi: Likewise.
44220         * doc/posix-functions/putc.texi: Likewise.
44221         * doc/posix-functions/putchar.texi: Likewise.
44222         * doc/posix-functions/puts.texi: Likewise.
44223         * doc/posix-functions/vfprintf.texi: Likewise.
44224         * doc/posix-functions/vprintf.texi: Likewise.
44225
44226         * modules/safe-write (Depends-on): Add write.
44227
44228         * modules/sigpipe-tests: New file.
44229         * tests/test-sigpipe.c: New file.
44230         * tests/test-sigpipe.sh: New file.
44231
44232         * modules/write: New file.
44233         * lib/unistd.in.h: Include <sys/types.h>.
44234         (write): New declaration.
44235         * lib/write.c: New file.
44236         * m4/write.m4: New file.
44237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44238         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
44239         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
44240         GNULIB_WRITE, REPLACE_WRITE.
44241         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
44242         and the SIGPIPE issue.
44243
44244         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
44245         (raise): New declaration.
44246         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
44247         (ext_signal): New function.
44248         (rpl_raise): New function.
44249         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
44250         GNULIB_SIGNAL_H_SIGPIPE.
44251         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
44252         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
44253
44254         * modules/sigpipe: New file.
44255         * m4/sigpipe.m4: New file.
44256
44257 2008-09-25  Derek Price  <derek@ximbiot.com>
44258             Bruno Haible  <bruno@clisp.org>
44259
44260         * gnulib-tool (func_import): Report all license incompatibilities, not
44261         just the first one.
44262
44263 2008-09-25  Bruno Haible  <bruno@clisp.org>
44264
44265         * gnulib-tool (func_import): When computing the edits, consider not
44266         only the Makefile.ams that exist but also those that will be generated.
44267
44268 2008-09-25  Simon Josefsson  <simon@josefsson.org>
44269
44270         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
44271         fixes gnulib-tool --test warning about duplicate dependency.
44272
44273 2008-09-25  Bruno Haible  <bruno@clisp.org>
44274
44275         * gnulib-tool: Don't ask the user to perform edits in the generated
44276         Makefile.ams.
44277         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
44278         apply to the Makefile.am being generated.
44279         (func_emit_tests_Makefile_am): Execute edits that apply to the
44280         Makefile.am being generated.
44281         (func_import): Setup list of Makefile.am edits before emitting the
44282         Makefile.ams, not at the end.
44283         (func_create_testdir): Update.
44284         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44285
44286 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44287
44288         * gnulib-tool (func_import): Store the --tests-base option in the
44289         comment in gnulib-cache.m4.
44290
44291 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
44292
44293         * NEWS: Document increased portability that sys_select now provides.
44294
44295         * lib/sys_select.in.h: Install select wrapper.
44296         * lib/sys_socket.in.h: Use more descriptive name when there is no
44297         select wrapper.
44298         * lib/winsock-select.c: New.
44299         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
44300         Require gl_HEADER_SYS_SOCKET.
44301         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
44302         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
44303         * tests/test-sys_select.c: Add functional tests.
44304
44305 2008-09-24  Eric Blake  <ebb9@byu.net>
44306
44307         open, fopen: close fd leak in last patch
44308         * lib/open.c (rpl_open): Close fd before returning error.
44309         * lib/fopen.c (rpl_fopen): Close fd before returning error.
44310         * doc/posix-functions/open.texi (open): Document that Irix also
44311         has the bug.
44312         * doc/posix-functions/fopen.texi (fopen): Likewise.
44313         Reported by Paolo Bonzini.
44314
44315 2008-09-24  Bruno Haible  <bruno@clisp.org>
44316
44317         Ensure that a filename ending in a slash cannot be used to access a
44318         non-directory.
44319         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
44320         to check whether it's really a directory.
44321         * lib/fopen.c: Include fcntl.h, unistd.h.
44322         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
44323         and fdopen().
44324         * modules/fopen (Depends-on): Add unistd.
44325         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
44326         * tests/test-fopen.c (main): Likewise.
44327         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
44328         * doc/posix-functions/fopen.texi: Likewise.
44329         Reported by Eric Blake.
44330
44331 2008-09-23  Eric Blake  <ebb9@byu.net>
44332
44333         c-stack: avoid compiler optimizations when provoking overflow
44334         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
44335         recursion harder to optimize, to ensure a stack overflow occurs.
44336         * tests/test-c-stack.c (recurse): Likewise.
44337         Borrowed from libsigsegv.
44338
44339         c-stack: work around Irix sigaltstack bug
44340         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
44341         whether sigaltstack uses wrong end of stack_t (copied in part from
44342         libsigsegv).
44343         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
44344         Irix bug, without requiring an over-allocation.
44345         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
44346         bug.
44347
44348         fopen: document mingw bug on directories
44349         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
44350         not allowing a stream visiting a directory, even though reading
44351         from such a stream is not portable.
44352
44353 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44354
44355         * lib/poll.c: Rewrite.
44356         * modules/poll: Depend on alloca.
44357
44358 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44359
44360         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
44361         instead define prototypes for a full set of wrappers.  Ensure
44362         that Cygwin does not use the compatibility code, which is only
44363         for MinGW.
44364         * lib/winsock.c: New.
44365         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
44366         * modules/sys_socket: Add lib/winsock.c.
44367
44368         * modules/poll-tests: Add errno and perror.
44369         * tests/test-poll.c: Use ioctl, not ioctlsocket.
44370
44371 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44372
44373         * tests/test-poll.c: Downgrade minimum needed Winsock version.
44374
44375 2008-09-23  Bruno Haible  <bruno@clisp.org>
44376
44377         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
44378         * doc/glibc-functions/*: Likewise.
44379
44380 2008-09-23  Simon Josefsson  <simon@josefsson.org>
44381
44382         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
44383         success.
44384
44385 2008-09-22  Eric Blake  <ebb9@byu.net>
44386             Bruno Haible  <bruno@clisp.org>
44387
44388         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
44389         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
44390         supply %A but mishandle pseudo-NaN.
44391         Reported by Simon Josefsson.
44392
44393 2008-09-21  Bruno Haible  <bruno@clisp.org>
44394
44395         * tests/test-lock.c (main): Tweak skip message.
44396         * tests/test-tls.c (main): Likewise.
44397
44398 2008-09-21  Bruno Haible  <bruno@clisp.org>
44399
44400         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
44401         whether 'struct sigaction' has sa_sigaction here...
44402         (gl_PREREQ_SIG_HANDLER_H): ... not here.
44403         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
44404
44405 2008-09-21  Bruno Haible  <bruno@clisp.org>
44406
44407         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
44408         section.
44409         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
44410         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
44411         the new section.
44412         (Support for obsolete systems lacking POSIX:2001): New section.
44413         (String handling <string.h>): Move strdup to the new section.
44414         Suggested by Simon Josefsson and Paolo Bonzini.
44415
44416 2008-09-21  Bruno Haible  <bruno@clisp.org>
44417
44418         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
44419         exponents in %e and %g results on 'long double'. Needed for mingw's
44420         improved *printf functions.
44421         * tests/test-vasprintf-posix.c (test_function): Likewise.
44422         * tests/test-snprintf-posix.h (test_function): Likewise.
44423         * tests/test-sprintf-posix.h (test_function): Likewise.
44424         Reported by Eric Blake.
44425
44426 2008-09-21  Bruno Haible  <bruno@clisp.org>
44427
44428         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
44429         * tests/test-sprintf-posix.h (test_function): Likewise.
44430
44431 2008-09-21  Bruno Haible  <bruno@clisp.org>
44432
44433         * modules/getpass (Depends-on): Add strdup-posix.
44434
44435         New module 'strdup-posix'.
44436         * modules/strdup-posix: New file.
44437         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
44438         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
44439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44440         REPLACE_STRDUP.
44441         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
44442         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
44443         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44444         strdup-posix.
44445
44446         * modules/strdup (Depends-on): Remove malloc-posix.
44447
44448 2008-09-20  Bruno Haible  <bruno@clisp.org>
44449
44450         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
44451         Wildenhues.
44452
44453 2008-09-20  Bruno Haible  <bruno@clisp.org>
44454
44455         Ensure that wint_t gets defined on IRIX 5.3.
44456         * lib/wchar.in.h (wint_t): Define if not defined by the system.
44457         * lib/wctype.in.h (wint_t): Likewise.
44458         (__wctype_wint_t): Remove type.
44459         (isw*): Use wint_t instead of __wctype_wint_t.
44460         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
44461         * modules/wchar (Files): Add m4/wint_t.m4.
44462         (Makefile.am): Substitute HAVE_WINT_T.
44463         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
44464         * tests/test-wctype.c: Check that wint_t is defined.
44465         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
44466         * doc/posix-headers/wctype.texi: Likewise.
44467         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44468
44469 2008-09-18  Bruno Haible  <bruno@clisp.org>
44470
44471         * gnulib-tool (func_exit): Update comment.
44472
44473 2008-09-18  Simon Josefsson  <simon@josefsson.org>
44474
44475         * modules/getaddrinfo (Depends-on): Remove strdup, this module
44476         assumes strdup exists and does not depend on strdup to return
44477         ENOMEM on out of memory conditions.
44478
44479 2008-09-18  Bruno Haible  <bruno@clisp.org>
44480
44481         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
44482         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
44483         digits for the exponent.
44484
44485 2008-09-18  Jim Meyering  <meyering@redhat.com>
44486             Bruno Haible  <bruno@clisp.org>
44487
44488         * lib/vasnprintf.c (decimal_point_char): Define also if
44489         NEED_PRINTF_INFINITE_LONG_DOUBLE.
44490
44491 2008-09-16  Bruno Haible  <bruno@clisp.org>
44492         and Eric Blake  <ebb9@byu.net>
44493
44494         vasnprintf: support Irix 5.3
44495         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
44496         that mishandle long double infinity.
44497         Reported by Tom G. Christensen.
44498
44499 2008-09-16  Bruno Haible  <bruno@clisp.org>
44500
44501         * doc/glibc-functions/scandir.texi: Mention the function is missing on
44502         Solaris 9.
44503         * doc/glibc-functions/alphasort.texi: Likewise.
44504         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
44505
44506 2008-09-16  Jim Meyering  <meyering@redhat.com>
44507
44508         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
44509         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
44510         a umask modification leak out of a subshell.  Otherwise, the
44511         opensolaris /bin/sh would be accepted and thus cause unwarranted
44512         failures in the coreutils test suite.
44513
44514 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
44515
44516         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
44517         to succeed.
44518
44519 2008-09-16  Jim Meyering  <meyering@redhat.com>
44520
44521         avoid spurious test failure when library is built without ACL support
44522         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
44523         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
44524         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
44525         * tests/test-copy-acl.sh: Likewise.
44526
44527 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44528
44529         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
44530         based on character occurrence counts.
44531
44532 2008-09-15  Eric Blake  <ebb9@byu.net>
44533
44534         tests: avoid some compiler warnings
44535         * tests/test-memchr.c (main): Pass NULL indirectly.
44536         * tests/test-closein.c (main): Avoid unused variable.
44537
44538 2008-09-15  Bruno Haible  <bruno@clisp.org>
44539
44540         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
44541         are missing on OpenBSD 4.0 individually.
44542         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44543
44544 2008-09-15  Bruno Haible  <bruno@clisp.org>
44545
44546         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
44547         * doc/posix-functions/strerror.texi: Mention also Cygwin.
44548         * doc/posix-functions/perror.texi: Likewise.
44549         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
44550         is missing.
44551         Reported by Eric Blake.
44552
44553         * lib/errno.in.h: Use replacement values >= 2000.
44554         Reported by Eric Blake.
44555
44556 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44557
44558         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
44559         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
44560         limit.
44561         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
44562         compareseq was aborted.
44563
44564 2008-09-14  Bruno Haible  <bruno@clisp.org>
44565
44566         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
44567         yvec_edit_count.
44568         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
44569         (fstrcmp_bounded): Simplify result computation accordingly.
44570
44571 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44572
44573         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
44574         (fstrcmp): Define in terms of fstrcmp_bounded.
44575         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
44576         lower_bound argument.
44577         Return quickly if the result is certainly < lower_bound.
44578         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
44579
44580 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44581
44582         * lib/diffseq.h (EARLY_ABORT): New macro.
44583         (compareseq): Change return type to bool. Return true when EARLY_ABORT
44584         evaluates to true.
44585
44586 2008-09-14  Bruno Haible  <bruno@clisp.org>
44587
44588         * modules/perror-tests: New file.
44589         * tests/test-perror.sh: New file.
44590         * tests/test-perror.c: New file.
44591
44592         New module 'perror'.
44593         * lib/stdio.in.h (perror): New declaration.
44594         * lib/perror.c: New file.
44595         * m4/perror.m4: New file.
44596         * modules/perror: New file.
44597         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
44598         * doc/posix-functions/perror.texi: Mention the perror module.
44599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
44600         REPLACE_PERROR.
44601         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
44602         REPLACE_PERROR.
44603
44604 2008-09-14  Bruno Haible  <bruno@clisp.org>
44605
44606         * modules/stdio (Makefile.am): Reorder to match the order in
44607         lib/stdio.in.h.
44608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44609
44610 2008-09-13  Bruno Haible  <bruno@clisp.org>
44611
44612         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
44613
44614 2008-09-13  Bruno Haible  <bruno@clisp.org>
44615
44616         Extend strerror to cover the added errno values.
44617         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
44618         (rpl_strerror): Provide error messages for the added errno values and
44619         for the WSA* values.
44620         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
44621         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
44622         strerror.
44623         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
44624         * modules/strerror (Depends-on): Add errno.
44625         * doc/posix-functions/strerror.texi: Document the change.
44626         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
44627         and EOVERFLOW.
44628
44629 2008-09-13  Bruno Haible  <bruno@clisp.org>
44630
44631         * modules/EOVERFLOW: Remove file.
44632         * m4/eoverflow.m4: Remove file.
44633         * modules/EOVERFLOW-tests: Remove file.
44634         * tests/test-EOVERFLOW.c: Remove file.
44635         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
44636         * modules/ftell (Depends-on): Likewise.
44637         * modules/getdelim (Depends-on): Likewise.
44638         * modules/getugroups (Depends-on): Likewise.
44639         * modules/poll (Depends-on): Likewise.
44640         * modules/snprintf (Depends-on): Likewise.
44641         * modules/sprintf-posix (Depends-on): Likewise.
44642         * modules/vasnprintf (Depends-on): Likewise.
44643         * modules/vasprintf (Depends-on): Likewise.
44644         * modules/vfprintf-posix (Depends-on): Likewise.
44645         * modules/vsnprintf (Depends-on): Likewise.
44646         * modules/vsprintf-posix (Depends-on): Likewise.
44647         * modules/xvasprintf (Depends-on): Likewise.
44648         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44649         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
44650         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
44651         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
44652         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44653         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
44654         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
44655         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
44656         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44657         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
44658         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
44659         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
44660         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44661         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
44662         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
44663         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
44664         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44665         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
44666         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
44667         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
44668         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44669         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
44670         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
44671         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
44672         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
44673         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44674         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
44675         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
44676         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
44677         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
44678         * MODULES.html.sh: Remove EOVERFLOW.
44679         * NEWS: Mention the change.
44680
44681 2008-09-13  Bruno Haible  <bruno@clisp.org>
44682
44683         * modules/errno-tests: New file.
44684         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
44685
44686         * lib/errno.in.h: New file.
44687         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
44688         * modules/errno: New file.
44689         * doc/posix-headers/errno.texi: Update documentation.
44690         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
44691
44692 2008-09-13  Bruno Haible  <bruno@clisp.org>
44693
44694         * tests/test-poll.c: Use #if for native Windows, rather than testing
44695         __MSVCRT__.
44696
44697 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44698             Bruno Haible  <bruno@clisp.org>
44699
44700         * lib/glob.c: Don't include <pwd.h> on native Windows.
44701         (WINDOWS32): New macro.
44702         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
44703
44704 2008-09-13  Bruno Haible  <bruno@clisp.org>
44705
44706         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
44707         (ETIMEDOUT): Remove macro.
44708         (glthread_cond_timedwait_multithreaded): New declaration.
44709         (glthread_cond_timedwait): Use it.
44710         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
44711         (glthread_cond_timedwait_multithreaded): New function.
44712
44713 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44714
44715         * modules/poll-tests: Do not check for io.h.
44716         * tests/test-poll.c: Check for __MSVCRT__ instead.
44717
44718 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44719
44720         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
44721         * modules/poll-tests: Add inet_pton, stdbool, sockets.
44722         * tests/test-poll.c: Use them.  Use _pipe on Windows.
44723
44724 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44725
44726         * modules/poll-tests: New.
44727         * tests/test-poll.c: New.
44728
44729 2008-09-12  Eric Blake  <ebb9@byu.net>
44730
44731         frexp: test for NetBSD failure on -0.0
44732         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
44733         not all, bugs from NetBSD 3.0 have been fixed.
44734         * doc/posix-functions/frexp.texi (frexp): Document bug.
44735         Reported by Thomas Klausner.
44736
44737         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
44738         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
44739         literal -0.0.
44740         Reported by Jonathan C. Patschke <jp@centtech.com>.
44741
44742 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44743
44744         * lib/glthread/cond.h: Use dummy implementation also if
44745         USE_WIN32_THREADS.
44746
44747 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44748
44749         * modules/fnmatch-posix (License): Change to LGPLv2+.
44750         * modules/fnmatch-gnu (License): Likewise.
44751
44752 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44753
44754         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
44755
44756 2008-09-11  Jim Meyering  <meyering@redhat.com>
44757
44758         * users.txt: Add gtk-vnc.
44759
44760 2008-09-08  Simon Josefsson  <simon@josefsson.org>
44761
44762         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
44763         rotate amounts.
44764
44765         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
44766         required for 16-bit and 8-bit rotates.
44767         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
44768         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
44769         UINT8_MAX instead of hard-coded constants.
44770         Suggested by Paul Eggert.
44771
44772 2008-09-07  Bruno Haible  <bruno@clisp.org>
44773
44774         * tests/test-striconveh.c (main): Check behaviour when converting from
44775         UTF-7.
44776
44777         Make striconveh work better with stateful encodings.
44778         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
44779         that iconv does not increment the inptr when returning -1/EINVAL.
44780
44781 2008-09-07  Bruno Haible  <bruno@clisp.org>
44782
44783         * build-aux/config.rpath: Update according to libtool-2.2.6.
44784         * build-aux/config.libpath: Likewise.
44785
44786 2008-09-06  Bruno Haible  <bruno@clisp.org>
44787
44788         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
44789         * lib/freadptr.c (freadptr): Likewise.
44790         * lib/freadseek.c (freadptrinc): Likewise.
44791         Reported by Simon Josefsson.
44792
44793 2008-09-06  Bruno Haible  <bruno@clisp.org>
44794
44795         * modules/freadptr (License): Change to LGPLv2+.
44796         * modules/freadseek (License): Likewise.
44797         Suggested by Eric Blake.
44798
44799         * modules/memchr2 (License): Change to LGPLv2+.
44800         Approved by Eric Blake.
44801
44802 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44803             Bruno Haible  <bruno@clisp.org>
44804
44805         Make gnulib-tool work with native 'sed' on AIX.
44806         * gnulib-tool (sed_noop): New variable.
44807         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44808         func_add_or_update, func_create_testdir): Use it to initialize sed
44809         script variables.
44810         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44811
44812 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44813             Bruno Haible  <bruno@clisp.org>
44814
44815         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44816         also works after #include directives.
44817
44818 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44819
44820         getdate.y: reject an out-of-range timezone value
44821         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
44822         the range [-24...+24].  When specified with only one or two digits,
44823         * tests/test-getdate.c: Tests for the fix.
44824         * doc/getdate.texi: Document this change.
44825
44826 2008-09-03  Bruno Haible  <bruno@clisp.org>
44827
44828         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
44829
44830 2008-09-02  Simon Josefsson  <simon@josefsson.org>
44831
44832         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
44833         <bruce.korb@gmail.com> with ideas from Ben Pfaff
44834         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
44835         Blake <ebb9@byu.net>.
44836
44837         * tests/test-bitrotate.c: Add more test vectors.
44838
44839 2008-09-02  Eric Blake  <ebb9@byu.net>
44840
44841         vasnprintf-posix: handle large precision via %.*d
44842         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
44843         when handling it ourselves.
44844         * tests/test-vasnprintf-posix.c (test_function): Add test.
44845         * tests/test-snprintf-posix.h (test_function): Likewise.
44846         * tests/test-sprintf-posix.h (test_function): Likewise.
44847         * tests/test-vasprintf-posix.c (test_function): Likewise.
44848         Reported by Alain Guibert.
44849
44850 2008-09-01  Eric Blake  <ebb9@byu.net>
44851
44852         c-stack: make configure-time check more robust
44853         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
44854         successful sigaction call.
44855         Reported by Tom G. Christensen.
44856
44857 2008-09-01  Bruno Haible  <bruno@clisp.org>
44858
44859         New module 'findprog-lgpl'.
44860         * modules/findprog-lgpl: New file.
44861         * lib/findprog-lgpl.c: New file.
44862         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
44863         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
44864         to decide whether to use strdup or xstrdup, concatenated_filename or
44865         xconcatenated_filename.
44866
44867 2008-09-01  Bruno Haible  <bruno@clisp.org>
44868
44869         Split module 'concat-filename' into 'concat-filename' (LGPL) and
44870         'xconcat-filename' (GPL).
44871         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
44872         (License): Change to LGPLv2+.
44873         * modules/xconcat-filename: New file.
44874         * lib/concat-filename.h (concatenated_filename): Change specification.
44875         (xconcatenated_filename): New declaration.
44876         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
44877         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
44878         memory situations.
44879         * lib/xconcat-filename.c: New file.
44880         * NEWS: Mention the change.
44881         * lib/findprog.c: Include concat-filename.h, not filename.h.
44882         (find_in_path): Use xconcatenated_filename instead of
44883         concatenated_filename.
44884         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44885         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44886         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44887         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44888         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44889         instead of concatenated_filename.
44890         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44891         (execute_java_class): Use xconcatenated_filename instead of
44892         concatenated_filename.
44893         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44894         * modules/javacomp (Depends-on): Likewise.
44895         * modules/javaexec (Depends-on): Likewise.
44896
44897 2008-09-01  Bruno Haible  <bruno@clisp.org>
44898
44899         Split module 'filename' into 'filename' and 'concat-filename'.
44900         * modules/filename: Keep only lib/filename.h.
44901         (License): Change to LGPLv2+.
44902         * modules/concat-filename: New file, extracted from modules/filename.
44903         * lib/filename.h (concatenated_filename): Remove declaration.
44904         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44905         * lib/concat-filename.c: Include concat-filename.h.
44906         * NEWS: Mention the change.
44907
44908 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44909
44910         * lib/bitrotate.h (rotl8, rotr8): Add.
44911
44912         * modules/bitrotate (configure.ac): Need
44913         AC_REQUIRE([AC_C_INLINE]).
44914         (Description): Mention stdint.h.  Reported by Bruno Haible
44915         <bruno@clisp.org>.
44916
44917         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44918         Paolo Bonzini <bonzini@gnu.org>.
44919
44920 2008-08-31  Bruno Haible  <bruno@clisp.org>
44921
44922         Assume Solaris specific bi-arch conventions on Solaris systems.
44923         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44924         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44925         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44926         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44927         like acl_libdirstem.
44928         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44929         acl_libdirstem.
44930         * NEWS: Mention the change.
44931         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44932
44933 2008-08-31  Jim Meyering  <meyering@redhat.com>
44934
44935         * lib/strftime.h: Add comments describing the two added arguments.
44936
44937         remove duplicate #include directives
44938         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44939         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44940
44941 2008-08-31  Bruno Haible  <bruno@clisp.org>
44942
44943         New module 'sigpipe-die'.
44944         * modules/sigpipe-die: New file.
44945         * lib/sigpipe-die.h: New file.
44946         * lib/sigpipe-die.c: New file.
44947         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44948
44949 2008-08-31  Bruno Haible  <bruno@clisp.org>
44950
44951         Don't override previously installed signal handlers.
44952         * lib/fatal-signal.c (saved_sigactions): New variable.
44953         (uninstall_handlers): Reset the signal to the saved handler, not
44954         to SIG_DFL (except when ignored).
44955         (install_handlers): Save the previous handlers.
44956
44957 2008-08-30  Bruno Haible  <bruno@clisp.org>
44958
44959         * gnulib-tool (func_reset_sigpipe): New function.
44960         (func_get_automake_snippet, func_modules_transitive_closure,
44961         func_import): Invoke it before a join command that reads from stdin,
44962         to avoid "echo: write error: Broken pipe" error messages on stderr.
44963         Reported by Sam Steingold <sds@gnu.org>.
44964
44965 2008-08-30  Bruno Haible  <bruno@clisp.org>
44966
44967         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44968         Code copied from m4/open.m4.
44969         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44970         access and the filename ends in a slash. Code copied from lib/open.c.
44971         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44972         * tests/test-fopen.c (main): Check against bug with trailing slash.
44973
44974 2008-08-29  Bruno Haible  <bruno@clisp.org>
44975
44976         Avoid some "gcc -pedantic" warnings.
44977         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44978         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44979         * lib/dirent.in.h: Likewise.
44980         * lib/fcntl.in.h: Likewise.
44981         * lib/float.in.h: Likewise.
44982         * lib/iconv.in.h: Likewise.
44983         * lib/inttypes.in.h: Likewise.
44984         * lib/locale.in.h: Likewise.
44985         * lib/math.in.h: Likewise.
44986         * lib/netinet_in.in.h: Likewise.
44987         * lib/search.in.h: Likewise.
44988         * lib/signal.in.h: Likewise.
44989         * lib/stdarg.in.h: Likewise.
44990         * lib/stdint.in.h: Likewise.
44991         * lib/stdio.in.h: Likewise.
44992         * lib/stdlib.in.h: Likewise.
44993         * lib/string.in.h: Likewise.
44994         * lib/strings.in.h: Likewise.
44995         * lib/sys_select.in.h: Likewise.
44996         * lib/sys_socket.in.h: Likewise.
44997         * lib/sys_stat.in.h: Likewise.
44998         * lib/sys_time.in.h: Likewise.
44999         * lib/sysexits.in.h: Likewise.
45000         * lib/time.in.h: Likewise.
45001         * lib/unistd.in.h: Likewise.
45002         * lib/wchar.in.h: Likewise.
45003         * lib/wctype.in.h: Likewise.
45004         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
45005         * modules/fchdir (Makefile.am): Likewise.
45006         * modules/fcntl (Makefile.am): Likewise.
45007         * modules/float (Makefile.am): Likewise.
45008         * modules/iconv_open (Makefile.am): Likewise.
45009         * modules/inttypes (Makefile.am): Likewise.
45010         * modules/locale (Makefile.am): Likewise.
45011         * modules/math (Makefile.am): Likewise.
45012         * modules/netinet_in (Makefile.am): Likewise.
45013         * modules/search (Makefile.am): Likewise.
45014         * modules/signal (Makefile.am): Likewise.
45015         * modules/stdarg (Makefile.am): Likewise.
45016         * modules/stdint (Makefile.am): Likewise.
45017         * modules/stdio (Makefile.am): Likewise.
45018         * modules/stdlib (Makefile.am): Likewise.
45019         * modules/string (Makefile.am): Likewise.
45020         * modules/strings (Makefile.am): Likewise.
45021         * modules/sys_select (Makefile.am): Likewise.
45022         * modules/sys_socket (Makefile.am): Likewise.
45023         * modules/sys_stat (Makefile.am): Likewise.
45024         * modules/sys_time (Makefile.am): Likewise.
45025         * modules/sysexits (Makefile.am): Likewise.
45026         * modules/time (Makefile.am): Likewise.
45027         * modules/unistd (Makefile.am): Likewise.
45028         * modules/wchar (Makefile.am): Likewise.
45029         * modules/wctype (Makefile.am): Likewise.
45030         Reported by Reuben Thomas <rrt@sc3d.org>.
45031
45032 2008-08-29  Bruno Haible  <bruno@clisp.org>
45033
45034         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
45035         any more.
45036
45037 2008-08-29  Simon Josefsson  <simon@josefsson.org>
45038
45039         * MODULES.html.sh (Misc): Add bitrotate.
45040
45041         * modules/bitrotate: New file.
45042
45043         * lib/bitrotate.h: New file.
45044
45045         * modules/bitrotate-tests: New file.
45046
45047         * tests/test-bitrotate.c: New file.
45048
45049         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
45050         on the bitrotate module.
45051
45052         * lib/arctwo.c: Use new bitrotate module.
45053
45054 2008-08-29  Jim Meyering  <meyering@redhat.com>
45055
45056         bootstrap: merge changes from coreutils
45057         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
45058         of copied files.  Remove a kludge, now that this is fixed.
45059         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
45060         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
45061         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
45062
45063 2008-08-29  Bruno Haible  <bruno@clisp.org>
45064
45065         * MODULES.html.sh: Remove --cvs-urls option.
45066
45067 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
45068
45069         maint.mk: adjust to file name change
45070         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
45071
45072 2008-08-28  Jim Meyering  <meyering@redhat.com>
45073
45074         * modules/getndelim2 (License): Relicense to LGPLv2+.
45075         Approved by Richard Stallman for the version of 1995, and by
45076         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
45077
45078 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
45079
45080         * lib/getdelim.c (flockfile, funlockfile): Make all of them
45081         dummy if one is not available.  Do not touch them if
45082         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
45083         (getc_maybe_unlocked): New.
45084         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
45085
45086 2008-08-26  Eric Blake  <ebb9@byu.net>
45087
45088         doc/INSTALL: resync from autoconf
45089         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
45090         (INSTALL_PRELUDE): Delete; this is done more efficiently by
45091         moving...
45092         * install.texi [!autoconf]: ...here.  Resync from autoconf.
45093         * INSTALL: Regenerate.
45094         * INSTALL.ISO: New file.
45095         * INSTALL.UTF-8: Likewise.
45096
45097 2008-08-26  Jim Meyering  <meyering@redhat.com>
45098
45099         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
45100         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
45101         these definitions conditional, so that they may be overridden, too.
45102
45103 2008-08-26  Bruno Haible  <bruno@clisp.org>
45104
45105         Generate INSTALL file variants with prettier quotes.
45106         * doc/Makefile (INSTALL_PRELUDE): New macro.
45107         (INSTALL): Use it.
45108         (INSTALL.ISO, INSTALL.UTF-8): New rules.
45109
45110 2008-08-26  Bruno Haible  <bruno@clisp.org>
45111
45112         Run makeinfo in an English locale.
45113         * doc/Makefile (MAKEINFO): New variable.
45114
45115 2008-08-26  Bruno Haible  <bruno@clisp.org>
45116
45117         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
45118         Suggested by Eric Blake.
45119
45120 2008-08-25  Bruno Haible  <bruno@clisp.org>
45121
45122         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
45123
45124 2008-08-25  Eric Blake  <ebb9@byu.net>
45125
45126         c-stack: test that stack overflow can be caught
45127         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
45128         that platform allows handling stack overflow; at least OS/2 EMX
45129         has sigaltstack, but crashes before transferring control to
45130         handler on stack overflow.
45131         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
45132         check for HAVE_STACK_OVERFLOW_HANDLING.
45133         Reported by Elbert Pol.
45134
45135 2008-08-25  Bruno Haible  <bruno@clisp.org>
45136
45137         * doc/posix-functions/strftime.texi: Fix description of strftime
45138         module.
45139
45140 2008-08-24  Bruno Haible  <bruno@clisp.org>
45141
45142         * tests/uniwidth/test-uc_width2.c: New file.
45143         * tests/uniwidth/test-uc_width2.sh: New file.
45144         * modules/uniwidth/width-tests (Files): Add the new files.
45145         (TESTS): Add uniwidth/test-uc_width2.sh.
45146         (TESTS_ENVIRONMENT): New variable.
45147         (check_PROGRAMS): Add test-uc_width2.
45148         (test_uc_width2_SOURCES): New variable.
45149
45150         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
45151         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
45152         not 0x00AB.
45153         Reported by Alexander V. Lukyanov <lav@netis.ru>.
45154
45155 2008-08-22  Eric Blake  <ebb9@byu.net>
45156
45157         test-lock, test-tls: mention why a test is skipped
45158         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
45159         skipped.
45160         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
45161
45162         count-one-bits: relax license
45163         * modules/count-one-bits (License): Relicense to LGPLv2+.
45164         Suggested by Ludovic Courtès, approved by Ben Pfaff.
45165
45166 2008-08-22  Andreas Schwab  <schwab@suse.de>
45167
45168         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
45169         Remove spurious space in assignment.
45170
45171 2008-08-21  Simon Josefsson  <simon@josefsson.org>
45172
45173         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
45174         Paul Eggert <eggert@CS.UCLA.EDU>.
45175
45176 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
45177
45178         * modules/gettext: Add m4/threadlib.m4.
45179
45180 2008-08-19  Eric Blake  <ebb9@byu.net>
45181
45182         test-c-stack: fix compilation failure on FreeBSD 5.0
45183         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
45184         headers before <sys/resource.h>.
45185         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
45186         the bug.
45187         Reported by Nelson H. F. Beebe.
45188
45189         strverscmp: migrate from "strverscmp.h" to <string.h>
45190         * modules/string (Makefile.am): Add new hooks.
45191         * modules/strverscmp (Files): Remove strverscmp.h.
45192         (Depends-on): Add string.
45193         (configure.ac): Add indicator.
45194         (Include): Mention new header.
45195         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
45196         defaults.
45197         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
45198         results.
45199         * lib/strverscmp.h: Delete.
45200         * lib/string.in.h (strverscmp): Provide declaration, when needed.
45201         * tests/test-strverscmp.c (includes): Adjust client.
45202         * lib/check-version.c (includes): Likewise.
45203         * NEWS: Document the change.
45204
45205         strverscmp: add unit test
45206         * modules/strverscmp-tests: New file.
45207         * tests/test-strverscmp.c: Likewise.
45208
45209 2008-08-19  Simon Josefsson  <simon@josefsson.org>
45210
45211         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
45212         regarding Windows crypto stuff, from Mono.
45213
45214 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
45215
45216         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
45217         if present, for intel RND.  Return error on failures.
45218
45219 2008-08-18  Ben Pfaff  <blp@gnu.org>
45220
45221         gitlog-to-changelog: give better diagnostic for failed pipe-open
45222         * build-aux/gitlog-to-changelog: Improve error message: suggest
45223         that the version of Git may be too old.
45224
45225 2008-08-18  Simon Josefsson  <simon@josefsson.org>
45226
45227         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
45228         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
45229
45230 2008-08-18  Bruno Haible  <bruno@clisp.org>
45231
45232         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
45233         pthread_in_use().
45234
45235 2008-08-18  Bruno Haible  <bruno@clisp.org>
45236
45237         * lib/glthread/threadlib.c: Include <pthread.h>.
45238
45239 2008-08-18  Bruno Haible  <bruno@clisp.org>
45240
45241         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
45242         glthread_recursive_lock_* macros.
45243         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
45244         Fix syntax error.
45245
45246 2008-08-18  Bruno Haible  <bruno@clisp.org>
45247
45248         * lib/glthread/thread.c: Avoid forcing a context switch right after
45249         thread creation.
45250
45251 2008-08-17  Bruno Haible  <bruno@clisp.org>
45252
45253         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
45254         * lib/glthread/thread.h: Provide Win32 specific implementation.
45255         * modules/thread (Files): Add lib/glthread/thread.c.
45256         (Depends-on): Add lock.
45257         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
45258
45259 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45260
45261         New module 'yield'.
45262         * modules/yield: New file.
45263         * lib/glthread/yield.h: New file.
45264         * m4/yield.m4: New file.
45265         * MODULES.html.sh (Multithreading): Add yield.
45266
45267 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45268
45269         New module 'thread'.
45270         * modules/thread: New file.
45271         * lib/glthread/thread.h: New file.
45272         * m4/thread.m4: New file.
45273         * MODULES.html.sh (Multithreading): Add thread.
45274
45275 2008-08-17  Bruno Haible  <bruno@clisp.org>
45276
45277         * lib/glthread/lock.h: Include <stdlib.h> always.
45278         * lib/glthread/tls.h: Likewise.
45279         * lib/glthread/cond.h: Likewise.
45280
45281 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45282
45283         New module 'cond'.
45284         * modules/cond: New file.
45285         * lib/glthread/cond.h: New file.
45286         * lib/glthread/cond.c: New file.
45287         * m4/cond.m4: New file.
45288         * MODULES.html.sh (Multithreading): Add cond.
45289
45290 2008-08-16  Eric Blake  <ebb9@byu.net>
45291
45292         c-stack: fix regression on Irix 5.3 from 2008-06-21
45293         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
45294         sa_sigaction...
45295         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
45296         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
45297         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
45298         * modules/signal (Makefile.am): Use the value.
45299         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
45300         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
45301         * doc/posix-headers/signal.texi (signal.h): Document this
45302         portability issue.
45303         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
45304         Reported by Tom G. Christensen.
45305
45306 2008-08-17  Bruno Haible  <bruno@clisp.org>
45307
45308         New module 'threadlib'.
45309         * modules/threadlib: New file.
45310         * lib/glthread/threadlib.c: New file, extracted from
45311         lib/glthread/lock.c.
45312         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
45313         functions.
45314         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
45315         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
45316         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
45317         macros.
45318         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
45319         (gl_DISABLE_THREADS): Remove macro.
45320         * modules/lock (Files): Remove build-aux/config.rpath.
45321         (Depends-on): Remove havelib. Add threadlib.
45322         (configure.ac-early): Remove section.
45323         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
45324         * modules/tls (Depends-on): Remove lock. Add threadlib.
45325         (Link): New section, copied from threadlib.
45326         * MODULES.html.sh (Multithreading): Add threadlib.
45327
45328 2008-08-14  Bruno Haible  <bruno@clisp.org>
45329
45330         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
45331         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
45332         glthread_rwlock_unlock, glthread_rwlock_destroy,
45333         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
45334         glthread_recursive_lock_destroy): Define as macros always.
45335         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
45336         glthread_lock_lock.
45337         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
45338         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
45339         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
45340         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
45341         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
45342         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
45343         (glthread_recursive_lock_lock_func): Renamed from
45344         glthread_recursive_lock_lock.
45345         (glthread_recursive_lock_unlock_func): Renamed from
45346         glthread_recursive_lock_unlock.
45347         (glthread_recursive_lock_destroy_func): Renamed from
45348         glthread_recursive_lock_destroy.
45349
45350 2008-08-14  Bruno Haible  <bruno@clisp.org>
45351
45352         * lib/glthread/lock.h: Renamed from lib/lock.h.
45353         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
45354         * lib/glthread/tls.h: Renamed from lib/tls.h.
45355         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
45356         * lib/fstrcmp.c: Update includes.
45357         * lib/strsignal.c: Update includes.
45358         * modules/lock (Files, Makefile.am): Update.
45359         (Include): Change to "glthread/lock.h".
45360         * modules/tls (Files, Makefile.am): Update.
45361         (Include): Change to "glthread/tls.h".
45362         * tests/test-lock.c: Update includes.
45363         * tests/test-tls.c: Update includes.
45364         * NEWS: Mention the renamed header files.
45365
45366 2008-08-11  Jim Meyering  <meyering@redhat.com>
45367
45368         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
45369
45370 2008-08-11  Eric Blake  <ebb9@byu.net>
45371
45372         test-c-stack: avoid C99-ism
45373         * tests/test-c-stack.c (main): Fix whitespace, move declaration
45374         before statement.
45375         Reported by Alain Guibert.
45376
45377 2008-08-10  Jim Meyering  <meyering@redhat.com>
45378
45379         ensure that return value of uinttostr et al are not ignored
45380         * lib/inttostr.h (__GNUC_PREREQ): Define.
45381         (__attribute_warn_unused_result__): Define.
45382         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
45383
45384 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
45385
45386         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
45387         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
45388
45389 2008-08-07  Jim Meyering  <meyering@redhat.com>
45390
45391         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
45392
45393         * modules/mkstemp (License): Relicense under LGPLv2+.
45394         * modules/tempname (License): Likewise.
45395
45396 2008-08-06  Bruno Haible  <bruno@clisp.org>
45397
45398         * lib/poll.c (poll): Further micro-optimization.
45399
45400 2008-08-06  Jim Meyering  <meyering@redhat.com>
45401
45402         inet_pton.c: use locale-independent tolower
45403         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
45404         (inet_pton6): Use c_tolower rather than tolower.
45405         * modules/inet_pton (Depends-on): Add c-ctype.
45406
45407 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
45408
45409         * lib/poll.c (poll): Avoid division when timeout is 0, cache
45410         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
45411
45412 2008-08-06  Jim Meyering  <meyering@redhat.com>
45413
45414         * modules/inet_pton (License): Relicense under LGPLv2+.
45415
45416 2008-08-03  Bruno Haible  <bruno@clisp.org>
45417
45418         Additional non-aborting API for lock and tls.
45419         * lib/lock.h: Include <errno.h>.
45420         (glthread_lock_init): New macro/function.
45421         (gl_lock_init): Define as wrapper around glthread_lock_init.
45422         (glthread_lock_lock): New macro/function.
45423         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
45424         (glthread_lock_unlock): New macro/function.
45425         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
45426         (glthread_lock_destroy): New macro/function.
45427         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
45428         (glthread_rwlock_init): New macro/function.
45429         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
45430         (glthread_rwlock_rdlock): New macro/function.
45431         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
45432         (glthread_rwlock_wrlock): New macro/function.
45433         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
45434         (glthread_rwlock_unlock): New macro/function.
45435         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
45436         (glthread_rwlock_destroy): New macro/function.
45437         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
45438         (glthread_recursive_lock_init): New macro/function.
45439         (gl_recursive_lock_init): Define as wrapper around
45440         glthread_recursive_lock_init.
45441         (glthread_recursive_lock_lock): New macro/function.
45442         (gl_recursive_lock_lock): Define as wrapper around
45443         glthread_recursive_lock_lock.
45444         (glthread_recursive_lock_unlock): New macro/function.
45445         (gl_recursive_lock_unlock): Define as wrapper around
45446         glthread_recursive_lock_unlock.
45447         (glthread_recursive_lock_destroy): New macro/function.
45448         (gl_recursive_lock_destroy): Define as wrapper around
45449         glthread_recursive_lock_destroy.
45450         (glthread_once): New macro/function.
45451         (gl_once): Define as wrapper around glthread_once.
45452         Update function declarations.
45453         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
45454         glthread_rwlock_init. Return error code.
45455         (glthread_rwlock_rdlock_multithreaded): Renamed from
45456         glthread_rwlock_rdlock. Return error code.
45457         (glthread_rwlock_wrlock_multithreaded): Renamed from
45458         glthread_rwlock_wrlock. Return error code.
45459         (glthread_rwlock_unlock_multithreaded): Renamed from
45460         glthread_rwlock_unlock. Return error code.
45461         (glthread_rwlock_destroy_multithreaded): Renamed from
45462         glthread_rwlock_destroy. Return error code.
45463         (glthread_recursive_lock_init_multithreaded): Renamed from
45464         glthread_recursive_lock_init. Return error code.
45465         (glthread_recursive_lock_lock_multithreaded): Renamed from
45466         glthread_recursive_lock_lock. Return error code.
45467         (glthread_recursive_lock_unlock_multithreaded): Renamed from
45468         glthread_recursive_lock_unlock. Return error code.
45469         (glthread_recursive_lock_destroy_multithreaded): Renamed from
45470         glthread_recursive_lock_destroy. Return error code.
45471         (glthread_once_call): Make static.
45472         (glthread_once_multithreaded): Renamed from glthread_once.
45473         * lib/tls.h: Include <errno.h>.
45474         (glthread_tls_key_init): New macro/function.
45475         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
45476         (glthread_tls_set): New macro/function.
45477         (gl_tls_set): Define as wrapper around glthread_tls_set.
45478         (glthread_tls_key_destroy): New macro/function.
45479         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
45480         Update function declarations.
45481         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
45482         glthread_tls_get.
45483         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45484
45485 2008-08-04  Eric Blake  <ebb9@byu.net>
45486
45487         gnumakefile: use space, not TAB, outside of targets
45488         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
45489
45490 2008-08-02  Jim Meyering  <meyering@redhat.com>
45491
45492         getdate.y: avoid locale-dependent date parsing failure
45493         In Turkish locales, getdate would fail to recognize keywords
45494         containing a lowercase "i".  The solution is not to rely on
45495         locale-sensitive case-conversion.
45496         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
45497         (lookup_word): Use c_toupper in place of toupper.
45498         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
45499         Reported by Vefa Bicakci <bicave@superonline.com> in
45500         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
45501         * modules/getdate (Depends-on): Add c-ctype.
45502
45503 2008-08-02  Bruno Haible  <bruno@clisp.org>
45504
45505         * gnulib-tool (func_import): When updating or creating a .gitignore
45506         file, prepend each added line with a slash, and ignore leading slashes
45507         from the existing lines.
45508         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45509
45510 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45511
45512         Portability fix for GNU make 3.79.1.
45513         * top/GNUmakefile: Avoid 'else COND', which older GNU make
45514         versions do not understand.
45515
45516 2008-08-01  Bruno Haible  <bruno@clisp.org>
45517
45518         Work around bug of HP-UX 10.20 cc with -0.0 literal.
45519         * tests/test-isnanf.h (zero): New variable.
45520         (main): Avoid literal -0.0f.
45521         * tests/test-isnand.h (zero): New variable.
45522         (main): Avoid literal -0.0.
45523         * tests/test-isnanl.h (zero): New variable.
45524         (main): Avoid literal -0.0L.
45525         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
45526         (test_float, test_double, test_long_double): Avoid literals -0.0f,
45527         -0.0, -0.0L.
45528         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
45529         (test_signbitd): Avoid literal -0.0.
45530         (test_signbitl): Avoid literal -0.0L.
45531         * tests/test-ceilf1.c (zero): New variable.
45532         (main): Avoid literal -0.0f.
45533         * tests/test-ceill.c (zero): New variable.
45534         (main): Avoid literal -0.0L.
45535         * tests/test-floorf1.c (zero): New variable.
45536         (main): Avoid literal -0.0f.
45537         * tests/test-floorl.c (zero): New variable.
45538         (main): Avoid literal -0.0L.
45539         * tests/test-roundf1.c (zero): New variable.
45540         (main): Avoid literal -0.0f.
45541         * tests/test-round1.c (zero): New variable.
45542         (main): Avoid literal -0.0.
45543         * tests/test-roundl.c (zero): New variable.
45544         (main): Avoid literal -0.0L.
45545         * tests/test-truncf1.c (zero): New variable.
45546         (main): Avoid literal -0.0f.
45547         * tests/test-trunc1.c (zero): New variable.
45548         (main): Avoid literal -0.0.
45549         * tests/test-truncl.c (zero): New variable.
45550         (main): Avoid literal -0.0L.
45551         * tests/test-frexp.c (zero): New variable.
45552         (main): Avoid literal -0.0.
45553         * tests/test-frexpl.c (zero): New variable.
45554         (main): Avoid literal -0.0L.
45555         * tests/test-ldexpl.c (zero): New variable.
45556         (main): Avoid literal -0.0L.
45557         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45558         (zerod, zerol): New variables.
45559         (test_function): Avoid literals -0.0, -0.0L.
45560         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45561         (zerod, zerol): New variables.
45562         (test_function): Avoid literals -0.0, -0.0L.
45563         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45564         (zerod, zerol): New variables.
45565         (test_function): Avoid literals -0.0, -0.0L.
45566         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45567         (zerod, zerol): New variables.
45568         (test_function): Avoid literals -0.0, -0.0L.
45569         * tests/test-strtod.c (zero): New variable.
45570         (main): Avoid literal -0.0.
45571         Reported by Jonathan C. Patschke <jp@centtech.com>.
45572
45573 2008-07-31  Jim Meyering  <meyering@redhat.com>
45574
45575         sha256.h: correct definition of SHA224_DIGEST_SIZE
45576         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
45577         Reported by Paulie Pena IV <paulie4@gmail.com>.
45578         Define as 224 / 8, rather than as a literal.
45579         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
45580         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
45581         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
45582
45583 2008-07-31  Bruno Haible  <bruno@clisp.org>
45584
45585         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
45586         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
45587         Reported by Jonathan Patschke <jp@centtech.com>.
45588
45589 2008-07-31  Bruno Haible  <bruno@clisp.org>
45590
45591         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
45592         Reported by Paolo Bonzini <bonzini@gnu.org>.
45593
45594 2008-07-30  Eric Blake  <ebb9@byu.net>
45595
45596         test-strtod: allow compilation without -lm
45597         * tests/test-strtod.c (main): Avoid link dependence on fabs.
45598         Reported by Dennis Clarke <blastwave@gmail.com>.
45599
45600 2008-07-28  Jim Meyering  <meyering@redhat.com>
45601
45602         bootstrap: work also when there are no .po files in po/
45603         * build-aux/bootstrap (update_po_files): Complete the change
45604         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
45605
45606 2008-07-27  Jim Meyering  <meyering@redhat.com>
45607
45608         * users.txt: Add zile.
45609
45610 2008-07-26  Ben Pfaff  <blp@gnu.org>
45611
45612         Add missing dependencies on new m4/exponent[fdl].m4 files.
45613         * modules/isnanf-nolibm: Add m4/exponentf.m4.
45614         * modules/isnand-nolibm: Add m4/exponentd.m4.
45615         * modules/isnanl-nolibm: Add m4/exponentl.m4.
45616         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
45617         m4/isnan[fdl].m4, because the macros actually used moved.
45618         Reported by Jim Meyering.
45619
45620 2008-07-14  Ben Pfaff  <blp@gnu.org>
45621
45622         Add isinf module.
45623         * lib/isinf.c: New file.
45624         * lib/math.in.h: Define isinf macro if we have decided to replace
45625         it.
45626         * m4/isinf.m4: New file.
45627         * m4/math_h.m4: Initialize and substitute variables for isinf
45628         module.
45629         * modules/isinf: New file.
45630         * modules/isinf-tests: New file.
45631         * modules/math: Add substitutions for new module.
45632         * tests/test-isinf.c: New file.
45633         * doc/posix-functions/isinf.texi: Mention new module.
45634         * MODULES.html.sh: Mention new module.
45635
45636 2008-07-14  Ben Pfaff  <blp@gnu.org>
45637
45638         Factor out some macros for use by additional modules.
45639         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
45640         exponentf.m4.
45641         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
45642         exponentd.m4.
45643         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
45644         file exponentl.m4.
45645         * m4/exponentf.m4: New file.
45646         * m4/exponentd.m4: New file.
45647         * m4/exponentl.m4: New file.
45648         * modules/isnanf: Use new file m4/exponentf.m4.
45649         * modules/isnand: Use new file m4/exponentd.m4.
45650         * modules/isnanl: Use new file m4/exponentl.m4.
45651
45652 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
45653
45654         mktime.c: normalize tp->tm_isdst value to -1/0/1.
45655         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
45656         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
45657         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
45658
45659         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
45660         readlink on platforms without PATH_MAX.
45661
45662 2008-07-21  Eric Blake  <ebb9@byu.net>
45663
45664         Warn, not fail, on stale version.
45665         * top/GNUmakefile (_curr-ver): Tone down previous patch.
45666
45667         Don't allow installation with stale devel version number.
45668         * top/GNUmakefile (_is-install-target): New macro.
45669         (_curr-ver): Forbid installation with stale version number.
45670
45671 2008-07-20  Bruno Haible  <bruno@clisp.org>
45672
45673         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
45674         TESTS_ENVIRONMENT.
45675         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
45676
45677 2008-07-20  Bruno Haible  <bruno@clisp.org>
45678
45679         * lib/c-stack.h (c_stack_action): Add documentation.
45680         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
45681
45682 2008-07-20  Bruno Haible  <bruno@clisp.org>
45683
45684         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
45685         * modules/readlink (License): Likewise.
45686
45687 2008-07-17  Eric Blake  <ebb9@byu.net>
45688
45689         * modules/c-stack (Link): Fix typo.
45690
45691         Make c-stack use libsigsegv, when available.
45692         * modules/c-stack (Depends-on): Add libsigsegv.
45693         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
45694         needed.
45695         * lib/c-stack.c (SIGSTKSZ): Define fallback.
45696         (segv_handler, overflow_handler, c_stack_action)
45697         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
45698         implementation when libsigsegv is available, but only when using
45699         the library is necessary.
45700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
45701         comment, explaining why XSI check fails on Linux.
45702         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
45703         * tests/test-c-stack2.sh: Tweak skip message.
45704         * NEWS: Document new link-time requirements.
45705
45706 2008-07-16  Eric Blake  <ebb9@byu.net>
45707
45708         c-stack: Expose false positives when not using libsigsegv.
45709         * modules/c-stack-tests (Files): Expand test.
45710         * tests/test-c-stack.c (main): Add means to conditionally trigger
45711         non-overflow SIGSEGV.
45712         * tests/test-c-stack2.sh: New file.
45713
45714 2008-07-14  Bruno Haible  <bruno@clisp.org>
45715
45716         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
45717         Reported by Eric Blake.
45718
45719 2008-07-14  Sam Steingold  <sds@gnu.org>
45720             Bruno Haible  <bruno@clisp.org>
45721
45722         New module libsigsegv.
45723         * modules/libsigsegv: New file.
45724         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
45725         modifications.
45726         * MODULES.html.sh (Signal handling): New section.
45727
45728 2008-07-14  Bruno Haible  <bruno@clisp.org>
45729
45730         * modules/unictype/ctype-* (Description): Add the word "function".
45731         Improves the resulting doc in MODULES.html.
45732
45733 2008-07-12  Ben Pfaff  <blp@gnu.org>
45734
45735         Add longlong module.
45736         * modules/longlong: New file.
45737
45738 2008-07-12  Bruno Haible  <bruno@clisp.org>
45739
45740         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
45741         to empty.
45742
45743 2008-07-10  Ben Pfaff  <blp@gnu.org>
45744
45745         Add isnan module.
45746         * doc/posix-functions/isnan.texi: Mention new module.
45747         * lib/math.in.h: Define isnan macro if we have decided to replace
45748         it.
45749         * m4/isnan.m4: New file.
45750         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
45751         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
45752         also.
45753         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
45754         redundancy.
45755         * m4/math_h.m4: Initialize and substitute variables for isnan
45756         module.
45757         * modules/isnan: New file.
45758         * modules/isnan-tests: New file.
45759         * modules/math: Add substitutions for new module.
45760         * tests/test-isnan.c: New file.
45761         * MODULES.html.sh: Mention new module.
45762
45763 2008-07-10  Ben Pfaff  <blp@gnu.org>
45764
45765         Add isnanf module.
45766         * lib/isnanf.m4: New file.
45767         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
45768         (gl_HAVE_ISNANF_IN_LIBM): New macro.
45769         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
45770         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
45771         * modules/isnanf: New file.
45772         * modules/isnanf-tests: New file.
45773         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
45774         files.
45775         * tests/test-isnanf-nolibm.c: factored most of its contents into
45776         new file tests/test-isnanf.h.
45777         * tests/test-isnanf.h: New file.
45778         * tests/test-isnanf.c: New file.
45779         * MODULES.html.sh: Mention new module.
45780         * doc/glibc-functions/isnanf.texi: Mention new module.
45781
45782 2008-07-10  Ben Pfaff  <blp@gnu.org>
45783
45784         Add isnand module.
45785         * lib/isnand.h: New file.
45786         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
45787         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
45788         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
45789         functionality also.
45790         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
45791         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
45792         (gl_HAVE_ISNAND_IN_LIBM): New macro.
45793         * modules/isnand: New file.
45794         * modules/isnand-tests: New file.
45795         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45796         files.
45797         * tests/test-isnand-nolibm.c: factored most of its contents into
45798         new file tests/test-isnand.h.
45799         * tests/test-isnand.h: New file.
45800         * tests/test-isnand.c: New file.
45801         * MODULES.html.sh: Mention new module.
45802
45803 2008-07-10  Ben Pfaff  <blp@gnu.org>
45804
45805         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45806         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45807         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45808         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45809         * modules/isnanf-nolibm: Update references to renamed files.
45810         * modules/isnand-nolibm: Likewise.
45811         * modules/isnanf-nolibm-tests: Likewise.
45812         * modules/isnand-nolibm-tests: Likewise.
45813         * lib/frexp.c: Likewise.
45814         * lib/isfinite.c: Likewise.
45815         * lib/signbitd.c: Likewise.
45816         * lib/signbitf.c: Likewise.
45817         * lib/vasnprintf.c: Likewise.
45818         * tests/test-ceilf1.c: Likewise.
45819         * tests/test-ceilf2.c: Likewise.
45820         * tests/test-floorf1.c: Likewise.
45821         * tests/test-floorf2.c: Likewise.
45822         * tests/test-frexp.c: Likewise.
45823         * tests/test-round1.c: Likewise.
45824         * tests/test-round2.c: Likewise.
45825         * tests/test-roundf1.c: Likewise.
45826         * tests/test-strtod.c: Likewise.
45827         * tests/test-trunc1.c: Likewise.
45828         * tests/test-trunc2.c: Likewise.
45829         * tests/test-truncf1.c: Likewise.
45830         * tests/test-truncf2.c: Likewise.
45831         * NEWS: Mention the renamed header files.
45832
45833 2008-07-11  Jim Meyering  <meyering@redhat.com>
45834
45835         vc-list-files: make the last-resort awk code more portable
45836         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
45837         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
45838         does not support it.
45839
45840 2008-07-10  Eric Blake  <ebb9@byu.net>
45841
45842         Work with tar's bootstrap.
45843         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
45844         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
45845         an m4 comment.
45846
45847 2008-07-09  Jim Meyering  <meyering@redhat.com>
45848
45849         posix-shell.m4: fix typo that made this test malfunction
45850         * m4/posix-shell.m4: Remove capitalization in variable name.
45851
45852 2008-07-08  Bruno Haible  <bruno@clisp.org>
45853
45854         * m4/onceonly.m4: Update comments.
45855         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45856
45857 2008-07-04  Jim Meyering  <meyering@redhat.com>
45858
45859         * users.txt: Add vc-dwim.
45860         (bison, coreutils): Use the gitweb URL.
45861
45862 2008-07-03  Jim Meyering  <meyering@redhat.com>
45863
45864         * users.txt: Add libffcall.  From Sam Steingold.
45865
45866 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
45867
45868         getdate.y: do not ignore TZ with relative day, month or year offset
45869         * lib/getdate.y (get_date): Move the tz-handling block to follow the
45870         relative-date-handling, since otherwise, the latter would clobber the
45871         sole output (an updated Start value) of the tz-handling block.
45872         * tests/test-getdate.c: Tests for the fix
45873
45874 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45875
45876         Recognize 'foo_LIBRARIES += libgnu.a'.
45877         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
45878         makefile snippet has already specified an installation location,
45879         also using '+='.
45880
45881 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
45882
45883         getdate.y: factor out common actions
45884         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45885         Use them in place of open-coded actions.
45886
45887 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45888
45889         Add self-test for getdate module.
45890         * modules/getdate-tests: New file.
45891         * tests/test-getdate.c: New file.
45892
45893 2008-06-29  Bruno Haible  <bruno@clisp.org>
45894
45895         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45896         .gitignore.
45897         Reported by Sylvain Beucler <beuc@beuc.net>.
45898
45899 2008-06-29  Bruno Haible  <bruno@clisp.org>
45900
45901         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45902         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45903
45904 2008-06-29  Bruno Haible  <bruno@clisp.org>
45905
45906         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45907         EXTRA_DIST.
45908         Reported by Sylvain Beucler <beuc@beuc.net>.
45909
45910 2008-06-26  Jim Meyering  <meyering@redhat.com>
45911
45912         make several modules depend on the "open" module
45913         This provides slightly increased consistency when opening-for-write
45914         the name of a non-directory spelled with a trailing slash.
45915         * modules/chdir-safer: Likewise.
45916         * modules/chown: Likewise.
45917         * modules/clean-temp: Likewise.
45918         * modules/copy-file: Likewise.
45919         * modules/fchdir: Likewise.
45920         * modules/fcntl-safer: Likewise.
45921         * modules/pipe: Likewise.
45922         * modules/utime: Likewise.
45923         Prompted by Eric Blake and Bruno Haible.
45924
45925 2008-06-24  Andreas Schwab  <schwab@suse.de>
45926
45927         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45928         literals can be used as initializers for global variables.
45929
45930 2008-06-23  Eric Blake  <ebb9@byu.net>
45931
45932         Make gnulib-cache.m4 easier to diff.
45933         * gnulib-tool (func_import): Allow newlines when reading cached
45934         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45935
45936 2008-06-23  Bruno Haible  <bruno@clisp.org>
45937
45938         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45939         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45940         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45941         m4/signalblocking.m4.
45942         (gl_PREREQ_SIGACTION): Don't invoke it.
45943         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45944         gl_PREREQ_SIG_HANDLER_H.
45945         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45946         Don't check for sigaction here.
45947
45948 2008-06-23  Bruno Haible  <bruno@clisp.org>
45949
45950         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45951         (install_handlers): Don't set the SA_RESETHAND flag.
45952
45953 2008-06-23  Bruno Haible  <bruno@clisp.org>
45954
45955         * m4/sigaction.m4: Comment fixes.
45956         * lib/signal.in.h: Likewise.
45957
45958 2008-06-23  Eric Blake  <ebb9@byu.net>
45959
45960         Fix typo.
45961         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45962
45963         Avoid SA_ namespace.
45964         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45965         Reported by Ralf Wildenhues.
45966
45967         Avoid test failure due to SA_RESTORER.
45968         * tests/test-sigaction.c (SA_MASK): New macro.
45969         (main): Avoid failing due to extension flags being set.
45970         Reported by Jim Meyering.
45971
45972         Revert use of sig-handler.h in sigprocmask.c.
45973         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45974         it requires the existence of struct sigaction.
45975         * lib/sigprocmask.c (handler_t): Restore typedef.
45976         (rpl_signal, old_handlers): Use local type.
45977
45978 2008-06-22  Bruno Haible  <bruno@clisp.org>
45979
45980         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45981         conditionally.
45982         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45983
45984 2008-06-22  Bruno Haible  <bruno@clisp.org>
45985
45986         * doc/posix-functions/siginterrupt.texi: Move note.
45987
45988         * lib/signal.in.h (SA_RESTART): New macro.
45989         * lib/sigaction.c: Update comment.
45990
45991         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45992
45993         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45994         (gl_PREREQ_SIGPROCMASK): Invoke it.
45995         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45996
45997         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45998
45999         * lib/sigprocmask.c: Update a comment.
46000
46001 2008-06-21  Eric Blake  <ebb9@byu.net>
46002
46003         Use sigaction module rather than signal().
46004         * modules/c-stack (Depends-on): Add sigaction.
46005         * modules/fatal-signal (Depends-on): Likewise.
46006         * modules/nanosleep (Depends-on): Likewise.
46007         * modules/sigprocmask (Files): Add sig-handler.h.
46008         * modules/sigaction (Files): Likewise.
46009         * lib/sig-handler.h (get_handler): New file, suggested by Paul
46010         Eggert.
46011         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
46012         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
46013         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
46014         (init_fatal_signals): Likewise.
46015         * lib/nanosleep.c (rpl_nanosleep): Likewise.
46016         (siginterrupt): Delete fallback.
46017         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
46018         instead.
46019         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
46020         siginterrupt.
46021
46022         New module sigaction, for mingw.
46023         * modules/sigaction: New module...
46024         * modules/sigaction-tests: ...and its test.
46025         * m4/sigaction.m4: New file.
46026         * lib/sigaction.c: Likewise.
46027         * tests/test-sigaction.c: Likewise.
46028         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
46029         * modules/signal (Makefile.am): Likewise.
46030         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
46031         needed.
46032         * doc/posix-headers/signal.texi (signal.h): Mention provided
46033         types.
46034         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
46035         that sigaction is preferable.
46036         * doc/posix-functions/sigaction.texi (sigaction): Mention new
46037         module.
46038         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46039         sigaction.
46040
46041         Improve robustness of sigprocmask by overriding signal.
46042         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
46043         is in use.
46044         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
46045         (SIGKILL, SIGSTOP): Provide fallbacks.
46046         (rpl_signal): Implement.
46047         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
46048         signal can be called inside handlers.
46049
46050         Fix nanosleep module on mingw.
46051         * modules/nanosleep (Depends-on): Add sys_select.
46052         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
46053
46054         Fix licensing of sigprocmask.
46055         * modules/raise (License): Relicense as LGPL.
46056
46057 2008-06-21  Bruno Haible  <bruno@clisp.org>
46058
46059         * lib/propername.c (proper_name_utf8): Don't use the transliterated
46060         result if it contains question marks.
46061         Reported by Michael Geng <linux@michaelgeng.de>.
46062
46063 2008-06-19  Bruno Haible  <bruno@clisp.org>
46064
46065         Fix CVS-ism.
46066         * doc/gnulib.texi: Include updated-stamp.texi.
46067         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
46068         (updated-stamp.texi): New rule.
46069         (gnulib.info): Depend on it.
46070         * doc/.gitignore: Add updated-stamp.texi.
46071         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
46072
46073 2008-06-19  Bruno Haible  <bruno@clisp.org>
46074
46075         * doc/Makefile (gnulib.info): Update and simplify dependencies.
46076         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46077
46078 2008-06-19  Eric Blake  <ebb9@byu.net>
46079
46080         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
46081         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
46082         Reported by Stepan Kasal.
46083
46084 2008-06-18  Bruno Haible  <bruno@clisp.org>
46085
46086         * lib/fatal-signal.c (init_fatal_signals): Add comment.
46087         Reported by Eric Blake.
46088
46089 2008-06-18  Eric Blake  <ebb9@byu.net>
46090
46091         Work around cygwin 1.5.25 strsignal bug.
46092         * tests/test-strsignal.c: Allow for const char *.
46093         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
46094
46095 2008-06-18  Simon Josefsson  <simon@josefsson.org>
46096
46097         * users.txt: Update URL to article and add author/date
46098         information.
46099
46100 2008-06-17  Bruno Haible  <bruno@clisp.org>
46101
46102         New macro gl_DISABLE_THREADS.
46103         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
46104         if the user did not pass --enable-threads or --disable-threads option.
46105         (gl_DISABLE_THREADS): New macro.
46106         Reported by Eric Blake <ebb9@byu.net>.
46107
46108 2008-06-17  Bruno Haible  <bruno@clisp.org>
46109
46110         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
46111         when the macro ignores it.
46112         Based on a patch by Eric Blake <ebb9@byu.net>.
46113
46114 2008-06-17  Bruno Haible  <bruno@clisp.org>
46115
46116         * modules/tls (License): Change to LGPLv2+.
46117         Reported by Eric Blake.
46118
46119 2008-06-17  Eric Blake  <ebb9@byu.net>
46120
46121         Simplify c-stack prerequisites.
46122         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
46123         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
46124         no longer requires <ucontext.h> to exist.  Optimize setrlimit
46125         check.
46126         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
46127         <sys/resource.h>.
46128
46129         Move c-stack test into testsuite.
46130         * modules/c-stack-tests: New file.
46131         * lib/c-stack.c [DEBUG]: Move test program...
46132         * tests/test-c-stack.c: ...into this new file.  Skip rather than
46133         fail test if sigaltstack is lacking.
46134         * tests/test-c-stack.sh: New driver file.
46135
46136 2008-06-16  Eric Blake  <ebb9@byu.net>
46137
46138         Use raise module consistently.
46139         * modules/fatal-signal (Depends-on): Add raise.
46140         * modules/sigprocmask (Depends-on): Likewise.
46141         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
46142         * lib/sigprocmask.c (sigprocmask): Likewise.
46143         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
46144         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
46145
46146         Fix compliance bug in sigpending.
46147         * lib/sigprocmask.c (sigpending): Return pending array via
46148         parameter, not return value.
46149
46150 2008-06-14  Eric Blake  <ebb9@byu.net>
46151
46152         Improve obstack-printf test code.
46153         * tests/test-obstack-printf.c (test_function): Fix comment, and
46154         simplify usage of obstack_* in macros.  Add a test for coverage.
46155         Reported by Bruno Haible.
46156
46157 2008-06-14  Bruno Haible  <bruno@clisp.org>
46158
46159         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
46160         array size as a constant, not as a const variable.
46161         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
46162         AC_USE_SYSTEM_EXTENSIONS.
46163         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46164         Test whether the obstack_printf function actually exists.
46165         * modules/obstack-printf (Depends-on): Add extensions.
46166         (Include): Remove obstack.h.
46167         * modules/obstack-printf-posix (Depends-on): Add extensions.
46168         (Include): Remove obstack.h.
46169
46170 2008-06-13  Eric Blake  <ebb9@byu.net>
46171
46172         Add obstack-printf and obstack-printf-posix modules.
46173         * modules/obstack-printf: New file.
46174         * modules/obstack-printf-posix: Likewise.
46175         * MODULES.html.sh (Misc): Mention them.
46176         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46177         Likewise.
46178         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46179         Likewise.
46180         * modules/stdio (Makefile.am): Accomodate new modules.
46181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46182         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
46183         Declare.
46184         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
46185         functions.
46186         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
46187         (gl_REPLACE_OBSTACK_PRINTF): New macros
46188         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
46189         * tests/test-obstack-printf.c: New file.
46190         * modules/obstack-printf-tests: Likewise.
46191         * modules/obstack-printf-posix-tests: Likewise.
46192
46193 2008-06-11  Bruno Haible  <bruno@clisp.org>
46194
46195         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
46196         * lib/open.c: Include errno.h.
46197         (open): Fail when attempting to write to a file that has a trailing
46198         slash.
46199         * tests/test-open.c (main): Test against trailing slash bug.
46200         * doc/posix-functions/open.texi: Mention the trailing slash bug.
46201
46202 2008-06-10  Bruno Haible  <bruno@clisp.org>
46203
46204         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
46205         for $? to work inside the trap command, with various /bin/sh-s.
46206         * tests/test-vc-list-files-cvs.sh: Likewise.
46207
46208 2008-06-10  Bruno Haible  <bruno@clisp.org>
46209
46210         * lib/acl-internal.h: Don't include gettext.h here.
46211         * lib/set-mode-acl.c: Include gettext.h here.
46212         * lib/copy-acl.c: Likewise.
46213
46214 2008-06-10  Bruno Haible  <bruno@clisp.org>
46215
46216         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
46217         * lib/wait-process.c (wait_subprocess): Likewise.
46218         * lib/execute.h (execute): Add termsigp argument.
46219         * lib/execute.c (execute): Likewise.
46220         * lib/csharpcomp.c (compile_csharp_using_pnet,
46221         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
46222         * lib/csharpexec.c (execute_csharp_using_pnet,
46223         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
46224         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
46225         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
46226         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
46227         is_jikes_present): Update.
46228         * lib/javaexec.c (execute_java_class): Update.
46229         * lib/javaversion.c (execute_and_read_line): Update.
46230         * NEWS: Document the changes.
46231         Reported by Eric Blake.
46232
46233 2008-06-10  Eric Blake  <ebb9@byu.net>
46234
46235         Add missing include.
46236         * tests/test-strstr.c (includes): Add <signal.h>.
46237         * tests/test-strcasestr.c (includes): Likewise.
46238         * tests/test-memmem.c (includes): Likewise.
46239
46240 2008-06-10  Bruno Haible  <bruno@clisp.org>
46241
46242         * lib/wait-process.c (wait_subprocess): Add an assertion.
46243
46244 2008-06-10  Bruno Haible  <bruno@clisp.org>
46245
46246         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
46247
46248 2008-06-10  Bruno Haible  <bruno@clisp.org>
46249
46250         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
46251         using alarm().
46252         * tests/test-strcasestr.c (main): Likewise.
46253         * tests/test-strstr.c (main): Likewise.
46254
46255 2008-06-09  Bruno Haible  <bruno@clisp.org>
46256
46257         Work around the Solaris 10 ACE ACLs ABI change.
46258         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
46259         declare if ACL_NO_TRIVIAL is present.
46260         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
46261         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
46262         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
46263         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
46264         define if ACL_NO_TRIVIAL is present.
46265         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
46266         and use the current ABI.
46267         (file_has_acl): Use same #if condition as elsewhere.
46268         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
46269         in use, and use the current ABI.
46270         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
46271         Reported by Jim Meyering.
46272
46273 2008-06-09  Eric Blake  <ebb9@byu.net>
46274
46275         Work around environments that (stupidly) ignore SIGALRM.
46276         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
46277         before using alarm().
46278         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46279         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46280         Reported by Ian Beckwith <ianb@erislabs.net>.
46281
46282         Produce autobuild blurb earlier in log.
46283         * modules/autobuild (configure.ac-early): Move AB_INIT here.
46284
46285 2008-06-09  Jim Meyering  <meyering@redhat.com>
46286         and OndÅ™ej Vašík  <ovasik@redhat.com>
46287
46288         utimens.c: correct kernel bug work-around
46289         OndÅ™ej Vašík found that the invalid return value of 280 indicates
46290         failure, not success, and the kernel bug we're trying to work
46291         around affects not just the utimensat call, but also the fallback
46292         futimens call.
46293         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
46294         not success.
46295         [HAVE_FUTIMENS]: Use the same work-around, here.
46296
46297 2008-06-09  Jim Meyering  <meyering@redhat.com>
46298
46299         add more guards around definition of ACE_-related code
46300         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
46301         ALLOW and ACE_OWNER are also defined.
46302
46303 2008-06-08  Bruno Haible  <bruno@clisp.org>
46304
46305         * lib/acl-internal.h: Add me as co-author.
46306         * lib/file-has-acl.c: Likewise.
46307         * lib/set-mode-acl.c: Likewise.
46308         * lib/copy-acl.c: Likewise.
46309
46310 2008-06-08  Bruno Haible  <bruno@clisp.org>
46311
46312         Add support for AIX ACLs.
46313         * lib/acl-internal.h (acl_nontrivial): New declaration.
46314         * lib/file-has-acl.c (acl_nontrivial): New function.
46315         (file_has_acl): Add implementation using AIX 4 ACL API.
46316         * lib/set-mode-acl.c (qset_acl): Likewise.
46317         * lib/copy-acl.c (qcopy_acl): Likewise.
46318
46319 2008-06-08  Bruno Haible  <bruno@clisp.org>
46320
46321         Add support for HP-UX ACLs.
46322         * lib/acl-internal.h (acl_nontrivial): New declaration.
46323         * lib/file-has-acl.c (acl_nontrivial): New function.
46324         (file_has_acl): Add implementation using HP-UX 11 ACL API.
46325         * lib/set-mode-acl.c (qset_acl): Likewise.
46326         * lib/copy-acl.c (qcopy_acl): Likewise.
46327
46328 2008-06-08  Bruno Haible  <bruno@clisp.org>
46329
46330         Add support for Cygwin ACLs.
46331         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
46332         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
46333         the chmod_or_fchmod call.
46334         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
46335
46336 2008-06-08  Bruno Haible  <bruno@clisp.org>
46337
46338         Fix bug with setuid modes in Solaris 10+ code.
46339         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
46340         succeeded, when the mode contains some special bits.
46341
46342 2008-06-08  Bruno Haible  <bruno@clisp.org>
46343
46344         Add support for Solaris 7..10 ACLs.
46345         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
46346         declarations.
46347         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
46348         functions.
46349         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
46350         * lib/set-mode-acl.c (qset_acl): Likewise.
46351         * lib/copy-acl.c (qcopy_acl): Likewise.
46352
46353 2008-06-08  Bruno Haible  <bruno@clisp.org>
46354
46355         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
46356         declaration.
46357         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
46358         (acl_access_nontrivial): Remove MacOS X case.
46359         (file_has_acl): Use acl_extended_nontrivial.
46360         * lib/copy-acl.c (qcopy_acl): Likewise.
46361
46362 2008-06-08  Bruno Haible  <bruno@clisp.org>
46363
46364         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
46365
46366 2008-06-08  Jim Meyering  <meyering@redhat.com>
46367
46368         * modules/acl (Maintainer): Add Bruno Haible.
46369
46370 2008-06-07  Bruno Haible  <bruno@clisp.org>
46371
46372         Improve support for Tru64 ACLs.
46373         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
46374         ACL on OSF/1.
46375
46376 2008-06-07  Bruno Haible  <bruno@clisp.org>
46377
46378         Add support for MacOS X ACLs.
46379         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
46380         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
46381         * lib/set-mode-acl.c (qset_acl): Likewise.
46382         * lib/copy-acl.c (qcopy_acl): Likewise.
46383
46384 2008-06-07  Bruno Haible  <bruno@clisp.org>
46385
46386         Fix memory leak introduced on 2008-05-22.
46387         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
46388         use.
46389
46390 2008-06-07  Bruno Haible  <bruno@clisp.org>
46391
46392         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
46393         to construct an empty ACL.
46394
46395 2008-06-07  Bruno Haible  <bruno@clisp.org>
46396
46397         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
46398         precisely.
46399         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
46400
46401 2008-06-07  Bruno Haible  <bruno@clisp.org>
46402
46403         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
46404         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
46405
46406 2008-06-07  Bruno Haible  <bruno@clisp.org>
46407
46408         * doc/posix-functions/_setjmp.texi: Explain the use of this function
46409         regardless of POSIX.
46410         * doc/posix-functions/_longjmp.texi: Likewise.
46411         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
46412         SystemV platform in this case.
46413
46414 2008-06-06  Eric Blake  <ebb9@byu.net>
46415
46416         Document abort() bugs.
46417         * doc/posix-functions/abort.texi (abort): Mention anomalies.
46418
46419         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
46420         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
46421         sigsetjmp.
46422         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
46423         siglongjmp, but only as a macro.
46424         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
46425         is obsolete.
46426         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
46427
46428         Tweak documentation to cover cygwin argz bugs.
46429         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
46430         argz bug fix; no code change needed since no cygwin releases
46431         occurred between the last fix and the bug being tested.
46432         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
46433         module and recently fixed cygwin bugs.
46434         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
46435         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
46436         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
46437         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
46438         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
46439         Likewise.
46440         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
46441         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
46442         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
46443         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
46444         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
46445         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
46446         Likewise.
46447
46448         Avoid gcc warning on cygwin.
46449         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
46450         !ACL_NO_TRIVIAL]: Avoid unused variable.
46451
46452 2008-06-05  Eric Blake  <ebb9@byu.net>
46453
46454         Be tolerant of UNKNOWN version in gnulib-tool test dir.
46455         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
46456         git-version-gen fails to come up with a version.
46457         Reported by Simon Josefsson.
46458
46459 2008-06-05  Jim Meyering  <meyering@redhat.com>
46460             Paul Eggert  <eggert@cs.ucla.edu>
46461
46462         utimens.c: work around a probable Linux kernel bug
46463         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
46464         appears to be a kernel bug that causes utimensat to return 280
46465         instead of 0, indicating success.
46466
46467 2008-06-04  Bruno Haible  <bruno@clisp.org>
46468
46469         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
46470         2008-06-01 commit.
46471
46472 2008-06-04  Bruno Haible  <bruno@clisp.org>
46473
46474         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
46475         * lib/file-has-acl.c (acl_access_nontrivial): New function.
46476         (file_has_acl): Use it. Save errno afterwards.
46477         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
46478
46479 2008-06-03  Bruno Haible  <bruno@clisp.org>
46480
46481         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
46482         draft code. Simplify #ifs.
46483         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
46484         Put Solaris code after POSIX-draft code. Fix comments regarding
46485         Solaris 10, HP-UX. Mention Cygwin.
46486         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
46487
46488 2008-06-03  Eric Blake  <ebb9@byu.net>
46489
46490         Provide fallback for older kernels.
46491         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
46492         Provide runtime fallback if kernel lacks support.
46493         Reported by Mike Frysinger.
46494
46495 2008-06-02  Bruno Haible  <bruno@clisp.org>
46496
46497         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
46498         it exists.
46499
46500 2008-06-02  Bruno Haible  <bruno@clisp.org>
46501
46502         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
46503         * lib/copy-acl.c (qcopy_acl): Update comment.
46504
46505 2008-06-02  Bruno Haible  <bruno@clisp.org>
46506
46507         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
46508         like ACL APIs.
46509
46510 2008-06-02  Bruno Haible  <bruno@clisp.org>
46511
46512         * tests/test-file-has-acl.sh: Use different code for Cygwin.
46513         * tests/test-set-mode-acl.sh: Likewise.
46514         * tests/test-copy-acl.sh: Likewise.
46515         * tests/test-copy-file.sh: Likewise.
46516
46517 2008-06-02  Bruno Haible  <bruno@clisp.org>
46518
46519         * tests/test-file-has-acl.sh: Remove unused code.
46520
46521 2008-06-01  Bruno Haible  <bruno@clisp.org>
46522
46523         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
46524         (copy_acl): Just a wrapper around qcopy_acl that emits the error
46525         messages.
46526         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
46527
46528 2008-06-01  Bruno Haible  <bruno@clisp.org>
46529
46530         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
46531         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
46532         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
46533         APIs.
46534         * modules/acl-tests (configure.ac): Remove tests now contained in
46535         m4/acl.m4.
46536
46537 2008-06-02  Jim Meyering  <meyering@redhat.com>
46538
46539         announce-gen: use a better key-server host name
46540         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
46541         it may be more consistently reliable.  Suggested by Werner Koch
46542         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
46543
46544 2008-06-01  Bruno Haible  <bruno@clisp.org>
46545
46546         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
46547         Reported by Voroskoi Andras <voroskoi@gmail.com>.
46548
46549 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
46550
46551         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
46552
46553 2008-06-01  Bruno Haible  <bruno@clisp.org>
46554
46555         New ACL tests.
46556         * tests/test-file-has-acl.sh: New file.
46557         * tests/test-file-has-acl.c: New file.
46558         * tests/test-set-mode-acl.sh: New file.
46559         * tests/test-set-mode-acl.c: New file.
46560         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
46561         * tests/test-copy-acl.c: New file.
46562         * modules/acl-tests: New file, based on modules/copy-file-tests.
46563         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
46564         (Depends-on): Add acl-tests.
46565         (configure.ac): Remove checks.
46566         (Makefile.am): Don't create test-sameacls program here any more.
46567
46568 2008-06-01  Bruno Haible  <bruno@clisp.org>
46569
46570         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
46571         * tests/test-sameacls.c: Include progname.h.
46572         (main): Invoke set_program_name. Portability fixes for MacOS X,
46573         Solaris, HP-UX.
46574
46575 2008-06-01  Bruno Haible  <bruno@clisp.org>
46576
46577         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
46578         function.
46579         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
46580
46581 2008-06-01  Bruno Haible  <bruno@clisp.org>
46582
46583         * modules/rpmatch (Depends-on): Add strdup.
46584
46585 2008-06-01  Bruno Haible  <bruno@clisp.org>
46586
46587         * lib/pipe.c: Include unistd-safer.h.
46588         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
46589         * modules/pipe (Depends-on): Add unistd-safer.
46590
46591 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46592
46593         * modules/autobuild (configure.ac): Call AB_INIT.
46594
46595 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46596
46597         * tests/test-getaddrinfo.c: Don't print debug messages by default.
46598         Suggested by Bruno Haible <bruno@clisp.org>.
46599
46600 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46601
46602         * tests/test-base64.c: Cast size_t to unsigned long when invoking
46603         printf.  Use %lu instead of %d.  Reported by Bruno Haible
46604         <bruno@clisp.org>.
46605
46606 2008-05-29  Eric Blake  <ebb9@byu.net>
46607
46608         Prefer new POSIX 200x interfaces over futimesat.
46609         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
46610         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
46611         when available.
46612         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
46613
46614 2008-05-28  Bruno Haible  <bruno@clisp.org>
46615
46616         * modules/stpcpy (License): Change to LGPLv2+.
46617         Requested by David Lutterkort <dlutter@redhat.com>.
46618
46619 2008-05-27  Bruno Haible  <bruno@clisp.org>
46620
46621         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
46622         current mingw.
46623         Reported by Jose E. Marchesi <jemarch@gnu.org>.
46624
46625 2008-05-27  Bruno Haible  <bruno@clisp.org>
46626
46627         * modules/iconv_open (Link): New section, from module 'iconv'.
46628         * modules/striconv (Link): Likewise.
46629         * modules/striconveh (Link): Likewise.
46630         * modules/xstriconv (Link): Likewise.
46631         * modules/unicodeio (Link): Likewise.
46632         * modules/propername (Link): Likewise.
46633         Reported by Jim Meyering.
46634
46635 2008-05-26  Jim Meyering  <meyering@redhat.com>
46636
46637         sha256: do not artificially restrict buffer length to be < 2^32
46638         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
46639         uint32_t to size_t.
46640         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
46641         to match.
46642
46643         avoid unaligned access errors, e.g., on sparc
46644         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
46645         direct access through a possibly-unaligned uint64* pointer.
46646         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
46647         direct access through a possibly-unaligned uint32* pointer.
46648         Prompted by this patch from Tom "spot" Callaway:
46649         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
46650
46651         sha512.c: fix typo in comment
46652         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
46653
46654 2008-05-25  Bruno Haible  <bruno@clisp.org>
46655
46656         * lib/set-mode-acl.c: Renamed from lib/acl.c.
46657         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
46658         (Makefile.am): Update lib_SOURCES.
46659
46660 2008-05-25  Bruno Haible  <bruno@clisp.org>
46661
46662         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
46663
46664 2008-05-25  Jim Meyering  <meyering@redhat.com>
46665
46666         useless-if-before-free: freed expr may have white-space differences
46667         * build-aux/useless-if-before-free: Recognize cases in which the
46668         freed expression differs from the tested one in embedded white
46669         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
46670         $1 was used, so we can't make any regexp shy.  Improved tests now
46671         detect this.
46672
46673         useless-if-before-free: accept white space in the expression.
46674         * build-aux/useless-if-before-free: For now, any white space
46675         in the expression must be identical in the free argument.
46676
46677         useless-if-before-free: efficiency tweak
46678         * build-aux/useless-if-before-free: Make the expression-matching
46679         regexp "shy".
46680         Make the *outer* regexp shy, not the expr-matching one.
46681
46682         update code-in-comment to accept cast of free arg
46683         * build-aux/useless-if-before-free: Update regexp.
46684
46685 2008-05-25  Bruno Haible  <bruno@clisp.org>
46686
46687         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
46688         * modules/copy-file-tests (Files, Makefile.am): Update.
46689         * tests/test-copy-file.c (func_test_copy): Update.
46690
46691 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
46692
46693         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
46694
46695 2008-05-23  Bruno Haible  <bruno@clisp.org>
46696
46697         Improve support for ACLs on OSF/1.
46698         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
46699         Remove fallback for unknown flavors of ACLs.
46700
46701 2008-05-22  Bruno Haible  <bruno@clisp.org>
46702
46703         Add support for ACLs on OSF/1.
46704         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
46705         replacements.
46706         (acl_free_text): New macro fallback.
46707         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
46708         acl_free.
46709         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
46710         acl_free_text function. Require AC_C_INLINE.
46711
46712 2008-05-22  Bruno Haible  <bruno@clisp.org>
46713
46714         Make copy_acl work on MacOS X 10.5.
46715         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
46716         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
46717         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
46718         If MODE_INSIDE_ACL, don't assume that every system has the same text
46719         representation for ACLs as FreeBSD.
46720         * lib/copy-acl.c (copy_acl): Add support for platforms with
46721         !MODE_INSIDE_ACL.
46722         * lib/file-has-acl.c (file_has_acl): Likewise.
46723         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
46724         FreeBSD, MacOS X, or IRIX, respectively.
46725
46726 2008-05-22  Bruno Haible  <bruno@clisp.org>
46727
46728         * lib/acl.h: Don't include <sys/acl.h>.
46729         (GETACLCNT): Move fallback to lib/acl-internal.h.
46730         * lib/acl-internal.h: Include <sys/acl.h> here.
46731         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
46732
46733 2008-05-22  Bruno Haible  <bruno@clisp.org>
46734
46735         Split off copy_acl function to separate file.
46736         * lib/copy-acl.c: New file, extracted from lib/acl.c.
46737         * lib/acl.c (copy_acl): Moved function to separate file.
46738         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
46739         * modules/acl (Files): Add lib/copy-acl.c.
46740         (Makefiles.am): Augment lib_SOURCES.
46741
46742 2008-05-22  Bruno Haible  <bruno@clisp.org>
46743
46744         * modules/copy-file-tests: New file.
46745         * tests/test-copy-file.sh: New file.
46746         * tests/test-copy-file.c: New file.
46747         * tests/test-copy-file-sameacls.c: New file.
46748
46749 2008-05-22  Eric Blake  <ebb9@byu.net>
46750
46751         Avoid gcc warning.
46752         * tests/test-memcmp.c (main): Pass NULL indirectly.
46753
46754 2008-05-21  Bruno Haible  <bruno@clisp.org>
46755
46756         Add reference doc about ACLs.
46757         * doc/acl-resources.txt: New file.
46758         * doc/acl-cygwin.txt: New file.
46759
46760 2008-05-21  Bruno Haible  <bruno@clisp.org>
46761
46762         Avoid one more warning from gcc.
46763         * lib/vasnprintf.c (IF_LINT): Update comments.
46764         (VASNPRINTF): Use it also for the 'prefix' array initializer.
46765
46766 2008-05-21  Jim Meyering  <meyering@redhat.com>
46767
46768         avoid a warning from gcc
46769         * lib/vasnprintf.c (IF_LINT): Define.
46770         (scale10_round_decimal_long_double):
46771         Use it to avoid a "may be used uninitialized" warning.
46772         (scale10_round_decimal_double): Likewise.
46773
46774 2008-05-21  Simon Josefsson  <simon@josefsson.org>
46775
46776         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
46777         declared.
46778
46779 2008-05-20  Bruno Haible  <bruno@clisp.org>
46780
46781         * tests/test-memcmp.c (main): Test also the sign of the result. Test
46782         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
46783
46784 2008-05-20  Simon Josefsson  <simon@josefsson.org>
46785
46786         * modules/memcmp-tests: New file.
46787         * tests/test-memcmp.c: New file.
46788
46789 2008-05-19  Bruno Haible  <bruno@clisp.org>
46790
46791         * modules/propername (Notice, configure.ac): Put quoted "..." into
46792         --keyword option.
46793         * lib/propername.h: Update comments accordingly.
46794         Reported by Eric Blake.
46795
46796 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46797
46798         * modules/getpass-gnu (Depends-on): Add fseeko.
46799
46800 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46801
46802         * modules/base64-tests: New file.
46803
46804 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46805
46806         * lib/base64.c (base64_decode_ctx): If a decode context structure
46807         was passed in use it to ignore newlines.  If a context structure
46808         was _not_ passed in, continue to treat newlines as garbage (this
46809         is the historical behavior).  Formerly base64_decode.
46810         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46811         takes a decode context structure.
46812         * lib/base64.h (base64_decode): Macro for four-argument calls.
46813         (base64_decode_alloc): Likewise.
46814         * lib/base64.c (base64_decode_ctx): If a decode context structure
46815         was passed in use it to ignore newlines.  If a context structure
46816         was _not_ passed in, continue to treat newlines as garbage (this
46817         is the historical behavior).  Formerly base64_decode.
46818         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46819         takes a decode context structure.
46820         * lib/base64.h (base64_decode): Macro for four-argument calls.
46821         (base64_decode_alloc): Likewise.
46822
46823 2008-05-19  Jim Meyering  <meyering@redhat.com>
46824
46825         avoid a warning from gcc
46826         * lib/trim.c (IF_LINT): Define.
46827         (trim2): Use it to avoid a "may be used uninitialized" warning.
46828
46829         Fix doc typo.
46830         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
46831
46832 2008-05-19  Bruno Haible  <bruno@clisp.org>
46833
46834         * doc/glibc-functions/getpass.texi: Document limits of other
46835         implementations.
46836
46837 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46838             Bruno Haible <bruno@clisp.org>
46839
46840         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
46841
46842 2008-05-18  Bruno Haible  <bruno@clisp.org>
46843
46844         * modules/propername: New file, from GNU gettext.
46845         * lib/propername.h: New file, from GNU gettext.
46846         * lib/propername.c: New file, from GNU gettext.
46847         * MODULES.html.sh (Internationalization functions): Add propername.
46848
46849 2008-05-16  Jim Meyering  <meyering@redhat.com>
46850             Bruno Haible  <bruno@clisp.org>
46851
46852         Avoid some warnings from "gcc -Wshadow".
46853         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
46854
46855 2008-05-15  Eric Blake  <ebb9@byu.net>
46856
46857         Extend previous patch to cygwin 1.7.0.
46858         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
46859         fast implementation in cygwin >= 1.7.0.
46860         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46862
46863 2008-05-15  Bruno Haible  <bruno@clisp.org>
46864
46865         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
46866         implementation in glibc >= 2.9.
46867         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46868         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46869
46870 2008-05-15  Bruno Haible  <bruno@clisp.org>
46871
46872         * MODULES.html.sh (Internationalization functions): Remove linebreak.
46873         (Unicode string functions): Add unilbrk/*.
46874         Reported by Karl Berry.
46875
46876 2008-05-15  Eric Blake  <ebb9@byu.net>
46877
46878         Fix violation of <stdbool.h> replacement in regex.
46879         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
46880         * lib/regexec.c (re_search_internal): Likewise.
46881         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
46882
46883 2008-05-15  Jim Meyering  <meyering@redhat.com>
46884
46885         avoid distracting test output when git or cvs is not found
46886         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46887         * tests/test-vc-list-files-git.sh: Likewise.
46888
46889 2008-05-15  Eric Blake  <ebb9@byu.net>
46890
46891         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46892         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46893         glibc version.
46894         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46895         * doc/posix-functions/strstr.texi (strstr): Likewise.
46896         * lib/str-two-way.h (MAX): Sychronize with glibc.
46897
46898 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46899
46900         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46901         opr.ctx_type.
46902         (calc_first): Initialize constraint field.
46903         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46904         Fix grammar.
46905         (duplicate_node): Merge constraint field for all node types.
46906         (calc_eclosure_iter): Look at constraint field for all node types.
46907         * lib/regex_internal.c (create_cd_newstate): Don't look at
46908         opr.ctx_type.
46909
46910 2008-05-14  Bruno Haible  <bruno@clisp.org>
46911
46912         Help GCC to do better code generation.
46913         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46914         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46915         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46916         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46917         Declare with attribute 'malloc' if supported.
46918
46919 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46920
46921         use "echo STR|wc -c" rather than unportable "expr length STR"
46922         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46923         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46924
46925 2008-05-14  Jim Meyering  <meyering@redhat.com>
46926
46927         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46928         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46929         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46930         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46931         via Collin Lasse.
46932
46933 2008-05-14  Eric Blake  <ebb9@byu.net>
46934
46935         Avoid quadratic growth in gl_LIBSOURCES.
46936         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46937         Suggested by Bruno Haible.
46938
46939         Test xmemdup0.
46940         * modules/xmemdup0-tests: New file.
46941         * tests/test-xmemdup0.c: Likewise.
46942
46943 2008-05-13  Eric Blake  <ebb9@byu.net>
46944
46945         Split xmemdup0 into its own module.
46946         * modules/xmemdup0: New file.
46947         * lib/xmemdup0.h: Likewise.
46948         * lib/xmemdup0.c: Likewise.
46949         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46950         * lib/xalloc.h (xmemdup0): Remove.
46951         * lib/xmalloc.c (xmemdup0): Likewise.
46952
46953 2008-05-13  Eric Blake  <ebb9@byu.net>
46954             Bruno Haible  <bruno@clisp.org>
46955
46956         Reduce number of forks required during autoconf.
46957         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46958         and gl_LIBSOURCES_DIR.
46959         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46960         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46961         m4_syscmd per file.
46962         <m4_foreach_w>: Move...
46963         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46964
46965 2008-05-13  Eric Blake  <ebb9@byu.net>
46966
46967         * gnulib-tool: Fix various comment typos.
46968
46969 2008-05-12  Bruno Haible  <bruno@clisp.org>
46970
46971         Tailor the linebreaking algorithm.
46972         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46973
46974 2008-05-12  Bruno Haible  <bruno@clisp.org>
46975
46976         Update to Unicode 5.0.0.
46977         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46978         LBP_JV, LBP_JT. Redistribute values.
46979         (unilbrk_table): Change size.
46980         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46981         Unicode TR#14 rev. 22.
46982         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46983         LBP_JV, LBP_JT. Redistribute values.
46984         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46985         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46986         Update.
46987         * lib/unilbrk/lbrkprop1.h: Regenerated.
46988         * lib/unilbrk/lbrkprop2.h: Regenerated.
46989         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46990         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46991         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46992         Likewise.
46993         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46994         Likewise.
46995         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46996         result.
46997         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46998         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46999         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
47000         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
47001         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
47002         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
47003
47004 2008-05-11  Bruno Haible  <bruno@clisp.org>
47005
47006         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
47007
47008 2008-05-11  Bruno Haible  <bruno@clisp.org>
47009
47010         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
47011         * modules/unilbrk/gen-lbrk: New file.
47012
47013 2008-05-11  Bruno Haible  <bruno@clisp.org>
47014
47015         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
47016         * m4/sha512.m4 (gl_SHA512): Likewise.
47017
47018 2008-05-11  Jim Meyering  <meyering@redhat.com>
47019
47020         New modules: crypto/sha256, crypto/sha512 (from coreutils)
47021         * modules/crypto/sha256: New file.
47022         * modules/crypto/sha512: Likewise.
47023         * lib/sha256.c: Likewise.
47024         * lib/sha256.h: Likewise.
47025         * lib/sha512.c: Likewise.
47026         * lib/sha512.h: Likewise.
47027         * lib/u64.h: Likewise.
47028         * m4/sha256.m4: Likewise.
47029         * m4/sha512.m4: Likewise.
47030         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
47031
47032 2008-05-10  Bruno Haible  <bruno@clisp.org>
47033
47034         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
47035         (Input/Output <stdio.h>): Add xprintf.
47036         (Signal handling <signal.h>): Add strsignal.
47037         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
47038         (Core language properties): Add func.
47039         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
47040         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
47041         strings.
47042         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
47043         (Input/output): New section.
47044         (File system functions): Add openat-die, stat-macros.
47045         (Networking functions): Add sockets.
47046         (Unicode string functions): Add unictype/*.
47047         (Support for building libraries and executables): Add gperf.
47048         (Support for building documentation): Add agpl-3.0.
47049         (Misc): Add nocrash.
47050
47051 2008-05-10  Bruno Haible  <bruno@clisp.org>
47052
47053         * modules/unictype/gen-ctype: New file.
47054
47055 2008-05-10  Jim Meyering  <meyering@redhat.com>
47056
47057         Make chdir-safer.c more efficient on a system with no symlinks.
47058         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
47059         also if ELOOP is zero.  Suggested by Bruno Haible.
47060
47061         Make chdir-safer.c slightly safer.
47062         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
47063         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
47064
47065         Avoid compile failure on systems without ELOOP (like mingw).
47066         * lib/chdir-safer.c (ELOOP): Define if not already defined.
47067         Reported by Bruno Haible.
47068
47069 2008-05-10  Bruno Haible  <bruno@clisp.org>
47070
47071         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
47072         (is_utf8_encoding): Use a case-insensitive comparison.
47073         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
47074         streq.
47075
47076 2008-05-10  Bruno Haible  <bruno@clisp.org>
47077
47078         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
47079         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
47080         * lib/unilbrk/ulc-common.h (iconv_string_length,
47081         iconv_string_keeping_offsets): Remove declarations.
47082         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
47083         Don't include <iconv.h>, streq.h, xsize.h.
47084         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
47085         conversion.
47086         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
47087         <iconv.h>, streq.h, xsize.h.
47088         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
47089         conversion.
47090         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
47091         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
47092         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
47093         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
47094
47095 2008-05-10  Bruno Haible  <bruno@clisp.org>
47096
47097         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
47098         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
47099
47100         * modules/unilbrk/u32-width-linebreaks-tests: New file.
47101         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
47102
47103         * modules/unilbrk/u16-width-linebreaks-tests: New file.
47104         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
47105
47106         * modules/unilbrk/u8-width-linebreaks-tests: New file.
47107         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
47108
47109         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
47110         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
47111
47112         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
47113         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
47114
47115         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
47116         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
47117
47118         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
47119         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
47120
47121 2008-05-10  Bruno Haible  <bruno@clisp.org>
47122
47123         Split up 'linebreak' module.
47124         * lib/unilbrk.h: New file, based on lib/linebreak.h.
47125         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
47126         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
47127         modifications.
47128         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
47129         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
47130         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
47131         lib/linebreak.c.
47132         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
47133         lib/linebreak.c.
47134         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
47135         lib/linebreak.c.
47136         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
47137         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
47138         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
47139         lib/linebreak.c.
47140         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
47141         lib/linebreak.c.
47142         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
47143         lib/linebreak.c.
47144         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
47145         lib/linebreak.c.
47146         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
47147         lib/linebreak.c.
47148         * modules/unilbrk/base: New file.
47149         * modules/unilbrk/tables: New file.
47150         * modules/unilbrk/u8-possible-linebreaks: New file.
47151         * modules/unilbrk/u16-possible-linebreaks: New file.
47152         * modules/unilbrk/u32-possible-linebreaks: New file.
47153         * modules/unilbrk/ulc-common: New file.
47154         * modules/unilbrk/ulc-possible-linebreaks: New file.
47155         * modules/unilbrk/u8-width-linebreaks: New file.
47156         * modules/unilbrk/u16-width-linebreaks: New file.
47157         * modules/unilbrk/u32-width-linebreaks: New file.
47158         * modules/unilbrk/ulc-width-linebreaks: New file.
47159         * lib/linebreak.h: Remove file.
47160         * lib/linebreak.c: Remove file.
47161         * m4/linebreak.m4: Remove file.
47162         * modules/linebreak: Remove file.
47163         * NEWS: Mention the changes.
47164
47165 2008-05-09  Eric Blake  <ebb9@byu.net>
47166
47167         Add xmemdup0.
47168         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
47169         implementation.
47170         * lib/xmalloc.c (xmemdup0): New C implementation.
47171
47172 2008-05-08  Bruno Haible  <bruno@clisp.org>
47173
47174         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
47175
47176 2008-05-07  Eric Blake  <ebb9@byu.net>
47177
47178         Support cross-compilation of <wctype.h>.
47179         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
47180         AC_CACHE_CHECK.
47181
47182 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
47183
47184         * build-aux/vc-list-files: Add support for bzr.
47185
47186 2008-05-03  Jim Meyering  <meyering@redhat.com>
47187
47188         avoid failed assertion with tight malloc
47189         * tests/test-getndelim2.c: Correct an off-by-one assertion.
47190
47191 2008-05-03  Simon Josefsson  <simon@josefsson.org>
47192
47193         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
47194         are needed from arpa/inet.h.
47195         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
47196         Reported by Bruno Haible.
47197
47198 2008-05-02  Jim Meyering  <meyering@redhat.com>
47199
47200         avoid compilation error on FreeBSD 6
47201         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
47202
47203 2008-05-01  Jim Meyering  <meyering@redhat.com>
47204
47205         useless-if-before-free: correct --help's exit status description
47206         * build-aux/useless-if-before-free (usage): Like grep, exit 0
47207         for one or more matches, etc.  Reported by Bruno Haible.
47208
47209         vc-list-files: make the stand-alone gnulib test work
47210         * modules/vc-list-files-tests (configure.ac):
47211         Define and AC_SUBST abs_aux_dir.
47212         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
47213         $(abs_top_srcdir) to each script and having each of them
47214         duplicate the work of setting PATH, set PATH here, using
47215         the new variable, abs_aux_dir instead.
47216         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
47217         * tests/test-vc-list-files-git.sh: Likewise.
47218         Reported by Bruno Haible.
47219
47220 2008-05-01  Bruno Haible  <bruno@clisp.org>
47221
47222         * lib/getndelim2.c (getndelim2): Fix newsize computation during
47223         reallocation. Rename 'done' to 'found_delimiter'.
47224
47225 2008-05-01  Jim Meyering  <meyering@redhat.com>
47226
47227         vc-list-files: accommodate /bin/sh like the one from Solaris 10
47228         * build-aux/vc-list-files: Use `...`, not $(...).
47229
47230 2008-04-30  Jim Meyering  <meyering@redhat.com>
47231
47232         add tests for vc-list-files
47233         * modules/vc-list-files-tests: New module.
47234         * tests/test-vc-list-files-cvs.sh: New file.
47235         * tests/test-vc-list-files-git.sh: New file.
47236
47237         avoid a warning from gcc
47238         * lib/getndelim2.c (IF_LINT): Define.
47239         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
47240
47241         vc-list-files: work properly with build-aux/cvsu, too
47242         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
47243         to all cvs-based clauses.
47244
47245         vc-list-files: work properly in the CVS+awk case, too
47246         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
47247
47248         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
47249         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
47250         take more than one file argument, so .  Add quotes, just in case $dir
47251         ever contains a shell meta-character.  Prompted by Soren Hansen in
47252         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
47253
47254 2008-04-29  Eric Blake  <ebb9@byu.net>
47255
47256         Optimize getndelim2 to use block operations when possible.
47257         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
47258         freadseek, and memchr2.
47259         * lib/getndelim2.c (getndelim2): Use them for block reads.
47260
47261 2008-04-29  Bruno Haible  <bruno@clisp.org>
47262
47263         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
47264         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47265         * modules/inet_ntop (Depends-on): Add extensions.
47266         * modules/inet_pton (Depends-on): Likewise.
47267         Reported by Simon Josefsson.
47268
47269 2008-04-29  Jim Meyering  <meyering@redhat.com>
47270
47271         When the is more than one match in a block, match all of them.
47272         * build-aux/useless-if-before-free: Iterate through each block
47273         until there are no more matches.
47274
47275         Fix broken useless-if-before-free script.
47276         * build-aux/useless-if-before-free: Fix typo: missing "?" after
47277         the expression to match cast of argument to free-like function.
47278
47279 2008-04-29  Eric Blake  <ebb9@byu.net>
47280
47281         Use new header.
47282         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
47283
47284 2008-04-29  Jim Meyering  <meyering@redhat.com>
47285
47286         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
47287         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
47288         by gnulib to exist and to declare e.g., inet_ntop.
47289         Don't include "inet_ntop.h", now removed.
47290
47291         * m4/arpa_inet_h.m4: Remove trailing blanks.
47292
47293 2008-04-29  Eric Blake  <ebb9@byu.net>
47294
47295         Silence valgrind on safe reads beyond potential array bounds.
47296         * lib/rawmemchr.valgrind: New file.
47297         * lib/strchrnul.valgrind: Likewise.
47298         * modules/rawmemchr (Files): Distribute new file.
47299         * modules/strchrnul (Files): Likewise.
47300         Suggested by Bruno Haible.
47301
47302 2008-04-29  Bruno Haible  <bruno@clisp.org>
47303
47304         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
47305         (inet_ntop, inet_pton): Change portability warning's wording.
47306         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
47307         Invoke gl_CHECK_NEXT_HEADERS.
47308         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
47309         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
47310         set ARPA_INET_H.
47311         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47312         * modules/arpa_inet (Description): No longer only for systems that
47313         lack it.
47314         (Depends-on): Add include_next.
47315         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
47316         HAVE_ARPA_INET_H.
47317
47318 2008-04-29  Jim Meyering  <meyering@redhat.com>
47319
47320         * modules/mkdir (License): Re-license as LGPLv2+.
47321
47322 2008-04-29  Bruno Haible  <bruno@clisp.org>
47323
47324         * modules/rawmemchr (Maintainer): Set to Eric.
47325         * modules/strchrnul (Maintainer): Likewise.
47326
47327 2008-04-29  Simon Josefsson  <simon@josefsson.org>
47328
47329         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
47330         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
47331
47332         * modules/arpa_inet (arpa/inet.h): Use them.
47333
47334 2008-04-28  Eric Blake  <ebb9@byu.net>
47335
47336         Test getndelim2.
47337         * modules/getndelim2-tests: New file.
47338         * tests/test-getndelim2.c: Likewise.
47339         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
47340         stream.
47341         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
47342
47343         * MODULES.html.sh: Document new module.
47344
47345 2008-04-20  Bruno Haible  <bruno@clisp.org>
47346
47347         * lib/c-stack.c (die): Use raise.
47348         * modules/c-stack (Depends-on): Add raise.
47349
47350 2008-04-28  Bruno Haible  <bruno@clisp.org>
47351
47352         Expect rpmatch to be declared.
47353         * lib/yesno.c (rpmatch): Remove declaration.
47354
47355         Declare rpmatch.
47356         * lib/stdlib.in.h (rpmatch): New declaration.
47357         * lib/rpmatch.c: Include <stdlib.h> first.
47358         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
47359         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
47360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
47361         HAVE_RPMATCH.
47362         * modules/rpmatch (Depends-on): Add stdlib, extensions.
47363         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47364         (Include): Set to <stdlib.h>.
47365         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
47366         HAVE_RPMATCH.
47367         * NEWS: Document the change.
47368
47369 2008-04-28  Bruno Haible  <bruno@clisp.org>
47370
47371         Change rpmatch to use nl_langinfo when appropriate.
47372         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
47373         (N_): New macro.
47374         (localized_pattern): New function/macro.
47375         (try): Remove match, nomatch arguments. Copy the pattern into safe
47376         memory before caching it.
47377         (rpmatch): Use localized_pattern. Add translator comments.
47378         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
47379         Suggested by Eric Blake.
47380         * modules/rpmatch (Depends-on): Add stdbool.
47381
47382 2008-04-28  Eric Blake  <ebb9@byu.net>
47383
47384         Add rawmemchr module, matching glibc.
47385         * modules/string (Makefile.am): New indicator.
47386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
47387         * lib/string.in.h (rawmemchr): Declare when appropriate.
47388         * modules/rawmemchr: New file.
47389         * m4/rawmemchr.m4: Likewise.
47390         * lib/rawmemchr.c: Likewise.
47391         * modules/rawmemchr-tests: Likewise.
47392         * tests/test-rawmemchr.c: Likewise.
47393         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
47394         module.
47395         * modules/strchrnul (Depends-on): Add rawmemchr.
47396         * lib/strchrnul.c (strchrnul): Optimize a corner case.
47397
47398         Whitespace cleanup.
47399         * tests/test-strchrnul.c: Reindent.
47400         * lib/strchrnul.c: Likewise.
47401
47402         Optimize and test strchrnul.
47403         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
47404         * modules/strchrnul-tests: New file.
47405         * tests/test-strchrnul.c: Likewise.
47406
47407         Remove intprops dependency.
47408         * modules/memchr (Depends-on): Remove intprops.
47409         * modules/memrchr (Depends-on): Likewise.
47410         * modules/memchr2 (Depends-on): Likewise.
47411         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
47412         * lib/memrchr.c (__memrchr): Likewise.
47413         * lib/memrchr2.c (memchr2): Likewise.
47414         Reported by Simon Josefsson.
47415
47416 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47417
47418         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
47419         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47420
47421 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47422
47423         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
47424
47425         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
47426
47427         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
47428
47429         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
47430         declarations.
47431         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
47432
47433         * m4/inet_pton.m4: Don't check for header files.
47434
47435         * m4/inet_ntop.m4: Don't check for header files.
47436
47437 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47438
47439         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
47440         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
47441         trigger for cygwin).
47442         Reported by Bruno Haible  <bruno@clisp.org>.
47443
47444 2008-04-28  Bruno Haible  <bruno@clisp.org>
47445
47446         * doc/posix-functions/strdup.texi: Mention mingw problem.
47447
47448 2008-04-27  Bruno Haible  <bruno@clisp.org>
47449
47450         * modules/stat-time-tests (Depends-on): Add sleep.
47451         * tests/test-stat-time.c (force_unlink): New function.
47452         (cleanup): Use it.
47453         (test_mtime): Remove the ctime related tests.
47454         (test_ctime): New function, containing the ctime related tests.
47455         (main): Call test_ctime, except on native Windows platforms.
47456
47457 2008-04-27  Bruno Haible  <bruno@clisp.org>
47458
47459         * lib/rpmatch.c (rpmatch): Add some comments.
47460         Reported by James Youngman <jay@gnu.org>.
47461
47462 2008-04-27  Bruno Haible  <bruno@clisp.org>
47463
47464         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
47465         quiet NaNs.
47466
47467 2008-04-27  Bruno Haible  <bruno@clisp.org>
47468
47469         Make test-yesno.sh work on mingw.
47470         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
47471         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
47472         (main): Set stdin to binary mode.
47473         * modules/yesno-tests (Depends-on): Add binary-io.
47474
47475 2008-04-27  Bruno Haible  <bruno@clisp.org>
47476
47477         Fix 'isfinite' on x86, x86_64, ia64 platforms.
47478         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
47479         argument that lie outside the IEEE 854 domain.
47480         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
47481         (gl_ISFINITE): Use it.
47482         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
47483
47484 2008-04-27  Bruno Haible  <bruno@clisp.org>
47485
47486         Allow local renaming in config.h.
47487         * lib/memrchr.c (memrchr): Don't undefine outside libc.
47488
47489 2008-04-27  Bruno Haible  <bruno@clisp.org>
47490
47491         * lib/memchr.c (__memchr): Change type of 'i'.
47492         * lib/memchr2.c (memchr2): Likewise.
47493
47494 2008-04-26  Eric Blake  <ebb9@byu.net>
47495         and Bruno Haible  <bruno@clisp.org>
47496
47497         Optimize and test memrchr.
47498         * modules/memrchr (Depends-on): Add intprops.
47499         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
47500         * modules/memrchr-tests: New file.
47501         * tests/test-memrchr.c: New file.
47502
47503 2008-04-26  Bruno Haible  <bruno@clisp.org>
47504
47505         Add tentative support for DragonFly BSD.
47506         * lib/stdio-impl.h: Add macros for DragonFly BSD.
47507         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
47508         fp.
47509         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47510         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
47511         * lib/fpurge.c (fpurge): Likewise.
47512         * lib/freadable.c (freaadable): Likewise.
47513         * lib/freadahead.c (freadahead): Likewise.
47514         * lib/freading.c (freading): Likewise.
47515         * lib/freadptr.c (freadptr): Likewise.
47516         * lib/freadseek.c (freadptrinc): Likewise.
47517         * lib/fseeko.c (fseeko): Likewise.
47518         * lib/fseterr.c (fseterr): Likewise.
47519         * lib/fwritable.c (fwritable): Likewise.
47520         * lib/fwriting.c (fwriting): Likewise.
47521
47522 2008-04-26  Bruno Haible  <bruno@clisp.org>
47523
47524         * lib/stdio-impl.h: New file.
47525         * lib/fbufmode.c: Include stdio-impl.h.
47526         (fbufmode): Use fp_, remove redundant #defines.
47527         * lib/fflush.c: Include stdio-impl.h.
47528         (clear_ungetc_buffer): Remove redundant #defines.
47529         * lib/fpurge.c: Include stdio-impl.h.
47530         (fpurge): Remove redundant #defines.
47531         * lib/freadable.c: Include stdio-impl.h.
47532         (freadable): Remove redundant #defines.
47533         * lib/freadahead.c: Include stdio-impl.h.
47534         (freadahead): Remove redundant #defines.
47535         * lib/freading.c: Include stdio-impl.h.
47536         (freading): Remove redundant #defines.
47537         * lib/freadptr.c: Include stdio-impl.h.
47538         (freadptr): Remove redundant #defines.
47539         * lib/freadseek.c: Include stdio-impl.h.
47540         (freadptrinc): Remove redundant #defines.
47541         * lib/fseeko.c: Include stdio-impl.h.
47542         (rpl_fseeko): Remove redundant #defines.
47543         * lib/fseterr.c: Include stdio-impl.h.
47544         (fseterr): Remove redundant #defines.
47545         * lib/fwritable.c: Include stdio-impl.h.
47546         (fwritable: Remove redundant #defines.
47547         * lib/fwriting.c: Include stdio-impl.h.
47548         (fwriting): Remove redundant #defines.
47549         * modules/fbufmode (Files): Add lib/stdio-impl.h.
47550         * modules/fflush (Files): Likewise.
47551         * modules/fpurge (Files): Likewise.
47552         * modules/freadable (Files): Likewise.
47553         * modules/freadahead (Files): Likewise.
47554         * modules/freading (Files): Likewise.
47555         * modules/freadptr (Files): Likewise.
47556         * modules/freadseek (Files): Likewise.
47557         * modules/fseeko (Files): Likewise.
47558         * modules/fseterr (Files): Likewise.
47559         * modules/fwritable (Files): Likewise.
47560         * modules/fwriting (Files): Likewise.
47561
47562 2008-04-26  Bruno Haible  <bruno@clisp.org>
47563
47564         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47565         restore_seek_optimization, update_fpos_cache): New functions, extracted
47566         from rpl_fflush.
47567         (rpl_fflush): Use them.
47568         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
47569         (gl_REPLACE_FFLUSH): Use it.
47570
47571 2008-04-26  Bruno Haible  <bruno@clisp.org>
47572
47573         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
47574         on Solaris.
47575         * tests/test-xstrtoimax.sh: Likewise.
47576         * tests/test-xstrtoumax.sh: Likewise.
47577         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47578
47579 2008-04-26  Bruno Haible  <bruno@clisp.org>
47580
47581         * modules/memchr-tests: New file.
47582         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
47583
47584 2008-04-26  Eric Blake  <ebb9@byu.net>
47585             Bruno Haible  <bruno@clisp.org>
47586
47587         * lib/memchr.c: Include intprops.h.
47588         (__memchr): Optimize parallel detection of matching bytes. Rename local
47589         variables. Add explanatory comments.
47590
47591 2008-04-26  Bruno Haible  <bruno@clisp.org>
47592
47593         Fix module 'memchr', broken since 2000-10-28.
47594         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
47595
47596 2008-04-26  Bruno Haible  <bruno@clisp.org>
47597
47598         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
47599         comments.
47600
47601 2008-04-25  Eric Blake  <ebb9@byu.net>
47602
47603         Use native fstatat on cygwin 1.7.0.
47604         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
47605         first.
47606
47607 2008-04-23  Eric Blake  <ebb9@byu.net>
47608
47609         Improve memchr2 performance.
47610         * lib/memchr2.c (memchr2): Further optimize parallel detection of
47611         NUL bytes.
47612         * modules/memchr2 (Depends-on): Use intprops.h.
47613
47614 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47615
47616         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
47617         an inline function instead of a CPP macro.  Patch by Ben Pfaff
47618         <blp@cs.stanford.edu>.
47619
47620 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47621
47622         * lib/arpa_inet.in.h: New file.
47623
47624         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
47625         (Makefile.am): Sed in substitute header file.
47626
47627         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
47628         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
47629
47630         * modules/inet_ntop (configure.ac): Use
47631         gl_ARPA_INET_MODULE_INDICATOR.
47632
47633         * modules/inet_pton (configure.ac): Use
47634         gl_ARPA_INET_MODULE_INDICATOR.
47635
47636 2008-04-22  Jim Meyering  <meyering@redhat.com>
47637
47638         * modules/verify (License): Re-license as LGPLv2+.
47639
47640 2008-04-22  Simon Josefsson  <simon@josefsson.org>
47641
47642         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
47643         parameter to void* as per POSIX standard (MinGW uses char*).
47644
47645 2008-04-21  Bruno Haible  <bruno@clisp.org>
47646
47647         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
47648         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
47649         Define to replacements if REPLACE_ISWCNTRL is 1.
47650         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
47651         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
47652         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
47653         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
47654         what it fixes.
47655         * doc/posix-functions/iswalpha.texi: Likewise.
47656         * doc/posix-functions/iswblank.texi: Likewise.
47657         * doc/posix-functions/iswcntrl.texi: Likewise.
47658         * doc/posix-functions/iswdigit.texi: Likewise.
47659         * doc/posix-functions/iswgraph.texi: Likewise.
47660         * doc/posix-functions/iswlower.texi: Likewise.
47661         * doc/posix-functions/iswprint.texi: Likewise.
47662         * doc/posix-functions/iswpunct.texi: Likewise.
47663         * doc/posix-functions/iswspace.texi: Likewise.
47664         * doc/posix-functions/iswupper.texi: Likewise.
47665         * doc/posix-functions/iswxdigit.texi: Likewise.
47666         Reported by Alain Guibert.
47667
47668 2008-04-21  Bruno Haible  <bruno@clisp.org>
47669
47670         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
47671         Patch by Alain Guibert.
47672
47673 2008-04-21  Bruno Haible  <bruno@clisp.org>
47674
47675         Fix test failures on mingw.
47676         * tests/test-xstrtol.c (print_no_progname): New function.
47677         (main): Install it in error_print_progname hook.
47678         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
47679         * tests/test-xstrtoimax.sh: Likewise.
47680         * tests/test-xstrtoumax.sh: Likewise.
47681
47682 2008-04-21  Bruno Haible  <bruno@clisp.org>
47683
47684         Fix test failure on mingw.
47685         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
47686
47687 2008-04-21  Bruno Haible  <bruno@clisp.org>
47688
47689         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
47690         Actually assign a value.
47691
47692 2008-04-20  Bruno Haible  <bruno@clisp.org>
47693
47694         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
47695         take 2.
47696         * lib/canonicalize.c (canonicalize_file_name): Elide if the
47697         'canonicalize-lgpl' module is also used.
47698         * lib/canonicalize-lgpl.c: Undo last change.
47699         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
47700
47701 2008-04-20  Bruno Haible  <bruno@clisp.org>
47702
47703         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
47704         config.h. Provide _mkdir based fallback for mingw.
47705         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
47706         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
47707         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
47708         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
47709         rather than defining mkdir in config.h.
47710         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
47711         (gl_SYS_STAT_H_DEFAULTS): New macro.
47712         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
47713         HAVE_IO_H any more.
47714         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
47715         HAVE_DECL_MKDIR and HAVE_IO_H.
47716
47717 2008-04-20  Bruno Haible  <bruno@clisp.org>
47718
47719         * lib/isapipe.c: Port to native Windows platforms.
47720
47721 2008-04-20  Bruno Haible  <bruno@clisp.org>
47722
47723         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
47724
47725 2008-04-21  Eric Blake  <ebb9@byu.net>
47726
47727         Work around preprocessors that don't handle UINTMAX_MAX.
47728         * lib/memchr2.c (memchr2): Avoid embedded #if.
47729         Reported by Alain Guibert, fix suggested by Bruno Haible.
47730
47731 2008-04-21  Simon Josefsson  <simon@josefsson.org>
47732
47733         * doc/posix-functions/strftime.texi (strftime): Explain better
47734         Windows incompatibility.  Suggested by Micah Cowan
47735         <micah@cowan.name>.
47736
47737 2008-04-20  Bruno Haible  <bruno@clisp.org>
47738
47739         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
47740         unistr/u8-mblen.
47741
47742 2008-04-20  Bruno Haible  <bruno@clisp.org>
47743
47744         Fix test failure on platforms with non-GNU iconv.
47745         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
47746         (U_TO_U8): Use it, rather than u16_to_u8.
47747         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
47748         units at the end of the input string.
47749         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
47750
47751 2008-04-20  Bruno Haible  <bruno@clisp.org>
47752
47753         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
47754         when the resulting length is 0.
47755         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
47756
47757 2008-04-20  Bruno Haible  <bruno@clisp.org>
47758
47759         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
47760         works.
47761         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
47762
47763 2008-04-20  Bruno Haible  <bruno@clisp.org>
47764
47765         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
47766         * modules/tsearch-tests (configure.ac): Test for initstate function.
47767
47768 2008-04-20  Bruno Haible  <bruno@clisp.org>
47769
47770         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
47771         for nlink_t if missing.
47772         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
47773
47774 2008-04-19  Bruno Haible  <bruno@clisp.org>
47775
47776         Work around snprintf bug on Linux libc5.
47777         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
47778         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47779         gl_SNPRINTF_SIZE1.
47780         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47781         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
47782         that test failed.
47783         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47784         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
47785         * modules/snprintf (Files): Add m4/printf.m4.
47786         * modules/vsnprintf (Files): Likewise.
47787         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
47788         * doc/posix-functions/vsnprintf.texi: Likewise.
47789
47790 2008-04-19  Bruno Haible  <bruno@clisp.org>
47791
47792         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
47793         from 0.0058 to less than 10^-7.
47794
47795 2008-04-19  Bruno Haible  <bruno@clisp.org>
47796
47797         Fix rounding when a precision is given.
47798         * lib/vasnprintf.c (is_borderline): New function.
47799         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47800         9...9x.
47801         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47802         %e, %g.
47803         * tests/test-vasprintf-posix.c (test_function): Likewise.
47804         * tests/test-snprintf-posix.h (test_function): Likewise.
47805         * tests/test-sprintf-posix.h (test_function): Likewise.
47806         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47807         * tests/test-printf-posix.h (test_function): Likewise.
47808         * tests/test-printf-posix.output: Update.
47809         Reported by John Darrington <john@darrington.wattle.id.au> via
47810         Ben Pfaff <blp@cs.stanford.edu>.
47811
47812 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47813
47814         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47815         Suggested by Bruno Haible <bruno@clisp.org>.
47816
47817 2008-04-17  Bruno Haible  <bruno@clisp.org>
47818
47819         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47820         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
47821         implementation.
47822         Patch by Bruce Merry <bmerry@gmail.com>.
47823
47824 2008-04-17  Simon Josefsson  <simon@josefsson.org>
47825
47826         * doc/posix-functions/strftime.texi (strftime): Mention that %e
47827         doesn't work under Windows.
47828
47829 2008-04-16  Bruno Haible  <bruno@clisp.org>
47830
47831         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
47832         New macros.
47833         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
47834         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
47835         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47836         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
47837         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
47838         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
47839         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
47840         macros.
47841         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
47842         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
47843         Northern Sotho, Uighur.
47844
47845 2008-04-16  Bruno Haible  <bruno@clisp.org>
47846
47847         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
47848         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
47849         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
47850         Reported by Daniel Bergström <daniel@octocode.com>.
47851
47852 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
47853             Bruno Haible  <bruno@clisp.org>
47854
47855         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
47856         function.
47857         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
47858         New functions, mostly extracted from gl_locale_name_default.
47859         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
47860
47861 2008-04-16  Eric Blake  <ebb9@byu.net>
47862
47863         Adjust strtod detection to catch glibc 2.7 bug.
47864         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
47865         Reported by John Gatewood Ham.
47866
47867 2008-04-16  Bruno Haible  <bruno@clisp.org>
47868
47869         Add tentative support for Linux libc5.
47870         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
47871         * lib/fpurge.c (fpurge): Likewise.
47872         * lib/freadable.c (freadable): Likewise.
47873         * lib/freadahead.c (freadahead): Likewise.
47874         * lib/freading.c (freading): Likewise.
47875         * lib/freadptr.c (freadptr): Likewise.
47876         * lib/freadseek.c (freadptrinc): Likewise.
47877         * lib/fseeko.c (rpl_fseeko): Likewise.
47878         * lib/fseterr.c (fseterr): Likewise.
47879         * lib/fwritable.c (fwritable): Likewise.
47880         * lib/fwriting.c (fwriting): Likewise.
47881         Reported by Alain Guibert <alguibert+bts@free.fr>.
47882
47883 2008-04-15  Bruno Haible  <bruno@clisp.org>
47884
47885         * modules/mathl (configure.ac): Define module indicator.
47886
47887 2008-04-15  Bruno Haible  <bruno@clisp.org>
47888
47889         * lib/logl.c (logl): Remove unused variables.
47890
47891 2008-04-15  Bruno Haible  <bruno@clisp.org>
47892
47893         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47894         fails.
47895
47896 2008-04-15  Bruno Haible  <bruno@clisp.org>
47897
47898         * lib/trim.c (trim2): Fix argument of isspace() macro.
47899
47900 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47901
47902         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47903         to 0.
47904         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47905
47906 2008-04-14  Bruno Haible  <bruno@clisp.org>
47907
47908         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47909         AC_LANG_PROGRAM argument.
47910         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47911         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47912         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47913         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47914         * m4/math_h.m4 (gl_MATH_H): Likewise.
47915         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47916         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47917         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47918         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47919         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47920         * m4/regex.m4 (gl_REGEX): Likewise.
47921         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47922         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47923         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47924         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47925         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47926         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47927         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47928         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47929
47930 2008-04-14  Jim Meyering  <meyering@redhat.com>
47931
47932         test-strtod: fix typos: s/abs/fabs/
47933         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47934
47935 2008-04-13  Bruno Haible  <bruno@clisp.org>
47936
47937         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47938         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47939         module is also used and while not building the reloc-wrapper.
47940
47941 2008-04-13  Bruno Haible  <bruno@clisp.org>
47942
47943         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47944
47945 2008-04-13  Bruno Haible  <bruno@clisp.org>
47946
47947         Fix AIX compilation failure introduced on 2008-04-02.
47948         * tests/test-frexp.c (exp): Undefine before redefining.
47949         * tests/test-frexpl.c (exp): Likewise.
47950
47951 2008-04-13  Bruno Haible  <bruno@clisp.org>
47952
47953         Work around a HP-UX stdio bug.
47954         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47955         * tests/test-ftello.c (main): Likewise.
47956         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47957         * doc/posix-functions/ftello.texi: Likewise.
47958
47959 2008-04-13  Bruno Haible  <bruno@clisp.org>
47960
47961         Make test-signbit pass on HP-UX/hppa.
47962         * tests/test-signbit.c (minus_zerol): New variable.
47963         (test_signbitl): Use it.
47964
47965 2008-04-13  Bruno Haible  <bruno@clisp.org>
47966
47967         Make truncl work on OSF/1 4.0.
47968         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47969         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47970         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47972         HAVE_DECL_TRUNCL.
47973         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47974         HAVE_DECL_TRUNCL.
47975         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47976
47977 2008-04-13  Bruno Haible  <bruno@clisp.org>
47978
47979         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47980
47981 2008-04-13  Bruno Haible  <bruno@clisp.org>
47982
47983         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47984         expression, so as to avoid HP-UX 11 cc compiler bug.
47985
47986 2008-04-13  Bruno Haible  <bruno@clisp.org>
47987
47988         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47989
47990 2008-04-13  Bruno Haible  <bruno@clisp.org>
47991
47992         * lib/git-merge-changelog.c: Remove empty declaration outside of
47993         functions.
47994
47995 2008-04-13  Bruno Haible  <bruno@clisp.org>
47996
47997         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47998
47999 2008-04-13  Bruno Haible  <bruno@clisp.org>
48000
48001         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
48002         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
48003         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
48004         also if it exists but lacks definitions of the SHUT_* macros.
48005         * modules/sys_socket (Description): Update.
48006         Reported by Elbert Pol <e.pol@chello.nl>.
48007
48008 2008-04-13  Bruno Haible  <bruno@clisp.org>
48009
48010         * lib/localcharset.c (OS2): Don't redefine if already defined.
48011         Reported by Elbert Pol <e.pol@chello.nl>.
48012
48013 2008-04-13  Bruno Haible  <bruno@clisp.org>
48014
48015         * lib/binary-io.h [__EMX__]: Include <io.h>.
48016         Reported by Elbert Pol <e.pol@chello.nl>.
48017
48018 2008-04-12  Bruno Haible  <bruno@clisp.org>
48019
48020         * lib/fpucw.h: Enable the definitions also for x86_64.
48021         Needed for NetBSD/x86_64.
48022         Reported by Thomas Klausner <tk@giga.or.at>.
48023
48024 2008-04-12  Bruno Haible  <bruno@clisp.org>
48025
48026         * tests/test-strtod.c: Include isnand.h.
48027         (main): Use isnand instead of isnan.
48028         Reported by Jim Meyering.
48029
48030 2008-04-12  Bruno Haible  <bruno@clisp.org>
48031
48032         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
48033         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48034
48035 2008-04-12  Jim Meyering  <meyering@redhat.com>
48036
48037         * m4/math_h.m4 (gl_MATH_H): Fix typos.
48038
48039 2008-04-12  Bruno Haible  <bruno@clisp.org>
48040
48041         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
48042         Reported by Elbert Pol <e.pol@chello.nl>.
48043
48044 2008-04-12  Eric Blake  <ebb9@byu.net>
48045
48046         Work around Solaris 10 math.h bug.
48047         * m4/math_h.m4 (gl_MATH_H): Check for bug.
48048         (gl_MATH_H_DEFAULTS): Set up default.
48049         * modules/math (Makefile.am): Replace new indicators.
48050         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
48051         * tests/test-math.c (main): Test this.
48052         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
48053         * doc/posix-headers/math.texi (math.h): Mention bug.
48054         Reported by Nelson H. F. Beebe and Jim Meyering.
48055
48056 2008-04-11  Bruno Haible  <bruno@clisp.org>
48057
48058         Adapt to future versions of Apple GCC.
48059         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
48060         Reported by Peter O'Gorman <peter@pogma.com>.
48061
48062 2008-04-11  Bruno Haible  <bruno@clisp.org>
48063
48064         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
48065
48066 2008-04-11  Bruno Haible  <bruno@clisp.org>
48067
48068         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
48069
48070         * modules/getaddrinfo-tests (Makefile.am): Define
48071         test_getaddrinfo_LDADD.
48072
48073 2008-04-11  Bruno Haible  <bruno@clisp.org>
48074
48075         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
48076         (init): Fix syntax error.
48077         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
48078         is declared.
48079
48080 2008-04-11  Bruno Haible  <bruno@clisp.org>
48081
48082         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
48083         * modules/glob (Depends-on): Add stdbool.
48084
48085 2008-04-11  Bruno Haible  <bruno@clisp.org>
48086
48087         * lib/trim.c: Include <string.h>.
48088
48089 2008-04-11  Eric Blake  <ebb9@byu.net>
48090
48091         Avoid compile failure on OS/2.
48092         * lib/regex_internal.h (internal_function): Disable optimization
48093         on OS/2 (__EMX__), where it caused compiler error.
48094         Reported by Elbert Pol.
48095
48096 2008-04-11  Bruno Haible  <bruno@clisp.org>
48097
48098         Flush the standard error stream before aborting. Needed on mingw.
48099         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
48100         * tests/test-array_list.c (ASSERT): Likewise.
48101         * tests/test-array_oset.c (ASSERT): Likewise.
48102         * tests/test-avltree_list.c (ASSERT): Likewise.
48103         * tests/test-avltree_oset.c (ASSERT): Likewise.
48104         * tests/test-avltreehash_list.c (ASSERT): Likewise.
48105         * tests/test-binary-io.c (ASSERT): Likewise.
48106         * tests/test-byteswap.c (ASSERT): Likewise.
48107         * tests/test-c-ctype.c (ASSERT): Likewise.
48108         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
48109         * tests/test-c-strcasestr.c (ASSERT): Likewise.
48110         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
48111         * tests/test-c-strstr.c (ASSERT): Likewise.
48112         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
48113         * tests/test-canonicalize.c (ASSERT): Likewise.
48114         * tests/test-carray_list.c (ASSERT): Likewise.
48115         * tests/test-ceilf1.c (ASSERT): Likewise.
48116         * tests/test-ceilf2.c (ASSERT): Likewise.
48117         * tests/test-ceill.c (ASSERT): Likewise.
48118         * tests/test-count-one-bits.c (ASSERT): Likewise.
48119         * tests/test-fbufmode.c (ASSERT): Likewise.
48120         * tests/test-fflush2.c (ASSERT): Likewise.
48121         * tests/test-floorf1.c (ASSERT): Likewise.
48122         * tests/test-floorf2.c (ASSERT): Likewise.
48123         * tests/test-floorl.c (ASSERT): Likewise.
48124         * tests/test-fopen.c (ASSERT): Likewise.
48125         * tests/test-fpending.c (ASSERT): Likewise.
48126         * tests/test-fprintf-posix.c (ASSERT): Likewise.
48127         * tests/test-fpurge.c (ASSERT): Likewise.
48128         * tests/test-freadable.c (ASSERT): Likewise.
48129         * tests/test-freadahead.c (ASSERT): Likewise.
48130         * tests/test-freading.c (ASSERT): Likewise.
48131         * tests/test-freadptr.c (ASSERT): Likewise.
48132         * tests/test-freadptr2.c (ASSERT): Likewise.
48133         * tests/test-freadseek.c (ASSERT): Likewise.
48134         * tests/test-freopen.c (ASSERT): Likewise.
48135         * tests/test-frexp.c (ASSERT): Likewise.
48136         * tests/test-frexpl.c (ASSERT): Likewise.
48137         * tests/test-fseek.c (ASSERT): Likewise.
48138         * tests/test-fseeko.c (ASSERT): Likewise.
48139         * tests/test-fstrcmp.c (ASSERT): Likewise.
48140         * tests/test-ftell.c (ASSERT): Likewise.
48141         * tests/test-ftello.c (ASSERT): Likewise.
48142         * tests/test-func.c (ASSERT): Likewise.
48143         * tests/test-fwritable.c (ASSERT): Likewise.
48144         * tests/test-fwriting.c (ASSERT): Likewise.
48145         * tests/test-getdelim.c (ASSERT): Likewise.
48146         * tests/test-getline.c (ASSERT): Likewise.
48147         * tests/test-i-ring.c (ASSERT): Likewise.
48148         * tests/test-iconv-utf.c (ASSERT): Likewise.
48149         * tests/test-iconv.c (ASSERT): Likewise.
48150         * tests/test-isfinite.c (ASSERT): Likewise.
48151         * tests/test-isnand.c (ASSERT): Likewise.
48152         * tests/test-isnanf.c (ASSERT): Likewise.
48153         * tests/test-isnanl.h (ASSERT): Likewise.
48154         * tests/test-ldexpl.c (ASSERT): Likewise.
48155         * tests/test-linked_list.c (ASSERT): Likewise.
48156         * tests/test-linkedhash_list.c (ASSERT): Likewise.
48157         * tests/test-localename.c (ASSERT): Likewise.
48158         * tests/test-lseek.c (ASSERT): Likewise.
48159         * tests/test-mbscasecmp.c (ASSERT): Likewise.
48160         * tests/test-mbscasestr1.c (ASSERT): Likewise.
48161         * tests/test-mbscasestr2.c (ASSERT): Likewise.
48162         * tests/test-mbscasestr3.c (ASSERT): Likewise.
48163         * tests/test-mbscasestr4.c (ASSERT): Likewise.
48164         * tests/test-mbschr.c (ASSERT): Likewise.
48165         * tests/test-mbscspn.c (ASSERT): Likewise.
48166         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
48167         * tests/test-mbspbrk.c (ASSERT): Likewise.
48168         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
48169         * tests/test-mbsrchr.c (ASSERT): Likewise.
48170         * tests/test-mbsspn.c (ASSERT): Likewise.
48171         * tests/test-mbsstr1.c (ASSERT): Likewise.
48172         * tests/test-mbsstr2.c (ASSERT): Likewise.
48173         * tests/test-mbsstr3.c (ASSERT): Likewise.
48174         * tests/test-memchr2.c (ASSERT): Likewise.
48175         * tests/test-memmem.c (ASSERT): Likewise.
48176         * tests/test-open.c (ASSERT): Likewise.
48177         * tests/test-printf-frexp.c (ASSERT): Likewise.
48178         * tests/test-printf-frexpl.c (ASSERT): Likewise.
48179         * tests/test-printf-posix.c (ASSERT): Likewise.
48180         * tests/test-quotearg.c (ASSERT): Likewise.
48181         * tests/test-rbtree_list.c (ASSERT): Likewise.
48182         * tests/test-rbtree_oset.c (ASSERT): Likewise.
48183         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
48184         * tests/test-round1.c (ASSERT): Likewise.
48185         * tests/test-roundf1.c (ASSERT): Likewise.
48186         * tests/test-roundl.c (ASSERT): Likewise.
48187         * tests/test-signbit.c (ASSERT): Likewise.
48188         * tests/test-sleep.c (ASSERT): Likewise.
48189         * tests/test-snprintf-posix.c (ASSERT): Likewise.
48190         * tests/test-snprintf.c (ASSERT): Likewise.
48191         * tests/test-sprintf-posix.c (ASSERT): Likewise.
48192         * tests/test-stat-time.c (ASSERT): Likewise.
48193         * tests/test-strcasestr.c (ASSERT): Likewise.
48194         * tests/test-strerror.c (ASSERT): Likewise.
48195         * tests/test-striconv.c (ASSERT): Likewise.
48196         * tests/test-striconveh.c (ASSERT): Likewise.
48197         * tests/test-striconveha.c (ASSERT): Likewise.
48198         * tests/test-strsignal.c (ASSERT): Likewise.
48199         * tests/test-strstr.c (ASSERT): Likewise.
48200         * tests/test-strtod.c (ASSERT): Likewise.
48201         * tests/test-trunc1.c (ASSERT): Likewise.
48202         * tests/test-trunc2.c (ASSERT): Likewise.
48203         * tests/test-truncf1.c (ASSERT): Likewise.
48204         * tests/test-truncf2.c (ASSERT): Likewise.
48205         * tests/test-truncl.c (ASSERT): Likewise.
48206         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
48207         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
48208         * tests/test-vasnprintf.c (ASSERT): Likewise.
48209         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
48210         * tests/test-vasprintf.c (ASSERT): Likewise.
48211         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
48212         * tests/test-vprintf-posix.c (ASSERT): Likewise.
48213         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
48214         * tests/test-vsnprintf.c (ASSERT): Likewise.
48215         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
48216         * tests/test-wcwidth.c (ASSERT): Likewise.
48217         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
48218         * tests/test-xprintf-posix.c (ASSERT): Likewise.
48219         * tests/test-xvasprintf.c (ASSERT): Likewise.
48220         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
48221         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
48222         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
48223         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
48224         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
48225         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
48226         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
48227         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
48228         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
48229         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
48230         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
48231         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
48232         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
48233         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
48234         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
48235         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
48236         * tests/unictype/test-block_list.c (ASSERT): Likewise.
48237         * tests/unictype/test-block_of.c (ASSERT): Likewise.
48238         * tests/unictype/test-block_test.c (ASSERT): Likewise.
48239         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
48240         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
48241         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
48242         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
48243         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
48244         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
48245         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
48246         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
48247         * tests/unictype/test-combining.c (ASSERT): Likewise.
48248         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
48249         * tests/unictype/test-digit.c (ASSERT): Likewise.
48250         * tests/unictype/test-mirror.c (ASSERT): Likewise.
48251         * tests/unictype/test-numeric.c (ASSERT): Likewise.
48252         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
48253         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
48254         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
48255         * tests/unictype/test-scripts.c (ASSERT): Likewise.
48256         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
48257         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
48258         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
48259         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
48260         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
48261         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
48262         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
48263         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
48264         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
48265         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
48266         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
48267         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
48268         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
48269         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
48270         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
48271         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
48272         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
48273         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
48274         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
48275         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
48276         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
48277         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
48278         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
48279         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
48280         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
48281         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
48282         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
48283         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
48284         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
48285         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
48286         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
48287         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
48288         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
48289         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
48290         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
48291         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
48292         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
48293         Reported by Eric Blake.
48294
48295 2008-04-11  Bruno Haible  <bruno@clisp.org>
48296
48297         * lib/wchar.in.h: Tweak comment.
48298
48299 2008-04-11  Bruno Haible  <bruno@clisp.org>
48300
48301         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
48302         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
48303         gl_COMMON.
48304         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
48305
48306 2008-04-11  Bruno Haible  <bruno@clisp.org>
48307
48308         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
48309
48310 2008-04-11  Simon Josefsson  <simon@josefsson.org>
48311
48312         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
48313         of attempting to use non-existing /dev/*random.  Based on patch
48314         from Adam Strzelecki <ono@java.pl> in
48315         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
48316
48317 2008-04-08  Bruno Haible  <bruno@clisp.org>
48318
48319         Add tentative support for emx+gcc.
48320         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
48321         * lib/fpurge.c (fpurge): Likewise.
48322         * lib/freadable.c (freadable): Likewise.
48323         * lib/freadahead.c (freadahead): Likewise.
48324         * lib/freading.c (freading): Likewise.
48325         * lib/freadptr.c (freadptr): Likewise.
48326         * lib/freadseek.c (freadptrinc): Likewise.
48327         * lib/fseeko.c (rpl_fseeko): Likewise.
48328         * lib/fseterr.c (fseterr): Likewise.
48329         * lib/fwritable.c (fwritable): Likewise.
48330         * lib/fwriting.c (fwriting): Likewise.
48331         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
48332
48333 2008-04-09  Eric Blake  <ebb9@byu.net>
48334
48335         Avoid some autoconf warnings.
48336         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
48337         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
48338         * m4/afs.m4 (gl_AFS): Likewise.
48339         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
48340         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
48341         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48342         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
48343         (gl_INTEGER_TYPE_SUFFIX): Likewise.
48344         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
48345         (AC_CHECK_DECLS_ONCE): Likewise.
48346         Rename file...
48347         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
48348         gnulib-tool requires autoconf 2.59 or better.
48349         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
48350
48351 2008-04-08  Eric Blake  <ebb9@byu.net>
48352
48353         Use 'git describe --match' if present (added in git 1.5.5).
48354         * build-aux/git-version-gen: Limit result to tags that match 'v*'
48355         if possible.
48356
48357 2008-04-08  Bruno Haible  <bruno@clisp.org>
48358
48359         Add tentative support for OpenServer.
48360         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
48361         _ptr, _cnt.
48362         * lib/fpurge.c (fpurge): Likewise.
48363         * lib/freadable.c (freadable): Likewise.
48364         * lib/freadahead.c (freadahead): Likewise.
48365         * lib/freading.c (freading): Likewise.
48366         * lib/freadptr.c (freadptr): Likewise.
48367         * lib/freadseek.c (freadptrinc): Likewise.
48368         * lib/fseeko.c (rpl_fseeko): Likewise.
48369         * lib/fseterr.c (fseterr): Likewise.
48370         * lib/fwritable.c (fwritable): Likewise.
48371         * lib/fwriting.c (fwriting): Likewise.
48372         Reported by Roger Cornelius <rac@tenzing.org> and
48373         Brian K. White <brian@aljex.com>.
48374
48375 2008-04-06  Jim Meyering  <meyering@redhat.com>
48376
48377         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
48378
48379 2008-04-06  Bruno Haible  <bruno@clisp.org>
48380
48381         Avoid possible error with non-ASCII bytes in UTF-8 locales.
48382         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
48383         * tests/test-printf-posix.sh: Likewise.
48384         * tests/test-vfprintf-posix.sh: Likewise.
48385         * tests/test-vprintf-posix.sh: Likewise.
48386         * tests/test-xprintf-posix.sh: Likewise.
48387
48388 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48389
48390         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
48391         hide error from 'ls', needed on OS/2.
48392         Report by Elbert Pol <elbert.pol@gmail.com>.
48393
48394 2008-04-04  Eric Blake  <ebb9@byu.net>
48395
48396         Make test-fseeko.c failures meaningful.
48397         * tests/test-fseeko.c: Print line number on failure.
48398         * tests/test-fseek.c: Likewise.
48399         Reported by Nelson H. F. Beebe.
48400
48401         Improve strtod bug detection check.
48402         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
48403         required for Solaris 10.
48404         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
48405
48406 2008-04-04  Bruno Haible  <bruno@clisp.org>
48407
48408         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
48409         by m4/setenv.m4.
48410
48411 2008-04-03  Eric Blake  <ebb9@byu.net>
48412
48413         Ensure sane .version contents.
48414         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
48415         version string.
48416         * build-aux/git-version-gen: Improve documentation.
48417
48418         Make GNU make output nicer.
48419         * top/GNUmakefile [!_have-Makefile]: Add dependency on
48420         MAKECMDGOALS to enforce message for all command line targets.  Set
48421         srcdir for use in maint.mk.
48422
48423         Another maintainer tweak.
48424         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
48425         a target that regenerates version.
48426
48427 2008-04-03  Jim Meyering  <meyering@redhat.com>
48428
48429         vc-list-files: don't cause coreutils "make po-check" failure
48430         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
48431
48432 2008-04-03  Eric Blake  <ebb9@byu.net>
48433
48434         Allow VPATH usage of vc-list-files.
48435         * build-aux/vc-list-files (scriptversion): Add timestamp.
48436         (options): Add --help, --version, -C.
48437         (CVS): Support installed cvsu.
48438
48439 2008-04-02  Bruno Haible  <bruno@clisp.org>
48440
48441         Avoid some "statement with no effect" warnings from gcc.
48442         * tests/test-wctype.c (main): Explicitly ignore unused values.
48443         Reported by Jim Meyering.
48444
48445 2008-04-02  Jim Meyering  <meyering@redhat.com>
48446
48447         Avoid some warnings from "gcc -Wshadow".
48448         * tests/test-frexp.c (exp): Define to a different identifier.
48449         * tests/test-frexpl.c (exp): Likewise.
48450
48451 2008-04-03  Jim Meyering  <meyering@redhat.com>
48452
48453         bootstrap: remove dangling *.[ch] symlinks from lib
48454         * build-aux/bootstrap [dangling symlink removal]: Move find's
48455         -depth option to precede all others, to avoid a warning.
48456         Remove *.[ch] files too, and from "$source_base" (usually lib/).
48457
48458 2008-04-02  Bruno Haible  <bruno@clisp.org>
48459
48460         Avoid some warnings from "gcc -Wshadow".
48461         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
48462         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
48463         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
48464         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
48465         Reported by Jim Meyering.
48466
48467 2008-04-01  Bruno Haible  <bruno@clisp.org>
48468
48469         Fix test to work on IRIX 6.5 with cc.
48470         * tests/test-math.c (numeric_equal): New function.
48471         (main): Use it.
48472
48473 2008-04-01  Bruno Haible  <bruno@clisp.org>
48474
48475         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
48476
48477 2008-04-01  Bruno Haible  <bruno@clisp.org>
48478
48479         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
48480         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48481         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
48482         (Depends-on): Remove math.
48483
48484         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
48485         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48486         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
48487         (Depends-on): Remove math.
48488
48489         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
48490         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48491         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
48492         (Depends-on): Remove math.
48493         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
48494         (Depends-on): Remove math.
48495
48496         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
48497         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48498         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
48499         (Depends-on): Remove math.
48500         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
48501         (Depends-on): Remove math.
48502
48503         * tests/test-round1.c: Include nan.h.
48504         (main): Use NaNd instead of NAN.
48505         * modules/round-tests (Files): Add tests/nan.h.
48506
48507         * tests/test-trunc1.c: Include nan.h.
48508         (main): Use NaNd instead of NAN.
48509         * modules/trunc-tests (Files): Add tests/nan.h.
48510
48511         * tests/test-roundf1.c: Include nan.h.
48512         (main): Use NaNf instead of NAN.
48513         * modules/roundf-tests (Files): Add tests/nan.h.
48514
48515         * tests/test-truncf1.c: Include nan.h.
48516         (main): Use NaNf instead of NAN.
48517         * modules/truncf-tests (Files): Add tests/nan.h.
48518
48519         * tests/test-ceilf1.c: Include nan.h.
48520         (main): Use NaNf instead of NAN.
48521         * modules/ceilf-tests (Files): Add tests/nan.h.
48522
48523         * tests/test-floorf1.c: Include nan.h.
48524         (main): Use NaNf instead of NAN.
48525         * modules/floorf-tests (Files): Add tests/nan.h.
48526
48527         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
48528         (main): Use NaNf instead of NAN.
48529         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
48530
48531         * tests/test-isnand.c: Include nan.h instead of <math.h>.
48532         (main): Use NaNd instead of NAN.
48533         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
48534
48535         * tests/test-frexp.c: Include nan.h.
48536         (main): Use NaNd instead of NAN.
48537         * modules/frexp-tests (Files): Add tests/nan.h.
48538
48539         * lib/isnan.c: Don't include <math.h>.
48540         (FUNC): Don't use NAN macro.
48541         * modules/isnand-nolibm (Depends-on): Remove math.
48542         * modules/isnanf-nolibm (Depends-on): Remove math.
48543         * modules/isnanl (Depends-on): Remove math.
48544         * modules/isnanl-nolibm (Depends-on): Remove math.
48545
48546         * tests/nan.h: New file.
48547
48548 2008-04-01  Eric Blake  <ebb9@byu.net>
48549
48550         Fix typos.
48551         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
48552         values to be the right type.
48553
48554         For now, cater to gnulib strtod inaccuracies.
48555         * tests/test-strtod.c (main): Allow 1-ulp error on expected
48556         fractional results.  While not as nice from a QoI perspective, it
48557         is a quicker patch than correctly implementing decimal to binary
48558         rounding.
48559
48560 2008-03-31  Eric Blake  <ebb9@byu.net>
48561
48562         Guarantee a definition of NAN.
48563         * lib/math.in.h (NAN): Define if missing.
48564         * tests/test-math.c (main): Test it.
48565         * doc/posix-headers/math.texi (math.h): Document this.
48566         * lib/isnan.c (rpl_isnand): Use it.
48567         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
48568         * tests/test-floorf1.c (NaN): Likewise.
48569         * tests/test-frexp.c (NaN): Likewise.
48570         * tests/test-isnand.c (NaN): Likewise.
48571         * tests/test-isnanf.c (NaN): Likewise.
48572         * tests/test-round1.c (NaN): Likewise.
48573         * tests/test-roundf1.c (NaN): Likewise.
48574         * tests/test-snprintf-posix.h (NaN): Likewise.
48575         * tests/test-sprintf-posix.h (NaN): Likewise.
48576         * tests/test-trunc1.c (NaN): Likewise.
48577         * tests/test-truncf1.c (NaN): Likewise.
48578         * tests/test-vasnprintf-posix.c (NaN): Likewise.
48579         * tests/test-vasprintf-posix.c (NaN): Likewise.
48580         * modules/isnand-nolibm (Depends-on): Add math.
48581         * modules/isnanf-nolibm (Depends-on): Likewise.
48582         * modules/isnanl (Depends-on): Likewise.
48583         * modules/isnanl-nolibm (Depends-on): Likewise.
48584         * modules/snprintf-posix-tests (Depends-on): Likewise.
48585         * modules/sprintf-posix-tests (Depends-on): Likewise.
48586         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
48587         * modules/vsprintf-posix-tests (Depends-on): Likewise.
48588         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
48589         * modules/vasprintf-posix-tests (Depends-on): Likewise.
48590
48591 2008-03-31  Bruno Haible  <bruno@clisp.org>
48592
48593         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
48594         * doc/posix-functions/strtod.texi: Likewise.
48595
48596 2008-03-31  Bruno Haible  <bruno@clisp.org>
48597
48598         * tests/test-strtod.c (main): Don't use C99 syntax.
48599
48600 2008-03-31  Bruno Haible  <bruno@clisp.org>
48601
48602         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
48603         Reported by Eric Blake.
48604
48605 2008-03-31  Jim Meyering  <meyering@redhat.com>
48606
48607         Don't compare actual signbit return values.
48608         * tests/test-strtod.c (main): Rather, compare only their
48609         zero/non-zero nature.
48610
48611 2008-03-31  Eric Blake  <ebb9@byu.net>
48612
48613         More strtod documentation.
48614         * doc/posix-functions/strtod.texi (strtod): Interpret more test
48615         failures as distinct bugs.
48616
48617 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48618
48619         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
48620         Problem reported by Erik Benada in
48621         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
48622
48623 2008-03-30  Bruno Haible  <bruno@clisp.org>
48624
48625         * tests/test-strtod.c: Add comments about which assertion fails on which
48626         platform.
48627         * doc/posix-functions/strtod.texi: Add info about many more platforms.
48628
48629 2008-03-30  Eric Blake  <ebb9@byu.net>
48630
48631         Test signbit behavior on zeros.
48632         * tests/test-signbit.c (test_signbitf): Add tests for zero.
48633         (test_signbitd, test_signbitl): Likewise.
48634
48635         More strtod touchups.
48636         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
48637         sign of negative underflow, for now.  Use .5, not .1.
48638         * doc/posix-functions/strtod.texi (strtod): Mention these
48639         limitations.
48640         Reported by Jim Meyering.
48641
48642 2008-03-30  Bruno Haible  <bruno@clisp.org>
48643
48644         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
48645         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
48646
48647 2008-03-30  Bruno Haible  <bruno@clisp.org>
48648
48649         Avoid failure when attempting to return empty iconv results on some
48650         platforms.
48651         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
48652         allocation, don't report ENOMEM when the resulting string is empty.
48653
48654 2008-03-30  Bruno Haible  <bruno@clisp.org>
48655
48656         Fix buffer overrun.
48657         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
48658         Don't consider the width for tmp_length. Check count against tmp_length
48659         before doing the padding. Ensure enough allocation during padding.
48660
48661 2008-03-30  Eric Blake  <ebb9@byu.net>
48662
48663         strtod touchups.
48664         * lib/strtod.c (strtod): Avoid compiler warnings.
48665         Reported by Jim Meyering.
48666
48667 2008-03-30  Bruno Haible  <bruno@clisp.org>
48668
48669         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
48670         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
48671         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
48672         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
48673         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
48674         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
48675         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
48676         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
48677
48678         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
48679         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
48680         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
48681         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
48682         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
48683         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
48684         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
48685         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
48686
48687         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
48688         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
48689         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
48690         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
48691         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
48692         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
48693         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
48694         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
48695
48696         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
48697         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
48698
48699         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
48700         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
48701
48702         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
48703         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
48704
48705         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
48706         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
48707         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
48708
48709         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
48710         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
48711         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
48712
48713         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
48714         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
48715         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
48716
48717         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
48718         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
48719         * modules/vasprintf (Depends-on): Add EOVERFLOW.
48720
48721         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
48722         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
48723         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
48724         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
48725         (Depends-on): Add EOVERFLOW.
48726         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
48727         (Depends-on): Add EOVERFLOW.
48728         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48729         (Depends-on): Add EOVERFLOW.
48730         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48731         (Depends-on): Add EOVERFLOW.
48732         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48733         (Depends-on): Add EOVERFLOW.
48734         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48735         (Depends-on): Add EOVERFLOW.
48736         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48737         (Depends-on): Add EOVERFLOW.
48738         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48739         (Depends-on): Add EOVERFLOW.
48740
48741         * lib/sprintf.c (EOVERFLOW): Remove fallback.
48742         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
48743         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
48744
48745         * lib/snprintf.c (EOVERFLOW): Remove fallback.
48746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
48747         * modules/snprintf (Depends-on): Add EOVERFLOW.
48748
48749         * lib/poll.c (EOVERFLOW): Remove fallback.
48750         * modules/poll (Depends-on): Add EOVERFLOW.
48751
48752         * lib/getugroups.c (EOVERFLOW): Remove fallback.
48753         * modules/getugroups (Depends-on): Add EOVERFLOW.
48754
48755         * lib/getdelim.c (EOVERFLOW): Remove fallback.
48756         * modules/getdelim (Depends-on): Add EOVERFLOW.
48757
48758         * lib/ftell.c (EOVERFLOW): Remove fallback.
48759         * modules/ftell (Depends-on): Add EOVERFLOW.
48760
48761         * lib/fprintf.c (EOVERFLOW): Remove fallback.
48762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
48763         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
48764
48765         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
48766
48767         * modules/EOVERFLOW-tests: New file.
48768         * tests/test-EOVERFLOW.c: New file.
48769
48770         * modules/EOVERFLOW: New file.
48771         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
48772
48773 2008-03-30  Bruno Haible  <bruno@clisp.org>
48774
48775         Fix bug introduced on 2007-06-10.
48776         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
48777         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
48778
48779 2008-03-30  Bruno Haible  <bruno@clisp.org>
48780
48781         Improve freadseek's efficiency after ungetc.
48782         * lib/freadseek.c: Include freadahead.h.
48783         (freadptrinc): New function, extracted from freadseek.
48784         (freadseek): Use it in a loop. Use freadahead to determine the number
48785         of loop iterations.
48786         * modules/freadseek (Depends-on): Add freadahead.
48787         (configure.ac): Require AC_C_INLINE.
48788
48789 2008-03-30  Bruno Haible  <bruno@clisp.org>
48790
48791         * lib/freadseek.c (freadseek): Don't ignore the return value of
48792         freadptr.
48793
48794 2008-03-29  Eric Blake  <ebb9@byu.net>
48795
48796         Add hex float support.
48797         * modules/strtod (Depends-on): Add c-ctype.
48798         (Link): Mention POW_LIB.
48799         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48800         whitespace between 'e' and exponent.
48801         * tests/test-strtod.c (main): Enable hex float tests.
48802         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48803         now provides.
48804
48805         Document various strtod bugs, with some fixes.
48806         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48807         "-0x", "inf", "nan", and hex constants.
48808         * doc/posix-functions/atof.texi (atof): Likewise.
48809         * modules/stdlib (Makefile.am): Support strtod.
48810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48811         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48812         detect additional strtod bugs.
48813         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48814         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48815         bool where appropriate.  Parse 'inf' and 'nan'.
48816         * tests/test-strtod.c: New file.
48817         * modules/strtod (Depends-on): Add stdbool, stdlib.
48818         (configure.ac): Turn on module indicator.
48819         * modules/strtod-tests: New module.
48820
48821 2008-03-29  Eric Blake  <ebb9@byu.net>
48822
48823         Fix ftell on mingw.
48824         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
48825         * modules/ftell-tests (Depends-on): Add binary-io.
48826         * modules/ftello-tests (Depends-on): Likewise.
48827         * tests/test-ftell.c (main): Enhance test to cover behavior after
48828         ungetc.  Enforce binary mode.
48829         * tests/test-ftello.c (main): Likewise.
48830
48831         Pass test-freadseek on cygwin.
48832         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
48833         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
48834         ungetc buffer.
48835
48836         * tests/test-fflush2.c (main): Fix typo.
48837
48838 2008-03-29  Bruno Haible  <bruno@clisp.org>
48839
48840         * tests/test-fflush2.c (main): Temporarily disable the contents of
48841         this test.
48842         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
48843         Reported by Eric Blake.
48844
48845 2008-03-28  Simon Josefsson  <simon@josefsson.org>
48846
48847         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
48848         (GC_SHA224_DIGEST_SIZE): Add.
48849
48850         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
48851         (gc_hash_digest_length): Likewise.
48852         (gc_hash_buffer): Likewise.
48853
48854 2008-03-25  Bruno Haible  <bruno@clisp.org>
48855
48856         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
48857         detail which gettext release to use.
48858         Reported by Simon Josefsson.
48859
48860 2008-03-26  Jim Meyering  <meyering@redhat.com>
48861
48862         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
48863         * modules/gnumakefile (clean-GNUmakefile): Also, use
48864         test ... && ... || : syntax rather than if-then ... fi.
48865
48866         gnumakefile: Don't double-quote-expand $(VPATH) value.
48867         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
48868
48869 2008-03-24  Eric Blake  <ebb9@byu.net>
48870
48871         Alter GNUmakefile to install into top directory.
48872         * modules/maintainer-makefile: Split, and add dependency...
48873         * modules/gnumakefile: to this new module.
48874         * build-aux/GNUmakefile: Move...
48875         * top/GNUmakefile: ...here.
48876         * build-aux/maint.mk: Move...
48877         * top/maint.mk: ...here.
48878         * MODULES.html.sh (Support for maintaining...): Document new
48879         module.
48880
48881 2008-03-23  Bruno Haible  <bruno@clisp.org>
48882
48883         * gnulib-tool: New options --vc-files, --no-vc-files.
48884         (func_usage): Document them.
48885         (vc_files): New variable.
48886         (func_import): Consider vc_files.
48887         (func_create_testdir): Set vc_files to empty.
48888         Suggested by Jim Meyering and Karl Berry.
48889
48890 2008-03-23  Bruno Haible  <bruno@clisp.org>
48891
48892         Fix regex compilation error on HP-UX 11.
48893         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48894         * modules/regex (Files): Add m4/mbstate_t.m4.
48895         Reported by Ton Voon <ton.voon@altinity.com>.
48896
48897 2008-03-23  Bruno Haible  <bruno@clisp.org>
48898
48899         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48900
48901 2008-03-23  Eric Blake  <ebb9@byu.net>
48902             Bruno Haible  <bruno@clisp.org>
48903
48904         Install files from top/ in the destination directory.
48905         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48906         augmentation also for the files from top/.
48907         (func_import, func_create_testdir): Rewrite file names:
48908         top/filename -> filename.
48909
48910 2008-03-23  Bruno Haible  <bruno@clisp.org>
48911
48912         Tweak "gnulib --version" output.
48913         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48914
48915 2008-03-23  Bruno Haible  <bruno@clisp.org>
48916
48917         Tweak "gnulib --version" output.
48918         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48919         rather than contents of ChangeLog, when possible.
48920
48921 2008-03-21  Eric Blake  <ebb9@byu.net>
48922
48923         More --version tweaks.
48924         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48925         date of last ChangeLog entry.
48926
48927 2008-03-21  Jim Meyering  <meyering@redhat.com>
48928
48929         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48930
48931 2008-03-20  Eric Blake  <ebb9@byu.net>
48932
48933         VPATH fix.
48934         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48935
48936 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48937
48938         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48939         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48940
48941 2008-03-20  Eric Blake  <ebb9@byu.net>
48942
48943         Sync GNUmakefile with coreutils.
48944         * build-aux/GNUmakefile (have-Makefile): Rename...
48945         (_have-Makefile): ...to this, for namespace consideration.
48946         (GNUmakefile.cfg): Include, if present.
48947         (_autoreconf): Define a default.
48948         (_is-dist-target): New rule for rebuilds to pick up intra-release
48949         version.
48950         (maint-cfg.mk): Rename...
48951         (cfg.mk): ...to this.
48952
48953 2008-03-18  Jim Meyering  <meyering@redhat.com>
48954
48955         New script and module: mktempd
48956         * MODULES.html.sh (maint+release support): Add mktempd.
48957         * build-aux/mktempd: New file.
48958         * modules/mktempd: New file.
48959
48960 2008-03-15  Jim Meyering  <meyering@redhat.com>
48961
48962         Undo last change.
48963         * lib/sha1.c, lib/md5.c: 63 != ~63.
48964         Reported by Andreas Schwab.
48965
48966         sha1.c, md5.c: Hoist a redundant expression.
48967         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48968         "ctx->buflen" only once, before calling *_process_block.
48969         * lib/md5.c (md5_process_bytes): Likewise.
48970
48971 2008-03-14  Eric Blake  <ebb9@byu.net>
48972
48973         Bump copyright year in files generated by gnulib-tool.
48974         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48975         gnulib-tool, rather than hard-coding it.
48976
48977         Fix 'gnulib-tool --version' output to work with git.
48978         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48979         (startup): ...here.
48980         (func_version): Use it to invoke git-version-gen, rather than
48981         relying on CVS keyword expansion.  Modernize wording.
48982         (cvsdatestamp, last_checkin_date, version): Kill unused
48983         variables.
48984
48985 2008-03-12  Jim Meyering  <meyering@redhat.com>
48986
48987         Recognize optional cast of the argument to free.
48988         * build-aux/useless-if-before-free: Update regexps.
48989
48990         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48991
48992 2008-03-11  Bruno Haible  <bruno@clisp.org>
48993
48994         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48995         by a single package.
48996         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48997         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48998         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48999         Reported by Sam Steingold <sds@gnu.org>.
49000
49001 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49002
49003         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
49004         repositories.
49005
49006 2008-03-11  Bruno Haible  <bruno@clisp.org>
49007
49008         Avoid conflicts between local macro definitions.
49009         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49010         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
49011
49012 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
49013             Bruno Haible  <bruno@clisp.org>
49014
49015         Make va_copy work with some version of xlc on AIX 5.1.
49016         * lib/stdarg.in.h: New file.
49017         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
49018         On AIX, use a <stdarg.h> file substitute.
49019         * modules/stdarg (Files): Add lib/stdarg.in.h.
49020         (Depends-on): Add include_next.
49021         (Makefile.am): Build a stdarg.h substitute if requested.
49022         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
49023
49024 2008-03-10  Bruno Haible  <bruno@clisp.org>
49025
49026         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
49027         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49028         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49029
49030 2008-03-10  Bruno Haible  <bruno@clisp.org>
49031
49032         * modules/stdlib (Depends-on): Add include_next, remove
49033         absolute-header.
49034
49035 2008-03-09  Bruno Haible  <bruno@clisp.org>
49036
49037         * lib/freadahead.h (freadahead): Document more precisely.
49038         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
49039         the sum of both buffer sizes.
49040         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
49041         * NEWS: Document the change.
49042
49043 2008-03-09  Bruno Haible  <bruno@clisp.org>
49044
49045         Extend freadptr to return also the buffer size.
49046         * lib/freadptr.h (freadptr): Add sizep argument.
49047         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
49048         (freadptr): Add sizep argument. Determine buffer size like freadahead
49049         does.
49050         * tests/test-freadptr.c: Don't include freadahead.h.
49051         (main): Adapt for new calling convention of freadptr.
49052         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
49053         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
49054         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
49055         tests/test-freadptr2.sh.
49056         (Depends): Remove freadahead.
49057         (TESTS): Add test-freadptr2.sh.
49058         (check_PROGRAMS): Add test-freadptr2.
49059
49060 2008-03-09  Bruno Haible  <bruno@clisp.org>
49061
49062         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
49063         Report and solution by Simon Josefsson.
49064
49065 2008-03-06  Bruno Haible  <bruno@clisp.org>
49066
49067         Make fflush after ungetc work on BSD platforms.
49068         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
49069         * tests/test-fflush2.c: New file.
49070         * tests/test-fflush2.sh: New file.
49071         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
49072         tests/test-fflush2.c.
49073         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
49074         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
49075
49076 2008-03-06  Eric Blake  <ebb9@byu.net>
49077
49078         Likewise for ftello.
49079         * modules/ftello (Dependencies): Add extensions.
49080         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
49081
49082 2008-03-06  Bruno Haible  <bruno@clisp.org>
49083
49084         * modules/fseeko (Dependencies): Add extensions.
49085         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
49086         Needed on glibc systems.
49087
49088 2008-03-06  Bruno Haible  <bruno@clisp.org>
49089
49090         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
49091         email address.
49092         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49093
49094 2008-03-06  Bruno Haible  <bruno@clisp.org>
49095
49096         * users.txt: Add libgnupdf.
49097
49098 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49099
49100         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
49101         (Header File Substitutes, Function Substitutes,
49102         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
49103         (Build robot for gnulib): Fix typo.
49104
49105 2008-03-06  Bruno Haible  <bruno@clisp.org>
49106
49107         * doc/gnulib-tool.texi (VCS Issues): Small updates.
49108         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49109
49110 2008-03-06  Bruno Haible  <bruno@clisp.org>
49111
49112         * doc/func.texi: New file, extracted from doc/gnulib.texi.
49113         * doc/gnulib.texi: Include it.
49114
49115 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49116
49117         * modules/func (License): Change license to unlimited; there was
49118         no LGPL parts in the module anyway.
49119
49120 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49121
49122         * modules/__func__: Renamed to modules/func.
49123         * modules/__func__-tests: Renamed to modules/func-tests.
49124         * tests/test-__func__.c: Renamed to tests/test-func.c.
49125         * m4/__func__.m4: Renamed to m4/func.m4.
49126         * doc/gnulib.texi (__func__): Section renamed to func.
49127         Suggested by Eric Blake <ebb9@byu.net>.
49128
49129 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49130
49131         * doc/gnulib.texi (__func__): Use C99 terminology when talking
49132         about __func__.  Make example self-contained.  Suggested by Eric
49133         Blake <ebb9@byu.net>.
49134
49135         * tests/test-__func__.c (main): Avoid extraneous () around __func.
49136         Suggested by Eric Blake <ebb9@byu.net>.
49137
49138 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49139
49140         * modules/__func__: New file.
49141         * modules/__func__-tests: New file.
49142         * tests/test-__func__.c: New file.
49143         * m4/__func__.m4: New file.
49144         * doc/gnulib.texi (__func__): Document __func__ module.
49145
49146 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49147
49148         * modules/byteswap (License): Re-license as LGPLv2+.
49149
49150 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49151
49152         * doc/Makefile: Add pdf target.
49153
49154 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49155
49156         * modules/inline (License): Use 'unlimited', since there are only
49157         *.m4 files in this module.
49158
49159 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
49160             Bruno Haible  <bruno@clisp.org>
49161
49162         Add support for HP C 7.1 on OpenVMS 8.3.
49163         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
49164
49165 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
49166
49167         Update VMS specifics.
49168         * lib/getopt.c [VMS]: Remove include of unixlib.h.
49169
49170 2008-03-02  Jim Meyering  <meyering@redhat.com>
49171
49172         Remove the last dependency on the "free" module.
49173         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
49174         Reported by Bob Proulx.
49175
49176         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
49177
49178         Remove useless "if" tests before free.  Deprecate "free" module.
49179         * doc/posix-functions/free.texi: Mention that this
49180         module is no longer useful.
49181         * modules/free (Notice): Say this module is obsolete.
49182         * modules/readutmp (Depends-on): Remove free.
49183         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
49184         * lib/putenv.c (putenv): Likewise.
49185         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
49186         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
49187         * tests/test-c-strcasestr.c (main): Likewise.
49188         * tests/test-c-strstr.c (main): Likewise.
49189         * tests/test-mbscasestr1.c (main): Likewise.
49190         * tests/test-mbscasestr2.c (main): Likewise.
49191         * tests/test-mbsstr1.c (main): Likewise.
49192         * tests/test-mbsstr2.c (main): Likewise.
49193         * tests/test-memmem.c (main): Likewise.
49194         * tests/test-strcasestr.c (main): Likewise.
49195         * tests/test-striconv.c (main): Likewise.
49196         * tests/test-striconveh.c (main): Likewise.
49197         * tests/test-striconveha.c (main): Likewise.
49198         * tests/test-strstr.c (main): Likewise.
49199
49200         * build-aux/git-version-gen: Adjust a comment and the Usage string.
49201
49202         bootstrap: sync from coreutils again
49203         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
49204
49205 2008-03-01  Jim Meyering  <meyering@redhat.com>
49206
49207         bootstrap: sync from coreutils
49208         * build-aux/bootstrap (update_po_files): Copy a .po file into place
49209         also when the target doesn't exist.
49210
49211 2008-03-01  Eric Blake  <ebb9@byu.net>
49212
49213         Fix bugs in last patch.
49214         * lib/memchr2.c (memchr2): Fix typo.
49215         * tests/test-memchr2.c: Test previous bug, and don't use GNU
49216         extension.
49217         Reported by Bruce Korb.
49218
49219         New module 'memchr2'.
49220         * modules/memchr2: New file.
49221         * modules/memchr2-tests: Likewise.
49222         * lib/memchr2.h: Likewise.
49223         * lib/memchr2.c: Likewise, based on memchr.c.
49224         * tests/test-memchr2.c: New test.
49225         * MODULES.html.sh (String handling): Add memchr2.
49226
49227 2008-02-29  Bruno Haible  <bruno@clisp.org>
49228
49229         * modules/freadseek-tests: New file.
49230         * tests/test-freadseek.sh: New file.
49231         * tests/test-freadseek.c: New file.
49232
49233         New module 'freadseek'.
49234         * modules/freadseek: New file.
49235         * lib/freadseek.h: New file.
49236         * lib/freadseek.c: New file.
49237         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
49238
49239 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49240
49241         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
49242         wydawca.
49243
49244         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
49245         program_invocation_name and program_invocation_short_name are
49246         present.
49247
49248 2008-02-28  Bruno Haible  <bruno@clisp.org>
49249
49250         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
49251         * tests/test-freadptr.sh: Also test non-seekable stdin.
49252
49253 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
49254
49255         * build-aux/bootstrap (source_base, m4_base)
49256         (doc_base, tests_base): New variables.
49257         (gnulib_tool_options): Do not hardcode base directories, use
49258         the above variables instead.
49259
49260 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
49261
49262         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
49263
49264 2008-02-28  Bruno Haible  <bruno@clisp.org>
49265
49266         * modules/freadptr-tests: New file.
49267         * tests/test-freadptr.sh: New file.
49268         * tests/test-freadptr.c: New file.
49269
49270         New module 'freadptr'.
49271         * modules/freadptr: New file.
49272         * lib/freadptr.h: New file.
49273         * lib/freadptr.c: New file.
49274         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
49275
49276 2008-02-26  Karl Berry  <karl@freefriends.org>
49277
49278         Sync from Libtool:
49279         * libltdl/argz.c (argz_add, argz_count): New functions.
49280         * libltdl/argz.in.h: Declare them.
49281         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
49282
49283 2008-02-22  Bruno Haible  <bruno@clisp.org>
49284
49285         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
49286         is a pointer type.  Needed for HP-UX 10.
49287         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
49288         * doc/posix-functions/gmtime_r.texi: Likewise.
49289         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49290
49291 2008-02-24  Bruno Haible  <bruno@clisp.org>
49292
49293         * modules/environ-tests: New file.
49294         * tests/test-environ.c: New file.
49295
49296         New module 'environ'.
49297         * modules/environ: New file.
49298         * lib/unistd.in.h (environ): New declaration.
49299         * m4/environ.m4: New file.
49300         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
49301         after use.
49302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
49303         HAVE_DECL_ENVIRON.
49304         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
49305         HAVE_DECL_ENVIRON.
49306         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
49307         wrong claim that 'environ' is missing on some systems.
49308         * modules/execute (Depends-on): Add environ.
49309         * lib/execute.c (environ): Remove fallback declaration.
49310         * modules/pipe (Depends-on): Add environ.
49311         * lib/pipe.c (environ): Remove fallback declaration.
49312         * modules/setenv (Depends-on): Add environ.
49313         * lib/setenv.c (environ): Remove fallback declaration.
49314         * modules/unsetenv (Depends-on): Add environ.
49315         * lib/unsetenv.c (environ): Remove fallback declaration.
49316         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
49317         m4/environ.m4.
49318         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
49319         (gl_PREREQ_UNSETENV): Likewise.
49320
49321 2008-02-24  Bruno Haible  <bruno@clisp.org>
49322
49323         * doc/posix-functions/environ.texi: Document the MacOS X problem.
49324
49325 2008-02-20  Bob Proulx  <bob@proulx.com>
49326
49327         Enable use of older two part flavor 'git describe'.
49328         * build-aux/git-version-gen: If using the older two part flavor of
49329         git version then recreate the third part now present in the
49330         newer three part flavor of git describe.
49331
49332 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
49333
49334         * lib/fts.c (fts_build): Typo correction to comment.
49335
49336 2008-02-17  Bruno Haible  <bruno@clisp.org>
49337
49338         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
49339         generating no-op conflicts.
49340
49341 2008-02-17  Bruno Haible  <bruno@clisp.org>
49342
49343         Speed up by 10%.
49344         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
49345         result_entries, rather than an index-based loop.
49346
49347 2008-02-17  Bruno Haible  <bruno@clisp.org>
49348
49349         Speed up by 25%.
49350         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
49351         'hashcode_cached'.
49352         (entry_create): New function.
49353         (entry_hashcode): Use the cached hashcode if possible.
49354         (read_changelog_file, try_split_merged_entry): Use entry_create.
49355
49356 2008-02-17  Bruno Haible  <bruno@clisp.org>
49357
49358         Speed up from O(n^2) to O(n) for long ChangeLog files.
49359         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
49360         (read_changelog_file): Change implementation of entries_reversed list
49361         to rbtreehash.
49362         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
49363
49364 2008-02-17  Bruno Haible  <bruno@clisp.org>
49365
49366         New option --split-merged-entry.
49367         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
49368         (find_paragraph_end, try_split_merged_entry): New functions.
49369         (long_options): Add option --split-merged-entry.
49370         (usage): Document option --split-merged-entry.
49371         (main): Implement option --split-merged-entry.
49372         Reported by Eric Blake.
49373
49374 2008-02-17  Bruno Haible  <bruno@clisp.org>
49375
49376         * lib/git-merge-changelog.c: Include c-strstr.h.
49377         (main): Support the "git pull --rebase" situation.
49378         * modules/git-merge-changelog (Depends-on): Add c-strstr.
49379         Reported by Eric Blake.
49380
49381 2008-02-16  Eric Blake  <ebb9@byu.net>
49382
49383         Avoid doubling \ in common case of "c-maybe" quoting style.
49384         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
49385         eliding outer quotes.
49386         * lib/quotearg.h: Document this.
49387         * tests/test-quotearg.c (result_strings, inputs, results_g)
49388         (flag_results, locale_results): Test it by adding a new string to
49389         each test group.
49390         (compare_strings): Test new string.
49391
49392 2008-02-13  Eric Blake  <ebb9@byu.net>
49393
49394         Avoid trigraph quoting in default output.
49395         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
49396         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
49397         unless explicitly requested.
49398         * tests/test-quotearg.c (flag_results, main): Add additional tests.
49399
49400 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
49401
49402         Don't rely on signed integer overflowing to negative value.
49403         * lib/getugroups.c (getugroups): Include <limits.h>.
49404         Instead, compare against INT_MAX, and increment only if the test passes.
49405
49406 2008-02-13  Jim Meyering  <meyering@redhat.com>
49407         and Eric Blake  <ebb9@byu.net>
49408
49409         Avoid shadowing warning and compile errors on Linux.
49410         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
49411         forwarding macros on Linux.
49412         (dcgettext): Define a stub, for Linux.
49413         (results_g, main): Avoid warnings.
49414
49415 2008-02-12  Eric Blake  <ebb9@byu.net>
49416
49417         Silence warning in last patch.
49418         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
49419
49420         Quotearg part 4: add tests, fix c-maybe colon quoting.
49421         * lib/quotearg.h: Improve documentation.
49422         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
49423         escapes when adding outer quotes.  When quoting trigraphs, use
49424         valid C notation.  When quoting NUL, omit extra characters if next
49425         character is not digit.  Alter prototype.
49426         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
49427         callers.
49428         * modules/quotearg-tests: New module.
49429         * tests/test-quotearg.c: New test.
49430
49431 2008-02-07  Eric Blake  <ebb9@byu.net>
49432
49433         Quotearg part 3: add flag to control outer quote elision.
49434         * lib/quotearg.h (c_maybe_quoting_style): New style.
49435         (enum quoting_flags): Better documentation of flags.
49436         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
49437         c-maybe style.
49438         (quotearg_buffer_restyled): Handle new flag to elide outer
49439         quotes.
49440
49441         Quotearg part 2: add flag that can control NUL elision.
49442         * lib/quotearg.h (set_quoting_flags): New prototype.
49443         * lib/quotearg.c (struct quoting_options): Add flag field.
49444         (set_quoting_flags): New function.
49445         (quotearg_buffer_restyled): Add flags parameter.
49446         (quotearg_alloc_mem): Set the flag if length cannot be returned.
49447         (quotearg_n_options): Set the flag, since length cannot be
49448         returned.
49449         (quoting_options_from_style): Default flags correctly.
49450
49451         Quotearg part 1: more wrappers, restore quotearg_char state.
49452         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
49453         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
49454         (quotearg_colon_mem): New wrappers.
49455         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
49456         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
49457         functions.
49458         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
49459         (quotearg_colon_mem): New functions.
49460
49461 2008-02-11  Bruno Haible  <bruno@clisp.org>
49462
49463         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
49464         library in the current directory: it does not work with parallel make.
49465         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49466
49467 2008-02-11  Bruno Haible  <bruno@clisp.org>
49468
49469         * .gitattributes: New file.
49470
49471 2008-02-11  Jim Meyering  <meyering@redhat.com>
49472
49473         useless-if-before-free: Fix reversed exit values.
49474         * build-aux/useless-if-before-free: Use correct values
49475         for EXIT_MATCH and EXIT_NO_MATCH.
49476
49477         * build-aux/useless-if-before-free: Close stdout carefully.
49478
49479 2008-02-10  Bruno Haible  <bruno@clisp.org>
49480
49481         New module 'git-merge-changelog'.
49482         * modules/git-merge-changelog: New file.
49483         * lib/git-merge-changelog.c: New file.
49484
49485 2008-02-10  Jim Meyering  <meyering@redhat.com>
49486
49487         useless-if-before-free: New option: --list (-l).
49488
49489         useless-if-before-free: Don't exit immediately upon open failure.
49490         * build-aux/useless-if-before-free: Exit 2 for errors.
49491         Upon failure to open a file, don't exit immediately.
49492         Rather, just warn and continue with any remaining files.
49493
49494 2008-02-10  Bruno Haible  <bruno@clisp.org>
49495
49496         New abstract list operation 'node_set_value'.
49497         * lib/gl_list.h (gl_list_node_set_value): New function.
49498         (struct gl_list_implementation): New field node_set_value.
49499         * lib/gl_list.c (gl_list_node_set_value): New function.
49500         * lib/gl_array_list.c (gl_array_node_set_value): New function.
49501         (gl_array_list_implementation): Update.
49502         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
49503         (gl_carray_list_implementation): Update.
49504         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
49505         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49506         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49507         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
49508         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49509         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49510         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49511         Update.
49512         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49513         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
49514         (gl_sublist_list_implementation): Update.
49515
49516 2008-02-10  Bruno Haible  <bruno@clisp.org>
49517
49518         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
49519         Needed when ELEMENT is #defined to 'some_type *'.
49520
49521 2008-02-10  Jim Meyering  <meyering@redhat.com>
49522
49523         New script and module: useless-if-before-free
49524         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
49525         * build-aux/useless-if-before-free: New file.
49526         * modules/useless-if-before-free: New file.
49527
49528         * build-aux/gitlog-to-changelog: Use committer date, not author date.
49529
49530         xstrtol_error: Fix typo.
49531         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
49532         s/exit_failure/exit_status/.
49533
49534 2008-02-09  Jim Meyering  <meyering@redhat.com>
49535
49536         New script and module: gitlog-to-changelog
49537         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
49538         * modules/gitlog-to-changelog: New file.
49539         * build-aux/gitlog-to-changelog: New file.
49540
49541 2008-02-08  Jim Meyering  <meyering@redhat.com>
49542
49543         Avoid two "parameter unused" warnings.
49544         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
49545         Mark "st" as used.
49546
49547         Use "git COMMAND", not "git-COMMAND".
49548         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
49549         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
49550         * build-aux/git-version-gen: Use "git status", not "git-status".
49551
49552 2008-02-07  Bruno Haible  <bruno@clisp.org>
49553
49554         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
49555         Avoids a crash on Windows Vista.
49556         Reported by Adam Strzelecki <ono@java.pl> via
49557         Simon Josefsson <simon@josefsson.org>.
49558
49559 2008-02-06  Bruno Haible  <bruno@clisp.org>
49560
49561         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
49562         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
49563         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
49564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
49565         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49566         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49567         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
49568         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
49569         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49570         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49571         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49572         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49573         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49574         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49575         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49576         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
49577         left-adjust flag.
49578         * tests/test-snprintf-posix.h (test_function): Likewise.
49579         * tests/test-sprintf-posix.h (test_function): Likewise.
49580         * tests/test-vasprintf-posix.c (test_function): Likewise.
49581         * doc/posix-functions/fprintf.texi: Update.
49582         * doc/posix-functions/printf.texi: Update.
49583         * doc/posix-functions/snprintf.texi: Update.
49584         * doc/posix-functions/sprintf.texi: Update.
49585         * doc/posix-functions/vfprintf.texi: Update.
49586         * doc/posix-functions/vprintf.texi: Update.
49587         * doc/posix-functions/vsnprintf.texi: Update.
49588         * doc/posix-functions/vsprintf.texi: Update.
49589         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49590
49591 2008-02-06  Bruno Haible  <bruno@clisp.org>
49592
49593         Fix bug introduced on 2008-01-26.
49594         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
49595
49596 2008-02-06  Bruno Haible  <bruno@clisp.org>
49597
49598         Fix bug introduced on 2007-06-10.
49599         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
49600         !NEED_PRINTF_FLAG_ZERO.
49601
49602 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
49603
49604         getloadavg: use libperfstat on AIX5
49605         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
49606
49607 2008-02-03  Bruno Haible  <bruno@clisp.org>
49608
49609         * lib/diffseq.h: Add comments about required #includes.
49610         Reported by Michael Biggs <gnulib@doubleplum.net>.
49611
49612 2008-02-01  Bruno Haible  <bruno@clisp.org>
49613
49614         * users.txt: Add gnuit.
49615
49616 2008-01-31  Bruno Haible  <bruno@clisp.org>
49617
49618         * lib/md4.c (set_uint32): Mark as inline.
49619         * lib/md5.c (set_uint32): Likewise.
49620         * lib/sha1.c (set_uint32): Likewise.
49621         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
49622         * m4/md5.m4 (gl_MD5): Likewise.
49623         * m4/sha1.m4 (gl_SHA1): Likewise.
49624
49625 2008-01-31  Jim Meyering  <meyering@redhat.com>
49626
49627         Use "sizeof VAR", rather than a literal "4".
49628         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
49629         * lib/md4.c (md4_read_ctx): Likewise.
49630         * lib/sha1.c (sha1_read_ctx): Likewise.
49631
49632 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49633
49634         * tests/test-sha1.c: New file, based on test-md5.c.
49635
49636         * modules/crypto/sha1-tests: New file.
49637
49638 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49639
49640         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
49641
49642 2008-01-31  Jim Meyering  <meyering@redhat.com>
49643
49644         Prefer "sizeof v" over the equivalent "4".
49645         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
49646         * lib/md5.c (set_uint32): Likewise.
49647         * lib/sha1.c (set_uint32): Likewise.
49648
49649 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49650
49651         * lib/sha1.c (set_uint32): Mark function as static.
49652
49653 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49654
49655         md2: clarify comments to say that alignment is not required.
49656         * lib/md2.h: Remove warning about alignment in comment.
49657         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
49658         never been required.
49659
49660 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49661
49662         md4: adapt alignment constraint fix from sha1.
49663         * lib/md4.c (set_uint32): New function, from sha1.c
49664         (md4_read_ctx): Use it.
49665         (md4_finish_ctx): Doc fix.
49666         * lib/md4.h: Doc fix.
49667
49668 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49669
49670         md5: adapt alignment constraint fix from sha1.
49671         * lib/md5.c (set_uint32): New function, from sha1.c
49672         (md5_read_ctx): Use it.
49673         (md5_finish_ctx): Doc fix.
49674         * lib/md5.h: Doc fix.
49675
49676 2008-01-30  Peter Palfrader  <weasel@debian.org>
49677
49678         sha1: remove the result buffer alignment constraint
49679         * lib/sha1.c (set_uint32): New function.
49680         (sha1_read_ctx): Rewrite to remove the result buffer alignment
49681         constraint.
49682         (sha1_finish_ctx): Remove comment warning about alignment constraint.
49683         * lib/sha1.h: Likewise.
49684
49685 2008-01-30  Andreas Schwab  <schwab@suse.de>
49686             Bruno Haible  <bruno@clisp.org>
49687
49688         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
49689         correct definition of LDBL_MIN_EXP.
49690
49691 2008-01-30  Karl Berry  <karl@gnu.org>
49692
49693         * config/srclist-update: try to preserve x bit on updates.
49694         * config/srclistvars.sh: update for karl.
49695
49696 2008-01-29  Jim Meyering  <meyering@redhat.com>
49697
49698         vasnprintf.c: Avoid warning about unused label
49699         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
49700         "overflow" label definition and associated code with the
49701         same cpp condition that guards the sole use of that label.
49702
49703 2008-01-26  Bruno Haible  <bruno@clisp.org>
49704
49705         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
49706         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
49707         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
49708         * lib/isnanl-nolibm.h (isnanl): Likewise.
49709         Reported by Paul Eggert <eggert@cs.ucla.edu>.
49710
49711 2008-01-26  Bruno Haible  <bruno@clisp.org>
49712
49713         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
49714         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
49715
49716 2008-01-26  Bruno Haible  <bruno@clisp.org>
49717
49718         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
49719         GCC >= 4.0 built-in.
49720         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
49721
49722 2008-01-26  Bruno Haible  <bruno@clisp.org>
49723
49724         Rename isnan, applicable to 'double' only, to isnand.
49725         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
49726         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
49727         (configure.ac): Update.
49728         (Include): Replace "isnan.h" with "isnand.h".
49729         * m4/isnand.m4: Renamed from m4/isnan.m4.
49730         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
49731         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
49732         instead of isnan.c.
49733         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
49734         instead of HAVE_ISNAN_IN_LIBC.
49735         (isnand): Renamed from isnan.
49736         * lib/isnand.c: New file.
49737         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
49738         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
49739         (Makefile.am): Update.
49740         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
49741         Include isnand.h instead of isnan.h.
49742         (main): Test isnand instead of isnan.
49743         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
49744         isnan-nolibm.
49745         * modules/frexp (Depends-on): Likewise.
49746         * modules/frexp-tests (Depends-on): Likewise.
49747         * modules/frexp-nolibm (Depends-on): Likewise.
49748         * modules/frexp-nolibm-tests (Depends-on): Likewise.
49749         * modules/isfinite (Depends-on): Likewise.
49750         * modules/round-tests (Depends-on): Likewise.
49751         * modules/signbit (Depends-on): Likewise.
49752         * modules/signbit-tests (Depends-on): Likewise.
49753         * modules/snprintf-posix (Depends-on): Likewise.
49754         * modules/sprintf-posix (Depends-on): Likewise.
49755         * modules/trunc-tests (Depends-on): Likewise.
49756         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49757         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49758         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49759         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49760         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49761         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49762         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49763         * modules/vasnprintf-posix (Depends-on): Likewise.
49764         * modules/vasprintf-posix (Depends-on): Likewise.
49765         * modules/vfprintf-posix (Depends-on): Likewise.
49766         * modules/vsnprintf-posix (Depends-on): Likewise.
49767         * modules/vsprintf-posix (Depends-on): Likewise.
49768         * lib/frexp.c: Include isnand.h instead of isnan.h.
49769         (ISNAN): Set to isnand instead of isnan.
49770         * lib/isfinite.c: Include isnand.h instead of isnan.h.
49771         (gl_isfinited): Use isnand instead of isnan.
49772         * lib/signbitd.c: Include isnand.h instead of isnan.h.
49773         (gl_signbitd): Use isnand instead of isnan.
49774         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
49775         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
49776         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
49777         (main): Use isnand instead of isnan.
49778         * tests/test-round1.c: Include isnand.h.
49779         (main): Use isnand instead of isnan.
49780         * tests/test-round2.c: Include isnand.h instead of isnan.h.
49781         (ISNAN): Set to isnand instead of isnan.
49782         * tests/test-trunc1.c: Include isnand.h.
49783         (main): Use isnand instead of isnan.
49784         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
49785         (equal): Use isnand instead of isnan.
49786         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
49787         isnand-nolibm.
49788         * NEWS: Mention the change.
49789
49790 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49791             Bruno Haible  <bruno@clisp.org>
49792
49793         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
49794         the GCC builtins for signbits are present and set
49795         REPLACE_SIGNBIT_USING_GCC if so.
49796         * lib/math.in.h (signbit): Define using GCC builtins if
49797         REPLACE_SIGNBIT_USING_GCC is set.
49798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49799         REPLACE_SIGNBIT_USING_GCC.
49800         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49801
49802 2008-01-25  Jim Meyering  <meyering@redhat.com>
49803
49804         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49805         * lib/poll.c: Include <config.h>, not "config.h".
49806         * tests/test-getaddrinfo.c: Likewise.
49807
49808 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49809
49810         * modules/sockets-tests: New file.
49811
49812 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49813
49814         * modules/sockets: New module, can be used to call WSA_Startup and
49815         WSA_Cleanup when needed.
49816
49817         * lib/sockets.h, lib/sockets.c: New files.
49818
49819         * m4/sockets.m4: New file.
49820
49821         * tests/test-sockets.c: New file.
49822
49823 2008-01-19  Bruno Haible  <bruno@clisp.org>
49824
49825         * doc/posix-headers: Renamed from doc/headers.
49826         * doc/posix-functions: Renamed from doc/functions.
49827         * doc/gnulib.texi: Update.
49828
49829 2008-01-19  Bruno Haible  <bruno@clisp.org>
49830
49831         * doc/glibc-functions/strcasestr.texi: Include contents of
49832         doc/functions/strcasestr.texi, fixing the list of platforms.
49833         * doc/functions/strcasestr.texi: Remove file.
49834
49835 2008-01-19  Bruno Haible  <bruno@clisp.org>
49836
49837         * doc/glibc-functions/memmem.texi: Include contents of
49838         doc/functions/memmem.texi.
49839         * doc/functions/memmem.texi: Remove file.
49840
49841 2008-01-18  Bruno Haible  <bruno@clisp.org>
49842
49843         * doc/glibc-functions/*.texi: New files.
49844         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
49845         to use the new files.
49846
49847 2008-01-17  Bruno Haible  <bruno@clisp.org>
49848
49849         * tests/test-gethostname.c (main): Fix printf statement.
49850
49851 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49852
49853         * modules/gethostname-tests: New file.
49854
49855         * tests/test-gethostname.c: New file.
49856
49857 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49858
49859         * lib/gethostname.c: Include string.h unconditionally, strncpy is
49860         used by the UNAME case.  Reported by Bruno Haible
49861         <bruno@clisp.org>.
49862
49863 2008-01-17  Eric Blake  <ebb9@byu.net>
49864
49865         Convert c-strcasestr to be more efficient.
49866         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
49867         (Depends-on): Add c-strcase, remove malloca, strnlen.
49868         * tests/test-c-strcasestr.c (main): Enhance test.
49869         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
49870
49871 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49872
49873         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
49874         Use it in creating po/Makevars.
49875
49876 2008-01-15  Simon Josefsson  <simon@josefsson.org>
49877
49878         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
49879         Applications that requires it should initialize libgcrypt
49880         manually.
49881
49882 2008-01-16  Simon Josefsson  <simon@josefsson.org>
49883
49884         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49885
49886 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49887
49888         Fix problem with getdate on mingw32 reported by Simon Josefsson
49889         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49890         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49891         tzname", when deciding whether to declare tzname.
49892         * lib/strftime.c (tzname): Likewise.
49893
49894 2008-01-15  Bruno Haible  <bruno@clisp.org>
49895
49896         Work around a MacOS X 10.5 bug in frexpl().
49897         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49898         * doc/functions/frexpl.texi: Document the bug.
49899         Reported by Elias Pipping <pipping@gentoo.org>.
49900
49901 2008-01-14  Eric Blake  <ebb9@byu.net>
49902
49903         Touch up previous patch.
49904         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49905         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49906
49907         Convert strcasestr module to use Two-Way algorithm.
49908         * modules/strcasestr-simple: New module, based on the old
49909         strcasestr, but with Two-Way rather than KMP.
49910         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49911         * lib/string.in.h (rpl_strcasestr): Declare.
49912         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49913         performance.
49914         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49915         * modules/string (Makefile.am): Support strcasestr.
49916         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49917         * modules/strcasestr-tests (Depends-on): Check for alarm.
49918         * tests/test-strcasestr.c: Augment test.
49919         * lib/str-two-way.h: Clean up stray macro.
49920         * NEWS: Document new module.
49921         * MODULES.html.sh (string handling): Likewise.
49922         * doc/functions/strcasestr.texi: New file.
49923         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49924         here, since it is not a POSIX function.
49925
49926 2008-01-14  Colin Watson  <cjwatson@debian.org>
49927             Bruno Haible  <bruno@clisp.org>
49928
49929         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49930         works fine; if not, set REPLACE_STRSIGNAL.
49931         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49932         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49933         REPLACE_STRSIGNAL.
49934         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49935         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49936         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49937
49938 2008-01-14  Bruno Haible  <bruno@clisp.org>
49939
49940         * modules/strsignal (Include): Change to <string.h>.
49941
49942 2008-01-14  Colin Watson  <cjwatson@debian.org>
49943
49944         * modules/argp (Notice): Add a notice recommending to change
49945         XGETTEXT_OPTIONS.
49946         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49947
49948 2008-01-13  Colin Watson  <cjwatson@debian.org>
49949
49950         * modules/strsignal-tests: New file.
49951         * tests/test-strsignal.c: New file.
49952
49953         * lib/strsignal.c: New file, from glibc with modifications.
49954         * lib/siglist.h: New file, from glibc with modifications.
49955         * lib/string.in.h (strsignal): New declaration.
49956         * m4/strsignal.m4: New file.
49957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49958         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49959         * modules/strsignal: New file.
49960         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49961         HAVE_DECL_STRSIGNAL.
49962
49963 2008-01-13  Bruno Haible  <bruno@clisp.org>
49964
49965         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49966         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49967         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49968         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49969
49970 2008-01-13  Bruno Haible  <bruno@clisp.org>
49971
49972         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49973         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49974         * lib/argp.h (__attribute__): Likewise.
49975         * lib/c-stack.c (__attribute__): Likewise.
49976         * lib/error.h (__attribute__): Likewise.
49977         * lib/fts.c (__attribute__): Likewise.
49978         * lib/openat.h (__attribute__): Likewise.
49979         * lib/stdio.in.h (__attribute__): Likewise.
49980         * lib/string.in.h (__attribute__): Likewise.
49981         * lib/utimens.c (__attribute__): Likewise.
49982         * lib/vasnprintf.h (__attribute__): Likewise.
49983         * lib/xalloc.h (__attribute__): Likewise.
49984         * lib/xprintf.h (__attribute__): Likewise.
49985         * lib/xstrtol.h (__attribute__): Likewise.
49986         * lib/xvasprintf.h (__attribute__): Likewise.
49987
49988 2008-01-12  Bruno Haible  <bruno@clisp.org>
49989
49990         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49991         * doc/glibc-headers/a.out.texi: New file.
49992         * doc/glibc-headers/aliases.texi: New file.
49993         * doc/glibc-headers/alloca.texi: New file.
49994         * doc/glibc-headers/ar.texi: New file.
49995         * doc/glibc-headers/argp.texi: New file.
49996         * doc/glibc-headers/argz.texi: New file.
49997         * doc/glibc-headers/byteswap.texi: New file.
49998         * doc/glibc-headers/crypt.texi: New file.
49999         * doc/glibc-headers/endian.texi: New file.
50000         * doc/glibc-headers/envz.texi: New file.
50001         * doc/glibc-headers/err.texi: New file.
50002         * doc/glibc-headers/error.texi: New file.
50003         * doc/glibc-headers/execinfo.texi: New file.
50004         * doc/glibc-headers/fpu_control.texi: New file.
50005         * doc/glibc-headers/fstab.texi: New file.
50006         * doc/glibc-headers/fts.texi: New file.
50007         * doc/glibc-headers/getopt.texi: New file.
50008         * doc/glibc-headers/ieee754.texi: New file.
50009         * doc/glibc-headers/ifaddrs.texi: New file.
50010         * doc/glibc-headers/libintl.texi: New file.
50011         * doc/glibc-headers/mcheck.texi: New file.
50012         * doc/glibc-headers/mntent.texi: New file.
50013         * doc/glibc-headers/obstack.texi: New file.
50014         * doc/glibc-headers/paths.texi: New file.
50015         * doc/glibc-headers/printf.texi: New file.
50016         * doc/glibc-headers/pty.texi: New file.
50017         * doc/glibc-headers/resolv.texi: New file.
50018         * doc/glibc-headers/shadow.texi: New file.
50019         * doc/glibc-headers/sysexits.texi: New file.
50020         * doc/glibc-headers/ttyent.texi: New file.
50021
50022 2008-01-12  Jim Meyering  <meyering@redhat.com>
50023
50024         announce-gen: emit Gnulib's git-based version string.
50025         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
50026         New option --gnulib-version=V, where V is expected to be
50027         the output of running git describe in the gnulib directory.
50028         (get_tool_versions): Request feedback on xdelta.  I suspect it's
50029         not useful, and plan to stop publishing an xdelta file with each
50030         coreutils release.
50031
50032         * build-aux/announce-gen: Also check for lzma-compressed files.
50033
50034 2008-01-11  Bruno Haible  <bruno@clisp.org>
50035
50036         * tests/test-memmem.c (main): Increase maximum allowed time.
50037         * tests/test-strstr.c (main): Likewise.
50038
50039 2008-01-11  Bruno Haible  <bruno@clisp.org>
50040
50041         * doc/functions/memmem.texi: Add more precisions about platforms.
50042         * doc/functions/strstr.texi: Likewise.
50043
50044 2008-01-10  Eric Blake  <ebb9@byu.net>
50045
50046         * m4/strstr.m4: Delete cruft from copy-n-paste.
50047         Reported by Bruno Haible.
50048
50049 2008-01-10  Bruno Haible  <bruno@clisp.org>
50050
50051         Make c-strstr rely on strstr.
50052         * lib/c-strstr.c: Don't include str-kmp.h.
50053         (c_strstr): Define in terms of strstr.
50054         * modules/c-strstr (Files): Remove lib/str-kmp.h.
50055         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
50056
50057 2008-01-10  Bruno Haible  <bruno@clisp.org>
50058
50059         * doc/gnulib.texi (String Functions in C Locale): New section.
50060         * doc/c-ctype.texi: New file.
50061         * doc/c-strcase.texi: New file.
50062         * doc/c-strcaseeq.texi: New file.
50063         * doc/c-strcasestr.texi: New file.
50064         * doc/c-strstr.texi: New file.
50065         * doc/c-strtod.texi: New file.
50066         * doc/c-strtold.texi: New file.
50067
50068 2008-01-10  Eric Blake  <ebb9@byu.net>
50069
50070         * lib/relocatable.h: Fix a comment.
50071
50072 2008-01-10  Eric Blake  <ebb9@byu.net>
50073
50074         Share two-way algorithm.
50075         * lib/str-two-way.h: New file, merged from...
50076         * lib/memmem.c: ...here...
50077         * lib/strstr.c: ...and here.
50078         * modules/memmem (Files): Use it.
50079         * modules/strstr (Files): Likewise.
50080
50081         Avoid quadratic strstr implementations.
50082         * lib/strstr.c: New file.
50083         * m4/strstr.m4: Likewise.
50084         * modules/strstr: Likewise.
50085         * modules/strstr-tests: Likewise.
50086         * tests/test-strstr.c: Likewise.
50087         * lib/string.in.h (rpl_strstr): Declare.
50088         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
50089         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
50090         * modules/string (Makefile.am): Likewise.
50091         * MODULES.html.sh (string handling): Mention new module.
50092         * doc/functions/strstr.texi (strstr): Document the bug.
50093
50094 2008-01-10  Bruno Haible  <bruno@clisp.org>
50095
50096         * lib/relocatable.h (relocate): State whether result is freshly
50097         allocated or not.
50098         * lib/relocatable.c (relocate): Return a freshly allocated string
50099         instead of a pointer to a privately held string.
50100         Reported by Sylvain Beucler <beuc@gnu.org>.
50101
50102 2008-01-10  Colin Watson  <cjwatson@debian.org>
50103
50104         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
50105         s/S_ISNLK/S_ISLNK/.
50106
50107 2008-01-09  Bruno Haible  <bruno@clisp.org>
50108
50109         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
50110         and other files.
50111         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
50112         if it's only a guess.
50113         * modules/memmem: Simplify by depending on memmem-simple.
50114
50115 2008-01-09  Bruno Haible  <bruno@clisp.org>
50116
50117         Work around OpenBSD 4.0 tdelete() bug.
50118         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
50119         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
50120         macros and don't redefine the enum values.
50121         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
50122         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
50123         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
50124
50125 2008-01-09  Bruno Haible  <bruno@clisp.org>
50126
50127         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
50128         (main): Don't perform the tests if setlocale did not install a UTF-8
50129         locale. Needed on OpenBSD 4.0.
50130         * modules/wcwidth-tests (Depends-on): Add localcharset.
50131
50132 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
50133
50134         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
50135         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
50136         * NEWS: announce this.
50137         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
50138
50139 2008-01-09  Simon Josefsson  <simon@josefsson.org>
50140         and Eric Blake  <ebb9@byu.net>
50141
50142         Add memmem-simple module.
50143         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
50144         (gl_FUNC_MEMMEM): Separate performance from presence checks.
50145         * modules/memmem-simple: New file.
50146         * modules/memmem (Description): Tweak.
50147         * MODULES.html.sh (string handling): Mention new module.
50148         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
50149         addressed by memmem-simple.
50150         * NEWS: Document the difference.
50151
50152 2008-01-09  Eric Blake  <ebb9@byu.net>
50153
50154         Give gcc some memmem optimization hints.
50155         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
50156         (strcasestr): Declare as pure.
50157         * modules/memmem (Maintainer): Claim my implementation.
50158
50159 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50160
50161         Support AIX 6.1 and higher.
50162         * build-aux/config.libpath: Likewise.
50163         * build-aux/config.rpath: Likewise.
50164
50165 2008-01-08  Jim Meyering  <meyering@redhat.com>
50166             Bruno Haible  <bruno@clisp.org>
50167
50168         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
50169         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
50170         Reported by Peter Fales in
50171         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
50172
50173 2008-01-08  Bruno Haible  <bruno@clisp.org>
50174
50175         * modules/unictype/category-of (Depends-on): Add
50176         unictype/category-none.
50177         * modules/unictype/category-and-tests (Depends-on): Add
50178         unictype/category-{L,N,Lu,Nd}.
50179         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
50180         * modules/unictype/category-or-tests (Depends-on): Add
50181         unictype/category-{L,N}.
50182         * modules/unictype/category-name-tests (Depends-on): Add
50183         unictype/category-{Z,Nl}.
50184         Reported by Simon Josefsson.
50185
50186 2008-01-08  Bruno Haible  <bruno@clisp.org>
50187
50188         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
50189         convention better.
50190         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
50191         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
50192         Reported by Peter Miller <millerp@canb.auug.org.au>.
50193
50194 2008-01-08  Eric Blake  <ebb9@byu.net>
50195
50196         Rewrite memmem to guarantee linear complexity without malloc.
50197         * lib/memmem.c (memmem): Use Two-Way rather than
50198         Knuth-Morris-Pratt, to allow O(1) space usage.
50199         (critical_factorization, two_way_short_needle)
50200         (two_way_long_needle): New functions.
50201         (knuth_morris_pratt): Delete.
50202         * modules/memmem (Depends-on): No longer need malloca or stdbool.
50203         Add stdint.
50204         * tests/test-memmem.c (main): Add tests for periodic needle and
50205         sublinear performance.
50206         * doc/functions/memmem.texi (memmem): Document other deficiencies
50207         in cygwin and older glibc.
50208
50209 2008-01-08  Bruno Haible  <bruno@clisp.org>
50210
50211         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
50212         augmentation.
50213
50214 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
50215
50216         Add a configure time option: --disable-acl.
50217         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
50218         AC_ARG_ENABLE(acl).
50219
50220 2008-01-06  Simon Josefsson  <simon@josefsson.org>
50221
50222         * tests/test-localename.c: Don't include obsolete "setenv.h".
50223
50224         * modules/localename-tests (Depends-on): Need unsetenv.
50225
50226 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50227
50228         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
50229
50230 2008-01-06  Colin Watson  <cjwatson@debian.org>
50231
50232         * users.txt: Add man-db.
50233
50234 2008-01-07  Bruno Haible  <bruno@clisp.org>
50235
50236         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
50237         previous section name.
50238
50239 2008-01-07  Bruno Haible  <bruno@clisp.org>
50240
50241         * lib/progname.c (set_program_name): Don't strip off a leading
50242         "lt-" prefix outside a .libs directory.
50243         Suggested by Paul Eggert.
50244
50245 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
50246             Bruno Haible  <bruno@clisp.org>
50247
50248         Improve memory cleanup in 'relocatable' module.
50249         * lib/relocatable.h (compute_curr_prefix): Change return type to
50250         'char *'.
50251         * lib/relocatable.c (compute_curr_prefix): Change return type to
50252         'char *'. Free curr_installdir after use.
50253         (relocate): Free curr_prefix_better after use.
50254         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
50255
50256 2008-01-01  Bruno Haible  <bruno@clisp.org>
50257
50258         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
50259         failure on older glibc systems.
50260         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50261
50262 2008-01-05  Eric Blake  <ebb9@byu.net>
50263
50264         Avoid quadratic system memmem.
50265         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
50266         Reported by Ralf Wildenhues.
50267
50268         Fix memmem test for mingw.
50269         * modules/memmem-tests (configure.ac): Check for alarm.
50270         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
50271         it.
50272         * doc/functions/memmem.texi: New file.
50273         * doc/gnulib.texi (Function Substitutes): Add memmem.
50274         Reported by Bruno Haible.
50275
50276 2008-01-04  Bruno Haible  <bruno@clisp.org>
50277
50278         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
50279         Require gl_HEADER_STRINGS_H_DEFAULTS, not
50280         gl_HEADER_STRING_H_DEFAULTS.
50281
50282 2008-01-04  Eric Blake  <ebb9@byu.net>
50283
50284         Shorten duration of memmem test.
50285         * tests/test-memmem.c (main): Use alarm to declare failure if test
50286         is taking too long.
50287         Reported by Ralf Wildenhues.
50288
50289 2007-12-21  Simon Josefsson  <simon@josefsson.org>
50290
50291         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
50292         string, needed by strerror.
50293
50294 2008-01-03  Colin Watson  <cjwatson@debian.org>
50295             Bruno Haible  <bruno@clisp.org>
50296
50297         * doc/gnulib-tool.texi (Localization): New section.
50298
50299 2008-01-02  Bruno Haible  <bruno@clisp.org>
50300
50301         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
50302         variables to 'unsigned char *' type.
50303         Reported by Paul Eggert.
50304
50305 2008-01-02  Jim Meyering  <jim@meyering.net>
50306
50307         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
50308
50309 2007-12-31  Jim Meyering  <jim@meyering.net>
50310
50311         Avoid use of private FTS type name.
50312         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
50313
50314 2007-12-30  Karl Berry  <karl@gnu.org>
50315
50316         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
50317         work around defect in Texinfo and/or the standalone Info browser.
50318
50319 2007-12-30  Bruno Haible  <bruno@clisp.org>
50320
50321         Unify 5 copies of the KMP code.
50322         * lib/str-kmp.h: New file.
50323         * lib/c-strcasestr.c: Include str-kmp.h.
50324         (knuth_morris_pratt): Remove function.
50325         (c_strcasestr): Update.
50326         * lib/c-strstr.c: Include str-kmp.h.
50327         (knuth_morris_pratt): Remove function.
50328         (c_strcasestr): Update.
50329         * lib/mbscasestr.c: Include str-kmp.h.
50330         (knuth_morris_pratt_unibyte): Remove function.
50331         * lib/mbsstr.c: Include str-kmp.h.
50332         (knuth_morris_pratt_unibyte): Remove function.
50333         * lib/strcasestr.c: Include str-kmp.h.
50334         (knuth_morris_pratt): Remove function.
50335         (strcasestr): Update.
50336         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
50337         * modules/c-strstr (Files): Likewise.
50338         * modules/mbscasestr (Files): Likewise.
50339         * modules/mbsstr (Files): Likewise.
50340         * modules/strcasestr (Files): Likewise.
50341         Suggested by Paul Eggert.
50342
50343 2007-12-30  Bruno Haible  <bruno@clisp.org>
50344
50345         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
50346         defined.
50347
50348 2007-12-30  Bruno Haible  <bruno@clisp.org>
50349
50350         * lib/xmalloca.h: Include xalloc.h.
50351         (xnmalloca): New macro.
50352
50353 2007-12-30  Bruno Haible  <bruno@clisp.org>
50354
50355         * lib/malloca.h (nmalloca): New macro.
50356         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
50357         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
50358         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
50359         knuth_morris_pratt_multibyte): Likewise.
50360         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
50361         knuth_morris_pratt_multibyte): Likewise.
50362         * lib/memmem.c (knuth_morris_pratt): Likewise.
50363         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
50364
50365 2007-12-25  Bruno Haible  <bruno@clisp.org>
50366
50367         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
50368         * lib/glob.c: Don't include openat.h.
50369         (link_exists2_p): Add back the code that deals with the
50370         !GLOB_ALTDIRFUNC case.
50371         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
50372         let it do the filename concatenation.
50373         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
50374         * modules/glob (Depends-on): Remove openat.
50375
50376 2007-12-31  Bruno Haible  <bruno@clisp.org>
50377
50378         * modules/dirfd (License): Change to LGPLv2+.
50379         Approved by Jim Meyering.
50380
50381 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50382
50383         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
50384         when multiplying M by sizeof (size_t).
50385
50386 2007-12-10  Martin Lambers  <marlam@marlam.de>
50387
50388         Override getpagesize on mingw.
50389         * lib/getpagesize.c: New file.
50390         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
50391         * modules/getpagesize (Files): Add lib/getpagesize.c.
50392         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
50393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50394         REPLACE_GETPAGESIZE.
50395         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
50396
50397 2007-12-25  Bruno Haible  <bruno@clisp.org>
50398
50399         * modules/localcharset (Notice): New field.
50400         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
50401         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
50402
50403 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50404             Bruno Haible  <bruno@clisp.org>
50405
50406         Avoid using the syntax symbol() in formatted documentation.
50407         * MODULES.html.sh (func_module): When replacing symbol() with a
50408         hyperlink, remove the parentheses. Show an error if some remain.
50409         Recognize and render the '...' syntax.
50410         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
50411         Rework. Add paragraph about GCC's inlining.
50412         * doc/alloca.texi: Likewise.
50413         * doc/error.texi: Remove parentheses from symbol reference.
50414         * doc/gnulib-intro.texi: Likewise.
50415         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
50416         * modules/fnmatch (Description): Reword to say "the ... function".
50417         * modules/full-read (Description): Likewise.
50418         * modules/full-write (Description): Likewise.
50419         * modules/safe-read (Description): Likewise.
50420         * modules/safe-write (Description): Likewise.
50421         * modules/strchrnul (Description): Likewise.
50422         * modules/trim (Description): Likewise.
50423         * modules/error (Description): Remove parentheses from symbol
50424         references.
50425         * modules/verror (Description): Likewise.
50426         Reported by Karl Berry.
50427
50428 2007-12-25  Bruno Haible  <bruno@clisp.org>
50429
50430         Fixup after 2007-10-16 commit.
50431         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
50432
50433 2007-12-24  Bruno Haible  <bruno@clisp.org>
50434
50435         Make --enable-relocatable work with DESTDIR.
50436         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
50437         to compute installdir from destprog.
50438         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
50439         also set the RELOC_DESTDIR variable.
50440         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50441
50442 2007-12-24  Bruno Haible  <bruno@clisp.org>
50443
50444         Fix link error due to xalloc_die().
50445         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
50446         of xreadlink.
50447         * lib/relocwrapper.c: Update comments.
50448         * build-aux/install-reloc: Remove xreadlink.c from file list.
50449         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
50450         xreadlink.c.
50451         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50452
50453 2007-12-24  Bruno Haible  <bruno@clisp.org>
50454
50455         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
50456         * lib/setenv.h: Remove file.
50457         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
50458         lib/setenv.h.
50459         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
50460         (Depends-on): Add stdlib.
50461         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
50462         gl_FUNC_UNSETENV.
50463         (Include): Replace setenv.h with <stdlib.h>.
50464         * modules/unsetenv: New file.
50465         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
50466         * lib/unsetenv.c: Include <stdlib.h> first.
50467         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
50468         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
50469         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
50470         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
50471         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
50472         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
50474         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50475         * doc/functions/unsetenv.texi: Update.
50476         * modules/xsetenv (Depends-on): Add unsetenv.
50477         * modules/getdate (Depends-on): Likewise.
50478         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
50479         * lib/xsetenv.c: Don't include setenv.h.
50480         * lib/getdate.y: Likewise.
50481         * lib/relocwrapper.c: Likewise.
50482         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
50483         (Depends-on): Add stdlib.
50484         * NEWS: Mention the changes.
50485         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50486
50487 2007-12-23  Bruno Haible  <bruno@clisp.org>
50488
50489         * lib/memmem.c (memmem): Use lowercase variable names. Tab
50490         indentation.
50491
50492 2007-12-23  Bruno Haible  <bruno@clisp.org>
50493
50494         * lib/c-strcasestr.c: Add more comments.
50495         * lib/c-strstr.c: Likewise.
50496         * lib/mbscasestr.c: Likewise.
50497         * lib/mbsstr.c: Likewise.
50498         * lib/strcasestr.c: Likewise.
50499         * lib/memmem.c: Likewise.
50500
50501 2007-12-23  Bruno Haible  <bruno@clisp.org>
50502
50503         * tests/test-memmem.c: Include <string.h> first.
50504
50505 2007-12-22  Bruno Haible  <bruno@clisp.org>
50506
50507         * gnulib-tool (func_create_testdir): Change $auxdir while generating
50508         the contents of $testsbase.
50509         Reported by Ralf Wildenhues.
50510
50511 2007-12-22  Bruno Haible  <bruno@clisp.org>
50512
50513         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
50514         two variables local_ldadd_before, local_ldadd_last.
50515
50516 2007-12-20  Eric Blake  <ebb9@byu.net>
50517
50518         Work around circular library issue when cross-compiling.
50519         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
50520         that progname.o does not need to pull in rpl_memcmp.
50521
50522 2007-12-19  Eric Blake  <ebb9@byu.net>
50523
50524         Fix memmem to avoid O(n^2) worst-case complexity.
50525         * lib/memmem.c (knuth_morris_pratt): New function.
50526         (memmem): Use it if first few naive iterations fail.
50527         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
50528         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
50529         * modules/memchr (License): Likewise.
50530         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
50531         malloca.
50532         * tests/test-memmem.c: Rewrite, borrowing ideas from
50533         test-mbsstr1.c; the old version wouldn't even compile!
50534         * modules/memmem-tests: New file.
50535         * lib/string.in.h (rpl_memmem): Add declaration.
50536         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
50537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
50538         REPLACE_MEMMEM.
50539
50540 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50541
50542         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
50543         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
50544         before any system include files, and undef after them all.  This
50545         should fix a problem on VMS reported by John E. Malmberg in
50546         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
50547
50548 2007-12-17  Eric Blake  <ebb9@byu.net>
50549
50550         Revert addition of verify, for BSD/OS.
50551         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
50552         can't handle large files, for the sake of obsolete platforms.
50553         * modules/fseeko (Depends-on): Remove verify.
50554         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
50555         * doc/functions/ftello.texi (ftello): Likewise.
50556         * doc/functions/fgetpos.texi (fgetpos): Likewise.
50557         Reported by Larry Jones.
50558
50559 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
50560
50561         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
50562         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
50563
50564 2007-12-17  Jim Meyering  <meyering@redhat.com>
50565
50566         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
50567         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
50568         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
50569         * modules/getcwd (Depends-on): Add openat.
50570         Reported by Petr Salinger.
50571
50572 2007-12-17  Bruno Haible  <bruno@clisp.org>
50573
50574         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
50575         avoid a segmentation fault of the configure test on x86_64 systems.
50576
50577 2007-12-15  Jim Meyering  <meyering@redhat.com>
50578
50579         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
50580
50581 2007-12-13  Eric Blake  <ebb9@byu.net>
50582
50583         Another fseek test.
50584         * tests/test-fseek.c (main): Also test ungetc handling.
50585         * tests/test-fseeko.c (main): Likewise.
50586         * modules/fseeko (Depends-on): Add verify.
50587         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
50588         large.
50589         Reported by Larry Jones.
50590
50591         Fix fseeko on mingw.
50592         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
50593         seek.
50594
50595         Beef up fseek tests.
50596         * tests/test-fseek.c (main): Also test eof handling.
50597         * tests/test-fseeko.c (main): Likewise.
50598         Reported by Larry Jones.
50599
50600 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
50601
50602         Fix fseeko on BSD-based platforms.
50603         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
50604         successful seek.
50605
50606 2007-12-12  Eric Blake  <ebb9@byu.net>
50607
50608         Allow circular dependency of separate libtests.a
50609         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
50610         when use_libtests.
50611
50612 2007-12-11  Eric Blake  <ebb9@byu.net>
50613
50614         Fix bug with -0.0L in previous patch.
50615         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
50616         * tests/test-isnan.c (main): Also test on zeroes.
50617         * tests/test-isnanf.c (main): Likewise.
50618         * tests/test-isnanl.h (main): Likewise.
50619
50620         Detect pseudo-denormals on x86 even when cross-compiling.
50621         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
50622         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
50623         invalid bit patterns that happen to satisfy ==.
50624
50625         Avoid link failures with separate libtests.a.
50626         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
50627         last, to satisfy circular dependencies.
50628
50629 2007-12-11  Eric Blake  <ebb9@byu.net>
50630         and Bruno Haible  <bruno@clisp.org>
50631
50632         Fix OpenBSD 4.0 <float.h> handling of long double.
50633         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
50634         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
50635         * doc/headers/float.texi (float.h): Document OpenBSD bug.
50636
50637 2007-12-11  Jim Meyering  <meyering@redhat.com>
50638
50639         * users.txt: Add libvirt.
50640
50641         Support versions of autoconf prior to 2.59c.
50642         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
50643         if it is not already defined.
50644
50645 2007-12-09  Bruno Haible  <bruno@clisp.org>
50646
50647         Let 'gnulib-tool --import' collect sources needed for the tests in
50648         tests/ rather than in lib/.
50649         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
50650         argument. If true, add rules to generate libtests.a, and put libtests.a
50651         into $(LDADD). Consider source files in subdirectories and set
50652         uses_subdirs.
50653         (func_emit_initmacro_start, func_emit_initmacro_end,
50654         func_emit_initmacro_done): Pass all arguments explicitly.
50655         (func_import): Determine two module lists main_modules,
50656         testsrelated_modules. Determine use_libtests. Determine two variables
50657         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
50658         instead of just sed_transform_lib_file. Determine two variables
50659         main_files and testsrelated_files. Compute 'files' as the union of
50660         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
50661         func_add_or_update. In the generated gnulib-comp.m4, collect the
50662         object files for tests/ in different variables than those for lib/.
50663         Substitute LIBTESTS_LIBDEPS.
50664         (func_create_testdir): Combine the uses_subdirs results from
50665         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
50666
50667 2007-12-09  Bruno Haible  <bruno@clisp.org>
50668
50669         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
50670         the build-aux directory.
50671
50672 2007-12-09  Bruno Haible  <bruno@clisp.org>
50673
50674         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
50675         introduced on 2006-09-09.
50676
50677 2007-12-07  Jim Meyering  <meyering@redhat.com>
50678
50679         Let these macros work also with autoconf-2.59.
50680         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
50681         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
50682         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50683
50684 2007-12-06  Jim Meyering  <meyering@redhat.com>
50685
50686         Avoid a configure-time syntax error in gl_FUNC_ACL.
50687         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
50688         function in each branch, before testing the cache variable.
50689
50690 2007-12-04  Eric Blake  <ebb9@byu.net>
50691
50692         Make scripts executable.
50693         * build-aux/config.guess: Add execute permissions.
50694         * build-aux/config.sub: Likewise.
50695         * build-aux/gendocs.sh: Likewise.
50696
50697         Fix frexp on mingw.
50698         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
50699         cross-compiling.
50700         * doc/functions/frexp.texi (frexp): Document the bug.
50701
50702         Make cygwin fseeko check more reliable.
50703         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
50704         version numbers, rather than unrelated feature check.
50705         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
50706         * doc/functions/ftello.texi (ftello): Likewise.
50707         Reported by Bruno Haible.
50708
50709         * m4/strerror.m4: Bump version number.
50710
50711 2007-12-03  Bruno Haible  <bruno@clisp.org>
50712
50713         * doc/functions/mprotect.texi: Mention the mingw problem.
50714
50715 2007-12-03  Eric Blake  <ebb9@byu.net>
50716
50717         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
50718         REPLACE_STRERROR is initialized before this macro.
50719
50720 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50721
50722         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
50723         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
50724         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
50725         put -lsec in even for programs other than 'ls'.  This fixes a problem
50726         for gettext reported by Bruno Haible in
50727         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
50728         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
50729         Add support for Solaris 10.  This isn't efficient, but should get the
50730         job done for now.
50731
50732 2007-12-03  James Youngman  <jay@gnu.org>
50733
50734         * doc/regexprops-generic.texi: change "an close-group" to "a
50735         close-group" and "illegal" to "not allowed".
50736
50737 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50738
50739         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
50740         pr_byname.h. Needed for the rare case when the maintainer has done
50741         "make maintainer-clean" in the source directory and then attempts a
50742         build outside the source directory.
50743         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
50744         scripts_byname.h.
50745
50746 2007-12-02  Martin Lambers <marlam@marlam.de>
50747             Bruno Haible  <bruno@clisp.org>
50748
50749         * lib/getpagesize.h: Remove file.
50750         * lib/unistd.in.h: Include declaration of getpagesize here.
50751         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
50752         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
50753         HAVE_SYS_PARAM_H.
50754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
50755         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50756         * modules/getpagesize (Files): Remove lib/getpagesize.h.
50757         (Depends-on): Add unistd.
50758         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50759         (Include): Use <unistd.h> instead of getpagesize.h.
50760         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
50761         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50762         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
50763         gl_GETPAGESIZE invocation, already handled by module dependency.
50764         * lib/pagealign_alloc.c: Don't include getpagesize.h.
50765
50766 2007-12-02  Bruno Haible  <bruno@clisp.org>
50767
50768         * modules/strings-tests: New file.
50769         * tests/test-strings.c: New file.
50770
50771         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
50772         * lib/strings.in.h: New file.
50773         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
50774         * m4/strings_h.m4: New file.
50775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
50776         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
50777         * modules/strings: New file.
50778         * modules/string (Makefile.am): Update.
50779         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
50780         Reported by Karl Berry.
50781
50782 2007-12-01  Eric Blake  <ebb9@byu.net>
50783
50784         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
50785         accomodate fix in cygwin 1.5.25.
50786
50787 2007-12-01  Jim Meyering  <meyering@redhat.com>
50788
50789         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
50790         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
50791         that would inhibit utf8-optimization of a regexp containing line-
50792         or buffer-anchors, e.g., `^', `$'.
50793
50794 2007-11-30  Bruno Haible  <bruno@clisp.org>
50795
50796         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50797         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50798         glthread_recursive_lock_init.
50799         * lib/lock.c (glthread_recursive_lock_init)
50800         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50801         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50802
50803 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50804
50805         New function qset_acl, like set_acl but with syscall semantics.
50806         * lib/acl.h (qset_acl): New decl.
50807         * lib/acl.c (qset_acl): New function.
50808         (set_acl): Use new function.  Use more-consistent diagnostics.
50809
50810 2007-11-28  Jim Meyering  <meyering@redhat.com>
50811
50812         * modules/physmem (License): Change from GPL to LGPLv2+.
50813
50814 2007-11-26  Bruno Haible  <bruno@clisp.org>
50815
50816         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50817         'long double' type has excess precision.
50818         Reported by Jim Meyering in
50819         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50820
50821 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50822
50823         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
50824         Sync from <http://gnu.org/licenses>.
50825         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
50826         with license text from same location.
50827         * doc/maintain.texi, doc/standards.texi:  Sync from
50828         <http://savannah.gnu.org/projects/gnustandards>.
50829
50830 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
50831         and Jim Meyering  <meyering@redhat.com>
50832
50833         Adjust getdate' grammar to accept a slightly more regular language.
50834         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
50835         Before, the former was rejected.
50836         * lib/getdate.y (digits_to_date_time): New function, factored
50837         out of ...
50838         (number): ...here.  Just call digits_to_date_time.
50839         (hybrid): New non-terminal to handle an <unsigned number,
50840         signed relative offset> sequence consistently.
50841
50842 2007-11-18  Jim Meyering  <meyering@redhat.com>
50843
50844         Pull my changes from coreutils:
50845         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
50846         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
50847         use of $gnulib_tool_option_extras, so that it's separated from the
50848         preceding argument.
50849
50850         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
50851         * build-aux/bootstrap (cp_mark_as_generated): Create any required
50852         parent destination directories before copying a file into place.
50853
50854 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50855
50856         bootstrap: work also with 4-argument variant of AC_INIT
50857         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
50858
50859 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50860
50861         Port test-getaddrinfo to Solaris.
50862         Problem reported by Bruno Haible in
50863         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
50864         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
50865         explanation of setting 'hints'.
50866         Don't reject an implementation merely because it returns EAI_SERVICE.
50867         (EAI_SERVICE): Define to 0 if not defined.
50868
50869 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50870
50871         The license of gnu-make and posix-shell is now "GPLed build tool".
50872         * modules/gnu-make (License): Likewise.
50873         * modules/posix-shell (License): Likewise.
50874
50875         New module posix-shell, for determining a POSIX shell
50876         or perhaps something that is close enough to a POSIX shell.
50877         * m4/posix-shell.m4: New file.
50878         * modules/posix-shell: New file.
50879
50880         * MODULES.html.sh: Mention new module.
50881
50882         New module gnu-make, for determining whether we're using GNU Make.
50883         * m4/gnu-make.m4: New file.
50884         * modules/gnu-make: New file.
50885         * MODULES.html.sh: Mention new module.
50886
50887 2007-11-14  Jim Meyering  <meyering@redhat.com>
50888
50889         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50890         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50891         use this macro to create a function _definition_.
50892         Remove useless "#undef ARGMATCH_DIE".
50893
50894 2007-11-14  Bruno Haible  <bruno@clisp.org>
50895
50896         * lib/config.charset: Update for OpenBSD 4.1.
50897         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50898
50899 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50900
50901         Document 64-bit #if problems in stdint.texi.
50902         * doc/headers/stdint.texi (stdint.h): Mention problems with
50903         64-bit-#if, and how to work around them.
50904
50905         Don't insist on 'long long int' support in the preprocessor.  It
50906         breaks too many things.  For example, PRIdMAX still uses a 'long
50907         long int' format with the latest Sun compiler, even though
50908         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50909         preprocessor problem.  This causes the latest coreutils to dump
50910         core on Solaris 10 sparc with the Sun C compiler.
50911         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50912         the troublesome expressions at configure-time, not at #if-time.
50913         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50914         preprocessor.
50915         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50916         compile-time C checks, done at 'configure'-time.
50917         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50918         * modules/inttypes (Makefile): Substitute the new symbols that
50919         gl_INTTYPES_H now generates.
50920         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50921
50922 2007-11-12  Bruno Haible  <bruno@clisp.org>
50923
50924         Tests for Unicode character classification functions.
50925
50926         * modules/unictype/bidicategory-byname-tests: New file.
50927         * modules/unictype/bidicategory-name-tests: New file.
50928         * modules/unictype/bidicategory-of-tests: New file.
50929         * modules/unictype/bidicategory-test-tests: New file.
50930         * modules/unictype/block-list-tests: New file.
50931         * modules/unictype/block-of-tests: New file.
50932         * modules/unictype/block-test-tests: New file.
50933         * modules/unictype/category-C-tests: New file.
50934         * modules/unictype/category-Cc-tests: New file.
50935         * modules/unictype/category-Cf-tests: New file.
50936         * modules/unictype/category-Cn-tests: New file.
50937         * modules/unictype/category-Co-tests: New file.
50938         * modules/unictype/category-Cs-tests: New file.
50939         * modules/unictype/category-L-tests: New file.
50940         * modules/unictype/category-Ll-tests: New file.
50941         * modules/unictype/category-Lm-tests: New file.
50942         * modules/unictype/category-Lo-tests: New file.
50943         * modules/unictype/category-Lt-tests: New file.
50944         * modules/unictype/category-Lu-tests: New file.
50945         * modules/unictype/category-M-tests: New file.
50946         * modules/unictype/category-Mc-tests: New file.
50947         * modules/unictype/category-Me-tests: New file.
50948         * modules/unictype/category-Mn-tests: New file.
50949         * modules/unictype/category-N-tests: New file.
50950         * modules/unictype/category-Nd-tests: New file.
50951         * modules/unictype/category-Nl-tests: New file.
50952         * modules/unictype/category-No-tests: New file.
50953         * modules/unictype/category-P-tests: New file.
50954         * modules/unictype/category-Pc-tests: New file.
50955         * modules/unictype/category-Pd-tests: New file.
50956         * modules/unictype/category-Pe-tests: New file.
50957         * modules/unictype/category-Pf-tests: New file.
50958         * modules/unictype/category-Pi-tests: New file.
50959         * modules/unictype/category-Po-tests: New file.
50960         * modules/unictype/category-Ps-tests: New file.
50961         * modules/unictype/category-S-tests: New file.
50962         * modules/unictype/category-Sc-tests: New file.
50963         * modules/unictype/category-Sk-tests: New file.
50964         * modules/unictype/category-Sm-tests: New file.
50965         * modules/unictype/category-So-tests: New file.
50966         * modules/unictype/category-Z-tests: New file.
50967         * modules/unictype/category-Zl-tests: New file.
50968         * modules/unictype/category-Zp-tests: New file.
50969         * modules/unictype/category-Zs-tests: New file.
50970         * modules/unictype/category-and-not-tests: New file.
50971         * modules/unictype/category-and-tests: New file.
50972         * modules/unictype/category-byname-tests: New file.
50973         * modules/unictype/category-name-tests: New file.
50974         * modules/unictype/category-none-tests: New file.
50975         * modules/unictype/category-of-tests: New file.
50976         * modules/unictype/category-or-tests: New file.
50977         * modules/unictype/category-test-withtable-tests: New file.
50978         * modules/unictype/combining-class-tests: New file.
50979         * modules/unictype/ctype-alnum-tests: New file.
50980         * modules/unictype/ctype-alpha-tests: New file.
50981         * modules/unictype/ctype-blank-tests: New file.
50982         * modules/unictype/ctype-cntrl-tests: New file.
50983         * modules/unictype/ctype-digit-tests: New file.
50984         * modules/unictype/ctype-graph-tests: New file.
50985         * modules/unictype/ctype-lower-tests: New file.
50986         * modules/unictype/ctype-print-tests: New file.
50987         * modules/unictype/ctype-punct-tests: New file.
50988         * modules/unictype/ctype-space-tests: New file.
50989         * modules/unictype/ctype-upper-tests: New file.
50990         * modules/unictype/ctype-xdigit-tests: New file.
50991         * modules/unictype/decimal-digit-tests: New file.
50992         * modules/unictype/digit-tests: New file.
50993         * modules/unictype/mirror-tests: New file.
50994         * modules/unictype/numeric-tests: New file.
50995         * modules/unictype/property-alphabetic-tests: New file.
50996         * modules/unictype/property-ascii-hex-digit-tests: New file.
50997         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50998         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50999         * modules/unictype/property-bidi-block-separator-tests: New file.
51000         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
51001         * modules/unictype/property-bidi-common-separator-tests: New file.
51002         * modules/unictype/property-bidi-control-tests: New file.
51003         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
51004         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
51005         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
51006         * modules/unictype/property-bidi-european-digit-tests: New file.
51007         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
51008         * modules/unictype/property-bidi-left-to-right-tests: New file.
51009         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
51010         * modules/unictype/property-bidi-other-neutral-tests: New file.
51011         * modules/unictype/property-bidi-pdf-tests: New file.
51012         * modules/unictype/property-bidi-segment-separator-tests: New file.
51013         * modules/unictype/property-bidi-whitespace-tests: New file.
51014         * modules/unictype/property-byname-tests: New file.
51015         * modules/unictype/property-combining-tests: New file.
51016         * modules/unictype/property-composite-tests: New file.
51017         * modules/unictype/property-currency-symbol-tests: New file.
51018         * modules/unictype/property-dash-tests: New file.
51019         * modules/unictype/property-decimal-digit-tests: New file.
51020         * modules/unictype/property-default-ignorable-code-point-tests: New file.
51021         * modules/unictype/property-deprecated-tests: New file.
51022         * modules/unictype/property-diacritic-tests: New file.
51023         * modules/unictype/property-extender-tests: New file.
51024         * modules/unictype/property-format-control-tests: New file.
51025         * modules/unictype/property-grapheme-base-tests: New file.
51026         * modules/unictype/property-grapheme-extend-tests: New file.
51027         * modules/unictype/property-grapheme-link-tests: New file.
51028         * modules/unictype/property-hex-digit-tests: New file.
51029         * modules/unictype/property-hyphen-tests: New file.
51030         * modules/unictype/property-id-continue-tests: New file.
51031         * modules/unictype/property-id-start-tests: New file.
51032         * modules/unictype/property-ideographic-tests: New file.
51033         * modules/unictype/property-ids-binary-operator-tests: New file.
51034         * modules/unictype/property-ids-trinary-operator-tests: New file.
51035         * modules/unictype/property-ignorable-control-tests: New file.
51036         * modules/unictype/property-iso-control-tests: New file.
51037         * modules/unictype/property-join-control-tests: New file.
51038         * modules/unictype/property-left-of-pair-tests: New file.
51039         * modules/unictype/property-line-separator-tests: New file.
51040         * modules/unictype/property-logical-order-exception-tests: New file.
51041         * modules/unictype/property-lowercase-tests: New file.
51042         * modules/unictype/property-math-tests: New file.
51043         * modules/unictype/property-non-break-tests: New file.
51044         * modules/unictype/property-not-a-character-tests: New file.
51045         * modules/unictype/property-numeric-tests: New file.
51046         * modules/unictype/property-other-alphabetic-tests: New file.
51047         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
51048         * modules/unictype/property-other-grapheme-extend-tests: New file.
51049         * modules/unictype/property-other-id-continue-tests: New file.
51050         * modules/unictype/property-other-id-start-tests: New file.
51051         * modules/unictype/property-other-lowercase-tests: New file.
51052         * modules/unictype/property-other-math-tests: New file.
51053         * modules/unictype/property-other-uppercase-tests: New file.
51054         * modules/unictype/property-paired-punctuation-tests: New file.
51055         * modules/unictype/property-paragraph-separator-tests: New file.
51056         * modules/unictype/property-pattern-syntax-tests: New file.
51057         * modules/unictype/property-pattern-white-space-tests: New file.
51058         * modules/unictype/property-private-use-tests: New file.
51059         * modules/unictype/property-punctuation-tests: New file.
51060         * modules/unictype/property-quotation-mark-tests: New file.
51061         * modules/unictype/property-radical-tests: New file.
51062         * modules/unictype/property-sentence-terminal-tests: New file.
51063         * modules/unictype/property-soft-dotted-tests: New file.
51064         * modules/unictype/property-space-tests: New file.
51065         * modules/unictype/property-terminal-punctuation-tests: New file.
51066         * modules/unictype/property-test-tests: New file.
51067         * modules/unictype/property-titlecase-tests: New file.
51068         * modules/unictype/property-unassigned-code-value-tests: New file.
51069         * modules/unictype/property-unified-ideograph-tests: New file.
51070         * modules/unictype/property-uppercase-tests: New file.
51071         * modules/unictype/property-variation-selector-tests: New file.
51072         * modules/unictype/property-white-space-tests: New file.
51073         * modules/unictype/property-xid-continue-tests: New file.
51074         * modules/unictype/property-xid-start-tests: New file.
51075         * modules/unictype/property-zero-width-tests: New file.
51076         * modules/unictype/scripts-tests: New file.
51077         * modules/unictype/syntax-c-ident-tests: New file.
51078         * modules/unictype/syntax-c-whitespace-tests: New file.
51079         * modules/unictype/syntax-java-ident-tests: New file.
51080         * modules/unictype/syntax-java-whitespace-tests: New file.
51081         * tests/unictype/test-bidi_byname.c: New file.
51082         * tests/unictype/test-bidi_name.c: New file.
51083         * tests/unictype/test-bidi_of.c: New file.
51084         * tests/unictype/test-bidi_test.c: New file.
51085         * tests/unictype/test-block_list.c: New file.
51086         * tests/unictype/test-block_of.c: New file.
51087         * tests/unictype/test-block_test.c: New file.
51088         * tests/unictype/test-categ_and.c: New file.
51089         * tests/unictype/test-categ_and_not.c: New file.
51090         * tests/unictype/test-categ_byname.c: New file.
51091         * tests/unictype/test-categ_name.c: New file.
51092         * tests/unictype/test-categ_none.c: New file.
51093         * tests/unictype/test-categ_of.c: New file.
51094         * tests/unictype/test-categ_or.c: New file.
51095         * tests/unictype/test-categ_test_withtable.c: New file.
51096         * tests/unictype/test-combining.c: New file.
51097         * tests/unictype/test-decdigit.c: New file.
51098         * tests/unictype/test-digit.c: New file.
51099         * tests/unictype/test-mirror.c: New file.
51100         * tests/unictype/test-numeric.c: New file.
51101         * tests/unictype/test-pr_byname.c: New file.
51102         * tests/unictype/test-pr_test.c: New file.
51103         * tests/unictype/test-predicate-part1.h: New file.
51104         * tests/unictype/test-predicate-part2.h: New file.
51105         * tests/unictype/test-scripts.c: New file.
51106         * tests/unictype/test-sy_c_ident.c: New file.
51107         * tests/unictype/test-sy_java_ident.c: New file.
51108
51109         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
51110         for Unicode 5.0.0.
51111         * tests/unictype/test-categ_Cc.c: Likewise.
51112         * tests/unictype/test-categ_Cf.c: Likewise.
51113         * tests/unictype/test-categ_Cn.c: Likewise.
51114         * tests/unictype/test-categ_Co.c: Likewise.
51115         * tests/unictype/test-categ_Cs.c: Likewise.
51116         * tests/unictype/test-categ_L.c: Likewise.
51117         * tests/unictype/test-categ_Ll.c: Likewise.
51118         * tests/unictype/test-categ_Lm.c: Likewise.
51119         * tests/unictype/test-categ_Lo.c: Likewise.
51120         * tests/unictype/test-categ_Lt.c: Likewise.
51121         * tests/unictype/test-categ_Lu.c: Likewise.
51122         * tests/unictype/test-categ_M.c: Likewise.
51123         * tests/unictype/test-categ_Mc.c: Likewise.
51124         * tests/unictype/test-categ_Me.c: Likewise.
51125         * tests/unictype/test-categ_Mn.c: Likewise.
51126         * tests/unictype/test-categ_N.c: Likewise.
51127         * tests/unictype/test-categ_Nd.c: Likewise.
51128         * tests/unictype/test-categ_Nl.c: Likewise.
51129         * tests/unictype/test-categ_No.c: Likewise.
51130         * tests/unictype/test-categ_P.c: Likewise.
51131         * tests/unictype/test-categ_Pc.c: Likewise.
51132         * tests/unictype/test-categ_Pd.c: Likewise.
51133         * tests/unictype/test-categ_Pe.c: Likewise.
51134         * tests/unictype/test-categ_Pf.c: Likewise.
51135         * tests/unictype/test-categ_Pi.c: Likewise.
51136         * tests/unictype/test-categ_Po.c: Likewise.
51137         * tests/unictype/test-categ_Ps.c: Likewise.
51138         * tests/unictype/test-categ_S.c: Likewise.
51139         * tests/unictype/test-categ_Sc.c: Likewise.
51140         * tests/unictype/test-categ_Sk.c: Likewise.
51141         * tests/unictype/test-categ_Sm.c: Likewise.
51142         * tests/unictype/test-categ_So.c: Likewise.
51143         * tests/unictype/test-categ_Z.c: Likewise.
51144         * tests/unictype/test-categ_Zl.c: Likewise.
51145         * tests/unictype/test-categ_Zp.c: Likewise.
51146         * tests/unictype/test-categ_Zs.c: Likewise.
51147         * tests/unictype/test-ctype_alnum.c: Likewise.
51148         * tests/unictype/test-ctype_alpha.c: Likewise.
51149         * tests/unictype/test-ctype_blank.c: Likewise.
51150         * tests/unictype/test-ctype_cntrl.c: Likewise.
51151         * tests/unictype/test-ctype_digit.c: Likewise.
51152         * tests/unictype/test-ctype_graph.c: Likewise.
51153         * tests/unictype/test-ctype_lower.c: Likewise.
51154         * tests/unictype/test-ctype_print.c: Likewise.
51155         * tests/unictype/test-ctype_punct.c: Likewise.
51156         * tests/unictype/test-ctype_space.c: Likewise.
51157         * tests/unictype/test-ctype_upper.c: Likewise.
51158         * tests/unictype/test-ctype_xdigit.c: Likewise.
51159         * tests/unictype/test-decdigit.h: Likewise.
51160         * tests/unictype/test-digit.h: Likewise.
51161         * tests/unictype/test-numeric.h: Likewise.
51162         * tests/unictype/test-pr_alphabetic.c: Likewise.
51163         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
51164         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
51165         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
51166         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
51167         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
51168         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
51169         * tests/unictype/test-pr_bidi_control.c: Likewise.
51170         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
51171         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
51172         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
51173         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
51174         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
51175         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
51176         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
51177         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
51178         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
51179         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
51180         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
51181         * tests/unictype/test-pr_combining.c: Likewise.
51182         * tests/unictype/test-pr_composite.c: Likewise.
51183         * tests/unictype/test-pr_currency_symbol.c: Likewise.
51184         * tests/unictype/test-pr_dash.c: Likewise.
51185         * tests/unictype/test-pr_decimal_digit.c: Likewise.
51186         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
51187         * tests/unictype/test-pr_deprecated.c: Likewise.
51188         * tests/unictype/test-pr_diacritic.c: Likewise.
51189         * tests/unictype/test-pr_extender.c: Likewise.
51190         * tests/unictype/test-pr_format_control.c: Likewise.
51191         * tests/unictype/test-pr_grapheme_base.c: Likewise.
51192         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
51193         * tests/unictype/test-pr_grapheme_link.c: Likewise.
51194         * tests/unictype/test-pr_hex_digit.c: Likewise.
51195         * tests/unictype/test-pr_hyphen.c: Likewise.
51196         * tests/unictype/test-pr_id_continue.c: Likewise.
51197         * tests/unictype/test-pr_id_start.c: Likewise.
51198         * tests/unictype/test-pr_ideographic.c: Likewise.
51199         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
51200         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
51201         * tests/unictype/test-pr_ignorable_control.c: Likewise.
51202         * tests/unictype/test-pr_iso_control.c: Likewise.
51203         * tests/unictype/test-pr_join_control.c: Likewise.
51204         * tests/unictype/test-pr_left_of_pair.c: Likewise.
51205         * tests/unictype/test-pr_line_separator.c: Likewise.
51206         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
51207         * tests/unictype/test-pr_lowercase.c: Likewise.
51208         * tests/unictype/test-pr_math.c: Likewise.
51209         * tests/unictype/test-pr_non_break.c: Likewise.
51210         * tests/unictype/test-pr_not_a_character.c: Likewise.
51211         * tests/unictype/test-pr_numeric.c: Likewise.
51212         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
51213         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
51214         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
51215         * tests/unictype/test-pr_other_id_continue.c: Likewise.
51216         * tests/unictype/test-pr_other_id_start.c: Likewise.
51217         * tests/unictype/test-pr_other_lowercase.c: Likewise.
51218         * tests/unictype/test-pr_other_math.c: Likewise.
51219         * tests/unictype/test-pr_other_uppercase.c: Likewise.
51220         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
51221         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
51222         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
51223         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
51224         * tests/unictype/test-pr_private_use.c: Likewise.
51225         * tests/unictype/test-pr_punctuation.c: Likewise.
51226         * tests/unictype/test-pr_quotation_mark.c: Likewise.
51227         * tests/unictype/test-pr_radical.c: Likewise.
51228         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
51229         * tests/unictype/test-pr_soft_dotted.c: Likewise.
51230         * tests/unictype/test-pr_space.c: Likewise.
51231         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
51232         * tests/unictype/test-pr_titlecase.c: Likewise.
51233         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
51234         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
51235         * tests/unictype/test-pr_uppercase.c: Likewise.
51236         * tests/unictype/test-pr_variation_selector.c: Likewise.
51237         * tests/unictype/test-pr_white_space.c: Likewise.
51238         * tests/unictype/test-pr_xid_continue.c: Likewise.
51239         * tests/unictype/test-pr_xid_start.c: Likewise.
51240         * tests/unictype/test-pr_zero_width.c: Likewise.
51241         * tests/unictype/test-sy_c_whitespace.c: Likewise.
51242         * tests/unictype/test-sy_java_whitespace.c: Likewise.
51243
51244 2007-11-12  Bruno Haible  <bruno@clisp.org>
51245
51246         Unicode character classification functions.
51247         * lib/unictype.h: New file.
51248         * modules/unictype/base: New file.
51249         * modules/unictype/category-L: New file.
51250         * modules/unictype/category-Lu: New file.
51251         * modules/unictype/category-Ll: New file.
51252         * modules/unictype/category-Lt: New file.
51253         * modules/unictype/category-Lm: New file.
51254         * modules/unictype/category-Lo: New file.
51255         * modules/unictype/category-M: New file.
51256         * modules/unictype/category-Mn: New file.
51257         * modules/unictype/category-Mc: New file.
51258         * modules/unictype/category-Me: New file.
51259         * modules/unictype/category-N: New file.
51260         * modules/unictype/category-Nd: New file.
51261         * modules/unictype/category-Nl: New file.
51262         * modules/unictype/category-No: New file.
51263         * modules/unictype/category-P: New file.
51264         * modules/unictype/category-Pc: New file.
51265         * modules/unictype/category-Pd: New file.
51266         * modules/unictype/category-Ps: New file.
51267         * modules/unictype/category-Pe: New file.
51268         * modules/unictype/category-Pi: New file.
51269         * modules/unictype/category-Pf: New file.
51270         * modules/unictype/category-Po: New file.
51271         * modules/unictype/category-S: New file.
51272         * modules/unictype/category-Sm: New file.
51273         * modules/unictype/category-Sc: New file.
51274         * modules/unictype/category-Sk: New file.
51275         * modules/unictype/category-So: New file.
51276         * modules/unictype/category-Z: New file.
51277         * modules/unictype/category-Zs: New file.
51278         * modules/unictype/category-Zl: New file.
51279         * modules/unictype/category-Zp: New file.
51280         * modules/unictype/category-C: New file.
51281         * modules/unictype/category-Cc: New file.
51282         * modules/unictype/category-Cf: New file.
51283         * modules/unictype/category-Cs: New file.
51284         * modules/unictype/category-Co: New file.
51285         * modules/unictype/category-Cn: New file.
51286         * modules/unictype/category-or: New file.
51287         * modules/unictype/category-of: New file.
51288         * modules/unictype/category-test: New file.
51289         * modules/unictype/category-test-withtable: New file.
51290         * modules/unictype/category-byname: New file.
51291         * modules/unictype/category-none: New file.
51292         * modules/unictype/category-and: New file.
51293         * modules/unictype/category-and-not: New file.
51294         * modules/unictype/category-name: New file.
51295         * modules/unictype/combining-class: New file.
51296         * modules/unictype/category-all: New file.
51297         * modules/unictype/bidicategory-all: New file.
51298         * modules/unictype/bidicategory-byname: New file.
51299         * modules/unictype/bidicategory-name: New file.
51300         * modules/unictype/bidicategory-of: New file.
51301         * modules/unictype/bidicategory-test: New file.
51302         * modules/unictype/decimal-digit: New file.
51303         * modules/unictype/digit: New file.
51304         * modules/unictype/numeric: New file.
51305         * modules/unictype/mirror: New file.
51306         * modules/unictype/property-white-space: New file.
51307         * modules/unictype/property-alphabetic: New file.
51308         * modules/unictype/property-other-alphabetic: New file.
51309         * modules/unictype/property-not-a-character: New file.
51310         * modules/unictype/property-default-ignorable-code-point: New file.
51311         * modules/unictype/property-other-default-ignorable-code-point: New
51312         file.
51313         * modules/unictype/property-deprecated: New file.
51314         * modules/unictype/property-logical-order-exception: New file.
51315         * modules/unictype/property-variation-selector: New file.
51316         * modules/unictype/property-private-use: New file.
51317         * modules/unictype/property-unassigned-code-value: New file.
51318         * modules/unictype/property-uppercase: New file.
51319         * modules/unictype/property-other-uppercase: New file.
51320         * modules/unictype/property-lowercase: New file.
51321         * modules/unictype/property-other-lowercase: New file.
51322         * modules/unictype/property-titlecase: New file.
51323         * modules/unictype/property-soft-dotted: New file.
51324         * modules/unictype/property-id-start: New file.
51325         * modules/unictype/property-other-id-start: New file.
51326         * modules/unictype/property-id-continue: New file.
51327         * modules/unictype/property-other-id-continue: New file.
51328         * modules/unictype/property-xid-start: New file.
51329         * modules/unictype/property-xid-continue: New file.
51330         * modules/unictype/property-pattern-white-space: New file.
51331         * modules/unictype/property-pattern-syntax: New file.
51332         * modules/unictype/property-join-control: New file.
51333         * modules/unictype/property-grapheme-base: New file.
51334         * modules/unictype/property-grapheme-extend: New file.
51335         * modules/unictype/property-other-grapheme-extend: New file.
51336         * modules/unictype/property-grapheme-link: New file.
51337         * modules/unictype/property-bidi-control: New file.
51338         * modules/unictype/property-bidi-left-to-right: New file.
51339         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
51340         * modules/unictype/property-bidi-arabic-right-to-left: New file.
51341         * modules/unictype/property-bidi-european-digit: New file.
51342         * modules/unictype/property-bidi-eur-num-separator: New file.
51343         * modules/unictype/property-bidi-eur-num-terminator: New file.
51344         * modules/unictype/property-bidi-arabic-digit: New file.
51345         * modules/unictype/property-bidi-common-separator: New file.
51346         * modules/unictype/property-bidi-block-separator: New file.
51347         * modules/unictype/property-bidi-segment-separator: New file.
51348         * modules/unictype/property-bidi-whitespace: New file.
51349         * modules/unictype/property-bidi-non-spacing-mark: New file.
51350         * modules/unictype/property-bidi-boundary-neutral: New file.
51351         * modules/unictype/property-bidi-pdf: New file.
51352         * modules/unictype/property-bidi-embedding-or-override: New file.
51353         * modules/unictype/property-bidi-other-neutral: New file.
51354         * modules/unictype/property-hex-digit: New file.
51355         * modules/unictype/property-ascii-hex-digit: New file.
51356         * modules/unictype/property-ideographic: New file.
51357         * modules/unictype/property-unified-ideograph: New file.
51358         * modules/unictype/property-radical: New file.
51359         * modules/unictype/property-ids-binary-operator: New file.
51360         * modules/unictype/property-ids-trinary-operator: New file.
51361         * modules/unictype/property-zero-width: New file.
51362         * modules/unictype/property-space: New file.
51363         * modules/unictype/property-non-break: New file.
51364         * modules/unictype/property-iso-control: New file.
51365         * modules/unictype/property-format-control: New file.
51366         * modules/unictype/property-dash: New file.
51367         * modules/unictype/property-hyphen: New file.
51368         * modules/unictype/property-punctuation: New file.
51369         * modules/unictype/property-line-separator: New file.
51370         * modules/unictype/property-paragraph-separator: New file.
51371         * modules/unictype/property-quotation-mark: New file.
51372         * modules/unictype/property-sentence-terminal: New file.
51373         * modules/unictype/property-terminal-punctuation: New file.
51374         * modules/unictype/property-currency-symbol: New file.
51375         * modules/unictype/property-math: New file.
51376         * modules/unictype/property-other-math: New file.
51377         * modules/unictype/property-paired-punctuation: New file.
51378         * modules/unictype/property-left-of-pair: New file.
51379         * modules/unictype/property-combining: New file.
51380         * modules/unictype/property-composite: New file.
51381         * modules/unictype/property-decimal-digit: New file.
51382         * modules/unictype/property-numeric: New file.
51383         * modules/unictype/property-diacritic: New file.
51384         * modules/unictype/property-extender: New file.
51385         * modules/unictype/property-ignorable-control: New file.
51386         * modules/unictype/property-test: New file.
51387         * modules/unictype/property-byname: New file.
51388         * modules/unictype/property-all: New file.
51389         * modules/unictype/scripts: New file.
51390         * modules/unictype/scripts-all: New file.
51391         * modules/unictype/block-of: New file.
51392         * modules/unictype/block-test: New file.
51393         * modules/unictype/block-list: New file.
51394         * modules/unictype/block-all: New file.
51395         * modules/unictype/syntax-c-whitespace: New file.
51396         * modules/unictype/syntax-java-whitespace: New file.
51397         * modules/unictype/syntax-c-ident: New file.
51398         * modules/unictype/syntax-java-ident: New file.
51399         * modules/unictype/ctype-alnum: New file.
51400         * modules/unictype/ctype-alpha: New file.
51401         * modules/unictype/ctype-cntrl: New file.
51402         * modules/unictype/ctype-digit: New file.
51403         * modules/unictype/ctype-graph: New file.
51404         * modules/unictype/ctype-lower: New file.
51405         * modules/unictype/ctype-print: New file.
51406         * modules/unictype/ctype-punct: New file.
51407         * modules/unictype/ctype-space: New file.
51408         * modules/unictype/ctype-upper: New file.
51409         * modules/unictype/ctype-xdigit: New file.
51410         * modules/unictype/ctype-blank: New file.
51411         * lib/unictype/bidi_byname.c: New file.
51412         * lib/unictype/bidi_name.c: New file.
51413         * lib/unictype/bidi_of.c: New file.
51414         * lib/unictype/bidi_test.c: New file.
51415         * lib/unictype/bitmap.h: New file.
51416         * lib/unictype/block_test.c: New file.
51417         * lib/unictype/blocks.c: New file.
51418         * lib/unictype/categ_C.c: New file.
51419         * lib/unictype/categ_Cc.c: New file.
51420         * lib/unictype/categ_Cf.c: New file.
51421         * lib/unictype/categ_Cn.c: New file.
51422         * lib/unictype/categ_Co.c: New file.
51423         * lib/unictype/categ_Cs.c: New file.
51424         * lib/unictype/categ_L.c: New file.
51425         * lib/unictype/categ_Ll.c: New file.
51426         * lib/unictype/categ_Lm.c: New file.
51427         * lib/unictype/categ_Lo.c: New file.
51428         * lib/unictype/categ_Lt.c: New file.
51429         * lib/unictype/categ_Lu.c: New file.
51430         * lib/unictype/categ_M.c: New file.
51431         * lib/unictype/categ_Mc.c: New file.
51432         * lib/unictype/categ_Me.c: New file.
51433         * lib/unictype/categ_Mn.c: New file.
51434         * lib/unictype/categ_N.c: New file.
51435         * lib/unictype/categ_Nd.c: New file.
51436         * lib/unictype/categ_Nl.c: New file.
51437         * lib/unictype/categ_No.c: New file.
51438         * lib/unictype/categ_P.c: New file.
51439         * lib/unictype/categ_Pc.c: New file.
51440         * lib/unictype/categ_Pd.c: New file.
51441         * lib/unictype/categ_Pe.c: New file.
51442         * lib/unictype/categ_Pf.c: New file.
51443         * lib/unictype/categ_Pi.c: New file.
51444         * lib/unictype/categ_Po.c: New file.
51445         * lib/unictype/categ_Ps.c: New file.
51446         * lib/unictype/categ_S.c: New file.
51447         * lib/unictype/categ_Sc.c: New file.
51448         * lib/unictype/categ_Sk.c: New file.
51449         * lib/unictype/categ_Sm.c: New file.
51450         * lib/unictype/categ_So.c: New file.
51451         * lib/unictype/categ_Z.c: New file.
51452         * lib/unictype/categ_Zl.c: New file.
51453         * lib/unictype/categ_Zp.c: New file.
51454         * lib/unictype/categ_Zs.c: New file.
51455         * lib/unictype/categ_and.c: New file.
51456         * lib/unictype/categ_and_not.c: New file.
51457         * lib/unictype/categ_byname.c: New file.
51458         * lib/unictype/categ_name.c: New file.
51459         * lib/unictype/categ_none.c: New file.
51460         * lib/unictype/categ_of.c: New file.
51461         * lib/unictype/categ_or.c: New file.
51462         * lib/unictype/categ_test.c: New file.
51463         * lib/unictype/combining.c: New file.
51464         * lib/unictype/ctype_alnum.c: New file.
51465         * lib/unictype/ctype_alpha.c: New file.
51466         * lib/unictype/ctype_blank.c: New file.
51467         * lib/unictype/ctype_cntrl.c: New file.
51468         * lib/unictype/ctype_digit.c: New file.
51469         * lib/unictype/ctype_graph.c: New file.
51470         * lib/unictype/ctype_lower.c: New file.
51471         * lib/unictype/ctype_print.c: New file.
51472         * lib/unictype/ctype_punct.c: New file.
51473         * lib/unictype/ctype_space.c: New file.
51474         * lib/unictype/ctype_upper.c: New file.
51475         * lib/unictype/ctype_xdigit.c: New file.
51476         * lib/unictype/decdigit.c: New file.
51477         * lib/unictype/digit.c: New file.
51478         * lib/unictype/identsyntaxmap.h: New file.
51479         * lib/unictype/mirror.c: New file.
51480         * lib/unictype/numeric.c: New file.
51481         * lib/unictype/pr_alphabetic.c: New file.
51482         * lib/unictype/pr_ascii_hex_digit.c: New file.
51483         * lib/unictype/pr_bidi_arabic_digit.c: New file.
51484         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
51485         * lib/unictype/pr_bidi_block_separator.c: New file.
51486         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
51487         * lib/unictype/pr_bidi_common_separator.c: New file.
51488         * lib/unictype/pr_bidi_control.c: New file.
51489         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
51490         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
51491         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
51492         * lib/unictype/pr_bidi_european_digit.c: New file.
51493         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
51494         * lib/unictype/pr_bidi_left_to_right.c: New file.
51495         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
51496         * lib/unictype/pr_bidi_other_neutral.c: New file.
51497         * lib/unictype/pr_bidi_pdf.c: New file.
51498         * lib/unictype/pr_bidi_segment_separator.c: New file.
51499         * lib/unictype/pr_bidi_whitespace.c: New file.
51500         * lib/unictype/pr_byname.c: New file.
51501         * lib/unictype/pr_byname.gperf: New file.
51502         * lib/unictype/pr_combining.c: New file.
51503         * lib/unictype/pr_composite.c: New file.
51504         * lib/unictype/pr_currency_symbol.c: New file.
51505         * lib/unictype/pr_dash.c: New file.
51506         * lib/unictype/pr_decimal_digit.c: New file.
51507         * lib/unictype/pr_default_ignorable_code_point.c: New file.
51508         * lib/unictype/pr_deprecated.c: New file.
51509         * lib/unictype/pr_diacritic.c: New file.
51510         * lib/unictype/pr_extender.c: New file.
51511         * lib/unictype/pr_format_control.c: New file.
51512         * lib/unictype/pr_grapheme_base.c: New file.
51513         * lib/unictype/pr_grapheme_extend.c: New file.
51514         * lib/unictype/pr_grapheme_link.c: New file.
51515         * lib/unictype/pr_hex_digit.c: New file.
51516         * lib/unictype/pr_hyphen.c: New file.
51517         * lib/unictype/pr_id_continue.c: New file.
51518         * lib/unictype/pr_id_start.c: New file.
51519         * lib/unictype/pr_ideographic.c: New file.
51520         * lib/unictype/pr_ids_binary_operator.c: New file.
51521         * lib/unictype/pr_ids_trinary_operator.c: New file.
51522         * lib/unictype/pr_ignorable_control.c: New file.
51523         * lib/unictype/pr_iso_control.c: New file.
51524         * lib/unictype/pr_join_control.c: New file.
51525         * lib/unictype/pr_left_of_pair.c: New file.
51526         * lib/unictype/pr_line_separator.c: New file.
51527         * lib/unictype/pr_logical_order_exception.c: New file.
51528         * lib/unictype/pr_lowercase.c: New file.
51529         * lib/unictype/pr_math.c: New file.
51530         * lib/unictype/pr_non_break.c: New file.
51531         * lib/unictype/pr_not_a_character.c: New file.
51532         * lib/unictype/pr_numeric.c: New file.
51533         * lib/unictype/pr_other_alphabetic.c: New file.
51534         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
51535         * lib/unictype/pr_other_grapheme_extend.c: New file.
51536         * lib/unictype/pr_other_id_continue.c: New file.
51537         * lib/unictype/pr_other_id_start.c: New file.
51538         * lib/unictype/pr_other_lowercase.c: New file.
51539         * lib/unictype/pr_other_math.c: New file.
51540         * lib/unictype/pr_other_uppercase.c: New file.
51541         * lib/unictype/pr_paired_punctuation.c: New file.
51542         * lib/unictype/pr_paragraph_separator.c: New file.
51543         * lib/unictype/pr_pattern_syntax.c: New file.
51544         * lib/unictype/pr_pattern_white_space.c: New file.
51545         * lib/unictype/pr_private_use.c: New file.
51546         * lib/unictype/pr_punctuation.c: New file.
51547         * lib/unictype/pr_quotation_mark.c: New file.
51548         * lib/unictype/pr_radical.c: New file.
51549         * lib/unictype/pr_sentence_terminal.c: New file.
51550         * lib/unictype/pr_soft_dotted.c: New file.
51551         * lib/unictype/pr_space.c: New file.
51552         * lib/unictype/pr_terminal_punctuation.c: New file.
51553         * lib/unictype/pr_test.c: New file.
51554         * lib/unictype/pr_titlecase.c: New file.
51555         * lib/unictype/pr_unassigned_code_value.c: New file.
51556         * lib/unictype/pr_unified_ideograph.c: New file.
51557         * lib/unictype/pr_uppercase.c: New file.
51558         * lib/unictype/pr_variation_selector.c: New file.
51559         * lib/unictype/pr_white_space.c: New file.
51560         * lib/unictype/pr_xid_continue.c: New file.
51561         * lib/unictype/pr_xid_start.c: New file.
51562         * lib/unictype/pr_zero_width.c: New file.
51563         * lib/unictype/scripts.c: New file.
51564         * lib/unictype/sy_c_ident.c: New file.
51565         * lib/unictype/sy_c_whitespace.c: New file.
51566         * lib/unictype/sy_java_ident.c: New file.
51567         * lib/unictype/sy_java_whitespace.c: New file.
51568
51569         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
51570         Unicode 5.0.0.
51571         * lib/unictype/blocks.h: Likewise.
51572         * lib/unictype/categ_C.h: Likewise.
51573         * lib/unictype/categ_Cc.h: Likewise.
51574         * lib/unictype/categ_Cf.h: Likewise.
51575         * lib/unictype/categ_Cn.h: Likewise.
51576         * lib/unictype/categ_Co.h: Likewise.
51577         * lib/unictype/categ_Cs.h: Likewise.
51578         * lib/unictype/categ_L.h: Likewise.
51579         * lib/unictype/categ_Ll.h: Likewise.
51580         * lib/unictype/categ_Lm.h: Likewise.
51581         * lib/unictype/categ_Lo.h: Likewise.
51582         * lib/unictype/categ_Lt.h: Likewise.
51583         * lib/unictype/categ_Lu.h: Likewise.
51584         * lib/unictype/categ_M.h: Likewise.
51585         * lib/unictype/categ_Mc.h: Likewise.
51586         * lib/unictype/categ_Me.h: Likewise.
51587         * lib/unictype/categ_Mn.h: Likewise.
51588         * lib/unictype/categ_N.h: Likewise.
51589         * lib/unictype/categ_Nd.h: Likewise.
51590         * lib/unictype/categ_Nl.h: Likewise.
51591         * lib/unictype/categ_No.h: Likewise.
51592         * lib/unictype/categ_P.h: Likewise.
51593         * lib/unictype/categ_Pc.h: Likewise.
51594         * lib/unictype/categ_Pd.h: Likewise.
51595         * lib/unictype/categ_Pe.h: Likewise.
51596         * lib/unictype/categ_Pf.h: Likewise.
51597         * lib/unictype/categ_Pi.h: Likewise.
51598         * lib/unictype/categ_Po.h: Likewise.
51599         * lib/unictype/categ_Ps.h: Likewise.
51600         * lib/unictype/categ_S.h: Likewise.
51601         * lib/unictype/categ_Sc.h: Likewise.
51602         * lib/unictype/categ_Sk.h: Likewise.
51603         * lib/unictype/categ_Sm.h: Likewise.
51604         * lib/unictype/categ_So.h: Likewise.
51605         * lib/unictype/categ_Z.h: Likewise.
51606         * lib/unictype/categ_Zl.h: Likewise.
51607         * lib/unictype/categ_Zp.h: Likewise.
51608         * lib/unictype/categ_Zs.h: Likewise.
51609         * lib/unictype/categ_of.h: Likewise.
51610         * lib/unictype/combining.h: Likewise.
51611         * lib/unictype/ctype_alnum.h: Likewise.
51612         * lib/unictype/ctype_alpha.h: Likewise.
51613         * lib/unictype/ctype_blank.h: Likewise.
51614         * lib/unictype/ctype_cntrl.h: Likewise.
51615         * lib/unictype/ctype_digit.h: Likewise.
51616         * lib/unictype/ctype_graph.h: Likewise.
51617         * lib/unictype/ctype_lower.h: Likewise.
51618         * lib/unictype/ctype_print.h: Likewise.
51619         * lib/unictype/ctype_punct.h: Likewise.
51620         * lib/unictype/ctype_space.h: Likewise.
51621         * lib/unictype/ctype_upper.h: Likewise.
51622         * lib/unictype/ctype_xdigit.h: Likewise.
51623         * lib/unictype/decdigit.h: Likewise.
51624         * lib/unictype/digit.h: Likewise.
51625         * lib/unictype/mirror.h: Likewise.
51626         * lib/unictype/numeric.h: Likewise.
51627         * lib/unictype/pr_alphabetic.h: Likewise.
51628         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
51629         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
51630         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
51631         * lib/unictype/pr_bidi_block_separator.h: Likewise.
51632         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
51633         * lib/unictype/pr_bidi_common_separator.h: Likewise.
51634         * lib/unictype/pr_bidi_control.h: Likewise.
51635         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
51636         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
51637         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
51638         * lib/unictype/pr_bidi_european_digit.h: Likewise.
51639         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
51640         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
51641         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
51642         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
51643         * lib/unictype/pr_bidi_pdf.h: Likewise.
51644         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
51645         * lib/unictype/pr_bidi_whitespace.h: Likewise.
51646         * lib/unictype/pr_combining.h: Likewise.
51647         * lib/unictype/pr_composite.h: Likewise.
51648         * lib/unictype/pr_currency_symbol.h: Likewise.
51649         * lib/unictype/pr_dash.h: Likewise.
51650         * lib/unictype/pr_decimal_digit.h: Likewise.
51651         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
51652         * lib/unictype/pr_deprecated.h: Likewise.
51653         * lib/unictype/pr_diacritic.h: Likewise.
51654         * lib/unictype/pr_extender.h: Likewise.
51655         * lib/unictype/pr_format_control.h: Likewise.
51656         * lib/unictype/pr_grapheme_base.h: Likewise.
51657         * lib/unictype/pr_grapheme_extend.h: Likewise.
51658         * lib/unictype/pr_grapheme_link.h: Likewise.
51659         * lib/unictype/pr_hex_digit.h: Likewise.
51660         * lib/unictype/pr_hyphen.h: Likewise.
51661         * lib/unictype/pr_id_continue.h: Likewise.
51662         * lib/unictype/pr_id_start.h: Likewise.
51663         * lib/unictype/pr_ideographic.h: Likewise.
51664         * lib/unictype/pr_ids_binary_operator.h: Likewise.
51665         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
51666         * lib/unictype/pr_ignorable_control.h: Likewise.
51667         * lib/unictype/pr_iso_control.h: Likewise.
51668         * lib/unictype/pr_join_control.h: Likewise.
51669         * lib/unictype/pr_left_of_pair.h: Likewise.
51670         * lib/unictype/pr_line_separator.h: Likewise.
51671         * lib/unictype/pr_logical_order_exception.h: Likewise.
51672         * lib/unictype/pr_lowercase.h: Likewise.
51673         * lib/unictype/pr_math.h: Likewise.
51674         * lib/unictype/pr_non_break.h: Likewise.
51675         * lib/unictype/pr_not_a_character.h: Likewise.
51676         * lib/unictype/pr_numeric.h: Likewise.
51677         * lib/unictype/pr_other_alphabetic.h: Likewise.
51678         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
51679         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
51680         * lib/unictype/pr_other_id_continue.h: Likewise.
51681         * lib/unictype/pr_other_id_start.h: Likewise.
51682         * lib/unictype/pr_other_lowercase.h: Likewise.
51683         * lib/unictype/pr_other_math.h: Likewise.
51684         * lib/unictype/pr_other_uppercase.h: Likewise.
51685         * lib/unictype/pr_paired_punctuation.h: Likewise.
51686         * lib/unictype/pr_paragraph_separator.h: Likewise.
51687         * lib/unictype/pr_pattern_syntax.h: Likewise.
51688         * lib/unictype/pr_pattern_white_space.h: Likewise.
51689         * lib/unictype/pr_private_use.h: Likewise.
51690         * lib/unictype/pr_punctuation.h: Likewise.
51691         * lib/unictype/pr_quotation_mark.h: Likewise.
51692         * lib/unictype/pr_radical.h: Likewise.
51693         * lib/unictype/pr_sentence_terminal.h: Likewise.
51694         * lib/unictype/pr_soft_dotted.h: Likewise.
51695         * lib/unictype/pr_space.h: Likewise.
51696         * lib/unictype/pr_terminal_punctuation.h: Likewise.
51697         * lib/unictype/pr_titlecase.h: Likewise.
51698         * lib/unictype/pr_unassigned_code_value.h: Likewise.
51699         * lib/unictype/pr_unified_ideograph.h: Likewise.
51700         * lib/unictype/pr_uppercase.h: Likewise.
51701         * lib/unictype/pr_variation_selector.h: Likewise.
51702         * lib/unictype/pr_white_space.h: Likewise.
51703         * lib/unictype/pr_xid_continue.h: Likewise.
51704         * lib/unictype/pr_xid_start.h: Likewise.
51705         * lib/unictype/pr_zero_width.h: Likewise.
51706         * lib/unictype/scripts.h: Likewise.
51707         * lib/unictype/scripts_byname.gperf: Likewise.
51708         * lib/unictype/sy_c_ident.h: Likewise.
51709         * lib/unictype/sy_c_whitespace.h: Likewise.
51710         * lib/unictype/sy_java_ident.h: Likewise.
51711         * lib/unictype/sy_java_whitespace.h: Likewise.
51712
51713         * lib/unictype/Makefile: New file.
51714         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
51715         glibc.
51716         * lib/unictype/3level.h: New file, copied from glibc.
51717         * lib/unictype/3levelbit.h: New file.
51718
51719 2007-11-11  Bruno Haible  <bruno@clisp.org>
51720
51721         * modules/gperf: New file.
51722         * modules/iconv_open (Depends-on): Add it.
51723         (Makefile.am): Remove the GPERF definition.
51724
51725 2007-11-11  Bruno Haible  <bruno@clisp.org>
51726
51727         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
51728         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
51729
51730 2007-11-11  Bruno Haible  <bruno@clisp.org>
51731
51732         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
51733         (usage): Remove function.
51734
51735 2007-11-11  Bruno Haible  <bruno@clisp.org>
51736
51737         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
51738         gl_FUNC_CEILF_LIBS.
51739         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
51740         gl_FUNC_CEIL_LIBS.
51741         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
51742         gl_FUNC_CEILL_LIBS.
51743         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
51744         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
51745         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
51746
51747 2007-11-11  Bruno Haible  <bruno@clisp.org>
51748
51749         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
51750         roundf were declared but do not exist on functions.
51751         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
51752         roundl were declared but do not exist on functions.
51753         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
51754         HAVE_FLOORL_AND_CEILL, respectively.
51755         Needed for Sun C on Solaris 10.
51756
51757 2007-11-11  Bruno Haible  <bruno@clisp.org>
51758
51759         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
51760         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
51761         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
51762         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
51763         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
51764         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
51765         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
51766         HAVE_DECL_ROUNDF.
51767         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
51768         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
51769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
51770         of HAVE_DECL_ROUND*.
51771         * modules/math (Makefile.am): Update.
51772
51773 2007-11-10  Bruno Haible  <bruno@clisp.org>
51774
51775         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
51776         ptrdiff_t as m4/intl.m4.
51777
51778 2007-11-10  Jim Meyering  <meyering@redhat.com>
51779
51780         Avoid link failure for the argmatch test.
51781         * tests/test-argmatch.c (usage): Define function to avoid a link
51782         failure: argmatch_die requires a usage function.
51783
51784 2007-11-09  Bruno Haible  <bruno@clisp.org>
51785
51786         * doc/functions/snprintf.texi: Mention BeOS deficiency.
51787         * doc/functions/vsnprintf.texi: Likewise.
51788         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
51789         with a size argument < 2.
51790
51791 2007-11-09  Bruno Haible  <bruno@clisp.org>
51792
51793         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
51794         buffer. Fixes an inefficiency introduced on 2007-11-03.
51795
51796 2007-11-09  Bruno Haible  <bruno@clisp.org>
51797
51798         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51799         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51800
51801 2007-11-08  Jim Meyering  <meyering@redhat.com>
51802
51803         Change cache variable name prefix "jm_" to "gl_" everywhere.
51804         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51805         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51806         * m4/uptime.m4: s/gl_/jm_/
51807
51808 2007-11-07  Bruno Haible  <bruno@clisp.org>
51809
51810         Update to GNU gettext 0.17.
51811         * m4/intl.m4: Update to GNU gettext 0.17.
51812         * m4/po.m4: Likewise.
51813         * modules/gettext (Files): Remove m4/ulonglong.m4.
51814         (configure.ac): Require gettext infrastructure from version 0.17.
51815
51816 2007-11-06  Bruno Haible  <bruno@clisp.org>
51817
51818         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51819         symbolic values are not defined in a public header.
51820         * lib/freadable.c (freadable) [QNX]: Likewise.
51821         * lib/freadahead.c (freadahead) [QNX]: Likewise.
51822         * lib/freading.c (freading) [QNX]: Likewise.
51823         * lib/fseterr.c (fseterr) [QNX]: Likewise.
51824         * lib/fwritable.c (fwritable) [QNX]: Likewise.
51825         * lib/fwriting.c (fwriting) [QNX]: Likewise.
51826         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
51827         Reported by Alain Magloire.
51828
51829         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
51830
51831 2007-11-05  Bruno Haible  <bruno@clisp.org>
51832
51833         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
51834         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
51835         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
51836         Reported by Eric Blake.
51837
51838 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51839             Bruno Haible  <bruno@clisp.org>
51840
51841         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
51842         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
51843         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
51844         (malloc): Undefine also before including <stdlib.h>.
51845         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
51846         Needed on OSF/1 4.0.
51847
51848 2007-11-05  Jim Meyering  <meyering@redhat.com>
51849
51850         git-version-gen: sync from coreutils.
51851         * build-aux/git-version-gen: Add comments.
51852         Change the first '-' to '.' in the snapshot version string,
51853         e.g., 6.9-377-08144 -> 6.9.377-08144
51854         Remove first parameter.
51855         Don't declare a version "-dirty" merely because a time
51856         stamp has changed.
51857
51858 2007-11-04  Bruno Haible  <bruno@clisp.org>
51859
51860         * lib/lock.h: Protect all macro definitions containing an 'if'
51861         statement through a "do { ... } while (0)".
51862         * lib/tls.h: Likewise.
51863
51864 2007-11-04  Bruno Haible  <bruno@clisp.org>
51865
51866         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
51867
51868 2007-11-04  Bruno Haible  <bruno@clisp.org>
51869
51870         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
51871         * modules/fprintf-posix (Depends-on): Add nocrash.
51872         * modules/snprintf-posix (Depends-on): Likewise.
51873         * modules/sprintf-posix (Depends-on): Likewise.
51874         * modules/vasnprintf-posix (Depends-on): Likewise.
51875         * modules/vasprintf-posix (Depends-on): Likewise.
51876         * modules/vfprintf-posix (Depends-on): Likewise.
51877         * modules/vsnprintf-posix (Depends-on): Likewise.
51878         * modules/vsprintf-posix (Depends-on): Likewise.
51879         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51880         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51881         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51882         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51883         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51884         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51885         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51886
51887 2007-11-04  Bruno Haible  <bruno@clisp.org>
51888
51889         * modules/nocrash: New file.
51890         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51891         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51892
51893 2007-11-04  Bruno Haible  <bruno@clisp.org>
51894
51895         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51896         precision handling.
51897         * tests/test-vasprintf-posix.c (test_function): Likewise.
51898         * tests/test-snprintf-posix.h (test_function): Likewise.
51899         * tests/test-sprintf-posix.h (test_function): Likewise.
51900
51901         Fix *printf behaviour for large precisions on mingw and BeOS.
51902         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51903         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51905         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51906         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51907         gl_PRINTF_PRECISION and test its result. Invoke
51908         gl_PREREQ_VASNPRINTF_PRECISION.
51909         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51910         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51911         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51912         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51913         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51914         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51915         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51916         * doc/functions/fprintf.texi: Update.
51917         * doc/functions/printf.texi: Update.
51918         * doc/functions/snprintf.texi: Update.
51919         * doc/functions/sprintf.texi: Update.
51920         * doc/functions/vfprintf.texi: Update.
51921         * doc/functions/vprintf.texi: Update.
51922         * doc/functions/vsnprintf.texi: Update.
51923         * doc/functions/vsprintf.texi: Update.
51924
51925 2007-11-04  Bruno Haible  <bruno@clisp.org>
51926
51927         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51928
51929 2007-11-04  Bruno Haible  <bruno@clisp.org>
51930
51931         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51932         Reported by Sylvain Beucler <beuc@gnu.org>.
51933
51934 2007-11-03  Bruno Haible  <bruno@clisp.org>
51935
51936         * tests/test-fprintf-posix2.sh: New file.
51937         * tests/test-fprintf-posix2.c: New file.
51938         * modules/fprintf-posix-tests (Files): Add them.
51939         (TESTS): Add test-fprintf-posix2.sh.
51940         (configure.ac): Check for getrlimit and setrlimit.
51941         (check_PROGRAMS): Add test-fprintf-posix2.
51942
51943         * tests/test-printf-posix2.sh: New file.
51944         * tests/test-printf-posix2.c: New file.
51945         * modules/printf-posix-tests (Files): Add them.
51946         (TESTS): Add test-printf-posix2.sh.
51947         (configure.ac): Check for getrlimit and setrlimit.
51948         (check_PROGRAMS): Add test-printf-posix2.
51949
51950         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51951         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51952         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51953         (decode_double): New function, copied from decode_long_double.
51954         (scale10_round_decimal_decoded): New function, extracted from
51955         scale10_round_decimal_long_double.
51956         (scale10_round_decimal_long_double): Use it.
51957         (scale10_round_decimal_double): New function.
51958         (floorlog10): New function.
51959         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51960         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51961         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51962         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51963         gl_PRINTF_ENOMEM and test its result. Invoke
51964         gl_PREREQ_VASNPRINTF_ENOMEM.
51965         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51966         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51967         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51969         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51970         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51971         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51972         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51973         * modules/snprintf-posix (Depends-on): Likewise.
51974         * modules/sprintf-posix (Depends-on): Likewise.
51975         * modules/vasnprintf-posix (Depends-on): Likewise.
51976         * modules/vasprintf-posix (Depends-on): Likewise.
51977         * modules/vfprintf-posix (Depends-on): Likewise.
51978         * modules/vsnprintf-posix (Depends-on): Likewise.
51979         * modules/vsprintf-posix (Depends-on): Likewise.
51980         * doc/functions/fprintf.texi: Update.
51981         * doc/functions/printf.texi: Update.
51982         * doc/functions/snprintf.texi: Update.
51983         * doc/functions/sprintf.texi: Update.
51984         * doc/functions/vfprintf.texi: Update.
51985         * doc/functions/vprintf.texi: Update.
51986         * doc/functions/vsnprintf.texi: Update.
51987         * doc/functions/vsprintf.texi: Update.
51988
51989 2007-11-03  Bruno Haible  <bruno@clisp.org>
51990
51991         * modules/frexp-nolibm-tests: New file.
51992
51993         * modules/frexp-nolibm: New file.
51994         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51995
51996 2007-11-03  Bruno Haible  <bruno@clisp.org>
51997
51998         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51999         value is C99 compliant.
52000         Needed for OSF/1 5.1.
52001
52002 2007-11-03  Bruno Haible  <bruno@clisp.org>
52003
52004         Fix out-of-memory handling of vasnprintf.
52005         * lib/printf-parse.c: Include <errno.h>.
52006         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
52007         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
52008         is already set.
52009
52010 2007-11-02  Eric Blake  <ebb9@byu.net>
52011
52012         Fix tests on cygwin.
52013         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
52014
52015 2007-11-01  Bruno Haible  <bruno@clisp.org>
52016
52017         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
52018         warning.
52019         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
52020         needed for POSIX compatibility.
52021
52022 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52023
52024         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
52025         for compatibility with GNU.
52026
52027 2007-11-01  Bruno Haible  <bruno@clisp.org>
52028
52029         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
52030         (putenv): Renamed from rpl_putenv. Change argument type from
52031         'const char *' to 'char *'.
52032         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
52033         of defining putenv in config.h, just set REPLACE_PUTENV.
52034         * modules/putenv (Depends-on): Add stdlib.
52035         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52036         (Include): Use <stdlib.h>.
52037         * lib/stdlib.in.h (putenv): New declaration.
52038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
52039         REPLACE_PUTENV.
52040         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
52041         REPLACE_PUTENV.
52042         Needed for MacOS X 10.5.0.
52043         Reported by Peter O'Gorman <peter@pogma.com>.
52044
52045 2007-11-01  Jim Meyering  <meyering@redhat.com>
52046
52047         Treat an empty date string exactly like "0".
52048         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
52049         if the remaining date string (to be parsed) is empty, use "0".
52050         Reported by Mischa Molhoek and discussed in this thread:
52051         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
52052
52053 2007-10-31  Bruno Haible  <bruno@clisp.org>
52054
52055         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
52056         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
52057         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
52058         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
52059         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
52060         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
52061
52062 2007-10-31  Bruno Haible  <bruno@clisp.org>
52063
52064         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
52065         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
52066         (AC_TYPE_LONG_LONG_INT): Use it.
52067         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
52068         it as well.
52069         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
52070         to m4/longlong.m4.
52071         * modules/stdint (Files): Remove m4/ulonglong.m4.
52072         * modules/strtoull (Files): Use m4/longlong.m4 instead of
52073         m4/ulonglong.m4.
52074         * modules/strtoumax (Files): Likewise.
52075
52076 2007-10-30  Bruno Haible  <bruno@clisp.org>
52077
52078         * modules/xvasprintf-posix: New file.
52079         Suggested by Eric Blake.
52080
52081 2007-10-30  Bruno Haible  <bruno@clisp.org>
52082
52083         * modules/xprintf-posix-tests: New file.
52084         * tests/test-xprintf-posix.sh: New file.
52085         * tests/test-xprintf-posix.c: New file.
52086         * tests/test-xfprintf-posix.c: New file.
52087
52088         * modules/xprintf-posix: New file.
52089
52090 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52091
52092         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
52093         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
52094         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
52095
52096 2007-10-29  Bruno Haible  <bruno@clisp.org>
52097
52098         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
52099         contain the special marker '_cv_'.
52100         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
52101         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
52102         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
52103         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
52104         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
52105         Reported by Ralf Wildenhues.
52106
52107 2007-10-29  Bruno Haible  <bruno@clisp.org>
52108
52109         * gnulib-tool (func_import): When --lgpl is not specified, set
52110         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
52111         GPLv3.
52112         Reported by Simon Josefsson.
52113
52114 2007-10-28  Bruno Haible  <bruno@clisp.org>
52115
52116         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
52117         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
52118         HAVE_DECL_ISFINITE.
52119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
52120         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
52121         HAVE_DECL_ISFINITE.
52122
52123 2007-10-28  Bruno Haible  <bruno@clisp.org>
52124
52125         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
52126         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
52127
52128 2007-10-28  Bruno Haible  <bruno@clisp.org>
52129
52130         Fix link errors with Sun C 5.0 on Solaris 10.
52131         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
52132         function is declared but not present in the compiler's libm.
52133         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
52134         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
52135         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
52136         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
52137         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
52138         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
52139         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
52140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
52141         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
52142         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
52143         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
52144         HAVE_DECL_FLOORL.
52145
52146 2007-10-28  Bruno Haible  <bruno@clisp.org>
52147
52148         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
52149         gl_FUNC_FLOORL. Cache the result.
52150         (gl_FUNC_FLOORL): Use it.
52151         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
52152         gl_FUNC_CEILL. Cache the result.
52153         (gl_FUNC_CEILL): Use it.
52154
52155         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
52156         gl_FUNC_FLOOR. Cache the result.
52157         (gl_FUNC_FLOOR): Use it.
52158         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
52159         gl_FUNC_CEIL. Cache the result.
52160         (gl_FUNC_CEIL): Use it.
52161
52162         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
52163         gl_FUNC_FLOORF. Cache the result.
52164         (gl_FUNC_FLOORF): Use it.
52165         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
52166         gl_FUNC_CEILF. Cache the result.
52167         (gl_FUNC_CEILF): Use it.
52168
52169 2007-10-28  Bruno Haible  <bruno@clisp.org>
52170
52171         * gnulib-tool: Allow specifying the LGPL version number through
52172         --lgpl=2 or --lgpl=3.
52173         (func_usage): Document --lgpl with argument.
52174         Handle --lgpl=... arguments.
52175         (func_import): Recognize also gl_LGPL calls with an argument. When
52176         --lgpl=2 is used and the module's license is just LGPL, report an
52177         error. Set sed_transform_lib_file according to the lgpl variable. In
52178         the generated files, use --lgpl or gl_LGPL invocations with argument,
52179         if necessary.
52180         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
52181         an LGPv2+ license.
52182         * doc/gnulib-tool.texi (Modified imports): Update explanation of
52183         gl_LGPL macro.
52184
52185 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52186             Bruno Haible  <bruno@clisp.org>
52187
52188         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
52189         (u16_uctomb_aux): Likewise.
52190         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
52191         !HAVE_INLINE.
52192         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
52193
52194 2007-10-28  Bruno Haible  <bruno@clisp.org>
52195
52196         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
52197         Invoke AM_GETTEXT_OPTION if it exists.
52198         * modules/vasprintf: Likewise.
52199         * modules/verror: Likewise.
52200         * modules/xprintf: Likewise.
52201         * modules/xvasprintf: Likewise.
52202
52203 2007-10-27  Ben Pfaff  <blp@gnu.org>
52204
52205         * lib/math.in.h: Define isfinite macro and prototypes for
52206         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
52207         implementations.
52208         * m4/math_h.m4: New substitutions for isfinite module.
52209         * lib/isfinite.c: New file.
52210         * m4/isfinite.m4: New file.
52211         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
52212         * modules/isfinite: New file.
52213         * modules/isfinite-tests: New file.
52214         * tests/tests-isfinite.c: New file.
52215         * doc/functions/isfinite.texi: Mention isfinite module.
52216         * MODULES.html.sh: Mention new module.
52217
52218 2007-10-27  Ben Pfaff  <blp@gnu.org>
52219
52220         Ralf Wildenhues reported that Tru64 4.0D declares the round
52221         functions but does not have definitions.
52222         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
52223         cannot be found in any library, set the output variable to
52224         "missing" instead of "".
52225         * m4/round.m4: Also use our substitute if we cannot find round in
52226         any library, even if it is declared.
52227         * m4/roundf.m4: Likewise for roundf.
52228         * m4/roundl.m4: Likewise for roundl.
52229         * lib/math.in.h: Undefine roundf, round, roundl before defining
52230         their replacements, to allow for hypothetical systems where these
52231         may be defined as macros but not available in libraries.
52232
52233 2007-10-27  Bruno Haible  <bruno@clisp.org>
52234
52235         * doc/gnulib.texi: Invoke @firstparagraphindent.
52236         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
52237         changes in gnulib.
52238         (Source changes): New section.
52239
52240 2007-10-26  Bruno Haible  <bruno@clisp.org>
52241
52242         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
52243         borrowed from autoconf.
52244
52245 2007-10-26  Bruno Haible  <bruno@clisp.org>
52246
52247         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
52248         strerror returned the empty string. Needed on HP-UX 11.00.
52249
52250 2007-10-24  Micah Cowan  <micah@cowan.name>
52251
52252         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
52253         * build-aux/bootstrap: Remove support for now-unnecessary option,
52254         --cvs-user, and envvars CVS_USER, CVS_RSH.
52255
52256 2007-10-24  Jim Meyering  <meyering@redhat.com>
52257
52258         Avoid diagnostics from sha1sum when there is no cached checksum.
52259         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
52260         if the po.s1 file hasn't been created yet.
52261
52262         * build-aux/bootstrap: Sync from coreutils:
52263         2007-10-24  Jim Meyering  <meyering@redhat.com>
52264         Get gnulib from the git repository, not from an obsolete cvs one.
52265         * build-aux/bootstrap: Suggestion from Micah Cowan.
52266         2007-10-04  Jim Meyering  <jim@meyering.net>
52267         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
52268         (update_po_files): Work also when there are no .po files in po/.
52269
52270 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52271
52272         * README: Append ".git" to git and cg examples.
52273         Problem reported by Benoit Sigoure.
52274
52275 2007-10-23  Micah Cowan  <micah@cowan.name>
52276
52277         * users.txt: Add wget.
52278
52279 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52280
52281         Fix linking of some unistdio tests on FreeBSD.
52282         * modules/unistdio/u16-vsnprintf-tests
52283         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
52284         * modules/unistdio/u16-vsprintf-tests
52285         (test_u16_vsnprintf1_LDADD): Likewise.
52286         * modules/unistdio/u32-vsnprintf-tests
52287         (test_u32_vsnprintf1_LDADD): Likewise.
52288         * modules/unistdio/u32-vsprintf-tests
52289         (test_u32_vsprintf1_LDADD): Likewise.
52290         * modules/unistdio/u8-vsnprintf-tests
52291         (test_u8_vsnprintf1_LDADD): Likewise.
52292         * modules/unistdio/u8-vsprintf-tests
52293         (test_u8_vsprintf1_LDADD): Likewise.
52294         * modules/unistdio/ulc-vsnprintf-tests
52295         (test_ulc_vsnprintf1_LDADD): Likewise.
52296         * modules/unistdio/ulc-vsprintf-tests
52297         (test_ulc_vsprintf1_LDADD): Likewise.
52298
52299         Fix linking of some uniconv tests on FreeBSD.
52300         * modules/uniconv/u16-conv-from-enc-tests
52301         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
52302         * modules/uniconv/u16-conv-to-enc-tests
52303         (test_u16_conv_to_enc_LDADD): Likewise.
52304         * modules/uniconv/u16-strconv-from-enc-tests
52305         (test_u16_strconv_from_enc_LDADD): Likewise.
52306         * modules/uniconv/u16-strconv-to-enc-tests
52307         (test_u16_strconv_to_enc_LDADD): Likewise.
52308         * modules/uniconv/u32-conv-from-enc-tests
52309         (test_u32_conv_from_enc_LDADD): Likewise.
52310         * modules/uniconv/u32-conv-to-enc-tests
52311         (test_u32_conv_to_enc_LDADD): Likewise.
52312         * modules/uniconv/u32-strconv-from-enc-tests
52313         (test_u32_strconv_from_enc_LDADD): Likewise.
52314         * modules/uniconv/u32-strconv-to-enc-tests
52315         (test_u32_strconv_to_enc_LDADD): Likewise.
52316         * modules/uniconv/u8-conv-from-enc-tests
52317         (test_u8_conv_from_enc_LDADD): Likewise.
52318         * modules/uniconv/u8-conv-to-enc-tests
52319         (test_u8_conv_to_enc_LDADD): Likewise.
52320         * modules/uniconv/u8-strconv-from-enc-tests
52321         (test_u8_strconv_from_enc_LDADD): Likewise.
52322         * modules/uniconv/u8-strconv-to-enc-tests
52323         (test_u8_strconv_to_enc_LDADD): Likewise.
52324
52325 2007-10-22  Bruno Haible  <bruno@clisp.org>
52326
52327         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
52328         size.
52329
52330 2007-10-22  Eric Blake  <ebb9@byu.net>
52331
52332         Tweak x*printf documentation.
52333         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
52334         variable name and comments.
52335         Suggested by Bruno Haible.
52336
52337 2007-10-22  Bruno Haible  <bruno@clisp.org>
52338
52339         * lib/acl.c (copy_acl): Fix file name in comment.
52340
52341 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52342
52343         Fix Tru64 problem with stdbool.h.
52344         * lib/stdbool.in.h (false, true):
52345         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
52346         Don't declare as an enum in this situation; it runs afoul of Tru64.
52347         Problem reported by Steven M. Schweda in
52348         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
52349
52350 2007-10-22  Eric Blake  <ebb9@byu.net>
52351
52352         Also wrap vf?printf.
52353         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
52354         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
52355         (xvprintf, xvfprintf): New functions.
52356
52357 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52358
52359         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
52360         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
52361
52362         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
52363         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
52364
52365 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52366
52367         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
52368         by Bruno Haible.
52369
52370 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52371
52372         * lib/getloadavg.c
52373         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
52374         Undef `sys' after including sys/table.h, for Tru64 4.0D.
52375
52376         * tests/test-i-ring.c: Work for C89.
52377
52378 2007-10-22  Bruno Haible  <bruno@clisp.org>
52379
52380         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
52381         -1u, in preprocessor expression, so that we don't test for the bug
52382         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
52383         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
52384
52385 2007-10-22  Eric Blake  <ebb9@byu.net>
52386
52387         * tests/test-yesno.sh: Silence stderr during test.
52388
52389 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52390
52391         * modules/crypto/gc-camellia: New file.
52392
52393         * m4/gc-camellia.m4: New file.
52394
52395         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
52396
52397         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
52398
52399 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52400
52401         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
52402         --help to stdout.  Reported by sms@antinode.org (Steven
52403         M. Schweda).
52404
52405 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52406
52407         * users.txt: Fix link to libksba.
52408
52409 2007-10-21  Ben Pfaff  <blp@gnu.org>
52410
52411         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
52412         round.c roundf implementation that depends on floorf and ceilf to
52413         be tested unconditionally.
52414
52415 2007-10-21  Ben Pfaff  <blp@gnu.org>
52416
52417         * m4/check-libm-func.m4: Removed.
52418         * m4/check-math-lib.m4: New file.
52419         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
52420         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
52421         definition and lack of AC_LIBOBJ([roundf]).
52422         * m4/roundl.m4: Ditto, and similarly for roundl.
52423         * modules/round: Reference new m4 file.
52424         * modules/roundf: Ditto.
52425         * modules/roundl: Ditto.
52426         * tests/test-round2.c (main): Use ROUND instead of round.
52427         Bug report from Bruno Haible.
52428
52429 2007-10-21  Bruno Haible  <bruno@clisp.org>
52430
52431         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
52432         context.
52433
52434 2007-10-21  Bruno Haible  <bruno@clisp.org>
52435
52436         * tests/test-wcwidth.c (main): Allow negative result for some control
52437         characters.
52438
52439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
52440         Needed on OSF/1 5.1.
52441
52442 2007-10-21  Bruno Haible  <bruno@clisp.org>
52443
52444         * tests/test-floorf1.c: Include isnanf.h.
52445         (main): Use isnanf() instead of isnan().
52446         * tests/test-ceilf1.c: Include isnanf.h.
52447         (main): Use isnanf() instead of isnan().
52448         * tests/test-truncf1.c: Include isnanf.h.
52449         (main): Use isnanf() instead of isnan().
52450         * tests/test-roundf1.c: Include isnanf.h.
52451         (main): Use isnanf() instead of isnan().
52452
52453 2007-10-21  Eric Blake  <ebb9@byu.net>
52454
52455         * users.txt: Update URL for m4.
52456
52457 2007-10-21  Bruno Haible  <bruno@clisp.org>
52458
52459         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
52460
52461 2007-10-21  Bruno Haible  <bruno@clisp.org>
52462
52463         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
52464         Git's management files if the CVS files are not present.
52465
52466 2007-10-20  Bruno Haible  <bruno@clisp.org>
52467
52468         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
52469         gcc-3.4.x.
52470
52471 2007-10-20  Ben Pfaff  <blp@gnu.org>
52472
52473         * lib/math.in.h: Declare round, roundf, roundl if we are providing
52474         implementations.
52475         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
52476         * lib/round.c: New file.
52477         * lib/roundf.c: New file.
52478         * lib/roundl.c: New file.
52479         * m4/round.m4: New file.
52480         * m4/roundf.m4: New file.
52481         * m4/roundl.m4: New file.
52482         * m4/check-libm-func-m4: New file.
52483         * modules/math: Replace round, roundf, roundl related @VARS@ in
52484         math.in.h.
52485         * modules/round: New file.
52486         * modules/round-tests: New file.
52487         * modules/roundf: New file.
52488         * modules/roundf-tests: New file.
52489         * modules/roundl: New file.
52490         * modules/roundl-tests: New file.
52491         * tests/test-round1.c: New file.
52492         * tests/test-round2.c: New file.
52493         * tests/test-roundf1.c: New file.
52494         * tests/test-roundf2.c: New file.
52495         * tests/test-roundl.c: New file.
52496         * doc/functions/round.texi: Mention round module.
52497         * doc/functions/roundf.texi: Mention roundf module.
52498         * doc/functions/roundl.texi: Mention roundl module.
52499         * MODULES.html.sh: Mention new modules.
52500         Thanks to Bruno Haible for suggestions.
52501
52502 2007-10-20  Jim Meyering  <meyering@redhat.com>
52503
52504         * lib/xprintf.c: Include <config.h> unconditionally.
52505
52506         Change xprintf's license to GPL.
52507         * modules/xprintf (License): s/LGPL/GPL/, since this module
52508         depends on modules (exit and exitfail) which are GPL.
52509         Suggestion from Bruno Haible.
52510
52511         xprintf fixes.
52512         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
52513         Use a clearer diagnostic.
52514         Patch from Bruno Haible.
52515
52516 2007-10-20  Bruno Haible  <bruno@clisp.org>
52517
52518         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
52519         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
52520         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52521
52522 2007-10-20  Bruno Haible  <bruno@clisp.org>
52523
52524         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
52525         precision in the comparison result > x - 1 or similar.
52526         * tests/test-ceilf2.c (correct_result_p): Likewise.
52527         * tests/test-truncf2.c (correct_result_p): Likewise.
52528         * tests/test-trunc2.c (correct_result_p): Likewise.
52529         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52530
52531 2007-10-20  Bruno Haible  <bruno@clisp.org>
52532
52533         * modules/ceil: New file.
52534         * m4/ceil.m4: New file.
52535         * doc/functions/ceil.texi: Mention the 'ceil' module.
52536
52537 2007-10-20  Bruno Haible  <bruno@clisp.org>
52538
52539         * modules/floor: New file.
52540         * m4/floor.m4: New file.
52541         * doc/functions/floor.texi: Mention the 'floor' module.
52542
52543 2007-10-20  Bruno Haible  <bruno@clisp.org>
52544
52545         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
52546         of %a.
52547         * modules/floorf-tests (Depends-on): Likewise.
52548         * modules/truncf-tests (Depends-on): Likewise.
52549         * modules/trunc-tests (Depends-on): Likewise.
52550         Reported by Ben Pfaff.
52551
52552 2007-10-19  Jim Meyering  <meyering@redhat.com>
52553
52554         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
52555         Don't bother testing specific errno values.  Just test ferror.
52556
52557         New module: xprintf
52558         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
52559
52560 2007-10-19  Bruno Haible  <bruno@clisp.org>
52561
52562         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
52563         syntax.
52564         * modules/javaexec (Makefile.am): Likewise.
52565         * modules/relocatable-prog (Makefile.am): Likewise.
52566         Suggested by Jim Meyering.
52567
52568 2007-10-18  Bruno Haible  <bruno@clisp.org>
52569
52570         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
52571         Reported by Jim Meyering.
52572
52573 2007-10-18  Eric Blake  <ebb9@byu.net>
52574
52575         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
52576
52577 2007-10-18  Bruno Haible  <bruno@clisp.org>
52578
52579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
52580         the format string into writable memory. Needed in Fortify conditions.
52581
52582 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
52583             Bruno Haible  <bruno@clisp.org>
52584
52585         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
52586         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
52587         * modules/trim (Depends-on): Add mbchar.
52588         (configure.ac): Add gl_FUNC_MBRTOWC.
52589         (Makefile.am): Augment lib_SOURCES.
52590
52591 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52592
52593         Modify glob.c to use fstatat and dirfd, to simplify it.
52594         Suggested by Eric Blake.
52595         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
52596         Don't include <stdbool.h>; not used.
52597         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
52598         (link_exists_p): Simplify implementation, since we can now assume
52599         dirfd and fstatat.
52600         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
52601
52602 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52603
52604         * gnulib-tool (func_get_dependencies): Fix sed script to
52605         match only tests.
52606
52607 2007-10-17  Bruno Haible  <bruno@clisp.org>
52608
52609         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
52610         allow locale names without encoding suffix.
52611         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52612         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52613
52614 2007-10-16  Bruno Haible  <bruno@clisp.org>
52615
52616         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
52617         * lib/getgroups.c (getgroups): Likewise.
52618         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
52619
52620 2007-10-16  Bruno Haible  <bruno@clisp.org>
52621
52622         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
52623         * modules/malloc-posix (License): Likewise.
52624         * modules/realloc-posix (License): Likewise.
52625         * modules/calloc-posix (License): Likewise.
52626         * modules/intprops (License): Change from GPL to LGPL, with
52627         Paul Eggert's approval.
52628
52629 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52630
52631         Merge glibc changes into lib/glob.c.
52632
52633         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
52634         2007-10-15 04:59:03 UTC.  Here are the changes:
52635
52636         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
52637
52638         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
52639
52640         * lib/glob.c: Add some branch prediction throughout.
52641
52642         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
52643
52644         [BZ #5103]
52645         * lib/glob.c (glob): Recognize patterns starting \/.
52646
52647         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
52648
52649         [BZ #3996]
52650         * lib/glob.c (attribute_hidden): Define if not defined.
52651         (glob): Unescape dirname, filename or username when needed and not
52652         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
52653         is NULL.  Handle unescaped [ in pattern without closing ].
52654         Don't pass GLOB_CHECK down to recursive glob for directories.
52655         (__glob_pattern_type): New function.
52656         (__glob_pattern_p): Implement using __glob_pattern_type.
52657         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
52658         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
52659         Remove unreachable code.
52660
52661         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
52662
52663         * lib/glob.c (glob_in_dir): Add some comments and asserts to
52664         explain why there are no leaks.
52665
52666         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
52667
52668         [BZ #3253]
52669         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
52670         time, rather allocate increasingly bigger arrays of pointers, if
52671         possible with alloca, if too large with malloc.
52672
52673 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52674
52675         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
52676         Problem reported by H.Merijn Brand in
52677         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
52678         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
52679         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52680
52681 2007-10-15  Bruno Haible  <bruno@clisp.org>
52682
52683         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
52684         with explicit rpl_ prefix.
52685         * lib/fopen.c (fopen): Likewise.
52686         * lib/freopen.c (freopen): Likewise.
52687         * lib/iconv.c (iconv): Likewise.
52688         * lib/iconv_close.c (iconv_close): Likewise.
52689
52690 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52691
52692         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
52693
52694 2007-10-15  Bruno Haible  <bruno@clisp.org>
52695
52696         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
52697         <stddef.h> instead of <stdlib.h> since we only need NULL.
52698         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52699
52700 2007-10-15  Bruno Haible  <bruno@clisp.org>
52701
52702         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
52703         Replace paragraph talking about LIBOBJS.
52704         Reported by Colin Watson <cjwatson@debian.org>.
52705
52706 2007-10-15  Bruno Haible  <bruno@clisp.org>
52707
52708         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
52709         <stdlib.h> before using NULL.
52710
52711 2007-10-15  Simon Josefsson  <simon@josefsson.org>
52712
52713         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
52714         Reported by Albert Chin <china@thewrittenword.com>.
52715
52716 2007-10-14  Bruno Haible  <bruno@clisp.org>
52717
52718         * modules/iconv_open-utf-tests: New file.
52719         * tests/test-iconv-utf.c: New file.
52720
52721         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
52722         * modules/iconv_open-utf: New file.
52723         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
52724         (iconv, iconv_close): New declarations.
52725         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
52726         be defined.
52727         (iconv_open): Add special handling of conversion between UTF-8 and
52728         UTF-{16,32}{BE,LE}.
52729         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
52730         * lib/iconv_close.c: New file.
52731         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
52732         gl_FUNC_ICONV_OPEN.
52733         (gl_FUNC_ICONV_OPEN): Use it.
52734         (gl_FUNC_ICONV_OPEN_UTF): New macro.
52735         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
52736         and REPLACE_ICONV_UTF.
52737         * modules/iconv_open (Depends-on): Add c-strcase.
52738         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
52739         ICONV_CONST.
52740         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
52741
52742 2007-10-13  Albert Chin  <china@thewrittenword.com>
52743             Bruno Haible  <bruno@clisp.org>
52744
52745         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
52746         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
52747
52748 2007-10-13  Bruno Haible  <bruno@clisp.org>
52749
52750         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
52751         defined, use the ISO C99 inline semantics.
52752         * lib/argp.h (ARGP_EI): Likewise.
52753
52754 2007-10-13  Bruno Haible  <bruno@clisp.org>
52755
52756         Handle 'inline' change in gcc 4.3.0.
52757         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
52758         argp_fmtstream_write, argp_fmtstream_set_lmargin,
52759         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
52760         argp_fmtstream_point): Disable 'extern' declaration if the function
52761         definition is going to be provided inline.
52762         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
52763         semantics, not the ISO C99 inline semantics.
52764         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
52765         'extern' declaration if the function definition is going to be provided
52766         inline.
52767         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
52768         the GNU C inline semantics, not the ISO C99 inline semantics. With
52769         GCC 4.2, avoid a warning.
52770
52771 2007-10-13  Bruno Haible  <bruno@clisp.org>
52772
52773         * lib/freading.h (freading): Enable the use of __freading for
52774         glibc >= 2.7.
52775         * lib/freading.c (freading): Likewise.
52776
52777 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52778
52779         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
52780         "warning: C99 inline functions are not supported; using GNU89".
52781
52782 2007-10-12  Bruno Haible  <bruno@clisp.org>
52783
52784         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
52785         of 2.
52786         * tests/test-ceilf2.c: New file.
52787         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
52788
52789         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
52790         * modules/ceilf-tests: Update.
52791
52792 2007-10-12  Bruno Haible  <bruno@clisp.org>
52793
52794         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52795         of 2.
52796         * tests/test-floorf2.c: New file.
52797         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52798
52799         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52800         * modules/floorf-tests: Update.
52801
52802 2007-10-12  Bruno Haible  <bruno@clisp.org>
52803
52804         * tests/test-trunc2.c: New file.
52805         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52806
52807         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52808         * modules/trunc-tests: Update.
52809
52810 2007-10-12  Bruno Haible  <bruno@clisp.org>
52811
52812         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52813         of 2.
52814         * tests/test-truncf2.c: New file.
52815         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52816
52817         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52818         * modules/truncf-tests: Update.
52819
52820 2007-10-11  Eric Blake  <ebb9@byu.net>
52821
52822         Don't claim strerror is broken on Interix.
52823         * doc/functions/strerror.texi (strerror): Known broken systems are
52824         now Solaris 8, and not Interix.
52825         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
52826         Interix on cross-compile.
52827         Reported by Martin Koeppe in
52828         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
52829
52830 2007-10-11  Bruno Haible  <bruno@clisp.org>
52831
52832         * modules/i-ring-tests: New file.
52833         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
52834         instead of assert.
52835
52836 2007-10-11  Bruno Haible  <bruno@clisp.org>
52837
52838         * modules/filenamecat-tests: New file.
52839         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
52840         * lib/filenamecat.c: Remove test code.
52841
52842 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52843
52844         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
52845
52846         * lib/strerror.c: Include <string.h> always, to test interface,
52847         and to remove the need for the dummy.
52848         Include intprops.h to compute width instead of doing it ourselves
52849         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
52850         (strerror): Define it to return NULL if there's no system strerror.
52851         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
52852         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
52853         ancient pre-strerror Unix systems well any more.  Saying "unknown
52854         system error" is enough.
52855         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52856         simpler strerror.c implementation.
52857         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
52858         Simplify the tests to reflect the simpler strerror implementation.
52859         * modules/strerror (Depends-on): Add intprops.
52860
52861 2007-10-09  Eric Blake  <ebb9@byu.net>
52862
52863         Silence test-fpending.
52864         * modules/fpending-tests (Files): Add wrapper script.
52865         * tests/test-fpending.sh: New file.
52866
52867 2007-10-09  Bruno Haible  <bruno@clisp.org>
52868
52869         * MODULES.html.sh (func_module): Don't create a hyperlink for
52870         function names like 'printf_frexp'.
52871         (Misc): Add crc, memxor.
52872         (Characteristics of floating types): New section.
52873         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
52874         isnanf-nolibm, signbit, trunc, truncf, truncl.
52875         (Enhancements for ISO C 99 functions): New subsection Input/output.
52876         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
52877         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
52878         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
52879         (Compatibility checks for POSIX:2001 functions): Add clock-time.
52880         (Enhancements for POSIX:2001 functions): Add chdir-long.
52881         (File system functions): Add areadlink, chdir-safer, read-file.
52882         Remove cycle-check.
52883         (File system as inode set): New section.
52884         (Date and time): Add gethrxtime.
52885         (Multithreading): Add openmp.
52886         (Internationalization functions): Add localename.
52887         (Unicode string functions): Add unistr/u*-mbsnlen.
52888         (Support for maintaining and releasing projects): Add git-version-gen.
52889         (Lone files): Remove directories.
52890
52891 2007-10-08  Ben Pfaff  <blp@gnu.org>
52892
52893         * lib/xmalloca.h: Fix typo in comment.
52894
52895 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52896
52897         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52898         when avoiding problems with integer overflow.  Use a portable test
52899         instead.
52900
52901 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52902
52903         * modules/dummy (License): Change to LGPLv2+.
52904         * modules/float (License): Likewise
52905         * modules/realloc (License): Likewise
52906         * modules/stdlib (License): Likewise
52907
52908 2007-10-07  Bruno Haible  <bruno@clisp.org>
52909
52910         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52911         * floor.c (TWO_MANT_DIG): Likewise.
52912         * ceil.c (TWO_MANT_DIG): Likewise.
52913         Reported by Ben Pfaff.
52914
52915 2007-10-07  Bruno Haible  <bruno@clisp.org>
52916
52917         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52918         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52919         * lib/frexp.c (FUNC): Likewise.
52920         * lib/printf-frexp.h (printf_frexp): Likewise.
52921         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52922         * lib/printf-frexp.c (FUNC): Likewise.
52923         Suggested by Jim Meyering.
52924
52925 2007-10-07  Jim Meyering  <meyering@redhat.com>
52926
52927         Make xnanosleep's integer overflow test more robust.
52928         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52929         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52930
52931 2007-10-07  Bruno Haible  <bruno@clisp.org>
52932
52933         * NEWS: Mention the license change.
52934
52935         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52936         abbreviations in the modules files.
52937
52938         Change copyright notice from GPLv2+ to GPLv3+.
52939         * README: Change copyright notice.
52940         * MODULES.html.sh: Likewise.
52941         * build-aux/bootstrap.conf: Likewise.
52942         * build-aux/config.libpath: Likewise.
52943         * build-aux/csharpcomp.sh.in: Likewise.
52944         * build-aux/csharpexec.sh.in: Likewise.
52945         * build-aux/install-reloc: Likewise.
52946         * build-aux/javacomp.sh.in: Likewise.
52947         * build-aux/javaexec.sh.in: Likewise.
52948         * build-aux/ldd.sh.in: Likewise.
52949         * build-aux/reloc-ldflags: Likewise.
52950         * build-aux/relocatable.sh.in: Likewise.
52951         * build-aux/x-to-1.in: Likewise.
52952         * check-module: Likewise.
52953         * config/srclistvars.sh: Likewise.
52954         * gnulib-tool: Likewise.
52955         * lib/acl-internal.h: Likewise.
52956         * lib/acl.c: Likewise.
52957         * lib/acl.h: Likewise.
52958         * lib/acl_entries.c: Likewise.
52959         * lib/areadlink-with-size.c: Likewise.
52960         * lib/areadlink.c: Likewise.
52961         * lib/areadlink.h: Likewise.
52962         * lib/argmatch.c: Likewise.
52963         * lib/argmatch.h: Likewise.
52964         * lib/argp-ba.c: Likewise.
52965         * lib/argp-eexst.c: Likewise.
52966         * lib/argp-fmtstream.c: Likewise.
52967         * lib/argp-fmtstream.h: Likewise.
52968         * lib/argp-fs-xinl.c: Likewise.
52969         * lib/argp-help.c: Likewise.
52970         * lib/argp-namefrob.h: Likewise.
52971         * lib/argp-parse.c: Likewise.
52972         * lib/argp-pin.c: Likewise.
52973         * lib/argp-pv.c: Likewise.
52974         * lib/argp-pvh.c: Likewise.
52975         * lib/argp-xinl.c: Likewise.
52976         * lib/argp.h: Likewise.
52977         * lib/at-func.c: Likewise.
52978         * lib/atanl.c: Likewise.
52979         * lib/backupfile.c: Likewise.
52980         * lib/backupfile.h: Likewise.
52981         * lib/basename.c: Likewise.
52982         * lib/binary-io.h: Likewise.
52983         * lib/byteswap.in.h: Likewise.
52984         * lib/c-stack.c: Likewise.
52985         * lib/c-stack.h: Likewise.
52986         * lib/c-strcasestr.c: Likewise.
52987         * lib/c-strcasestr.h: Likewise.
52988         * lib/c-strstr.c: Likewise.
52989         * lib/c-strstr.h: Likewise.
52990         * lib/c-strtod.c: Likewise.
52991         * lib/calloc.c: Likewise.
52992         * lib/canon-host.c: Likewise.
52993         * lib/canon-host.h: Likewise.
52994         * lib/canonicalize-lgpl.c: Likewise.
52995         * lib/canonicalize.c: Likewise.
52996         * lib/canonicalize.h: Likewise.
52997         * lib/ceil.c: Likewise.
52998         * lib/ceilf.c: Likewise.
52999         * lib/ceill.c: Likewise.
53000         * lib/chdir-long.c: Likewise.
53001         * lib/chdir-long.h: Likewise.
53002         * lib/chdir-safer.c: Likewise.
53003         * lib/chdir-safer.h: Likewise.
53004         * lib/chown.c: Likewise.
53005         * lib/classpath.c: Likewise.
53006         * lib/classpath.h: Likewise.
53007         * lib/clean-temp.c: Likewise.
53008         * lib/clean-temp.h: Likewise.
53009         * lib/cloexec.c: Likewise.
53010         * lib/close-stream.c: Likewise.
53011         * lib/closein.c: Likewise.
53012         * lib/closein.h: Likewise.
53013         * lib/closeout.c: Likewise.
53014         * lib/closeout.h: Likewise.
53015         * lib/concat-filename.c: Likewise.
53016         * lib/copy-file.c: Likewise.
53017         * lib/copy-file.h: Likewise.
53018         * lib/count-one-bits.h: Likewise.
53019         * lib/crc.c: Likewise.
53020         * lib/crc.h: Likewise.
53021         * lib/creat-safer.c: Likewise.
53022         * lib/csharpcomp.c: Likewise.
53023         * lib/csharpcomp.h: Likewise.
53024         * lib/csharpexec.c: Likewise.
53025         * lib/csharpexec.h: Likewise.
53026         * lib/cycle-check.c: Likewise.
53027         * lib/cycle-check.h: Likewise.
53028         * lib/diacrit.c: Likewise.
53029         * lib/diacrit.h: Likewise.
53030         * lib/diffseq.h: Likewise.
53031         * lib/dirchownmod.c: Likewise.
53032         * lib/dirent.in.h: Likewise.
53033         * lib/dirfd.c: Likewise.
53034         * lib/dirfd.h: Likewise.
53035         * lib/dirname.c: Likewise.
53036         * lib/dirname.h: Likewise.
53037         * lib/dummy.c: Likewise.
53038         * lib/dup-safer.c: Likewise.
53039         * lib/dup2.c: Likewise.
53040         * lib/eealloc.h: Likewise.
53041         * lib/error.c: Likewise.
53042         * lib/error.h: Likewise.
53043         * lib/euidaccess.c: Likewise.
53044         * lib/exclude.c: Likewise.
53045         * lib/exclude.h: Likewise.
53046         * lib/execute.c: Likewise.
53047         * lib/execute.h: Likewise.
53048         * lib/exitfail.c: Likewise.
53049         * lib/exitfail.h: Likewise.
53050         * lib/expl.c: Likewise.
53051         * lib/fatal-signal.c: Likewise.
53052         * lib/fatal-signal.h: Likewise.
53053         * lib/fbufmode.c: Likewise.
53054         * lib/fbufmode.h: Likewise.
53055         * lib/fchdir.c: Likewise.
53056         * lib/fchmodat.c: Likewise.
53057         * lib/fchownat.c: Likewise.
53058         * lib/fcntl--.h: Likewise.
53059         * lib/fcntl-safer.h: Likewise.
53060         * lib/fcntl.in.h: Likewise.
53061         * lib/fd-safer.c: Likewise.
53062         * lib/fflush.c: Likewise.
53063         * lib/file-has-acl.c: Likewise.
53064         * lib/file-set.c: Likewise.
53065         * lib/file-type.c: Likewise.
53066         * lib/file-type.h: Likewise.
53067         * lib/fileblocks.c: Likewise.
53068         * lib/filemode.c: Likewise.
53069         * lib/filemode.h: Likewise.
53070         * lib/filename.h: Likewise.
53071         * lib/filenamecat.c: Likewise.
53072         * lib/filenamecat.h: Likewise.
53073         * lib/findprog.c: Likewise.
53074         * lib/findprog.h: Likewise.
53075         * lib/float.in.h: Likewise.
53076         * lib/floor.c: Likewise.
53077         * lib/floorf.c: Likewise.
53078         * lib/floorl.c: Likewise.
53079         * lib/fopen-safer.c: Likewise.
53080         * lib/fopen.c: Likewise.
53081         * lib/fpending.c: Likewise.
53082         * lib/fpending.h: Likewise.
53083         * lib/fprintf.c: Likewise.
53084         * lib/fprintftime.h: Likewise.
53085         * lib/fpucw.h: Likewise.
53086         * lib/fpurge.c: Likewise.
53087         * lib/fpurge.h: Likewise.
53088         * lib/freadable.c: Likewise.
53089         * lib/freadable.h: Likewise.
53090         * lib/freadahead.c: Likewise.
53091         * lib/freadahead.h: Likewise.
53092         * lib/freading.c: Likewise.
53093         * lib/freading.h: Likewise.
53094         * lib/free.c: Likewise.
53095         * lib/freopen.c: Likewise.
53096         * lib/frexp.c: Likewise.
53097         * lib/frexpl.c: Likewise.
53098         * lib/fseek.c: Likewise.
53099         * lib/fseterr.c: Likewise.
53100         * lib/fseterr.h: Likewise.
53101         * lib/fstatat.c: Likewise.
53102         * lib/fstrcmp.c: Likewise.
53103         * lib/fstrcmp.h: Likewise.
53104         * lib/fsusage.c: Likewise.
53105         * lib/fsusage.h: Likewise.
53106         * lib/ftell.c: Likewise.
53107         * lib/ftello.c: Likewise.
53108         * lib/fts-cycle.c: Likewise.
53109         * lib/fts.c: Likewise.
53110         * lib/fts_.h: Likewise.
53111         * lib/full-read.c: Likewise.
53112         * lib/full-read.h: Likewise.
53113         * lib/full-write.c: Likewise.
53114         * lib/full-write.h: Likewise.
53115         * lib/fwritable.c: Likewise.
53116         * lib/fwritable.h: Likewise.
53117         * lib/fwriteerror.c: Likewise.
53118         * lib/fwriteerror.h: Likewise.
53119         * lib/fwriting.c: Likewise.
53120         * lib/fwriting.h: Likewise.
53121         * lib/gcd.c: Likewise.
53122         * lib/gcd.h: Likewise.
53123         * lib/getcwd.c: Likewise.
53124         * lib/getdate.h: Likewise.
53125         * lib/getdate.y: Likewise.
53126         * lib/getdomainname.c: Likewise.
53127         * lib/getdomainname.h: Likewise.
53128         * lib/getgroups.c: Likewise.
53129         * lib/gethostname.c: Likewise.
53130         * lib/gethrxtime.c: Likewise.
53131         * lib/gethrxtime.h: Likewise.
53132         * lib/getloadavg.c: Likewise.
53133         * lib/getndelim2.c: Likewise.
53134         * lib/getndelim2.h: Likewise.
53135         * lib/getnline.c: Likewise.
53136         * lib/getnline.h: Likewise.
53137         * lib/getopt.c: Likewise.
53138         * lib/getopt.in.h: Likewise.
53139         * lib/getopt1.c: Likewise.
53140         * lib/getopt_int.h: Likewise.
53141         * lib/getpagesize.h: Likewise.
53142         * lib/getsubopt.c: Likewise.
53143         * lib/gettime.c: Likewise.
53144         * lib/getugroups.c: Likewise.
53145         * lib/getugroups.h: Likewise.
53146         * lib/getusershell.c: Likewise.
53147         * lib/gl_anyavltree_list1.h: Likewise.
53148         * lib/gl_anyavltree_list2.h: Likewise.
53149         * lib/gl_anyhash_list1.h: Likewise.
53150         * lib/gl_anyhash_list2.h: Likewise.
53151         * lib/gl_anylinked_list1.h: Likewise.
53152         * lib/gl_anylinked_list2.h: Likewise.
53153         * lib/gl_anyrbtree_list1.h: Likewise.
53154         * lib/gl_anyrbtree_list2.h: Likewise.
53155         * lib/gl_anytree_list1.h: Likewise.
53156         * lib/gl_anytree_list2.h: Likewise.
53157         * lib/gl_anytree_oset.h: Likewise.
53158         * lib/gl_anytreehash_list1.h: Likewise.
53159         * lib/gl_anytreehash_list2.h: Likewise.
53160         * lib/gl_array_list.c: Likewise.
53161         * lib/gl_array_list.h: Likewise.
53162         * lib/gl_array_oset.c: Likewise.
53163         * lib/gl_array_oset.h: Likewise.
53164         * lib/gl_avltree_list.c: Likewise.
53165         * lib/gl_avltree_list.h: Likewise.
53166         * lib/gl_avltree_oset.c: Likewise.
53167         * lib/gl_avltree_oset.h: Likewise.
53168         * lib/gl_avltreehash_list.c: Likewise.
53169         * lib/gl_avltreehash_list.h: Likewise.
53170         * lib/gl_carray_list.c: Likewise.
53171         * lib/gl_carray_list.h: Likewise.
53172         * lib/gl_linked_list.c: Likewise.
53173         * lib/gl_linked_list.h: Likewise.
53174         * lib/gl_linkedhash_list.c: Likewise.
53175         * lib/gl_linkedhash_list.h: Likewise.
53176         * lib/gl_list.c: Likewise.
53177         * lib/gl_list.h: Likewise.
53178         * lib/gl_oset.c: Likewise.
53179         * lib/gl_oset.h: Likewise.
53180         * lib/gl_rbtree_list.c: Likewise.
53181         * lib/gl_rbtree_list.h: Likewise.
53182         * lib/gl_rbtree_oset.c: Likewise.
53183         * lib/gl_rbtree_oset.h: Likewise.
53184         * lib/gl_rbtreehash_list.c: Likewise.
53185         * lib/gl_rbtreehash_list.h: Likewise.
53186         * lib/gl_sublist.c: Likewise.
53187         * lib/gl_sublist.h: Likewise.
53188         * lib/group-member.c: Likewise.
53189         * lib/group-member.h: Likewise.
53190         * lib/hard-locale.c: Likewise.
53191         * lib/hard-locale.h: Likewise.
53192         * lib/hash-pjw.c: Likewise.
53193         * lib/hash-pjw.h: Likewise.
53194         * lib/hash-triple.c: Likewise.
53195         * lib/hash.c: Likewise.
53196         * lib/hash.h: Likewise.
53197         * lib/human.c: Likewise.
53198         * lib/human.h: Likewise.
53199         * lib/i-ring.c: Likewise.
53200         * lib/i-ring.h: Likewise.
53201         * lib/idcache.c: Likewise.
53202         * lib/imaxabs.c: Likewise.
53203         * lib/imaxdiv.c: Likewise.
53204         * lib/inet_pton.c: Likewise.
53205         * lib/inet_pton.h: Likewise.
53206         * lib/intprops.h: Likewise.
53207         * lib/inttostr.c: Likewise.
53208         * lib/inttostr.h: Likewise.
53209         * lib/inttypes.in.h: Likewise.
53210         * lib/isapipe.c: Likewise.
53211         * lib/isdir.c: Likewise.
53212         * lib/isnan.c: Likewise.
53213         * lib/isnan.h: Likewise.
53214         * lib/isnanf.c: Likewise.
53215         * lib/isnanf.h: Likewise.
53216         * lib/isnanl-nolibm.h: Likewise.
53217         * lib/isnanl.c: Likewise.
53218         * lib/isnanl.h: Likewise.
53219         * lib/javacomp.c: Likewise.
53220         * lib/javacomp.h: Likewise.
53221         * lib/javaexec.c: Likewise.
53222         * lib/javaexec.h: Likewise.
53223         * lib/javaversion.c: Likewise.
53224         * lib/javaversion.h: Likewise.
53225         * lib/javaversion.java: Likewise.
53226         * lib/lbrkprop.h: Likewise.
53227         * lib/lchmod.h: Likewise.
53228         * lib/lchown.c: Likewise.
53229         * lib/ldexpl.c: Likewise.
53230         * lib/linebreak.c: Likewise.
53231         * lib/linebreak.h: Likewise.
53232         * lib/linebuffer.c: Likewise.
53233         * lib/linebuffer.h: Likewise.
53234         * lib/locale.in.h: Likewise.
53235         * lib/logl.c: Likewise.
53236         * lib/long-options.c: Likewise.
53237         * lib/long-options.h: Likewise.
53238         * lib/lstat.c: Likewise.
53239         * lib/lstat.h: Likewise.
53240         * lib/math.in.h: Likewise.
53241         * lib/mbchar.c: Likewise.
53242         * lib/mbchar.h: Likewise.
53243         * lib/mbfile.h: Likewise.
53244         * lib/mbiter.h: Likewise.
53245         * lib/mbscasecmp.c: Likewise.
53246         * lib/mbscasestr.c: Likewise.
53247         * lib/mbschr.c: Likewise.
53248         * lib/mbscspn.c: Likewise.
53249         * lib/mbslen.c: Likewise.
53250         * lib/mbsncasecmp.c: Likewise.
53251         * lib/mbsnlen.c: Likewise.
53252         * lib/mbspbrk.c: Likewise.
53253         * lib/mbspcasecmp.c: Likewise.
53254         * lib/mbsrchr.c: Likewise.
53255         * lib/mbssep.c: Likewise.
53256         * lib/mbsspn.c: Likewise.
53257         * lib/mbsstr.c: Likewise.
53258         * lib/mbstok_r.c: Likewise.
53259         * lib/mbswidth.c: Likewise.
53260         * lib/mbswidth.h: Likewise.
53261         * lib/mbuiter.h: Likewise.
53262         * lib/memcasecmp.c: Likewise.
53263         * lib/memcasecmp.h: Likewise.
53264         * lib/memchr.c: Likewise.
53265         * lib/memcmp.c: Likewise.
53266         * lib/memcoll.c: Likewise.
53267         * lib/memcoll.h: Likewise.
53268         * lib/memcpy.c: Likewise.
53269         * lib/memrchr.c: Likewise.
53270         * lib/mkancesdirs.c: Likewise.
53271         * lib/mkdir-p.c: Likewise.
53272         * lib/mkdir-p.h: Likewise.
53273         * lib/mkdir.c: Likewise.
53274         * lib/mkdirat.c: Likewise.
53275         * lib/mkdtemp.c: Likewise.
53276         * lib/mkstemp-safer.c: Likewise.
53277         * lib/mkstemp.c: Likewise.
53278         * lib/modechange.c: Likewise.
53279         * lib/modechange.h: Likewise.
53280         * lib/mountlist.c: Likewise.
53281         * lib/mountlist.h: Likewise.
53282         * lib/mpsort.c: Likewise.
53283         * lib/nanosleep.c: Likewise.
53284         * lib/obstack.c: Likewise.
53285         * lib/obstack.h: Likewise.
53286         * lib/open-safer.c: Likewise.
53287         * lib/open.c: Likewise.
53288         * lib/openat-die.c: Likewise.
53289         * lib/openat-priv.h: Likewise.
53290         * lib/openat-proc.c: Likewise.
53291         * lib/openat.c: Likewise.
53292         * lib/openat.h: Likewise.
53293         * lib/pagealign_alloc.c: Likewise.
53294         * lib/pagealign_alloc.h: Likewise.
53295         * lib/physmem.c: Likewise.
53296         * lib/physmem.h: Likewise.
53297         * lib/pipe-safer.c: Likewise.
53298         * lib/pipe.c: Likewise.
53299         * lib/pipe.h: Likewise.
53300         * lib/posixtm.c: Likewise.
53301         * lib/posixtm.h: Likewise.
53302         * lib/posixver.c: Likewise.
53303         * lib/printf-frexp.c: Likewise.
53304         * lib/printf-frexp.h: Likewise.
53305         * lib/printf-frexpl.c: Likewise.
53306         * lib/printf-frexpl.h: Likewise.
53307         * lib/printf.c: Likewise.
53308         * lib/progname.c: Likewise.
53309         * lib/progname.h: Likewise.
53310         * lib/progreloc.c: Likewise.
53311         * lib/putenv.c: Likewise.
53312         * lib/quote.c: Likewise.
53313         * lib/quote.h: Likewise.
53314         * lib/quotearg.c: Likewise.
53315         * lib/quotearg.h: Likewise.
53316         * lib/raise.c: Likewise.
53317         * lib/readline.c: Likewise.
53318         * lib/readline.h: Likewise.
53319         * lib/readlink.c: Likewise.
53320         * lib/readtokens.c: Likewise.
53321         * lib/readtokens.h: Likewise.
53322         * lib/readtokens0.c: Likewise.
53323         * lib/readtokens0.h: Likewise.
53324         * lib/readutmp.c: Likewise.
53325         * lib/readutmp.h: Likewise.
53326         * lib/realloc.c: Likewise.
53327         * lib/relocwrapper.c: Likewise.
53328         * lib/rename-dest-slash.c: Likewise.
53329         * lib/rename.c: Likewise.
53330         * lib/rmdir.c: Likewise.
53331         * lib/rpmatch.c: Likewise.
53332         * lib/safe-read.c: Likewise.
53333         * lib/safe-read.h: Likewise.
53334         * lib/safe-write.c: Likewise.
53335         * lib/safe-write.h: Likewise.
53336         * lib/same-inode.h: Likewise.
53337         * lib/same.c: Likewise.
53338         * lib/same.h: Likewise.
53339         * lib/save-cwd.c: Likewise.
53340         * lib/save-cwd.h: Likewise.
53341         * lib/savedir.c: Likewise.
53342         * lib/savedir.h: Likewise.
53343         * lib/savewd.c: Likewise.
53344         * lib/savewd.h: Likewise.
53345         * lib/search.in.h: Likewise.
53346         * lib/setenv.c: Likewise.
53347         * lib/setenv.h: Likewise.
53348         * lib/settime.c: Likewise.
53349         * lib/sh-quote.c: Likewise.
53350         * lib/sh-quote.h: Likewise.
53351         * lib/sig2str.c: Likewise.
53352         * lib/sig2str.h: Likewise.
53353         * lib/signal.in.h: Likewise.
53354         * lib/signbitd.c: Likewise.
53355         * lib/signbitf.c: Likewise.
53356         * lib/signbitl.c: Likewise.
53357         * lib/sigprocmask.c: Likewise.
53358         * lib/sincosl.c: Likewise.
53359         * lib/sleep.c: Likewise.
53360         * lib/sprintf.c: Likewise.
53361         * lib/sqrtl.c: Likewise.
53362         * lib/stat-time.h: Likewise.
53363         * lib/stdio--.h: Likewise.
53364         * lib/stdio-safer.h: Likewise.
53365         * lib/stdlib--.h: Likewise.
53366         * lib/stdlib-safer.h: Likewise.
53367         * lib/stdlib.in.h: Likewise.
53368         * lib/stpcpy.c: Likewise.
53369         * lib/stpncpy.c: Likewise.
53370         * lib/strchrnul.c: Likewise.
53371         * lib/strcspn.c: Likewise.
53372         * lib/strerror.c: Likewise.
53373         * lib/strftime.c: Likewise.
53374         * lib/strftime.h: Likewise.
53375         * lib/striconveh.c: Likewise.
53376         * lib/striconveh.h: Likewise.
53377         * lib/striconveha.c: Likewise.
53378         * lib/striconveha.h: Likewise.
53379         * lib/stripslash.c: Likewise.
53380         * lib/strnlen1.c: Likewise.
53381         * lib/strnlen1.h: Likewise.
53382         * lib/strtod.c: Likewise.
53383         * lib/strtoimax.c: Likewise.
53384         * lib/strtok_r.c: Likewise.
53385         * lib/strtol.c: Likewise.
53386         * lib/strtoll.c: Likewise.
53387         * lib/strtoul.c: Likewise.
53388         * lib/strtoull.c: Likewise.
53389         * lib/sysexits.in.h: Likewise.
53390         * lib/tempname.c: Likewise.
53391         * lib/tempname.h: Likewise.
53392         * lib/timespec.h: Likewise.
53393         * lib/tls.c: Likewise.
53394         * lib/tls.h: Likewise.
53395         * lib/tmpdir.c: Likewise.
53396         * lib/tmpdir.h: Likewise.
53397         * lib/tmpfile-safer.c: Likewise.
53398         * lib/tmpfile.c: Likewise.
53399         * lib/trigl.c: Likewise.
53400         * lib/trigl.h: Likewise.
53401         * lib/trim.c: Likewise.
53402         * lib/trim.h: Likewise.
53403         * lib/trunc.c: Likewise.
53404         * lib/truncf.c: Likewise.
53405         * lib/truncl.c: Likewise.
53406         * lib/tsearch.c: Likewise.
53407         * lib/unicodeio.c: Likewise.
53408         * lib/unicodeio.h: Likewise.
53409         * lib/unistd--.h: Likewise.
53410         * lib/unistd-safer.h: Likewise.
53411         * lib/unistdio/ulc-fprintf.c: Likewise.
53412         * lib/unistdio/ulc-vfprintf.c: Likewise.
53413         * lib/unlinkdir.c: Likewise.
53414         * lib/unlinkdir.h: Likewise.
53415         * lib/unlocked-io.h: Likewise.
53416         * lib/unsetenv.c: Likewise.
53417         * lib/userspec.c: Likewise.
53418         * lib/utime.c: Likewise.
53419         * lib/utimecmp.c: Likewise.
53420         * lib/utimecmp.h: Likewise.
53421         * lib/utimens.c: Likewise.
53422         * lib/verify.h: Likewise.
53423         * lib/verror.c: Likewise.
53424         * lib/verror.h: Likewise.
53425         * lib/version-etc-fsf.c: Likewise.
53426         * lib/version-etc.c: Likewise.
53427         * lib/version-etc.h: Likewise.
53428         * lib/vfprintf.c: Likewise.
53429         * lib/vprintf.c: Likewise.
53430         * lib/vsprintf.c: Likewise.
53431         * lib/w32spawn.h: Likewise.
53432         * lib/wait-process.c: Likewise.
53433         * lib/wait-process.h: Likewise.
53434         * lib/wcwidth.c: Likewise.
53435         * lib/write-any-file.c: Likewise.
53436         * lib/xalloc-die.c: Likewise.
53437         * lib/xalloc.h: Likewise.
53438         * lib/xasprintf.c: Likewise.
53439         * lib/xgetcwd.c: Likewise.
53440         * lib/xgetcwd.h: Likewise.
53441         * lib/xgetdomainname.c: Likewise.
53442         * lib/xgetdomainname.h: Likewise.
53443         * lib/xgethostname.c: Likewise.
53444         * lib/xmalloc.c: Likewise.
53445         * lib/xmalloca.c: Likewise.
53446         * lib/xmalloca.h: Likewise.
53447         * lib/xmemcoll.c: Likewise.
53448         * lib/xnanosleep.c: Likewise.
53449         * lib/xreadlink.c: Likewise.
53450         * lib/xreadlink.h: Likewise.
53451         * lib/xsetenv.c: Likewise.
53452         * lib/xsetenv.h: Likewise.
53453         * lib/xstriconv.c: Likewise.
53454         * lib/xstriconv.h: Likewise.
53455         * lib/xstrndup.c: Likewise.
53456         * lib/xstrndup.h: Likewise.
53457         * lib/xstrtod.c: Likewise.
53458         * lib/xstrtod.h: Likewise.
53459         * lib/xstrtol-error.c: Likewise.
53460         * lib/xstrtol.c: Likewise.
53461         * lib/xstrtol.h: Likewise.
53462         * lib/xtime.h: Likewise.
53463         * lib/xvasprintf.c: Likewise.
53464         * lib/xvasprintf.h: Likewise.
53465         * lib/yesno.c: Likewise.
53466         * lib/yesno.h: Likewise.
53467         * posix-modules: Likewise.
53468         * tests/test-alloca-opt.c: Likewise.
53469         * tests/test-arcfour.c: Likewise.
53470         * tests/test-arctwo.c: Likewise.
53471         * tests/test-argmatch.c: Likewise.
53472         * tests/test-argp-2.sh: Likewise.
53473         * tests/test-argp.c: Likewise.
53474         * tests/test-arpa_inet.c: Likewise.
53475         * tests/test-array_list.c: Likewise.
53476         * tests/test-array_oset.c: Likewise.
53477         * tests/test-atexit.c: Likewise.
53478         * tests/test-avltree_list.c: Likewise.
53479         * tests/test-avltree_oset.c: Likewise.
53480         * tests/test-avltreehash_list.c: Likewise.
53481         * tests/test-base64.c: Likewise.
53482         * tests/test-binary-io.c: Likewise.
53483         * tests/test-byteswap.c: Likewise.
53484         * tests/test-c-ctype.c: Likewise.
53485         * tests/test-c-strcasecmp.c: Likewise.
53486         * tests/test-c-strcasestr.c: Likewise.
53487         * tests/test-c-strncasecmp.c: Likewise.
53488         * tests/test-c-strstr.c: Likewise.
53489         * tests/test-canonicalize-lgpl.c: Likewise.
53490         * tests/test-canonicalize.c: Likewise.
53491         * tests/test-carray_list.c: Likewise.
53492         * tests/test-ceilf.c: Likewise.
53493         * tests/test-ceill.c: Likewise.
53494         * tests/test-count-one-bits.c: Likewise.
53495         * tests/test-crc.c: Likewise.
53496         * tests/test-dirname.c: Likewise.
53497         * tests/test-fbufmode.c: Likewise.
53498         * tests/test-fcntl.c: Likewise.
53499         * tests/test-fflush.c: Likewise.
53500         * tests/test-floorf.c: Likewise.
53501         * tests/test-floorl.c: Likewise.
53502         * tests/test-fopen.c: Likewise.
53503         * tests/test-fprintf-posix.c: Likewise.
53504         * tests/test-fprintf-posix.h: Likewise.
53505         * tests/test-fpurge.c: Likewise.
53506         * tests/test-freadable.c: Likewise.
53507         * tests/test-freadahead.c: Likewise.
53508         * tests/test-freading.c: Likewise.
53509         * tests/test-freopen.c: Likewise.
53510         * tests/test-frexp.c: Likewise.
53511         * tests/test-frexpl.c: Likewise.
53512         * tests/test-fseek.c: Likewise.
53513         * tests/test-fseeko.c: Likewise.
53514         * tests/test-fseterr.c: Likewise.
53515         * tests/test-fstrcmp.c: Likewise.
53516         * tests/test-ftell.c: Likewise.
53517         * tests/test-ftello.c: Likewise.
53518         * tests/test-fwritable.c: Likewise.
53519         * tests/test-fwriting.c: Likewise.
53520         * tests/test-getaddrinfo.c: Likewise.
53521         * tests/test-getpass.c: Likewise.
53522         * tests/test-gettimeofday.c: Likewise.
53523         * tests/test-hmac-md5.c: Likewise.
53524         * tests/test-hmac-sha1.c: Likewise.
53525         * tests/test-iconv.c: Likewise.
53526         * tests/test-iconvme.c: Likewise.
53527         * tests/test-inttypes.c: Likewise.
53528         * tests/test-isnan.c: Likewise.
53529         * tests/test-isnanf.c: Likewise.
53530         * tests/test-isnanl-nolibm.c: Likewise.
53531         * tests/test-isnanl.c: Likewise.
53532         * tests/test-isnanl.h: Likewise.
53533         * tests/test-ldexpl.c: Likewise.
53534         * tests/test-linked_list.c: Likewise.
53535         * tests/test-linkedhash_list.c: Likewise.
53536         * tests/test-locale.c: Likewise.
53537         * tests/test-localename.c: Likewise.
53538         * tests/test-lock.c: Likewise.
53539         * tests/test-lseek.c: Likewise.
53540         * tests/test-malloca.c: Likewise.
53541         * tests/test-math.c: Likewise.
53542         * tests/test-mbscasecmp.c: Likewise.
53543         * tests/test-mbscasestr1.c: Likewise.
53544         * tests/test-mbscasestr2.c: Likewise.
53545         * tests/test-mbscasestr3.c: Likewise.
53546         * tests/test-mbscasestr4.c: Likewise.
53547         * tests/test-mbschr.c: Likewise.
53548         * tests/test-mbscspn.c: Likewise.
53549         * tests/test-mbsncasecmp.c: Likewise.
53550         * tests/test-mbspbrk.c: Likewise.
53551         * tests/test-mbspcasecmp.c: Likewise.
53552         * tests/test-mbsrchr.c: Likewise.
53553         * tests/test-mbsspn.c: Likewise.
53554         * tests/test-mbsstr1.c: Likewise.
53555         * tests/test-mbsstr2.c: Likewise.
53556         * tests/test-mbsstr3.c: Likewise.
53557         * tests/test-md5.c: Likewise.
53558         * tests/test-memmem.c: Likewise.
53559         * tests/test-netinet_in.c: Likewise.
53560         * tests/test-open.c: Likewise.
53561         * tests/test-printf-frexp.c: Likewise.
53562         * tests/test-printf-frexpl.c: Likewise.
53563         * tests/test-printf-posix.c: Likewise.
53564         * tests/test-printf-posix.h: Likewise.
53565         * tests/test-rbtree_list.c: Likewise.
53566         * tests/test-rbtree_oset.c: Likewise.
53567         * tests/test-rbtreehash_list.c: Likewise.
53568         * tests/test-read-file.c: Likewise.
53569         * tests/test-rijndael.c: Likewise.
53570         * tests/test-search.c: Likewise.
53571         * tests/test-signbit.c: Likewise.
53572         * tests/test-sleep.c: Likewise.
53573         * tests/test-snprintf-posix.c: Likewise.
53574         * tests/test-snprintf-posix.h: Likewise.
53575         * tests/test-snprintf.c: Likewise.
53576         * tests/test-sprintf-posix.c: Likewise.
53577         * tests/test-sprintf-posix.h: Likewise.
53578         * tests/test-stat-time.c: Likewise.
53579         * tests/test-stdbool.c: Likewise.
53580         * tests/test-stdint.c: Likewise.
53581         * tests/test-stdio.c: Likewise.
53582         * tests/test-stdlib.c: Likewise.
53583         * tests/test-stpncpy.c: Likewise.
53584         * tests/test-strcasestr.c: Likewise.
53585         * tests/test-striconv.c: Likewise.
53586         * tests/test-striconveh.c: Likewise.
53587         * tests/test-striconveha.c: Likewise.
53588         * tests/test-string.c: Likewise.
53589         * tests/test-sys_select.c: Likewise.
53590         * tests/test-sys_socket.c: Likewise.
53591         * tests/test-sys_stat.c: Likewise.
53592         * tests/test-sys_time.c: Likewise.
53593         * tests/test-sysexits.c: Likewise.
53594         * tests/test-time.c: Likewise.
53595         * tests/test-tls.c: Likewise.
53596         * tests/test-trunc.c: Likewise.
53597         * tests/test-truncf.c: Likewise.
53598         * tests/test-truncl.c: Likewise.
53599         * tests/test-unistd.c: Likewise.
53600         * tests/test-vasnprintf-posix.c: Likewise.
53601         * tests/test-vasnprintf-posix2.c: Likewise.
53602         * tests/test-vasnprintf.c: Likewise.
53603         * tests/test-vasprintf-posix.c: Likewise.
53604         * tests/test-vasprintf.c: Likewise.
53605         * tests/test-verify.c: Likewise.
53606         * tests/test-vfprintf-posix.c: Likewise.
53607         * tests/test-vprintf-posix.c: Likewise.
53608         * tests/test-vsnprintf-posix.c: Likewise.
53609         * tests/test-vsnprintf.c: Likewise.
53610         * tests/test-vsprintf-posix.c: Likewise.
53611         * tests/test-wchar.c: Likewise.
53612         * tests/test-wctype.c: Likewise.
53613         * tests/test-wcwidth.c: Likewise.
53614         * tests/test-xstrtol.c: Likewise.
53615         * tests/test-xvasprintf.c: Likewise.
53616         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
53617         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
53618         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53619         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53620         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53621         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
53622         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53623         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53624         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53625         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
53626         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53627         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53628         * tests/uniname/test-uninames.c: Likewise.
53629         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
53630         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
53631         * tests/unistdio/test-u16-printf1.h: Likewise.
53632         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
53633         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
53634         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
53635         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
53636         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
53637         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
53638         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
53639         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
53640         * tests/unistdio/test-u32-printf1.h: Likewise.
53641         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
53642         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
53643         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
53644         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
53645         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
53646         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
53647         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
53648         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
53649         * tests/unistdio/test-u8-printf1.h: Likewise.
53650         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
53651         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
53652         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
53653         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
53654         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
53655         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
53656         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
53657         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
53658         * tests/unistdio/test-ulc-printf1.h: Likewise.
53659         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
53660         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
53661         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
53662         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
53663         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
53664         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
53665         * tests/uniwidth/test-u16-strwidth.c: Likewise.
53666         * tests/uniwidth/test-u16-width.c: Likewise.
53667         * tests/uniwidth/test-u32-strwidth.c: Likewise.
53668         * tests/uniwidth/test-u32-width.c: Likewise.
53669         * tests/uniwidth/test-u8-strwidth.c: Likewise.
53670         * tests/uniwidth/test-u8-width.c: Likewise.
53671         * tests/uniwidth/test-uc_width.c: Likewise.
53672         * config/srclist-update: Likewise.
53673         (fixlicense): Update to GPLv3+.
53674
53675         Change copyright notice from LGPLv2.1+ to LGPLv3+.
53676         * tests/test-tsearch.c: Change copyright notice.
53677
53678         Change copyright notice from LGPLv2.0+ to LGPLv3+.
53679         * lib/c-strcaseeq.h: Change copyright notice.
53680         * lib/streq.h: Likewise.
53681         * lib/uniconv.h: Likewise.
53682         * lib/uniconv/u-conv-from-enc.h: Likewise.
53683         * lib/uniconv/u-conv-to-enc.h: Likewise.
53684         * lib/uniconv/u-strconv-from-enc.h: Likewise.
53685         * lib/uniconv/u-strconv-to-enc.h: Likewise.
53686         * lib/uniconv/u16-conv-from-enc.c: Likewise.
53687         * lib/uniconv/u16-conv-to-enc.c: Likewise.
53688         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
53689         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
53690         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
53691         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
53692         * lib/uniconv/u32-conv-from-enc.c: Likewise.
53693         * lib/uniconv/u32-conv-to-enc.c: Likewise.
53694         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
53695         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
53696         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
53697         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
53698         * lib/uniconv/u8-conv-from-enc.c: Likewise.
53699         * lib/uniconv/u8-conv-to-enc.c: Likewise.
53700         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
53701         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
53702         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
53703         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
53704         * lib/uniname.h: Likewise.
53705         * lib/uniname/uniname.c: Likewise.
53706         * lib/unistdio.h: Likewise.
53707         * lib/unistdio/u-asnprintf.h: Likewise.
53708         * lib/unistdio/u-asprintf.h: Likewise.
53709         * lib/unistdio/u-printf-args.c: Likewise.
53710         * lib/unistdio/u-printf-args.h: Likewise.
53711         * lib/unistdio/u-printf-parse.h: Likewise.
53712         * lib/unistdio/u-snprintf.h: Likewise.
53713         * lib/unistdio/u-sprintf.h: Likewise.
53714         * lib/unistdio/u-vasprintf.h: Likewise.
53715         * lib/unistdio/u-vsnprintf.h: Likewise.
53716         * lib/unistdio/u-vsprintf.h: Likewise.
53717         * lib/unistdio/u16-asnprintf.c: Likewise.
53718         * lib/unistdio/u16-asprintf.c: Likewise.
53719         * lib/unistdio/u16-printf-parse.c: Likewise.
53720         * lib/unistdio/u16-snprintf.c: Likewise.
53721         * lib/unistdio/u16-sprintf.c: Likewise.
53722         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
53723         * lib/unistdio/u16-u16-asprintf.c: Likewise.
53724         * lib/unistdio/u16-u16-snprintf.c: Likewise.
53725         * lib/unistdio/u16-u16-sprintf.c: Likewise.
53726         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
53727         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
53728         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
53729         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
53730         * lib/unistdio/u16-vasnprintf.c: Likewise.
53731         * lib/unistdio/u16-vasprintf.c: Likewise.
53732         * lib/unistdio/u16-vsnprintf.c: Likewise.
53733         * lib/unistdio/u16-vsprintf.c: Likewise.
53734         * lib/unistdio/u32-asnprintf.c: Likewise.
53735         * lib/unistdio/u32-asprintf.c: Likewise.
53736         * lib/unistdio/u32-printf-parse.c: Likewise.
53737         * lib/unistdio/u32-snprintf.c: Likewise.
53738         * lib/unistdio/u32-sprintf.c: Likewise.
53739         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
53740         * lib/unistdio/u32-u32-asprintf.c: Likewise.
53741         * lib/unistdio/u32-u32-snprintf.c: Likewise.
53742         * lib/unistdio/u32-u32-sprintf.c: Likewise.
53743         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
53744         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
53745         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
53746         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
53747         * lib/unistdio/u32-vasnprintf.c: Likewise.
53748         * lib/unistdio/u32-vasprintf.c: Likewise.
53749         * lib/unistdio/u32-vsnprintf.c: Likewise.
53750         * lib/unistdio/u32-vsprintf.c: Likewise.
53751         * lib/unistdio/u8-asnprintf.c: Likewise.
53752         * lib/unistdio/u8-asprintf.c: Likewise.
53753         * lib/unistdio/u8-printf-parse.c: Likewise.
53754         * lib/unistdio/u8-snprintf.c: Likewise.
53755         * lib/unistdio/u8-sprintf.c: Likewise.
53756         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
53757         * lib/unistdio/u8-u8-asprintf.c: Likewise.
53758         * lib/unistdio/u8-u8-snprintf.c: Likewise.
53759         * lib/unistdio/u8-u8-sprintf.c: Likewise.
53760         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
53761         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
53762         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
53763         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
53764         * lib/unistdio/u8-vasnprintf.c: Likewise.
53765         * lib/unistdio/u8-vasprintf.c: Likewise.
53766         * lib/unistdio/u8-vsnprintf.c: Likewise.
53767         * lib/unistdio/u8-vsprintf.c: Likewise.
53768         * lib/unistdio/ulc-asnprintf.c: Likewise.
53769         * lib/unistdio/ulc-asprintf.c: Likewise.
53770         * lib/unistdio/ulc-printf-parse.c: Likewise.
53771         * lib/unistdio/ulc-snprintf.c: Likewise.
53772         * lib/unistdio/ulc-sprintf.c: Likewise.
53773         * lib/unistdio/ulc-vasnprintf.c: Likewise.
53774         * lib/unistdio/ulc-vasprintf.c: Likewise.
53775         * lib/unistdio/ulc-vsnprintf.c: Likewise.
53776         * lib/unistdio/ulc-vsprintf.c: Likewise.
53777         * lib/unistr.h: Likewise.
53778         * lib/unistr/u-cpy-alloc.h: Likewise.
53779         * lib/unistr/u-cpy.h: Likewise.
53780         * lib/unistr/u-endswith.h: Likewise.
53781         * lib/unistr/u-move.h: Likewise.
53782         * lib/unistr/u-set.h: Likewise.
53783         * lib/unistr/u-startswith.h: Likewise.
53784         * lib/unistr/u-stpcpy.h: Likewise.
53785         * lib/unistr/u-stpncpy.h: Likewise.
53786         * lib/unistr/u-strcat.h: Likewise.
53787         * lib/unistr/u-strcpy.h: Likewise.
53788         * lib/unistr/u-strcspn.h: Likewise.
53789         * lib/unistr/u-strdup.h: Likewise.
53790         * lib/unistr/u-strlen.h: Likewise.
53791         * lib/unistr/u-strncat.h: Likewise.
53792         * lib/unistr/u-strncpy.h: Likewise.
53793         * lib/unistr/u-strnlen.h: Likewise.
53794         * lib/unistr/u-strpbrk.h: Likewise.
53795         * lib/unistr/u-strspn.h: Likewise.
53796         * lib/unistr/u-strstr.h: Likewise.
53797         * lib/unistr/u-strtok.h: Likewise.
53798         * lib/unistr/u16-check.c: Likewise.
53799         * lib/unistr/u16-chr.c: Likewise.
53800         * lib/unistr/u16-cmp.c: Likewise.
53801         * lib/unistr/u16-cpy-alloc.c: Likewise.
53802         * lib/unistr/u16-cpy.c: Likewise.
53803         * lib/unistr/u16-endswith.c: Likewise.
53804         * lib/unistr/u16-mblen.c: Likewise.
53805         * lib/unistr/u16-mbsnlen.c: Likewise.
53806         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53807         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53808         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53809         * lib/unistr/u16-mbtouc.c: Likewise.
53810         * lib/unistr/u16-mbtoucr.c: Likewise.
53811         * lib/unistr/u16-move.c: Likewise.
53812         * lib/unistr/u16-next.c: Likewise.
53813         * lib/unistr/u16-prev.c: Likewise.
53814         * lib/unistr/u16-set.c: Likewise.
53815         * lib/unistr/u16-startswith.c: Likewise.
53816         * lib/unistr/u16-stpcpy.c: Likewise.
53817         * lib/unistr/u16-stpncpy.c: Likewise.
53818         * lib/unistr/u16-strcat.c: Likewise.
53819         * lib/unistr/u16-strchr.c: Likewise.
53820         * lib/unistr/u16-strcmp.c: Likewise.
53821         * lib/unistr/u16-strcpy.c: Likewise.
53822         * lib/unistr/u16-strcspn.c: Likewise.
53823         * lib/unistr/u16-strdup.c: Likewise.
53824         * lib/unistr/u16-strlen.c: Likewise.
53825         * lib/unistr/u16-strmblen.c: Likewise.
53826         * lib/unistr/u16-strmbtouc.c: Likewise.
53827         * lib/unistr/u16-strncat.c: Likewise.
53828         * lib/unistr/u16-strncmp.c: Likewise.
53829         * lib/unistr/u16-strncpy.c: Likewise.
53830         * lib/unistr/u16-strnlen.c: Likewise.
53831         * lib/unistr/u16-strpbrk.c: Likewise.
53832         * lib/unistr/u16-strrchr.c: Likewise.
53833         * lib/unistr/u16-strspn.c: Likewise.
53834         * lib/unistr/u16-strstr.c: Likewise.
53835         * lib/unistr/u16-strtok.c: Likewise.
53836         * lib/unistr/u16-to-u32.c: Likewise.
53837         * lib/unistr/u16-to-u8.c: Likewise.
53838         * lib/unistr/u16-uctomb-aux.c: Likewise.
53839         * lib/unistr/u16-uctomb.c: Likewise.
53840         * lib/unistr/u32-check.c: Likewise.
53841         * lib/unistr/u32-chr.c: Likewise.
53842         * lib/unistr/u32-cmp.c: Likewise.
53843         * lib/unistr/u32-cpy-alloc.c: Likewise.
53844         * lib/unistr/u32-cpy.c: Likewise.
53845         * lib/unistr/u32-endswith.c: Likewise.
53846         * lib/unistr/u32-mblen.c: Likewise.
53847         * lib/unistr/u32-mbsnlen.c: Likewise.
53848         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53849         * lib/unistr/u32-mbtouc.c: Likewise.
53850         * lib/unistr/u32-mbtoucr.c: Likewise.
53851         * lib/unistr/u32-move.c: Likewise.
53852         * lib/unistr/u32-next.c: Likewise.
53853         * lib/unistr/u32-prev.c: Likewise.
53854         * lib/unistr/u32-set.c: Likewise.
53855         * lib/unistr/u32-startswith.c: Likewise.
53856         * lib/unistr/u32-stpcpy.c: Likewise.
53857         * lib/unistr/u32-stpncpy.c: Likewise.
53858         * lib/unistr/u32-strcat.c: Likewise.
53859         * lib/unistr/u32-strchr.c: Likewise.
53860         * lib/unistr/u32-strcmp.c: Likewise.
53861         * lib/unistr/u32-strcpy.c: Likewise.
53862         * lib/unistr/u32-strcspn.c: Likewise.
53863         * lib/unistr/u32-strdup.c: Likewise.
53864         * lib/unistr/u32-strlen.c: Likewise.
53865         * lib/unistr/u32-strmblen.c: Likewise.
53866         * lib/unistr/u32-strmbtouc.c: Likewise.
53867         * lib/unistr/u32-strncat.c: Likewise.
53868         * lib/unistr/u32-strncmp.c: Likewise.
53869         * lib/unistr/u32-strncpy.c: Likewise.
53870         * lib/unistr/u32-strnlen.c: Likewise.
53871         * lib/unistr/u32-strpbrk.c: Likewise.
53872         * lib/unistr/u32-strrchr.c: Likewise.
53873         * lib/unistr/u32-strspn.c: Likewise.
53874         * lib/unistr/u32-strstr.c: Likewise.
53875         * lib/unistr/u32-strtok.c: Likewise.
53876         * lib/unistr/u32-to-u16.c: Likewise.
53877         * lib/unistr/u32-to-u8.c: Likewise.
53878         * lib/unistr/u32-uctomb.c: Likewise.
53879         * lib/unistr/u8-check.c: Likewise.
53880         * lib/unistr/u8-chr.c: Likewise.
53881         * lib/unistr/u8-cmp.c: Likewise.
53882         * lib/unistr/u8-cpy-alloc.c: Likewise.
53883         * lib/unistr/u8-cpy.c: Likewise.
53884         * lib/unistr/u8-endswith.c: Likewise.
53885         * lib/unistr/u8-mblen.c: Likewise.
53886         * lib/unistr/u8-mbsnlen.c: Likewise.
53887         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53888         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53889         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53890         * lib/unistr/u8-mbtouc.c: Likewise.
53891         * lib/unistr/u8-mbtoucr.c: Likewise.
53892         * lib/unistr/u8-move.c: Likewise.
53893         * lib/unistr/u8-next.c: Likewise.
53894         * lib/unistr/u8-prev.c: Likewise.
53895         * lib/unistr/u8-set.c: Likewise.
53896         * lib/unistr/u8-startswith.c: Likewise.
53897         * lib/unistr/u8-stpcpy.c: Likewise.
53898         * lib/unistr/u8-stpncpy.c: Likewise.
53899         * lib/unistr/u8-strcat.c: Likewise.
53900         * lib/unistr/u8-strchr.c: Likewise.
53901         * lib/unistr/u8-strcmp.c: Likewise.
53902         * lib/unistr/u8-strcpy.c: Likewise.
53903         * lib/unistr/u8-strcspn.c: Likewise.
53904         * lib/unistr/u8-strdup.c: Likewise.
53905         * lib/unistr/u8-strlen.c: Likewise.
53906         * lib/unistr/u8-strmblen.c: Likewise.
53907         * lib/unistr/u8-strmbtouc.c: Likewise.
53908         * lib/unistr/u8-strncat.c: Likewise.
53909         * lib/unistr/u8-strncmp.c: Likewise.
53910         * lib/unistr/u8-strncpy.c: Likewise.
53911         * lib/unistr/u8-strnlen.c: Likewise.
53912         * lib/unistr/u8-strpbrk.c: Likewise.
53913         * lib/unistr/u8-strrchr.c: Likewise.
53914         * lib/unistr/u8-strspn.c: Likewise.
53915         * lib/unistr/u8-strstr.c: Likewise.
53916         * lib/unistr/u8-strtok.c: Likewise.
53917         * lib/unistr/u8-to-u16.c: Likewise.
53918         * lib/unistr/u8-to-u32.c: Likewise.
53919         * lib/unistr/u8-uctomb-aux.c: Likewise.
53920         * lib/unistr/u8-uctomb.c: Likewise.
53921         * lib/unitypes.h: Likewise.
53922         * lib/uniwidth.h: Likewise.
53923         * lib/uniwidth/cjk.h: Likewise.
53924         * lib/uniwidth/u16-strwidth.c: Likewise.
53925         * lib/uniwidth/u16-width.c: Likewise.
53926         * lib/uniwidth/u32-strwidth.c: Likewise.
53927         * lib/uniwidth/u32-width.c: Likewise.
53928         * lib/uniwidth/u8-strwidth.c: Likewise.
53929         * lib/uniwidth/u8-width.c: Likewise.
53930         * lib/uniwidth/width.c: Likewise.
53931
53932 2007-10-07  Bruno Haible  <bruno@clisp.org>
53933
53934         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53935         The file is still under LGPL (see modules/inttypes).
53936
53937 2007-10-06  Bruno Haible  <bruno@clisp.org>
53938
53939         * modules/trunc (Dependencies): Add 'extensions'.
53940         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53941         Reported by Ben Pfaff <blp@gnu.org>.
53942
53943 2007-10-06  Bruno Haible  <bruno@clisp.org>
53944
53945         * modules/freopen-tests: New file.
53946         * tests/test-freopen.c: New file.
53947
53948         * modules/fopen-tests: New file.
53949         * tests/test-fopen.c: New file.
53950
53951         * modules/fopen: New file.
53952         * lib/fopen.c: New file.
53953         * m4/fopen.m4: New file.
53954         * modules/freopen: New file.
53955         * lib/freopen.c: New file.
53956         * m4/freopen.m4: New file.
53957         * lib/stdio.in.h (fopen, freopen): New declarations.
53958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53959         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53960         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53961         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53962         * doc/functions/fopen.texi: Mention the 'fopen' module.
53963         * doc/functions/freopen.texi: Mention the 'freopen' module.
53964
53965 2007-10-06  Bruno Haible  <bruno@clisp.org>
53966
53967         * modules/open-tests: New file.
53968         * tests/test-open.c: New file.
53969
53970         * modules/open: New file.
53971         * lib/open.c: New file.
53972         * m4/open.m4: New file.
53973         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53974         lib/open.c does.
53975         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53976         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53977         macros.
53978         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53979         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53980         REPLACE_OPEN.
53981         * doc/functions/open.texi: Mention the 'open' module.
53982
53983 2007-10-04  Bruno Haible  <bruno@clisp.org>
53984
53985         * modules/ceill-tests: New file.
53986         * tests/test-ceill.c: New file.
53987
53988         * modules/ceill: New file.
53989         * lib/ceill.c: Replace entire file.
53990         * m4/ceill.m4: New file.
53991         * lib/math.in.h (ceill): Replace declaration.
53992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53993         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53994         * doc/functions/ceill.texi: Mention the 'ceill' module.
53995         * modules/mathl (Files): Remove lib/ceill.c.
53996         (Depends-on): Add ceill.
53997
53998 2007-10-04  Bruno Haible  <bruno@clisp.org>
53999
54000         * modules/ceilf-tests: New file.
54001         * tests/test-ceilf.c: New file.
54002
54003         * modules/ceilf: New file.
54004         * lib/ceil.c: New file.
54005         * lib/ceilf.c: New file.
54006         * m4/ceilf.m4: New file.
54007         * lib/math.in.h (ceilf): New declaration.
54008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
54009         HAVE_DECL_CEILF.
54010         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
54011         HAVE_DECL_CEILF.
54012         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
54013
54014 2007-10-04  Bruno Haible  <bruno@clisp.org>
54015
54016         * modules/floorl-tests: New file.
54017         * tests/test-floorl.c: New file.
54018
54019         * modules/floorl: New file.
54020         * lib/floorl.c: Replace entire file.
54021         * m4/floorl.m4: New file.
54022         * lib/math.in.h (floorl): Replace declaration.
54023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
54024         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
54025         * doc/functions/floorl.texi: Mention the 'floorl' module.
54026         * modules/mathl (Files): Remove lib/floorl.c.
54027         (Depends-on): Add floorl.
54028
54029 2007-10-04  Bruno Haible  <bruno@clisp.org>
54030
54031         * modules/floorf-tests: New file.
54032         * tests/test-floorf.c: New file.
54033
54034         * modules/floorf: New file.
54035         * lib/floor.c: New file.
54036         * lib/floorf.c: New file.
54037         * m4/floorf.m4: New file.
54038         * lib/math.in.h (floorf): New declaration.
54039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
54040         HAVE_DECL_FLOORF.
54041         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
54042         HAVE_DECL_FLOORF.
54043         * doc/functions/floorf.texi: Mention the 'floorf' module.
54044
54045 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
54046             Bruno Haible  <bruno@clisp.org>
54047
54048         Advertise for the Git server instead of the CVS server.
54049         * doc/gnulib-intro.texi (Steady Development): Mention the Git
54050         repository instead of the CVS one.
54051         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
54052         about all VCS systems generically.
54053         * doc/gnulib.texi (Introduction): Capitalize `Git'.
54054
54055 2007-10-04  Bruno Haible  <bruno@clisp.org>
54056
54057         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
54058         means.
54059         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
54060
54061 2007-10-04  Bruno Haible  <bruno@clisp.org>
54062
54063         * modules/truncl-tests: New file.
54064         * tests/test-truncl.c: New file.
54065
54066         * modules/truncl: New file.
54067         * lib/truncl.c: New file.
54068         * m4/truncl.m4: New file.
54069         * lib/math.in.h (truncl): New declaration.
54070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
54071         HAVE_DECL_TRUNCL.
54072         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
54073         HAVE_DECL_TRUNCL.
54074         * doc/functions/truncl.texi: Mention the 'truncl' module.
54075
54076 2007-10-04  Bruno Haible  <bruno@clisp.org>
54077
54078         * modules/truncf-tests: New file.
54079         * tests/test-truncf.c: New file.
54080
54081         * modules/truncf: New file.
54082         * lib/trunc.c: Make paramerizable through USE_* macros.
54083         * lib/truncf.c: New file.
54084         * m4/truncf.m4: New file.
54085         * lib/math.in.h (truncf): New declaration.
54086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
54087         HAVE_DECL_TRUNCF.
54088         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
54089         HAVE_DECL_TRUNCF.
54090         * doc/functions/truncf.texi: Mention the 'truncf' module.
54091
54092 2007-10-03  Bruno Haible  <bruno@clisp.org>
54093
54094         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
54095         augmentation also for tests modules.
54096         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
54097         * modules/atexit-tests (Makefile.am): Likewise.
54098         * modules/binary-io-tests (Makefile.am): Likewise.
54099         * modules/c-strcase-tests (Makefile.am): Likewise.
54100         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
54101         * modules/canonicalize-tests (Makefile.am): Likewise.
54102         * modules/closein-tests (Makefile.am): Likewise.
54103         * modules/fprintf-posix-tests (Makefile.am): Likewise.
54104         * modules/freadahead-tests (Makefile.am): Likewise.
54105         * modules/fseek-tests (Makefile.am): Likewise.
54106         * modules/fseeko-tests (Makefile.am): Likewise.
54107         * modules/ftell-tests (Makefile.am): Likewise.
54108         * modules/ftello-tests (Makefile.am): Likewise.
54109         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
54110         * modules/isnanl-tests (Makefile.am): Likewise.
54111         * modules/lseek-tests (Makefile.am): Likewise.
54112         * modules/mbscasecmp-tests (Makefile.am): Likewise.
54113         * modules/mbscasestr-tests (Makefile.am): Likewise.
54114         * modules/mbschr-tests (Makefile.am): Likewise.
54115         * modules/mbscspn-tests (Makefile.am): Likewise.
54116         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
54117         * modules/mbspbrk-tests (Makefile.am): Likewise.
54118         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
54119         * modules/mbsrchr-tests (Makefile.am): Likewise.
54120         * modules/mbsspn-tests (Makefile.am): Likewise.
54121         * modules/mbsstr-tests (Makefile.am): Likewise.
54122         * modules/printf-posix-tests (Makefile.am): Likewise.
54123         * modules/snprintf-posix-tests (Makefile.am): Likewise.
54124         * modules/sprintf-posix-tests (Makefile.am): Likewise.
54125         * modules/tsearch-tests (Makefile.am): Likewise.
54126         * modules/uniname/uniname-tests (Makefile.am): Likewise.
54127         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
54128         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
54129         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
54130         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
54131         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
54132         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
54133         * modules/vprintf-posix-tests (Makefile.am): Likewise.
54134         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
54135         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
54136         * modules/xstrtoimax-tests (Makefile.am): Likewise.
54137         * modules/xstrtol-tests (Makefile.am): Likewise.
54138         * modules/xstrtoumax-tests (Makefile.am): Likewise.
54139         * modules/yesno-tests (Makefile.am): Likewise.
54140
54141 2007-10-03  Bruno Haible  <bruno@clisp.org>
54142
54143         * modules/trunc-tests: New file.
54144         * tests/test-trunc.c: New file.
54145
54146         * modules/trunc: New file.
54147         * lib/trunc.c: New file.
54148         * m4/trunc.m4: New file.
54149         * lib/math.in.h (trunc): New declaration.
54150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
54151         HAVE_DECL_TRUNC.
54152         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
54153         HAVE_DECL_TRUNC.
54154         * doc/functions/trunc.texi: Mention the 'trunc' module.
54155
54156 2007-10-03  Bruno Haible  <bruno@clisp.org>
54157
54158         * tests/test-fpending.c: New file, mostly copied
54159         from coreutils/lib/t-fpending.c.
54160         * modules/fpending-tests: New file.
54161
54162 2007-10-03  Bruno Haible  <bruno@clisp.org>
54163
54164         Port the stdio extensions to QNX (untested).
54165         * lib/fseterr.c (fseterr): Add support for QNX.
54166         * lib/fbufmode.c (fbufmode): Likewise.
54167         * lib/freadable.c (freadable): Likewise.
54168         * lib/fwritable.c (fwritable): Likewise.
54169         * lib/freading.c (freading): Likewise.
54170         * lib/fwriting.c (fwriting): Likewise.
54171         * lib/freadahead.c (freadahed): Likewise.
54172         * lib/fpurge.c (fpurge): Likewise.
54173         * lib/fseeko.c (rpl_fseeko): Likewise.
54174
54175 2007-10-03  Bruno Haible  <bruno@clisp.org>
54176             Jim Meyering  <jim@meyering.net>
54177             Eric Blake  <ebb9@byu.net>
54178
54179         * doc/relocatable.texi: Use @command instead of @program.
54180
54181 2007-10-02  Jim Meyering  <jim@meyering.net>
54182
54183         Perform one more "_.h" -> ".in.h" substitution.
54184         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
54185         instead of unistd_.h here, too.
54186
54187 2007-10-01  Bruno Haible  <bruno@clisp.org>
54188
54189         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
54190         Needed for the alloca-opt module.
54191
54192 2007-09-30  Bruno Haible  <bruno@clisp.org>
54193
54194         * lib/alloca.in.h: Renamed from lib/alloca_.h.
54195         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
54196         alloca_.h.
54197         * lib/argz.in.h: Renamed from lib/argz_.h.
54198         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
54199         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
54200         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
54201         byteswap_.h.
54202         * lib/dirent.in.h: Renamed from lib/dirent_.h.
54203         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
54204         dirent_.h.
54205         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
54206         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
54207         fcntl_.h.
54208         * lib/float.in.h: Renamed from lib/float_.h.
54209         * modules/float (Files, Makefile.am): Use float.in.h instead of
54210         float_.h.
54211         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
54212         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
54213         fnmatch_.h.
54214         * lib/getopt.in.h: Renamed from lib/getopt_.h.
54215         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
54216         getopt_.h.
54217         * lib/glob.in.h: Renamed from lib/glob_.h.
54218         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
54219         * lib/iconv.in.h: Renamed from lib/iconv_.h.
54220         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
54221         iconv_.h.
54222         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
54223         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
54224         inttypes_.h.
54225         * lib/locale.in.h: Renamed from lib/locale_.h.
54226         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
54227         locale_.h.
54228         * lib/math.in.h: Renamed from lib/math_.h.
54229         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
54230         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
54231         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
54232         of netinet_in_.h. Add dependency.
54233         * lib/poll.in.h: Renamed from lib/poll_.h.
54234         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
54235         * lib/search.in.h: Renamed from lib/search_.h.
54236         * modules/search (Files, Makefile.am): Use search.in.h instead of
54237         search_.h.
54238         * lib/signal.in.h: Renamed from lib/signal_.h.
54239         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
54240         _signal.h.
54241         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
54242         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
54243         stdbool_.h.
54244         * lib/stdint.in.h: Renamed from lib/stdint_.h.
54245         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
54246         stdint_.h.
54247         * lib/stdio.in.h: Renamed from lib/stdio_.h.
54248         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
54249         stdio_.h.
54250         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
54251         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
54252         stdlib_.h.
54253         * lib/string.in.h: Renamed from lib/string_.h.
54254         * modules/string (Files, Makefile.am): Use string.in.h instead of
54255         string_.h.
54256         * doc/gnulib-tool.texi (Initial import): Update.
54257         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
54258         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
54259         of sys_select_.h. Add dependency.
54260         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
54261         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
54262         of sys_socket_.h.
54263         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
54264         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
54265         sys_stat_.h.
54266         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
54267         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
54268         sys_time_.h.
54269         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
54270         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
54271         sysexits_.h.
54272         * lib/time.in.h: Renamed from lib/time_.h.
54273         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
54274         * lib/unistd.in.h: Renamed from lib/unistd_.h.
54275         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
54276         unistd_.h.
54277         * lib/wchar.in.h: Renamed from lib/wchar_.h.
54278         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
54279         wchar_.h.
54280         * lib/wctype.in.h: Renamed from lib/wctype_.h.
54281         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
54282         wctype_.h.
54283         * build-aux/bootstrap (slurp): Update.
54284         * lib/.cppi-disable: Update.
54285
54286 2007-09-30  Bruno Haible  <bruno@clisp.org>
54287
54288         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
54289         Needed on BeOS.
54290
54291 2007-09-30  Bruno Haible  <bruno@clisp.org>
54292
54293         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
54294
54295 2007-09-29  Bruno Haible  <bruno@clisp.org>
54296
54297         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
54298
54299 2007-09-29  Bruno Haible  <bruno@clisp.org>
54300
54301         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
54302         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
54303         * build-aux/install-reloc: Compile also areadlink.c.
54304         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
54305
54306 2007-09-29  Bruno Haible  <bruno@clisp.org>
54307
54308         * gnulib-tool (func_emit_initmacro_done): Indentation.
54309
54310 2007-09-29  Bruno Haible  <bruno@clisp.org>
54311
54312         * README: Add CVS checkout update instructions.
54313         Info from Bob Proulx <bob@proulx.com>.
54314
54315 2007-09-28  Eric Blake  <ebb9@byu.net>
54316
54317         Provide move-if-change.
54318         * build-aux/move-if-change: New file, based on best practice
54319         rather than any canonical upstream location.
54320
54321 2007-09-28  Jim Meyering  <jim@meyering.net>
54322
54323         Fix canonicalize loop-detection corner case.
54324         Do not attempt to stat the symlink values stored via seen_triple.
54325         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
54326         on linux-2.6.18, (but not 2.6.22).
54327         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
54328         triple_compare.  The former compares dev,ino,filename, while the latter
54329         would actually stat dirname(filename) when dev and ino were equal.
54330         * lib/hash-triple.c: Install <string.h>.
54331         (STREQ): Define.
54332         (triple_compare_ino_str): New function.
54333         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
54334
54335 2007-09-28  Eric Blake  <ebb9@byu.net>
54336
54337         Enforce that AC_REPLACE_FUNCS files exist.
54338         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
54339         override check for typos.
54340
54341         Fix test-closein on Solaris 10.
54342         * tests/test-closein.c (main): Don't assume stdin can be inherited
54343         closed on all systems.
54344         * tests/test-closein.sh: Likewise.
54345         Reported by Piotr Tarnowski.
54346
54347 2007-09-28  Jim Meyering  <jim@meyering.net>
54348
54349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
54350
54351 2007-09-27  Jim Meyering  <jim@meyering.net>
54352
54353         canonicalize: Avoid a false-positive cycle failure.
54354         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
54355         Sort.  Remove cycle-check.
54356         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
54357         not cycle-check.h.
54358         (seen_triple): New function.
54359         (canonicalize_filename_mode): Use it instead of cycle-check.
54360         * tests/test-canonicalize.c: Add a test for this bug.
54361         * tests/test-canonicalize.sh: Set up and run the test.
54362
54363         New module, file-set, from coreutils.
54364         * modules/file-set: Define it.
54365         * lib/file-set.c, lib/file-set.h: Implement.
54366
54367         New module, hash-triple, from coreutils.
54368         * modules/hash-triple: Define it.
54369         * lib/hash-triple.c, lib/hash-triple.h: Implement.
54370
54371 2007-09-25  Eric Blake  <ebb9@byu.net>
54372
54373         Fix strerror on Interix.
54374         * lib/string_.h (strerror): Declare replacement.
54375         * doc/functions/strerror.texi (strerror): Document the Interix
54376         shortcoming.
54377         * modules/string (Makefile.am): Support new hooks.
54378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
54379         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
54380         gl_FUNC_STRERROR_SEPARATE.
54381         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
54382         * lib/strerror.c (rpl_strerror): Provide replacement.
54383         * modules/strerror (Depends-on): Add string.
54384         (configure.ac): Detect use of module.
54385         * tests/test-strerror.c: New file.
54386         * modules/strerror-tests: New test module.
54387         * modules/argp (Depends-on): Add strerror.
54388         * modules/error (Depends-on): Likewise.
54389         Reported by Martin Koeppe.
54390
54391 2007-09-24  Bruno Haible  <bruno@clisp.org>
54392
54393         * README: Update git instructions.
54394
54395 2007-09-24  Eric Blake  <ebb9@byu.net>
54396
54397         Revert fpending breakage from 2007-09-08.
54398         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
54399         __fpending.c.
54400
54401 2007-09-24  Jim Meyering  <jim@meyering.net>
54402
54403         filenamecat.c: Add a test.
54404         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
54405         showing how the function works when DIR is the empty string.
54406
54407 2007-09-21  Simon Josefsson  <simon@josefsson.org>
54408
54409         * tests/test-canonicalize.sh: Turn on executable bit.
54410
54411 2007-09-19  Eric Blake  <ebb9@byu.net>
54412
54413         * README: Update CVS instructions.
54414
54415 2007-09-18  Bruno Haible  <bruno@clisp.org>
54416
54417         * modules/areadlink: New file.
54418         * lib/areadlink.h (areadlink): New declaration.
54419         * lib/areadlink.c: New file, based on lib/xreadlink.c.
54420
54421 2007-09-17  Jim Meyering  <jim@meyering.net>
54422
54423         * lib/savewd.c (ESTALE) [!defined]: Define.
54424         Reported to be required on Interix by Martin Koeppe.
54425
54426 2007-09-17  Bruno Haible  <bruno@clisp.org>
54427
54428         * gnulib-tool (func_version): Use $version.
54429
54430 2007-09-16  Bruno Haible  <bruno@clisp.org>
54431
54432         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
54433         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
54434         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
54435         Reported by Greg Schafer <gschafer@zip.com.au>.
54436
54437 2007-09-15  Bruno Haible  <bruno@clisp.org>
54438
54439         * gnulib-tool (sed): Try a little harder to make bash understand the
54440         alias.
54441         Reported by Bruce Korb <bruce.korb@gmail.com>.
54442
54443 2007-09-13  Eric Blake  <ebb9@byu.net>
54444
54445         * ChangeLog: Remove conflict markers.
54446
54447 2007-09-13  Simon Josefsson  <simon@josefsson.org>
54448
54449         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
54450         Reported by Bruno Haible <bruno@clisp.org>.
54451
54452 2007-09-12  Bruno Haible  <bruno@clisp.org>
54453
54454         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
54455         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
54456         is not defined.
54457
54458 2007-09-12  Eric Blake  <ebb9@byu.net>
54459
54460         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
54461         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
54462         Autoconf definition.
54463         * modules/euidaccess (Depends-on): Add extensions, for
54464         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
54465         * modules/fnmatch (Depends-on): Likewise.
54466         * modules/getaddrinfo (Depends-on): Likewise.
54467         * modules/getdelim (Depends-on): Likewise.
54468         * modules/getline (Depends-on): Likewise.
54469         * modules/getsubopt (Depends-on): Likewise.
54470         * modules/gettext (Depends-on): Likewise.
54471         * modules/group-member (Depends-on): Likewise.
54472         * modules/mbchar (Depends-on): Likewise.
54473         * modules/memmem (Depends-on): Likewise.
54474         * modules/mempcpy (Depends-on): Likewise.
54475         * modules/memrchr (Depends-on): Likewise.
54476         * modules/pagealign_alloc (Depends-on): Likewise.
54477         * modules/readutmp (Depends-on): Likewise.
54478         * modules/stpcpy (Depends-on): Likewise.
54479         * modules/stpncpy (Depends-on): Likewise.
54480         * modules/strchrnul (Depends-on): Likewise.
54481         * modules/strndup (Depends-on): Likewise.
54482         * modules/strsep (Depends-on): Likewise.
54483         * modules/strverscmp (Depends-on): Likewise.
54484         * modules/vasprintf (Depends-on): Likewise.
54485         * modules/wcwidth (Depends-on): Likewise.
54486         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
54487         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
54488         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
54489         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
54490         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54491         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54492         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
54493         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54494         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
54495         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
54496         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54497         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54498         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54499         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
54500         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
54501         * m4/readutmp.m4 (gl_READUTMP): Likewise.
54502         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54503         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54504         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54505         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54506         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54507         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54508         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54509         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
54510         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
54511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54512         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
54513         so that lock.m4 can be used in gettext without extensions module.
54514
54515 2007-09-11  Bruno Haible  <bruno@clisp.org>
54516
54517         * m4/isc-posix.m4: Remove file.
54518         Suggested by Eric Blake.
54519
54520 2007-09-11  Eric Blake  <ebb9@byu.net>
54521
54522         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
54523
54524 2007-09-10  Bruno Haible  <bruno@clisp.org>
54525
54526         * posix-modules: Fix typo in error message.
54527         Reported by Matt <mkraai@beckman.com>.
54528
54529 2007-09-09  Bruno Haible  <bruno@clisp.org>
54530
54531         * doc/functions/getdelim.texi: Update list of platforms lacking the
54532         function.
54533         * doc/functions/getline.texi: Likewise.
54534
54535 2007-09-09  Jim Meyering  <jim@meyering.net>
54536
54537         * lib/hash.c (hash_initialize): Detect calloc failure.
54538         Reported by Bruno Haible.
54539
54540 2007-09-09  Bruno Haible  <bruno@clisp.org>
54541
54542         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
54543         malloc or realloc fails.
54544
54545 2007-09-09  Bruno Haible  <bruno@clisp.org>
54546
54547         * modules/getcwd (Depends-on): Add malloc-posix.
54548         * modules/glob (Depends-on): Likewise.
54549         * modules/putenv (Depends-on): Likewise.
54550         * modules/strdup (Depends-on): Likewise.
54551         * modules/getdelim (Depends-on): Add realloc-posix.
54552         * modules/read-file (Depends-on): Likewise.
54553
54554 2007-09-09  Bruno Haible  <bruno@clisp.org>
54555
54556         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
54557         (gl_FUNC_MALLOC_POSIX): Require it.
54558         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
54559         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
54560         * modules/realloc (Files): Add m4/malloc.m4.
54561         * modules/calloc (Files): Likewise.
54562
54563 2007-09-09  Bruno Haible  <bruno@clisp.org>
54564
54565         * modules/malloc-posix: New file.
54566         * modules/malloc (Depends-on): Add malloc-posix.
54567         * lib/malloc.c: Include errno.h.
54568         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
54569         and a POSIX-compatible malloc into a single function. Set ENOMEM
54570         when returning NULL.
54571         * m4/malloc.m4: New file.
54572         * doc/functions/malloc.texi: Mention the malloc-posix module.
54573         * lib/stdlib_.h (malloc): New declaration.
54574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54575         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
54576         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
54577         and HAVE_MALLOC_POSIX.
54578
54579 2007-09-09  Bruno Haible  <bruno@clisp.org>
54580
54581         * modules/realloc-posix: New file.
54582         * modules/realloc (Depends-on): Add realloc-posix.
54583         * lib/realloc.c: Include errno.h.
54584         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
54585         and a POSIX-compatible realloc into a single function. Set ENOMEM
54586         when returning NULL.
54587         * m4/realloc.m4: New file.
54588         * doc/functions/realloc.texi: Mention the realloc-posix module.
54589         * lib/stdlib_.h (realloc): New declaration.
54590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54591         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
54592         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
54593         and HAVE_REALLOC_POSIX.
54594
54595 2007-09-09  Bruno Haible  <bruno@clisp.org>
54596
54597         * modules/calloc-posix: New file.
54598         * modules/calloc (Depends-on): Add calloc-posix.
54599         * lib/calloc.c: Include errno.h.
54600         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
54601         and a POSIX-compatible calloc into a single function. Set ENOMEM
54602         when returning NULL.
54603         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
54604         * doc/functions/calloc.texi: Mention the calloc-posix module.
54605         * lib/stdlib_.h (calloc): New declaration.
54606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54607         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
54608         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
54609         and HAVE_CALLOC_POSIX.
54610
54611 2007-09-09  Bruno Haible  <bruno@clisp.org>
54612
54613         Allow for modules to show an arbitrary notice.
54614         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
54615         * gnulib-tool: New option --extract-notice.
54616         (func_usage): Document it.
54617         (sed_extract_prog): Update.
54618         (func_get_notice): New function.
54619         (func_modules_notice): New function.
54620         (func_import, func_create_testdir): Invoke it.
54621         Suggested by Jim Meyering.
54622
54623 2007-09-09  Bruno Haible  <bruno@clisp.org>
54624
54625         * gnulib-tool: New options --verbose, --quiet.
54626         (func_usage): Document them.
54627         (verbose): New variable.
54628         (func_execute_command): New function.
54629         (func_import): Don't show the module list and the file list if
54630         $verbose < 0.
54631         (func_create_testdir): Likewise. Use func_execute_command.
54632         (func_create_megatestdir): Use func_execute_command.
54633
54634 2007-09-08  Bruno Haible  <bruno@clisp.org>
54635
54636         * gnulib-tool (func_import): Prefer rsync over wget when available,
54637         for fetching the PO files.
54638
54639 2007-09-08  Bruno Haible  <bruno@clisp.org>
54640
54641         * posix-modules: New file. Portions copied from gnulib-tool.
54642         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
54643
54644 2007-09-08  Jim Meyering  <jim@meyering.net>
54645
54646         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
54647         * lib/fpending.h: Rename from __fpending.h.
54648         * lib/fpending.c: Rename from __fpending.c.
54649         Include "fpending.h", not "__fpending.h".
54650         * lib/__fpending.h, lib/__fpending.c: Remove files.
54651         * modules/fpending (Files): Reflect new file names.
54652         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
54653
54654 2007-09-08  Bruno Haible  <bruno@clisp.org>
54655
54656         * m4/inttypes-h.m4: Remove stub file.
54657
54658 2007-09-07  Simon Josefsson  <simon@josefsson.org>
54659
54660         * doc/headers/stdint.texi: Discuss #include_next issue.
54661
54662 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54663
54664         * build-aux/bootstrap: Remove obsolete comment about wget --help.
54665
54666 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54667
54668         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
54669         in variable name.
54670
54671 2007-09-03  Jim Meyering  <jim@meyering.net>
54672
54673         New module: git-version-gen.
54674         * modules/git-version-gen: New file.
54675
54676         Import changes from coreutils for bootstrap script.
54677
54678         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
54679
54680         bootstrap: uses rsync to download the .po files
54681         * build-aux/bootstrap (po_download_command_format): New global.
54682         (download_po_files): Use rsync.
54683         (update_po_files): Don't remove .po files after download,
54684         so future rsync runs can take advantage of the copies.
54685
54686         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
54687
54688         Solve the unnecessary-.po-file-regeneration problem once and for all.
54689         * build-aux/bootstrap (download_po_files): New function, renamed from
54690         get_translations.  Now, downloads, but doesn't update LINGUAS.
54691         (update_po_files): New function.
54692
54693         bootstrap: Ignore more.
54694         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
54695         uniwidth to e.g., lib/.gitignore.
54696         (slurp): Handle the sys_stat_.h -> sys mapping, too.
54697
54698         * build-aux/bootstrap: New setting: vc_ignore.
54699         (insert_sorted_if_absent): Create $file if absent.
54700         Adapt to new, possibly empty, list: $vc_ignore.
54701
54702         bootstrap: generate more ignorable names
54703         * build-aux/bootstrap (slurp): When generating ignorable names,
54704         also map .sin to .sed, .gperf to .c, and .y to .c.
54705
54706 2007-09-03  Jim Meyering  <jim@meyering.net>
54707
54708         * build-aux/git-version-gen: New file, from coreutils.  For details, see
54709         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
54710
54711 2007-09-02  Bruno Haible  <bruno@clisp.org>
54712
54713         Fix mis-recognition of 'mcs' on QNX 6.
54714         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
54715         output contains the string "Mono".
54716         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
54717         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
54718
54719 2007-09-01  Bruno Haible  <bruno@clisp.org>
54720
54721         Fix collision between uniwidth/* and linebreak modules.
54722         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
54723         u32_width): Remove declarations.
54724         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
54725         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
54726         streq3, streq2, streq1, streq0): Remove functions.
54727         (STREQ): Remove macro.
54728         (is_cjk_encoding): Remove function.
54729         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
54730         (uc_width, u8_width, u16_width, u32_width): Remove functions.
54731         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
54732         * NEWS: Document the change.
54733
54734 2007-09-01  Bruno Haible  <bruno@clisp.org>
54735
54736         * lib/streq.h: Add double-inclusion guard.
54737
54738 2007-09-01  Karl Berry  <karl@gnu.org>
54739
54740         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
54741
54742 2007-08-28  Jim Meyering  <jim@meyering.net>
54743
54744         Rename mreadlink_with_size to areadlink_with_size.
54745         * NEWS: Document the change.
54746         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
54747         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
54748         * lib/mreadlink.h: Rename this to...
54749         * lib/areadlink.h: ...this.
54750         * modules/mreadlink-with-size: Rename this to...
54751         * modules/areadlink-with-size: ...this.
54752         * lib/canonicalize.c: Reflect the renaming.
54753         * modules/canonicalize: Likewise.
54754
54755 2007-08-26  Bruno Haible  <bruno@clisp.org>
54756
54757         * gnulib-tool (func_import): When deciding which files to remove,
54758         consider also dangling symbolic links.
54759         Reported by Eric Blake.
54760
54761 2007-08-26  Bruno Haible  <bruno@clisp.org>
54762
54763         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
54764
54765 2007-08-23  Simon Josefsson  <simon@josefsson.org>
54766
54767         * lib/readline.c: Don't include getline.h, the prototype is now
54768         found in stdio.h.
54769
54770 2007-08-23  Jim Meyering  <jim@meyering.net>
54771
54772         Getdelim touchup.
54773         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
54774         around the funlockfile call, since funlockfile never sets errno.
54775         Don't set errno upon failed realloc.
54776
54777 2007-08-22  Eric Blake  <ebb9@byu.net>
54778
54779         Getline touchups.
54780         * lib/getdelim.c (getdelim): Revert regression that required *n to
54781         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
54782         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
54783         getdelim, rather than whether implementation is missing.
54784         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
54785         * lib/stdio_.h (getline): Also declare if replacement is
54786         required.
54787         * doc/functions/getdelim.texi: New file.
54788         * doc/functions/getline.texi: Likewise.
54789         * doc/gnulib.texi (Function Substitutes): Add new files.
54790         Reported by Bruno Haible.
54791
54792 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
54793
54794         * users.txt: Add Guile.
54795
54796 2007-08-22  Eric Blake  <ebb9@byu.net>
54797
54798         * tests/test-getdelim.c (main): Use remove, not unlink.
54799         * tests/test-getline.c (main): Likewise.
54800
54801         Move getline and getdelim into stdio.h, per POSIX 200x.
54802         * modules/getline (Files): Remove getline.h.
54803         (Depends-on): Add stdio.
54804         (configure.ac): Add module indicator.
54805         * modules/getdelim (Files): Remove getdelim.h.
54806         (Depends-on): Add stdio.
54807         (configure.ac): Add module indicator.
54808         * modules/stdio (Makefile.am): Work with new indicators.
54809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54810         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54811         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54812         * lib/getdelim.h: Delete.
54813         * lib/getline.h: Delete.
54814         * lib/stdio_.h (getdelim, getline): Declare.
54815         * modules/getdelim-tests: New module.
54816         * modules/getline-tests: Likewise.
54817         * tests/test-getdelim.c: New file.
54818         * tests/test-getline.c: Likewise.
54819         * NEWS: Document the change.
54820         * lib/getline.c: Update choice of header.
54821         * lib/csharpcomp.c: Likewise.
54822         * lib/getpass.c: Likewise.
54823         * lib/javacomp.c: Likewise.
54824         * lib/javaversion.c: Likewise.
54825         * lib/yesno.c: Likewise.
54826         * lib/getdelim.c: Likewise.
54827         (getdelim): Set errno on failure, and avoid memory leak.
54828
54829 2007-08-19  Bruno Haible  <bruno@clisp.org>
54830
54831         * modules/closein (Depends-on): Add freadahead.
54832         * lib/closein.c: Include freadahead.h.
54833         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
54834         is zero.
54835
54836 2007-08-19  Bruno Haible  <bruno@clisp.org>
54837
54838         * modules/freadahead-tests: New file.
54839         * tests/test-freadahead.sh: New file.
54840         * tests/test-freadahead.c: New file.
54841
54842         * modules/freadahead: New file.
54843         * lib/freadahead.h: New file.
54844         * lib/freadahead.c: New file.
54845         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
54846         fbufmode, fpurge, freadable, fwritable.
54847
54848 2007-08-19  Eric Blake  <ebb9@byu.net>
54849
54850         Test yesno in combination with closein.
54851         * lib/yesno.c (yesno): Document use of stdin.
54852         * modules/yesno-tests (Files): New module.
54853         * tests/test-yesno.c (main): New file.
54854         * tests/test-yesno.sh: Likewise.
54855
54856 2007-08-19  Bruno Haible  <bruno@clisp.org>
54857
54858         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
54859         * lib/fseeko.c (rpl_fseeko): Likewise.
54860         * lib/fseterr.c (fseterr): Likewise.
54861
54862 2007-08-19  Bruno Haible  <bruno@clisp.org>
54863
54864         * tests/test-lseek.c (main): Disable a test for BeOS.
54865         * doc/functions/lseek.texi: Document the BeOS bug.
54866
54867 2007-08-19  Bruno Haible  <bruno@clisp.org>
54868             Eric Blake  <ebb9@byu.net>
54869
54870         * lib/lseek.c: Include <sys/stat.h>.
54871         (rpl_lseek): Add workaround code also for Unix platforms.
54872         Needed for BeOS.
54873         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
54874         * doc/functions/lseek.texi: Document BeOS definiency.
54875
54876 2007-08-18  Bruno Haible  <bruno@clisp.org>
54877
54878         * modules/fstrcmp-tests: New file.
54879         * tests/test-fstrcmp.c: New file.
54880
54881 2007-08-18  Bruno Haible  <bruno@clisp.org>
54882
54883         * modules/fstrcmp: New file, from GNU gettext with modifications.
54884         * lib/fstrcmp.h: New file, from GNU gettext.
54885         * lib/fstrcmp.c: New file, from GNU gettext.
54886         * MODULES.html.sh (String handling): Add fstrcmp.
54887
54888 2007-08-18  Bruno Haible  <bruno@clisp.org>
54889
54890         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54891         'bool'.
54892         (diag, compareseq): Remove const from the ctxt argument.
54893         (USE_HEURISTIC): Undefine at the end.
54894
54895 2007-08-18  Jim Meyering  <jim@meyering.net>
54896
54897         New file: lib/idcache.h
54898         * NEWS: Mention the addition.
54899         * modules/idcache (Files): Add lib/idcache.h
54900         * lib/idcache.c: Include "idcache.h".
54901         Don't include <sys/types.h>.
54902         Add a FIXME comment.
54903         Move file-scoped "static" declarations to the top.
54904         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54905
54906 2007-08-17  Bruno Haible  <bruno@clisp.org>
54907         and Paul Eggert  <eggert@cs.ucla.edu>
54908
54909         * MODULES.html.sh: Add diffseq.
54910         * modules/diffseq: New file.
54911         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54912         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54913
54914 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54915
54916         Import changes from coreutils for bootstrap script.
54917
54918         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54919
54920         * build-aux/bootstrap (slurp): Work even in environments where
54921         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54922         current code does not slurp files whose names start with ".", and
54923         this looks like it might be a troublesome area.
54924
54925         2007-07-11  Jim Meyering  <jim@meyering.net>
54926
54927         If there's a GPL vN copyright comment, require that N == 3.
54928
54929         2007-07-08  Jim Meyering  <jim@meyering.net>
54930
54931         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54932         * build-aux/bootstrap (mam_template): Move definition out of loop.
54933
54934         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54935
54936         * build-aux/bootstrap (symlink_to_dir): Rename function from
54937         symlink_to_gnulib.  Add a directory parameter.  Update all
54938         callers.
54939         (cp_mark_as_generated): Also check for -- and link to -- files in
54940         gl/.
54941
54942         2007-07-08  Jim Meyering  <jim@meyering.net>
54943
54944         Adapt to deeper hierarchy in gnulib.
54945         * build-aux/bootstrap (symlink_to_dir): If the destination
54946         directory doesn't exist, create it. This is required at least for
54947         "lib/uniwidth/cjk.h".
54948
54949         2007-05-15  Jim Meyering  <jim@meyering.net>
54950
54951         * build-aux/bootstrap: Now that generated Makefile.am files
54952         are no longer under version control, they must be created at
54953         bootstrap time.
54954
54955 2007-08-14  Ben Pfaff  <blp@gnu.org>
54956
54957         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54958
54959 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54960
54961         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54962         given the changes below.
54963         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54964         even on hosts that have padding bits beyond the supported 64.
54965
54966 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54967
54968         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54969         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54970         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54971         depends on it.
54972         (xstrtol_error): Remove.
54973         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54974         but with a different signature.
54975         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54976         * lib/xstrtol-error.c: Include exitfail.h.
54977         (xstrtol_fatal): New function, with a different signature from the
54978         old xstrtol_error, so that the caller need not worry about passing
54979         in an exit status, or about storage management of the option argument.
54980         (xstrtol_error): Now a static function.  Redo signature to
54981         implement xstrtol_fatal.  Output the correct number of hyphens in
54982         front of the option so that the caller need not worry about
54983         storage management.
54984         (N_): New macro.
54985         (_): Remove; not used now.
54986         * modules/xstrtol: Depend on getopt.
54987         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54988         of old STRTOL_FATAL_ERROR macro.
54989         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54990         of test program.
54991         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54992         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54993
54994 2007-08-08  Eric Blake  <ebb9@byu.net>
54995
54996         * lib/xstrtol-error.c: Add missing include.
54997
54998         Move xstrtol messages into gnulib domain, when --pobase is used.
54999         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
55000         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
55001         * modules/xstrtol (Files): Distribute new file.
55002         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
55003         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
55004         * tests/test-xstrtol.c: ...into new file.
55005         * tests/test-xstrtoul.c: Also test xstrtoul.
55006         * tests/test-xstrtoimax.c: Also test xstrtoimax.
55007         * tests/test-xstrtoumax.c: Also test xstrtoumax.
55008         * tests/test-xstrtol.sh: Drive the tests.
55009         * tests/test-xstrtoimax.sh: Likewise.
55010         * tests/test-xstrtoumax.sh: Likewise.
55011         * modules/xstrtol-tests: New module.
55012         * modules/xstrtoimax-tests: Likewise.
55013         * modules/xstrtoumax-tests: Likewise.
55014
55015 2007-08-08  Jim Meyering  <jim@meyering.net>
55016
55017         New function: mfile_name_concat.
55018         * lib/filenamecat.c (mfile_name_concat): New function, just like
55019         file_name_concat, but return NULL upon failure rather than exiting
55020         with a diagnostic.
55021         * lib/filenamecat.h: Declare it.
55022
55023 2007-08-07  Bruno Haible  <bruno@clisp.org>
55024
55025         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
55026         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
55027         warning from gcc.
55028         Reported by Eric Blake.
55029
55030 2007-08-07  Simon Josefsson  <simon@josefsson.org>
55031
55032         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
55033         * modules/crypto/arcfour (License): Likewise.
55034         * modules/crypto/des-tests (License): Likewise.
55035         * modules/crypto/gc-arctwo-tests (License): Likewise.
55036         * modules/crypto/gc-des-tests (License): Likewise.
55037         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
55038         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
55039         * modules/crypto/gc-md2-tests (License): Likewise.
55040         * modules/crypto/gc-md4-tests (License): Likewise.
55041         * modules/crypto/gc-md5-tests (License): Likewise.
55042         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
55043         * modules/crypto/gc-rijndael-tests (License): Likewise.
55044         * modules/crypto/gc-sha1-tests (License): Likewise.
55045         * modules/crypto/gc-tests (License): Likewise.
55046         * modules/crypto/hmac-md5 (License): Likewise.
55047         * modules/crypto/hmac-sha1 (License): Likewise.
55048         * modules/crypto/md2-tests (License): Likewise.
55049         * modules/crypto/md4-tests (License): Likewise.
55050         * modules/crypto/md5 (License): Likewise.
55051         * modules/crypto/rijndael (License): Likewise.
55052         * modules/crypto/sha1 (License): Likewise.
55053         * modules/memxor (License): Likewise.
55054
55055 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55056         and Bruno Haible  <bruno@clisp.org>
55057
55058         * NEWS: Describe interface changes to human, xstrtol.
55059         * lib/human.h: Include <xstrtol.h>.
55060         (human_options): Return enum strtol_error, not int.  Remove
55061         bool arg; take int * instead.
55062         * lib/human.c: Don't include "gettext.h".
55063         (_): Remove; no longer used.
55064         Don't include <xstrtol.h>, since human.h does it.
55065         (human_options): Adjust to abovementioned interface changes.
55066         Do not report error to stderr; that's now the caller's
55067         responsibility.
55068         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
55069         interface change.
55070         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
55071         Str, Argument_type_string.  All uses changed.  Put " argument"
55072         in diagnostics to make them clearer.  Change wording of suffix
55073         message for clarity.
55074         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
55075         Argument_type_string.
55076         (STRTOL_FATAL_WARN): Remove; no longer used.
55077         * modules/human (Depends-on): Remove gettext-h.
55078
55079 2007-08-06  Simon Josefsson  <simon@josefsson.org>
55080
55081         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
55082
55083 2007-07-31  Bruno Haible  <bruno@clisp.org>
55084
55085         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
55086         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
55087         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
55088
55089 2007-07-31  Bruno Haible  <bruno@clisp.org>
55090
55091         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
55092         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
55093
55094 2007-07-30  Bruno Haible  <bruno@clisp.org>
55095
55096         * modules/base64 (License): Use the synonymous term "LGPLv2+".
55097         * modules/c-ctype (License): Likewise.
55098         * modules/c-strcase (License): Likewise.
55099         * modules/check-version (License): Likewise.
55100         * modules/iconv (License): Likewise.
55101         * modules/iconv_open (License): Likewise.
55102         * modules/read-file (License): Likewise.
55103         * modules/striconv (License): Likewise.
55104         * modules/strverscmp (License): Likewise.
55105         * modules/vasprintf (License): Likewise.
55106         * modules/crypto/des (License): Likewise.
55107         * modules/crypto/gc (License): Likewise.
55108         * modules/crypto/gc-arcfour (License): Likewise.
55109         * modules/crypto/gc-arctwo (License): Likewise.
55110         * modules/crypto/gc-des (License): Likewise.
55111         * modules/crypto/gc-hmac-md5 (License): Likewise.
55112         * modules/crypto/gc-hmac-sha1 (License): Likewise.
55113         * modules/crypto/gc-md2 (License): Likewise.
55114         * modules/crypto/gc-md4 (License): Likewise.
55115         * modules/crypto/gc-md5 (License): Likewise.
55116         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
55117         * modules/crypto/gc-random (License): Likewise.
55118         * modules/crypto/gc-rijndael (License): Likewise.
55119         * modules/crypto/gc-sha1 (License): Likewise.
55120         * modules/crypto/md2 (License): Likewise.
55121         * modules/crypto/md4 (License): Likewise.
55122
55123 2007-07-30  Jim Meyering  <jim@meyering.net>
55124
55125         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
55126         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
55127         it has valid stat data.  This bug would cause du not to count the
55128         sizes of inaccessible directories.
55129         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
55130         in <http://bugzilla.redhat.com/250077>.
55131
55132 2007-07-25  Peter O'Gorman  <peter@pogma.com>
55133             Bruno Haible  <bruno@clisp.org>
55134
55135         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
55136         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
55137         #include_next, gives a diagnostic about it, but reports no error in
55138         the exit code.
55139         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55140
55141 2007-07-24  Ben Pfaff  <blp@gnu.org>
55142
55143         Improve name: "count-one-bits" is better than "popcount".
55144         * MODULES.html.sh: Update name.
55145         * lib/popcount.h: Renamed lib/count-one-bits.h.
55146         (popcount): Renamed count_one_bits.
55147         (popcountl): Renamed count_one_bits_l.
55148         (popcountll): Renamed count_one_bits_ll.
55149         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
55150         * modules/popcount: Renamed module/count-one-bits.
55151         * modules/popcount-tests: Renamed module/count-one-bits-tests.
55152         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
55153
55154 2007-07-23  Ben Pfaff  <blp@gnu.org>
55155
55156         * lib/popcount.h (popcount32): Reduce size of constants, to allow
55157         better code generation, and add U to large constants to avoid
55158         warnings, in non-GCC case.
55159         Suggested by Bruno Haible.
55160
55161 2007-07-23  Ben Pfaff  <blp@gnu.org>
55162
55163         * lib/popcount.h: Use verify_true instead of if...abort.
55164         * modules/popcount: Depend on verify module.
55165         Suggested by Jim Meyering.
55166
55167 2007-07-23  Bruno Haible  <bruno@clisp.org>
55168
55169         * gnulib-tool (func_import): Create a .cvsignore file also when the
55170         directory is not yet in CVS but the toplevel directory is. When
55171         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
55172         Reported by Karl Berry.
55173
55174 2007-07-22  Ben Pfaff  <blp@gnu.org>
55175
55176         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
55177         case.
55178         Suggested by Eric Blake.
55179
55180 2007-07-22  Ben Pfaff  <blp@gnu.org>
55181
55182         New module: popcount.
55183         * MODULES.html.sh: Add popcount.
55184         * modules/popcount: New file.
55185         * modules/popcount-tests: New file.
55186         * tests/test-popcount.c: New file.
55187         * lib/popcount.h: New file.
55188         * m4/popcount.m4: New file.
55189
55190 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55191
55192         * build-aux/announce-gen: Update to GPLv3.
55193
55194         * build-aux/config.guess: Update from config.
55195
55196 2007-07-21  Bruno Haible  <bruno@clisp.org>
55197
55198         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
55199         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
55200
55201 2007-07-20  Jim Meyering  <jim@meyering.net>
55202
55203         * check-module: Diagnose a self-dependency.
55204
55205 2007-07-19  Bruno Haible  <bruno@clisp.org>
55206
55207         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
55208         empty.
55209         Reported by Eric Blake.
55210
55211 2007-07-18  Bruno Haible  <bruno@clisp.org>
55212
55213         * gnulib-tool: New options --po-base, --po-domain.
55214         (func_usage): Document them.
55215         (pobase, po_domain): New variables.
55216         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
55217         DEFAULT_TEXT_DOMAIN.
55218         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
55219         (func_import): Consider pobase and po_domain. Create a po/ directory.
55220         (func_create_testdir): Set pobase and po_domain to empty.
55221         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
55222         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
55223
55224 2007-07-18  Bruno Haible  <bruno@clisp.org>
55225
55226         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55227         EXTRA_DIST augmentation for files in build-aux/.
55228
55229 2007-07-16  Bruno Haible  <bruno@clisp.org>
55230
55231         * modules/lseek (License): Use the synonymous term "LGPLv2+".
55232         * modules/getdelim (License): Likewise.
55233
55234 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55235
55236         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
55237         * modules/d-type (License): Likewise.
55238         * modules/extensions (License): Likewise.
55239         * modules/fnmatch (License): Likewise.
55240         * modules/fseeko (License): Likewise.
55241         * modules/getaddrinfo (License): Likewise.
55242         * modules/getline (License): Likewise.
55243         * modules/getlogin_r (License): Likewise.
55244         * modules/getpass (License): Likewise.
55245         * modules/gettimeofday (License): Likewise.
55246         * modules/glob (License): Likewise.
55247         * modules/inet_ntop (License): Likewise.
55248         * modules/malloc (License): Likewise.
55249         * modules/malloca (License): Likewise.
55250         * modules/memmem (License): Likewise.
55251         * modules/mempcpy (License): Likewise.
55252         * modules/memset (License): Likewise.
55253         * modules/minmax (License): Likewise.
55254         * modules/mktime (License): Likewise.
55255         * modules/netinet_in (License): Likewise.
55256         * modules/pathmax (License): Likewise.
55257         * modules/poll (License): Likewise.
55258         * modules/regex (License): Likewise.
55259         * modules/snprintf (License): Likewise.
55260         * modules/stdbool (License): Likewise.
55261         * modules/stdint (License): Likewise.
55262         * modules/stdio (License): Likewise.
55263         * modules/strcase (License): Likewise.
55264         * modules/strcasestr (License): Likewise.
55265         * modules/strdup (License): Likewise.
55266         * modules/string (License): Likewise.
55267         * modules/strndup (License): Likewise.
55268         * modules/strnlen (License): Likewise.
55269         * modules/strpbrk (License): Likewise.
55270         * modules/strptime (License): Likewise.
55271         * modules/strsep (License): Likewise.
55272         * modules/sys_select (License): Likewise.
55273         * modules/sys_socket (License): Likewise.
55274         * modules/sys_stat (License): Likewise.
55275         * modules/sys_time (License): Likewise.
55276         * modules/time (License): Likewise.
55277         * modules/time_r (License): Likewise.
55278         * modules/timegm (License): Likewise.
55279         * modules/unistd (License): Likewise.
55280         * modules/vsnprintf (License): Likewise.
55281         * modules/wctype (License): Likewise.
55282
55283 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55284
55285         * modules/argz (License): LGPLv2+.
55286
55287 2007-07-15  Karl Berry  <karl@gnu.org>
55288
55289         * doc/gnulib.texi: revise node structure per new fdl.texi.
55290
55291 2007-07-14  Bruno Haible  <bruno@clisp.org>
55292
55293         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
55294         the output file.
55295         * lib/uniname/uninames.h: Regenerated.
55296
55297 2007-07-14  Karl Berry  <karl@gnu.org>
55298
55299         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
55300         omitting sectioning and index commands.
55301
55302 2007-07-13  Bruno Haible  <bruno@clisp.org>
55303
55304         New gnulib-tool option --more-symlinks.
55305         * gnulib-tool (func_usage): Document --more-symlinks.
55306         (do_copyrights): New variable.
55307         Recognize option --more-symlinks.
55308         (func_import): Don't add a copyright notice transform to
55309         sed_transform_lib_file if do_copyrights is empty.
55310
55311 2007-07-13  Bruno Haible  <bruno@clisp.org>
55312
55313         * lib/vasnprintf.c (decimal_point_char): Define also if
55314         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
55315         && !NEED_PRINTF_DIRECTIVE_A.
55316         Reported by Clemens Koller <clemens.koller@anagramm.de> via
55317         Gary V. Vaughan <gary@gnu.org>.
55318
55319 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
55320
55321         * lib/inttypes_.h: Undo previous change, since it was fixed
55322         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
55323
55324 2007-07-13  Bruno Haible  <bruno@clisp.org>
55325
55326         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
55327         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
55328
55329 2007-07-13  Jim Meyering  <jim@meyering.net>
55330
55331         df: Don't fail for Tru64's "file-on-file mount".
55332         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
55333         so we fall through and use statfs instead.  Details here:
55334         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
55335         Reported by Albert Chin.
55336
55337 2007-07-13  Bruno Haible  <bruno@clisp.org>
55338
55339         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
55340         * modules/configmake (License): Likewise.
55341         * modules/gettext (License): Likewise.
55342         * modules/gettext-h (License): Likewise.
55343         * modules/include_next (License): Likewise.
55344         * modules/link-warning (License): Likewise.
55345         * modules/localcharset (License): Likewise.
55346         * modules/localename (License): Likewise.
55347         * modules/lock (License): Likewise.
55348         * modules/relocatable-lib-lgpl (License): Likewise.
55349         * modules/size_max (License): Likewise.
55350         * modules/vasnprintf (License): Likewise.
55351         * modules/wchar (License): Likewise.
55352         * modules/xsize (License): Likewise.
55353
55354 2007-07-13  Bruno Haible  <bruno@clisp.org>
55355
55356         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
55357         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
55358
55359 2007-07-12  Bruno Haible  <bruno@clisp.org>
55360
55361         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
55362         in the modules files.
55363
55364 2007-07-11  Karl Berry  <karl@gnu.org>
55365
55366         * MODULES.html.sh (func_module): use
55367          sed -e '\|^'"${includefile}"'$|d'
55368          instead of /.../d, to avoid errors on $includefile's containing /.
55369
55370 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55371
55372         * gnulib-tool (func_import): Avoid duplication of --avoid
55373         statements
55374         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
55375         names to `_' in variable names.
55376
55377 2007-07-10  Eric Blake  <ebb9@byu.net>
55378
55379         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
55380         * NEWS: Document this change.
55381
55382 2007-07-08  Bruno Haible  <bruno@clisp.org>
55383
55384         Update to Unicode 5.0.
55385         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
55386         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
55387         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
55388         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
55389         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
55390         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
55391         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
55392         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
55393         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
55394         U+10A3F, U+1D242..U+1D244.
55395         (nonspacing_table_ind): Update.
55396         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
55397         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
55398
55399 2007-07-08  Bruno Haible  <bruno@clisp.org>
55400
55401         Update to Unicode 5.0.
55402         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
55403         code transform. Extend the name index field of unicode_name_to_code and
55404         unicode_code_to_name from 16 to 24 bits.
55405         * lib/uniname/uniname.c (unicode_character_name,
55406         unicode_name_character): Add the range 0x12xxx to the code transform.
55407         * lib/uniname/uninames.h: Regenerated.
55408         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
55409
55410 2007-07-07  Bruno Haible  <bruno@clisp.org>
55411
55412         * modules/wcwidth-tests: New file.
55413         * tests/test-wcwidth.c: New file.
55414
55415         Work around MacOS X wcwidth() bug.
55416         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
55417         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
55418         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
55419         original wcwidth in non-UTF-8 locales.
55420         * modules/wcwidth (Depends-on): Add localcharset, streq,
55421         uniwidth/width.
55422         * doc/functions/wcwidth.texi: Update.
55423
55424 2007-07-07  Bruno Haible  <bruno@clisp.org>
55425
55426         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
55427         (wcwidth): New declaration.
55428         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
55429         macros.
55430         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
55431         here. Prepare for creating <wchar.h> unconditionally.
55432         * modules/wchar (Depends-on): Add link-warning.
55433         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
55434         REPLACE_WCWIDTH, and GL_LINK_WARNING.
55435         * lib/wcwidth.h: Remove file.
55436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
55437         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
55438         * modules/wcwidth (Files): Remove lib/wcwidth.h.
55439         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
55440         (Include): Replace wcwidth.h with <wchar.h>.
55441         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
55442         * lib/mbchar.h: Don't include wcwidth.h.
55443         * lib/mbswidth.c: Likewise.
55444         * NEWS: Mention the change.
55445
55446 2007-07-07  Bruno Haible  <bruno@clisp.org>
55447
55448         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
55449         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
55450         definition with an external declaration.
55451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
55452         defined as a function. Remove AC_C_INLINE requirement.
55453         * modules/wcwidth (Files): Add lib/wcwidth.c.
55454         (Makefile.am): Remove redundant statement.
55455
55456 2007-07-07  Bruno Haible  <bruno@clisp.org>
55457
55458         * MODULES.html.sh (Unicode string functions): Add the new modules.
55459
55460         * tests/uniwidth/test-u32-strwidth.c: New file.
55461         * modules/uniwidth/u32-strwidth-tests: New file.
55462
55463         * lib/uniwidth/u32-strwidth.c: New file.
55464         * modules/uniwidth/u32-strwidth: New file.
55465
55466         * tests/uniwidth/test-u16-strwidth.c: New file.
55467         * modules/uniwidth/u16-strwidth-tests: New file.
55468
55469         * lib/uniwidth/u16-strwidth.c: New file.
55470         * modules/uniwidth/u16-strwidth: New file.
55471
55472         * tests/uniwidth/test-u8-strwidth.c: New file.
55473         * modules/uniwidth/u8-strwidth-tests: New file.
55474
55475         * lib/uniwidth/u8-strwidth.c: New file.
55476         * modules/uniwidth/u8-strwidth: New file.
55477
55478         * tests/uniwidth/test-u32-width.c: New file.
55479         * modules/uniwidth/u32-width-tests: New file.
55480
55481         * lib/uniwidth/u32-width.c: New file.
55482         * modules/uniwidth/u32-width: New file.
55483
55484         * tests/uniwidth/test-u16-width.c: New file.
55485         * modules/uniwidth/u16-width-tests: New file.
55486
55487         * lib/uniwidth/u16-width.c: New file.
55488         * modules/uniwidth/u16-width: New file.
55489
55490         * tests/uniwidth/test-u8-width.c: New file.
55491         * modules/uniwidth/u8-width-tests: New file.
55492
55493         * lib/uniwidth/u8-width.c: New file.
55494         * modules/uniwidth/u8-width: New file.
55495
55496         * tests/uniwidth/test-uc_width.c: New file.
55497         * modules/uniwidth/width-tests: New file.
55498
55499         * lib/uniwidth/width.c: New file, from GNU libiconv.
55500         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
55501         * modules/uniwidth/width: New file.
55502
55503         * lib/uniwidth.h: New file, from GNU libiconv.
55504         * modules/uniwidth/base: New file.
55505
55506 2007-07-07  Bruno Haible  <bruno@clisp.org>
55507
55508         * lib/uniname.h: New file, from GNU gettext.
55509         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
55510         * lib/uniname/uninames.h: New file, from GNU gettext.
55511         * lib/uniname/uniname.c: New file, from GNU gettext.
55512         * tests/uniname/test-uninames.sh: New file.
55513         * tests/uniname/test-uninames.c: New file, from GNU gettext.
55514         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
55515         * modules/uniname/base: New file.
55516         * modules/uniname/uniname: New file.
55517         * modules/uniname/uniname-tests: New file.
55518         * MODULES.html.sh (Unicode string functions): Add the new modules.
55519
55520 2007-07-06  Bruno Haible  <bruno@clisp.org>
55521
55522         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
55523
55524 2007-07-06  Bruno Haible  <bruno@clisp.org>
55525
55526         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
55527         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
55528         includes <cygwin/sys_time.h> which includes <sys/select.h> which
55529         include <sys/time.h>.
55530         Reported by Eric Blake.
55531
55532 2007-07-06  Eric Blake  <ebb9@byu.net>
55533
55534         Fix testing canonicalize on cygwin.
55535         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55536         Revert patch from 2007-06-19.
55537         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
55538         canonicalize module is also in use.
55539         * tests/test-canonicalize.c: New file.
55540         * tests/test-canonicalize.sh: Likewise.
55541         * modules/canonicalize-tests: Likewise.
55542
55543 2007-07-06  Jim Meyering  <jim@meyering.net>
55544
55545         * lib/getugroups.c (getugroups): Detect getgrent failure.
55546         Adjust comment to reflect reality: this function may return -1.
55547
55548 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55549
55550         * build-aux/bootstrap (TP_URL,get_translations): Update to use
55551         the new TP address.
55552         (usage): Fix typo
55553         (gnulib_mk): New variable.
55554
55555 2007-07-05  Jim Meyering  <jim@meyering.net>
55556
55557         Don't let endgrent clobber errno, no matter how improbable.
55558         * lib/getugroups.c (getugroups): Save and restore errno around
55559         endgrent call.
55560
55561         Close the group DB even when failing with 2^31 or more members.
55562         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
55563
55564 2007-07-04  Jim Meyering  <jim@meyering.net>
55565
55566         * lib/getugroups.h: New file.
55567         * lib/getugroups.c: Include "getugroups.h".
55568         Remove uses of "register" keyword.
55569         Move local variable, "cp", down into scope where used.
55570         Give "username" parameter the "const" attribute.
55571         * modules/getugroups (Files): Add lib/getugroups.h
55572
55573 2007-07-04  Karl Berry  <karl@gnu.org>
55574
55575         * MODULES.html.sh (func_all_modules): Complete rename of
55576         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
55577
55578 2007-07-02  Bruno Haible  <bruno@clisp.org>
55579
55580         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
55581         mode, when inttypes.h comes from gnulib.
55582         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55583
55584 2007-07-02  Simon Josefsson  <simon@josefsson.org>
55585
55586         * NEWS: Mention lgpl module name change.
55587
55588         * modules/lgpl-2.1: Renamed from lgpl.
55589
55590         * NEWS: Mention gpl module name change.
55591
55592         * modules/gpl-3.0: New file, based on gpl-2.0.
55593
55594         * modules/gpl-2.0: Renamed from gpl.
55595
55596         * modules/gpl: Fix filename, doc/gpl.texi is now found at
55597         doc/gpl-2.0.texi.
55598
55599 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55600
55601         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
55602         #define __STDC_LIMIT_MACROS temporarily while including
55603         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
55604         Problem reported by Joel E. Denny in
55605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
55606
55607 2007-07-01  Bruno Haible  <bruno@clisp.org>
55608
55609         * lib/unistdio.h: New file.
55610         * lib/unistdio/u-asnprintf.h: New file.
55611         * lib/unistdio/u-asprintf.h: New file.
55612         * lib/unistdio/u-printf-args.c: New file.
55613         * lib/unistdio/u-printf-args.h: New file.
55614         * lib/unistdio/u-printf-parse.h: New file.
55615         * lib/unistdio/u-snprintf.h: New file.
55616         * lib/unistdio/u-sprintf.h: New file.
55617         * lib/unistdio/u-vasprintf.h: New file.
55618         * lib/unistdio/u-vsnprintf.h: New file.
55619         * lib/unistdio/u-vsprintf.h: New file.
55620         * lib/unistdio/ulc-asnprintf.c: New file.
55621         * lib/unistdio/ulc-asprintf.c: New file.
55622         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
55623         * lib/unistdio/ulc-printf-parse.c: New file.
55624         * lib/unistdio/ulc-snprintf.c: New file.
55625         * lib/unistdio/ulc-sprintf.c: New file.
55626         * lib/unistdio/ulc-vasnprintf.c: New file.
55627         * lib/unistdio/ulc-vasprintf.c: New file.
55628         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
55629         * lib/unistdio/ulc-vsnprintf.c: New file.
55630         * lib/unistdio/ulc-vsprintf.c: New file.
55631         * lib/unistdio/u8-asnprintf.c: New file.
55632         * lib/unistdio/u8-asprintf.c: New file.
55633         * lib/unistdio/u8-printf-parse.c: New file.
55634         * lib/unistdio/u8-snprintf.c: New file.
55635         * lib/unistdio/u8-sprintf.c: New file.
55636         * lib/unistdio/u8-vasnprintf.c: New file.
55637         * lib/unistdio/u8-vasprintf.c: New file.
55638         * lib/unistdio/u8-vsnprintf.c: New file.
55639         * lib/unistdio/u8-vsprintf.c: New file.
55640         * lib/unistdio/u8-u8-asnprintf.c: New file.
55641         * lib/unistdio/u8-u8-asprintf.c: New file.
55642         * lib/unistdio/u8-u8-snprintf.c: New file.
55643         * lib/unistdio/u8-u8-sprintf.c: New file.
55644         * lib/unistdio/u8-u8-vasnprintf.c: New file.
55645         * lib/unistdio/u8-u8-vasprintf.c: New file.
55646         * lib/unistdio/u8-u8-vsnprintf.c: New file.
55647         * lib/unistdio/u8-u8-vsprintf.c: New file.
55648         * lib/unistdio/u16-asnprintf.c: New file.
55649         * lib/unistdio/u16-asprintf.c: New file.
55650         * lib/unistdio/u16-printf-parse.c: New file.
55651         * lib/unistdio/u16-snprintf.c: New file.
55652         * lib/unistdio/u16-sprintf.c: New file.
55653         * lib/unistdio/u16-vasnprintf.c: New file.
55654         * lib/unistdio/u16-vasprintf.c: New file.
55655         * lib/unistdio/u16-vsnprintf.c: New file.
55656         * lib/unistdio/u16-vsprintf.c: New file.
55657         * lib/unistdio/u16-u16-asnprintf.c: New file.
55658         * lib/unistdio/u16-u16-asprintf.c: New file.
55659         * lib/unistdio/u16-u16-snprintf.c: New file.
55660         * lib/unistdio/u16-u16-sprintf.c: New file.
55661         * lib/unistdio/u16-u16-vasnprintf.c: New file.
55662         * lib/unistdio/u16-u16-vasprintf.c: New file.
55663         * lib/unistdio/u16-u16-vsnprintf.c: New file.
55664         * lib/unistdio/u16-u16-vsprintf.c: New file.
55665         * lib/unistdio/u32-asnprintf.c: New file.
55666         * lib/unistdio/u32-asprintf.c: New file.
55667         * lib/unistdio/u32-printf-parse.c: New file.
55668         * lib/unistdio/u32-snprintf.c: New file.
55669         * lib/unistdio/u32-sprintf.c: New file.
55670         * lib/unistdio/u32-vasnprintf.c: New file.
55671         * lib/unistdio/u32-vasprintf.c: New file.
55672         * lib/unistdio/u32-vsnprintf.c: New file.
55673         * lib/unistdio/u32-vsprintf.c: New file.
55674         * lib/unistdio/u32-u32-asnprintf.c: New file.
55675         * lib/unistdio/u32-u32-asprintf.c: New file.
55676         * lib/unistdio/u32-u32-snprintf.c: New file.
55677         * lib/unistdio/u32-u32-sprintf.c: New file.
55678         * lib/unistdio/u32-u32-vasnprintf.c: New file.
55679         * lib/unistdio/u32-u32-vasprintf.c: New file.
55680         * lib/unistdio/u32-u32-vsnprintf.c: New file.
55681         * lib/unistdio/u32-u32-vsprintf.c: New file.
55682         * tests/unistdio/test-ulc-asnprintf1.c: New file.
55683         * tests/unistdio/test-ulc-asnprintf1.h: New file.
55684         * tests/unistdio/test-ulc-printf1.h: New file.
55685         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
55686         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
55687         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
55688         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
55689         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
55690         * tests/unistdio/test-ulc-vasprintf1.c: New file.
55691         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
55692         * tests/unistdio/test-ulc-vsprintf1.c: New file.
55693         * tests/unistdio/test-u8-asnprintf1.c: New file.
55694         * tests/unistdio/test-u8-asnprintf1.h: New file.
55695         * tests/unistdio/test-u8-printf1.h: New file.
55696         * tests/unistdio/test-u8-vasnprintf1.c: New file.
55697         * tests/unistdio/test-u8-vasnprintf2.c: New file.
55698         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
55699         * tests/unistdio/test-u8-vasnprintf3.c: New file.
55700         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
55701         * tests/unistdio/test-u8-vasprintf1.c: New file.
55702         * tests/unistdio/test-u8-vsnprintf1.c: New file.
55703         * tests/unistdio/test-u8-vsprintf1.c: New file.
55704         * tests/unistdio/test-u16-asnprintf1.c: New file.
55705         * tests/unistdio/test-u16-asnprintf1.h: New file.
55706         * tests/unistdio/test-u16-printf1.h: New file.
55707         * tests/unistdio/test-u16-vasnprintf1.c: New file.
55708         * tests/unistdio/test-u16-vasnprintf2.c: New file.
55709         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
55710         * tests/unistdio/test-u16-vasnprintf3.c: New file.
55711         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
55712         * tests/unistdio/test-u16-vasprintf1.c: New file.
55713         * tests/unistdio/test-u16-vsnprintf1.c: New file.
55714         * tests/unistdio/test-u16-vsprintf1.c: New file.
55715         * tests/unistdio/test-u32-asnprintf1.c: New file.
55716         * tests/unistdio/test-u32-asnprintf1.h: New file.
55717         * tests/unistdio/test-u32-printf1.h: New file.
55718         * tests/unistdio/test-u32-vasnprintf1.c: New file.
55719         * tests/unistdio/test-u32-vasnprintf2.c: New file.
55720         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
55721         * tests/unistdio/test-u32-vasnprintf3.c: New file.
55722         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
55723         * tests/unistdio/test-u32-vasprintf1.c: New file.
55724         * tests/unistdio/test-u32-vsnprintf1.c: New file.
55725         * tests/unistdio/test-u32-vsprintf1.c: New file.
55726         * modules/unistdio/base: New file.
55727         * modules/unistdio/u-printf-args: New file.
55728         * modules/unistdio/ulc-asnprintf: New file.
55729         * modules/unistdio/ulc-asprintf: New file.
55730         * modules/unistdio/ulc-fprintf: New file.
55731         * modules/unistdio/ulc-printf-parse: New file.
55732         * modules/unistdio/ulc-snprintf: New file.
55733         * modules/unistdio/ulc-sprintf: New file.
55734         * modules/unistdio/ulc-vasnprintf: New file.
55735         * modules/unistdio/ulc-vasprintf: New file.
55736         * modules/unistdio/ulc-vfprintf: New file.
55737         * modules/unistdio/ulc-vsnprintf: New file.
55738         * modules/unistdio/ulc-vsprintf: New file.
55739         * modules/unistdio/u8-asnprintf: New file.
55740         * modules/unistdio/u8-asprintf: New file.
55741         * modules/unistdio/u8-printf-parse: New file.
55742         * modules/unistdio/u8-snprintf: New file.
55743         * modules/unistdio/u8-sprintf: New file.
55744         * modules/unistdio/u8-vasnprintf: New file.
55745         * modules/unistdio/u8-vasprintf: New file.
55746         * modules/unistdio/u8-vsnprintf: New file.
55747         * modules/unistdio/u8-vsprintf: New file.
55748         * modules/unistdio/u8-u8-asnprintf: New file.
55749         * modules/unistdio/u8-u8-asprintf: New file.
55750         * modules/unistdio/u8-u8-snprintf: New file.
55751         * modules/unistdio/u8-u8-sprintf: New file.
55752         * modules/unistdio/u8-u8-vasnprintf: New file.
55753         * modules/unistdio/u8-u8-vasprintf: New file.
55754         * modules/unistdio/u8-u8-vsnprintf: New file.
55755         * modules/unistdio/u8-u8-vsprintf: New file.
55756         * modules/unistdio/u16-asnprintf: New file.
55757         * modules/unistdio/u16-asprintf: New file.
55758         * modules/unistdio/u16-printf-parse: New file.
55759         * modules/unistdio/u16-snprintf: New file.
55760         * modules/unistdio/u16-sprintf: New file.
55761         * modules/unistdio/u16-vasnprintf: New file.
55762         * modules/unistdio/u16-vasprintf: New file.
55763         * modules/unistdio/u16-vsnprintf: New file.
55764         * modules/unistdio/u16-vsprintf: New file.
55765         * modules/unistdio/u16-u16-asnprintf: New file.
55766         * modules/unistdio/u16-u16-asprintf: New file.
55767         * modules/unistdio/u16-u16-snprintf: New file.
55768         * modules/unistdio/u16-u16-sprintf: New file.
55769         * modules/unistdio/u16-u16-vasnprintf: New file.
55770         * modules/unistdio/u16-u16-vasprintf: New file.
55771         * modules/unistdio/u16-u16-vsnprintf: New file.
55772         * modules/unistdio/u16-u16-vsprintf: New file.
55773         * modules/unistdio/u32-asnprintf: New file.
55774         * modules/unistdio/u32-asprintf: New file.
55775         * modules/unistdio/u32-printf-parse: New file.
55776         * modules/unistdio/u32-snprintf: New file.
55777         * modules/unistdio/u32-sprintf: New file.
55778         * modules/unistdio/u32-vasnprintf: New file.
55779         * modules/unistdio/u32-vasprintf: New file.
55780         * modules/unistdio/u32-vsnprintf: New file.
55781         * modules/unistdio/u32-vsprintf: New file.
55782         * modules/unistdio/u32-u32-asnprintf: New file.
55783         * modules/unistdio/u32-u32-asprintf: New file.
55784         * modules/unistdio/u32-u32-snprintf: New file.
55785         * modules/unistdio/u32-u32-sprintf: New file.
55786         * modules/unistdio/u32-u32-vasnprintf: New file.
55787         * modules/unistdio/u32-u32-vasprintf: New file.
55788         * modules/unistdio/u32-u32-vsnprintf: New file.
55789         * modules/unistdio/u32-u32-vsprintf: New file.
55790         * modules/unistdio/ulc-asnprintf-tests: New file.
55791         * modules/unistdio/ulc-vasnprintf-tests: New file.
55792         * modules/unistdio/ulc-vasprintf-tests: New file.
55793         * modules/unistdio/ulc-vsnprintf-tests: New file.
55794         * modules/unistdio/ulc-vsprintf-tests: New file.
55795         * modules/unistdio/u8-asnprintf-tests: New file.
55796         * modules/unistdio/u8-vasnprintf-tests: New file.
55797         * modules/unistdio/u8-vasprintf-tests: New file.
55798         * modules/unistdio/u8-vsnprintf-tests: New file.
55799         * modules/unistdio/u8-vsprintf-tests: New file.
55800         * modules/unistdio/u16-asnprintf-tests: New file.
55801         * modules/unistdio/u16-vasnprintf-tests: New file.
55802         * modules/unistdio/u16-vasprintf-tests: New file.
55803         * modules/unistdio/u16-vsnprintf-tests: New file.
55804         * modules/unistdio/u16-vsprintf-tests: New file.
55805         * modules/unistdio/u32-asnprintf-tests: New file.
55806         * modules/unistdio/u32-vasnprintf-tests: New file.
55807         * modules/unistdio/u32-vasprintf-tests: New file.
55808         * modules/unistdio/u32-vsnprintf-tests: New file.
55809         * modules/unistdio/u32-vsprintf-tests: New file.
55810         * MODULES.html.sh (Unicode string functions): Add the new modules.
55811
55812 2007-07-01  Bruno Haible  <bruno@clisp.org>
55813
55814         * lib/sprintf.c (sprintf): Limit the available length estimation,
55815         to avoid address wraparound.
55816         * lib/vsprintf.c (vsprintf): Likewise.
55817         * modules/sprintf-posix (Dependencies): Add stdint.
55818         * modules/vsprintf-posix (Dependencies): Likewise.
55819
55820 2007-07-01  Bruno Haible  <bruno@clisp.org>
55821
55822         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
55823         Windows PATH as well. Conservative double-quoting. Comments.
55824
55825 2007-07-01  Bruno Haible  <bruno@clisp.org>
55826             Eric Blake  <ebb9@byu.net>
55827             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55828
55829         * gnulib-tool (self_abspathname): Fix algorithm to cope with
55830         empty components in $PATH, denoting '.'.
55831
55832 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55833
55834         * gnulib-tool: Fix indentation.
55835         (func_create_megatestdir): Likewise.
55836         Report by Bruno Haible.
55837
55838 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55839
55840         Sync from Automake.
55841         * build-aux/gnupload: Fix shell portability issues with for loops.
55842         Report by Karl Berry.
55843
55844 2007-06-29  Simon Josefsson  <simon@josefsson.org>
55845
55846         * build-aux/maint.mk (POURL): Use translationproject.org.
55847
55848 2007-06-27  Simon Josefsson  <simon@josefsson.org>
55849             Bruno Haible  <bruno@clisp.org>
55850
55851         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
55852         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
55853         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
55854         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
55855         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
55856
55857 2007-06-27  Bruno Haible  <bruno@clisp.org>
55858
55859         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
55860         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
55861
55862 2007-06-26  Karl Berry  <karl@gnu.org>
55863
55864         * MODULES.html.sh: remove xreadlink-with-size.
55865
55866 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55867
55868         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
55869         method that I hope also handles the double-include problem noted
55870         by Bruno Haible in
55871         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
55872
55873 2007-06-23  Bruno Haible  <bruno@clisp.org>
55874
55875         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55876         Don't let the 'mostlyclean' target fail if the last subdirectory could
55877         not be removed.
55878         Reported by Karl Berry.
55879
55880 2007-06-23  Bruno Haible  <bruno@clisp.org>
55881
55882         * gnulib-tool (echo): Add a speedier workaround for ksh.
55883         * tests/test-echo.sh: Likewise.
55884
55885 2007-06-23  Bruno Haible  <bruno@clisp.org>
55886
55887         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55888         * tests/test-echo.sh: Likewise.
55889
55890 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55891
55892         * gnulib-tool (IFS): Initialize early, so we don't set it to
55893         empty later.
55894         (self_abspathname): Rewrite algorithm to set it, reindent.
55895         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55896         (func_create_megatestdir): Merge some sed scripts.
55897
55898 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55899
55900         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55901         exposed by Sun Studio 11 cc on Solaris 8.
55902
55903 2007-06-22  Bruno Haible  <bruno@clisp.org>
55904
55905         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55906         backslashes.
55907         * tests/test-echo.sh: New file.
55908
55909 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55910
55911         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55912         simplify `sed_replace_build_aux' scripts, they are portable but
55913         echoing them with `echo' is not.
55914         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55915
55916 2007-06-21  Karl Berry  <karl@gnu.org>
55917
55918         * config/srclist.txt: guess we can't handle the licenses via
55919         srclist at the moment.
55920
55921 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55922
55923         * MODULES.html.sh: Add include_next.
55924         * modules/include_next: New file.
55925
55926 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55927
55928         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55929         INCLUDE_NEXT.
55930         (gl_CHECK_NEXT_HEADERS): New macro.
55931         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55932         the obsolescent gl_ABSOLUTE_HEADER.
55933         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55934         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55935         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55936         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55937         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55938         * m4/math_h.m4 (gl_MATH_H): Likewise.
55939         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55940         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55941         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55942         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55943         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55944         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55945         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55946         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55947         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55948         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55949         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55950         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55951         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55952         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55953         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55954         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55955         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55956         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55957         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55958         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55959         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55960         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55961         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55962         * lib/float_.h: Likewise.
55963         * lib/inttypes_.h: Likewise.
55964         * lib/math_.h: Likewise.
55965         * lib/search_.h: Likewise.
55966         * lib/signal_.h: Likewise.
55967         * lib/stdint_.h: Likewise.
55968         * lib/stdio_.h: Likewise.
55969         * lib/stdlib_.h: Likewise.
55970         * lib/string_.h: Likewise.
55971         * lib/sys_stat_.h: Likewise.
55972         * lib/sys_time_.h: Likewise.
55973         * lib/time_.h: Likewise.
55974         * lib/unistd_.h: Likewise.
55975         * lib/wchar_.h: Likewise.
55976         * lib/wctype_.h: Likewise.
55977         * lib/dirent_.h: Likewise.
55978         * lib/iconv_.h: Likewise.
55979         * lib/locale_.h: Likewise.
55980         * lib/netinet_in_.h: Likewise.
55981         * lib/sys_select_.h: Likewise.
55982         * lib/sys_socket_.h: Likewise.
55983         * lib/sysexits_.h: Likewise.
55984         * modules/fcntl (Depends-on): Depend on include_next, not
55985         absolute_header.
55986         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55987         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55988         * modules/fchdir: Likewise.
55989         * modules/float: Likewise.
55990         * modules/iconv_open: Likewise.
55991         * modules/inttypes: Likewise.
55992         * modules/locale: Likewise.
55993         * modules/math: Likewise.
55994         * modules/netinet_in: Likewise.
55995         * modules/search: Likewise.
55996         * modules/signal: Likewise.
55997         * modules/stdint: Likewise.
55998         * modules/stdio: Likewise.
55999         * modules/stdlib: Likewise.
56000         * modules/string: Likewise.
56001         * modules/sys_select: Likewise.
56002         * modules/sys_socket: Likewise.
56003         * modules/sys_stat: Likewise.
56004         * modules/sys_time: Likewise.
56005         * modules/sysexits: Likewise.
56006         * modules/time: Likewise.
56007         * modules/unistd: Likewise.
56008         * modules/wchar: Likewise.
56009         * modules/wctype: Likewise.
56010         * modules/sys_stat: Change maintainer to "all".
56011         * modules/unistd: Likewise.
56012
56013 2007-06-20  Karl Berry  <karl@gnu.org>
56014
56015         * config/srclist.txt: track www changes in license files.
56016
56017 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
56018
56019         * build-aux/bootstrap: Remove stray dot.
56020         Make sure build_aux settings are honored when linking
56021         gnulib_extra_files.
56022
56023 2007-06-19  Eric Blake  <ebb9@byu.net>
56024
56025         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56026         Allow compilation on cygwin.
56027
56028 2007-06-19  Jim Meyering  <jim@meyering.net>
56029
56030         xreadlink-with-size: Remove module.  No longer used.
56031         Ex-callers now use xreadlink or mreadlink-with-size.
56032         * modules/xreadlink-with-size: Remove module.
56033         * lib/xreadlink-with-size.c: Remove file.
56034         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
56035         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
56036         just before the function definition *is* accurate.
56037
56038         Eliminate one way canonicalize_filename_mode could exit.
56039         * lib/canonicalize.c (canonicalize_filename_mode):
56040         Use mreadlink_with_size, not xreadlink_with_size.
56041
56042 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
56043
56044         Detect porting problems to FreeBSD/arm, which has time_t wider than
56045         long int.  Original problem reported for GNU diff by Xin Li in
56046         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
56047         * modules/getdate (Depends-on): Add intprops, verify.
56048         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
56049         is an integer type no wider than long int.
56050
56051 2007-06-18  Jim Meyering  <jim@meyering.net>
56052
56053         New module: mreadlink-with-size.
56054         * MODULES.html.sh: Add mreadlink-with-size.
56055         * modules/mreadlink-with-size: New module
56056         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
56057         not xreadlink-with-size.
56058         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
56059
56060 2007-06-16  Bruno Haible  <bruno@clisp.org>
56061
56062         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
56063         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
56064         Reported by Gary V. Vaughan <gary@gnu.org>.
56065
56066 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
56067
56068         Revamp lchown so that it lives in unistd.h where it belongs.
56069         * lib/lchown.h: Remove.
56070         * lib/dirchownmod.c: Don't include lib/lchown.h.
56071         * lib/fchownat.c: Likewise.
56072         * lib/openat.c: Likewise.
56073         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
56074         does not follow symlinks.
56075         (EOPNOTSUPP): Define if not defined.
56076         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
56077         is defined to 0.
56078         (lchown): New decl.
56079         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
56080         Do not check for lchown decl.
56081         Set REPLACE_LCHOWN.
56082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
56083         REPLACE_LCHOWN.
56084         * modules/chown: Make it clear it follows symlinks.
56085         * modules/lchown: Make it clear it doesn't follow symlinks.
56086         (Files): Remove lib/lchown.h
56087         (Depends-on): Add unistd.
56088         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
56089         (Include): Include <unistd.h>, not "lchown.h".
56090         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
56091         REPLACE_LCHOWN.
56092
56093 2007-06-15  Jim Meyering  <jim@meyering.net>
56094
56095         Change license (GPL to LGPL) of fsusage and dependents.
56096         * modules/fsusage (License): Change to LGPL.
56097         * modules/full-read (License): Likewise.
56098         * modules/full-write (License): Likewise.
56099         * modules/safe-read (License): Likewise.
56100         * modules/safe-write (License): Likewise.
56101
56102 2007-06-14  Ben Pfaff  <blp@gnu.org>
56103
56104         Missing part of allocsa -> malloca transition.
56105         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
56106         gl_MALLOCA.
56107
56108 2007-06-12  Bruno Haible  <bruno@clisp.org>
56109
56110         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
56111         to ia64, x86_64, i386.
56112         Reported by Eric Blake.
56113
56114 2007-06-12  Bruno Haible  <bruno@clisp.org>
56115
56116         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
56117         cross-compiling to x86_64.
56118
56119 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
56120
56121         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
56122         glitch reported by Ralf Wildenhues in
56123         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
56124
56125         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
56126         Vin Shelton.
56127
56128 2007-06-11  Bruno Haible  <bruno@clisp.org>
56129
56130         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
56131         replacement string.
56132         Reported by Eric Blake.
56133
56134 2007-06-10  Bruno Haible  <bruno@clisp.org>
56135
56136         Prepare vasnprintf code for use with Unicode strings.
56137         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
56138         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
56139         TYPE_U32_STRING.
56140         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
56141         a_u32_string variants.
56142         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
56143         * lib/printf-args.c: Don't include config.h and the specification
56144         header if PRINTF_FETCHARGS is already defined.
56145         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
56146         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
56147         TYPE_U16_STRING, TYPE_U32_STRING.
56148         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
56149         u16_directive, u16_directives, u32_directive, u32_directives): New
56150         types.
56151         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
56152         New declarations.
56153         * lib/printf-parse.c: Don't include config.h and the specification
56154         header if PRINTF_PARSE is already defined. Eliminate the set of
56155         parameters for WIDE_CHAR_VERSION; the user of this file must provide
56156         them now. Include c-ctype.h.
56157         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
56158         directive and CHAR_T_ONLY_ASCII.
56159         * lib/vasnprintf.c: Don't include config.h and the specification header
56160         if VASNPRINTF is already defined.
56161         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
56162         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
56163         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
56164         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
56165         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
56166         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
56167         code accordingly.
56168         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
56169         pad_ourselves also in this case, with the 'c' and 's' directives, and
56170         with a different notion of "width".
56171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
56172
56173 2007-06-10  Bruno Haible  <bruno@clisp.org>
56174
56175         * modules/unistr/u32-mbsnlen: New file.
56176         * lib/unistr/u32-mbsnlen.c: New file.
56177
56178         * modules/unistr/u16-mbsnlen: New file.
56179         * lib/unistr/u16-mbsnlen.c: New file.
56180
56181         * modules/unistr/u8-mbsnlen: New file.
56182         * lib/unistr/u8-mbsnlen.c: New file.
56183
56184         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
56185         declarations.
56186
56187 2007-06-10  Bruno Haible  <bruno@clisp.org>
56188
56189         * lib/string_.h (mbsnlen): New declaration.
56190         * lib/mbsnlen.c: New file.
56191         * m4/mbsnlen.m4: New file.
56192         * modules/mbsnlen: New file.
56193         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
56194         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
56195         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
56196
56197 2007-06-10  Bruno Haible  <bruno@clisp.org>
56198
56199         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
56200
56201 2007-06-10  Bruno Haible  <bruno@clisp.org>
56202
56203         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
56204         * lib/mbuiter.h: Likewise.
56205
56206 2007-06-10  Bruno Haible  <bruno@clisp.org>
56207
56208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
56209         declaration.
56210
56211 2007-06-10  Karl Berry  <karl@gnu.org>
56212
56213         * config/srclist.txt: remove gettext entries, Bruno prefers
56214         to update individually.
56215
56216 2007-06-10  Bruno Haible  <bruno@clisp.org>
56217
56218         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
56219         'maxlen'. Ensure only length + width bytes are allocated, not
56220         length + 1 + width.
56221
56222 2007-06-09  Bruno Haible  <bruno@clisp.org>
56223
56224         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
56225         (CHAR_T): Remove macro.
56226         (VASNPRINTF): Update.
56227
56228 2007-06-09  Bruno Haible  <bruno@clisp.org>
56229
56230         * MODULES.html.sh (Unicode string functions): Add the new modules.
56231
56232         * modules/uniconv/u32-conv-to-enc: New file.
56233         * lib/uniconv/u32-conv-to-enc.c: New file.
56234         * modules/uniconv/u32-conv-to-enc-tests: New file.
56235         * tests/uniconv/test-u32-conv-to-enc.c: New file.
56236
56237         * modules/uniconv/u16-conv-to-enc: New file.
56238         * lib/uniconv/u16-conv-to-enc.c: New file.
56239         * lib/uniconv/u-conv-to-enc.h: New file.
56240         * modules/uniconv/u16-conv-to-enc-tests: New file.
56241         * tests/uniconv/test-u16-conv-to-enc.c: New file.
56242
56243         * modules/uniconv/u8-conv-to-enc: New file.
56244         * lib/uniconv/u8-conv-to-enc.c: New file.
56245         * modules/uniconv/u8-conv-to-enc-tests: New file.
56246         * tests/uniconv/test-u8-conv-to-enc.c: New file.
56247
56248         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
56249         u32_conv_to_encoding): New declarations.
56250
56251 2007-06-09  Bruno Haible  <bruno@clisp.org>
56252
56253         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
56254
56255 2007-06-09  Bruno Haible  <bruno@clisp.org>
56256
56257         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
56258         * modules/malloca: Renamed from modules/allocsa, updated.
56259         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
56260         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
56261         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
56262         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
56263         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
56264         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
56265         * modules/xmalloca: Renamed from modules/xallocsa, updated.
56266         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
56267         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
56268         * modules/c-strcasestr (Depends-on): Update.
56269         * lib/c-strcasestr.c: Update.
56270         * modules/c-strstr (Depends-on): Update.
56271         * lib/c-strstr.c: Update.
56272         * modules/canonicalize-lgpl (Depends-on): Update.
56273         * lib/canonicalize-lgpl.c: Update.
56274         * modules/clean-temp (Depends-on): Update.
56275         * lib/clean-temp.c: Update.
56276         * modules/csharpcomp (Depends-on): Update.
56277         * lib/csharpcomp.c: Update.
56278         * modules/csharpexec (Depends-on): Update.
56279         * lib/csharpexec.c: Update.
56280         * modules/javacomp (Depends-on): Update.
56281         * lib/javacomp.c: Update.
56282         * modules/javaexec (Depends-on): Update.
56283         * lib/javaexec.c: Update.
56284         * modules/mbscasestr (Depends-on): Update.
56285         * lib/mbscasestr.c: Update.
56286         * modules/mbsstr (Depends-on): Update.
56287         * lib/mbsstr.c: Update.
56288         * modules/setenv (Depends-on): Update.
56289         * lib/setenv.c: Update.
56290         * modules/strcasestr (Depends-on): Update.
56291         * lib/strcasestr.c: Update.
56292         * modules/striconveha (Depends-on): Update.
56293         * lib/striconveha.c: Update.
56294         * modules/relocatable-prog-wrapper (Files): Update.
56295         * lib/relocwrapper.c: Update.
56296         * build-aux/install-reloc: Update.
56297         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
56298
56299 2007-06-08  Bruno Haible  <bruno@clisp.org>
56300
56301         Port to uClibc.
56302         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
56303         * lib/fpurge.c (fpurge): Likewise.
56304         * lib/freading.c (freading): Likewise.
56305         * lib/fseeko.c (rpl_fseeko): Likewise.
56306         * lib/fseterr.c (fseterr): Likewise.
56307         * lib/fwriting.c (fwriting): Likewise.
56308         * tests/test-fflush.c (main): Avoid a failure on uClibc.
56309
56310 2007-06-08  Bruno Haible  <bruno@clisp.org>
56311
56312         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
56313         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
56314         * modules/gettext (Files): Add m4/intlmacosx.m4.
56315
56316 2007-06-07  Bruno Haible  <bruno@clisp.org>
56317
56318         * modules/localename-tests: New file.
56319         * tests/test-localename.c: New file.
56320
56321         New module 'localename'.
56322         * lib/localename.h: New file.
56323         * lib/localename.c: New file, from GNU gettext.
56324         * m4/localename.m4: New file.
56325         * modules/localename: New file.
56326
56327 2007-06-07  Bruno Haible  <bruno@clisp.org>
56328
56329         Work around the lack of <wchar.h> on some builds of uClibc.
56330         * doc/headers/wchar.texi: Update.
56331         * lib/wchar_.h: Include <wchar.h> only if it exists.
56332         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
56333         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
56334         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
56335         doesn't exist.
56336         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
56337         * modules/mbfile (Depends-on): Add wchar.
56338         * modules/mbiter (Depends-on): Likewise.
56339         * modules/mbuiter (Depends-on): Likewise.
56340         Reported by Simon Josefsson.
56341
56342 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
56343
56344         Work around problem reported by Steven M. Schweda in
56345         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
56346         Tru64 5.1B with the Compaq compiler environment installed declares
56347         an 'isblank' function but does not define it in the C library.
56348         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
56349         * lib/regex_internal.h (isblank): Likewise.
56350         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
56351         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56352
56353 2007-06-05  Bruno Haible  <bruno@clisp.org>
56354
56355         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
56356         ia64.
56357         * modules/printf-safe: New file.
56358         * modules/fprintf-posix (Depends-on): Add printf-safe.
56359         * modules/printf-posix (Depends-on): Likewise.
56360         * modules/snprintf-posix (Depends-on): Likewise.
56361         * modules/sprintf-posix (Depends-on): Likewise.
56362         * modules/vasnprintf-posix (Depends-on): Likewise.
56363         * modules/vasprintf-posix (Depends-on): Likewise.
56364         * modules/vfprintf-posix (Depends-on): Likewise.
56365         * modules/vprintf-posix (Depends-on): Likewise.
56366         * modules/vsnprintf-posix (Depends-on): Likewise.
56367         * modules/vsprintf-posix (Depends-on): Likewise.
56368         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
56369         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
56370         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
56371         "no" on i386, x86_64, ia64.
56372         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
56373         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56374         on i386, x86_64, ia64.
56375         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
56376         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56377         on i386, x86_64, ia64.
56378         * tests/test-vasnprintf-posix.c: Include float.h.
56379         (LDBL80_WORDS): New macro.
56380         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56381         on i386, x86_64, ia64.
56382         * tests/test-vasprintf-posix.c: Include float.h.
56383         (LDBL80_WORDS): New macro.
56384         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56385         on i386, x86_64, ia64.
56386         * tests/test-snprintf-posix.c: Include float.h.
56387         * tests/test-sprintf-posix.c: Likewise.
56388         * tests/test-vsnprintf-posix.c: Likewise.
56389         * tests/test-vsprintf-posix.c: Likewise.
56390
56391 2007-06-05  Bruno Haible  <bruno@clisp.org>
56392
56393         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
56394         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
56395         non-IEEE numbers on i386, x86_64, ia64.
56396         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
56397         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
56398         * tests/test-isnanl.h: Include float.h.
56399         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
56400
56401 2007-06-05  Bruno Haible  <bruno@clisp.org>
56402
56403         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
56404         also the %a / %A. Handle the %a / %A code before this extra handling.
56405
56406 2007-06-05  Bruno Haible  <bruno@clisp.org>
56407
56408         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
56409         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
56410
56411 2007-06-05  Bruno Haible  <bruno@clisp.org>
56412
56413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
56414         typo in variable name.
56415
56416 2007-06-05  Eric Blake  <ebb9@byu.net>
56417
56418         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
56419         Reported by Simon Josefsson.
56420
56421 2007-06-04  Bruno Haible  <bruno@clisp.org>
56422
56423         Avoid test failures on some PowerPC platforms.
56424         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
56425         Define differently for PowerPC.
56426         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
56427         Reported by Gary V. Vaughan <gary@gnu.org>.
56428
56429 2007-06-02  Bruno Haible  <bruno@clisp.org>
56430
56431         Fix test-stdint failure on FreeBSD/ia64.
56432         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
56433         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
56434         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
56435         * doc/headers/stdint.texi: Update.
56436
56437 2007-06-01  Bruno Haible  <bruno@clisp.org>
56438
56439         * tests/test-binary-io.c (main): Pass a third argument to open().
56440         Reported by Gary V. Vaughan <gary@gnu.org>.
56441
56442 2007-06-01  Bruno Haible  <bruno@clisp.org>
56443
56444         * doc/functions/frexpl.texi: Update for mingw.
56445
56446 2007-06-01  Bruno Haible  <bruno@clisp.org>
56447
56448         * tests/test-lseek.c (main): Disable test of errno for invalid third
56449         argument.
56450         * doc/functions/lseek.texi: Update.
56451         Reported by Gary V. Vaughan <gary@gnu.org>.
56452
56453 2007-05-28  Bruno Haible  <bruno@clisp.org>
56454
56455         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
56456
56457 2007-05-31  Eric Blake  <ebb9@byu.net>
56458
56459         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
56460         cross compiling.
56461
56462 2007-05-30  Eric Blake  <ebb9@byu.net>
56463         and Bruno Haible  <bruno@clisp.org>
56464
56465         Work around mingw test failures exposed by m4-1.4.9b.
56466         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
56467         * tests/test-unistd.c: Disable uid_t and git_t tests for the
56468         moment.
56469
56470 2007-05-30  Bruno Haible  <bruno@clisp.org>
56471
56472         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
56473         assuming that they are closed. Needed on HP-UX 11.
56474
56475 2007-05-29  Bruno Haible  <bruno@clisp.org>
56476
56477         Fix a problem with #include_next.
56478         * lib/dirent_.h: Split the double-inclusion guard.
56479         * lib/fcntl_.h: Likewise.
56480         * lib/float_.h: Likewise.
56481         * lib/iconv_.h: Likewise.
56482         * lib/inttypes_.h: Likewise.
56483         * lib/locale_.h: Likewise.
56484         * lib/math_.h: Likewise.
56485         * lib/netinet_in_.h: Likewise.
56486         * lib/search_.h: Likewise.
56487         * lib/signal_.h: Likewise.
56488         * lib/stdint_.h: Likewise.
56489         * lib/stdio_.h: Likewise.
56490         * lib/stdlib_.h: Likewise.
56491         * lib/string_.h: Likewise.
56492         * lib/sys_select_.h: Likewise.
56493         * lib/sys_socket_.h: Likewise.
56494         * lib/sys_stat_.h: Likewise.
56495         * lib/sys_time_.h: Likewise.
56496         * lib/sysexits_.h: Likewise.
56497         * lib/time_.h: Likewise.
56498         * lib/unistd_.h: Likewise.
56499         * lib/wchar_.h: Likewise.
56500         * lib/wctype_.h: Likewise.
56501
56502 2007-05-29  Bruno Haible  <bruno@clisp.org>
56503
56504         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
56505         for the moment.
56506
56507 2007-05-29  Bruno Haible  <bruno@clisp.org>
56508
56509         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
56510         invocation.
56511         Reported by Eric Blake.
56512
56513 2007-05-29  Bruno Haible  <bruno@clisp.org>
56514
56515         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
56516         compiling case.
56517
56518 2007-05-29  Eric Blake  <ebb9@byu.net>
56519             Bruno Haible  <bruno@clisp.org>
56520
56521         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
56522         cross compiles.
56523
56524 2007-05-28  Eric Blake  <ebb9@byu.net>
56525
56526         * modules/closein-tests (test_closein_LDADD): Support test on
56527         cygwin with libtool.
56528
56529 2007-05-28  Bruno Haible  <bruno@clisp.org>
56530
56531         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
56532         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56533         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56534         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56535         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56536         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56537         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56538         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56539         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56540
56541 2007-05-28  Eric Blake  <ebb9@byu.net>
56542
56543         Unconditionally include <config.h> in unit tests.
56544         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
56545         * tests/test-allocsa.c, tests/test-arcfour.c,
56546         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
56547         tests/test-array_list.c, tests/test-array_oset.c,
56548         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
56549         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
56550         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
56551         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
56552         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
56553         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
56554         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
56555         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
56556         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
56557         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
56558         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
56559         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
56560         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
56561         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
56562         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
56563         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
56564         test-md5.c, test-memmem.c, test-printf-posix.c,
56565         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
56566         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
56567         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
56568         test-strcasestr.c, test-striconv.c, test-striconveh.c,
56569         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
56570         test-vasnprintf-posix2.c, test-vasnprintf.c,
56571         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
56572         test-vfprintf-posix.c, test-vprintf-posix.c,
56573         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
56574         test-xvasprintf.c: Likewise.
56575
56576 2007-05-28  Bruno Haible  <bruno@clisp.org>
56577
56578         * gnulib-tool (func_import): Remember the --with-tests command-line
56579         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
56580         Reported by Eric Blake.
56581
56582 2007-05-28  Bruno Haible  <bruno@clisp.org>
56583
56584         * modules/ftell-tests: New file.
56585         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
56586         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
56587
56588         * lib/ftell.c: New file.
56589         * modules/ftell: New file.
56590         * m4/ftell.m4: New file.
56591         * doc/functions/ftell.texi: Update.
56592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
56593         REPLACE_FTELL.
56594         * lib/stdio_.h (rpl_ftell): New declaration.
56595         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
56596         REPLACE_FTELL.
56597
56598 2007-05-28  Eric Blake  <ebb9@byu.net>
56599
56600         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
56601
56602 2007-05-28  Bruno Haible  <bruno@clisp.org>
56603
56604         * modules/fseek-tests: New file.
56605         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
56606         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
56607
56608         * lib/fseek.c: New file.
56609         * modules/fseek: New file.
56610         * m4/fseek.m4: New file.
56611         * doc/functions/fseek.texi: Update.
56612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
56613         REPLACE_FSEEK.
56614         * lib/stdio_.h (rpl_fseek): New declaration.
56615         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
56616         REPLACE_FSEEK.
56617
56618 2007-05-28  Bruno Haible  <bruno@clisp.org>
56619
56620         * lib/stdio_.h (fflush): More comments.
56621
56622 2007-05-28  Bruno Haible  <bruno@clisp.org>
56623
56624         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
56625         runtime test.
56626
56627 2007-05-28  Eric Blake  <ebb9@byu.net>
56628
56629         Improve lseek module.
56630         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
56631         * lib/unistd_.h (lseek): Scale back link warning message.
56632         * tests/test-lseek.c: Beef up test.
56633         * tests/test-lseek.sh: Exercise more facets of lseek.
56634         Reported by Bruno Haible.
56635
56636 2007-05-28  Bruno Haible  <bruno@clisp.org>
56637
56638         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
56639         to define.
56640
56641 2007-05-27  Bruno Haible  <bruno@clisp.org>
56642
56643         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
56644
56645 2007-05-27  Bruno Haible  <bruno@clisp.org>
56646
56647         * modules/openmp: New file.
56648         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
56649         Noah Misch.
56650
56651 2007-05-26  Bruno Haible  <bruno@clisp.org>
56652
56653         * modules/chdir-long (Depends-on): Add fchdir.
56654         * modules/chdir-safer (Depends-on): Likewise.
56655         * modules/fts (Depends-on): Likewise.
56656         * modules/fts-lgpl (Depends-on): Likewise.
56657         * modules/openat (Depends-on): Likewise.
56658         * modules/savewd (Depends-on): Likewise.
56659
56660 2007-05-24  Eric Blake  <ebb9@byu.net>
56661
56662         Fix lseek on mingw.
56663         * modules/lseek: New module.
56664         * m4/lseek.m4: New file.
56665         * lib/lseek.c: New file.
56666         * modules/lseek-tests: New file.
56667         * tests/test-lseek.c: New file.
56668         * tests/test-lseek.sh: New file.
56669         * MODULES.html.sh: Document lseek module.
56670         * modules/fflush (Depends-on): Add lseek, fseeko.
56671         * modules/fseeko (Depends-on): Likewise.
56672         * modules/ftello (Depends-on): Likewise.
56673         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
56674         broken.
56675         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
56676         broken.
56677         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
56678         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
56679         * lib/ftello.c (rpl_ftello): Likewise.
56680         * tests/test-fseeko.c (main): Test this.
56681         * tests/test-fseeko.sh: Likewise.
56682         * tests/test-ftello.c (main): Likewise.
56683         * tests/test-ftello.sh: Likewise.
56684         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
56685         implies replacing fseek.
56686         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
56687         HAVE_FTELLO.
56688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
56689         * modules/unistd (Makefile.am): Likewise.
56690         * lib/unistd_.h (lseek): Declare a replacement.
56691         * doc/functions/lseek.texi (lseek): Document this fix.
56692         * doc/functions/fseek.texi (fseek): Likewise.
56693         * doc/functions/ftell.texi (ftell): Likewise.
56694
56695 2007-05-24  Bruno Haible  <bruno@clisp.org>
56696
56697         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
56698         in the printed representation of a NaN.
56699         * tests/test-vasprintf-posix.c (test_function): Likewise.
56700         * tests/test-snprintf-posix.h (test_function): Likewise.
56701         * tests/test-sprintf-posix.h (test_function): Likewise.
56702         Reported by Eric Blake.
56703
56704 2007-05-23  Eric Blake  <ebb9@byu.net>
56705
56706         Fix fseeko/ftello on cygwin 1.5.24.
56707         * doc/functions/fseeko.texi (fseeko): Document the fix.
56708         * doc/functions/ftello.texi (ftello): Document the fix.
56709         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
56710         * doc/functions/stdout.text (stdout): New file.
56711         * doc/functions/stderr.text (stderr): New file.
56712         * doc/gnulib.texi (Function Substitutes): Use new files.
56713         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
56714         prior to 1.7.0.
56715         * tests/test-ftello.c (main): Likewise for ftello.
56716         * tests/test-fseeko.sh: New file.
56717         * tests/test-ftello.sh: New file.
56718         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
56719         with seekable stdin.
56720         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
56721         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
56722         (gl_REPLACE_FSEEKO): New macro.
56723         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
56724         * modules/fseeko (Files): Distribute fseeko.c.
56725         * modules/ftello (Files): Distribute ftello.c.
56726         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
56727         mode.
56728         * lib/ftello.c (rpl_ftello): New file.
56729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
56730         fseeko, ftello.
56731         (gl_STDIN_LARGE_OFFSET): New macro.
56732         * modules/stdio (Makefile.am): Perform the replacement.
56733         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
56734
56735 2007-05-23  Bruno Haible  <bruno@clisp.org>
56736
56737         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
56738         GNULIB_POSIXCHECK is defined.
56739
56740 2007-05-21  Bruno Haible  <bruno@clisp.org>
56741
56742         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
56743         Check also the output for NaN arguments. When cross-compiling, guess
56744         no on IRIX.
56745         * lib/vasnprintf.c: Update comments.
56746         * tests/test-vasnprintf-posix.c (strisnan): New function.
56747         (test_function): Use it.
56748         * tests/test-vasprintf-posix.c (strisnan): New function.
56749         (test_function): Use it.
56750         * tests/test-snprintf-posix.h (strisnan): New function.
56751         (test_function): Use it.
56752         * tests/test-sprintf-posix.h (strisnan): New function.
56753         (test_function): Use it.
56754         Reported by Eric Blake.
56755
56756 2007-05-20  Bruno Haible  <bruno@clisp.org>
56757
56758         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
56759         numbers that fails on BeOS.
56760         * doc/functions/frexpl.texi: Update.
56761
56762 2007-05-20  Jim Meyering  <jim@meyering.net>
56763
56764         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
56765         forced upon us by glibc-2.6.
56766
56767 2007-05-20  Bruno Haible  <bruno@clisp.org>
56768
56769         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
56770         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
56771         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
56772         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
56773         NEED_PRINTF_INFINITE.
56774         (is_infinitel): New function.
56775         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
56776         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
56777         gl_PREREQ_VASNPRINTF_INFINITE.
56778         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
56779         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56780         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
56781         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
56782         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
56783         gl_PREREQ_VASNPRINTF_INFINITE.
56784         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56785         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56786         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56787         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56788         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56789         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56790         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56791         * doc/functions/fprintf.texi: Update.
56792         * doc/functions/printf.texi: Update.
56793         * doc/functions/snprintf.texi: Update.
56794         * doc/functions/sprintf.texi: Update.
56795         * doc/functions/vfprintf.texi: Update.
56796         * doc/functions/vprintf.texi: Update.
56797         * doc/functions/vsnprintf.texi: Update.
56798         * doc/functions/vsprintf.texi: Update.
56799
56800 2007-05-20  Bruno Haible  <bruno@clisp.org>
56801
56802         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56803         was not found in libc.
56804         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56805
56806 2007-05-20  Bruno Haible  <bruno@clisp.org>
56807
56808         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56809         printed as "-nan" instead of "nan".
56810         * tests/test-vasprintf-posix.c (test_function): Likewise.
56811         * tests/test-snprintf-posix.h (test_function): Likewise.
56812         * tests/test-sprintf-posix.h (test_function): Likewise.
56813         Needed for HP-UX 11.
56814
56815 2007-05-20  Jim Meyering  <jim@meyering.net>
56816
56817         Fix buggy test for the fchownat-deref bug.
56818         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56819         symlink required for the run-test.  Without it, this test would
56820         always declare that fchownat doesn't work, and client code would
56821         unnecessarily use the replacement function with fixed libc.
56822         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
56823         Reported by Greg Schafer.
56824
56825 2007-05-19  Bruno Haible  <bruno@clisp.org>
56826
56827         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
56828         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
56829         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
56830         Needed for IRIX 6.5 and Solaris 2.5.1.
56831
56832 2007-05-19  Bruno Haible  <bruno@clisp.org>
56833
56834         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
56835         (test_function): Skip tests involving -0.0 on platforms where
56836         -0.0 = 0.0.
56837         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
56838         (test_function): Skip tests involving -0.0 on platforms where
56839         -0.0 = 0.0.
56840         * tests/test-snprintf-posix.h (have_minus_zero): New function.
56841         (test_function): Skip tests involving -0.0 on platforms where
56842         -0.0 = 0.0.
56843         * tests/test-sprintf-posix.h (have_minus_zero): New function.
56844         (test_function): Skip tests involving -0.0 on platforms where
56845         -0.0 = 0.0.
56846         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
56847         tests.
56848         * tests/test-printf-posix.h (test_function): Likewise.
56849         * tests/test-printf-posix.output: Remove all -0.0 related results.
56850         Needed for IRIX 6.5.
56851
56852 2007-05-19  Bruno Haible  <bruno@clisp.org>
56853
56854         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56855         printed as "nan0x7fffffff" instead of "nan".
56856         * tests/test-vasprintf-posix.c (test_function): Likewise.
56857         * tests/test-snprintf-posix.h (test_function): Likewise.
56858         * tests/test-sprintf-posix.h (test_function): Likewise.
56859         * tests/test-fprintf-posix.h (NaN): Remove macro.
56860         (test_function): Remove all NaN related tests.
56861         * tests/test-printf-posix.h (NaN): Remove macro.
56862         (test_function): Remove all NaN related tests.
56863         * tests/test-printf-posix.output: Remove all NaN related results.
56864         Needed for IRIX 6.5.
56865
56866 2007-05-19  Bruno Haible  <bruno@clisp.org>
56867
56868         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
56869         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
56870
56871 2007-05-19  Bruno Haible  <bruno@clisp.org>
56872
56873         * lib/float_.h: New file.
56874         * m4/float_h.m4: New file.
56875         * modules/float: New file.
56876         * modules/isnanl (Dependencies): Add float.
56877         * modules/isnanl-nolibm (Dependencies): Likewise.
56878         * modules/mathl (Dependencies): Likewise.
56879         * modules/printf-frexpl (Dependencies): Likewise.
56880         * modules/signbit (Dependencies): Likewise.
56881         * modules/vasnprintf (Dependencies): Likewise.
56882         * doc/headers/float.texi: Update.
56883
56884 2007-05-19  Jim Meyering  <jim@meyering.net>
56885
56886         * lib/utimens.c (gl_futimens): Rename from futimens,
56887         now that glibc-2.6 declares futimens.
56888         * lib/utimens.h: Likewise.
56889
56890 2007-05-19  Bruno Haible  <bruno@clisp.org>
56891
56892         Avoid test failures on mingw.
56893         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56894         * tests/test-printf-posix.sh: Likewise.
56895         * tests/test-vfprintf-posix.sh: Likewise.
56896         * tests/test-vprintf-posix.sh: Likewise.
56897
56898 2007-05-19  Bruno Haible  <bruno@clisp.org>
56899
56900         Fix *printf result for NaN, Inf, -0.0 on mingw.
56901         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56902         * lib/vasnprintf.c: Include math.h and isnan.h.
56903         (is_infinite_or_zero): New function.
56904         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56905         values in the %f, %F, %e, %E, %g, %G directives.
56906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56907         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56908         gl_PRINTF_INFINITE and test its result. Invoke
56909         gl_PREREQ_VASNPRINTF_INFINITE.
56910         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56911         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56912         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56913         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56914         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56915         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56916         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56917         * doc/functions/fprintf.texi: Update.
56918         * doc/functions/printf.texi: Update.
56919         * doc/functions/snprintf.texi: Update.
56920         * doc/functions/sprintf.texi: Update.
56921         * doc/functions/vfprintf.texi: Update.
56922         * doc/functions/vprintf.texi: Update.
56923         * doc/functions/vsnprintf.texi: Update.
56924         * doc/functions/vsprintf.texi: Update.
56925
56926 2007-05-19  Bruno Haible  <bruno@clisp.org>
56927
56928         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56929         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56930         Instead of multiplying with 10^k, set extra_zeroes to k.
56931         (scale10_round_long_double): Remove function.
56932
56933 2007-05-18  Bruno Haible  <bruno@clisp.org>
56934
56935         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56936         introduced on 2007-05-06.
56937
56938 2007-05-18  Bruno Haible  <bruno@clisp.org>
56939
56940         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56941         %g directives.
56942         * tests/test-vasprintf-posix.c (test_function): Likewise.
56943         * tests/test-snprintf-posix.h (test_function): Likewise.
56944         * tests/test-sprintf-posix.h (test_function): Likewise.
56945
56946 2007-05-18  Bruno Haible  <bruno@clisp.org>
56947
56948         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56949         (strmatch): New function.
56950         (test_function): Test the %f directive on numbers of various exponents.
56951         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56952         (strmatch): New function.
56953         (test_function): Test the %f directive on numbers of various exponents.
56954         * tests/test-snprintf-posix.h (strmatch): New function.
56955         (test_function): Test the %f directive on numbers of various exponents.
56956         * tests/test-sprintf-posix.h (strmatch): New function.
56957         (test_function): Test the %f directive on numbers of various exponents.
56958         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56959         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56960         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56961         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56962
56963 2007-05-18  Bruno Haible  <bruno@clisp.org>
56964
56965         Add support for 'long double' number output.
56966         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56967         * lib/vasnprintf.c: Include math.h and float+.h.
56968         (mp_limb_t): New type.
56969         (GMP_LIMB_BITS): New macro.
56970         (mp_twolimb_t): New type.
56971         (GMP_TWOLIMB_BITS): New macro.
56972         (mpn_t): New type.
56973         (multiply, divide, convert_to_decimal, decode_long_double,
56974         scale10_round_long_double, scale10_round_decimal_long_double,
56975         floorlog10l): New functions.
56976         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56977         for the %f, %F, %e, %E, %g, %G directives.
56978         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56980         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56981         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56982         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56983         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56984         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56985         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56986         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56987         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56988         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56989         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56990         * modules/snprintf-posix (Depends-on): Likewise.
56991         * modules/sprintf-posix (Depends-on): Likewise.
56992         * modules/vasnprintf-posix (Depends-on): Likewise.
56993         * modules/vasprintf-posix (Depends-on): Likewise.
56994         * modules/vfprintf-posix (Depends-on): Likewise.
56995         * modules/vsnprintf-posix (Depends-on): Likewise.
56996         * modules/vsprintf-posix (Depends-on): Likewise.
56997         * modules/vasnprintf (Files): Add lib/float+.h.
56998         * doc/functions/fprintf.texi: Update.
56999         * doc/functions/printf.texi: Update.
57000         * doc/functions/snprintf.texi: Update.
57001         * doc/functions/sprintf.texi: Update.
57002         * doc/functions/vfprintf.texi: Update.
57003         * doc/functions/vprintf.texi: Update.
57004         * doc/functions/vsnprintf.texi: Update.
57005         * doc/functions/vsprintf.texi: Update.
57006
57007 2007-05-18  Bruno Haible  <bruno@clisp.org>
57008
57009         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
57010
57011 2007-05-18  Bruno Haible  <bruno@clisp.org>
57012
57013         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
57014         for printing 64-bit integers. Needed for mingw.
57015
57016 2007-05-18  Bruno Haible  <bruno@clisp.org>
57017
57018         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57019         gl_FUNC_FREXPL_WORKS.
57020         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
57021
57022 2007-05-18  Bruno Haible  <bruno@clisp.org>
57023
57024         * modules/frexpl-nolibm-tests: New file.
57025
57026         * modules/frexpl-nolibm: New file.
57027         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
57028
57029 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
57030
57031         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
57032         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57033         GCC 4.2, which otherwise issues a lot of warnings.
57034         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
57035         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
57036         Likewise.
57037         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
57038         * modules/iconv_open (iconv.h): Likewise.
57039         * modules/locale (locale.h): Likewise.
57040         * modules/netinet_in (netinet/in.h): Likewise.
57041         * modules/sys_select (sys_select.h): Likewise.
57042         * modules/sys_socket (sys/socket.h): Likewise.
57043         * modules/sys_stat (sys/stat.h): Likewise.
57044         * modules/sysexits (sysexits.h): Likewise.
57045         * modules/unistd (unistd.h): Likewise.
57046
57047 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57048
57049         * modules/closein-tests (Makefile.am): Distribute
57050         `test-closein.sh'.
57051
57052 2007-05-17  Bruno Haible  <bruno@clisp.org>
57053
57054         * tests/test-printf-posix.output: Renamed from
57055         tests/test-fprintf-posix.out.
57056         * modules/fprintf-posix-tests: Update.
57057         * modules/printf-posix-tests: Update.
57058         * modules/vfprintf-posix-tests: Update.
57059         * modules/vprintf-posix-tests: Update.
57060         * tests/test-fprintf-posix.sh: Update.
57061         * tests/test-printf-posix.sh: Update.
57062         * tests/test-vfprintf-posix.sh: Update.
57063         * tests/test-vprintf-posix.sh: Update.
57064         Reported by Ralf Wildenhues.
57065
57066 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
57067
57068         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
57069         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57070         GCC 4.2, which otherwise issues a lot of warnings.
57071         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
57072         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
57073         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
57074         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
57075         it should no longer be needed.
57076         * lib/string_.h: Likewise.
57077         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
57078         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
57079         * modules/inttypes (inttypes.h): Likewise.
57080         * modules/math (math.h): Likewise.
57081         * modules/search (search.h): Likewise.
57082         * modules/signal (signal.h): Likewise.
57083         * modules/stdint (stdint.h): Likewise.
57084         * modules/stdio (stdio.h): Likewise.
57085         * modules/stdlib (stdlib.h): Likewise.
57086         * modules/string (string.h): Likewise.
57087         * modules/sys_time (sys/time.h): Likewise.
57088         * modules/time (time.h): Likewise.
57089         * modules/wchar (wchar.h): Likewise.
57090         * modules/wctype (wtype.h): Likewise.
57091
57092 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57093
57094         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
57095
57096 2007-05-13  Bruno Haible  <bruno@clisp.org>
57097
57098         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
57099         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57100         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
57101         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57102         (gl_PREREQ_STRTOK_R): Don't require it here.
57103
57104 2007-05-13  Bruno Haible  <bruno@clisp.org>
57105
57106         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
57107         when used in C++ mode.
57108
57109 2007-05-12  Bruno Haible  <bruno@clisp.org>
57110
57111         * lib/linebuffer.h: Tweak doc.
57112         * lib/linebuffer.c: Likewise.
57113
57114 2007-05-12  James Youngman  <jay@gnu.org>
57115
57116         * lib/linebuffer.c (readlinebuffer_delim): New function,
57117         like readlinebuffer, but use a caller-specified delimiter.
57118         (readlinebuffer): Just call readlinebuffer_delim with '\n'
57119         as the delimiter.
57120         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
57121
57122 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57123
57124         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
57125         * modules/openat (Files): Remove openat-die.c.
57126         (Depends-on): Add openat-die.
57127         * modules/openat-die: New module.
57128
57129 2007-05-06  Bruno Haible  <bruno@clisp.org>
57130
57131         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
57132         Update with info about Cygwin.
57133         * doc/functions/fprintf.texi: Update.
57134         * doc/functions/printf.texi: Update.
57135         * doc/functions/snprintf.texi: Update.
57136         * doc/functions/sprintf.texi: Update.
57137         * doc/functions/vfprintf.texi: Update.
57138         * doc/functions/vprintf.texi: Update.
57139         * doc/functions/vsnprintf.texi: Update.
57140         * doc/functions/vsprintf.texi: Update.
57141         Reported by Eric Blake.
57142
57143 2007-05-06  Bruno Haible  <bruno@clisp.org>
57144
57145         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
57146         padding ourselves for the floating-point directives.
57147         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
57148         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
57149         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57150         gl_PRINTF_FLAG_ZERO and test its result. Invoke
57151         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
57152         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57153         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
57154         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57155         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57156         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57157         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57158         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57159         * tests/test-snprintf-posix.h (test_function): Also check the width
57160         and some flags in the %f directive.
57161         * tests/test-sprintf-posix.h (test_function): Likewise.
57162         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57163         * tests/test-vasprintf-posix.c (test_function): Likewise.
57164         * doc/functions/fprintf.texi: Update.
57165         * doc/functions/printf.texi: Update.
57166         * doc/functions/snprintf.texi: Update.
57167         * doc/functions/sprintf.texi: Update.
57168         * doc/functions/vfprintf.texi: Update.
57169         * doc/functions/vprintf.texi: Update.
57170         * doc/functions/vsnprintf.texi: Update.
57171         * doc/functions/vsprintf.texi: Update.
57172
57173 2007-05-06  Bruno Haible  <bruno@clisp.org>
57174
57175         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
57176         pass the ' flag character to sprintf or snprintf.
57177         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
57178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
57179         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57180         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
57181         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
57182         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57183         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
57184         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57185         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57186         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57188         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57189         * tests/test-snprintf-posix.h (test_function): Also check the grouping
57190         flag.
57191         * tests/test-sprintf-posix.h (test_function): Likewise.
57192         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57193         * tests/test-vasprintf-posix.c (test_function): Likewise.
57194         * doc/functions/fprintf.texi: Update.
57195         * doc/functions/printf.texi: Update.
57196         * doc/functions/snprintf.texi: Update.
57197         * doc/functions/sprintf.texi: Update.
57198         * doc/functions/vfprintf.texi: Update.
57199         * doc/functions/vprintf.texi: Update.
57200         * doc/functions/vsnprintf.texi: Update.
57201         * doc/functions/vsprintf.texi: Update.
57202
57203 2007-05-01  Bruno Haible  <bruno@clisp.org>
57204
57205         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
57206
57207 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
57208
57209         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
57210         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
57211
57212 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57213
57214         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
57215         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
57216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
57217
57218 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
57219
57220         * lib/argp-help.c (struct hol_entry): New member `ord'.
57221         (HOL_ENTRY_PTRCMP): Use ord for comparison
57222         (hol_sort): Initialize ord.
57223
57224 2007-05-01  Bruno Haible  <bruno@clisp.org>
57225
57226         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
57227         Reported by Eric Blake.
57228         * doc/gnulib.texi (Function Substitutes): Update.
57229
57230 2007-05-01  Bruno Haible  <bruno@clisp.org>
57231
57232         * doc/functions.texi: Remove file, now redundant through
57233         doc/functions/*.texi.
57234
57235 2007-05-01  Bruno Haible  <bruno@clisp.org>
57236
57237         * modules/argp (Depends-on): Add sleep.
57238
57239 2007-05-01  Bruno Haible  <bruno@clisp.org>
57240
57241         * modules/sleep-tests: New file.
57242         * tests/test-sleep.c: New file.
57243
57244         * modules/sleep: New file.
57245         * lib/sleep.c: New file.
57246         * m4/sleep.m4: New file.
57247         * lib/unistd_.h (sleep): New declaration.
57248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
57249         HAVE_SLEEP.
57250         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
57251         * doc/functions/sleep.texi: Document the sleep module.
57252
57253 2007-05-01  Bruno Haible  <bruno@clisp.org>
57254
57255         * lib/sigprocmask.h: Remove file.
57256         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
57257         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
57258         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
57259         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
57260         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
57261         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
57262         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
57263         HAVE_SIGSET_T as a shell variable.
57264         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
57265         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
57266         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
57267         (Depends-on): Add signal. Remove verify.
57268         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
57269         (Include): Mention <signal.h> instead of sigprocmask.h.
57270         * NEWS: Mention the change.
57271         * lib/fatal-signal.c: Don't include sigprocmask.h.
57272
57273 2007-05-01  Bruno Haible  <bruno@clisp.org>
57274
57275         * modules/signal: New file.
57276         * lib/signal_.h: New file.
57277         * m4/signal_h.m4: New file.
57278
57279 2007-05-01  Bruno Haible  <bruno@clisp.org>
57280
57281         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
57282         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
57283         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
57284         HAVE_WCTYPE_CTMP_BUG into wctype.h.
57285
57286 2007-05-01  Bruno Haible  <bruno@clisp.org>
57287
57288         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
57289         configure time.
57290         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
57291         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
57292         * modules/sys_stat (Makefile.am): Substitute their values into
57293         sys/stat.h.
57294
57295 2007-05-01  Bruno Haible  <bruno@clisp.org>
57296
57297         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
57298         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
57299         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
57300
57301 2007-05-01  Bruno Haible  <bruno@clisp.org>
57302
57303         * doc/header/assert.texi: Undo last change: don't mention the gnulib
57304         'assert' module here.
57305
57306 2007-05-01  Bruno Haible  <bruno@clisp.org>
57307
57308         * doc/functions/*.texi: New files.
57309         * doc/functions/google-ranking.txt: New file.
57310         * doc/gnulib.texi (Function Substitutes): New chapter.
57311         (ctime, inet_ntoa): Remove sections.
57312         * doc/ctime.texi: Remove file.
57313         * doc/inet_ntoa.texi: Remove file.
57314         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
57315         dependencies.
57316         (%.info): New rule, specifying a --reference-limit.
57317
57318 2007-05-01  Bruno Haible  <bruno@clisp.org>
57319
57320         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
57321
57322 2007-05-01  Bruno Haible  <bruno@clisp.org>
57323
57324         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
57325         the portability of 'mkdir' to mingw systems.
57326
57327 2007-05-01  Bruno Haible  <bruno@clisp.org>
57328
57329         * doc/headers/google-ranking.txt: New file.
57330
57331 2007-04-30  Eric Blake  <ebb9@byu.net>
57332
57333         Prefer fseeko to fseek.
57334         * modules/getpass (Depends-on): Add fseeko.
57335         * lib/getpass.c (getpass): Use fseeko, not fseek.
57336
57337 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
57338
57339         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
57340         assumes the sorting is stable, while most qsort implementations
57341         are not.  Use argument addresses to ensure they never compare as
57342         equal.
57343
57344         * tests/test-argp-2.sh (usage-indent test): Fix output
57345         (func_compare): Restore diff options
57346         * tests/test-argp.c: Restore #include "progname.h"
57347
57348 2007-04-29  Bruno Haible  <bruno@clisp.org>
57349
57350         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
57351         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57352         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
57353         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57354         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
57355         (configure.ac): Define CHECK_SNPRINTF_POSIX.
57356         (TESTS, check_PROGRAMS): Add test-snprintf.
57357         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
57358         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
57359         (TESTS, check_PROGRAMS): Add test-vsnprintf.
57360         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
57361         assertions that fail on HP-UX, OSF/1, or IRIX.
57362         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
57363
57364 2007-04-29  Bruno Haible  <bruno@clisp.org>
57365
57366         * MODULES.html.sh (posix_functions): Remove 'contents'.
57367
57368 2007-04-29  Karl Berry  <karl@gnu.org>
57369
57370         * config/srclist.txt (gendocs_template_min): new entry.
57371
57372 2007-04-29  Bruno Haible  <bruno@clisp.org>
57373
57374         Work around fpurge bug on BSD systems.
57375         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
57376         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
57377         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
57378         fpurge to rpl_fpurge if the system already has this function.
57379         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
57380         the case where the system already has this function. Correct invariants
57381         on BSD systems.
57382         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
57383         BSD systems.
57384
57385 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57386
57387         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
57388         proposed by Sven Verdoolaege.
57389
57390         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
57391         options.
57392         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
57393         (usage and help tests): Update
57394
57395 2007-04-29  Bruno Haible  <bruno@clisp.org>
57396
57397         * tests/test-fflush.c (main): Use a file of size 17, not 10.
57398         Print more information in case of failure. Disable a test on BeOS.
57399
57400 2007-04-29  Bruno Haible  <bruno@clisp.org>
57401
57402         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
57403         This helps debugging on systems on which no gdb is available.
57404
57405 2007-04-29  Bruno Haible  <bruno@clisp.org>
57406
57407         * lib/freading.h: Improve comments.
57408         * lib/fwriting.h: Likewise.
57409         * tests/test-freading.c (main): Don't check freading immediately after
57410         repositioning. Needed for glibc.
57411
57412 2007-04-29  Bruno Haible  <bruno@clisp.org>
57413
57414         * lib/freading.c (freading): Trivial simplification.
57415
57416 2007-04-28  Bruno Haible  <bruno@clisp.org>
57417
57418         * tests/test-fwriting.c (main): Also test the interaction between
57419         fflush and fwriting.
57420         * modules/fwriting-tests (Depends-on): Add fflush.
57421
57422         * tests/test-freading.c (main): Also test the interaction between
57423         fflush and freading.
57424         * modules/freading-tests (Depends-on): Add fflush.
57425
57426 2007-04-28  Bruno Haible  <bruno@clisp.org>
57427
57428         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
57429         fseeko and ftello.
57430         Suggested by Eric Blake.
57431
57432 2007-04-28  Jim Meyering  <jim@meyering.net>
57433
57434         Avoid false-negative in gl_STDINT_H's C99 conformance test.
57435         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
57436         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
57437
57438 2007-04-27  Eric Blake  <ebb9@byu.net>
57439
57440         * doc/headers/assert.texi (assert.h): Document assert module use.
57441
57442 2007-04-27  Bruno Haible  <bruno@clisp.org>
57443
57444         * doc/headers/*.texi: New files.
57445         * doc/gnulib.texi (Header File Substitutes): New chapter.
57446         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
57447         dependencies.
57448         (standards.info ,standards.html, standards.dvi): Update dependencies.
57449         (mostlyclean, clean): New targets.
57450
57451 2007-04-27  Bruno Haible  <bruno@clisp.org>
57452
57453         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
57454         * modules/sysexits (Files, Makefile.am): Update.
57455
57456         * lib/sys_socket_.h: Renamed from lib/socket_.h.
57457         * modules/sys_socket (Files, Makefile.am): Update.
57458
57459         * lib/sys_stat_.h: Renamed from lib/stat_.h.
57460         * modules/sys_stat (Files, Makefile.am): Update.
57461
57462 2007-04-27  Eric Blake  <ebb9@byu.net>
57463
57464         * lib/freading.h: Improve comments.
57465         * lib/fwriting.h: Likewise.
57466         * lib/fflush.c: Likewise.
57467
57468         Fix closein for mingw.
57469         * modules/closein-tests: Add tests for closein.
57470         * tests/test-closein.c: New file.
57471         * tests/test-closein.sh: Likewise.
57472         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
57473         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
57474
57475 2007-04-27  Bruno Haible  <bruno@clisp.org>
57476
57477         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
57478         version is < 6.
57479         * lib/math_.h [__DECC]: Likewise.
57480         * lib/stdio_.h [__DECC]: Likewise.
57481         * lib/stdlib_.h [__DECC]: Likewise.
57482         * lib/string_.h [__DECC]: Likewise.
57483         * lib/time_.h [__DECC]: Likewise.
57484         * lib/wchar_.h [__DECC]: Likewise.
57485         * lib/wctype_.h [__DECC]: Likewise.
57486
57487 2007-04-27  Bruno Haible  <bruno@clisp.org>
57488
57489         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
57490
57491 2007-04-27  Bruno Haible  <bruno@clisp.org>
57492
57493         * lib/fflush.c: Add comments.
57494         * modules/fpurge-tests (Depends-on): Add fflush.
57495         * modules/freadable-tests (Depends-on): Likewise.
57496         * modules/fwritable-tests (Depends-on): Likewise.
57497
57498 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
57499
57500         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
57501         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
57502         Report by Bruno Haible <bruno@clisp.org>.
57503
57504 2007-04-26  Eric Blake  <ebb9@byu.net>
57505
57506         Fix fflush on mingw.
57507         * modules/fflush (Depends-on): Add freading.
57508         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
57509         but unread data.
57510
57511 2007-04-26  Eric Blake  <ebb9@byu.net>
57512         and Bruno Haible  <bruno@clisp.org>
57513
57514         Implement freading and fwriting.
57515         * lib/freading.c: New file.
57516         * lib/freading.h: Likewise.
57517         * m4/freading.m4: Likewise.
57518         * modules/freading: Likewise.
57519         * modules/freading-tests: Likewise.
57520         * tests/test-freading.c: Likewise.
57521         * lib/fwriting.c: New file.
57522         * lib/fwriting.h: Likewise.
57523         * m4/fwriting.m4: Likewise.
57524         * modules/fwriting: Likewise.
57525         * modules/fwriting-tests: Likewise.
57526         * tests/test-fwriting.c: Likewise.
57527         * MODULES.html.sh (File stream based Input/Output): Mention them.
57528
57529 2007-04-26  Bruno Haible  <bruno@clisp.org>
57530
57531         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
57532         'long' when we assume it.
57533         Suggested by Eric Blake.
57534
57535 2007-04-26  Bruno Haible  <bruno@clisp.org>
57536
57537         Ensure fseeko, ftello are declared on glibc systems.
57538         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
57539         * modules/fseeko (configure.ac-early): Likewise.
57540         * modules/ftello (configure.ac-early): Likewise.
57541         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
57542         AC_FUNC_FSEEKO for this.
57543         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
57544         (gl_CHECK_FSEEKO): Remove macro.
57545
57546 2007-04-26  Bruno Haible  <bruno@clisp.org>
57547
57548         * tests/test-fflush.c (main): Also check the ftell result after
57549         fflush and fseek/fseeko.
57550         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
57551         file descriptor position cache in the stream.
57552         * lib/fseeko.c (rpl_fseeko): Likewise.
57553
57554 2007-04-26  Bruno Haible  <bruno@clisp.org>
57555
57556         * modules/fflush-tests (Depends-on): Add fseeko.
57557
57558 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
57559             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57560
57561         * lib/argz_.h: ensure error_t definition is obtained in same
57562         mechanism system argz.h would have.
57563         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
57564         argz facilities are known bad.  Err on the side of caution if
57565         cross-compiling.
57566
57567 2007-04-25  Eric Blake  <ebb9@byu.net>
57568
57569         * lib/fpurge.c (includes): Use stdlib.h for free.
57570         * tests/test-fflush.c (main): Also test fflush-fseeko.
57571
57572 2007-04-25  Bruno Haible  <bruno@clisp.org>
57573
57574         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
57575         * lib/fseeko.c: New file.
57576         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
57577         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
57578         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
57579         gl_FUNC_FSEEKO.
57580         (gl_FUNC_FSEEKO): Invoke it.
57581         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
57582         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
57583         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
57584
57585 2007-04-25  Bruno Haible  <bruno@clisp.org>
57586
57587         * modules/fflush (Depends-on): Add ftello.
57588
57589 2007-04-25  Bruno Haible  <bruno@clisp.org>
57590
57591         * modules/ftello-tests: New file.
57592         * tests/test-ftello.c: New file.
57593
57594         * modules/ftello: New file.
57595         * m4/ftello.m4: New file.
57596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
57597         HAVE_FTELLO.
57598         * lib/stdio_.h (ftello): New declaration.
57599         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
57600         HAVE_FTELLO.
57601
57602 2007-04-25  Bruno Haible  <bruno@clisp.org>
57603
57604         * modules/fseeko-tests: New file.
57605         * tests/test-fseeko.c: New file.
57606
57607         * modules/fseeko: New file.
57608         * m4/fseeko.m4: New file.
57609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
57610         HAVE_FSEEKO.
57611         * lib/stdio_.h (fseeko): New declaration.
57612         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
57613         HAVE_FSEEKO.
57614
57615 2007-04-25  Bruno Haible  <bruno@clisp.org>
57616
57617         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
57618
57619 2007-04-25  Bruno Haible  <bruno@clisp.org>
57620
57621         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
57622         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
57623         * tests/test-unistd.c: Likewise.
57624         * tests/test-fcntl.c: Likewise.
57625
57626 2007-04-23  Eric Blake  <ebb9@byu.net>
57627
57628         * lib/fflush.c: Fix missing include.
57629         Reported by Bruno Haible.
57630
57631 2007-04-23  Bruno Haible  <bruno@clisp.org>
57632
57633         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
57634         Reported by Eric Blake.
57635
57636 2007-04-23  Bruno Haible  <bruno@clisp.org>
57637
57638         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
57639
57640 2007-04-23  Bruno Haible  <bruno@clisp.org>
57641
57642         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
57643
57644 2007-04-23  Bruno Haible  <bruno@clisp.org>
57645
57646         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
57647         Needed on HP-UX 11.
57648
57649 2007-04-16  Eric Blake  <ebb9@byu.net>
57650
57651         Make fflush rely on fpurge.
57652         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
57653         open coding all variants.
57654         * modules/fflush (Depends-on): Add fpurge and unistd.
57655         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
57656         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
57657
57658         Fix --with-tests compilation on cygwin.
57659         * modules/argmatch-tests (Makefile.am): List gnulib library first
57660         in LDADD.
57661         * modules/argp-tests (Makefile.am): Likewise.
57662         * modules/array-list-tests (Makefile.am): Likewise.
57663         * modules/array-oset-tests (Makefile.am): Likewise.
57664         * modules/avltree-list-tests (Makefile.am): Likewise.
57665         * modules/avltree-oset-tests (Makefile.am): Likewise.
57666         * modules/avltreehash-list-tests (Makefile.am): Likewise.
57667         * modules/carray-list-tests (Makefile.am): Likewise.
57668         * modules/dirname-tests (Makefile.am): Likewise.
57669         * modules/frexp-tests (Makefile.am): Likewise.
57670         * modules/isnanl-tests (Makefile.am): Likewise.
57671         * modules/linked-list-tests (Makefile.am): Likewise.
57672         * modules/linkedhash-list-tests (Makefile.am): Likewise.
57673         * modules/lock-tests (Makefile.am): Likewise.
57674         * modules/rbtree-list-tests (Makefile.am): Likewise.
57675         * modules/rbtree-oset-tests (Makefile.am): Likewise.
57676         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
57677         * modules/tls-tests (Makefile.am): Likewise.
57678         * modules/tsearch-tests (Makefile.am): Likewise.
57679         * modules/xvasprintf-tests (Makefile.am): Likewise.
57680
57681         Fix fpurge for cygwin.
57682         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
57683         value.
57684         * modules/fpurge-tests (Depends-on): Clean up trash.
57685
57686 2007-04-16  Simon Josefsson  <simon@josefsson.org>
57687
57688         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
57689
57690         * m4/autobuild.m4: Re-indent.
57691
57692 2007-04-13  Bruno Haible  <bruno@clisp.org>
57693
57694         * modules/fpurge-tests: New file.
57695         * tests/test-fpurge.c: New file.
57696
57697         * modules/fpurge: New file.
57698         * lib/fpurge.h: New file.
57699         * lib/fpurge.c: New file.
57700         * m4/fpurge.m4: New file.
57701
57702 2007-04-13  Bruno Haible  <bruno@clisp.org>
57703
57704         * modules/fbufmode-tests: New file.
57705         * tests/test-fbufmode.c: New file.
57706
57707         * modules/fbufmode: New file.
57708         * lib/fbufmode.h: New file.
57709         * lib/fbufmode.c: New file.
57710         * m4/fbufmode.m4: New file.
57711
57712 2007-04-13  Bruno Haible  <bruno@clisp.org>
57713
57714         * modules/fwritable-tests: New file.
57715         * tests/test-fwritable.c: New file.
57716
57717         * modules/fwritable: New file.
57718         * lib/fwritable.h: New file.
57719         * lib/fwritable.c: New file.
57720         * m4/fwritable.m4: New file.
57721
57722 2007-04-13  Bruno Haible  <bruno@clisp.org>
57723
57724         * modules/freadable-tests: New file.
57725         * tests/test-freadable.c: New file.
57726
57727         * modules/freadable: New file.
57728         * lib/freadable.h: New file.
57729         * lib/freadable.c: New file.
57730         * m4/freadable.m4: New file.
57731
57732 2007-04-13  Bruno Haible  <bruno@clisp.org>
57733
57734         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
57735         MOSTLYCLEANFILES.
57736
57737 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57738
57739         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
57740         gzip bootstrap.conf to avoid dragging in i18n machinery.
57741         (gnulib_tool_option): Use it.
57742
57743 2007-04-13  Bruno Haible  <bruno@clisp.org>
57744
57745         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
57746         %F directives.
57747         * tests/test-vasprintf-posix.c (test_function): Likewise.
57748         * tests/test-snprintf-posix.h (test_function): Likewise.
57749         * tests/test-sprintf-posix.h (test_function): Likewise.
57750         * tests/test-fprintf-posix.h (test_function): Likewise.
57751         * tests/test-printf-posix.h (test_function): Likewise.
57752         * tests/test-fprintf-posix.out: Likewise.
57753
57754 2007-04-13  Bruno Haible  <bruno@clisp.org>
57755
57756         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
57757         * modules/tls-tests (configure.ac): Likewise.
57758         Reported by Arto C. Nirkko <anirkko@insel.ch>.
57759
57760 2007-04-13  Bruno Haible  <bruno@clisp.org>
57761
57762         * lib/tls.c (glthread_tls_get): Fix return type.
57763         Patch by Arto C. Nirkko <anirkko@insel.ch>.
57764
57765 2007-04-12  Eric Blake  <ebb9@byu.net>
57766
57767         * modules/gettime (Depends-on): Remove gettime.
57768         Reported by Dmitry V. Levin.
57769
57770 2007-04-12  Bruno Haible  <bruno@clisp.org>
57771
57772         * modules/fflush (Include): Mention <stdio.h>.
57773         * modules/strtoimax (Include): Mention <inttypes.h>.
57774         * modules/strtoumax (Include): Likewise.
57775
57776 2007-04-12  Eric Blake  <ebb9@byu.net>
57777
57778         * .cvsignore: New file.
57779         * .gitignore: Likewise.
57780
57781 2007-04-12  Bruno Haible  <bruno@clisp.org>
57782
57783         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
57784         not before, since $(LDADD) often contains libgnu.a.
57785         * modules/striconv-tests (test_striconv_LDADD): Likewise.
57786         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
57787         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
57788         Needed on Cygwin.
57789
57790 2007-04-12  Eric Blake  <ebb9@byu.net>
57791
57792         Work around glibc's failure to flush stdin on fclose.
57793         * lib/closein.c (close_stdin): Flush stdin before closing.
57794
57795         Work around glibc's failure to reset seekable stdin on exit.
57796         * modules/closein: New module.
57797         * lib/closein.c: New file.
57798         * lib/closein.h: Likewise.
57799         * m4/closein.m4: Likewise.
57800         * MODULES.html.sh (File stream based Input/Output): Document it.
57801
57802 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57803
57804         * gnulib-tool: Rename generated 'autobuild' script to
57805         'do-autobuild' in --create-megatestdir output.
57806
57807         * doc/gnulib.texi (Build robot for gnulib): Fix.
57808
57809 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57810
57811         * modules/sysexits (Depends-on): Add absolute-header.
57812
57813 2007-04-12  Eric Blake  <ebb9@byu.net>
57814
57815         No need to preserve errno on success.
57816         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57817         Reported by Bruno Haible.
57818
57819 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57820
57821         * MODULES.html.sh (Support for maintaining and releasing
57822         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
57823
57824 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57825
57826         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
57827
57828 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57829
57830         * modules/autobuild: New module.
57831
57832         * m4/autobuild.m4: New file.
57833
57834 2007-04-11  Bruno Haible  <bruno@clisp.org>
57835
57836         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
57837         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
57838         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
57839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
57840         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57841         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57842         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57843         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57844         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57845         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
57847         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57848         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57849         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
57850         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57851         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57852         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
57853         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57854         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57855         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
57856         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57857         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57858         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
57859         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57860         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57861         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
57862         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57863         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57864         Reported by Eric Blake.
57865
57866 2007-04-11  Bruno Haible  <bruno@clisp.org>
57867
57868         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
57869
57870 2007-04-10  Bruno Haible  <bruno@clisp.org>
57871
57872         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
57873         for NaN and Infinity. Needed on FreeBSD 6.1.
57874         * tests/test-vasnprintf-posix.c (test_function): Undo last change
57875         regarding results for "%010a" of Infinity and NaN.
57876         * tests/test-vasprintf-posix.c (test_function): Likewise.
57877         * tests/test-snprintf-posix.h (test_function): Likewise.
57878         * tests/test-sprintf-posix.h (test_function): Likewise.
57879         * tests/test-fprintf-posix.h (test_function): Likewise.
57880         * tests/test-printf-posix.h (test_function): Likewise.
57881         * tests/test-fprintf-posix.out: Likewise.
57882
57883 2007-04-10  Bruno Haible  <bruno@clisp.org>
57884
57885         * modules/locale-tests: New file.
57886         * tests/test-locale.c: New file.
57887
57888         * modules/locale: New file.
57889         * lib/locale_.h: New file.
57890         * m4/locale_h.m4: New file.
57891
57892 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57893             Bruno Haible  <bruno@clisp.org>
57894
57895         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57896         be determined, test for availability of the copysignf, copysign,
57897         copysignl functions.
57898         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57899         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57900         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57901
57902 2007-04-09  Eric Blake  <ebb9@byu.net>
57903
57904         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57905         * modules/stdio (Makefile.am): Support fflush.
57906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57907         * modules/fflush: New file.
57908         * lib/fflush.c: Likewise.
57909         * m4/fflush.m4: Likewise.
57910         * modules/fflush-tests: New test.
57911         * tests/test-fflush.c: Likewise.
57912         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57913
57914 2007-04-06  Bruno Haible  <bruno@clisp.org>
57915
57916         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57917         (VASNPRINTF): Use signbit for faster determination whether to print a
57918         minus sign.
57919         * modules/vasnprintf (Files): Remove lib/float+.h.
57920         * modules/fprintf-posix (Depends-on): Add signbit.
57921         * modules/snprintf-posix (Depends-on): Likewise.
57922         * modules/sprintf-posix (Depends-on): Likewise.
57923         * modules/vasnprintf-posix (Depends-on): Likewise.
57924         * modules/vasprintf-posix (Depends-on): Likewise.
57925         * modules/vfprintf-posix (Depends-on): Likewise.
57926         * modules/vsnprintf-posix (Depends-on): Likewise.
57927         * modules/vsprintf-posix (Depends-on): Likewise.
57928
57929 2007-04-06  Bruno Haible  <bruno@clisp.org>
57930
57931         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57932         * tests/test-frexpl.c (main): Likewise.
57933         * tests/test-ldexpl.c (main): Likewise.
57934         * modules/frexp-tests (Depends-on): Add signbit.
57935         * modules/frexpl-tests (Depdends-on): Likewise.
57936         * modules/ldexpl-tests (Depdends-on): Likewise.
57937
57938 2007-04-06  Bruno Haible  <bruno@clisp.org>
57939
57940         * modules/signbit-tests: New file.
57941         * tests/test-signbit.c: New file.
57942
57943         * modules/signbit: New file.
57944         * lib/signbitf.c: New file.
57945         * lib/signbitd.c: New file.
57946         * lib/signbitl.c: New file.
57947         * m4/signbit.m4: New file.
57948         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57949         (signbit): New macro.
57950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57951         REPLACE_SIGNBIT.
57952         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57953         REPLACE_FREXPL into math.h.
57954
57955 2007-04-06  Bruno Haible  <bruno@clisp.org>
57956
57957         * modules/isnanf-nolibm-tests: New file.
57958         * tests/test-isnanf.c: New file.
57959
57960         * modules/isnanf-nolibm: New file.
57961         * lib/isnanf.h: New file.
57962         * lib/isnanf.c: New file.
57963         * lib/isnan.c: Consider the USE_FLOAT macro.
57964         * m4/isnanf.m4: New file.
57965
57966 2007-04-06  Bruno Haible  <bruno@clisp.org>
57967
57968         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57969         (Link): New section.
57970
57971         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57972
57973 2007-04-06  Bruno Haible  <bruno@clisp.org>
57974
57975         Assume the 'long double' type.
57976         * m4/longdouble.m4: Remove file.
57977         * config/srclist.txt: Don't mention longdouble.m4.
57978         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57979         * lib/float+.h: Likewise.
57980         * lib/frexp.c: Likewise.
57981         * lib/printf-args.h: Likewise.
57982         * lib/printf-args.c: Likewise.
57983         * lib/printf-frexp.c: Likewise.
57984         * lib/printf-parse.c: Likewise.
57985         * lib/vasnprintf.c: Likewise.
57986         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57987         * m4/intl.m4: Likewise.
57988         * m4/isnanl.m4: Likewise.
57989         * m4/printf.m4: Likewise.
57990         * m4/printf-frexpl.m4: Likewise.
57991         * m4/vasnprintf.m4: Likewise.
57992         * modules/allocsa (Files): Remove m4/longdouble.m4.
57993         * modules/gettext (Files): Likewise.
57994         * modules/relocatable-prog-wrapper (Files): Likewise.
57995         * modules/vasnprintf (Files): Likewise.
57996         * modules/isnanl (Files): Likewise.
57997         (Include): Simplify.
57998         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57999         (Include): Simplify.
58000         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
58001         (Include): Simplify.
58002         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
58003         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58004         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
58005         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58006         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58007         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58008         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
58009         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58010         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58011         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58012         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
58013         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58014         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
58015         * tests/test-isnanl.c: Likewise.
58016         * tests/test-snprintf-posix.h: Likewise.
58017         * tests/test-sprintf-posix.h: Likewise.
58018         * tests/test-vasnprintf-posix.c: Likewise.
58019         * tests/test-vasnprintf-posix2.c: Likewise.
58020         * tests/test-vasprintf-posix.c: Likewise.
58021
58022 2007-04-06  Bruno Haible  <bruno@clisp.org>
58023
58024         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
58025         * lib/math_.h [__DECC]: Include the overridden include file through
58026         #include_next, outside the double-inclusion guard.
58027         * lib/stdio_.h [__DECC]: Likewise.
58028         * lib/stdlib_.h [__DECC]: Likewise.
58029         * lib/string_.h [__DECC]: Likewise.
58030         * lib/time_.h [__DECC]: Likewise.
58031         * lib/wchar_.h [__DECC]: Likewise.
58032         * lib/wctype_.h [__DECC]: Likewise.
58033         * lib/inttypes_.h [__DECC]: Likewise.
58034         Reported by Albert Chin <china@thewrittenword.com> in
58035         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
58036
58037 2007-04-04  Eric Blake  <ebb9@byu.net>
58038
58039         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
58040         1.5.x.
58041
58042 2007-04-04  Bruno Haible  <bruno@clisp.org>
58043
58044         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
58045         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
58046
58047 2007-04-04  Bruno Haible  <bruno@clisp.org>
58048
58049         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
58050         results for "%010a" of Infinity and NaN.
58051         * tests/test-vasprintf-posix.c (test_function): Likewise.
58052         * tests/test-snprintf-posix.h (test_function): Likewise.
58053         * tests/test-sprintf-posix.h (test_function): Likewise.
58054         * tests/test-fprintf-posix.h (test_function): Remove these tests.
58055         * tests/test-printf-posix.h (test_function): Likewise.
58056         * tests/test-fprintf-posix.out: Update.
58057         Needed for FreeBSD 6.1.
58058
58059 2007-04-04  Bruno Haible  <bruno@clisp.org>
58060
58061         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
58062         directly used by the gnulib modules nor by gnulib-tool.
58063
58064 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
58065
58066         * DEPENDENCIES: Give overall description of version dependency
58067         desirability.  Use more-typical names for apps.
58068         Add shell, coreutils, diffutils, grep, tar, gzip.
58069
58070 2007-04-04  Simon Josefsson  <simon@josefsson.org>
58071
58072         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
58073
58074 2007-04-04  Karl Berry  <karl@gnu.org>
58075
58076         * MODULES.html.sh (func_module): missing '.
58077
58078 2007-04-03  Bruno Haible  <bruno@clisp.org>
58079
58080         * modules/argmatch-tests (Makefile.am): New variable
58081         test_argmatch_LDADD.
58082         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
58083         * modules/array-list-tests (Makefile.am): New variable
58084         test_array_list_LDADD.
58085         * modules/array-oset-tests (Makefile.am): New variable
58086         test_array_oset_LDADD.
58087         * modules/avltree-list-tests (Makefile.am): New variable
58088         test_avltree_list_LDADD.
58089         * modules/avltree-oset-tests (Makefile.am): New variable
58090         test_avltree_oset_LDADD.
58091         * modules/avltreehash-list-tests (Makefile.am): New variable
58092         test_avltreehash_list_LDADD.
58093         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
58094         test_canonicalize_lgpl_LDADD.
58095         * modules/carray-list-tests (Makefile.am): New variable
58096         test_carray_list_LDADD.
58097         * modules/dirname-tests (Makefile.am): New variable
58098         test_dirname_LDADD.
58099         * modules/linked-list-tests (Makefile.am): New variable
58100         test_linked_list_LDADD.
58101         * modules/linkedhash-list-tests (Makefile.am): New variable
58102         test_linkedhash_list_LDADD.
58103         * modules/rbtree-list-tests (Makefile.am): New variable
58104         test_rbtree_list_LDADD.
58105         * modules/rbtree-oset-tests (Makefile.am): New variable
58106         test_rbtree_oset_LDADD.
58107         * modules/rbtreehash-list-tests (Makefile.am): New variable
58108         test_rbtreehash_list_LDADD.
58109         * modules/xvasprintf-tests (Makefile.am): New variable
58110         test_xvasprintf_LDADD.
58111         Reported by Eric Blake.
58112
58113 2007-04-03  Eric Blake  <ebb9@byu.net>
58114
58115         * DEPENDENCIES: Weaken m4 requirements.
58116
58117 2007-04-03  Bruno Haible  <bruno@clisp.org>
58118
58119         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
58120         * modules/isnanl-tests (configure.ac): Likewise.
58121
58122 2007-04-03  Ben Pfaff  <blp@gnu.org>
58123
58124         * modules/iconv_open: Add $(srcdir)/ to source directory
58125         references in Makefile fragments that call gperf, to fix VPATH
58126         builds.
58127
58128 2007-04-03  Bruno Haible  <bruno@clisp.org>
58129
58130         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
58131         * lib/ldexpl.c: Undo last change.
58132
58133 2007-04-03  Bruno Haible  <bruno@clisp.org>
58134
58135         * modules/printf-frexpl (Depends-on): Undo last change.
58136         (Files): Add m4/ldexpl.m4.
58137
58138 2007-04-03  Bruno Haible  <bruno@clisp.org>
58139
58140         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
58141         * modules/isnanl (Link): New section.
58142
58143         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
58144         * modules/frexp (Link): New section.
58145
58146         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
58147         * modules/frexpl (Link): New section.
58148
58149         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
58150         * modules/ldexpl (Link): New section.
58151
58152 2007-04-03  Bruno Haible  <bruno@clisp.org>
58153
58154         * modules/TEMPLATE-EXTENDED: New file.
58155         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
58156
58157 2007-04-03  Bruno Haible  <bruno@clisp.org>
58158
58159         * DEPENDENCIES: New file.
58160         Suggested by Simon Josefsson.
58161
58162 2007-04-03  Bruno Haible  <bruno@clisp.org>
58163
58164         * doc/gnulib.texi: Escape @.
58165
58166 2007-04-03  James Youngman  <jay@gnu.org>
58167         and Paul Eggert  <eggert@cs.ucla.edu>
58168
58169         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
58170         birthtime on all systems that have birthtime, not just those which
58171         use st_birthtimensec rather than st_birthtim.  Putting zero in
58172         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
58173         that the birth time is not available for files on an NFS mount.
58174
58175 2007-04-03  Simon Josefsson  <simon@josefsson.org>
58176
58177         * modules/memxor: Move back from crypto/, suggested by Bruno.
58178         * modules/crypto/hmac-sha1: Fix memxor dependency.
58179
58180         * modules/crypto/gc: Moved from ../.
58181
58182 2007-04-02  Eric Blake  <ebb9@byu.net>
58183
58184         * lib/ldexpl.c (includes): Avoid libm.
58185
58186         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
58187
58188 2007-04-02  Bruno Haible  <bruno@clisp.org>
58189
58190         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
58191         on IRIX.
58192
58193 2007-04-02  Bruno Haible  <bruno@clisp.org>
58194
58195         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
58196         x86 or x86_64 platforms running MacOS X.
58197         Reported by Ryan Schmidt <@ryandesign.com>.
58198
58199 2007-04-02  Bruno Haible  <bruno@clisp.org>
58200
58201         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
58202         i386.
58203
58204 2007-04-01  Simon Josefsson  <simon@josefsson.org>
58205
58206         * modules/crypto/arcfour: Moved from ../.
58207         * modules/crypto/arcfour-tests: Moved from ../.
58208         * modules/crypto/arctwo: Moved from ../.
58209         * modules/crypto/arctwo-tests: Moved from ../.
58210         * modules/crypto/des: Moved from ../.
58211         * modules/crypto/des-tests: Moved from ../.
58212         * modules/crypto/gc-arcfour: Moved from ../.
58213         * modules/crypto/gc-arcfour-tests: Moved from ../.
58214         * modules/crypto/gc-arctwo: Moved from ../.
58215         * modules/crypto/gc-arctwo-tests: Moved from ../.
58216         * modules/crypto/gc-des: Moved from ../.
58217         * modules/crypto/gc-des-tests: Moved from ../.
58218         * modules/crypto/gc-hmac-md5: Moved from ../.
58219         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
58220         * modules/crypto/gc-hmac-sha1: Moved from ../.
58221         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
58222         * modules/crypto/gc-md2: Moved from ../.
58223         * modules/crypto/gc-md2-tests: Moved from ../.
58224         * modules/crypto/gc-md4: Moved from ../.
58225         * modules/crypto/gc-md4-tests: Moved from ../.
58226         * modules/crypto/gc-md5: Moved from ../.
58227         * modules/crypto/gc-md5-tests: Moved from ../.
58228         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
58229         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
58230         * modules/crypto/gc-random: Moved from ../.
58231         * modules/crypto/gc-rijndael: Moved from ../.
58232         * modules/crypto/gc-rijndael-tests: Moved from ../.
58233         * modules/crypto/gc-sha1: Moved from ../.
58234         * modules/crypto/gc-sha1-tests: Moved from ../.
58235         * modules/crypto/gc-tests: Moved from ../.
58236         * modules/crypto/hmac-md5: Moved from ../.
58237         * modules/crypto/hmac-md5-tests: Moved from ../.
58238         * modules/crypto/hmac-sha1: Moved from ../.
58239         * modules/crypto/hmac-sha1-tests: Moved from ../.
58240         * modules/crypto/md2: Moved from ../.
58241         * modules/crypto/md2-tests: Moved from ../.
58242         * modules/crypto/md4: Moved from ../.
58243         * modules/crypto/md4-tests: Moved from ../.
58244         * modules/crypto/md5: Moved from ../.
58245         * modules/crypto/md5-tests: Moved from ../.
58246         * modules/crypto/memxor: Moved from ../.
58247         * modules/crypto/rijndael: Moved from ../.
58248         * modules/crypto/rijndael-tests: Moved from ../.
58249         * modules/crypto/sha1: Moved from ../.
58250
58251 2007-03-30  James Youngman  <jay@gnu.org>
58252
58253         * tests/test-stat-time.c (prepare_test): use chmod() rather than
58254         rename() to change the ctime of a file (because ctime is unaffected
58255         by rename on jfs2 on AIX 5.1).
58256         (main): Start by doing cleanup, in case a previous run failed leaving
58257         test files behind.
58258
58259 2007-03-31  Bruno Haible  <bruno@clisp.org>
58260
58261         Support old proprietary implementations of iconv.
58262         * modules/iconv_open: New file.
58263         * lib/iconv_.h: New file.
58264         * m4/iconv_h.m4: New file.
58265         * lib/iconv_open.c: New file.
58266         * lib/iconv_open-aix.gperf: New file.
58267         * lib/iconv_open-hpux.gperf: New file.
58268         * lib/iconv_open-irix.gperf: New file.
58269         * lib/iconv_open-osf.gperf: New file.
58270         * m4/iconv_open.m4: New file.
58271         * modules/linebreak (Depends-on): Add iconv_open.
58272         * modules/striconv (Depends-on): Likewise.
58273         * modules/striconveh (Depends-on): Likewise.
58274         * modules/unicodeio (Depends-on): Likewise.
58275         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
58276         (iconv_t)(-1).
58277         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
58278         conversion if cd is (iconv_t)(-1).
58279         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
58280         is not possible.
58281
58282 2007-03-31  Bruno Haible  <bruno@clisp.org>
58283
58284         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58285         work on Solaris either. Protect also second use of "autodetect_jp".
58286
58287 2007-03-31  Bruno Haible  <bruno@clisp.org>
58288
58289         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
58290         the function is not present.
58291
58292 2007-03-31  Bruno Haible  <bruno@clisp.org>
58293
58294         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
58295         the function is not present.
58296
58297 2007-03-31  Bruno Haible  <bruno@clisp.org>
58298
58299         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
58300         a bug in HP-UX iconv_open().
58301
58302 2007-03-31  Bruno Haible  <bruno@clisp.org>
58303
58304         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
58305         (Mathematics <math.h>): New section, add fpieee.
58306         (Input/output <stdio.h>): Add fseterr.
58307         (Mathematics <math.h>): New section, add printf-frexp.
58308         (Container data structures): Add sublist.
58309         (Core language properties): Add fpucw, inline.
58310         (Functions for greatest-width integer types <inttypes.h>): Add
58311         imaxabs, imaxdiv, inttypes.
58312         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
58313         isnanl-nolibm, ldexp.
58314         (Mathematics <math.h>): New section, add printf-frexpl.
58315         (Support for systems lacking POSIX:2001): Add fprintf-posix,
58316         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
58317         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
58318         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
58319         (Unicode string functions): Add unistr/u*-mbtoucr.
58320         (Java): Add javacomp-script, javaexec-script.
58321         (C#): Add csharpcomp-script, csharpexec-script.
58322         (Support for building libraries and executables): Add havelib,
58323         relocatable-*.
58324         (Support for maintaining and releasing projects): Renamed from
58325         'Support for maintaining and release projects'. Add announce-gen.
58326
58327 2007-03-31  Bruno Haible  <bruno@clisp.org>
58328
58329         * README: Talk primarily about git.
58330         (git and CVS): Renamed from CVS.
58331         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
58332         gnulib is available through git.
58333         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
58334
58335 2007-03-30  Bruno Haible  <bruno@clisp.org>
58336
58337         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
58338         * lib/poll_.h: Likewise.
58339         * lib/stat_.h: Likewise.
58340         * lib/sys_time_.h: Likewise.
58341         * lib/sysexit_.h: Likewise.
58342         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
58343         * lib/stdbool_.h: Likewise.
58344         * lib/byteswap_.h: Add double-inclusion guard.
58345
58346 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
58347
58348         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
58349
58350 2007-03-30  Karl Berry  <karl@gnu.org>
58351
58352         * config/srclist-update: double space after USA in the license
58353         substitution, since that's how it's usually (?) written.
58354
58355 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58356
58357         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
58358         reported by Bruno Haible.
58359
58360 2007-03-29  Bruno Haible  <bruno@clisp.org>
58361
58362         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
58363         a bug in AIX iconv().
58364
58365 2007-03-29  Bruno Haible  <bruno@clisp.org>
58366
58367         * modules/ldexpl-tests: New file.
58368         * tests/test-ldexpl.c: New file.
58369
58370 2007-03-29  Bruno Haible  <bruno@clisp.org>
58371
58372         * lib/ldexpl.c: Include fpucw.h.
58373         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
58374         multiplication.
58375         * modules/ldexpl (Depends-on): Add fpucw.
58376
58377 2007-03-29  Bruno Haible  <bruno@clisp.org>
58378
58379         * modules/ldexpl: New file.
58380         * m4/ldexpl.m4: New file.
58381         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
58382         set.
58383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
58384         REPLACE_LDEXPL.
58385         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
58386         REPLACE_LDEXPL.
58387         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58388         gl_FUNC_LDEXPL_WORKS.
58389         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
58390         * modules/mathl (Files): Remove lib/ldexpl.c.
58391         (Depends-on): Add ldexpl.
58392
58393 2007-03-29  Bruno Haible  <bruno@clisp.org>
58394
58395         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
58396
58397 2007-03-29  Bruno Haible  <bruno@clisp.org>
58398
58399         * tests/test-striconveh.c (main): Don't assume that a direct conversion
58400         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
58401         and possibly also HP-UX.
58402         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58403         work on AIX, IRIX, HP-UX, OSF/1.
58404         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
58405         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
58406         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
58407         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
58408         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
58409         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
58410
58411 2007-03-29  Bruno Haible  <bruno@clisp.org>
58412
58413         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
58414
58415 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58416
58417         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
58418         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
58419
58420 2007-03-29  Eric Blake  <ebb9@byu.net>
58421
58422         * lib/acl-internal.h: Remove redundant include.
58423         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
58424         Cygwin when a file is locked.
58425
58426 2007-03-29  Bruno Haible  <bruno@clisp.org>
58427
58428         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
58429         file.
58430         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
58431
58432 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58433
58434         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
58435         try to remove a parent directory if the child couldn't be removed
58436         (except for the first rmdir, which could fail because the child
58437         doesn't exist).  Problem reported by Jeff Blaine in
58438         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
58439
58440 2007-03-28  Bruno Haible  <bruno@clisp.org>
58441
58442         * lib/striconveh.c (utf8conv_carefully): New function.
58443         (mem_cd_iconveh_internal): Invoke it.
58444
58445 2007-03-28  Bruno Haible  <bruno@clisp.org>
58446
58447         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
58448         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
58449         input.
58450         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
58451         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
58452         unistr/u8-uctomb.
58453
58454 2007-03-28  Bruno Haible  <bruno@clisp.org>
58455
58456         * modules/unistr/u8-mbtoucr: New file.
58457         * lib/unistr/u8-mbtoucr.c: New file.
58458         * modules/unistr/u16-mbtoucr: New file.
58459         * lib/unistr/u16-mbtoucr.c: New file.
58460         * modules/unistr/u16-mbtoucr: New file.
58461         * lib/unistr/u16-mbtoucr.c: New file.
58462         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
58463
58464 2007-03-27  Simon Josefsson  <simon@josefsson.org>
58465             Bruno Haible  <bruno@clisp.org>
58466
58467         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
58468         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
58469         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
58470
58471         * m4/stdio_h.m4: Add stubs for vasprintf too.
58472
58473         * modules/stdio: Support vasprintf in sed command.
58474
58475         * modules/vasprintf: Depend on stdio for prototypes.  Remove
58476         vasprintf.h.  Add stdio module indicator.
58477
58478         * lib/stdio_.h: Declare asprintf and vasprintf, based on
58479         vasprintf.h.
58480
58481         * lib/vasprintf.h: File removed.
58482
58483         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
58484         * lib/vasprintf.c: Ditto.
58485         * lib/xvasprintf.c: Ditto.
58486         * tests/test-vasprintf-posix.c: Ditto.
58487         * tests/test-vasprintf.c: Ditto.
58488
58489 2007-03-27  Bruno Haible  <bruno@clisp.org>
58490
58491         Make vasnprintf multithread-safe.
58492         * lib/vasnprintf.c (decimal_point_char): New function.
58493         (VASNPRINTF): Use it.
58494         Suggested by Simon Josefsson.
58495
58496 2007-03-27  Eric Blake  <ebb9@byu.net>
58497
58498         Support sub-second birthtime on cygwin.
58499         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
58500         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
58501         (get_stat_birthtime): Also work with st_birthtim.
58502
58503 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
58504
58505         * lib/stat-time.h (USE_BIRTHTIME): Remove.
58506         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
58507         (get_stat_birthtime_ns): Do not try to use "spare" fields.
58508         (get_stat_birthtime_ns): Simplify compile-time tests.
58509         (get_stat_birthtime): Change the API to look like
58510         get_stat_mtime etc., except return a negative tv_nsec on error.
58511         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
58512         Don't check for "spare" fields.
58513         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
58514         or for struct stat.st_birthtime, as these tests aren't used.
58515         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
58516
58517 2007-03-27  Bruno Haible  <bruno@clisp.org>
58518
58519         * lib/stat-time.h: Include <sys/stat.h>.
58520
58521 2007-03-27  James Youngman  <jay@gnu.org>
58522
58523         * lib/stat-time.h (get_stat_birthtime): New function for
58524           retrieving st_birthtime as provided by UFS2 (hence *BSD).
58525         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
58526           and its variants.
58527         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
58528         * modules/stat-time-test: New file.
58529         * tests/test-stat-time.c: New test, devised by Bruno Haible.
58530
58531 2007-03-26  Bruno Haible  <bruno@clisp.org>
58532
58533         Better support of signalling NaNs.
58534         * lib/atanl.c: Include isnanl.h.
58535         (atanl): Perform test for NaN at the beginning of the function and
58536         through a call to isnanl.
58537         * lib/cosl.c: Include isnanl.h.
58538         (cosl): Perform test for NaN at the beginning of the function and
58539         through a call to isnanl.
58540         * lib/ldexpl.c: Include isnanl.h.
58541         (ldexpl): Perform test for NaN through a call to isnanl.
58542         * lib/logl.c: Include isnanl.h.
58543         (logl): Perform test for NaN at the beginning of the function and
58544         through a call to isnanl.
58545         * lib/sinl.c: Include isnanl.h.
58546         (sinl): Perform test for NaN at the beginning of the function and
58547         through a call to isnanl.
58548         * lib/sqrtl.c: Include isnanl.h.
58549         (sqrtl): Perform test for NaN at the beginning of the function and
58550         through a call to isnanl.
58551         * lib/tanl.c: Include isnanl.h.
58552         (tanl): Perform test for NaN at the beginning of the function and
58553         through a call to isnanl.
58554         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
58555         * modules/mathl (Depends-on): Add isnanl.
58556
58557 2007-03-26  Eric Blake  <ebb9@byu.net>
58558
58559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
58560         regression in logic sense of previous patch.
58561
58562 2007-03-26  Bruno Haible  <bruno@clisp.org>
58563
58564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
58565         unportable shell command "if ! ...".
58566         Reported by Ralf Wildenhues.
58567
58568 2007-03-25  Bruno Haible  <bruno@clisp.org>
58569
58570         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
58571         <sysexits.h> file, and only add EX_CONFIG.
58572         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
58573         absolute file name and whether it is sufficient. Substitute also
58574         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
58575         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
58576         ABSOLUTE_SYSEXITS_H into sysexits.h.
58577
58578 2007-03-25  Bruno Haible  <bruno@clisp.org>
58579
58580         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
58581         hints is NULL.
58582
58583 2007-03-25  Bruno Haible  <bruno@clisp.org>
58584
58585         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
58586         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
58587
58588 2007-03-25  Bruno Haible  <bruno@clisp.org>
58589
58590         * lib/vasnprintf.c: Include langinfo.h.
58591         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
58592         multithread-safe.
58593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
58594         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
58595         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58596         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58597         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58598         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58599         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58600         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
58601         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58602         Reported by Simon Josefsson.
58603
58604 2007-03-25  Bruno Haible  <bruno@clisp.org>
58605
58606         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
58607         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
58608         * modules/vasnprintf (Depends-on): Add stdint.
58609
58610 2007-03-25  Bruno Haible  <bruno@clisp.org>
58611
58612         * modules/fpieee: New file.
58613         * m4/fpieee.m4: New file.
58614         * modules/isnan-nolibm (Depends-on): Add fpieee.
58615         * modules/isnanl-nolibm (Depends-on): Add fpieee.
58616         * modules/isnanl (Depends-on): Add fpieee.
58617
58618 2007-03-25  Bruno Haible  <bruno@clisp.org>
58619
58620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
58621
58622 2007-03-25  Bruno Haible  <bruno@clisp.org>
58623
58624         Avoid test failures on IRIX 6.5.
58625         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
58626         (main): Use it.
58627         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
58628         macros.
58629         (main): Use them.
58630
58631 2007-03-25  Bruno Haible  <bruno@clisp.org>
58632
58633         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
58634         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
58635         exists but doesn't work.
58636         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
58637         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
58638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
58639         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
58640         math.h.
58641
58642 2007-03-25  Bruno Haible  <bruno@clisp.org>
58643
58644         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
58645         returns inf. Needed on IRIX 6.5.
58646
58647 2007-03-25  Bruno Haible  <bruno@clisp.org>
58648
58649         * tests/test-frexpl.c: Include isnanl-nolibm.h.
58650         (main): Use isnanl instead of x != x idiom.
58651         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
58652
58653         * tests/test-frexp.c: Include isnan.h.
58654         (main): Use isnan instead of x != x idiom.
58655         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
58656
58657 2007-03-25  Bruno Haible  <bruno@clisp.org>
58658
58659         * tests/test-frexp.c (NaN): New function/macro.
58660         (main): Use it instead of 0.0 / 0.0.
58661         * tests/test-isnan.c (NaN): New function/macro.
58662         (main): Use it instead of 0.0 / 0.0.
58663         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
58664         (test_function): Use it instead of 0.0 / 0.0.
58665         * tests/test-vasprintf-posix.c (NaN): New function/macro.
58666         (test_function): Use it instead of 0.0 / 0.0.
58667         * tests/test-snprintf-posix.h (NaN): New function/macro.
58668         (test_function): Use it instead of 0.0 / 0.0.
58669         * tests/test-sprintf-posix.h (NaN): New function/macro.
58670         (test_function): Use it instead of 0.0 / 0.0.
58671         * tests/test-fprintf-posix.h (NaN): New function/macro.
58672         (test_function): Use it instead of 0.0 / 0.0.
58673         * tests/test-printf-posix.h (NaN): New function/macro.
58674         (test_function): Use it instead of 0.0 / 0.0.
58675
58676         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
58677
58678 2007-03-25  Bruno Haible  <bruno@clisp.org>
58679
58680         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
58681
58682 2007-03-25  Bruno Haible  <bruno@clisp.org>
58683
58684         * lib/regexec.c (merge_state_with_log): Make static.
58685
58686 2007-03-25  Bruno Haible  <bruno@clisp.org>
58687
58688         * lib/trigl.c (kernel_rem_pio2): Make static.
58689
58690 2007-03-25  Bruno Haible  <bruno@clisp.org>
58691
58692         * lib/sincosl.c (sincosl_table): Make static.
58693
58694 2007-03-25  Bruno Haible  <bruno@clisp.org>
58695
58696         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
58697         if the compiler does not support C99.
58698
58699 2007-03-25  Bruno Haible  <bruno@clisp.org>
58700
58701         * modules/time (Makefile.am): Ensure all rule action lines start with a
58702         tab.
58703
58704 2007-03-24  Bruno Haible  <bruno@clisp.org>
58705
58706         * modules/tsearch-tests: New file.
58707         * tests/test-tsearch.sh: New file.
58708         * tests/test-tsearch.c: New file, mostly copied from glibc.
58709
58710         * modules/search-tests: New file.
58711         * tests/test-search.c: New file.
58712
58713         * modules/search: New file.
58714         * lib/search_.h: New file, incorporating lib/tsearch.h.
58715         * m4/search_h.m4: New file.
58716         * lib/tsearch.h: Remove file.
58717         * lib/tsearch.c: Include search.h instead of tsearch.h.
58718         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
58719         HAVE_TSEARCH.
58720         * modules/tsearch (Files): Remove lib/tsearch.h.
58721         (Depends-on): Add search.
58722         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
58723         (Include): Change tsearch.h into search.h.
58724
58725 2007-03-24  Bruno Haible  <bruno@clisp.org>
58726
58727         * modules/fpucw: New file.
58728         * lib/fpucw.h: New file.
58729         * lib/frexp.c: Include fpucw.h.
58730         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58731         (FUNC): Use them.
58732         * lib/printf-frexp.c: Include fpucw.h.
58733         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58734         (FUNC): Use them.
58735         * lib/vasnprintf.c: Include fpucw.h.
58736         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
58737         'long double' calculations.
58738         * tests/test-frexpl.c: Include fpucw.h.
58739         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58740         * tests/test-printf-frexpl.c: Include fpucw.h.
58741         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58742         * modules/frexpl (Depends-on): Add fpucw.
58743         * modules/printf-frexpl (Depends-on): Likewise.
58744         * modules/fprintf-posix (Depends-on): Likewise.
58745         * modules/snprintf-posix (Depends-on): Likewise.
58746         * modules/sprintf-posix (Depends-on): Likewise.
58747         * modules/vasnprintf-posix (Depends-on): Likewise.
58748         * modules/vasprintf-posix (Depends-on): Likewise.
58749         * modules/vfprintf-posix (Depends-on): Likewise.
58750         * modules/vsnprintf-posix (Depends-on): Likewise.
58751         * modules/vsprintf-posix (Depends-on): Likewise.
58752         * modules/frexpl-tests (Depends-on): Likewise.
58753         * modules/printf-frexpl-tests (Depends-on): Likewise.
58754
58755 2007-03-24  Bruno Haible  <bruno@clisp.org>
58756
58757         * lib/float+.h: New file.
58758         * lib/isnan.c: Include float+.h.
58759         (SIZE): New macro.
58760         (FUNC): Compare only SIZE bytes of the value.
58761         * lib/vasnprintf.c: Include float+.h.
58762         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
58763         SIZEOF_LDBL or SIZEOF_DBL bytes.
58764         * modules/isnan-nolibm (Files): Add lib/float+.h.
58765         * modules/isnanl-nolibm (Files): Add lib/float+.h.
58766         * modules/isnanl (Files): Add lib/float+.h.
58767         * modules/vasnprintf (Files): Add lib/float+.h.
58768
58769 2007-03-24  Bruno Haible  <bruno@clisp.org>
58770
58771         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
58772         include isnanl-nolibm.h.
58773
58774 2007-03-24  Bruno Haible  <bruno@clisp.org>
58775
58776         * tests/test-read-file.c (main): Don't produce spurious output for
58777         expected situations. Make the test fail if it encountered unexpected
58778         results.
58779
58780 2007-03-24  Bruno Haible  <bruno@clisp.org>
58781
58782         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
58783         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
58784
58785 2007-03-24  Bruno Haible  <bruno@clisp.org>
58786
58787         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
58788
58789 2007-03-24  Bruno Haible  <bruno@clisp.org>
58790
58791         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
58792         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
58793
58794         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58795         * modules/utf8-ucs4: Turn into a symbolic link to module
58796         unistr/u8-mbtouc.
58797
58798         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58799         utf8-ucs4-unsafe.
58800         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58801         unistr/u8-mbtouc-unsafe.
58802
58803         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58804         * modules/utf16-ucs4: Turn into a symbolic link to module
58805         unistr/u16-mbtouc.
58806
58807         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58808         utf16-ucs4-unsafe.
58809         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58810         unistr/u16-mbtouc-unsafe.
58811
58812         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58813         * modules/ucs4-utf8: Turn into a symbolic link to module
58814         unistr/u8-ubtomb.
58815
58816         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58817         * modules/ucs4-utf16: Turn into a symbolic link to module
58818         unistr/u16-ubtomb.
58819
58820 2007-03-24  Bruno Haible  <bruno@clisp.org>
58821
58822         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
58823         Enable the function only if HAVE_INLINE.
58824         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
58825         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58826         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
58827         Enable the function only if HAVE_INLINE.
58828         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
58829         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58830         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
58831         Enable the function only if HAVE_INLINE.
58832         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
58833         Enable the function only if HAVE_INLINE.
58834         * modules/utf8-ucs4: Update.
58835         * modules/utf8-ucs4-unsafe: Update.
58836         * modules/utf16-ucs4: Update.
58837         * modules/utf16-ucs4-unsafe: Update.
58838         * modules/ucs4-utf8: Update.
58839         * modules/ucs4-utf16: Update.
58840
58841 2007-03-24  Bruno Haible  <bruno@clisp.org>
58842
58843         * lib/utf8-ucs4.h: Remove file.
58844         * lib/utf8-ucs4-unsafe.h: Remove file.
58845         * lib/utf16-ucs4.h: Remove file.
58846         * lib/utf16-ucs4-unsafe.h: Remove file.
58847         * lib/ucs4-utf8.h: Remove file.
58848         * lib/ucs4-utf16.h: Remove file.
58849         * lib/unistr.h: Include their previous contents.
58850         * m4/utf-ucs4.m4: Remove file.
58851         * m4/ucs4-utf.m4: Remove file.
58852         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
58853         (Depends-on): Add unistr/base.
58854         (configure.ac): Remove gl_UTF_UCS4.
58855         (Makefile.am): Update.
58856         (Include): Change to unistr.h.
58857         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
58858         (Depends-on): Add unistr/base.
58859         (configure.ac): Remove gl_UTF_UCS4.
58860         (Makefile.am): Update.
58861         (Include): Change to unistr.h.
58862         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
58863         (Depends-on): Add unistr/base.
58864         (configure.ac): Remove gl_UTF_UCS4.
58865         (Makefile.am): Update.
58866         (Include): Change to unistr.h.
58867         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
58868         (Depends-on): Add unistr/base.
58869         (configure.ac): Remove gl_UTF_UCS4.
58870         (Makefile.am): Update.
58871         (Include): Change to unistr.h.
58872         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
58873         (Depends-on): Add unistr/base.
58874         (configure.ac): Remove gl_UCS4_UTF.
58875         (Makefile.am): Update.
58876         (Include): Change to unistr.h.
58877         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
58878         (Depends-on): Add unistr/base.
58879         (configure.ac): Remove gl_UCS4_UTF.
58880         (Makefile.am): Update.
58881         (Include): Change to unistr.h.
58882         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
58883         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58884         utf8-ucs4-unsafe.h.
58885         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58886         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58887         utf16-ucs4-unsafe.h.
58888         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58889         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58890         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58891         * lib/unistr/u8-strchr.c: Likewise.
58892         * lib/unistr/u8-strrchr.c: Likewise.
58893         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58894         * lib/unistr/u16-strchr.c: Likewise.
58895         * lib/unistr/u16-strrchr.c: Likewise.
58896         * lib/striconveh.c: Update.
58897         * lib/linebreak.c: Update.
58898
58899 2007-03-24  Bruno Haible  <bruno@clisp.org>
58900
58901         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58902         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58903
58904 2007-03-22  Bruno Haible  <bruno@clisp.org>
58905
58906         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58907
58908 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58909
58910         * MODULES.html.sh (File system functions): New module write-any-file.
58911         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58912         * m4/write-any-file.m4: New files.
58913
58914 2007-03-23  Eric Blake  <ebb9@byu.net>
58915
58916         * gnulib-tool: Rearrange space-tab sequences, since some editors
58917         like to eat them.
58918
58919 2007-03-23  Eric Blake  <ebb9@byu.net>
58920
58921         * lib/version-etc.c (version_etc_va): Update license wording to
58922         be more concise.  Recommended by Richard Stallman.
58923
58924 2007-03-22  Bruno Haible  <bruno@clisp.org>
58925
58926         * lib/poll.c (MSG_PEEK): New fallback definition.
58927
58928 2007-03-22  Bruno Haible  <bruno@clisp.org>
58929
58930         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58931         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58932         (main): Update.
58933         Fixes a compilation error on BeOS.
58934
58935 2007-03-22  Bruno Haible  <bruno@clisp.org>
58936
58937         * modules/frexpl-tests: New file.
58938         * tests/test-frexpl.c: New file.
58939
58940         * modules/frexpl: New file.
58941         * m4/frexpl.m4: New file.
58942         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58943         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58945         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58946         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58947         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58948
58949 2007-03-22  Bruno Haible  <bruno@clisp.org>
58950
58951         * lib/frexpl.c: Share code with lib/frexp.c.
58952         * modules/mathl (Files): Add lib/frexp.c.
58953         (Depends-on): Add isnanl-nolibm.
58954
58955 2007-03-22  Bruno Haible  <bruno@clisp.org>
58956
58957         * modules/printf-frexp (Files): Add m4/frexp.m4.
58958         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58959         only if the found frexp function actually works.
58960
58961 2007-03-22  Bruno Haible  <bruno@clisp.org>
58962
58963         * lib/frexp.c: Remove older implementation that uses divisions.
58964
58965 2007-03-21  Bruno Haible  <bruno@clisp.org>
58966
58967         * modules/frexp-tests: New file.
58968         * tests/test-frexp.c: New file.
58969
58970         * modules/frexp: New file.
58971         * lib/frexp.c: New file.
58972         * m4/frexp.m4: New file.
58973         * lib/math_.h (frexp): New declaration.
58974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58975         REPLACE_FREXP.
58976         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58977
58978 2007-03-21  Bruno Haible  <bruno@clisp.org>
58979
58980         * modules/isnanl-tests: New file.
58981         * tests/test-isnanl.c: New file.
58982
58983         * modules/isnanl: New file.
58984         * lib/isnanl.h: New file.
58985         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58986         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58987         gl_FUNC_ISNANL_WORKS.
58988         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58989         New macros.
58990
58991 2007-03-21  Bruno Haible  <bruno@clisp.org>
58992
58993         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58994         lib/isnanl.h.
58995         (Include): Update.
58996         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58997         * lib/vasnprintf.c: Update.
58998         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58999         tests/test-isnanl.h, remove tests/test-isnanl.c.
59000         (Makefile.am): Update.
59001         * tests/test-isnanl-nolibm.c: New file.
59002         * tests/test-isnanl.h: New file.
59003         * tests/test-isnanl.c: Remove file.
59004
59005 2007-03-21  Jim Meyering  <jim@meyering.net>
59006
59007         When trying to open ".", treat ESTALE like EACCES.
59008         * lib/savewd.c (savewd_save): Resort to forking not just upon
59009         failure with EACCES, but also when errno is ESTALE.
59010
59011 2007-03-20  Bruno Haible  <bruno@clisp.org>
59012
59013         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
59014         Needed on AIX 5.1. Reported by Matthew Woehlke.
59015
59016 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59017
59018         Suggestions by Bruno Haible:
59019         * lib/acl-internal.h: Include "gettext.h" rather than rolling
59020         our own.
59021         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
59022         * modules/acl (Depends-on): Add gettext.
59023
59024 2007-03-19  Bruno Haible  <bruno@clisp.org>
59025
59026         * modules/iconvme: Remove file.
59027         * lib/iconvme.h: Remove file.
59028         * lib/iconvme.c: Remove file.
59029         * m4/iconvme.m4: Remove file.
59030
59031 2007-03-19  Bruno Haible  <bruno@clisp.org>
59032
59033         * doc/relocatable-maint.texi: Break long shell script line.
59034         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59035
59036 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59037
59038         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
59039         handle file_has_acl.
59040         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
59041         * lib/acl.c: Move header inclusions and related macro defns into
59042         lib/acl-internal.h.
59043         (S_ISLNK): Remove defn, since that's now done for us.
59044         (file_has_acl): Move to lib/file-has-acl.c.
59045         Call acl_trivial if available.  This is the crucial part of the fix.
59046         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
59047         shared within the library.  Rewrite a bit, partly to make it compatible
59048         with the GNU coding style.
59049         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
59050         Remove unnecessary double-quotes.
59051         Don't test for acl_to_text; the build will catch that.
59052         Replace acl_entries if it doesn't exist and it is needed.
59053         Check for -lsec and acl_trivial (as used on Solaris 10).
59054         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
59055         lib/file-has-acl.c.
59056         (Depends-on): Add sys_stat, for S_ISLNK.
59057
59058 2007-03-19  Ben Pfaff  <blp@gnu.org>
59059
59060         * doc/gnulib.texi: Fix typos.
59061         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59062
59063 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59064
59065         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
59066         If size is zero here, buf must be zero.
59067
59068 2007-03-19  Simon Josefsson  <simon@josefsson.org>
59069
59070         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
59071         <bruno@clisp.org>.
59072
59073 2007-03-18  Bruno Haible  <bruno@clisp.org>
59074
59075         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
59076         Suggested by Eric Blake.
59077
59078 2007-03-18  Ben Pfaff  <blp@gnu.org>
59079
59080         * doc/relocatable.texi: Recommend using as prefix a directory
59081         that does not exist and will never be created.  Based on
59082         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
59083         and others.
59084
59085 2007-03-17  Bruno Haible  <bruno@clisp.org>
59086
59087         * lib/fchownat.c: Include lchown.h.
59088
59089 2007-03-17  Bruno Haible  <bruno@clisp.org>
59090
59091         Fix endless loop when the given allocated size was > INT_MAX.
59092         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
59093         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
59094         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
59095         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
59096         * lib/sprintf.c (sprintf): Likewise.
59097
59098 2007-03-17  Bruno Haible  <bruno@clisp.org>
59099
59100         * tests/test-argp-2.sh (func_compare): Output a context diff.
59101
59102 2007-03-17  Bruno Haible  <bruno@clisp.org>
59103
59104         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
59105         locale's decimal-point character.
59106
59107 2007-03-17  Bruno Haible  <bruno@clisp.org>
59108
59109         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
59110         before comparing it. Needed because on some platforms (e.g. x86) a
59111         'long double' occupies less bytes than sizeof (long double).
59112
59113 2007-03-17  Bruno Haible  <bruno@clisp.org>
59114
59115         * tests/test-crc.c (main): Make printf statements 64-bit clean.
59116         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
59117         * tests/test-getaddrinfo.c (simple): Likewise.
59118         * tests/test-read-file.c (main): Likewise.
59119
59120 2007-03-17  Bruno Haible  <bruno@clisp.org>
59121
59122         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
59123
59124 2007-03-17  Bruno Haible  <bruno@clisp.org>
59125
59126         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
59127         unused variable.
59128
59129 2007-03-17  Bruno Haible  <bruno@clisp.org>
59130
59131         * tests/test-c-strcasecmp.c: Include c-strcase.h.
59132         * tests/test-c-strncasecmp.c: Likewise.
59133
59134 2007-03-17  Bruno Haible  <bruno@clisp.org>
59135
59136         * modules/stdlib (Depends-on): Add unistd.
59137         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
59138         Needed for MacOS X 10.3.
59139
59140 2007-03-17  Bruno Haible  <bruno@clisp.org>
59141
59142         * lib/unistr/u-strdup.h: Include <stdlib.h>.
59143
59144 2007-03-17  Bruno Haible  <bruno@clisp.org>
59145
59146         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
59147
59148 2007-03-17  Bruno Haible  <bruno@clisp.org>
59149
59150         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
59151         to reflect files copied from gnulib (with or without modifications).
59152         Suggested by Jim Meyering.
59153
59154 2007-03-17  Eric Blake  <ebb9@byu.net>
59155
59156         * NEWS: Document stdlib change from 2007-02-18.
59157
59158 2007-03-17  Jim Meyering  <jim@meyering.net>
59159
59160         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
59161         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
59162         someone uses a name containing shell meta-characters.
59163         Reported by Alfred M. Szmidt.
59164
59165         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
59166
59167 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
59168
59169         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
59170         and copy gettext configuration files only if configure.ac contains
59171         a use of AM_GNU_GETTEXT_VERSION.
59172
59173 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
59174
59175         * build-aux/bootstrap (gnulib_name): New variable.
59176         (gnulib_tool_options): Use it.
59177
59178 2007-03-13  Simon Josefsson  <simon@josefsson.org>
59179
59180         * tests/test-des.c: Use new namespace.
59181
59182 2007-03-15  Bruno Haible  <bruno@clisp.org>
59183
59184         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
59185         Reported by James Youngman <jay@gnu.org>.
59186
59187 2007-03-15  Bruno Haible  <bruno@clisp.org>
59188
59189         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
59190         declared prototype. Needed with cc on OSF/1 5.1.
59191
59192 2007-03-15  Bruno Haible  <bruno@clisp.org>
59193
59194         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
59195         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
59196         (struct gl_list_implementation): Add dispose_fn argument to the
59197         'create_empty', 'create' methods.
59198         (struct gl_list_impl_base): Add field 'dispose_fn'.
59199         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
59200         argument.
59201         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
59202         dispose_fn argument.
59203         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
59204         dispose_fn on the dropped values.
59205         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
59206         dispose_fn argument.
59207         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
59208         dropped values.
59209         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
59210         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59211         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
59212         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59213         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
59214         argument.
59215         (gl_tree_list_free): Call dispose_fn on the dropped values.
59216         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
59217         the dropped values.
59218         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59219         Add dispose_fn argument.
59220         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
59221         Call dispose_fn on the dropped values.
59222         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
59223         Add dispose_fn argument.
59224         (gl_sublist_create): Initialize the 'dispose_fn' field.
59225         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
59226         * tests/test-array_list.c (main): Update.
59227         * tests/test-carray_list.c (main): Update.
59228         * tests/test-avltree_list.c (main): Update.
59229         * tests/test-rbtree_list.c (main): Update.
59230         * tests/test-avltreehash_list.c (main): Update.
59231         * tests/test-rbtreehash_list.c (main): Update.
59232         * tests/test-linked_list.c (main): Update.
59233         * tests/test-linkedhash_list.c (main): Update.
59234         * tests/test-array_oset.c (main): Update.
59235
59236 2007-03-15  Bruno Haible  <bruno@clisp.org>
59237
59238         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
59239         (gl_oset_create_empty): Add dispose_fn argument.
59240         (struct gl_oset_implementation): Add dispose_fn argument to
59241         'create_empty' method.
59242         (struct gl_oset_impl_base): Add dispose_fn field.
59243         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
59244         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
59245         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
59246         values.
59247         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
59248         (gl_tree_oset_free): Call dispose_fn on the dropped values.
59249         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59250         dropped value.
59251         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59252         dropped value.
59253         * tests/test-array_oset.c (main): Update.
59254         * tests/test-avltree_oset.c (main): Update.
59255         * tests/test-rbtree_oset.c (main): Update.
59256         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
59257
59258 2007-03-13  Bruno Haible  <bruno@clisp.org>
59259
59260         * tests/test-stdbool.c (i): Update after last patch.
59261
59262 2007-03-12  Bruno Haible  <bruno@clisp.org>
59263
59264         * lib/quotearg.c: Include <wctype.h> early, before the definition of
59265         the iswprint macro. Needed on Solaris 2.5.1.
59266
59267 2007-03-12  Bruno Haible  <bruno@clisp.org>
59268
59269         * tests/test-printf-frexp.c (main): Declare x as volatile.
59270
59271 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59272
59273         * doc/gnulib.texi (Build robot for gnulib): New section.
59274
59275 2007-03-12  Jim Meyering  <jim@meyering.net>
59276
59277         * build-aux/bootstrap: New file.
59278         * build-aux/bootstrap.conf: New file, from coreutils.
59279
59280 2007-03-11  Bruno Haible  <bruno@clisp.org>
59281
59282         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
59283
59284 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59285
59286         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
59287         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
59288         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
59289
59290 2007-03-11  Bruno Haible  <bruno@clisp.org>
59291
59292         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
59293         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
59294
59295 2007-03-11  Bruno Haible  <bruno@clisp.org>
59296
59297         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
59298         formula. Needed for SunPRO C 5.0.
59299
59300 2007-03-11  Bruno Haible  <bruno@clisp.org>
59301
59302         * modules/long-options (Depends-on): Add getopt.
59303
59304 2007-03-11  Bruno Haible  <bruno@clisp.org>
59305
59306         * modules/modechange (Depends-on): Add stdbool.
59307
59308 2007-03-11  Bruno Haible  <bruno@clisp.org>
59309
59310         * modules/i-ring (Depends-on): Add stdbool.
59311
59312 2007-03-11  Bruno Haible  <bruno@clisp.org>
59313
59314         * modules/gc-des (Depends-on): Add stdbool.
59315
59316 2007-03-11  Bruno Haible  <bruno@clisp.org>
59317
59318         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
59319
59320 2007-03-11  Bruno Haible  <bruno@clisp.org>
59321
59322         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
59323
59324 2007-03-11  Bruno Haible  <bruno@clisp.org>
59325
59326         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
59327
59328 2007-03-11  Bruno Haible  <bruno@clisp.org>
59329
59330         * lib/vasnprintf.c (sprintf): Undefine.
59331
59332 2007-03-11  Bruno Haible  <bruno@clisp.org>
59333
59334         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
59335         initializers in SunPRO C and Compaq C compilers.
59336
59337 2007-03-11  Bruno Haible  <bruno@clisp.org>
59338
59339         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
59340         decrementing code ANSI C compliant.
59341
59342 2007-03-11  Bruno Haible  <bruno@clisp.org>
59343
59344         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
59345         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
59346
59347 2007-03-11  Bruno Haible  <bruno@clisp.org>
59348
59349         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
59350         <stdbool.h> substitute doesn't pass.
59351
59352 2007-03-11  Bruno Haible  <bruno@clisp.org>
59353
59354         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
59355
59356 2007-03-11  Bruno Haible  <bruno@clisp.org>
59357
59358         * gnulib-tool (func_create_megatestdir): Create also an autobuild
59359         script, for submission to autobuild.josefsson.org.
59360
59361 2007-03-10  Bruno Haible  <bruno@clisp.org>
59362
59363         * modules/canonicalize-lgpl-tests: New file.
59364         * tests/test-canonicalize-lgpl.sh: New file.
59365         * tests/test-canonicalize-lgpl.c: New file.
59366
59367         * modules/c-strcase-tests: New file.
59368         * tests/test-c-strcase.sh: New file.
59369         * tests/test-c-strcasecmp.c: New file.
59370         * tests/test-c-strncasecmp.c: New file.
59371
59372         * modules/atexit-tests: New file.
59373         * tests/test-atexit.sh: New file.
59374         * tests/test-atexit.c: New file.
59375
59376 2007-03-10  Bruno Haible  <bruno@clisp.org>
59377
59378         * tests/test-binary-io.sh: Use temporary filenames that are not so
59379         likely to clash with those of other tests (in a parallel make).
59380         * tests/test-binary-io.c: Likewise.
59381
59382 2007-03-10  Bruno Haible  <bruno@clisp.org>
59383
59384         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
59385         fallback; use #error instead.
59386         Suggested by Simon Josefsson.
59387
59388 2007-03-10  Bruno Haible  <bruno@clisp.org>
59389
59390         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
59391         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
59392         first and the last.
59393
59394 2007-03-10  Bruno Haible  <bruno@clisp.org>
59395
59396         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
59397
59398 2007-03-10  Bruno Haible  <bruno@clisp.org>
59399
59400         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
59401         "make distcheck".
59402         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
59403         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
59404         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
59405
59406 2007-03-10  Bruno Haible  <bruno@clisp.org>
59407
59408         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
59409         variable.
59410         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
59411         variable.
59412
59413 2007-03-09  Eric Blake  <ebb9@byu.net>
59414         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
59415
59416         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
59417         types are not being provided by gnulib.
59418         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
59419         types are supported.
59420
59421 2007-03-10  Bruno Haible  <bruno@clisp.org>
59422
59423         * lib/stdio_.h (__attribute__): New macro.
59424         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
59425         vsprintf): Specify __attribute__ __format__ for GCC.
59426         Suggested by Eric Blake.
59427
59428 2007-03-09  Bruno Haible  <bruno@clisp.org>
59429
59430         * modules/printf-posix-tests: New file.
59431         * tests/test-printf-posix.sh: New file.
59432         * tests/test-printf-posix.c: New file.
59433
59434         * modules/printf-posix: New file.
59435         * lib/printf.c: New file.
59436         * m4/printf-posix-rpl.m4: New file.
59437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
59438         REPLACE_PRINTF.
59439         * lib/stdio_.h (printf): New declaration.
59440         (format, __format__, ____printf____, ____scanf____, ____strftime____,
59441         ____strfmon____): New macros.
59442         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
59443         REPLACE_PRINTF.
59444
59445 2007-03-09  Bruno Haible  <bruno@clisp.org>
59446
59447         * tests/test-vasnprintf-posix2.sh: New file.
59448         * tests/test-vasnprintf-posix2.c: New file.
59449         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
59450         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
59451         (Makefile.am): Activate test-vasnprintf-posix2.sh.
59452
59453         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
59454         a locale dependent decimal point, rather than always '.'.
59455
59456 2007-03-09  Eric Blake  <ebb9@byu.net>
59457
59458         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
59459         spite of platforms like Tandem/NSK that define it to -1.
59460
59461 2007-03-08  Bruno Haible  <bruno@clisp.org>
59462
59463         * modules/vprintf-posix-tests: New file.
59464         * tests/test-vprintf-posix.sh: New file.
59465         * tests/test-vprintf-posix.c: New file.
59466         * tests/test-printf-posix.h: New file.
59467
59468         * modules/vprintf-posix: New file.
59469         * lib/vprintf.c: New file.
59470         * m4/vprintf-posix.m4: New file.
59471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
59472         REPLACE_VPRINTF.
59473         * lib/stdio_.h (vprintf): New declaration.
59474         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
59475         REPLACE_VPRINTF.
59476
59477 2007-03-08  Bruno Haible  <bruno@clisp.org>
59478
59479         * modules/fprintf-posix-tests: New file.
59480         * tests/test-fprintf-posix.sh: New file.
59481         * tests/test-fprintf-posix.c: New file.
59482
59483         * modules/fprintf-posix: New file.
59484         * lib/fprintf.c: New file.
59485         * m4/fprintf-posix.m4: New file.
59486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
59487         REPLACE_FPRINTF.
59488         * lib/stdio_.h (fprintf): New declaration.
59489         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
59490         REPLACE_FPRINTF.
59491
59492 2007-03-08  Bruno Haible  <bruno@clisp.org>
59493
59494         * modules/vfprintf-posix-tests: New file.
59495         * tests/test-vfprintf-posix.sh: New file.
59496         * tests/test-vfprintf-posix.c: New file.
59497         * tests/test-fprintf-posix.h: New file.
59498         * tests/test-fprintf-posix.out: New file.
59499
59500         * modules/vfprintf-posix: New file.
59501         * lib/vfprintf.c: New file.
59502         * m4/vfprintf-posix.m4: New file.
59503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
59504         REPLACE_VFPRINTF.
59505         * lib/stdio_.h (vfprintf): New declaration.
59506         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
59507         REPLACE_VFPRINTF.
59508
59509 2007-03-08  Bruno Haible  <bruno@clisp.org>
59510
59511         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
59512
59513 2007-03-08  Bruno Haible  <bruno@clisp.org>
59514
59515         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
59516         instead of 'expr' invocations.
59517         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59518         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59520         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59521         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59522         Suggested by Paul Eggert.
59523
59524 2007-03-08  Bruno Haible  <bruno@clisp.org>
59525
59526         * modules/fseterr-tests: New file.
59527         * tests/test-fseterr.c: New file.
59528
59529         * modules/fseterr: New file.
59530         * lib/fseterr.h: New file.
59531         * lib/fseterr.c: New file.
59532
59533 2007-03-08  Bruno Haible  <bruno@clisp.org>
59534
59535         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
59536         * lib/getopt_.h: Likewise.
59537         * lib/mbswidth.h: Likewise.
59538         * lib/setenv.h: Likewise.
59539         * lib/vasnprintf.h: Likewise.
59540         * lib/vasprintf.h: Likewise.
59541         * lib/verror.h: Likewise.
59542         * lib/xsetenv.h: Likewise.
59543         * lib/xvasprintf.h: Likewise.
59544
59545 2007-03-08  Jim Meyering  <jim@meyering.net>
59546
59547         * users.txt: Add parted.
59548
59549         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
59550
59551 2007-03-07  Bruno Haible  <bruno@clisp.org>
59552
59553         * m4/printf.m4: Make the shell script snippets copy&pastable.
59554
59555 2007-03-02  Bruno Haible  <bruno@clisp.org>
59556
59557         * lib/netinet_in_.h: New file.
59558         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
59559         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
59560         * modules/netinet_in (Files): Add lib/netinet_in_.h.
59561         (Depends-on): Add absolute-header.
59562         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
59563         into netinet/in.h.
59564
59565 2007-03-03  Bruno Haible  <bruno@clisp.org>
59566
59567         * lib/sys_select_.h: New file.
59568         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
59569         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
59570         * modules/sys_select (Files): Add lib/sys_select_.h.
59571         (Depends-on): Add absolute-header.
59572         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
59573         into sys/select.h.
59574
59575 2007-03-02  Bruno Haible  <bruno@clisp.org>
59576
59577         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
59578         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
59579         values.
59580         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
59581         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
59582         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
59583         * modules/sys_socket (Depends-on): Add absolute-header.
59584         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
59585         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
59586         (Include): Remove requirement of inclusion of <sys/types.h>.
59587
59588 2007-03-02  Bruno Haible  <bruno@clisp.org>
59589
59590         * lib/byteswap_.h (bswap_32): Fix formula.
59591
59592 2007-03-06  Bruno Haible  <bruno@clisp.org>
59593
59594         * modules/sprintf-posix-tests: New file.
59595         * tests/test-sprintf-posix.c: New file.
59596
59597         * modules/sprintf-posix: New file.
59598         * lib/sprintf.c: New file.
59599         * m4/sprintf-posix.m4: New file.
59600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
59601         REPLACE_SPRINTF.
59602         * lib/stdio_.h (sprintf): New declaration.
59603         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
59604         REPLACE_SPRINTF.
59605
59606 2007-03-06  Bruno Haible  <bruno@clisp.org>
59607
59608         * modules/vsprintf-posix-tests: New file.
59609         * tests/test-vsprintf-posix.c: New file.
59610         * tests/test-sprintf-posix.h: New file.
59611
59612         * modules/vsprintf-posix: New file.
59613         * lib/vsprintf.c: New file.
59614         * m4/vsprintf-posix.m4: New file.
59615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
59616         REPLACE_VSPRINTF.
59617         * lib/stdio_.h (vsprintf): New declaration.
59618         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
59619         REPLACE_VSPRINTF.
59620
59621 2007-03-06  Bruno Haible  <bruno@clisp.org>
59622
59623         * modules/vsnprintf (Depend-on): Remove minmax.
59624
59625 2007-03-06  Bruno Haible  <bruno@clisp.org>
59626
59627         * modules/snprintf-posix-tests: New file.
59628         * tests/test-snprintf-posix.c: New file.
59629
59630         * modules/snprintf-posix: New file.
59631         * m4/snprintf-posix.m4: New file.
59632         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
59633         gl_FUNC_SNPRINTF.
59634         (gl_FUNC_SNPRINTF): Invoke it.
59635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
59636         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
59637         is set.
59638         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
59639
59640 2007-03-06  Bruno Haible  <bruno@clisp.org>
59641
59642         * modules/vsnprintf-posix-tests: New file.
59643         * tests/test-vsnprintf-posix.c: New file.
59644         * tests/test-snprintf-posix.h: New file.
59645
59646         * modules/vsnprintf-posix: New file.
59647         * m4/vsnprintf-posix.m4: New file.
59648         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
59649         gl_FUNC_VSNPRINTF.
59650         (gl_FUNC_VSNPRINTF): Invoke it.
59651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
59652         * lib/stdio_.h (vsnprintf): Define as a replacement if
59653         REPLACE_VSNPRINTF is set.
59654         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
59655
59656 2007-03-06  Bruno Haible  <bruno@clisp.org>
59657
59658         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
59659         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
59660
59661 2007-03-06  Bruno Haible  <bruno@clisp.org>
59662
59663         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
59664         (asinl): Declare also if HAVE_DECL_ASINL is set.
59665         (atanl): Declare also if HAVE_DECL_ATANL is set.
59666         (ceill): Declare also if HAVE_DECL_CEILL is set.
59667         (cosl): Declare also if HAVE_DECL_COSL is set.
59668         (expl): Declare also if HAVE_DECL_EXPL is set.
59669         (floorl): Declare also if HAVE_DECL_FLOORL is set.
59670         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
59671         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
59672         (logl): Declare also if HAVE_DECL_LOGL is set.
59673         (sinl): Declare also if HAVE_DECL_SINL is set.
59674         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
59675         (tanl): Declare also if HAVE_DECL_TANL is set.
59676         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
59677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
59678         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
59679         declaration of frexpl, ldexpl.
59680         * modules/printf-frexpl (Depends-on): Add math.
59681         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
59682
59683 2007-03-05  Bruno Haible  <bruno@clisp.org>
59684
59685         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
59686         frexpl and ldexpl are declared.
59687         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
59688
59689 2007-03-05  Bruno Haible  <bruno@clisp.org>
59690
59691         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
59692         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
59693
59694 2007-03-05  Bruno Haible  <bruno@clisp.org>
59695
59696         * lib/stdio_.h: Include <stddef.h>.
59697
59698 2007-03-05  Bruno Haible  <bruno@clisp.org>
59699
59700         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
59701
59702 2007-03-05  Bruno Haible  <bruno@clisp.org>
59703
59704         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
59705         NetBSD 4, from Ralf Wildenhues.
59706
59707 2007-03-04  Bruno Haible  <bruno@clisp.org>
59708
59709         * lib/vasprintf.h: Update #if logic for the case when the functions
59710         exist but are overridden.
59711
59712 2007-03-04  Bruno Haible  <bruno@clisp.org>
59713
59714         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
59715         implementations: glibc-2.4 and MacOS X 10.3.
59716         * tests/test-vasnprintf-posix.c (test_function): Test also the case
59717         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
59718         * tests/test-vasprintf-posix.c (test_function): Likewise.
59719
59720 2007-03-04  Bruno Haible  <bruno@clisp.org>
59721
59722         * modules/vasprintf-posix-tests: New file.
59723         * tests/test-vasprintf-posix.c: New file.
59724
59725         * modules/vasprintf-posix: New file.
59726         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
59727         defined.
59728         * m4/vasprintf-posix.m4: New file.
59729         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
59730         gl_FUNC_VASPRINTF.
59731         (gl_FUNC_VASPRINTF): Invoke it.
59732         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
59733         here.
59734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
59735
59736 2007-03-04  Bruno Haible  <bruno@clisp.org>
59737
59738         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
59739         REPLACE_GETTIMEOFDAY.
59740         * modules/sys_time (Makefile.am): Likewise.
59741         * m4/sys_time_h.m4: Likewise.
59742         * m4/gettimeofday.m4: Likewise.
59743
59744 2007-03-04  Bruno Haible  <bruno@clisp.org>
59745
59746         * modules/vasnprintf-posix-tests: New file.
59747         * tests/test-vasnprintf-posix.c: New file.
59748
59749         * modules/vasnprintf-posix: New file.
59750         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
59751         printf-frexpl.h.
59752         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
59753         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
59754         REPLACE_VASNPRINTF is defined.
59755         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
59756         gl_FUNC_VASNPRINTF.
59757         (gl_FUNC_VASNPRINTF): Invoke it.
59758         * m4/vasnprintf-posix.m4: New file.
59759         * m4/printf.m4: New file.
59760
59761 2007-03-04  Bruno Haible  <bruno@clisp.org>
59762
59763         Compile progreloc.c only if --enable-relocatable is specified.
59764         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
59765         if --enable-relocatable was specified.
59766         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
59767         lib_SOURCES.
59768
59769 2007-03-04  Jim Meyering  <jim@meyering.net>
59770
59771         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
59772         Use it consistently, rather than enumerating errno constants.
59773
59774 2007-03-04  Bruno Haible  <bruno@clisp.org>
59775
59776         * modules/xvasprintf-tests: New file.
59777         * tests/test-xvasprintf.c: New file.
59778
59779         * modules/vasprintf-tests: New file.
59780         * tests/test-vasprintf.c: New file.
59781
59782         * modules/vasnprintf-tests: New file.
59783         * tests/test-vasnprintf.c: New file.
59784
59785         * modules/vsnprintf-tests: New file.
59786         * tests/test-vsnprintf.c: New file.
59787
59788         * modules/snprintf-tests: New file.
59789         * tests/test-snprintf.c: New file.
59790
59791 2007-03-04  Bruno Haible  <bruno@clisp.org>
59792
59793         Compile relocatable.c only if --enable-relocatable is specified.
59794         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59795         gl_RELOCATABLE_LIBRARY.
59796         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59797         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59798         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59799         gl_RELOCATABLE_LIBRARY.
59800         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59801         (Makefile.am): Remove lib_SOURCES.
59802         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59803         gl_RELOCATABLE_LIBRARY.
59804         (Makefile.am): Remove lib_SOURCES.
59805         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59806         always.
59807         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59808         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59809
59810 2007-03-04  Bruno Haible  <bruno@clisp.org>
59811
59812         * modules/argmatch-tests: New file.
59813         * tests/test-argmatch.c: New file.
59814
59815         * tests/test-allocsa.c (main): Halve the number of loop runs.
59816
59817         * modules/alloca-opt-tests: New file.
59818         * tests/test-alloca-opt.c: New file.
59819
59820 2007-03-04  Jim Meyering  <jim@meyering.net>
59821
59822         Work around difference between Linux ACLs and Solaris 10 ZFS.
59823         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
59824         for EINVAL.
59825
59826 2007-03-03  Bruno Haible  <bruno@clisp.org>
59827
59828         * modules/relocatable-prog (Depends-on): Add back progreloc's
59829         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
59830
59831 2007-03-03  Bruno Haible  <bruno@clisp.org>
59832
59833         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
59834         * modules/relocatable-lib: New file.
59835
59836 2007-03-03  Bruno Haible  <bruno@clisp.org>
59837
59838         * modules/relocatable-prog: Renamed from modules/relocatable.
59839         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
59840
59841 2007-03-03  Bruno Haible  <bruno@clisp.org>
59842
59843         * modules/relocatable-script (Files): Add doc/relocatable.texi,
59844         m4/relocatable-lib.m4.
59845         (Depends-on): Remove 'relocatable'.
59846         (configure.ac): Add gl_RELOCATABLE_NOP.
59847
59848 2007-03-03  Bruno Haible  <bruno@clisp.org>
59849
59850         * modules/relocatable-prog-wrapper: New file.
59851         * modules/relocatable (Depends-on): Add it. Remove all other
59852         dependencies except progname.
59853         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
59854
59855         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
59856         (gl_FUNC_STRERROR): Nop.
59857         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
59858
59859         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
59860         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
59861
59862         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
59863         (gl_FUNC_READLINK): Update.
59864
59865         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
59866
59867 2007-03-03  Bruno Haible  <bruno@clisp.org>
59868
59869         * lib/xreadlink.c: Include <unistd.h> unconditionally.
59870         * modules/xreadlink (Depends-on): Add unistd.
59871         * modules/xreadlink-with-size (Depends-on): Likewise.
59872
59873 2007-03-03  Bruno Haible  <bruno@clisp.org>
59874
59875         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
59876         extracted from gt_FUNC_SETENV.
59877         (gt_FUNC_SETENV): Remove macro.
59878         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
59879         remove gt_FUNC_SETENV.
59880
59881 2007-03-03  Bruno Haible  <bruno@clisp.org>
59882
59883         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59884         ENABLE_RELOCATABLE here.
59885         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59886
59887 2007-03-03  Bruno Haible  <bruno@clisp.org>
59888
59889         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59890         * tests/test-rbtreehash_list.c: Include progname.h.
59891         (main): Call set_program_name.
59892
59893         * modules/rbtree-oset-tests (Depends-on): Add progname.
59894         * tests/test-rbtree_oset.c: Include progname.h.
59895         (main): Call set_program_name.
59896
59897         * modules/rbtree-list-tests (Depends-on): Add progname.
59898         * tests/test-rbtree_list.c: Include progname.h.
59899         (main): Call set_program_name.
59900
59901         * modules/linked-list-tests (Depends-on): Add progname.
59902         * tests/test-linked_list.c: Include progname.h.
59903         (main): Call set_program_name.
59904
59905 2007-03-03  Bruno Haible  <bruno@clisp.org>
59906
59907         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59908         All uses of __restrict changed to _Restrict_.
59909         * lib/glob_.h (__restrict): Remove macro.
59910
59911 2007-03-02  Bruno Haible  <bruno@clisp.org>
59912
59913         * modules/gettext (configure.ac): Require gettext infrastructure
59914         from version 0.16.1.
59915
59916 2007-03-02  Bruno Haible  <bruno@clisp.org>
59917
59918         * modules/linkedhash-list-tests (Depends-on): Add progname.
59919         * tests/test-linkedhash_list.c: Include progname.h.
59920         (main): Call set_program_name.
59921
59922         * modules/carray-list-tests (Depends-on): Add progname.
59923         * tests/test-carray_list.c: Include progname.h.
59924         (main): Call set_program_name.
59925
59926         * modules/avltreehash-list-tests (Depends-on): Add progname.
59927         * tests/test-avltreehash_list.c: Include progname.h.
59928         (main): Call set_program_name.
59929
59930         * modules/avltree-oset-tests (Depends-on): Add progname.
59931         * tests/test-avltree_oset.c: Include progname.h.
59932         (main): Call set_program_name.
59933
59934         * modules/avltree-list-tests (Depends-on): Add progname.
59935         * tests/test-avltree_list.c: Include progname.h.
59936         (main): Call set_program_name.
59937
59938         * modules/array-oset-tests (Depends-on): Add progname.
59939         * tests/test-array_oset.c: Include progname.h.
59940         (main): Call set_program_name.
59941
59942         * modules/array-list-tests (Depends-on): Add progname.
59943         * tests/test-array_list.c: Include progname.h.
59944         (main): Call set_program_name.
59945
59946         * modules/argp-tests (Depends-on): Add progname.
59947         * tests/test-argp.c: Include argp.h first. Include progname.h.
59948         (main): Call set_program_name.
59949
59950 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59951
59952         * doc/gnulib-tool.texi (Initial import): Reword description of
59953         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59954         limited effect even if defined after the first system include.
59955
59956 2007-03-01  Bruno Haible  <bruno@clisp.org>
59957
59958         * build-aux/config.libpath: Update to libtool-1.5.22.
59959         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59960
59961 2007-03-01  Bruno Haible  <bruno@clisp.org>
59962
59963         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59964         foo_CFLAGS.
59965         Reported by Ralf Wildenhues.
59966
59967 2007-03-01  Bruno Haible  <bruno@clisp.org>
59968
59969         * build-aux/install-reloc: Remove object files left over by some
59970         compilers.
59971         Reported by Ralf Wildenhues.
59972
59973 2007-03-01  Bruno Haible  <bruno@clisp.org>
59974
59975         * build-aux/install-reloc: Break long lines.
59976
59977 2007-03-01  Bruno Haible  <bruno@clisp.org>
59978
59979         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59980         Reported by Ralf Wildenhues.
59981
59982 2007-03-01  Bruno Haible  <bruno@clisp.org>
59983
59984         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59985         include ordering constraints.
59986
59987 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59988
59989         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59990         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59991         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59992         as another example.
59993         * lib/time_.h: Fix misspelling.
59994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59995         Require gl_HEADER_TIME_H_DEFAULTS.
59996         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59997         * m4/time_r.m4 (gl_TIME_R): Likewise.
59998         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59999
60000 2007-03-01  Bruno Haible  <bruno@clisp.org>
60001
60002         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
60003         * m4/utimens.m4 (gl_UTIMENS): Likewise.
60004
60005 2007-03-01  Jim Meyering  <jim@meyering.net>
60006
60007         * modules/xreadlink (Maintainer): Add my name.
60008         * modules/xreadlink-with-size (Depends-on): Alphabetize.
60009
60010 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
60011             Bruno Haible  <bruno@clisp.org>
60012
60013         * build-aux/install-reloc: Compile also c-ctype.c.
60014         * build-aux/relocatable.sh.in: New file.
60015         * doc/relocatable.texi: New file.
60016         * doc/relocatable-maint.texi: New file.
60017         * doc/gnulib.texi: Include relocatable-maint.texi.
60018         * lib/progreloc.c: Include unistd.h unconditionally.
60019         * lib/relocwrapper.c: Include unistd.h unconditionally.
60020         Include c-ctype.h.
60021         (add_dotbin): Use c_tolower.
60022         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
60023         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
60024         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
60025         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
60026         to m4/relocatable-lib.m4.
60027         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
60028         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
60029         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
60030         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
60031         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
60032         * modules/relocatable: New file.
60033         * modules/relocatable-lib: New file.
60034         * modules/relocatable-script: New file.
60035
60036 2007-02-28  Bruno Haible  <bruno@clisp.org>
60037
60038         Import --enable-relocatable infrastructure.
60039         * build-aux/config.libpath: New file, from GNU gettext.
60040         * build-aux/install-reloc: New file, from GNU gettext.
60041         * build-aux/reloc-ldflags: New file, from GNU gettext.
60042         * lib/relocatable.h: New file, from GNU gettext.
60043         * lib/relocatable.c: New file, from GNU gettext.
60044         * lib/relocwrapper.c: New file, from GNU gettext.
60045         * m4/relocatable.m4: New file, from GNU gettext.
60046
60047 2007-02-28  Bruno Haible  <bruno@clisp.org>
60048
60049         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
60050
60051         * modules/xreadlink: New file, from GNU gettext with modifications.
60052         * lib/xreadlink.c: New file, from GNU gettext.
60053         * lib/xreadlink.h: Add comments.
60054         (xreadlink): New declaration.
60055
60056         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
60057         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
60058         lib/xreadlink-with-size.c.
60059         (configure.ac): Remove gl_XREADLINK invocation.
60060         (Makefile.am): Augment lib_SOURCES.
60061         * m4/xreadlink.m4: Remove file.
60062         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
60063         (xreadlink_with_size): Renamed from xreadink.
60064         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
60065         * modules/canonicalize (Depends-on): Replace xreadlink with
60066         xreadlink-with-size.
60067         * lib/canonicalize.c (canonicalize_filename_mode): Update.
60068
60069 2007-02-25  Jim Meyering  <jim@meyering.net>
60070
60071         * build-aux/announce-gen: When complaining about excess arguments,
60072         list them.
60073
60074 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60075
60076         * README: Document signed integer overflow situation more
60077         accurately.
60078
60079 2007-02-25  Bruno Haible  <bruno@clisp.org>
60080
60081         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
60082         'a' or 'A' conversion.
60083
60084 2007-02-25  Bruno Haible  <bruno@clisp.org>
60085
60086         * modules/filename: Renamed from modules/pathname.
60087         (Files): Replace lib/pathname.h with lib/filename.h. Replace
60088         lib/concatpath.c with lib/concat-filename.c.
60089         (Makefile.am): Update.
60090         (Include): Replace pathname.h with filename.h.
60091         * lib/filename.h: Renamed from lib/pathname.h.
60092         (concatenated_filename): Renamed from concatenated_pathname.
60093         * lib/concat-filename.c: Renamed from lib/concatpath.c.
60094         (concatenated_filename): Renamed from concatenated_pathname.
60095         * lib/findprog.c: Include filename.h instead of pathname.h.
60096         (find_in_path): Update.
60097         * lib/javacomp.c: Include filename.h instead of pathname.h.
60098         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
60099         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
60100         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
60101         is_oldgcj_14_13_usable, is_javac_usable): Update.
60102         * lib/javaexec.c: Include filename.h instead of pathname.h.
60103         (execute_java_class): Update.
60104         * modules/findprog: Update.
60105         * modules/javacomp: Update.
60106         * modules/javaexec: Update.
60107         * MODULES.html.sh (File system functions): Add 'filename', remove
60108         'pathname'.
60109
60110 2007-02-25  Bruno Haible  <bruno@clisp.org>
60111
60112         * modules/printf-frexpl-tests: New file.
60113         * tests/test-printf-frexpl.c: New file.
60114
60115         * modules/printf-frexpl: New file.
60116         * lib/printf-frexpl.h: New file.
60117         * lib/printf-frexpl.c: New file.
60118         * m4/printf-frexpl.m4: New file.
60119
60120 2007-02-25  Bruno Haible  <bruno@clisp.org>
60121
60122         * modules/printf-frexp-tests: New file.
60123         * tests/test-printf-frexp.c: New file.
60124
60125         * modules/printf-frexp: New file.
60126         * lib/printf-frexp.h: New file.
60127         * lib/printf-frexp.c: New file.
60128         * m4/printf-frexp.m4: New file.
60129
60130 2007-02-25  Bruno Haible  <bruno@clisp.org>
60131
60132         Assume automake >= 1.10 for the tests.
60133         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
60134         * modules/arctwo-tests: Likewise.
60135         * modules/argp-tests: Likewise.
60136         * modules/avltree-list-tests: Likewise.
60137         * modules/avltree-oset-tests: Likewise.
60138         * modules/avltreehash-list-tests: Likewise.
60139         * modules/carray-list-tests: Likewise.
60140         * modules/crc-tests: Likewise.
60141         * modules/des-tests: Likewise.
60142         * modules/gc-arcfour-tests: Likewise.
60143         * modules/gc-arctwo-tests: Likewise.
60144         * modules/gc-des-tests: Likewise.
60145         * modules/gc-hmac-md5-tests: Likewise.
60146         * modules/gc-hmac-sha1-tests: Likewise.
60147         * modules/gc-md2-tests: Likewise.
60148         * modules/gc-md4-tests: Likewise.
60149         * modules/gc-md5-tests: Likewise.
60150         * modules/gc-pbkdf2-sha1-tests: Likewise.
60151         * modules/gc-rijndael-tests: Likewise.
60152         * modules/gc-sha1-tests: Likewise.
60153         * modules/gc-tests: Likewise.
60154         * modules/getaddrinfo-tests: Likewise.
60155         * modules/hmac-md5-tests: Likewise.
60156         * modules/hmac-sha1-tests: Likewise.
60157         * modules/linked-list-tests: Likewise.
60158         * modules/linkedhash-list-tests: Likewise.
60159         * modules/lock-tests: Likewise.
60160         * modules/md2-tests: Likewise.
60161         * modules/md4-tests: Likewise.
60162         * modules/md5-tests: Likewise.
60163         * modules/rbtree-list-tests: Likewise.
60164         * modules/rbtree-oset-tests: Likewise.
60165         * modules/rbtreehash-list-tests: Likewise.
60166         * modules/read-file-tests: Likewise.
60167         * modules/rijndael-tests: Likewise.
60168         * modules/stdint-tests: Likewise.
60169         * modules/tls-tests: Likewise.
60170
60171 2007-02-24  Bruno Haible  <bruno@clisp.org>
60172
60173         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
60174         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
60175         function; instead check whether isnan with a double argument links.
60176         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
60177         function; instead check whether isnan with a 'long double' argument
60178         links.
60179         Reported by Eric Blake <ebb9@byu.net>.
60180
60181 2007-02-24  Bruno Haible  <bruno@clisp.org>
60182
60183         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
60184         defined.
60185         * lib/isnanl.c: Remove all code. Just include isnan.c.
60186         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
60187
60188 2007-02-25  Jim Meyering  <jim@meyering.net>
60189
60190         Avoid conflicting types for 'unsetenv' on FreeBSD.
60191         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
60192         conflicting with FreeBSD's (5.0 and 6.1) function declaration
60193         in stdlib.h.
60194
60195 2007-02-24  Bruno Haible  <bruno@clisp.org>
60196
60197         * modules/isnanl-nolibm-tests: New file.
60198         * tests/test-isnanl.c: New file.
60199
60200         * modules/isnanl-nolibm: New file.
60201         * lib/isnanl.h: New file.
60202         * lib/isnanl.c: New file.
60203         * m4/isnanl.m4: New file.
60204
60205 2007-02-24  Bruno Haible  <bruno@clisp.org>
60206
60207         * modules/isnan-nolibm-tests: New file.
60208         * tests/test-isnan.c: New file.
60209
60210         * modules/isnan-nolibm: New file.
60211         * lib/isnan.h: New file.
60212         * lib/isnan.c: New file.
60213         * m4/isnan.m4: New file.
60214
60215 2007-02-24  Bruno Haible  <bruno@clisp.org>
60216
60217         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
60218         assume that an exponent fits in 20 bits.
60219
60220 2007-02-24  Jim Meyering  <jim@meyering.net>
60221
60222         * m4/regex.m4: Update the description of the configure-time option,
60223         --without-included-regex, to state accurately what the defaults are,
60224         and perhaps to give people an idea why using this option is risky.
60225
60226 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60227
60228         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
60229         loops on small arguments.  This attempts to avoid the problem
60230         Bruno Haible reported for AIX 4.3.2 in
60231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
60232
60233 2007-02-23  Bruno Haible  <bruno@clisp.org>
60234
60235         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
60236         Needed for help2man.
60237
60238 2007-02-23  Karl Berry  <karl@gnu.org>
60239
60240         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
60241         exists, foo.h should be cvs-ignored, not committed.
60242
60243 2007-02-23  Eric Blake  <ebb9@byu.net>
60244
60245         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
60246         * lib/stat-time.h (includes): Likewise.
60247         * lib/utimecmp.c (includes): Likewise.
60248         * lib/utimens.h (includes): Likewise.
60249         * lib/getdate.y (includes): Also include "timespec.h" for use
60250         internal to the module.
60251         * modules/utimens (Depends-on): Revert yesterday's patch.
60252         * modules/nanosleep (Depends-on): Add missing dependency.
60253
60254 2007-02-22  Bruno Haible  <bruno@clisp.org>
60255
60256         * lib/glob.c: Don't include getlogin_r.h.
60257
60258 2007-02-22  Jim Meyering  <jim@meyering.net>
60259
60260         * modules/utimens (Depends-on): Add timespec, required for
60261         utimens.h's inclusion of timespec.h.
60262
60263 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
60264
60265         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
60266         long unreadable paths in GNU/Linux.  Problem reported by Andreas
60267         Schwab in
60268         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
60269         I'll try to think of a better way to fix the Solaris problem.
60270
60271         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
60272         like glibc; on Solaris 10, it fails with errno == EINVAL.
60273         POSIX says the behavior is unspecified if the first argument is NULL,
60274         so play it safe and never pass NULL to the system getcwd.
60275
60276 2007-02-21  Jim Meyering  <jim@meyering.net>
60277
60278         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
60279         of gettimeofday.  It would conflict with the one now always
60280         provided via sys_time_.h.  Reported by Matthew Woehlke, as
60281         an IRIX 6.5 build failure.
60282
60283 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60284
60285         Minor fixups to port to Solaris 10 with Sun C 5.8.
60286         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
60287         * modules/getcwd (Depends-on): Add dirfd.
60288         * lib/putenv.c (putenv): #undef it.
60289         (rpl_putenv): New decl.
60290         (malloc, free): Include <stdlib.h> rather than prototyping separately.
60291
60292 2007-02-20  Bruno Haible  <bruno@clisp.org>
60293
60294         * modules/stdio-tests: New file.
60295         * tests/test-stdio.c: New file.
60296
60297         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
60298         (Depends-on): Add stdio.
60299         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60300         (Include): Use <stdio.h> instead of vsnprintf.h.
60301         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60302         HAVE_DECL_VSNPRINTF.
60303         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
60304
60305         * modules/snprintf (Files): Remove lib/snprintf.h.
60306         (Depends-on): Add stdio.
60307         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60308         (Include): Use <stdio.h> instead of snprintf.h.
60309         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60310         HAVE_DECL_SNPRINTF.
60311         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
60312         * lib/getaddrinfo.c: Likewise.
60313
60314         * modules/stdio: New file.
60315         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
60316         * lib/snprintf.h: Remove file.
60317         * lib/vsnprintf.h: Remove file.
60318         * lib/.cppi-disable: Remove snprintf.h.
60319         * m4/stdio_h.m4: New file.
60320         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
60321
60322 2007-02-20  Jim Meyering  <jim@meyering.net>
60323
60324         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
60325         used by e.g., mingw.  From Bruno Haible.
60326
60327 2007-02-19  Bruno Haible  <bruno@clisp.org>
60328
60329         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
60330         warnings.
60331         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60332
60333 2007-02-19  Bruno Haible  <bruno@clisp.org>
60334
60335         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
60336         from mingw users.
60337
60338 2007-02-19  Bruno Haible  <bruno@clisp.org>
60339
60340         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
60341         warnings.
60342         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
60343
60344 2007-02-19  Jim Meyering  <jim@meyering.net>
60345
60346         Don't use FD after a successful "fdopendir (fd)".
60347         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
60348         Reset it by calling dirfd on the just-obtained DIR*.
60349
60350         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
60351         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
60352
60353 2007-02-18  Bruno Haible  <bruno@clisp.org>
60354
60355         * lib/readlink.c: Include <unistd.h>.
60356         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
60357         HAVE_READLINK.
60358         * modules/readlink (Depends-on): Add unistd.
60359         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60360         (Include): Add <unistd.h>.
60361
60362         * lib/getlogin_r.h: Remove file.
60363         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
60364         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
60365         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
60366         HAVE_DECL_GETLOGIN_R.
60367         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
60368         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60369         (Include): Use <unistd.h> instead of getlogin_r.h.
60370
60371         * lib/getcwd.h: Remove file.
60372         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
60373         * lib/xgetcwd.c: Likewise.
60374         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
60375         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
60376         * modules/getcwd (Files): Remove lib/getcwd.h.
60377         (Depends-on): Add unistd.
60378         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60379         (Include): Use <unistd.h> instad of getcwd.h.
60380
60381         * lib/ftruncate.c: Include <unistd.h> first.
60382         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
60383         Set HAVE_FTRUNCATE.
60384         * modules/ftruncate (Depends-on): Add unistd.
60385         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60386
60387         * lib/fchdir.c: Include <unistd.h> first.
60388         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
60389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
60390         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
60391         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60392         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
60393
60394         * lib/dup2.c: Include <unistd.h> first.
60395         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
60396         HAVE_DUP2.
60397         * modules/dup2 (Depends-on): Add unistd.
60398         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60399
60400         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
60401         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
60402         REPLACE_CHOWN. Don't define chown as a macro here.
60403         * modules/chown (Depends-on): Add unistd.
60404         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60405
60406         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
60407         Add definition for GL_LINK_WARNING.
60408         (chown, dup2): New declarations.
60409         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
60410         link warning.
60411         (ftruncate): New declaration.
60412         (getcwd): New declaration, taken from old getcwd.h.
60413         (getlogin_r): New declaration, taken from old getlogin_r.h.
60414         (readlink): New declaration.
60415         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
60416         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
60417         (gl_PREREQ_UNISTD): Remove macro.
60418         (gl_UNISTD_MODULE_INDICATOR): New macro.
60419         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
60420         many new variables. Don't set UNISTD_H.
60421         * modules/unistd (Description): Change.
60422         (Depends-on): Add link-warning.
60423         (configure.ac): Update.
60424         (Makefile.am): Create unistd.h always. Substitute many new variables
60425         into it.
60426
60427 2007-02-18  Bruno Haible  <bruno@clisp.org>
60428
60429         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
60430         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
60431         HAVE_GETSUBOPT.
60432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
60433         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
60434         * lib/getsubopt.h: Remove file.
60435         * modules/getsubopt (Files): Remove lib/getsubopt.h.
60436         (Depends-on): Add stdlib.
60437         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60438         (Includes): Use <stdlib.h> instead of getsubopt.h.
60439         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
60440         Set HAVE_GETSUBOPT.
60441         * lib/getsubopt.c: Don't include getsubopt.h.
60442
60443 2007-02-18  Bruno Haible  <bruno@clisp.org>
60444
60445         * modules/fchdir (Depends-on): Add dup2.
60446
60447 2007-02-18  Bruno Haible  <bruno@clisp.org>
60448
60449         * lib/stdlib_.h: Handle glibc's special invocation convention
60450         specially.
60451
60452 2007-02-18  Bruno Haible  <bruno@clisp.org>
60453
60454         * modules/stdlib-tests: New file.
60455         * tests/test-stdlib.c: New file.
60456
60457         * modules/mkstemp (Files): Remove lib/mkstemp.h.
60458         (Depends-on): Add stdlib.
60459         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60460         (Includes): Use <stdlib.h> instead of mkstemp.h.
60461         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60462         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
60463         * lib/mkstemp.c: Don't include mkstemp.h.
60464         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
60465         * lib/stdlib--.h: Don't include mkstemp.h.
60466
60467         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
60468         (Depends-on): Add stdlib.
60469         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60470         (Includes): Use <stdlib.h> instead of mkdtemp.h.
60471         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60472         HAVE_MKDTEMP.
60473         * lib/mkdtemp.c: Don't include mkdtemp.h.
60474         * lib/clean-temp.c: Don't include mkdtemp.h.
60475
60476         * modules/exit (Files): Remove lib/exit.h.
60477         (Depends-on): Add stdlib.
60478         (Makefile.am): Remove lib_SOURCES.
60479         (Include): Use <stdlib.h> instead of exit.h.
60480         * lib/argmatch.c: Don't include exit.h.
60481         * lib/execute.c: Likewise.
60482         * lib/pagealign_alloc.c: Likewise.
60483         * lib/pipe.c: Likewise.
60484         * lib/wait-process.c: Likewise.
60485         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
60486         * lib/exitfail.c: Likewise.
60487         * lib/savewd.c: Likewise.
60488         * lib/xsetenv.c: Likewise.
60489
60490         * modules/stdlib: New file.
60491         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
60492         and extra comments about mkstemp().
60493         * lib/exit.h: Remove file.
60494         * lib/mkdtemp.h: Remove file.
60495         * lib/mkstemp.h: Remove file.
60496         * m4/stdlib_h.m4: New file.
60497         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
60498
60499 2007-02-18  Bruno Haible  <bruno@clisp.org>
60500
60501         * modules/math-tests: New file.
60502         * tests/test-math.c: New file.
60503
60504         * modules/math: New file.
60505         * modules/mathl (Files): Remove lib/mathl.h.
60506         (Depends-on): Add math.
60507         (Makefile.am): Don't mention mathl.h.
60508         (Include): Use <math.h> instead of mathl.h.
60509         * lib/math_.h: New file.
60510         * lib/mathl.h: Remove file.
60511         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
60512         mathl.h.
60513         * lib/asinl.c: Likewise.
60514         * lib/atanl.c: Likewise.
60515         * lib/ceill.c: Likewise.
60516         * lib/cosl.c: Likewise.
60517         * lib/expl.c: Likewise.
60518         * lib/floorl.c: Likewise.
60519         * lib/frexpl.c: Likewise.
60520         * lib/ldexpl.c: Likewise.
60521         * lib/logl.c: Likewise.
60522         * lib/sincosl.c: Likewise.
60523         * lib/sinl.c: Likewise.
60524         * lib/sqrtl.c: Likewise.
60525         * lib/tanl.c: Likewise.
60526         * lib/trigl.c: Likewise.
60527         * m4/math_h.m4: New file.
60528         * MODULES.html.sh (Mathematics): Add math.
60529
60530 2007-02-17  Bruno Haible  <bruno@clisp.org>
60531
60532         * modules/wctype-tests: New file.
60533         * tests/test-wctype.c: New file.
60534
60535         * modules/wchar-tests: New file.
60536         * tests/test-wchar.c: New file.
60537
60538         * modules/unistd-tests: New file.
60539         * tests/test-unistd.c: New file.
60540
60541         * modules/time-tests: New file.
60542         * tests/test-time.c: New file.
60543
60544         * modules/sysexits-tests: New file.
60545         * tests/test-sysexits.c: New file.
60546
60547         * modules/sys_time-tests: New file.
60548         * tests/test-sys_time.c: New file.
60549
60550         * modules/sys_stat-tests: New file.
60551         * tests/test-sys_stat.c: New file.
60552
60553         * modules/sys_socket-tests: New file.
60554         * tests/test-sys_socket.c: New file.
60555
60556         * modules/sys_select-tests: New file.
60557         * tests/test-sys_select.c: New file.
60558
60559         * modules/string-tests: New file.
60560         * tests/test-string.c: New file.
60561
60562         * modules/stdbool-tests: New file.
60563         * tests/test-stdbool.c: New file.
60564
60565         * modules/netinet_in-tests: New file.
60566         * tests/test-netinet_in.c: New file.
60567
60568         * modules/inttypes-tests: New file.
60569         * tests/test-inttypes.c: New file.
60570
60571         * modules/fcntl-tests: New file.
60572         * tests/test-fcntl.c: New file.
60573
60574         * modules/byteswap-tests: New file.
60575         * tests/test-byteswap.c: New file.
60576
60577         * modules/arpa_inet-tests: New file.
60578         * tests/test-arpa_inet.c: New file.
60579
60580 2007-02-17  Bruno Haible  <bruno@clisp.org>
60581
60582         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
60583         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
60584         if the corresponding module is not enabled. Emit link warnings if
60585         the function is used nevertheless.
60586         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
60587         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
60588         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
60589         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
60590         * modules/inttypes (Depends-on): Add link-warning.
60591         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60592         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
60593         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
60594         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
60595         * modules/imaxdiv (configure.ac): Likewise.
60596         * modules/strtoimax (configure.ac): Likewise.
60597         * modules/strtoumax (configure.ac): Likewise.
60598
60599 2007-02-17  Bruno Haible  <bruno@clisp.org>
60600
60601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
60602         gl_STRING_MODULE_INDICATOR_DEFAULTS.
60603         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
60604         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
60605
60606 2007-02-17  Bruno Haible  <bruno@clisp.org>
60607
60608         * modules/link-warning: New file.
60609         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
60610         * lib/string_.h (GL_LINK_WARNING): Remove definition.
60611         * modules/string (Depends-on): Add link-warning.
60612         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60613         string.h.
60614         * MODULES.html.sh (Support for building libraries and executables): Add
60615         link-warning.
60616
60617 2007-02-17  Bruno Haible  <bruno@clisp.org>
60618
60619         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
60620         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
60621         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
60622         long lines.
60623
60624 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
60625             Bruno Haible  <bruno@clisp.org>
60626
60627         * modules/tmpfile: New file.
60628         * lib/tmpfile.c: New file.
60629         * m4/tmpfile.m4: New file.
60630         * MODULES.html.sh (func_all_modules): New section "Input/output".
60631
60632 2007-02-15  Bruno Haible  <bruno@clisp.org>
60633
60634         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
60635         (supports_delete_on_close): New function.
60636         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
60637
60638 2007-02-14  Bruno Haible  <bruno@clisp.org>
60639
60640         * modules/mbspcasecmp-tests: New file.
60641         * tests/test-mbspcasecmp.sh: New file.
60642         * tests/test-mbspcasecmp.c: New file.
60643
60644         New module mbspcasecmp.
60645         * modules/mbspcasecmp: New file.
60646         * lib/mbspcasecmp.c: New file.
60647         * lib/string_.h (strncasecmp): Change warning message.
60648         (mbspcasecmp): New declaration.
60649         * m4/mbspcasecmp.m4: New file.
60650         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60651         GNULIB_MBSPCASECMP.
60652         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
60653         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
60654
60655 2007-02-14  Bruno Haible  <bruno@clisp.org>
60656
60657         * modules/mbsncasecmp-tests: New file.
60658         * tests/test-mbsncasecmp.sh: New file.
60659         * tests/test-mbsncasecmp.c: New file.
60660
60661         New module mbsncasecmp.
60662         * modules/mbsncasecmp: New file.
60663         * lib/mbsncasecmp.c: New file.
60664         * lib/string_.h (mbsncasecmp): New declaration.
60665         * m4/mbsncasecmp.m4: New file.
60666         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60667         GNULIB_MBSNCASECMP.
60668         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
60669         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
60670
60671 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60672
60673         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
60674         Verify that it doesn't overlap with our flags.
60675         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
60676         do not have the desired effect in multibyte locales; instead, use
60677         mbscasecmp.
60678         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
60679         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
60680         we don't require GNU fnmatch ourselves (if our users require it, they
60681         should do so explicitly).
60682
60683         Fix regex code so it doesn't rely on strcasecmp.
60684         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
60685         Otherwise, include gnulib's langinfo.h.
60686         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
60687         undesirable behavior in non-C locales.  Instead, rely on localecharset.
60688         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
60689         * modules/regex (FILES): Remove m4/codeset.m4.
60690         (Depends-on): Add localcharset.  Remove strcase.
60691
60692 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60693
60694         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
60695         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
60696
60697 2007-02-13  Bruno Haible  <bruno@clisp.org>
60698
60699         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
60700         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60701
60702 2007-02-12  Bruno Haible  <bruno@clisp.org>
60703
60704         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60705         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
60706         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
60707         time warning rather than a link error.
60708
60709 2007-02-12  Bruno Haible  <bruno@clisp.org>
60710
60711         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
60712         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60713         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60714
60715 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60716
60717         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
60718         args, not 2.
60719
60720 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60721
60722         New module 'time', so that apps can include <time.h> as per
60723         POSIX and GNU instead of separate include files like time_r.h
60724         and timegm.h.  This implementation tries out a simpler approach
60725         for replacing decls in standard include files (as compared to
60726         the string module), somewhat as an experiment.
60727
60728         * config/srclist.txt: Comment out mktime.c for now.
60729         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
60730         since it doesn't apply any more.  Use generic wording instead.
60731         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
60732         'time'.
60733         * lib/time_.h, m4/time_h.m4, modules/time: New files.
60734         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
60735         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
60736         Don't include <sys/types.h>; no longer needed since we assume C89.
60737         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
60738         * lib/strftime.c: Likewise.
60739         * lib/time_r.c: Likewise.
60740         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
60741         * lib/nanosleep.c: Include <time.h> first, to check interface.
60742         * lib/strptime.c: Likewise.
60743         * lib/time_r.c: Likewise.
60744         * lib/timegm.c: Likewise.
60745         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
60746         needed.
60747         * lib/timegm.c: Don't include timegm.h; no longer needed.
60748         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
60749         time.h now handles any problems in that area.
60750         (struct timespec, nanosleep): Remove; time.h now arranges for these.
60751         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
60752         that time.h defines struct timespec.
60753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
60754         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
60755         handles that.
60756         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
60757         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
60758         needed.  Set REPLACE_LOCALTIME.
60759         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
60760         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
60761         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
60762         nanosleep; time_h.m4 now does that.  Don't require
60763         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
60764         module handles this now.
60765         * modules/getdate (Depends-on): Remove timespec.  Add time.
60766         * modules/nanosleep (Depends-on): Likewise.
60767         * modules/stat-time (Depends-on): Likewise.
60768         * modules/nanosleep (Include): Include time.h, not timespec.h.
60769         * modules/strptime (Files): Remove lib/strptime.h.
60770         (Depends-on): Add extensions, time.
60771         (Include): Include time.h, not strptime.h.
60772         * modules/time_r (Files): Remove lib/time_r.h.
60773         (Depends-on): Add time.
60774         (Include): Include time.h, not time_r.h.
60775         * modules/timegm: Likewise.
60776         * modules/timespec (Description): Now does timespec-related decls
60777         of our own, instead of struct timespec itself.
60778         (Depends-on): Add time; remove extensions.
60779         (Maintainer): Add self.
60780         * modules/utimecmp (Depends-on): Add time; remove timespec.
60781         * modules/utimens (Depends-on): Likewise.
60782         * modules/xnanosleep (Depends-on): Likewise.
60783
60784 2007-02-11  Bruno Haible  <bruno@clisp.org>
60785
60786         * lib/c-strstr.c: Include allocsa.h.
60787         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60788         * lib/c-strcasestr.c: Include allocsa.h.
60789         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60790         * lib/strcasestr.c: Include allocsa.h.
60791         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60792         * lib/mbsstr.c: Include allocsa.h.
60793         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60794         allocsa/freesa instead of malloc/free.
60795         * lib/mbscasestr.c: Include allocsa.h.
60796         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60797         allocsa/freesa instead of malloc/free.
60798         * modules/c-strstr (Depends-on): Add allocsa.
60799         * modules/c-strcasestr (Depends-on): Likewise.
60800         * modules/strcasestr (Depends-on): Likewise.
60801         * modules/mbsstr (Depends-on): Likewise.
60802         * modules/mbscasestr (Depends-on): Likewise.
60803
60804 2007-02-11  Bruno Haible  <bruno@clisp.org>
60805
60806         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60807
60808         * modules/mbsspn-tests: New file.
60809         * tests/test-mbsspn.sh: New file.
60810         * tests/test-mbsspn.c: New file.
60811
60812 2007-02-11  Bruno Haible  <bruno@clisp.org>
60813
60814         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60815
60816         * modules/mbspbrk-tests: New file.
60817         * tests/test-mbspbrk.sh: New file.
60818         * tests/test-mbspbrk.c: New file.
60819
60820 2007-02-11  Bruno Haible  <bruno@clisp.org>
60821
60822         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
60823         unneeded cast.
60824
60825         * modules/mbscspn-tests: New file.
60826         * tests/test-mbscspn.sh: New file.
60827         * tests/test-mbscspn.c: New file.
60828
60829 2007-02-11  Bruno Haible  <bruno@clisp.org>
60830
60831         * modules/mbscasecmp-tests: New file.
60832         * tests/test-mbscasecmp.sh: New file.
60833         * tests/test-mbscasecmp.c: New file.
60834
60835 2007-02-11  Bruno Haible  <bruno@clisp.org>
60836
60837         Ensure O(n) worst-case complexity of mbscasestr.
60838         * lib/mbscasestr.c: Include stdbool.h.
60839         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60840         functions.
60841         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
60842         the bookkeeping indicates that it's worth it.
60843         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
60844
60845         * modules/mbscasestr-tests: New file.
60846         * tests/test-mbscasestr1.c: New file.
60847         * tests/test-mbscasestr2.sh: New file.
60848         * tests/test-mbscasestr2.c: New file.
60849         * tests/test-mbscasestr3.sh: New file.
60850         * tests/test-mbscasestr3.c: New file.
60851         * tests/test-mbscasestr4.sh: New file.
60852         * tests/test-mbscasestr4.c: New file.
60853         * m4/locale-tr.m4: New file.
60854
60855 2007-02-11  Bruno Haible  <bruno@clisp.org>
60856
60857         Ensure O(n) worst-case complexity of mbsstr.
60858         * lib/mbsstr.c: Include stdbool.h.
60859         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60860         functions.
60861         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
60862         bookkeeping indicates that it's worth it.
60863         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
60864
60865         * modules/mbsstr-tests: New file.
60866         * tests/test-mbsstr1.c: New file.
60867         * tests/test-mbsstr2.sh: New file.
60868         * tests/test-mbsstr2.c: New file.
60869         * tests/test-mbsstr3.sh: New file.
60870         * tests/test-mbsstr3.c: New file.
60871         * m4/locale-fr.m4: New file.
60872
60873 2007-02-11  Bruno Haible  <bruno@clisp.org>
60874
60875         * lib/mbsrchr.c (mbsrchr): Fix bug.
60876
60877         * modules/mbsrchr-tests: New file.
60878         * tests/test-mbsrchr.sh: New file.
60879         * tests/test-mbsrchr.c: New file.
60880
60881 2007-02-11  Bruno Haible  <bruno@clisp.org>
60882
60883         * lib/mbschr.c (mbschr): Fix bug.
60884
60885         * modules/mbschr-tests: New file.
60886         * tests/test-mbschr.sh: New file.
60887         * tests/test-mbschr.c: New file.
60888         * m4/locale-zh.m4: New file.
60889
60890 2007-02-11  Bruno Haible  <bruno@clisp.org>
60891
60892         Support for copying multibyte string iterators.
60893         * lib/mbiter.h: Include <string.h>.
60894         (mbiter_multi_copy): New function.
60895         (mbi_copy): New macro.
60896         * lib/mbuiter.h: Include <string.h>.
60897         (mbuiter_multi_copy): New function.
60898         (mbui_copy): New macro.
60899
60900 2007-02-11  Bruno Haible  <bruno@clisp.org>
60901
60902         New module mbslen.
60903         * modules/mbslen: New file.
60904         * lib/mbslen.c: New file.
60905         * lib/string_.h (mbslen): New declaration.
60906         * m4/mbslen.m4: New file.
60907         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60908         GNULIB_MBSLEN.
60909         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60910         * MODULES.html.sh (Internationalization functions): Add mbslen.
60911
60912 2007-02-11  Bruno Haible  <bruno@clisp.org>
60913
60914         Ensure O(n) worst-case complexity of strcasestr substitute.
60915         * lib/strcasestr.c: Include stdbool.h.
60916         (knuth_morris_pratt): New function.
60917         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60918         bookkeeping indicates that it's worth it.
60919         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60920
60921         * modules/strcasestr-tests: New file.
60922         * tests/test-strcasestr.c: New file.
60923
60924 2007-02-11  Bruno Haible  <bruno@clisp.org>
60925
60926         Ensure O(n) worst-case complexity of c_strcasestr.
60927         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60928         (knuth_morris_pratt): New function.
60929         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60930         the bookkeeping indicates that it's worth it.
60931         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60932
60933         * modules/c-strcasestr-tests: New file.
60934         * tests/test-c-strcasestr.c: New file.
60935
60936 2007-02-11  Bruno Haible  <bruno@clisp.org>
60937
60938         Ensure O(n) worst-case complexity of c_strstr.
60939         * lib/c-strstr.c: Include stdbool.h, string.h.
60940         (knuth_morris_pratt): New function.
60941         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60942         bookkeeping indicates that it's worth it.
60943         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60944
60945         * lib/c-strstr.c: Complete rewrite for maintainability.
60946
60947         * modules/c-strstr-tests: New file.
60948         * tests/test-c-strstr.c: New file.
60949
60950 2007-02-11  Bruno Haible  <bruno@clisp.org>
60951
60952         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60953         5.2.1 and earlier, whereby \055 was treated just like the range
60954         delimiter '-'.
60955         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60956
60957 2007-02-08  Bruno Haible  <bruno@clisp.org>
60958
60959         * modules/regex (Depends-on): Add stdbool.
60960         Reported by Dalibor Topic <robilad@kaffe.org>.
60961
60962 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60963
60964         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60965         Prefer returning from main to exiting from it.
60966         Remove unnecessary parens after sizeof.
60967
60968 2007-02-05  Bruno Haible  <bruno@clisp.org>
60969
60970         New module mbssep.
60971         * modules/mbssep: New file.
60972         * lib/mbssep.c: New file.
60973         * lib/string_.h (strsep): Add a conditional link warning.
60974         (mbssep): New declaration.
60975         * m4/mbssep.m4: New file.
60976         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60977         GNULIB_MBSSEP.
60978         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60979         * MODULES.html.sh (Internationalization functions): Add mbssep.
60980
60981 2007-02-05  Bruno Haible  <bruno@clisp.org>
60982
60983         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60984         Optimize search in case of 1 delimiter.
60985
60986 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60987
60988         * lib/acl.h: Include sys/types.h before sys/acl.h.
60989
60990 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60991
60992         Merge upstream fix for glibc bugzilla #3957:
60993
60994         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60995
60996         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60997         bit for RE_HAT_LISTS_NOT_NEWLINE.
60998         (build_charclass_op): Remove bogus comment.
60999
61000 2007-02-05  Simon Josefsson  <simon@josefsson.org>
61001
61002         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
61003
61004 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
61005
61006         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
61007         * lib/memmem.c [!defined _LIBC]: Include config.h.
61008
61009 2007-02-04  Bruno Haible  <bruno@clisp.org>
61010
61011         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
61012         warning message.
61013
61014 2007-02-04  Bruno Haible  <bruno@clisp.org>
61015
61016         New module mbstok_r.
61017         * modules/mbstok_r: New file.
61018         * lib/mbstok_r.c: New file.
61019         * lib/string_.h (strtok_r): Change argument names to match the
61020         comments. Add a conditional link warning.
61021         (mbstok_r): New declaration.
61022         * m4/mbstok_r.m4: New file.
61023         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61024         GNULIB_MBSTOK_R.
61025         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
61026         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
61027
61028 2007-02-04  Bruno Haible  <bruno@clisp.org>
61029
61030         New module mbsspn.
61031         * modules/mbsspn: New file.
61032         * lib/mbsspn.c: New file.
61033         * lib/string_.h (strspn): Add a conditional link warning.
61034         (mbsspn): New declaration.
61035         * m4/mbsspn.m4: New file.
61036         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61037         GNULIB_MBSSPN.
61038         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
61039         * MODULES.html.sh (Internationalization functions): Add mbsspn.
61040
61041 2007-02-04  Bruno Haible  <bruno@clisp.org>
61042
61043         New module mbspbrk.
61044         * modules/mbspbrk: New file.
61045         * lib/mbspbrk.c: New file.
61046         * lib/string_.h (strpbrk): Add a conditional link warning.
61047         (mbspbrk): New declaration.
61048         * m4/mbspbrk.m4: New file.
61049         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61050         GNULIB_MBSPBRK.
61051         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
61052         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
61053
61054 2007-02-04  Bruno Haible  <bruno@clisp.org>
61055
61056         New module mbscspn.
61057         * modules/mbscspn: New file.
61058         * lib/mbscspn.c: New file.
61059         * lib/string_.h (strcspn): Add a conditional link warning.
61060         (mbscspn): New declaration.
61061         * m4/mbscspn.m4: New file.
61062         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61063         GNULIB_MBSCSPN.
61064         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
61065         * MODULES.html.sh (Internationalization functions): Add mbscspn.
61066
61067 2007-02-04  Bruno Haible  <bruno@clisp.org>
61068
61069         New module mbscasestr, reduced goal of strcasestr.
61070         * modules/mbscasestr: New file.
61071         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
61072         (mbscasestr): Renamed from strcasestr.
61073         * lib/strcasestr.c: Don't include mbuiter.h.
61074         (strcasestr): Remove support for multibyte locales.
61075         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
61076         Change the conditional link warning.
61077         (mbscasestr): New declaration.
61078         * m4/mbscasestr.m4: New file.
61079         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
61080         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
61081         REPLACE_STRCASESTR.
61082         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
61083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61084         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
61085         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
61086         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
61087         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
61088         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
61089         (Depends-on): Remove mbuiter.
61090         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
61091
61092 2007-02-04  Bruno Haible  <bruno@clisp.org>
61093
61094         Simplify handling of strncasecmp.
61095         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
61096         the conditional link warning.
61097         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61098         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
61099         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
61100         * modules/strcase (configure.ac): Don't invoke
61101         gl_STRING_MODULE_INDICATOR.
61102         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
61103
61104 2007-02-04  Bruno Haible  <bruno@clisp.org>
61105
61106         New module mbscasecmp, reduced goal of strcasecmp.
61107         * modules/mbscasecmp: New file.
61108         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
61109         (mbscasecmp): Renamed from strcasecmp.
61110         * lib/strcasecmp.c: Don't include mbuiter.h.
61111         (strcasecmp): Remove support for multibyte locales.
61112         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
61113         Change the conditional link warning.
61114         (mbscasecmp): New declaration.
61115         * m4/mbscasecmp.m4: New file.
61116         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
61117         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
61118         REPLACE_STRCASECMP.
61119         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
61120         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61121         GNULIB_MBSCASECMP.
61122         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
61123         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
61124         * modules/strcase (Files): Remove m4/mbrtowc.m4.
61125         (Depends-on): Remove mbuiter.
61126         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
61127
61128 2007-02-04  Bruno Haible  <bruno@clisp.org>
61129
61130         New module mbsstr. Remove module strstr.
61131         * modules/mbsstr: New file.
61132         * modules/strstr: Remove file.
61133         * lib/mbsstr.c: Renamed from lib/strstr.c.
61134         (mbsstr): Renamed from strstr.
61135         * lib/string_.h (strstr): Remove declaration. Change the conditional
61136         link warning.
61137         (mbsstr): New declaration.
61138         * m4/mbsstr.m4: New file.
61139         * m4/strstr.m4: Remove file.
61140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
61141         REPLACE_STRSTR.
61142         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
61143         Don't initialize GNULIB_STRSTR.
61144         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
61145         substitute GNULIB_STRSTR and REPLACE_STRSTR.
61146         * MODULES.html.sh (Internationalization functions): Add mbsstr.
61147         (Support for systems lacking ANSI C 89): Remove strstr.
61148
61149 2007-02-04  Bruno Haible  <bruno@clisp.org>
61150
61151         New module mbsrchr.
61152         * modules/mbsrchr: New file.
61153         * lib/mbsrchr.c: New file.
61154         * lib/string_.h (strrchr): Add a conditional link warning.
61155         (mbsrchr): New declaration.
61156         * m4/mbsrchr.m4: New file.
61157         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61158         GNULIB_MBSRCHR.
61159         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
61160         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
61161
61162 2007-02-04  Bruno Haible  <bruno@clisp.org>
61163
61164         New module mbschr.
61165         * modules/mbschr: New file.
61166         * lib/mbschr.c: New file.
61167         * lib/string_.h (strchr): Add a conditional link warning.
61168         (mbschr): New declaration.
61169         * m4/mbschr.m4: New file.
61170         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61171         GNULIB_MBSCHR.
61172         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
61173         * MODULES.html.sh (Internationalization functions): Add mbschr.
61174
61175 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
61176
61177         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
61178
61179         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
61180
61181 2007-02-04  Bruno Haible  <bruno@clisp.org>
61182
61183         New module description section 'configure.ac-early'.
61184         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
61185         (func_get_autoconf_early_snippet): New function.
61186         (func_import, func_create_testdir): Use it. Remove special cases for
61187         modules 'extensions' and 'lock'.
61188         * modules/extensions (configure.ac-early): Require
61189         gl_USE_SYSTEM_EXTENSIONS.
61190         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
61191
61192 2007-02-04  Bruno Haible  <bruno@clisp.org>
61193
61194         Make use of gcj-4.3's -fsource and -ftarget option.
61195         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
61196         and if so try the options -fsource and -ftarget.
61197         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
61198         source_version, ftarget_option, target_version arguments.
61199         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
61200         (is_envjavac_oldgcj_14_14_usable): Renamed from
61201         is_envjavac_gcj_14_14_usable.
61202         (is_envjavac_oldgcj_14_13_usable): Renamed from
61203         is_envjavac_gcj_14_13_usable.
61204         (is_gcj_present): Update.
61205         (is_gcj_43, is_gcj43_usable): New functions.
61206         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
61207         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
61208         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
61209         try the options -fsource and -ftarget.
61210
61211 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61212
61213         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
61214         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
61215         larger value.
61216
61217 2007-02-03  Jim Meyering  <jim@meyering.net>
61218
61219         Give tools a better chance to allocate space for very large buffers.
61220         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
61221
61222         Make pwd and readlink work also when run with an unreadable parent dir
61223         on systems with openat support.
61224         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
61225         provided getcwd function, even when we have openat support.
61226         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
61227
61228 2007-02-02  Bruno Haible  <bruno@clisp.org>
61229
61230         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61231         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
61232         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
61233         portability problems if one of these functions is only used on specific
61234         platforms.
61235         Reported by Paul Eggert.
61236
61237 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
61238
61239         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
61240         is causing more trouble than it's curing.
61241         * lib/regex_internal.h (__mempcpy): Remove.
61242         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
61243         (and make the code a tad smaller to boot).
61244         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
61245
61246 2007-02-02  Jim Meyering  <jim@meyering.net>
61247
61248         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
61249         section, not in the Makefile.am: one.
61250
61251 2007-02-02  Eric Blake  <ebb9@byu.net>
61252
61253         * lib/strchrnul.c: Always include config.h first.
61254
61255         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
61256         gnulib strstr is not necessary here.
61257
61258 2007-02-02  Simon Josefsson  <simon@josefsson.org>
61259
61260         * m4/socklen.m4: Fix typo.
61261
61262 2007-02-02  Eric Blake  <ebb9@byu.net>
61263
61264         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
61265         * modules/netinet_in (Makefile.am): Likewise.
61266
61267 2007-02-01  Bruno Haible  <bruno@clisp.org>
61268
61269         * lib/string_.h (GL_LINK_WARNING): New macro.
61270         (strcasecmp, strstr, strcasestr): If provided by the system,
61271         conditionally define as a macro that leads to a warning instead of to
61272         an error.
61273         (strncasecmp): Conditionally define as a macro that leads to a warning.
61274
61275 2007-02-01  Karl Berry  <karl@gnu.org>
61276
61277         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
61278
61279 2007-02-01  Bruno Haible  <bruno@clisp.org>
61280
61281         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
61282         renamings.
61283
61284 2007-02-01  Eric Blake  <ebb9@byu.net>
61285
61286         * modules/regex (Depends-on): Revert dependence on mempcpy.
61287         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
61288         module's definition of mempcpy.
61289         Reported by Paul Eggert.
61290
61291 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61292
61293         * lib/string_.h: If the gnulib module XYZ is not present, undefine
61294         the symbol XYZ before redefining it.  This fixes a problem with
61295         programs that don't use XYZ, when compiled on systems that define
61296         XYZ to something else.
61297
61298 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
61299
61300         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
61301         occurs when "mkdir -m foo" creates a setgid directory that is (1)
61302         writeable to group or other and (2) is intended to have a special
61303         mode bit that is set or cleared.  In such a case, the directory
61304         should be neither group- nor other-writeable until the special
61305         mode bits are right.
61306
61307 2007-01-31  Eric Blake  <ebb9@byu.net>
61308
61309         * modules/mountlist (Depends-on): Add strstr.
61310
61311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
61312         bug.
61313         * modules/string (Makefile.am): Remove redundant replacement.
61314         * modules/regex (Depends-on): Add mempcpy.
61315
61316 2007-01-31  Bruno Haible  <bruno@clisp.org>
61317
61318         New module description field 'Link'.
61319         * gnulib-tool (func_usage): Document --extract-link-directive.
61320         (sed_extract_prog): Recognize 'Link' directive.
61321         (func_get_link_directive): New function.
61322         (func_import): Show summary of link directives.
61323         Handle --extract-link-directive option.
61324         * modules/acl (Link): New section.
61325         * modules/clock-time (Link): New section.
61326         * modules/euidaccess (Link): New section.
61327         * modules/gettext (Link): New section.
61328         * modules/iconv (Link): New section.
61329         * modules/lock (Link): New section.
61330         * modules/nanosleep (Link): New section.
61331         * modules/readline (Link): New section.
61332
61333 2007-01-27  Bruno Haible  <bruno@clisp.org>
61334
61335         Enforce the use of gnulib modules for unportable <string.h> functions.
61336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
61337         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
61338         (gl_HEADER_STRING_H_BODY): Require it.
61339         * lib/string_.h: If the gnulib module XYZ is not present, redefine
61340         the symbol XYZ to one that gives a link error.
61341         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
61342         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
61343         * modules/mempcpy (configure.ac): Likewise.
61344         * modules/memrchr (configure.ac): Likewise.
61345         * modules/stpcpy (configure.ac): Likewise.
61346         * modules/stpncpy (configure.ac): Likewise.
61347         * modules/strcase (configure.ac): Likewise.
61348         * modules/strcasestr (configure.ac): Likewise.
61349         * modules/strchrnul (configure.ac): Likewise.
61350         * modules/strdup (configure.ac): Likewise.
61351         * modules/strndup (configure.ac): Likewise.
61352         * modules/strnlen (configure.ac): Likewise.
61353         * modules/strpbrk (configure.ac): Likewise.
61354         * modules/strsep (configure.ac): Likewise.
61355         * modules/strstr (configure.ac): Likewise.
61356         * modules/strtok_r (configure.ac): Likewise.
61357
61358 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
61359
61360         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
61361
61362 2007-01-30  Jim Meyering  <jim@meyering.net>
61363
61364         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
61365
61366 2007-01-29  Bruno Haible  <bruno@clisp.org>
61367
61368         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
61369         * lib/execute.c: Likewise.
61370         * lib/pipe.c: Likewise.
61371         * lib/printf-args.h: Likewise.
61372         * lib/printf-args.c: Likewise.
61373         * lib/printf-parse.c: Likewise.
61374         * lib/vasnprintf.c: Likewise.
61375
61376 2007-01-29  Eric Blake  <ebb9@byu.net>
61377
61378         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
61379         declaration.
61380
61381 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
61382
61383         * lib/strptime.h (strptime): Use 'restrict' for args where
61384         POSIX requires this.
61385         * lib/strptime.c (strptime): Likewise.
61386         Change license notice from LGPL to GPL, since gnulib-tool will
61387         change this as needed.
61388         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
61389         defined.
61390         Include "strptime.h" first, to check interface.
61391         Do not #undef _LIBC and _NL_CURRENT.
61392         Do not include <stdlib.h>; no longer needed.
61393         Include "time_r.h" and declare ptime_locale_status
61394         only if _LIBC is not defined.
61395         (__P): Remove unused macro.
61396         (match_string): Bring back glibc version, but use it only if _LIBC
61397         is defined.
61398         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
61399         Remove unnecessary assertion and abort() call.
61400         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
61401         * m4/strptime.m4: Fix serial number comment.
61402         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
61403         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
61404         (Depends-on): Add time_r.
61405
61406 2007-01-29  Bruno Haible  <bruno@clisp.org>
61407
61408         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61409         strptime.
61410         * modules/strptime (Depends-on): Add stdbool.
61411         * lib/strptime.h: Include <time.h> always. Add comments.
61412
61413 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61414
61415         * modules/strptime: New file.
61416         * lib/strptime.h: New file.
61417         * lib/strptime.c: New file.
61418         * m4/strptime.m4: New file.
61419
61420 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61421
61422         * MODULES.html.sh: New module mpsort.
61423         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
61424
61425         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
61426         a circularity problem with HP-UX ia64 reported by Bob Proulx in
61427         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
61428         All uses changed.
61429         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
61430         All uses changed.
61431         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
61432         to _Restrict_.
61433         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
61434         the parameter matches the prototype.
61435
61436 2007-01-28  Jim Meyering  <jim@meyering.net>
61437
61438         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
61439         sys/time.h here, reverting that part of the previous patch:
61440         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
61441
61442 2007-01-28  Bruno Haible  <bruno@clisp.org>
61443
61444         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
61445         value of $(SYS_TIME_H).
61446         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
61447         remove it conditionally, too. [added by Jim Meyering]
61448         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
61449         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61450         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
61451         GETTIMEOFDAY_REPLACEMENT to 1.
61452
61453 2007-01-28  Bruno Haible  <bruno@clisp.org>
61454
61455         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
61456         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
61457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
61458         Set UNISTD_H instead of UNISTD_H2.
61459         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
61460
61461 2007-01-28  Bruno Haible  <bruno@clisp.org>
61462
61463         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
61464         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
61465
61466 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61467
61468         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
61469         (func_create_testdir): Ensure C locale for `grep' and `tr'
61470         character ranges.
61471         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
61472         ACLOCAL_AMFLAGS parsing state machine.
61473
61474 2007-01-27  Bruno Haible  <bruno@clisp.org>
61475
61476         * modules/unistr/base: Update.
61477
61478 2007-01-27  Bruno Haible  <bruno@clisp.org>
61479
61480         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
61481         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
61482         * modules/unistr/u32-mbtouc-unsafe: Renamed from
61483         modules/unistr/u32-mbtouc.
61484         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
61485         * lib/unistr.h: Update.
61486         * lib/linebreak.c: Update.
61487         * modules/unistr/u32-mbtouc: Renamed from
61488         modules/unistr/u32-mbtouc-safe.
61489         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
61490         * lib/unistr.h: Update.
61491         * lib/unistr/u32-to-u8.c: Update.
61492         * lib/unistr/u32-to-u16.c: Update.
61493
61494 2007-01-27  Bruno Haible  <bruno@clisp.org>
61495
61496         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
61497         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
61498         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
61499         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
61500         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
61501         * modules/unistr/u16-mbtouc-unsafe: Renamed from
61502         modules/unistr/u16-mbtouc.
61503         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
61504         * lib/unistr.h: Update.
61505         * lib/linebreak.c: Update.
61506         * modules/linebreak: Update.
61507         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
61508         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
61509         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
61510         * modules/unistr/u16-mbtouc: Renamed from
61511         modules/unistr/u16-mbtouc-safe.
61512         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
61513         * lib/unistr.h: Update.
61514         * lib/unistr/u16-to-u8.c: Update.
61515         * modules/unistr/u16-to-u8: Update.
61516         * lib/unistr/u16-to-u32.c: Update.
61517         * modules/unistr/u16-to-u32: Update.
61518
61519 2007-01-27  Bruno Haible  <bruno@clisp.org>
61520
61521         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
61522         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
61523         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
61524         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
61525         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
61526         * modules/unistr/u8-mbtouc-unsafe: Renamed from
61527         modules/unistr/u8-mbtouc.
61528         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
61529         * lib/unistr.h: Update.
61530         * lib/striconveh.c: Update.
61531         * modules/striconveh: Update.
61532         * lib/linebreak.c: Update.
61533         * modules/linebreak: Update.
61534         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
61535         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
61536         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
61537         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
61538         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
61539         * lib/unistr.h: Update.
61540         * lib/striconveh.c: Update.
61541         * modules/striconveh: Update.
61542         * lib/unistr/u8-to-u16.c: Update.
61543         * modules/unistr/u8-to-u16: Update.
61544         * lib/unistr/u8-to-u32.c: Update.
61545         * modules/unistr/u8-to-u32: Update.
61546
61547 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61548
61549         Sync from Libtool.
61550         * lib/argz.c: Do not include strings.h nor memory.h, include
61551         string.h unconditionally.  Patch by Simon Josefsson.
61552
61553 2007-01-27  Bruno Haible  <bruno@clisp.org>
61554
61555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
61556         from gl_HEADER_STRING_H_BODY.
61557         (gl_HEADER_STRING_H_BODY): Require it.
61558         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
61559         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61560         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61561         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61562         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61563         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
61564         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61565         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61566         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
61567         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61568         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61569         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
61570         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61571         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61572         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61573
61574 2007-01-27  Bruno Haible  <bruno@clisp.org>
61575
61576         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
61577         check_PROGRAMS into noinst_PROGRAMS.
61578         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
61579         check_PROGRAMS in this case.
61580         (func_import): Set for_test to false.
61581         (func_create_testdir): Set for_test to true.
61582
61583 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61584             Bruno Haible  <bruno@clisp.org>
61585
61586         * modules/strcasestr (Files): Remove lib/strcasestr.h.
61587         (Depends-on): Add string.
61588         (Includes): Use <string.h> instead of strcasestr.h.
61589         * modules/string (Makefile.am): Also substitute the value of
61590         REPLACE_STRCASESTR.
61591         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
61592         assume strcasestr is declared in <string.h> not <strings.h>. Also
61593         set REPLACE_STRCASESTR.
61594         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
61595         REPLACE_STRCASESTR.
61596         * lib/strcasestr.h: Remove file.
61597         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
61598         * lib/string_.h (strcasestr): New declaration.
61599
61600 2007-01-27  Bruno Haible  <bruno@clisp.org>
61601
61602         * lib/string_.h: Use 'extern'.
61603
61604 2007-01-27  Jim Meyering  <jim@meyering.net>
61605
61606         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
61607         of set-but-not-used local, "q".
61608
61609         * lib/mempcpy.c: Include <config.h> before <string.h>.
61610         This fixes a compilation error on HP-UX, due to the system's
61611         "restrict"-using mempcpy prototype.
61612
61613 2007-01-26  Bruno Haible  <bruno@clisp.org>
61614
61615         Small optimization.
61616         * lib/javacomp.c: Include c-strstr.h.
61617          (is_envjavac_gcj): Use c_strstr instead of strstr.
61618         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
61619
61620 2007-01-26  Bruno Haible  <bruno@clisp.org>
61621
61622         * MODULES.html.sh (Unicode string functions): Add the new modules.
61623
61624         * modules/uniconv/u32-strconv-to-locale: New file.
61625         * lib/uniconv/u32-strconv-to-locale.c: New file.
61626
61627         * modules/uniconv/u16-strconv-to-locale: New file.
61628         * lib/uniconv/u16-strconv-to-locale.c: New file.
61629
61630         * modules/uniconv/u8-strconv-to-locale: New file.
61631         * lib/uniconv/u8-strconv-to-locale.c: New file.
61632
61633         * modules/uniconv/u32-strconv-from-locale: New file.
61634         * lib/uniconv/u32-strconv-from-locale.c: New file.
61635
61636         * modules/uniconv/u16-strconv-from-locale: New file.
61637         * lib/uniconv/u16-strconv-from-locale.c: New file.
61638
61639         * modules/uniconv/u8-strconv-from-locale: New file.
61640         * lib/uniconv/u8-strconv-from-locale.c: New file.
61641
61642         * modules/uniconv/u32-strconv-to-enc: New file.
61643         * lib/uniconv/u32-strconv-to-enc.c: New file.
61644         * modules/uniconv/u32-strconv-to-enc-tests: New file.
61645         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
61646
61647         * modules/uniconv/u16-strconv-to-enc: New file.
61648         * lib/uniconv/u16-strconv-to-enc.c: New file.
61649         * lib/uniconv/u-strconv-to-enc.h: New file.
61650         * modules/uniconv/u16-strconv-to-enc-tests: New file.
61651         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
61652
61653         * modules/uniconv/u8-strconv-to-enc: New file.
61654         * lib/uniconv/u8-strconv-to-enc.c: New file.
61655         * modules/uniconv/u8-strconv-to-enc-tests: New file.
61656         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
61657
61658         * modules/uniconv/u32-strconv-from-enc: New file.
61659         * lib/uniconv/u32-strconv-from-enc.c: New file.
61660         * modules/uniconv/u32-strconv-from-enc-tests: New file.
61661         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
61662
61663         * modules/uniconv/u16-strconv-from-enc: New file.
61664         * lib/uniconv/u16-strconv-from-enc.c: New file.
61665         * modules/uniconv/u16-strconv-from-enc-tests: New file.
61666         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
61667
61668         * modules/uniconv/u8-strconv-from-enc: New file.
61669         * lib/uniconv/u8-strconv-from-enc.c: New file.
61670         * lib/uniconv/u-strconv-from-enc.h: New file.
61671         * modules/uniconv/u8-strconv-from-enc-tests: New file.
61672         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
61673
61674         * modules/uniconv/u32-conv-from-enc: New file.
61675         * lib/uniconv/u32-conv-from-enc.c: New file.
61676         * modules/uniconv/u32-conv-from-enc-tests: New file.
61677         * tests/uniconv/test-u32-conv-from-enc.c: New file.
61678
61679         * modules/uniconv/u16-conv-from-enc: New file.
61680         * lib/uniconv/u16-conv-from-enc.c: New file.
61681         * lib/uniconv/u-conv-from-enc.h: New file.
61682         * modules/uniconv/u16-conv-from-enc-tests: New file.
61683         * tests/uniconv/test-u16-conv-from-enc.c: New file.
61684
61685         * modules/uniconv/u8-conv-from-enc: New file.
61686         * lib/uniconv/u8-conv-from-enc.c: New file.
61687         * modules/uniconv/u8-conv-from-enc-tests: New file.
61688         * tests/uniconv/test-u8-conv-from-enc.c: New file.
61689
61690         * modules/uniconv/base: New file.
61691         * lib/uniconv.h: New file.
61692
61693 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61694
61695         * doc/gnulib-tool.texi (Initial import): Update to match current
61696         behavior with strdup module.
61697         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
61698         * lib/memmem.h: Remove; all uses removed.  This is now done
61699         by <string.h>.
61700         * lib/mempcpy.h: Likewise.
61701         * lib/memrchr.h: Likewise.
61702         * lib/stpcpy.h: Likewise.
61703         * lib/stpncpy.h: Likewise.
61704         * lib/strcase.h: Likewise.
61705         * lib/strchrnul.h: Likewise.
61706         * lib/strdup.h: Likewise.
61707         * lib/strndup.h: Likewise.
61708         * lib/strnlen.h: Likewise.
61709         * lib/strpbrk.h: Likewise.
61710         * lib/strsep.h: Likewise.
61711         * lib/strstr.h: Likewise.
61712         * lib/strtok_r.h: Likewise.
61713         * lib/string_.h: New file.
61714         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
61715         Rely on <string.h> instead.
61716         * lib/canon-host.c: Likewise.
61717         * lib/chdir-long.c: Likewise.
61718         * lib/concatpath.c: Likewise.
61719         * lib/exclude.c: Likewise.
61720         * lib/fchdir.c: Likewise.
61721         * lib/getaddrinfo.c: Likewise.
61722         * lib/getcwd.c: Likewise.
61723         * lib/getsubopt.c: Likewise.
61724         * lib/glob.c: Likewise.
61725         * lib/hard-locale.c: Likewise.
61726         * lib/iconvme.c: Likewise.
61727         * lib/javacomp.c: Likewise.
61728         * lib/mempcpy.c: Likewise.
61729         * lib/memrchr.c: Likewise.
61730         * lib/regex_internal.h: Likewise.
61731         * lib/stpncpy.c: Likewise.
61732         * lib/strcasecmp.c: Likewise.
61733         * lib/strchrnul.c: Likewise.
61734         * lib/strdup.c: Likewise.
61735         * lib/striconv.c: Likewise.
61736         * lib/striconveh.c: Likewise.
61737         * lib/striconveha.c: Likewise.
61738         * lib/strncasecmp.c: Likewise.
61739         * lib/strndup.c: Likewise.
61740         * lib/strnlen.c: Likewise.
61741         * lib/strsep.c: Likewise.
61742         * lib/strstr.c: Likewise.
61743         * lib/strtok_r.c: Likewise.
61744         * lib/userspec.c: Likewise.
61745         * lib/w32spawn.h: Likewise.
61746         * lib/xstrndup.c: Likewise.
61747         * lib/mountlist.c (strstr): Remove decl.
61748         * m4/string_h.m4: New file.
61749         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
61750         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
61751         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
61752         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
61753         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
61754         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
61755         Set REPLACE_STRCASECMP if necessary.
61756         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
61757         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
61758         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
61759         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
61760         HAVE_DECL_STRDUP if necessary.
61761         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
61762         since gl_FUNC_STRNDUP does that now.
61763         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
61764         Check for decl here...
61765         (gl_PREREQ_STRNLEN): ... not here.
61766         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
61767         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
61768         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
61769         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
61770         necessary.
61771         * modules/string: New file.
61772         * modules/memmem (Files): Remove special-purpose include file.
61773         (Depends-on): Add string.
61774         (Include): Include <string.h>, not the removed file.
61775         * modules/mempcpy: Likewise.
61776         * modules/memrchr: Likewise.
61777         * modules/stpcpy: Likewise.
61778         * modules/stpncpy: Likewise.
61779         * modules/strcase: Likewise.
61780         * modules/strchrnul: Likewise.
61781         * modules/strdup: Likewise.
61782         * modules/strndup: Likewise.
61783         * modules/strnlen: Likewise.
61784         * modules/strpbrk: Likewise.
61785         * modules/strsep: Likewise.
61786         * modules/strstr: Likewise.
61787         * modules/strtok_r: Likewise.
61788         * tests/test-dirname.c: Don't include "strdup.h", since
61789         <string.h> now suffices.
61790         * tests/test-memmem.c: Don't include "memmem.h", since
61791         <string.h> now suffices.
61792
61793 2007-01-25  Bruno Haible  <bruno@clisp.org>
61794
61795         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61796         *resultp is 0.
61797
61798         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61799         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61800         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61801         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61802
61803         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61804         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61805         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61806         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61807         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61808         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61809
61810 2007-01-24  Bruno Haible  <bruno@clisp.org>
61811
61812         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61813         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61814         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61815         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61816         gl_FUNC_FTS_CORE.
61817         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61818         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61819         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61820         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
61821         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
61822         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
61823         gl_FUNC_FCHOWNAT.
61824         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
61825         gl_FUNC_STRFTIME.
61826         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
61827         Reported by Ralf Wildenhues.
61828
61829 2007-01-24  Bruno Haible  <bruno@clisp.org>
61830
61831         Drop AC_REQUIRE calls that are redundant with the module dependencies.
61832         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
61833         gl_GETADDRINFO.
61834         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
61835         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
61836         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
61837
61838 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
61839
61840         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
61841         Don't use 'exit'; just return from 'main'.
61842         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
61843
61844         * lib/fnmatch_.h: Readjust white space and comments to match
61845         glibc, to avoid spurious diffs.
61846
61847 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61848
61849         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
61850         2004-12-01 change by Jakub Jelinek, since this code won't compile
61851         if !LIBC.  Problem reported by Bob Proulx.
61852
61853 2007-01-23  Bruno Haible  <bruno@clisp.org>
61854
61855         * lib/striconveh.c: Include c-strcaseeq.h.
61856         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
61857         * modules/striconveh (Depends-on): Add c-strcaseeq.
61858
61859 2007-01-23  Bruno Haible  <bruno@clisp.org>
61860
61861         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
61862
61863         * modules/c-strcaseeq: New file.
61864         * lib/c-strcaseeq.h: New file.
61865
61866         * modules/streq: New file.
61867         * lib/streq.h: New file.
61868
61869 2007-01-23  Bruno Haible  <bruno@clisp.org>
61870
61871         * modules/striconveha-tests: New file.
61872         * tests/test-striconveha.c: New file.
61873
61874         * lib/striconveha.h: Include <stdbool.h>.
61875         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
61876         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
61877         (mem_iconveha_notranslit): Renamed from mem_iconveha.
61878         (mem_iconveha): New function.
61879         (str_iconveha_notranslit): Renamed from str_iconveha.
61880         (str_iconveha): New function.
61881         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
61882         c-strcase.
61883
61884 2007-01-23  Bruno Haible  <bruno@clisp.org>
61885
61886         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61887         encodings without forgiving before trying any encoding with handler.
61888         (str_iconveha): Try all encodings without forgiving before trying any
61889         encoding with handler.
61890
61891 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61892
61893         Import the following changes from libc.
61894
61895         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61896
61897         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61898
61899         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61900
61901         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61902         normal_bracket label.
61903
61904         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61905
61906         [BZ #361]
61907         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61908         to normal_bracket after fetching the next character.
61909
61910 2007-01-22  Bruno Haible  <bruno@clisp.org>
61911
61912         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61913         argument.
61914         * lib/striconveh.c (iconv_carefully_1): New function.
61915         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61916         argument.
61917         (str_cd_iconveh): Update.
61918         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61919         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61920         * tests/test-striconveh.c (MAGIC): New macro.
61921         (new_offsets): New function.
61922         (main): Test call with and without offsets.
61923
61924 2007-01-22  Bruno Haible  <bruno@clisp.org>
61925
61926         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61927         * modules/sys_select (Makefile.am): Likewise.
61928         * modules/sys_socket (Makefile.am): Likewise.
61929         * modules/sys_time (Makefile.am): Likewise.
61930
61931 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61932
61933         * modules/gettimeofday (License): Change from GPL to LGPL, since
61934         gettimeofday is a library function.
61935
61936 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61937
61938         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61939
61940 2007-01-21  Bruno Haible  <bruno@clisp.org>
61941
61942         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61943
61944 2007-01-21  Bruno Haible  <bruno@clisp.org>
61945
61946         * modules/striconveha: New file.
61947         * lib/striconveha.h: New file.
61948         * lib/striconveha.c: New file.
61949         * MODULES.html.sh (Internationalization functions): Add striconveha.
61950         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61951         string.
61952         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61953
61954 2007-01-21  Bruno Haible  <bruno@clisp.org>
61955
61956         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61957         * lib/striconveh.c (str_iconveh): Likewise.
61958
61959 2007-01-21  Bruno Haible  <bruno@clisp.org>
61960
61961         * lib/striconveh.h (mem_iconveh): New declaration.
61962         * lib/striconveh.c (mem_iconveh): New function.
61963         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61964
61965 2007-01-21  Bruno Haible  <bruno@clisp.org>
61966
61967         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61968
61969         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61970         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61971         original result buffer.
61972         (str_cd_iconveh): Update.
61973         * tests/test-striconveh.c (main): Update.
61974
61975         * lib/striconv.h (mem_cd_iconv): Change specification.
61976         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61977         result buffer.
61978         (str_cd_iconv): Update.
61979         * tests/test-striconv.c (main): Update.
61980
61981 2007-01-21  Bruno Haible  <bruno@clisp.org>
61982
61983         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61984
61985 2007-01-20  Jim Meyering  <jim@meyering.net>
61986
61987         * lib/userspec.c (parse_with_separator): If a user or group string
61988         starts with "+", skip the corresponding name-to-ID look-up, since
61989         such a look-up must fail: user and group names may not include "+".
61990
61991 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61992
61993         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61994         since we now assume the sys_time module.
61995         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61996         check for sys/time.h; no longer needed.
61997         * modules/poll (Depends-on): Depend on sys_time.
61998
61999 2007-01-18  Bruno Haible  <bruno@clisp.org>
62000
62001         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
62002         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
62003
62004         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
62005         gettimeofday.
62006
62007         * tests/test-gettimeofday.c: Include <time.h>.
62008         (dummy): Remove variable.
62009
62010         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
62011         gl_HEADER_SYS_TIME_H.
62012         (gl_HEADER_SYS_TIME_H): New macro.
62013
62014         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
62015         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62016         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
62017         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
62018         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62019         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
62020         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
62021         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62022         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
62023         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
62024         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62025
62026         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
62027         last change; it caused a compilation error when cross-compiling to
62028         Cygwin.
62029
62030 2007-01-18  Jim Meyering  <jim@meyering.net>
62031
62032         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
62033         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
62034         than the race-prone "test -d sys || mkdir sys".
62035         (configure.ac): Use AC_PROG_MKDIR_P.
62036         * modules/sys_select: Likewise.
62037         * modules/sys_socket: Likewise.
62038         * modules/sys_time: Likewise.
62039
62040 2007-01-18  Eric Blake  <ebb9@byu.net>
62041
62042         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
62043         replace gettimeofday.
62044         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
62045         name, to avoid infinite recursion.
62046
62047 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
62048
62049         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
62050         module sys_time.
62051         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
62052         assume timespec.h defines struct timeval.
62053         * lib/settime.c: Likewise.
62054         * lib/utimens.c: Likewise.
62055         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
62056         since we now assume the gettimeofday module.
62057         * lib/tempname.c (__gen_tempname): Likewise.
62058         * lib/gettimeofday.h: Remove.
62059         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
62060         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
62061         Include <time.h>, for 'time()'.
62062         (localtime_buffer_addr): Also use this workaround if
62063         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
62064         to simplify the uses.  All uses changed.
62065         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
62066         that #undef is inside {}, and 'const' follows type name consistently.
62067         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
62068         (gettimeofday): Do not use the maximum possible value for
62069         tv->tv_usec, since that might break usages other than ls.c.
62070         Instead, we'll leave ls.c alone.  This undoes today's patch
62071         by Bruno.  Add a compile-time warning for 1s-clock resolution;
62072         we've never observed the problem but might as well keep the
62073         canary.
62074         * lib/nanosleep.c: Include timespec.h first, for interface check.
62075         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
62076         now assume the sys_time module.
62077         * lib/tempname.c: Likewise.
62078         * lib/timespec.h: Likewise.
62079         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
62080         needed.
62081         * lib/strftime.c: Likewise.
62082         * lib/timespec.h: Likewise.
62083         * lib/posixtm.c: Include posixtm.h first, for interface check.
62084         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
62085         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
62086         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
62087         * lib/sys_time_.h: New file.
62088         * lib/timespec.h (struct timespec): Use long int, not long.
62089         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62090         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
62091         Remove obsolescent call to AC_HEADER_TIME.
62092         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
62093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62094         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
62095         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
62096         Likewise.
62097         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
62098         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
62099         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
62100         into the sys_time module.  Check for gettimeofday just once.
62101         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
62102         for gettimeofday signature to just check the signature.  Merely
62103         compile it, since linking doesn't test signature.  Improve test for
62104         whether gettimeofday.o is actually needed.
62105         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
62106         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
62107         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
62108         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62109         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
62110         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
62111         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
62112         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
62113         than worrying about sys/time.h.
62114         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62115         Don't bother worrying about TIME_WITH_SYS_TIME.
62116         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
62117         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
62118         * m4/sys_time_h.m4: New file.
62119         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
62120         Don't include sys/time.h.  Return from main rather than exiting.
62121         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
62122         all uses changed.
62123         * modules/gethrxtime (Depends-on): Add sys_time.
62124         * modules/gettime (Depends-on): Likewise.
62125         * modules/gettimeofday (Depends-on): Likewise.
62126         * modules/nanosleep (Depends-on): Likewise.
62127         * modules/settime (Depends-on): Likewise.
62128         * modules/tempname (Depends-on): Likewise.
62129         * modules/utimens (Depends-on): Likewise.
62130         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
62131         (Include): Change back to <sys/time.h>.
62132         (Maintainer): Add self.
62133         * modules/sys_time: New file.
62134         * modules/tempname (Depends-on): Add gettimeofday.
62135         * tests/test-gettimeofday.c: Include <sys/time.h>
62136         rather than gettimeofday.h.
62137
62138 2007-01-17  Bruno Haible  <bruno@clisp.org>
62139
62140         * gnulib-tool (func_get_license): Revert last patch. Instead, let
62141         the license default to GPL.
62142         (func_create_testdir): Don't complain if a module is LGPL and its
62143         tests module depends on GPLed modules.
62144
62145 2007-01-17  Bruno Haible  <bruno@clisp.org>
62146
62147         * lib/gettimeofday.c (gettimeofday): Add code for the case
62148         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
62149         maximum possible value for tv->tv_usec, rather than the minimum one.
62150
62151 2005-10-08  Martin Lambers  <marlam@marlam.de>
62152 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62153 2007-01-16  Bruno Haible  <bruno@clisp.org>
62154
62155         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
62156         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
62157         gl_FUNC_GETTIMEOFDAY.
62158         (Include): Add gettimeofday.h.
62159         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
62160         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
62161         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
62162         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
62163         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
62164         * lib/gettimeofday.h: New file.
62165         * lib/gettimeofday.c: Include <sys/timeb.h>.
62166         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
62167         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62168         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
62169         fall back on time().
62170
62171         * tests/test-gettimeofday.c: New file.
62172         * modules/gettimeofday-tests: New file.
62173
62174 2007-01-16  Eric Blake  <ebb9@byu.net>
62175
62176         * modules/fnmatch (Depends-on): Depend on wchar.
62177         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
62178         * m4/fnmatch.m4: Likewise.
62179         * modules/mbchar (Makefile.am): Assume <wchar.h>.
62180         * m4/mbchar.m4: Likewise.
62181         * modules/mbswidth (Depends-on): Depend on wchar.
62182         * lib/mbswidth.c: Assume <wchar.h>.
62183         * m4/mbswidth.m4: Likewise.
62184         * modules/quotearg (Depends-on): Depend on wchar.
62185         * lib/quotearg.c: Assume <wchar.h>.
62186         * m4/quotearg.m4: Likewise.
62187         * modules/regex (Depends-on): Depend on wchar.
62188         * lib/regex_internal.h: Assume <wchar.h>.
62189         * m4/regex.m4: Likewise.
62190         * modules/stdint (Depends-on): Depend on wchar.
62191         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
62192         * m4/stdint.m4: Likewise.
62193         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
62194         * modules/strftime (Depends-on): Depend on wchar.
62195         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
62196         * modules/strtol (Depends-on): Depend on wchar.
62197         * lib/strtol.c: Assume <wchar.h>.
62198         * modules/wcwidth (Depends-on): Depend on wchar.
62199         * lib/wcwidth.h: Assume <wchar.h>.
62200         * m4/wcwidth.m4: Likewise.
62201
62202 2007-01-16  Bruno Haible  <bruno@clisp.org>
62203
62204         * modules/csharpexec-script: New, created from...
62205         * modules/csharpexec: ... this.
62206
62207 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62208
62209         * modules/javaexec-script: New, created from...
62210         * modules/javaexec: ... this.
62211
62212 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62213
62214         * modules/poll (Dependencies): Add sys_select.
62215
62216 2007-01-15  Jim Meyering  <jim@meyering.net>
62217
62218         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
62219         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
62220         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
62221         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
62222
62223 2007-01-15  Bruno Haible  <bruno@clisp.org>
62224
62225         * modules/striconveh: New file.
62226         * lib/striconveh.h: New file.
62227         * lib/striconveh.c: New file.
62228         * MODULES.html.sh (Internationalization functions): Add striconveh.
62229
62230         * modules/striconveh-tests: New file.
62231         * tests/test-striconveh.c: New file.
62232
62233 2007-01-15  Bruno Haible  <bruno@clisp.org>
62234
62235         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
62236         not from GNU libiconv or GNU libc.
62237
62238 2007-01-15  Bruno Haible  <bruno@clisp.org>
62239
62240         * doc/gnulib-intro.texi (Copyright): Explain the different license
62241         terms for module descriptions, autoconf macros, tests, documentation.
62242
62243 2007-01-14  Bruno Haible  <bruno@clisp.org>
62244
62245         * modules/striconv-tests: New file.
62246         * tests/test-striconv.c: New file.
62247
62248 2007-01-14  Bruno Haible  <bruno@clisp.org>
62249
62250         * modules/iconv-tests: New file.
62251         * tests/test-iconv.c: New file.
62252
62253 2007-01-14  Bruno Haible  <bruno@clisp.org>
62254
62255         * gnulib-tool (func_get_license): For test modules, use the license of
62256         the main module.
62257
62258 2007-01-14  Bruno Haible  <bruno@clisp.org>
62259
62260         * modules/iconv (Include): Clarify that <iconv.h> can only be included
62261         if iconv is found to exist.
62262
62263 2007-01-14  Bruno Haible  <bruno@clisp.org>
62264
62265         * modules/c-ctype-tests: New file.
62266         * tests/test-c-ctype.c: New file.
62267
62268 2007-01-14  Bruno Haible  <bruno@clisp.org>
62269
62270         * modules/binary-io-tests: New file.
62271         * tests/test-binary-io.sh: New file.
62272         * tests/test-binary-io.c: New file.
62273
62274 2007-01-14  Bruno Haible  <bruno@clisp.org>
62275
62276         * modules/array-oset-tests: New file.
62277         * tests/test-array_oset.c: New file.
62278
62279 2007-01-14  Bruno Haible  <bruno@clisp.org>
62280
62281         * modules/array-list-tests: New file.
62282         * tests/test-array_list.c: New file.
62283
62284 2007-01-14  Bruno Haible  <bruno@clisp.org>
62285
62286         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
62287         and make.
62288         Reported by Simon Josefsson in
62289         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
62290
62291 2007-01-14  Bruno Haible  <bruno@clisp.org>
62292
62293         * modules/allocsa-tests: New file.
62294         * tests/test-allocsa.c: New file.
62295
62296 2007-01-14  Bruno Haible  <bruno@clisp.org>
62297
62298         * modules/fchdir (Depends-on): Add absolute-header.
62299         * modules/unistd (Depends-on): Likewise.
62300
62301 2006-12-30  Bruno Haible  <bruno@clisp.org>
62302
62303         * modules/fchdir: New file.
62304         * modules/unistd (Files): Add lib/unistd_.h.
62305         (Makefile.am): Generate unistd.h from unistd_.h.
62306         * lib/fchdir.c: New file.
62307         * lib/dirent_.h: New file.
62308         * lib/unistd_.h: New file.
62309         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
62310         * m4/fchdir.m4: New file.
62311         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
62312         (gl_HEADER_UNISTD): Invoke it.
62313         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
62314         function.
62315         * lib/backupfile.c (opendir, closedir): Undefine.
62316         * lib/chown.c (open, close): Undefine.
62317         * lib/clean-temp.c (open, close): Undefine.
62318         * lib/copy-file.c (open, close): Undefine.
62319         * lib/execute.c (open, close): Undefine.
62320         * lib/fsusage.c (open, close): Undefine.
62321         * lib/gc-gnulib.c (open, close): Undefine.
62322         * lib/getcwd.c (opendir, closedir): Undefine.
62323         * lib/glob.c (opendir, closedir): Undefine.
62324         * lib/javacomp.c (open, close): Undefine.
62325         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
62326         * lib/openat-proc.c (open, close): Undefine.
62327         * lib/pagealign_alloc.c (open, close): Undefine.
62328         * lib/pipe.c (open, close): Undefine.
62329         * lib/progreloc.c (open, close): Undefine.
62330         * lib/savedir.c (opendir, closedir): Undefine.
62331         * lib/utime.c (open, close): Undefine.
62332         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
62333
62334 2007-01-10  Bruno Haible  <bruno@clisp.org>
62335
62336         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
62337
62338 2007-01-12  Eric Blake  <ebb9@byu.net>
62339
62340         Provide a robust <wchar.h>.  Further simplifications are now
62341         possible in other modules, but not included here.
62342         * modules/wchar: New module.
62343         * m4/wchar.m4: New file.
62344         * lib/wchar_.h: Likewise.
62345         * modules/mbchar (Depends-on): Depend on wchar, as the first use
62346         of the new module.
62347         * MODULES.html.sh (Extended multibyte and wide character utilities):
62348         New section.
62349
62350 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
62351
62352         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
62353         to a reasonable default for memory allocation.
62354         (xreadlink): Don't allocate a huge buffer, to work around a buggy
62355         file system that reports garbage st_size values for symlinks.
62356         Problem reported by Liyang Hu.
62357
62358 2007-01-11  Simon Josefsson  <simon@josefsson.org>
62359
62360         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
62361         Emacs .#* auto-save files).
62362
62363 2007-01-11  Bruno Haible  <bruno@clisp.org>
62364
62365         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
62366         directory.
62367
62368 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62369
62370         Use @...@ consistently in lib/wctype_.h.
62371         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
62372         on it being set to 1 or 0.
62373         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
62374         go back to AC_SUBSTing it.
62375         * modules/wctype (Makefile.am): Undo previous change.
62376
62377 2007-01-10  Eric Blake  <ebb9@byu.net>
62378
62379         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
62380         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
62381         * modules/wctype (Makefile.am): Likewise.
62382         Reported by Chris McGuire.
62383
62384 2007-01-10  Jim Meyering  <jim@meyering.net>
62385
62386         fts.c: a small readability/maintainability improvement
62387         * lib/fts.c (fts_read): Make this code slightly more readable and
62388         maintainable by hoisting the "sp->fts_cur = p" assignments to
62389         immediately follow the statements that set P.  Derived from
62390         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
62391
62392 2007-01-10  Eric Blake  <ebb9@byu.net>
62393
62394         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
62395         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
62396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62397         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62398         Reported by Chris McGuire.
62399
62400 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62401
62402         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
62403         in sed script.
62404
62405 2007-01-09  Bruno Haible  <bruno@clisp.org>
62406
62407         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
62408         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
62409         variables.
62410         (func_module): Use them.
62411
62412 2007-01-09  Bruno Haible  <bruno@clisp.org>
62413
62414         * modules/unistr/base: New file.
62415         * lib/unistr.h: New file.
62416
62417         * modules/unistr/u8-to-u16: New file.
62418         * lib/unistr/u8-to-u16.c: New file.
62419
62420         * modules/unistr/u8-to-u32: New file.
62421         * lib/unistr/u8-to-u32.c: New file.
62422
62423         * modules/unistr/u16-to-u8: New file.
62424         * lib/unistr/u16-to-u8.c: New file.
62425
62426         * modules/unistr/u16-to-u32: New file.
62427         * lib/unistr/u16-to-u32.c: New file.
62428
62429         * modules/unistr/u32-to-u8: New file.
62430         * lib/unistr/u32-to-u8.c: New file.
62431
62432         * modules/unistr/u32-to-u16: New file.
62433         * lib/unistr/u32-to-u16.c: New file.
62434
62435         * modules/unistr/u8-check: New file.
62436         * modules/unistr/u16-check: New file.
62437         * modules/unistr/u32-check: New file.
62438         * lib/unistr/u8-check.c: New file.
62439         * lib/unistr/u16-check.c: New file.
62440         * lib/unistr/u32-check.c: New file.
62441
62442         * modules/unistr/u8-chr: New file.
62443         * modules/unistr/u16-chr: New file.
62444         * modules/unistr/u32-chr: New file.
62445         * lib/unistr/u8-chr.c: New file.
62446         * lib/unistr/u16-chr.c: New file.
62447         * lib/unistr/u32-chr.c: New file.
62448
62449         * modules/unistr/u8-cmp: New file.
62450         * modules/unistr/u16-cmp: New file.
62451         * modules/unistr/u32-cmp: New file.
62452         * lib/unistr/u8-cmp.c: New file.
62453         * lib/unistr/u16-cmp.c: New file.
62454         * lib/unistr/u32-cmp.c: New file.
62455
62456         * modules/unistr/u8-cpy: New file.
62457         * modules/unistr/u16-cpy: New file.
62458         * modules/unistr/u32-cpy: New file.
62459         * lib/unistr/u8-cpy.c: New file.
62460         * lib/unistr/u16-cpy.c: New file.
62461         * lib/unistr/u32-cpy.c: New file.
62462         * lib/unistr/u-cpy.h: New file.
62463
62464         * modules/unistr/u8-cpy-alloc: New file.
62465         * modules/unistr/u16-cpy-alloc: New file.
62466         * modules/unistr/u32-cpy-alloc: New file.
62467         * lib/unistr/u8-cpy-alloc.c: New file.
62468         * lib/unistr/u16-cpy-alloc.c: New file.
62469         * lib/unistr/u32-cpy-alloc.c: New file.
62470         * lib/unistr/u-cpy-alloc.h: New file.
62471
62472         * modules/unistr/u8-endswith: New file.
62473         * modules/unistr/u16-endswith: New file.
62474         * modules/unistr/u32-endswith: New file.
62475         * lib/unistr/u8-endswith.c: New file.
62476         * lib/unistr/u16-endswith.c: New file.
62477         * lib/unistr/u32-endswith.c: New file.
62478         * lib/unistr/u-endswith.h: New file.
62479
62480         * modules/unistr/u8-mblen: New file.
62481         * modules/unistr/u16-mblen: New file.
62482         * modules/unistr/u32-mblen: New file.
62483         * lib/unistr/u8-mblen.c: New file.
62484         * lib/unistr/u16-mblen.c: New file.
62485         * lib/unistr/u32-mblen.c: New file.
62486
62487         * modules/unistr/u8-mbtouc: New file.
62488         * modules/unistr/u16-mbtouc: New file.
62489         * modules/unistr/u32-mbtouc: New file.
62490         * lib/unistr/u8-mbtouc.c: New file.
62491         * lib/unistr/u16-mbtouc.c: New file.
62492         * lib/unistr/u32-mbtouc.c: New file.
62493
62494         * modules/unistr/u8-mbtouc-safe: New file.
62495         * modules/unistr/u16-mbtouc-safe: New file.
62496         * modules/unistr/u32-mbtouc-safe: New file.
62497         * lib/unistr/u8-mbtouc-safe.c: New file.
62498         * lib/unistr/u16-mbtouc-safe.c: New file.
62499         * lib/unistr/u32-mbtouc-safe.c: New file.
62500
62501         * modules/unistr/u8-move: New file.
62502         * modules/unistr/u16-move: New file.
62503         * modules/unistr/u32-move: New file.
62504         * lib/unistr/u8-move.c: New file.
62505         * lib/unistr/u16-move.c: New file.
62506         * lib/unistr/u32-move.c: New file.
62507         * lib/unistr/u-move.h: New file.
62508
62509         * modules/unistr/u8-next: New file.
62510         * modules/unistr/u16-next: New file.
62511         * modules/unistr/u32-next: New file.
62512         * lib/unistr/u8-next.c: New file.
62513         * lib/unistr/u16-next.c: New file.
62514         * lib/unistr/u32-next.c: New file.
62515
62516         * modules/unistr/u8-prev: New file.
62517         * modules/unistr/u16-prev: New file.
62518         * modules/unistr/u32-prev: New file.
62519         * lib/unistr/u8-prev.c: New file.
62520         * lib/unistr/u16-prev.c: New file.
62521         * lib/unistr/u32-prev.c: New file.
62522
62523         * modules/unistr/u8-set: New file.
62524         * modules/unistr/u16-set: New file.
62525         * modules/unistr/u32-set: New file.
62526         * lib/unistr/u8-set.c: New file.
62527         * lib/unistr/u16-set.c: New file.
62528         * lib/unistr/u32-set.c: New file.
62529         * lib/unistr/u-set.h: New file.
62530
62531         * modules/unistr/u8-startswith: New file.
62532         * modules/unistr/u16-startswith: New file.
62533         * modules/unistr/u32-startswith: New file.
62534         * lib/unistr/u8-startswith.c: New file.
62535         * lib/unistr/u16-startswith.c: New file.
62536         * lib/unistr/u32-startswith.c: New file.
62537         * lib/unistr/u-startswith.h: New file.
62538
62539         * modules/unistr/u8-stpcpy: New file.
62540         * modules/unistr/u16-stpcpy: New file.
62541         * modules/unistr/u32-stpcpy: New file.
62542         * lib/unistr/u8-stpcpy.c: New file.
62543         * lib/unistr/u16-stpcpy.c: New file.
62544         * lib/unistr/u32-stpcpy.c: New file.
62545         * lib/unistr/u-stpcpy.h: New file.
62546
62547         * modules/unistr/u8-stpncpy: New file.
62548         * modules/unistr/u16-stpncpy: New file.
62549         * modules/unistr/u32-stpncpy: New file.
62550         * lib/unistr/u8-stpncpy.c: New file.
62551         * lib/unistr/u16-stpncpy.c: New file.
62552         * lib/unistr/u32-stpncpy.c: New file.
62553         * lib/unistr/u-stpncpy.h: New file.
62554
62555         * modules/unistr/u8-strcat: New file.
62556         * modules/unistr/u16-strcat: New file.
62557         * modules/unistr/u32-strcat: New file.
62558         * lib/unistr/u8-strcat.c: New file.
62559         * lib/unistr/u16-strcat.c: New file.
62560         * lib/unistr/u32-strcat.c: New file.
62561         * lib/unistr/u-strcat.h: New file.
62562
62563         * modules/unistr/u8-strchr: New file.
62564         * modules/unistr/u16-strchr: New file.
62565         * modules/unistr/u32-strchr: New file.
62566         * lib/unistr/u8-strchr.c: New file.
62567         * lib/unistr/u16-strchr.c: New file.
62568         * lib/unistr/u32-strchr.c: New file.
62569
62570         * modules/unistr/u8-strcmp: New file.
62571         * modules/unistr/u16-strcmp: New file.
62572         * modules/unistr/u32-strcmp: New file.
62573         * lib/unistr/u8-strcmp.c: New file.
62574         * lib/unistr/u16-strcmp.c: New file.
62575         * lib/unistr/u32-strcmp.c: New file.
62576
62577         * modules/unistr/u8-strcpy: New file.
62578         * modules/unistr/u16-strcpy: New file.
62579         * modules/unistr/u32-strcpy: New file.
62580         * lib/unistr/u8-strcpy.c: New file.
62581         * lib/unistr/u16-strcpy.c: New file.
62582         * lib/unistr/u32-strcpy.c: New file.
62583         * lib/unistr/u-strcpy.h: New file.
62584
62585         * modules/unistr/u8-strcspn: New file.
62586         * modules/unistr/u16-strcspn: New file.
62587         * modules/unistr/u32-strcspn: New file.
62588         * lib/unistr/u8-strcspn.c: New file.
62589         * lib/unistr/u16-strcspn.c: New file.
62590         * lib/unistr/u32-strcspn.c: New file.
62591         * lib/unistr/u-strcspn.h: New file.
62592
62593         * modules/unistr/u8-strdup: New file.
62594         * modules/unistr/u16-strdup: New file.
62595         * modules/unistr/u32-strdup: New file.
62596         * lib/unistr/u8-strdup.c: New file.
62597         * lib/unistr/u16-strdup.c: New file.
62598         * lib/unistr/u32-strdup.c: New file.
62599         * lib/unistr/u-strdup.h: New file.
62600
62601         * modules/unistr/u8-strlen: New file.
62602         * modules/unistr/u16-strlen: New file.
62603         * modules/unistr/u32-strlen: New file.
62604         * lib/unistr/u8-strlen.c: New file.
62605         * lib/unistr/u16-strlen.c: New file.
62606         * lib/unistr/u32-strlen.c: New file.
62607         * lib/unistr/u-strlen.h: New file.
62608
62609         * modules/unistr/u8-strmblen: New file.
62610         * modules/unistr/u16-strmblen: New file.
62611         * modules/unistr/u32-strmblen: New file.
62612         * lib/unistr/u8-strmblen.c: New file.
62613         * lib/unistr/u16-strmblen.c: New file.
62614         * lib/unistr/u32-strmblen.c: New file.
62615
62616         * modules/unistr/u8-strmbtouc: New file.
62617         * modules/unistr/u16-strmbtouc: New file.
62618         * modules/unistr/u32-strmbtouc: New file.
62619         * lib/unistr/u8-strmbtouc.c: New file.
62620         * lib/unistr/u16-strmbtouc.c: New file.
62621         * lib/unistr/u32-strmbtouc.c: New file.
62622
62623         * modules/unistr/u8-strncat: New file.
62624         * modules/unistr/u16-strncat: New file.
62625         * modules/unistr/u32-strncat: New file.
62626         * lib/unistr/u8-strncat.c: New file.
62627         * lib/unistr/u16-strncat.c: New file.
62628         * lib/unistr/u32-strncat.c: New file.
62629         * lib/unistr/u-strncat.h: New file.
62630
62631         * modules/unistr/u8-strncmp: New file.
62632         * modules/unistr/u16-strncmp: New file.
62633         * modules/unistr/u32-strncmp: New file.
62634         * lib/unistr/u8-strncmp.c: New file.
62635         * lib/unistr/u16-strncmp.c: New file.
62636         * lib/unistr/u32-strncmp.c: New file.
62637
62638         * modules/unistr/u8-strncpy: New file.
62639         * modules/unistr/u16-strncpy: New file.
62640         * modules/unistr/u32-strncpy: New file.
62641         * lib/unistr/u8-strncpy.c: New file.
62642         * lib/unistr/u16-strncpy.c: New file.
62643         * lib/unistr/u32-strncpy.c: New file.
62644         * lib/unistr/u-strncpy.h: New file.
62645
62646         * modules/unistr/u8-strnlen: New file.
62647         * modules/unistr/u16-strnlen: New file.
62648         * modules/unistr/u32-strnlen: New file.
62649         * lib/unistr/u8-strnlen.c: New file.
62650         * lib/unistr/u16-strnlen.c: New file.
62651         * lib/unistr/u32-strnlen.c: New file.
62652         * lib/unistr/u-strnlen.h: New file.
62653
62654         * modules/unistr/u8-strpbrk: New file.
62655         * modules/unistr/u16-strpbrk: New file.
62656         * modules/unistr/u32-strpbrk: New file.
62657         * lib/unistr/u8-strpbrk.c: New file.
62658         * lib/unistr/u16-strpbrk.c: New file.
62659         * lib/unistr/u32-strpbrk.c: New file.
62660         * lib/unistr/u-strpbrk.h: New file.
62661
62662         * modules/unistr/u8-strrchr: New file.
62663         * modules/unistr/u16-strrchr: New file.
62664         * modules/unistr/u32-strrchr: New file.
62665         * lib/unistr/u8-strrchr.c: New file.
62666         * lib/unistr/u16-strrchr.c: New file.
62667         * lib/unistr/u32-strrchr.c: New file.
62668
62669         * modules/unistr/u8-strspn: New file.
62670         * modules/unistr/u16-strspn: New file.
62671         * modules/unistr/u32-strspn: New file.
62672         * lib/unistr/u8-strspn.c: New file.
62673         * lib/unistr/u16-strspn.c: New file.
62674         * lib/unistr/u32-strspn.c: New file.
62675         * lib/unistr/u-strspn.h: New file.
62676
62677         * modules/unistr/u8-strstr: New file.
62678         * modules/unistr/u16-strstr: New file.
62679         * modules/unistr/u32-strstr: New file.
62680         * lib/unistr/u8-strstr.c: New file.
62681         * lib/unistr/u16-strstr.c: New file.
62682         * lib/unistr/u32-strstr.c: New file.
62683         * lib/unistr/u-strstr.h: New file.
62684
62685         * modules/unistr/u8-strtok: New file.
62686         * modules/unistr/u16-strtok: New file.
62687         * modules/unistr/u32-strtok: New file.
62688         * lib/unistr/u8-strtok.c: New file.
62689         * lib/unistr/u16-strtok.c: New file.
62690         * lib/unistr/u32-strtok.c: New file.
62691         * lib/unistr/u-strtok.h: New file.
62692
62693         * modules/unistr/u8-uctomb: New file.
62694         * modules/unistr/u16-uctomb: New file.
62695         * modules/unistr/u32-uctomb: New file.
62696         * lib/unistr/u8-uctomb.c: New file.
62697         * lib/unistr/u16-uctomb.c: New file.
62698         * lib/unistr/u32-uctomb.c: New file.
62699
62700         * MODULES.html.sh (Unicode string functions): Add the new modules.
62701
62702 2007-01-08  Bruno Haible  <bruno@clisp.org>
62703
62704         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
62705         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
62706         subdirectories.
62707
62708 2007-01-08  Karl Berry  <karl@gnu.org>
62709
62710         * doc/error.texi: mention that main() fns must set program_name
62711         when progname is used.
62712
62713 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
62714
62715         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
62716         WCTYPE_H is empty, for the benefit of builds from non-distclean
62717         directories.  Problem reported by Eric Blake in
62718         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
62719
62720 2007-01-08  Bruno Haible  <bruno@clisp.org>
62721
62722         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
62723         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
62724         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
62725         PROVIDE_CANONICALIZE_FILENAME_MODE.
62726         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
62727
62728 2007-01-08  Bruno Haible  <bruno@clisp.org>
62729
62730         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
62731         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
62732         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
62733         * lib/fts.c: Likewise.
62734         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
62735
62736 2006-12-25  Bruno Haible  <bruno@clisp.org>
62737
62738         * modules/utf8-ucs4-safe: New file.
62739         * lib/utf8-ucs4-safe.h: New file.
62740         * lib/unistr/utf8-ucs4-safe.c: New file.
62741
62742         * modules/utf16-ucs4-safe: New file.
62743         * lib/utf16-ucs4-safe.h: New file.
62744         * lib/unistr/utf16-ucs4-safe.c: New file.
62745
62746         * MODULES.html.sh (Unicode string functions): Add the new modules.
62747
62748 2007-01-08  Bruno Haible  <bruno@clisp.org>
62749
62750         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
62751         (Depends-on): Add unitypes.
62752         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62753         (u8_mbtouc_aux): Move out to separate file.
62754         (u8_mbtouc): Use ucs4_t, uint8_t types.
62755         * lib/unistr/utf8-ucs4.c: New file.
62756
62757         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
62758         (Depends-on): Add unitypes.
62759         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62760         (u16_mbtouc_aux): Move out to separate file.
62761         (u16_mbtouc): Use ucs4_t, uint16_t types.
62762         * lib/unistr/utf16-ucs4.c: New file.
62763
62764         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
62765         (Depends-on): Add unitypes.
62766         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
62767         (u8_uctomb_aux): Move out to separate file.
62768         (u8_uctomb): Use ucs4_t, uint8_t types.
62769         * lib/unistr/ucs4-utf8.c: New file.
62770
62771         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
62772         (Depends-on): Add unitypes.
62773         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
62774         (u16_uctomb_aux): Move out to separate file.
62775         (u16_uctomb): Use ucs4_t, uint16_t types.
62776         * lib/unistr/ucs4-utf16.c: New file.
62777
62778 2006-12-25  Bruno Haible  <bruno@clisp.org>
62779
62780         * modules/unitypes: New file.
62781         * lib/unitypes.h: New file.
62782         * MODULES.html.sh (func_all_modules): New section "Unicode string
62783         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
62784         this section. Add unitypes.
62785
62786 2007-01-08  Bruno Haible  <bruno@clisp.org>
62787
62788         Avoid variable names that conflict with those from libtool.
62789         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
62790         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
62791         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
62792         library_names_spec to acl_library_names_spec, hardcode_* to
62793         acl_hardcode_*.
62794         Reported by Ralf Wildenhues.
62795
62796 2007-01-08  Bruno Haible  <bruno@clisp.org>
62797
62798         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62799         definition.
62800         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62801         definition.
62802         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62803         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62804         definition.
62805         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62806         definition.
62807         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62808         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62809         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62810         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62811         definition.
62812         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62813         definition.
62814         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62815         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62816         GC_USE_<algorithm>.
62817         * lib/gc-libgcrypt.c: Likewise.
62818         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62819         * modules/gc-arctwo (configure.ac): Likewise.
62820         * modules/gc-des (configure.ac): Likewise.
62821         * modules/gc-hmac-md5 (configure.ac): Likewise.
62822         * modules/gc-hmac-sha1 (configure.ac): Likewise.
62823         * modules/gc-md2 (configure.ac): Likewise.
62824         * modules/gc-md4 (configure.ac): Likewise.
62825         * modules/gc-md5 (configure.ac): Likewise.
62826         * modules/gc-random (configure.ac): Likewise.
62827         * modules/gc-rijndael (configure.ac): Likewise.
62828         * modules/gc-sha1 (configure.ac): Likewise.
62829
62830 2007-01-08  Bruno Haible  <bruno@clisp.org>
62831
62832         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
62833         macro definition.
62834         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
62835         definition.
62836         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
62837         definition.
62838         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
62839         * modules/fcntl-safer (configure.ac): Likewise.
62840         * modules/fopen-safer (configure.ac): Likewise.
62841         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
62842         GNULIB_FWRITEERROR macro definition.
62843
62844 2007-01-08  Bruno Haible  <bruno@clisp.org>
62845
62846         * m4/gnulib-common.m4: New file.
62847         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
62848         (func_get_filelist): Add m4/gnulib-common.m4.
62849
62850 2007-01-08  Bruno Haible  <bruno@clisp.org>
62851
62852         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
62853         command.
62854
62855 2007-01-08  Jim Meyering  <jim@meyering.net>
62856
62857         Use a more robust test for a "can't happen" condition.
62858         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
62859         narrowed the st_size value.  Presuming the "can't happen" condition
62860         is true, that narrowing could conceivably convert an invalid st_size
62861         value into a valid one.  Instead, use a change based on Matthew
62862         Woehlke's original patch.
62863
62864         Slight readability improvement: use an assert-like macro
62865         in place of literal "abort ()" uses.
62866         * lib/fts.c (fts_assert): Define.
62867         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
62868         Use this macro instead of a bare 'abort'.
62869
62870 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
62871
62872         Don't worry about using IRIX 5.3's wctype.h broken definitions;
62873         simply work around them.
62874         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
62875         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
62876         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
62877         declaring.
62878         Don't bother to define as macros, since the standard doesn't require it.
62879         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
62880         longer worry about IRIX 5.3.
62881         (HAVE_WCTYPE_CTMP_BUG): Remove.
62882
62883 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62884
62885         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62886         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62887         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62888         Problems reported by Georg Schwarz for IRIX 5.3.
62889
62890         * gnulib-tool (autoconf_minversion): Take the maximum version number
62891         found, not the minimum.  Problem reported by James Youngman.
62892
62893 2007-01-03  Karl Berry  <karl@gnu.org>
62894
62895         * doc/error.texi: new file, explaining interaction with progname.
62896         * doc/gnulib.texi: include it.  Update copyright.
62897
62898 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62899
62900         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62901         AC_CANONICAL_HOST, to improve autobuild outputs.
62902
62903 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62904             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62905
62906         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62907         sockets, server sockets, and other file descriptors.  Count errors
62908         to compute the return value.  Reorder the code a bit to be easier
62909         to follow.  Don't set event bits that were not requested (except
62910         POLLERR and POLLHUP).
62911
62912 2007-01-01  Bruno Haible  <bruno@clisp.org>
62913
62914         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62915
62916 2007-01-03  Jim Meyering  <jim@meyering.net>
62917
62918         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62919
62920 2007-01-02  Bruno Haible  <bruno@clisp.org>
62921
62922         * modules/settime (Include): Require timespec.h.
62923         * modules/nanosleep (Include): Likewise.
62924
62925 2007-01-01  Bruno Haible  <bruno@clisp.org>
62926
62927         * gnulib-tool (func_emit_copyright_notice): Bump year.
62928         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62929
62930 2007-01-01  Bruno Haible  <bruno@clisp.org>
62931
62932         Improve support for OpenBSD.
62933         * build-aux/config.rpath (libname_spec): Export.
62934         (library_names_spec): New variable. Export.
62935         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62936         library_names_spec from the config.rpath output. Locate shared library
62937         through the name pattern in library_names_spec.
62938
62939 2007-01-01  Eric Blake  <ebb9@byu.net>
62940
62941         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62942
62943 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62944
62945         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62946         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62947         assume the C locale, and avoid an "eval" that could cause trouble.
62948         Problem with SORT reported by Bob Proulx.
62949
62950         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62951         Define.  Trivial patch from Henning Nielsen Lund, originally
62952         sent to bug-grep@gnu.org today.
62953
62954 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62955
62956         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62957         struct stat.  Problem reported by Henning Nielsen Lund.
62958         * lib/acl.c: Include acl.h first, to check interface.  Don't
62959         bother to include sys/types.h and sys/stat.h again.
62960
62961 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62962
62963         Import the following change from libc; problem reported by
62964         Sven Verdoolaege.
62965
62966         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62967
62968         [BZ #1373]
62969         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62970
62971 2006-12-28  Jim Meyering  <jim@meyering.net>
62972
62973         * build-aux/announce-gen: Do not assume that the package
62974         builds any of tar.gz, tar.bz2, and .xdelta files.
62975         Suggestion from Simon Josefsson.
62976
62977 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62978
62979         * modules/announce-gen: New file.
62980
62981 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62982
62983         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62984         handles its gotchas now.
62985         * lib/mbswidth.c: Likewise.
62986         * lib/wcwidth.h: Likewise.
62987         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62988         and iswcntrl; the wctype module does this stuff now.
62989         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62990         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62991         * modules/mbchar (Depends-on): Add wctype.
62992         * modules/mbswidth (Depends-on): Likewise.
62993         * modules/wcwidth (Depends-on): Likewise.
62994
62995 2006-12-27  Eric Blake  <ebb9@byu.net>
62996
62997         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62998         module uses more than what <wctype.h> is required to provide.
62999
63000 2006-12-26  Eric Blake  <ebb9@byu.net>
63001
63002         * gnulib-tool (sed_extract_prog): Avoid space-tab.
63003
63004 2006-12-26  Eric Blake  <ebb9@byu.net>
63005
63006         * modules/absolute-header: New module.
63007         * modules/fcntl (Depends-on): Depend on it.
63008         * modules/inttypes (Depends-on): Likewise.
63009         * modules/stdint (Depends-on): Likewise.
63010         * modules/sys_stat (Depends-on): Likewise.
63011         * modules/wctype (Depends-on): Likewise.
63012         * MODULES.html.sh (Support for building libraries and
63013         executables): Document it.
63014
63015 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63016
63017         * gnulib-tool (SED): Remove, undoing previous change.
63018         The problem was that it broke coreutils on Solaris, because
63019         "sed --posix" leaked into a makefile.
63020         (sed): New alias, if 'alias' and GNU sed.
63021
63022 2006-12-24  Jim Meyering  <jim@meyering.net>
63023
63024         Work around an fchownat bug in glibc-2.4:
63025         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
63026         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
63027         in spite of the -P option.
63028         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
63029         New macros.
63030         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
63031         * modules/openat (Files): Add lib/fchownat.c.
63032         * lib/openat.c (fchownat): Don't define here.  Move to...
63033         * lib/fchownat.c: ...this new file.
63034
63035 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63036
63037         Fix bug reported by Bruno Haible in
63038         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
63039         where quotearg.c didn't compile on Mac OS X 10.2 because it
63040         lacks <wchar.h> and wint_t.
63041         * lib/wctype_.h (__wctype_wint_t): New type.
63042         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
63043         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
63044         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
63045         Arg is now of type __wctype_wint_t, not wint_t.
63046         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
63047         substitute HAVE_WINT_T.
63048         * modules/wctype (Files): Add m4/wint_t.m4.
63049         (wctype.h): Substitute HAVE_WINT_T.
63050
63051 2006-12-23  Bruno Haible  <bruno@clisp.org>
63052
63053         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
63054
63055 2006-12-23  Bruno Haible  <bruno@clisp.org>
63056
63057         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
63058         S_ISLNK.
63059         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
63060         mingw.
63061
63062 2006-12-22  Bruno Haible  <bruno@clisp.org>
63063
63064         * lib/copy-file.c: Include acl.h.
63065         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
63066         Close the file descriptors only after being done with copy_acl.
63067         * modules/copy-file (Depends-on): Add acl.
63068
63069 2006-12-22  Bruno Haible  <bruno@clisp.org>
63070
63071         * gnulib-tool (SED): New variable.
63072         Use $SED instead of sed everywhere.
63073
63074 2006-12-22  Bruno Haible  <bruno@clisp.org>
63075
63076         * modules/no-c++: New file.
63077         * m4/no-c++.m4: New file.
63078         * MODULES.html.sh (Support for building libraries and executables):
63079         Add no-c++.
63080
63081 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
63082
63083         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63084         Include <limits.h>, and use its INT_MAX to rewrite the
63085         j loop so that it does not overflow 'int'.  Problem reported by
63086         Ralf Wildenhues in
63087         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
63088         Play it safe by shifting left by 1 rather than multiplying by 2,
63089         as GCC is less likely to optimize this away when the value
63090         is signed (when it assumes overflow leads to undefined behavior).
63091         Also, don't assume time_t uses two's complement.
63092
63093 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
63094
63095         * MODULES.html.sh: New module wctype.
63096         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
63097         * lib/fnmatch.c: Don't bother to include <wchar.h> before
63098         <wctype.h>, since the new wctype module should fix this.
63099         * lib/quotearg.c: Include <wctype.h> unconditionally, since
63100         the wctype module should arrange for it.
63101         * lib/regex_internal.h: Likewise.
63102         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
63103         since the wctype module should handle this now.
63104         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
63105         * modules/fnmatch (Depends-on): Add wctype.
63106         * modules/quotearg (Depends-on): Likewise.
63107         * modules/regex (Depends-on): Likewise.
63108
63109 2006-12-19  Bruno Haible  <bruno@clisp.org>
63110
63111         * lib/strdup.h [C++]: Wrap definitions in extern "C".
63112         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
63113
63114 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63115
63116         * modules/savewd (Depends-on): Fix dependency on fcntl.
63117
63118 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63119
63120         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
63121         conforms to C99, rather than relying on the user's environment
63122         setting of STDINT_H.
63123
63124 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63125         and Eric Blake  <ebb9@byu.net>
63126
63127         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
63128         This is more consistent with the other defines here.
63129         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
63130         Port to z/OS.  Problem reported by Paul Gilmartin.
63131         Change local vars to use gl_ prefix rather than ac_.
63132         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
63133         with other defines.
63134         * modules/double-slash-root: New module.
63135         * modules/dirname (Files): Remove m4/double-slash-root.m4.
63136         (Depends-on): Add double-slash-root.
63137         * MODULES.html.sh (File system functions): Mention new module.
63138
63139 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
63140
63141         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
63142         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
63143         This is for the benefit of gzip, which doesn't do i18n.
63144
63145 2006-12-12  Jim Meyering  <jim@meyering.net>
63146
63147         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
63148         Reported by Andreas Schwab <schwab@suse.de>.
63149
63150 2006-12-12  Bruno Haible  <bruno@clisp.org>
63151
63152         Merge these changes.
63153         2006-09-05  Bruno Haible  <bruno@clisp.org>
63154         * lib/iconvme.c (iconv_string): No need to save and restore errno when
63155         iconv_alloc succeeded.
63156         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
63157         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
63158         test for " && dest " at the end - dest is always != NULL there. Call
63159         iconv with 4xNULL arguments initially, to reset the state. Call iconv
63160         with 2xNULL arguments, also to flush the state storage. Handle the
63161         IRIX iconv behaviour. Realloc the final result, to throw away unused
63162         memory.
63163
63164 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
63165
63166         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
63167         and fchmodat unconditionally, since glibc 2.4 has them.
63168         Problem reported by Arkadiusz Miskiewicz.
63169
63170 2006-12-10  Bruno Haible  <bruno@clisp.org>
63171
63172         * gnulib-tool (func_import): Show the include files only for those
63173         modules that are copied and specified.
63174         Reported by Karl Berry.
63175
63176 2006-12-08  Jim Meyering  <jim@meyering.net>
63177
63178         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
63179         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
63180
63181         * build-aux/announce-gen: Add two new options, both optional:
63182         --bootstrap-tools=TOOL_LIST
63183               a comma-separated list of tools, e.g.,
63184               autoconf,automake,bison,gnulib
63185         --gnulib-snapshot-date=DATE
63186               if gnulib is in the bootstrap tool list,
63187               then report this as the snapshot date.
63188               If not specified, use the current date/time.
63189               If you specify a date here, be sure it's UTC.
63190
63191 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63192
63193         * tests/test-argp-2.sh: Fix test to match actual output.
63194         (func_compare): Fix sed script to be portable.
63195
63196 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
63197
63198         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
63199         workaround for this case.  It is not autoconfigured now; offhand
63200         it's hard to see how to autoconfigure it.
63201
63202 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63203
63204         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
63205         a directory that is about to be chowned.  Such a directory's
63206         initial file permissions should permit the owner only and this
63207         should not be changed until after the chown, since the group and
63208         other bits would be incorrect if they granted permission before
63209         the chown.
63210
63211         Fix porting problem for iswctype reported by Georg Schwarz in:
63212         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
63213         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
63214         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
63215         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
63216         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63217
63218 2006-12-03  Jim Meyering  <jim@meyering.net>
63219
63220         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
63221         p->fts_statp may not yet be defined.
63222         (fts_read): Instead, set it in the caller, once p->fts_statp is
63223         sure to be defined, and corresponds to a top-level directory.
63224         This bug made du -x fail.  Here's the coreutils test case:
63225         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
63226         Reported by Mike Frysinger.
63227
63228 2006-12-01  Jim Meyering  <jim@meyering.net>
63229
63230         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
63231         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
63232         Reported by Simon Josefsson.
63233
63234 2006-11-30  Jim Meyering  <jim@meyering.net>
63235
63236         * m4/warning.m4: Use the all-permissive copyright notice
63237         recommended by RMS (rather than LGPL).
63238         * m4/vararrays.m4: Likewise.
63239         * m4/flexmember.m4: Likewise.
63240
63241 2006-11-29  Bruno Haible  <bruno@clisp.org>
63242
63243         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63244         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
63245         using +=.
63246         Reported by Simon Josefsson <simon@josefsson.org>.
63247
63248 2006-11-28  James Youngman <jay@gnu.org>
63249
63250         * README: Advise users that they might find the bug-gnulib@gnu.org
63251         and autotools-announce@gnu.org mailing lists useful.
63252
63253 2006-11-28  Bruno Haible  <bruno@clisp.org>
63254
63255         * m4/ptrdiff_max.m4: Remove file.
63256
63257 2006-11-21  Bruno Haible  <bruno@clisp.org>
63258
63259         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
63260         _AC_COMPUTE_INT.
63261         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63262         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
63263         _AC_COMPUTE_INT.
63264         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63265         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
63266         _AC_COMPUTE_INT.
63267         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63268
63269 2006-11-28  Jim Meyering  <jim@meyering.net>
63270
63271         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
63272         warning from "gcc -Wshadow" about shadowing the builtin.
63273
63274 2006-11-27  Bruno Haible  <bruno@clisp.org>
63275
63276         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
63277         _AC_COMPUTE_INT.
63278         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63279
63280 2006-11-27  Bruno Haible  <bruno@clisp.org>
63281             Paul Eggert  <eggert@cs.ucla.edu>
63282
63283         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
63284
63285 2006-11-26  Bruno Haible  <bruno@clisp.org>
63286
63287         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63288         noinst_LTLIBRARIES.
63289
63290 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63291             Bruno Haible  <bruno@clisp.org>
63292
63293         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
63294         if compiling with "gcc -ansi".
63295
63296 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63297
63298         Fix some incompatibilities with gcc -ansi -pedantic.
63299         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
63300         if compiling pedantically with GCC, unless it's C99 or later.
63301         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
63302         it mishandles gcc -ansi -pedantic as well.
63303         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
63304         if gcc -pedantic.
63305         * lib/regexec.c (check_node_accept_bytes): Don't use auto
63306         initializers for struct if -pedantic, unless it's C99 or later.
63307
63308 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
63309
63310         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
63311         Don't close an fd more than once. Identical atimes indicate
63312         success, not failure.
63313
63314 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
63315
63316         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
63317
63318 2006-11-23  Jim Meyering  <jim@meyering.net>
63319
63320         * build-aux/announce-gen: New file.  From coreutils.
63321
63322 2006-11-22  Jim Meyering  <jim@meyering.net>
63323
63324         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
63325         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
63326         (fts_read): Use a temporary to narrow the overused st_size member
63327         before using it in a switch statement.  Reported by Matthew Woehlke.
63328
63329         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
63330         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63331
63332 2006-11-20  Bruno Haible  <bruno@clisp.org>
63333
63334         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
63335         changequote instead of pairs of brackets.
63336         Reported by Andreas Schwab <schwab@suse.de>.
63337
63338 2006-11-21  Jim Meyering  <jim@meyering.net>
63339
63340         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
63341         so as to remain compatible with older compilers.
63342         Patch from Michael Deutschmann.
63343
63344 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63345
63346         * MODULES.html.sh (File system functions): Add openat.
63347
63348         * lib/openat.h (rpl_fstatat): New macro, if
63349         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
63350         (fstatat): Define to rpl_fstatat under the same conditions,
63351         unless COMPILING_FSTATAT.
63352         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
63353         seems to have the bug.
63354         * lib/fstatat.c: New file.
63355         * modules/openat (Files): Add it.
63356
63357 2006-11-20  Bruno Haible  <bruno@clisp.org>
63358
63359         * Makefile: New file.
63360
63361 2006-11-20  Jim Meyering  <jim@meyering.net>
63362
63363         The beginnings of syntax-related checks for gnulib.
63364         * lib/Makefile: New file.
63365         * lib/t-idcache: New script.  Ensure that the two halves of
63366         idcache.c stay in sync.
63367
63368         * lib/idcache.c: Adjust comments in user- and group- portions to
63369         be more accurate, and to be consistent with one another.
63370
63371 2006-11-20  Jim Meyering  <jim@meyering.net>
63372
63373         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
63374         continue using the flexible array member (thus, this module performs
63375         half as many malloc calls), with the addition that...
63376         (getgroup, getuser): Consistently record a non-match via an empty
63377         "name" string, and map an empty string match to a NULL return value.
63378         * modules/idcache (Depends-on): Re-add flexmember.
63379
63380         * lib/idcache.c (getuser): Remove all uses of the register keyword.
63381         (getuidbyname, getgroup, getgidbyname): Likewise.
63382
63383         Use cleaner syntax: NULL rather than 0.
63384         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
63385
63386 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63387
63388         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
63389         It mishandled the case where the group was missing.
63390         Problem reported by Greg Schafer.
63391         * modules/idcache: Likewise.
63392
63393 2006-11-18  Jim Meyering  <jim@meyering.net>
63394
63395         * check-module (%exempt_header): Add exception for some
63396         conditionally-included headers.
63397
63398         * modules/i-ring (Depends-on): Add verify.
63399         (License): Change to LGPL.
63400
63401 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63402
63403         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
63404         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
63405         and inttostr.h.  Use snprintf rather than uinttostr, so that
63406         LGPLed code doesn't depend on GPLed.
63407
63408 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63409
63410         * modules/inline (License): Change from GPL to LGPL.
63411
63412 2006-11-17  Jim Meyering  <jim@meyering.net>
63413
63414         * modules/d-type (License): Switch to LGPL.
63415
63416 2006-11-15  Bruno Haible  <bruno@clisp.org>
63417
63418         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
63419
63420 2006-11-15  Eric Blake  <ebb9@byu.net>
63421
63422         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
63423         the module dependency.
63424
63425 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63426             Bruno Haible  <bruno@clisp.org>
63427
63428         * gnulib-tool (func_create_testdir): Add license consistency check.
63429
63430 2006-11-15  Eric Blake  <ebb9@byu.net>
63431
63432         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
63433         random "(cached)" in configure output.
63434
63435 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63436
63437         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
63438         test for conforming inttypes.h is both announced and cached.
63439
63440         * MODULES.html.sh (seen_modules, seen_files): New variables.
63441         (func_module): Rewrite to use a few less gnulib-tool and sed
63442         invocations.  Avoid a couple of quadratic algorithms for ...
63443         (missed_modules, missed_files): ... these, with ...
63444         (func_append, func_tmpdir): ... these new functions, from
63445         gnulib-tool.  Analogously, install traps for cleanup.
63446
63447         * tests/test-gc.c (main): Remove unused variables.
63448         * tests/test-read-file.c: Include stdlib.h, for 'free'.
63449
63450 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
63451
63452         * modules/inttostr (License): Change to LGPL.
63453
63454 2006-11-14  Eric Blake  <ebb9@byu.net>
63455
63456         * modules/tempname (License): Change to LGPL.
63457
63458 2006-11-14  Eric Blake  <ebb9@byu.net>
63459
63460         * doc/functions.texi (Function Portability): *printf functions on
63461         Cygwin now understand all POSIX size specifiers.
63462
63463 2006-11-14  Bruno Haible  <bruno@clisp.org>
63464
63465         * modules/c-ctype (License): Change to LGPL.
63466
63467 2006-11-12  Bruno Haible  <bruno@clisp.org>
63468
63469         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63470         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
63471         for GNOME libraries, for which the include files are installed in
63472         subdirectories of $prefix/include.
63473
63474 2006-11-12  Bruno Haible  <bruno@clisp.org>
63475
63476         * m4/lib-link.m4: Require at least autoconf-2.54.
63477         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
63478         name to underscores for the --with option.
63479
63480 2006-11-13  Bruno Haible  <bruno@clisp.org>
63481
63482         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
63483         the tests directory.
63484         Reported by Ralf Wildenhues.
63485
63486 2006-11-13  Bruno Haible  <bruno@clisp.org>
63487
63488         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
63489         (func_emit_initmacro_end): Undo the override here.
63490         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
63491         Works around the famous automake error in coreutils.
63492
63493 2006-11-13  Eric Blake  <ebb9@byu.net>
63494
63495         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
63496         element, not its node.
63497
63498 2006-11-12  Bruno Haible  <bruno@clisp.org>
63499
63500         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
63501         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
63502
63503 2006-11-12  Bruno Haible  <bruno@clisp.org>
63504
63505         * gnulib-tool: New option --local-symlink.
63506         (func_usage): Document it.
63507         (lsymbolic): New variable.
63508         (func_import, func_create_testdir): If --symlink was not specified,
63509         test whether --local-symlink was specified and the file comes from
63510         the local_gnulib_dir.
63511
63512 2006-11-12  Bruno Haible  <bruno@clisp.org>
63513
63514         * gnulib-tool (func_ln): New function.
63515         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
63516
63517 2006-11-12  Bruno Haible  <bruno@clisp.org>
63518
63519         Finish support for source files in subdirectories.
63520         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
63521         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
63522         AUTOMAKE_OPTIONS.
63523         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
63524
63525 2006-11-12  Bruno Haible  <bruno@clisp.org>
63526
63527         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63528         EXTRA_lib_SOURCES augmentation.
63529         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
63530
63531 2006-11-12  Jim Meyering  <jim@meyering.net>
63532
63533         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
63534         file descriptors.  This also averts a failure on systems with
63535         native openat support when a traversed directory lacks "x" access.
63536         * lib/fts_.h: Include "i-ring.h"
63537         (struct FTS) [fts_fd_ring]: New member.
63538         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
63539         (FCHDIR): Add parentheses.
63540         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
63541         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
63542         When descending, rather than simply closing the previous
63543         fts_cwd_fd value, push that file descriptor onto the ring.
63544         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
63545         (fts_open): Initialize the new fd_ring member.
63546         (fts_close): Clear the ring.
63547         (fts_safe_changedir): When possible, use our new fd_ring to skip
63548         the diropen and fstat and dev/ino comparison that would normally
63549         accompany a virtual `chdir ("..")'.
63550
63551         * modules/fts (Depends-on): Add i-ring.
63552         * modules/i-ring: New module.
63553         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
63554         * m4/i-ring.m4: New file.
63555
63556 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63557
63558         * gnulib-tool (func_create_testdir): Fix replacement of
63559         `build-aux' in configure.ac.  Run autotools in gltests
63560         subdirectory.
63561         (func_create_testdir, func_create_megatestdir, test): There is
63562         no need for '--force' in most autotool invocations in a new
63563         tree.  Actually fail the whole test if any of the tools, or the
63564         configure or make stages fail.
63565
63566         Sync from Automake.
63567         * build-aux/gnupload: Revert last change.  Add pointer to upload
63568         instructions of the GNU Maintenance Instructions.
63569         Suggestion by Karl Berry.
63570
63571 2006-11-10  Jim Meyering  <jim@meyering.net>
63572
63573         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
63574
63575 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63576
63577         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
63578         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
63579         (bind_textdomain_codeset) [! ENABLE_NLS]:
63580         Evaluate all the arguments.  That way, callers get compatible behavior
63581         if the arguments have side effects.  Also, it avoids some GCC
63582         diagnostics in some cases; Joel E. Denny reported problems when Bison
63583         was configured with --enable-gcc-warnigs.
63584
63585 2006-11-10  Jim Meyering  <jim@meyering.net>
63586
63587         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
63588         relevant options in CFLAGS (like -O, -fno-inline) are taken into
63589         account.
63590
63591 2006-11-10  Jim Meyering  <jim@meyering.net>
63592
63593         * modules/inline: New file/module.
63594         * modules/xalloc (Files): Remove m4/inline.m4.
63595         (Depends-on): Add inline, instead.
63596         * modules/oset: Likewise.
63597         * modules/list: Likewise.
63598
63599 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63600
63601         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
63602         Problem reported by Matthew Woehlke.
63603
63604 2006-11-09  Bruno Haible  <bruno@clisp.org>
63605
63606         * lib/tempname.c (gen_tempname): Remove variant that invokes
63607         __gen_tempname.
63608         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
63609         __gen_tempname.
63610
63611 2006-11-08  Bruno Haible  <bruno@clisp.org>
63612
63613         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
63614         to 'yes' instead of 'cross-compiling'.
63615
63616 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
63617
63618         * lib/quotearg.h (quotearg_free): New decl.
63619         * lib/quotearg.c (quotearg_free): New function.
63620         (slot0, nslots, slotvec0, slotvec):
63621         Now file-scope so that quotearg_free can get at them.
63622
63623 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63624
63625         Sync from Automake.
63626         * build-aux/gnupload: Add missing 'gnu' to example URL.
63627         Report by Karl Berry.
63628
63629 2006-11-08  Bruno Haible  <bruno@clisp.org>
63630
63631         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
63632         Suggested by Paul Eggert.
63633
63634 2006-11-08  Jim Meyering  <jim@meyering.net>
63635
63636         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
63637         It's already included if !_LIBC.
63638         (fts_safe_changedir): Add a comment.
63639
63640 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63641
63642         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
63643         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
63644         Matthew Woehlke.
63645
63646         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
63647         definitions up, to avoid colliding with change below.
63648         (static_inline) [HAVE_INLINE]: New macro.
63649         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
63650         Provide extern decls when !HAVE_INLINE.  Do not define unless
63651         static_inline is defined, either by us or by xmalloc.c.  Use
63652         static_inline rather than static inline.
63653         (XCALLOC): Optimize sizeof(T) = 1 case.
63654         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
63655
63656 2006-11-07  Bruno Haible  <bruno@clisp.org>
63657
63658         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
63659         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
63660         AC_C_INLINE.
63661         * modules/xalloc (Files): Add m4/inline.m4.
63662
63663 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63664
63665         * README: Fix typo.
63666         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
63667         (Miscellanous Notes): ...from this.
63668
63669 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63670
63671         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
63672         Mention that offsetof should be used instead of sizeof.
63673         From Bruno Haible.
63674
63675 2006-11-07  Bruno Haible  <bruno@clisp.org>
63676
63677         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
63678
63679 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63680
63681         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63682         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
63683         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63684         (gl_tree_add_before, gl_tree_add_after):
63685         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
63686         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
63687         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63688         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
63689         (gl_linked_add_after, gl_linked_add_at): Likewise.
63690         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
63691         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63692         (gl_tree_add_before, gl_tree_add_after): Likewise.
63693         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
63694         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
63695         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
63696
63697 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63698
63699         * lib/gl_oset.h: Use C comment style, not C++ comment style.
63700
63701 2006-11-06  Bruno Haible  <bruno@clisp.org>
63702
63703         * m4/inline.m4: New file.
63704         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
63705         * modules/list (Files): Add m4/inline.m4.
63706         * modules/oset (Files): Likewise.
63707
63708 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63709
63710         * lib/idcache.c: Include <stddef.h>, for offsetof.
63711         (struct userid.name): Change from char * to a flexible array member.
63712         All uses changed.
63713         * modules/idcache (Depends-on): Add flexmember.
63714
63715         * MODULES.html.sh (Core language properties): New module flexmember.
63716         * modules/flexmember, m4/flexmember.m4: New files.
63717
63718         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
63719         inline functions that are identical with the old xnmalloc_inline,
63720         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
63721         that we can avoid some unnecessary integer multiplications and
63722         divisions in the common case where the element size is known at
63723         compile time.
63724         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
63725         needed.
63726         (xnboundedmalloc): Remove.
63727         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
63728         arguments, for consistency with rest of this header.
63729         (xcharalloc): Rewrite using XNMALLOC.
63730         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
63731         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
63732         versions have been moved to lib/xalloc.h and renamed to be the
63733         non-*_inline versions.
63734         (xmalloc, xrealloc): Implement without reference to the xnmalloc
63735         and xnrealloc functions, since those functions are now inline and
63736         now call us.
63737         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
63738         renaming described above.
63739         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
63740         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
63741         captures the dependency in AC_C_INLINE.
63742
63743         New module canonicalize-lgpl, proposed by Charles Wilson in
63744         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
63745         with a few small changes afterwards.
63746         * MODULES.html.sh (File system functions): New module
63747         canonicalize-lgpl.
63748         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
63749         and canonicalize_file_name.
63750         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
63751         * modules/canonicalize-lgpl: New files.
63752
63753 2006-11-05  Bruno Haible  <bruno@clisp.org>
63754
63755         * gnulib-tool (func_import, func_create_testdir): Create directories
63756         also for files in subdirectories of lib/.
63757
63758 2006-11-05  Bruno Haible  <bruno@clisp.org>
63759
63760         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
63761         ANSI C compliant.
63762
63763 2006-11-03  Bruno Haible  <bruno@clisp.org>
63764
63765         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63766         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
63767         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
63768         (xnboundedmalloc): New inline function.
63769         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
63770         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
63771         xmalloc.
63772         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
63773         xmalloc.
63774         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
63775         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
63776         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
63777         xmalloc.
63778         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63779         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
63780         xmalloc.
63781         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
63782         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63783         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
63784         xmalloc.
63785         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63786         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
63787         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63788         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
63789         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
63790         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
63791         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
63792
63793 2006-11-03  Bruno Haible  <bruno@clisp.org>
63794
63795         * lib/c-ctype.h [C++]: Define functions without name mangling.
63796         * lib/fwriteerror.h [C++]: Likewise.
63797         * lib/gcd.h [C++]: Likewise.
63798         * lib/linebreak.h [C++]: Likewise.
63799
63800 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63801
63802         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63803         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63804         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63805         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63806         Check for functions and headers just once.
63807         Check for declaration of canonicalize_file_name.
63808         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63809
63810 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63811
63812         * gnulib-tool (func_import): Fix typo in actioncmd.
63813
63814 2006-11-02  Bruno Haible  <bruno@clisp.org>
63815
63816         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63817         newline sequence in the Makefile.am snippet as a space, like "make"
63818         does.
63819         Reported by Roger Persson <perrog@gmail.com>.
63820
63821 2006-11-01  Bruno Haible  <bruno@clisp.org>
63822
63823         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
63824         already declared in <string.h>.
63825         * lib/strcase.h (strncasecmp): Don't declare it if yes.
63826
63827 2006-11-01  Bruno Haible  <bruno@clisp.org>
63828
63829         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
63830         * lib/strcase.h: Include <string.h>.
63831         (strcasecmp): Define to rpl_strcasecmp here.
63832
63833 2006-11-01  Bruno Haible  <bruno@clisp.org>
63834
63835         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
63836
63837 2006-11-01  Eric Blake  <ebb9@byu.net>
63838
63839         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
63840
63841         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
63842
63843 2006-10-29  Bruno Haible  <bruno@clisp.org>
63844
63845         Make it compile in C++ mode.
63846         * lib/full-write.c (full_rw): Add a cast.
63847
63848 2006-11-01  Bruno Haible  <bruno@clisp.org>
63849
63850         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
63851         be POSIX compliant.
63852         Reported by Roger Persson <perrog@gmail.com>.
63853
63854 2006-11-01  Eric Blake  <ebb9@byu.net>
63855
63856         * lib/getopt_.h: Fix comments.
63857
63858 2006-10-31  Eric Blake  <ebb9@byu.net>
63859
63860         * modules/tmpdir (Depends-on): Add sys_stat.
63861         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
63862         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
63863         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
63864         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
63865         tempname.
63866
63867 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
63868
63869         Avoid some C++ diagnostics reported by Bruno Haible.
63870         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
63871         xmalloc.
63872         (quotearg_alloc): Use xcharalloc rather than xmalloc.
63873         (struct slotvec): Move to top level.
63874         (quotearg_n_options): Rewrite to avoid xmalloc.
63875         * lib/xalloc.h (xcharalloc): New function.
63876         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
63877         [defined __cplusplus]: Add function template that provides result
63878         type propagation.  This part of the change is from Bruno Haible.
63879
63880 2006-10-29  Bruno Haible  <bruno@clisp.org>
63881
63882         Make it compile in C++ mode.
63883         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63884         * lib/strnlen1.c (strnlen1): Cast memchr result.
63885         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63886         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63887         (create_temp_dir): Rename local variable 'template'.
63888         (compile_csharp_using_sscli): Add cast.
63889         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63890         * lib/findprog.c (find_in_path): Likewise.
63891         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63892         * lib/wait-process.c (register_slave_subprocess): Likewise.
63893
63894 2006-10-22  Bruno Haible  <bruno@clisp.org>
63895
63896         * modules/tsearch: New file.
63897         * lib/tsearch.h: New file.
63898         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63899         * m4/tsearch.m4: New file.
63900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63901
63902 2006-10-29  Eric Blake  <ebb9@byu.net>
63903
63904         * lib/arcfour.c: Assume config.h.
63905         * lib/arctwo.c: Likewise.
63906         * lib/base64.c: Likewise.
63907         * lib/check-version.c: Likewise.
63908         * lib/crc.c: Likewise.
63909         * lib/des.c: Likewise.
63910         * lib/gc-gnulib.c: Likewise.
63911         * lib/gc-libgcrypt.c: Likewise.
63912         * lib/gc-pbkdf2-sha1.c: Likewise.
63913         * lib/getaddrinfo.c: Likewise.
63914         * lib/getdelim.c: Likewise.
63915         * lib/getline.c: Likewise.
63916         * lib/hmac-md5.c: Likewise.
63917         * lib/hmac-sha1.c: Likewise.
63918         * lib/iconvme.c: Likewise.
63919         * lib/md2.c: Likewise.
63920         * lib/md4.c: Likewise.
63921         * lib/memxor.c: Likewise.
63922         * lib/read-file.c: Likewise.
63923         * lib/readline.c: Likewise.
63924         * lib/rijndael-alg-fst.c: Likewise.
63925         * lib/rijndael-api-fst.c: Likewise.
63926         * lib/xgetdomainname.c: Likewise.
63927
63928 2006-10-28  Eric Blake  <ebb9@byu.net>
63929
63930         * lib/xstrndup.c: Assume config.h.
63931
63932 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63933
63934         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63935         stat-macros.h is now for our own macros, whereas stat_h is for
63936         macros in the <sys/stat.h> name space.
63937         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63938         (STAT_MACROS_H): Remove.
63939         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63940         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63941         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63942         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63943         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63944         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63945         Move these macros to ...
63946         * lib/stat_.h: here.  Don't include stat-macros.h.
63947         * lib/canonicalize.c: Don't include stat-macros.h.
63948         * lib/chown.c: Likewise.
63949         * lib/euidaccess.c: Likewise.
63950         * lib/file-type.c: Likewise.
63951         * lib/filemode.c: Likewise.
63952         * lib/glob.c: Likewise.
63953         * lib/isapipe.c: Likewise.
63954         * lib/lchown.c: Likewise.
63955         * lib/lstat.c: Likewise.
63956         * lib/mkdir-p.c: Likewise.
63957         * lib/rmdir.c: Likewise.
63958         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63959         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63960         unless mkdir isn't declared, to speed up 'configure'.
63961         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63962         would define all the S_* symbols.
63963         * modules/canonicalize (Depends-on):
63964         Depend on sys_stat, not stat-macros.
63965         * modules/chown: Likewise.
63966         * modules/euidaccess: Likewise.
63967         * modules/filemode: Likewise.
63968         * modules/file-type: Likewise.
63969         * modules/glob: Likewise.
63970         * modules/isapipe: Likewise.
63971         * modules/lchown: Likewise.
63972         * modules/lstat: Likewise.
63973         * modules/mkancesdirs: Likewise.
63974         * modules/rmdir: Likewise.
63975         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63976         * modules/modechange: Likewise.
63977         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63978         (configure.ac): Remove gl_STAT_MACROS.
63979         * modules/sys_stat (Depends-on): Remove stat-macros.
63980
63981 2006-10-27  Bruno Haible  <bruno@clisp.org>
63982
63983         * m4/signed.m4: Remove file.
63984         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63985         invocation.
63986         * modules/vasnprintf (Files): Remove m4/signed.m4.
63987
63988 2006-10-27  Bruno Haible  <bruno@clisp.org>
63989
63990         Update to GNU gettext 0.16.
63991         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63992         m4/inttypes-h.m4, m4/signed.m4.
63993         * m4/gettext.m4: Update to GNU gettext 0.16.
63994         * m4/intl.m4: New file, from GNU gettext.
63995         * m4/intldir.m4: New file, from GNU gettext.
63996         * config/srclist.txt: Update
63997
63998 2006-10-27  Eric Blake  <ebb9@byu.net>
63999
64000         * MODULES.html.sh: Document tempname.
64001         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
64002         dependencies.
64003         (Files): Move lib/tempname.c...
64004         * modules/tempname: ...to this new module.
64005         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
64006         (gl_PREREQ_TEMPNAME): Move...
64007         * m4/tempname.m4: ...to this new file.
64008         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
64009         * modules/sys_stat (Depends-on): Add stat-macros.
64010         * lib/stat_.h (includes): Pick up stat macros.
64011         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
64012         if stat macros are broken.
64013         * lib/tempname.c (includes): No need to include "stat-macros.h".
64014         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
64015         (direxists, __path_search) [!_LIBC]: Don't compile these in
64016         gnulib; the tmpdir module covers that.
64017         * lib/tempname.h: New file.
64018
64019 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64020
64021         * COPYING: Explain how gnulib-tool converts licence headers.
64022         Almost all wording by Eric Blake.
64023
64024 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
64025
64026         * lib/mbchar.h (is_basic_table): Make read-only.
64027         * lib/mbchar.c (is_basic_table): Likewise.
64028         Reported by John Darrington.
64029
64030 2006-10-25  Bruno Haible  <bruno@clisp.org>
64031
64032         * lib/progname.h (set_program_name): Undefine before defining.
64033
64034 2006-10-25  Bruno Haible  <bruno@clisp.org>
64035
64036         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
64037         false for non-gcc C++ compilers.
64038         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
64039
64040 2006-10-24  Bruno Haible  <bruno@clisp.org>
64041
64042         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
64043         iconv implementations like Irix iconv.
64044
64045 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * modules/vararrays: New file.
64048         * m4/vararrays.m4: New file, taken from diffutils.
64049         * MODULES.html.sh: New module vararrays.
64050
64051 2006-10-24  Karl Berry  <karl@gnu.org>
64052
64053         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
64054         Don't call GNU Unix.
64055
64056 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64057
64058         * users.txt: Add Libtool.
64059
64060         Sync from Libtool:
64061
64062         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64063
64064         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
64065         to gnulib's policy of including config.h unconditionally.
64066
64067 2006-10-24  Bruno Haible  <bruno@clisp.org>
64068
64069         * modules/wcwidth (Files): Add m4/wint_t.m4.
64070         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
64071         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
64072
64073 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64074
64075         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
64076         to pacify GCC with some -W flags enabled.  Problem reported by
64077         Bruno Haible.
64078
64079 2006-10-24  Jim Meyering  <jim@meyering.net>
64080
64081         * MODULES.html.sh: Remove uinttostr.  It's not a module.
64082         Reported by Karl Berry.
64083
64084 2006-10-23  Bruno Haible  <bruno@clisp.org>
64085
64086         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
64087
64088 2006-10-24  Bruno Haible  <bruno@clisp.org>
64089
64090         * lib/gl_list.h: Use C comment style, not C++ comment style.
64091
64092 2006-10-23  Eric Blake  <ebb9@byu.net>
64093
64094         * lib/getaddrinfo.c (includes): Add missing include.
64095
64096 2006-10-23  Bruno Haible  <bruno@clisp.org>
64097             Paul Eggert  <eggert@cs.ucla.edu>
64098
64099         Ability to rename obstack_free.
64100         * lib/obstack.h (__obstack_free): New macro. Declare instead of
64101         obstack_free.
64102         (obstack_free): Invoke the __obstack_free macro.
64103         * lib/obstack.c (obstack_free): Use __obstack_free macro.
64104
64105 2006-10-23  Bruno Haible  <bruno@clisp.org>
64106             Paul Eggert  <eggert@cs.ucla.edu>
64107
64108         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
64109         __argc, __argv from the declaration. (They are defined as macros on
64110         mingw.)
64111
64112 2006-10-22  Bruno Haible  <bruno@clisp.org>
64113
64114         * doc/gnulib-intro.texi: New file.
64115         * doc/gnulib.texi: Include it.
64116
64117 2006-10-21  Bruno Haible  <bruno@clisp.org>
64118
64119         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
64120         "Introduction", "Miscellanous Notes", "Particular Modules".
64121
64122 2006-10-21  Bruno Haible  <bruno@clisp.org>
64123
64124         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64125         Change mostlyclean-local rule to avoid sh syntax error from bash
64126         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
64127
64128 2006-10-23  Jim Meyering  <jim@meyering.net>
64129
64130         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
64131         in place of snprintf.
64132
64133         * modules/inttostr (Files): Add lib/uinttostr.c.
64134         * lib/uinttostr.c (inttostr): New file/function.
64135         * lib/inttostr.h (uinttostr): Declare.
64136         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
64137         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64138         Add uinttostr.
64139         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
64140
64141 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
64142
64143         * lib/canonicalize.c (ELOOP): Define if not already defined.
64144         Problem reported by Bruno Haible in
64145         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
64146
64147 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
64148
64149         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
64150         Problem reported by Perry Smith and Ville Laurikari.
64151
64152         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
64153         uses.
64154
64155 2006-10-19  Bruno Haible  <bruno@clisp.org>
64156
64157         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
64158         for mingw.
64159
64160 2006-10-19  Bruno Haible  <bruno@clisp.org>
64161
64162         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
64163         Needed for mingw.
64164
64165 2006-10-19  Bruno Haible  <bruno@clisp.org>
64166
64167         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
64168
64169 2006-10-19  Bruno Haible  <bruno@clisp.org>
64170
64171         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
64172         it.
64173
64174 2006-10-19  Bruno Haible  <bruno@clisp.org>
64175
64176         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
64177         invocation.
64178
64179 2006-10-19  Bruno Haible  <bruno@clisp.org>
64180
64181         * gnulib-tool (func_create_testdir): Don't include ftruncate and
64182         mountlist by default.
64183
64184 2006-10-16  Bruno Haible  <bruno@clisp.org>
64185
64186         * lib/c-strstr.c: Include c-strstr.h.
64187
64188 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64189
64190         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
64191         in a slash.
64192
64193 2006-10-18  Bruno Haible  <bruno@clisp.org>
64194
64195         * lib/lock.h [C++]: Wrap definitions in extern "C".
64196
64197 2006-10-18  Bruno Haible  <bruno@clisp.org>
64198
64199         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
64200         gl_LIBOBJS list.
64201
64202 2006-10-18  Bruno Haible  <bruno@clisp.org>
64203
64204         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
64205
64206 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
64207
64208         * lib/xstrtol.h: Include gettext.h.
64209         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
64210         Problem reported by Eric Blake.
64211         * modules/xstrtol (Depends-on): Add gettext-h.
64212
64213 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
64214
64215         * lib/strftime.c (advance): New macro.
64216         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
64217         incomplete type, so you can't add 0 to it.  Problem and patch
64218         reported by Eelco Dolstra for dietlibc.
64219
64220 2006-10-18  Jim Meyering  <jim@meyering.net>
64221
64222         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
64223         type for a local, and rename it: s/up/user_proc/.
64224
64225 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64226
64227         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
64228         READ_UTMP_USER_PROCESS.
64229         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
64230
64231 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64232
64233         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
64234         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
64235
64236 2006-10-17  Eric Blake  <ebb9@byu.net>
64237
64238         * lib/sigprocmask.c (sigprocmask): Fix typo.
64239
64240         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
64241
64242         * modules/clean-temp (Makefile.am): Don't add to make output...
64243         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
64244         config.h.
64245
64246 2006-10-17  Bruno Haible  <bruno@clisp.org>
64247
64248         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
64249         differently if DEFAULT_TEXT_DOMAIN is set.
64250
64251 2006-10-16  Bruno Haible  <bruno@clisp.org>
64252
64253         * lib/clean-temp.c: Include fwriteerror.h.
64254
64255 2006-10-16  Bruno Haible  <bruno@clisp.org>
64256
64257         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
64258
64259 2006-10-16  Bruno Haible  <bruno@clisp.org>
64260
64261         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
64262         * lib/sigprocmask.h: Include <sys/types.h>.
64263         (sigset_t): Use the system's definition if present.
64264
64265 2006-10-17  Eric Blake  <ebb9@byu.net>
64266
64267         * lib/xvasprintf.c (includes): Assume config.h.
64268         * lib/xasprintf.c (includes): Likewise.
64269
64270 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64271
64272         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
64273         at least as wide as intmax_t.
64274
64275 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
64276
64277         (Imported from Automake.)
64278         * build-aux/gnupload: Update to version 1.1 of directive file.
64279
64280 2006-10-16  Eric Blake  <ebb9@byu.net>
64281
64282         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
64283         match Automake 1.10a.
64284
64285 2006-10-14  Bruno Haible  <bruno@clisp.org>
64286
64287         * modules/sigprocmask: New file.
64288         * lib/sigprocmask.h: New file.
64289         * lib/sigprocmask.c: New file.
64290         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
64291         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
64292         request sigprocmask.o.
64293         (gl_PREREQ_SIGPROCMASK): New macro.
64294         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
64295         (Depends-on): Add sigprocmask.
64296         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
64297         gt_SIGNALBLOCKING. Test for 'raise' only once.
64298         * lib/fatal-signal.c: Include sigprocmask.h.
64299         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
64300         unblock_fatal_signals): Define always.
64301         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64302         sigprocmask.
64303
64304 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64305
64306         Sync from Automake.
64307         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
64308         which incorrectly sets the mode of an existing destination
64309         directory.  In some cases the unpatched install-sh could do the
64310         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
64311         system.  We hope this is rare in practice, but it's clearly worth
64312         fixing.  Problem reported by Alex Unleashed in
64313         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
64314         Also, don't bother to check for -m bugs unless we're using -m;
64315         suggested by Stepan Kasal.
64316
64317 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64318
64319         Sync from Automake.
64320         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
64321         `-c' flag, so they appear at the same position as in %FASTDEP%
64322         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
64323         which ignores unknown options only after the first non-option.
64324         Bug report against M4 by Nelson H. F. Beebe.
64325
64326 2006-10-13  Jim Meyering  <jim@meyering.net>
64327
64328         Fix a bug in yesterday's change.
64329         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
64330         p->fts_statp->st_dev would be used uninitialized.
64331         Ensures that we always call fts_stat on the very first entry.
64332         Miklos Szeredi reported that find -xdev stopped working.
64333
64334 2006-10-12  Bruno Haible  <bruno@clisp.org>
64335
64336         * gnulib-tool (func_get_automake_snippet): Append an automatically
64337         computed EXTRA_DIST augmentation.
64338         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
64339         * modules/alloca-opt (Makefile.am): Likewise.
64340         * modules/allocsa (Makefile.am): Likewise.
64341         * modules/arcfour (Makefile.am): Likewise.
64342         * modules/arctwo (Makefile.am): Likewise.
64343         * modules/argmatch (Makefile.am): Likewise.
64344         * modules/argz (Makefile.am): Likewise.
64345         * modules/atexit (Makefile.am): Likewise.
64346         * modules/backupfile (Makefile.am): Likewise.
64347         * modules/byteswap (Makefile.am): Likewise.
64348         * modules/c-strtod (Makefile.am): Likewise.
64349         * modules/c-strtold (Makefile.am): Likewise.
64350         * modules/calloc (Makefile.am): Likewise.
64351         * modules/canon-host (Makefile.am): Likewise.
64352         * modules/canonicalize (Makefile.am): Likewise.
64353         * modules/chdir-long (Makefile.am): Likewise.
64354         * modules/chdir-safer (Makefile.am): Likewise.
64355         * modules/check-version (Makefile.am): Likewise.
64356         * modules/chown (Makefile.am): Likewise.
64357         * modules/cloexec (Makefile.am): Likewise.
64358         * modules/close-stream (Makefile.am): Likewise.
64359         * modules/closeout (Makefile.am): Likewise.
64360         * modules/crc (Makefile.am): Likewise.
64361         * modules/csharpexec (Makefile.am): Likewise.
64362         * modules/cycle-check (Makefile.am): Likewise.
64363         * modules/des (Makefile.am): Likewise.
64364         * modules/dev-ino (Makefile.am): Likewise.
64365         * modules/dirfd (Makefile.am): Likewise.
64366         * modules/dirname (Makefile.am): Likewise.
64367         * modules/dup2 (Makefile.am): Likewise.
64368         * modules/eealloc (Makefile.am): Likewise.
64369         * modules/error (Makefile.am): Likewise.
64370         * modules/euidaccess (Makefile.am): Likewise.
64371         * modules/exclude (Makefile.am): Likewise.
64372         * modules/exitfail (Makefile.am): Likewise.
64373         * modules/fcntl-safer (Makefile.am): Likewise.
64374         * modules/fcntl (Makefile.am): Likewise.
64375         * modules/file-type (Makefile.am): Likewise.
64376         * modules/fileblocks (Makefile.am): Likewise.
64377         * modules/filemode (Makefile.am): Likewise.
64378         * modules/filenamecat (Makefile.am): Likewise.
64379         * modules/fnmatch (Makefile.am): Likewise.
64380         * modules/fopen-safer (Makefile.am): Likewise.
64381         * modules/fpending (Makefile.am): Likewise.
64382         * modules/fprintftime (Makefile.am): Likewise.
64383         * modules/free (Makefile.am): Likewise.
64384         * modules/fsusage (Makefile.am): Likewise.
64385         * modules/ftruncate (Makefile.am): Likewise.
64386         * modules/fts (Makefile.am): Likewise.
64387         * modules/gc-arcfour (Makefile.am): Likewise.
64388         * modules/gc-des (Makefile.am): Likewise.
64389         * modules/gc-hmac-md5 (Makefile.am): Likewise.
64390         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
64391         * modules/gc-md4 (Makefile.am): Likewise.
64392         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64393         * modules/gc-sha1 (Makefile.am): Likewise.
64394         * modules/gc (Makefile.am): Likewise.
64395         * modules/getaddrinfo (Makefile.am): Likewise.
64396         * modules/getcwd (Makefile.am): Likewise.
64397         * modules/getdelim (Makefile.am): Likewise.
64398         * modules/getdomainname (Makefile.am): Likewise.
64399         * modules/getgroups (Makefile.am): Likewise.
64400         * modules/gethostname (Makefile.am): Likewise.
64401         * modules/gethrxtime (Makefile.am): Likewise.
64402         * modules/getline (Makefile.am): Likewise.
64403         * modules/getloadavg (Makefile.am): Likewise.
64404         * modules/getlogin_r (Makefile.am): Likewise.
64405         * modules/getndelim2 (Makefile.am): Likewise.
64406         * modules/getopt (Makefile.am): Likewise.
64407         * modules/getpagesize (Makefile.am): Likewise.
64408         * modules/getpass-gnu (Makefile.am): Likewise.
64409         * modules/getpass (Makefile.am): Likewise.
64410         * modules/getsubopt (Makefile.am): Likewise.
64411         * modules/gettime (Makefile.am): Likewise.
64412         * modules/gettimeofday (Makefile.am): Likewise.
64413         * modules/getugroups (Makefile.am): Likewise.
64414         * modules/getusershell (Makefile.am): Likewise.
64415         * modules/glob (Makefile.am): Likewise.
64416         * modules/group-member (Makefile.am): Likewise.
64417         * modules/hard-locale (Makefile.am): Likewise.
64418         * modules/hash (Makefile.am): Likewise.
64419         * modules/hmac-md5 (Makefile.am): Likewise.
64420         * modules/hmac-sha1 (Makefile.am): Likewise.
64421         * modules/human (Makefile.am): Likewise.
64422         * modules/idcache (Makefile.am): Likewise.
64423         * modules/imaxabs (Makefile.am): Likewise.
64424         * modules/imaxdiv (Makefile.am): Likewise.
64425         * modules/inet_ntop (Makefile.am): Likewise.
64426         * modules/inet_pton (Makefile.am): Likewise.
64427         * modules/intprops (Makefile.am): Likewise.
64428         * modules/inttostr (Makefile.am): Likewise.
64429         * modules/inttypes (Makefile.am): Likewise.
64430         * modules/isapipe (Makefile.am): Likewise.
64431         * modules/javaversion (Makefile.am): Likewise.
64432         * modules/lchmod (Makefile.am): Likewise.
64433         * modules/lchown (Makefile.am): Likewise.
64434         * modules/localcharset (Makefile.am): Likewise.
64435         * modules/long-options (Makefile.am): Likewise.
64436         * modules/lstat (Makefile.am): Likewise.
64437         * modules/malloc (Makefile.am): Likewise.
64438         * modules/mathl (Makefile.am): Likewise.
64439         * modules/mbchar (Makefile.am): Likewise.
64440         * modules/md2 (Makefile.am): Likewise.
64441         * modules/md4 (Makefile.am): Likewise.
64442         * modules/md5 (Makefile.am): Likewise.
64443         * modules/memcasecmp (Makefile.am): Likewise.
64444         * modules/memchr (Makefile.am): Likewise.
64445         * modules/memcmp (Makefile.am): Likewise.
64446         * modules/memcoll (Makefile.am): Likewise.
64447         * modules/memcpy (Makefile.am): Likewise.
64448         * modules/memmem (Makefile.am): Likewise.
64449         * modules/memmove (Makefile.am): Likewise.
64450         * modules/mempcpy (Makefile.am): Likewise.
64451         * modules/memrchr (Makefile.am): Likewise.
64452         * modules/memset (Makefile.am): Likewise.
64453         * modules/memxor (Makefile.am): Likewise.
64454         * modules/mkancesdirs (Makefile.am): Likewise.
64455         * modules/mkdir-p (Makefile.am): Likewise.
64456         * modules/mkdir (Makefile.am): Likewise.
64457         * modules/mkdtemp (Makefile.am): Likewise.
64458         * modules/mkstemp (Makefile.am): Likewise.
64459         * modules/mktime (Makefile.am): Likewise.
64460         * modules/modechange (Makefile.am): Likewise.
64461         * modules/mountlist (Makefile.am): Likewise.
64462         * modules/nanosleep (Makefile.am): Likewise.
64463         * modules/obstack (Makefile.am): Likewise.
64464         * modules/openat (Makefile.am): Likewise.
64465         * modules/pagealign_alloc (Makefile.am): Likewise.
64466         * modules/pathmax (Makefile.am): Likewise.
64467         * modules/physmem (Makefile.am): Likewise.
64468         * modules/poll (Makefile.am): Likewise.
64469         * modules/posixtm (Makefile.am): Likewise.
64470         * modules/posixver (Makefile.am): Likewise.
64471         * modules/putenv (Makefile.am): Likewise.
64472         * modules/quote (Makefile.am): Likewise.
64473         * modules/quotearg (Makefile.am): Likewise.
64474         * modules/raise (Makefile.am): Likewise.
64475         * modules/read-file (Makefile.am): Likewise.
64476         * modules/readline (Makefile.am): Likewise.
64477         * modules/readlink (Makefile.am): Likewise.
64478         * modules/readtokens (Makefile.am): Likewise.
64479         * modules/readutmp (Makefile.am): Likewise.
64480         * modules/realloc (Makefile.am): Likewise.
64481         * modules/regex (Makefile.am): Likewise.
64482         * modules/rename-dest-slash (Makefile.am): Likewise.
64483         * modules/rename (Makefile.am): Likewise.
64484         * modules/rijndael (Makefile.am): Likewise.
64485         * modules/rmdir (Makefile.am): Likewise.
64486         * modules/rpmatch (Makefile.am): Likewise.
64487         * modules/safe-read (Makefile.am): Likewise.
64488         * modules/safe-write (Makefile.am): Likewise.
64489         * modules/same-inode (Makefile.am): Likewise.
64490         * modules/same (Makefile.am): Likewise.
64491         * modules/save-cwd (Makefile.am): Likewise.
64492         * modules/savedir (Makefile.am): Likewise.
64493         * modules/setenv (Makefile.am): Likewise.
64494         * modules/settime (Makefile.am): Likewise.
64495         * modules/sha1 (Makefile.am): Likewise.
64496         * modules/sig2str (Makefile.am): Likewise.
64497         * modules/snprintf (Makefile.am): Likewise.
64498         * modules/stat-macros (Makefile.am): Likewise.
64499         * modules/stat-time (Makefile.am): Likewise.
64500         * modules/stdbool (Makefile.am): Likewise.
64501         * modules/stdint (Makefile.am): Likewise.
64502         * modules/stdlib-safer (Makefile.am): Likewise.
64503         * modules/stpcpy (Makefile.am): Likewise.
64504         * modules/stpncpy (Makefile.am): Likewise.
64505         * modules/strcase (Makefile.am): Likewise.
64506         * modules/strcasestr (Makefile.am): Likewise.
64507         * modules/strchrnul (Makefile.am): Likewise.
64508         * modules/strcspn (Makefile.am): Likewise.
64509         * modules/strdup (Makefile.am): Likewise.
64510         * modules/strerror (Makefile.am): Likewise.
64511         * modules/strftime (Makefile.am): Likewise.
64512         * modules/strndup (Makefile.am): Likewise.
64513         * modules/strnlen (Makefile.am): Likewise.
64514         * modules/strpbrk (Makefile.am): Likewise.
64515         * modules/strsep (Makefile.am): Likewise.
64516         * modules/strstr (Makefile.am): Likewise.
64517         * modules/strtod (Makefile.am): Likewise.
64518         * modules/strtoimax (Makefile.am): Likewise.
64519         * modules/strtok_r (Makefile.am): Likewise.
64520         * modules/strtol (Makefile.am): Likewise.
64521         * modules/strtoll (Makefile.am): Likewise.
64522         * modules/strtoul (Makefile.am): Likewise.
64523         * modules/strtoull (Makefile.am): Likewise.
64524         * modules/strtoumax (Makefile.am): Likewise.
64525         * modules/strverscmp (Makefile.am): Likewise.
64526         * modules/sys_socket (Makefile.am): Likewise.
64527         * modules/sys_stat (Makefile.am): Likewise.
64528         * modules/sysexits (Makefile.am): Likewise.
64529         * modules/time_r (Makefile.am): Likewise.
64530         * modules/timegm (Makefile.am): Likewise.
64531         * modules/timespec (Makefile.am): Likewise.
64532         * modules/tmpfile-safer (Makefile.am): Likewise.
64533         * modules/trim (Makefile.am): Likewise.
64534         * modules/unistd-safer (Makefile.am): Likewise.
64535         * modules/unlinkdir (Makefile.am): Likewise.
64536         * modules/unlocked-io (Makefile.am): Likewise.
64537         * modules/userspec (Makefile.am): Likewise.
64538         * modules/utime (Makefile.am): Likewise.
64539         * modules/utimecmp (Makefile.am): Likewise.
64540         * modules/utimens (Makefile.am): Likewise.
64541         * modules/vasnprintf (Makefile.am): Likewise.
64542         * modules/vasprintf (Makefile.am): Likewise.
64543         * modules/vsnprintf (Makefile.am): Likewise.
64544         * modules/xalloc (Makefile.am): Likewise.
64545         * modules/xgetcwd (Makefile.am): Likewise.
64546         * modules/xnanosleep (Makefile.am): Likewise.
64547         * modules/xreadlink (Makefile.am): Likewise.
64548         * modules/xstrtod (Makefile.am): Likewise.
64549         * modules/xstrtol (Makefile.am): Likewise.
64550         * modules/xstrtold (Makefile.am): Likewise.
64551         * modules/yesno (Makefile.am): Likewise.
64552         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
64553
64554 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64555
64556         * modules/error (Makefile.am): Distribute files through
64557         EXTRA_DIST, not lib_SOURCES.
64558
64559 2006-10-12  Eric Blake  <ebb9@byu.net>
64560
64561         * modules/error (Makefile.am): Distribute files in /lib.
64562         * modules/obstack (Makefile.am): Likewise.
64563
64564 2006-10-12  Bruno Haible  <bruno@clisp.org>
64565
64566         * modules/acl (Makefile.am): Distribute all files in lib/ through
64567         EXTRA_DIST.
64568         * modules/arcfour (Makefile.am): Likewise.
64569         * modules/arctwo (Makefile.am): Likewise.
64570         * modules/argmatch (Makefile.am): Likewise.
64571         * modules/argz (Makefile.am): Likewise.
64572         * modules/atexit (Makefile.am): Likewise.
64573         * modules/backupfile (Makefile.am): Likewise.
64574         * modules/c-strtod (Makefile.am): Likewise.
64575         * modules/c-strtold (Makefile.am): Likewise.
64576         * modules/calloc (Makefile.am): Likewise.
64577         * modules/canon-host (Makefile.am): Likewise.
64578         * modules/canonicalize (Makefile.am): Likewise.
64579         * modules/chdir-long (Makefile.am): Likewise.
64580         * modules/chdir-safer (Makefile.am): Likewise.
64581         * modules/check-version (Makefile.am): Likewise.
64582         * modules/chown (Makefile.am): Likewise.
64583         * modules/cloexec (Makefile.am): Likewise.
64584         * modules/close-stream (Makefile.am): Likewise.
64585         * modules/closeout (Makefile.am): Likewise.
64586         * modules/crc (Makefile.am): Likewise.
64587         * modules/cycle-check (Makefile.am): Likewise.
64588         * modules/des (Makefile.am): Likewise.
64589         * modules/dirfd (Makefile.am): Likewise.
64590         * modules/dirname (Makefile.am): Likewise.
64591         * modules/dup2 (Makefile.am): Likewise.
64592         * modules/euidaccess (Makefile.am): Likewise.
64593         * modules/exclude (Makefile.am): Likewise.
64594         * modules/exitfail (Makefile.am): Likewise.
64595         * modules/fcntl-safer (Makefile.am): Likewise.
64596         * modules/file-type (Makefile.am): Likewise.
64597         * modules/fileblocks (Makefile.am): Likewise.
64598         * modules/filemode (Makefile.am): Likewise.
64599         * modules/filenamecat (Makefile.am): Likewise.
64600         * modules/fnmatch (Makefile.am): Likewise.
64601         * modules/fopen-safer (Makefile.am): Likewise.
64602         * modules/fpending (Makefile.am): Likewise.
64603         * modules/fprintftime (Makefile.am): Likewise.
64604         * modules/free (Makefile.am): Likewise.
64605         * modules/fsusage (Makefile.am): Likewise.
64606         * modules/ftruncate (Makefile.am): Likewise.
64607         * modules/fts (Makefile.am): Likewise.
64608         * modules/gc (Makefile.am): Likewise.
64609         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64610         * modules/getaddrinfo (Makefile.am): Likewise.
64611         * modules/getcwd (Makefile.am): Likewise.
64612         * modules/getdelim (Makefile.am): Likewise.
64613         * modules/getdomainname (Makefile.am): Likewise.
64614         * modules/getgroups (Makefile.am): Likewise.
64615         * modules/gethostname (Makefile.am): Likewise.
64616         * modules/gethrxtime (Makefile.am): Likewise.
64617         * modules/getline (Makefile.am): Likewise.
64618         * modules/getloadavg (Makefile.am): Likewise.
64619         * modules/getlogin_r (Makefile.am): Likewise.
64620         * modules/getopt (Makefile.am): Likewise.
64621         * modules/getpass (Makefile.am): Likewise.
64622         * modules/getpass-gnu (Makefile.am): Likewise.
64623         * modules/getsubopt (Makefile.am): Likewise.
64624         * modules/gettime (Makefile.am): Likewise.
64625         * modules/gettimeofday (Makefile.am): Likewise.
64626         * modules/getugroups (Makefile.am): Likewise.
64627         * modules/getusershell (Makefile.am): Likewise.
64628         * modules/glob (Makefile.am): Likewise.
64629         * modules/group-member (Makefile.am): Likewise.
64630         * modules/hard-locale (Makefile.am): Likewise.
64631         * modules/hash (Makefile.am): Likewise.
64632         * modules/hmac-md5 (Makefile.am): Likewise.
64633         * modules/hmac-sha1 (Makefile.am): Likewise.
64634         * modules/human (Makefile.am): Likewise.
64635         * modules/idcache (Makefile.am): Likewise.
64636         * modules/imaxabs (Makefile.am): Likewise.
64637         * modules/imaxdiv (Makefile.am): Likewise.
64638         * modules/inet_ntop (Makefile.am): Likewise.
64639         * modules/inet_pton (Makefile.am): Likewise.
64640         * modules/inttostr (Makefile.am): Likewise.
64641         * modules/isapipe (Makefile.am): Likewise.
64642         * modules/lchown (Makefile.am): Likewise.
64643         * modules/long-options (Makefile.am): Likewise.
64644         * modules/lstat (Makefile.am): Likewise.
64645         * modules/malloc (Makefile.am): Likewise.
64646         * modules/mathl (Makefile.am): Likewise.
64647         * modules/mbchar (Makefile.am): Likewise.
64648         * modules/md2 (Makefile.am): Likewise.
64649         * modules/md4 (Makefile.am): Likewise.
64650         * modules/md5 (Makefile.am): Likewise.
64651         * modules/memcasecmp (Makefile.am): Likewise.
64652         * modules/memchr (Makefile.am): Likewise.
64653         * modules/memcmp (Makefile.am): Likewise.
64654         * modules/memcoll (Makefile.am): Likewise.
64655         * modules/memcpy (Makefile.am): Likewise.
64656         * modules/memmem (Makefile.am): Likewise.
64657         * modules/memmove (Makefile.am): Likewise.
64658         * modules/mempcpy (Makefile.am): Likewise.
64659         * modules/memrchr (Makefile.am): Likewise.
64660         * modules/memset (Makefile.am): Likewise.
64661         * modules/memxor (Makefile.am): Likewise.
64662         * modules/mkancesdirs (Makefile.am): Likewise.
64663         * modules/mkdir (Makefile.am): Likewise.
64664         * modules/mkdir-p (Makefile.am): Likewise.
64665         * modules/mkdtemp (Makefile.am): Likewise.
64666         * modules/mkstemp (Makefile.am): Likewise.
64667         * modules/mktime (Makefile.am): Likewise.
64668         * modules/modechange (Makefile.am): Likewise.
64669         * modules/mountlist (Makefile.am): Likewise.
64670         * modules/nanosleep (Makefile.am): Likewise.
64671         * modules/openat (Makefile.am): Likewise.
64672         * modules/pagealign_alloc (Makefile.am): Likewise.
64673         * modules/physmem (Makefile.am): Likewise.
64674         * modules/poll (Makefile.am): Likewise.
64675         * modules/posixtm (Makefile.am): Likewise.
64676         * modules/posixver (Makefile.am): Likewise.
64677         * modules/putenv (Makefile.am): Likewise.
64678         * modules/quote (Makefile.am): Likewise.
64679         * modules/quotearg (Makefile.am): Likewise.
64680         * modules/raise (Makefile.am): Likewise.
64681         * modules/read-file (Makefile.am): Likewise.
64682         * modules/readline (Makefile.am): Likewise.
64683         * modules/readlink (Makefile.am): Likewise.
64684         * modules/readtokens (Makefile.am): Likewise.
64685         * modules/readutmp (Makefile.am): Likewise.
64686         * modules/realloc (Makefile.am): Likewise.
64687         * modules/regex (Makefile.am): Likewise.
64688         * modules/rename (Makefile.am): Likewise.
64689         * modules/rename-dest-slash (Makefile.am): Likewise.
64690         * modules/rijndael (Makefile.am): Likewise.
64691         * modules/rmdir (Makefile.am): Likewise.
64692         * modules/rpmatch (Makefile.am): Likewise.
64693         * modules/safe-read (Makefile.am): Likewise.
64694         * modules/safe-write (Makefile.am): Likewise.
64695         * modules/same (Makefile.am): Likewise.
64696         * modules/save-cwd (Makefile.am): Likewise.
64697         * modules/savedir (Makefile.am): Likewise.
64698         * modules/setenv (Makefile.am): Likewise.
64699         * modules/settime (Makefile.am): Likewise.
64700         * modules/sha1 (Makefile.am): Likewise.
64701         * modules/sig2str (Makefile.am): Likewise.
64702         * modules/snprintf (Makefile.am): Likewise.
64703         * modules/stdlib-safer (Makefile.am): Likewise.
64704         * modules/stpcpy (Makefile.am): Likewise.
64705         * modules/stpncpy (Makefile.am): Likewise.
64706         * modules/strcase (Makefile.am): Likewise.
64707         * modules/strcasestr (Makefile.am): Likewise.
64708         * modules/strchrnul (Makefile.am): Likewise.
64709         * modules/strcspn (Makefile.am): Likewise.
64710         * modules/strdup (Makefile.am): Likewise.
64711         * modules/strerror (Makefile.am): Likewise.
64712         * modules/strftime (Makefile.am): Likewise.
64713         * modules/strndup (Makefile.am): Likewise.
64714         * modules/strnlen (Makefile.am): Likewise.
64715         * modules/strpbrk (Makefile.am): Likewise.
64716         * modules/strsep (Makefile.am): Likewise.
64717         * modules/strstr (Makefile.am): Likewise.
64718         * modules/strtod (Makefile.am): Likewise.
64719         * modules/strtoimax (Makefile.am): Likewise.
64720         * modules/strtok_r (Makefile.am): Likewise.
64721         * modules/strtol (Makefile.am): Likewise.
64722         * modules/strtoll (Makefile.am): Likewise.
64723         * modules/strtoul (Makefile.am): Likewise.
64724         * modules/strtoull (Makefile.am): Likewise.
64725         * modules/strtoumax (Makefile.am): Likewise.
64726         * modules/strverscmp (Makefile.am): Likewise.
64727         * modules/time_r (Makefile.am): Likewise.
64728         * modules/timegm (Makefile.am): Likewise.
64729         * modules/tmpfile-safer (Makefile.am): Likewise.
64730         * modules/unistd-safer (Makefile.am): Likewise.
64731         * modules/unlinkdir (Makefile.am): Likewise.
64732         * modules/userspec (Makefile.am): Likewise.
64733         * modules/utime (Makefile.am): Likewise.
64734         * modules/utimecmp (Makefile.am): Likewise.
64735         * modules/utimens (Makefile.am): Likewise.
64736         * modules/vasnprintf (Makefile.am): Likewise.
64737         * modules/vasprintf (Makefile.am): Likewise.
64738         * modules/vsnprintf (Makefile.am): Likewise.
64739         * modules/xalloc (Makefile.am): Likewise.
64740         * modules/xgetcwd (Makefile.am): Likewise.
64741         * modules/xnanosleep (Makefile.am): Likewise.
64742         * modules/xreadlink (Makefile.am): Likewise.
64743         * modules/xstrtod (Makefile.am): Likewise.
64744         * modules/xstrtol (Makefile.am): Likewise.
64745         * modules/xstrtold (Makefile.am): Likewise.
64746         * modules/yesno (Makefile.am): Likewise.
64747
64748 2006-10-12  Jim Meyering  <jim@meyering.net>
64749
64750         * m4/getloadavg.m4: Revert the change below.
64751
64752         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
64753         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
64754         fail with a symlink, which is what coreutils' ./bootstrap now
64755         creates by default.
64756
64757 2006-10-12  Bruno Haible  <bruno@clisp.org>
64758
64759         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
64760         mingw.
64761         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
64762         MSVC and mingw explicitly.
64763
64764 2006-10-11  Simon Josefsson  <jas@extundo.com>
64765             Bruno Haible  <bruno@clisp.org>
64766
64767         Add support for multiple gnulib-tool invocations in the scope of a
64768         single configure.ac file.
64769         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
64770         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
64771         with the same contents as the _LIBADD variable.
64772         (func_emit_initmacro_start, func_emit_initmacro_end,
64773         func_emit_initmacro_done): New functions.
64774         (func_import, func_create_testdir): Invoke them. Allow the identifiers
64775         gl_LIBOBJS and gl_LTLIBOBJS.
64776
64777 2006-10-11  Bruno Haible  <bruno@clisp.org>
64778
64779         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
64780         (func_create_testdir): Don't create po/Makefile.am, don't invoke
64781         autoreconf. Instead, invoke autopoint explicitly but move back the
64782         *.m4 files from gnulib.
64783
64784 2006-10-11  Bruno Haible  <bruno@clisp.org>
64785
64786         * gnulib-tool (func_usage): Make module names after --create-testdir
64787         optional.
64788         (func_create_testdir): If no module was specified, use nearly all
64789         modules.
64790
64791 2006-10-12  Jim Meyering  <jim@meyering.net>
64792
64793         Big performance improvement for fts-based tools that use FTS_NOSTAT.
64794         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64795         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64796         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64797         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64798         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64799         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64800         (fts_set_stat_required): New function.
64801         (fts_open): Defer the calls to fts_stat, if possible or requested.
64802         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64803         into fts_stat itself.
64804         (fts_read): Perform any required (deferred) fts_stat call.
64805         (fts_build): Likewise, for the directory we're about to open and read.
64806         In the readdir loop, carefully decide whether each entry will require
64807         an eventual call to fts_stat, using dirent.d_type info if available.
64808         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64809         a command line argument into this function.  Update all callers.
64810         Map a return value of FTS_DOT to FTS_D for a command line argument.
64811         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64812         Thanks to Miklos Szeredi for his tenacity and for the initial
64813         bug report about "find" failing on a FUSE-based file system.
64814
64815         * lib/fts.c (fts_open): Use consistent indentation.
64816
64817 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64818
64819         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64820         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
64821         reported by Jim Meyering.  All uses of cache variables renamed
64822         to match Autoconf's.
64823         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
64824         the other one.
64825
64826         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64827         Fix misspelling in diagnostic.
64828
64829 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64830
64831         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
64832         defined.  Problem reported by Matthew Woehlke.
64833
64834         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
64835         Add support for Tandem NonStop R series.
64836         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
64837         Use new macro.
64838
64839         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
64840         (has_trailing_slash): Omit size arg; all callers changed.
64841         Omit 'inline', since it doesn't help performance and we'd
64842         need to configure it.
64843         Don't count //, ///, etc. as having a trailing slash.
64844         As a side effect, this removes a C99ism reported by Matthew Woehlke.
64845         (rpl_rename_dest_slash): On failure, use rename's errno rather
64846         than (in some cases) an incorrect or junk errno.
64847         Simplify code by removing need to compute length; this does
64848         cause it to make two passes instead of one over the file name,
64849         but it's worth it.
64850
64851         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
64852         change, since Autoconf's version may no longer be appropriate now
64853         that we are using CVS Autoconf's version.  Add support for Tandem.
64854
64855 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64856             Bruno Haible  <bruno@clisp.org>
64857
64858         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
64859         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
64860         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
64861         gl_AC_TYPE_LONG_LONG.
64862
64863         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
64864         instead of HAVE_LONG_LONG.
64865         * lib/printf-args.c (printf_fetchargs): Likewise.
64866         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64867         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64868         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
64869         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
64870         gl_AC_TYPE_LONG_LONG.
64871
64872 2006-10-11  Bruno Haible  <bruno@clisp.org>
64873
64874         * m4/longlong.m4: Add comments.
64875         * m4/ulonglong.m4: Likewise.
64876
64877 2006-10-10  Bruno Haible  <bruno@clisp.org>
64878
64879         Make it possible to #define stpcpy, strdup to aliases.
64880         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
64881         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
64882
64883 2006-10-10  Bruno Haible  <bruno@clisp.org>
64884
64885         Make it possible to #define gcd to an alias.
64886         * lib/gcd.c: Include config.h.
64887
64888 2006-10-10  Bruno Haible  <bruno@clisp.org>
64889
64890         Make it possible to #define c_isascii to an alias.
64891         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64892         defined. Undefine the macros before defining them, to avoid gcc
64893         warnings.
64894         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64895         define NO_C_CTYPE_MACROS early.
64896
64897 2006-10-10  Bruno Haible  <bruno@clisp.org>
64898
64899         Make it possible to #define set_program_name to an alias.
64900         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64901         ENABLE_RELOCATABLE early.
64902
64903 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64904
64905         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64906         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64907         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64908         More generally, don't assume that 64-bit signed int is available
64909         if unsigned int is, and vice versa.
64910         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64911         unsigned symbols, not on their signed counterparts.
64912         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64913         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64914         (UINT64_C, UINTMAX_C):
64915         Likewise.
64916         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64917         unsigned counterparts.
64918         (Have_long_long, Unsigned): New macros.
64919         (Int): Renamed from INT.
64920         (strtoimax): Use the new macros.
64921         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64922         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64923         * modules/inttypes (inttypes.h): Substitute
64924         HAVE_UNSIGNED_LONG_LONG_INT.
64925         * modules/stdint (stdint.h): Likewise.
64926         (Files): Add m4/ulonglong.m4.
64927
64928 2006-10-10  Bruno Haible  <bruno@clisp.org>
64929
64930         Fix a gcc -Wshadow warning.
64931         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64932         to 'bucket'.
64933         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64934         gl_linked_indexof_from_to): Likewise.
64935         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64936         Likewise.
64937         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64938         Likewise.
64939         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64940         Reported by Eric Blake.
64941
64942 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64943
64944         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64945         for NetBSD.  Problem reported by Bruno Haible.
64946
64947 2006-10-09  Jim Meyering  <jim@meyering.net>
64948
64949         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64950         Patch from Bruno Haible.
64951
64952 2006-10-09  Jim Meyering  <jim@meyering.net>
64953
64954         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64955         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64956         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64957
64958 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64959
64960         Don't include <config.h> twice; this doesn't work in some cases,
64961         e.g., when config.h has "#define intmax_t long long int" and
64962         we include <config.h>, <inttypes.h>, <config.h> in that order.
64963         Problem reported by Matthew Woehlke in:
64964         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64965         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64966         * lib/fts-cycle.c: Don't include config.h.
64967         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64968         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64969         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64970         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64971         inttypes.h.
64972         * lib/xstrtoumax.c: Likewise.
64973         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64974         __strtol and the like, so that this module is more like its siblings.
64975         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64976         Remove; no longer needed now that we assume gnulib inttypes.h.
64977
64978 2006-10-08  Bruno Haible  <bruno@clisp.org>
64979
64980         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64981         option.
64982
64983 2006-10-07  Jim Meyering  <jim@meyering.net>
64984
64985         * modules/inttypes (inttypes.h): Revert what seems to have been
64986         an inadvertent part of today's change: use "|", not "/" in the
64987         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64988
64989 2006-10-07  Bruno Haible  <bruno@clisp.org>
64990
64991         * modules/sublist: New file.
64992
64993 2006-10-07  Bruno Haible  <bruno@clisp.org>
64994
64995         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64996         * modules/argz (argz.h): Likewise.
64997         * modules/arpa_inet (arpa/inet.h): Likewise.
64998         * modules/byteswap (byteswap.h): Likewise.
64999         * modules/configmake (configmake.h): Likewise.
65000         * modules/fcntl (fcntl.h): Likewise.
65001         * modules/fnmatch (fnmatch.h): Likewise.
65002         * modules/getopt (getopt.h): Likewise.
65003         * modules/glob (glob.h): Likewise.
65004         * modules/inttypes (inttypes.h): Likewise.
65005         * modules/netinet_in (netinet/in.h): Likewise.
65006         * modules/poll (poll.h): Likewise.
65007         * modules/stdbool (stdbool.h): Likewise.
65008         * modules/stdint (stdint.h): Likewise.
65009         * modules/sys_select (sys/select.h): Likewise.
65010         * modules/sys_socket (sys/socket.h): Likewise.
65011         * modules/sys_stat (sys/stat.h): Likewise.
65012         * modules/sysexits (sysexits.h): Likewise.
65013         * modules/unistd (unistd.h): Likewise.
65014         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65015         Add a "DO NOT EDIT" comment to the generated file.
65016         (func_import): Likewise for gnulib-comp.m4.
65017
65018 2006-10-07  Bruno Haible  <bruno@clisp.org>
65019
65020         * lib/gl_sublist.h: New file.
65021         * lib/gl_sublist.c: New file.
65022
65023 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65024
65025         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
65026         name (relative to the original working directory) and the file
65027         name component (relative to the temporary working directory).  All
65028         callers changed.
65029         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
65030         * lib/mkdir-p.c (make_dir_parents): Likewise.
65031         * lib/mkdir-p.h (make_dir_parents): Likewise.
65032
65033 2006-10-06  Eric Blake  <ebb9@byu.net>
65034
65035         Define several macros for use by the clean-temp module.
65036         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
65037         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
65038         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
65039
65040         * lib/clean-temp.h (close_stream_temp): New declaration.
65041         * lib/clean-temp.c (includes): Pull in headers according to what
65042         other modules are in use.
65043         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
65044
65045 2006-10-06  Bruno Haible  <bruno@clisp.org>
65046
65047         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
65048         instead of fopen, fwriteerror.
65049
65050 2006-10-06  Bruno Haible  <bruno@clisp.org>
65051
65052         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
65053         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
65054         int.
65055         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
65056         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
65057         Return an error indicator.
65058         Suggested by Eric Blake.
65059
65060 2006-10-06  Bruno Haible  <bruno@clisp.org>
65061
65062         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
65063         Reported by Eric Blake.
65064
65065 2006-10-06  Bruno Haible  <bruno@clisp.org>
65066
65067         * modules/closeout (Description): Mention stderr too.
65068
65069 2006-10-06  Bruno Haible  <bruno@clisp.org>
65070         and Paul Eggert  <eggert@cs.ucla.edu>
65071
65072         * lib/closeout.c (close_stdout): Also close stderr.
65073         * lib/closeout.h: Update comment.
65074
65075 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65076
65077         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
65078         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
65079         * lib/dirchownmod.c: Include lchown.h.
65080         * lib/lchown.c: Don't include files that lchown.h now includes.
65081         Don't declare chown, since lchown.h now does that.
65082         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
65083         (lchown): Define to rpl_chown if lchown is declared but
65084         does not exist.  Declare using a prototype if lchown is not
65085         declared.  Add a copyright notice.
65086         * lib/mkstemp.h: Include <unistd.h>.
65087         * lib/openat.c: Include lchown.h.
65088
65089         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
65090         we now test for that separately.
65091         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
65092         rather than O_NOFOLLOW, when testing whether it's possible to
65093         avoid a race condition reliably.
65094         * lib/savewd.c (savewd_chdir): Likewise.
65095
65096         Remove macros that are no longer needed now that stdint.h is
65097         reliable.
65098         * lib/fsusage.c (UINTMAX_MAX): Remove.
65099         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
65100         * lib/utimecmp.c (SIZE_MAX): Remove.
65101
65102         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
65103
65104         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
65105         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
65106         O_NOATIME works.
65107
65108 2006-10-05  Bruno Haible  <bruno@clisp.org>
65109
65110         * lib/gl_list.h (gl_sortedlist_search_from_to,
65111         gl_sortedlist_indexof_from_to): New declarations.
65112         (gl_list_implementation): New fields sortedlist_search_from_to,
65113         sortedlist_indexof_from_to.
65114         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
65115         inline functions.
65116         * lib/gl_list.c (gl_sortedlist_search_from_to,
65117         gl_sortedlist_indexof_from_to): New functions.
65118         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
65119         function.
65120         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
65121         (gl_array_sortedlist_search_from_to): New function.
65122         (gl_array_list_implementation): Update.
65123         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
65124         function.
65125         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
65126         (gl_carray_sortedlist_search_from_to): New function.
65127         (gl_carray_list_implementation): Update.
65128         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
65129         gl_linked_sortedlist_indexof_from_to): New functions.
65130         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
65131         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
65132         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
65133         gl_tree_sortedlist_indexof_from_to): New functions.
65134         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
65135         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
65136         Update.
65137         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
65138         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
65139         Update.
65140
65141 2006-10-05  Bruno Haible  <bruno@clisp.org>
65142
65143         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
65144         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
65145         (struct gl_list_implementation): Add fields search_from_to,
65146         indexof_from_to. Remove fields search, indexof.
65147         (gl_list_search): Use the search_from_to method.
65148         (gl_list_search_from, gl_list_search_from_to): New functions.
65149         (gl_list_indexof): Use the indexof_from_to method.
65150         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
65151         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
65152         (gl_list_search_from, gl_list_search_from_to): New functions.
65153         (gl_list_indexof): Use the indexof_from_to method.
65154         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
65155         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
65156         gl_array_indexof. Add start_index, end_index arguments.
65157         (gl_array_search_from_to): Renamed from gl_array_search. Add
65158         start_index, end_index arguments.
65159         (gl_array_remove, gl_array_list_implementation): Update.
65160         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
65161         gl_carray_indexof. Add start_index, end_index arguments.
65162         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
65163         start_index, end_index arguments.
65164         (gl_carray_remove, gl_carray_list_implementation): Update.
65165         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
65166         gl_linked_search. Add start_index, end_index arguments.
65167         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
65168         start_index, end_index arguments.
65169         (gl_linked_remove): Update.
65170         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
65171         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
65172         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
65173         field to 'size_t'.
65174         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
65175         gl_tree_search. Add start_index, end_index arguments.
65176         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
65177         start_index, end_index arguments.
65178         (gl_tree_remove): Update.
65179         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
65180         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
65181         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
65182         function.
65183         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
65184         gl_tree_search. Add start_index, end_index arguments.
65185         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
65186         start_index, end_index arguments.
65187         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
65188         Update.
65189         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
65190
65191 2006-10-05  Bruno Haible  <bruno@clisp.org>
65192
65193         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
65194
65195         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
65196         fwriteerror_temp): New declarations.
65197         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
65198         (descriptors): New variable.
65199         (cleanup): First, close the descriptors.
65200         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
65201         fclose_temp, fwriteerror_temp): New functions.
65202
65203 2006-10-04  Jim Meyering  <jim@meyering.net>
65204
65205         * lib/fts.c (fts_open): Tiny comment change.
65206
65207 2006-10-04  Bruno Haible  <bruno@clisp.org>
65208
65209         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
65210         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
65211         gl_LOCK_BODY.
65212         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
65213         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
65214         gl_LOCK_EARLY_BODY.
65215         (gl_LOCK): Require gl_LOCK_BODY.
65216
65217 2006-10-04  Bruno Haible  <bruno@clisp.org>
65218
65219         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
65220         (gl_oset_search_atleast): New declaration.
65221         (struct gl_oset_implementation): Add field 'search_atleast'.
65222         (gl_oset_search_atleast): New inline function.
65223         * lib/gl_oset.c (gl_oset_search_atleast): New function.
65224         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
65225         (gl_array_oset_implementation): Update.
65226         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
65227         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
65228         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
65229
65230 2006-10-04  Bruno Haible  <bruno@clisp.org>
65231
65232         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
65233
65234 2006-10-03  Bruno Haible  <bruno@clisp.org>
65235
65236         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
65237         from gl_avltreehash_list_implementation.
65238
65239 2006-10-03  Bruno Haible  <bruno@clisp.org>
65240
65241         * lib/gl_oset.c (gl_oset_add): Fix return type.
65242
65243 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
65244
65245         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
65246
65247 2006-10-02  Eric Blake  <ebb9@byu.net>
65248
65249         * modules/strnlen (Depends-on): Add extensions.
65250
65251 2006-10-02  Eric Blake  <ebb9@byu.net>
65252
65253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
65254         definition in 2.60+.
65255
65256 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
65257
65258         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
65259         checks.
65260
65261 2006-10-02  Bruno Haible  <bruno@clisp.org>
65262
65263         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
65264         to the AUTOMAKE_OPTIONS.
65265         Reported by Jim Meyering.
65266
65267 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65268
65269         Work around bug in Solaris 10 /proc file system:
65270         /proc/self/fd/NNN/.. isn't the parent directory of
65271         the directory whose file descriptor is NNN.  This needs to
65272         be worked around at run time, not compile time, since a
65273         program might be built on Solaris 8, where things work, and
65274         run on Solaris 10.
65275         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
65276         to use the following interface instead:
65277         (OPENAT_BUFFER_SIZE): New macro.
65278         (openat_proc_name): New function.
65279         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
65280         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
65281         Likewise.
65282         * lib/openat-proc.c: New file.
65283         * modules/openat (Files): Add lib/openat-proc.c.
65284         (Depends-on): Add same-inode, stdbool.
65285         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
65286
65287 2006-09-29  Bruno Haible  <bruno@clisp.org>
65288
65289         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
65290         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
65291         argument. Set stdout_closed before testing for ferror, not after.
65292         (fwriteerror, fwriteerror_no_ebadf): New functions.
65293
65294 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65295
65296         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
65297
65298 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
65299
65300         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
65301         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
65302
65303 2006-09-28  Jim Meyering  <jim@meyering.net>
65304
65305         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
65306         Include <unistd.h>.
65307
65308 2006-09-28  Bruno Haible  <bruno@clisp.org>
65309
65310         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
65311         * modules/linkedhash-list (Depends-on): Likewise.
65312         * modules/rbtreehash-list (Depends-on): Likewise.
65313
65314 2006-09-28  Bruno Haible  <bruno@clisp.org>
65315
65316         * lib/strndup.h: Simplify the redefinition of strndup.
65317         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
65318         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
65319
65320 2006-09-28  Bruno Haible  <bruno@clisp.org>
65321
65322         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
65323         * lib/gl_linkedhash_list.c: Likewise.
65324         * lib/gl_rbtreehash_list.c: Likewise.
65325
65326 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65327
65328         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
65329         getaddrinfo.
65330
65331         * lib/__fpending.h: Don't include <stdio_ext.h> unless
65332         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
65333         it causes <stdio_ext.h> to cause a compile-time error.
65334         Problem reported by Nelson H. F. Beebe.
65335         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
65336         of HAVE_DECL___PENDING.
65337
65338         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
65339         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
65340         declaration.
65341
65342 2006-09-27  Jim Meyering  <jim@meyering.net>
65343
65344         This file could end up with a definition for a function
65345         named __strndup, rather than rpl_strndup on a system with
65346         incomplete weak_alias support.
65347         * lib/strndup.c (strndup): Rename from __strndup.
65348         Remove #defines that used to map __strndup to strndup.
65349         Don't use K&R prototypes.
65350         Remove LIBC-related code, since this file is not sync'd with glibc.
65351         * lib/strndup.h: Revamp, accordingly.
65352         * m4/strndup.m4: Modernize.
65353
65354 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65355
65356         * modules/savewd (Depends-on): Add 'raise'.
65357         * lib/savewd.c: Include <signal.h>, for 'raise'.
65358
65359 2006-09-26  Jim Meyering  <jim@meyering.net>
65360
65361         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
65362         when we detect Darwin 8.7.0's acl_get_file bug.
65363         Rearrange to perform the new (below) run-test while $LIBS
65364         contains any acl-related library.  Set USE_ACL at the end.
65365         (gl_ACL_GET_FILE): New function.
65366
65367 2006-09-26  Eric Blake  <ebb9@byu.net>
65368
65369         * lib/verror.c: Include <config.h> unconditionally.
65370
65371 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
65372
65373         * modules/clock-time (Maintainer): Add self.
65374         * modules/getlogin_r (Depends-on): Add extensions.
65375
65376 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65377
65378         * modules/clock-time: New module.
65379         * modules/nanosleep (Depends-on): Add clock-time.
65380         * modules/gethrxtime (Depends-on): Likewise.
65381         * modules/gettime (Depends-on): Likewise.
65382         * modules/settime (Depends-on): Likewise.
65383
65384         * modules/fts-lgpl: Depend on openat.
65385         * modules/mkancesdirs: Depend on savewd.
65386         * modules/mkdir-p: Likewise.
65387
65388 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65389
65390         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
65391
65392         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
65393         `gl_have_arbitrary_file_name_length_limit' to
65394         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
65395         actually works between configure runs.
65396
65397 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65398             Bruno Haible  <bruno@clisp.org>
65399
65400         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
65401
65402 2006-09-25  Jim Meyering  <jim@meyering.net>
65403
65404         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
65405         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
65406
65407 2006-09-25  Eric Blake  <ebb9@byu.net>
65408
65409         * gnulib-tool (func_import, func_create_testdir): Fix typos in
65410         exec's in 2006-09-18 patch when shuffling fds.
65411
65412 2006-09-25  Bruno Haible  <bruno@clisp.org>
65413
65414         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
65415         Reported by Jim Meyering.
65416
65417 2006-09-24  Jim Meyering  <jim@meyering.net>
65418
65419         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
65420         compare a pointer against a literal "0".  That caused failures with
65421         at least HP-UX's hpcc.
65422
65423 2006-09-22  Simon Josefsson  <jas@extundo.com>
65424
65425         * modules/gc-sha1:
65426         * modules/gc-md4:
65427         * modules/gc-hmac-sha1:
65428         * modules/gc-hmac-md5:
65429         * modules/gc-des:
65430         * modules/gc-arcfour: Distribute more files.
65431
65432 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65433
65434         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
65435         (gl_linked_iterator_from_to): Initialize struct completely.
65436         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
65437         (gl_tree_iterator_from_to): Likewise
65438         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
65439         * lib/gl_array_list.c [lint] (gl_array_iterator)
65440         (gl_array_iterator_from_to): Likewise.
65441         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
65442         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
65443         (gl_carray_iterator_from_to): Likewise.
65444
65445         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
65446         * lib/md4.c (md4_process_block): Remove unused variable.
65447         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
65448         parentheses for clarity.
65449
65450 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65451
65452         * modules/bison-i18n (Depends-on): Add gettext.
65453
65454 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65455
65456         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
65457         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
65458         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
65459         also add missing comma that caused broken test.
65460         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
65461         stdlib.h, for `abort'.
65462         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
65463         variables.
65464         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
65465         include unistd.h if present, for `rmdir'.
65466         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
65467         variables.
65468         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
65469         in the process include standard headers for prototypes.
65470         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
65471         gets declared on GNU/Linux.
65472         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
65473         unistd.h, for `rmdir'.
65474         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
65475
65476         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
65477         always true.
65478         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
65479
65480         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
65481
65482 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65483
65484         * gnulib-tool (func_version): Create output all at once.  This
65485         may help avoid triggering unnecessary SIGPIPEs, and at any
65486         rate it doesn't hurt.
65487
65488 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65489             Bruno Haible  <bruno@clisp.org>
65490
65491         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
65492         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65493         * m4/signed.m4 (bh_C_SIGNED): Likewise.
65494
65495         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
65496         (gl_FUNC_VASPRINTF): Invoke it.
65497
65498 2006-09-22  Bruno Haible  <bruno@clisp.org>
65499
65500         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
65501         getloadavg.c as first argument.
65502
65503 2006-09-22  Bruno Haible  <bruno@clisp.org>
65504
65505         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
65506         at the beginning of the gl_INIT macro.
65507         * modules/getloadavg (configure.ac): Pass $gl_source_base to
65508         gl_GETLOADAVG.
65509
65510 2006-09-22  Bruno Haible  <bruno@clisp.org>
65511
65512         * gnulib-tool (func_create_megatestdir): Don't include the config-h
65513         module.
65514         Suggested by Ralf Wildenhues.
65515
65516 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         Import this patch from libc:
65519
65520         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
65521
65522         * lib/regex_internal.c (re_string_reconstruct): Handle
65523         offset < pstr->valid_raw_len && pstr->offsets_needed case.
65524         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
65525         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
65526         re_string_context_at.
65527
65528         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
65529         now requires it.
65530         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
65531         gl_REGEX now does it for us.
65532         (gl_REGEX): Add test taken from
65533         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
65534
65535         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
65536         Check that large offsets work.  Modernize Autoconf usages.
65537         Prefer "yes" to mean a good thing rather than a bad.
65538         Don't put "#define mkstemp" in config.h, as this might interfere
65539         with standard system headers that "#define mkstemp mkstemp64".
65540
65541         * modules/mkstemp (Depends-on): Add extensions, so that
65542         mkstemp is visible on some platforms.
65543         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
65544         (Include): Change to "mkstemp.h" from <stdlib.h>.
65545         (Files): Add mkstemp.h.
65546
65547         * lib/mkstemp.h: New file, since some standard headers
65548         #define mkstemp.
65549         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
65550         Include "mkstemp.h".
65551         Make the _LIBC code resemble glibc original more,
65552         e.g., use K&R style.
65553         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
65554         (mkstemp): Remove, since mkstemp.h does this for us.
65555         * lib/stdlib--.h: Include mkstemp.h.
65556
65557         Import this patch from libc:
65558
65559         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65560
65561         * lib/tempname.c (__gen_tempname): Change attempts_min
65562         into a macro.  Use preprocessor to decide how to initialize
65563         attempts [Coverity CID 67].
65564
65565 2006-09-20  Bruno Haible  <bruno@clisp.org>
65566
65567         * lib/mkdtemp.c: Import from libc.
65568         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65569                 * sysdeps/posix/tempname.c (__gen_tempname): Change
65570                 attempts_min into a macro.  Use preprocessor to decide how to
65571                 initialize attempts [Coverity CID 67].
65572         2001-11-27  Paul Eggert  <eggert@twinsun.com>
65573                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
65574                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
65575
65576 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65577
65578         * gnulib-tool (func_exit): New function, to allow to pass the
65579         exit status portably through the trap.  Use everywhere.
65580         (--help, --version): Signal a write error.
65581         (trap): catch SIGPIPE, for write errors.
65582         Exit at the end of the trap, with the correct exit status.
65583
65584 2006-09-19  Karl Berry  <karl@gnu.org>
65585
65586         * doc/gnulib.texi: note about the license texinfo files.
65587
65588 2006-09-19  Eric Blake  <ebb9@byu.net>
65589
65590         * gnulib-tool: Avoid space-tab.
65591
65592 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65593
65594         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
65595         that prevented coreutils 6.1 from building.  Problem reported
65596         by Petter Reinholdtsen.
65597
65598 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65599
65600         * gnulib-tool (avoidlist): Fix typo that broke options like
65601         --avoid=lock that are used by coreutils bootstrap.
65602
65603 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
65604
65605         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
65606         more systematically.
65607
65608 2006-09-18  Jim Meyering  <jim@meyering.net>
65609
65610         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
65611
65612 2006-09-18  Bruno Haible  <bruno@clisp.org>
65613
65614         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
65615
65616 2006-09-18  Bruno Haible  <bruno@clisp.org>
65617
65618         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
65619         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
65620         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
65621         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
65622         * m4/gettext.m4: Require autoconf >= 2.52.
65623         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
65624         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
65625         of gl_cv_header_inttypes_h.
65626
65627 2006-09-18  Bruno Haible  <bruno@clisp.org>
65628
65629         * lib/javaversion.c: Include configmake.h.
65630
65631 2006-09-18  Bruno Haible  <bruno@clisp.org>
65632
65633         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
65634         avoid that the while loops be executed in a subshell.
65635
65636 2006-09-18  Bruno Haible  <bruno@clisp.org>
65637
65638         * MODULES.html.sh (func_module): Break long lines.
65639         Suggested by Bruce Korb <bkorb@gnu.org>.
65640
65641 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65642
65643         Speed up by a factor of 1.12.
65644         * gnulib-tool (nl): New variable.
65645         (func_import): Rewrite include directive extraction to only read each
65646         directive once.
65647
65648 2006-09-17  Bruno Haible  <bruno@clisp.org>
65649
65650         * modules/javaversion (Makefile.am): Remove DEFS setting.
65651         (Depends-on): Add configmake, for PKGDATADIR definition.
65652
65653 2006-09-17  Bruno Haible  <bruno@clisp.org>
65654
65655         * gnulib-tool (func_create_testdir): Rewrite all files at once.
65656
65657 2006-09-17  Bruno Haible  <bruno@clisp.org>
65658
65659         * gnulib-tool (func_append): New function, stolen from libtool.m4.
65660         (func_modules_transitive_closure, func_modules_add_dummy,
65661         func_modules_to_filelist, func_import, func_create_testdir,
65662         func_create_megatestdir, ...): Use it wherever possible.
65663         Suggested by Ralf Wildenhues.
65664
65665 2006-09-16  Karl Berry  <karl@gnu.org>
65666
65667         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
65668         to avoid sectioning errors.
65669         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
65670         [ifinfo]: blank line after @center-ed titles.
65671         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
65672         Spell FSF address consistently with others.
65673         (These changes approved by rms.)
65674
65675 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65676
65677         Speed up by a factor of 1.61.
65678         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
65679         already checked module names again.
65680
65681 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65682
65683         Speed up by a factor of 1.13.
65684         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
65685         for new_files, and the input to func_add_or_update.
65686
65687 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65688
65689         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
65690         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
65691
65692 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65693
65694         * modules/mkancesdirs (Depends-on): Add fcntl.
65695         * modules/savewd: New file.
65696         * MODULES.html.sh (File system functions): Add savewd.
65697
65698         * modules/configmake (Makefile.am): Add support for the
65699         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
65700
65701 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65702
65703         * m4/savewd.m4: New file.
65704
65705 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65706
65707         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
65708         (dirchownmod): New arg FD.  All callers changed.
65709         Use FD rather than opening the directory ourself, as opening is
65710         now the caller's responsibility.
65711         * lib/dirchownmod.h: Likewise.
65712         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
65713         hosts that require <sys/types.h> before <sys/stat.h>.  Include
65714         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
65715         (test_dir): Remove.
65716         (mkancesdirs): Return length of prefix of FILE that has already
65717         been made, or -2 if there is a child doing the work.  Redo
65718         algorithm so that it is O(N) rather than O(N**2).  Optimize away
65719         ".", and treat ".." specially since it might stray back into
65720         already-created areas.  Use a subprocess if necessary.  New arg
65721         WD; all users changed.  MAKE_DIR function should now return 1
65722         if it creates a directory that is not readable.  Return -2 if
65723         a child process is spun off.
65724         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
65725         Adjust signature to match code.
65726         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
65727         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
65728         all users changed.
65729         * lib/savewd.c, lib/savewd.h: New files.
65730
65731 2006-09-15  Jim Meyering  <jim@meyering.net>
65732
65733         * modules/rename-dest-slash: New module.
65734         * MODULES.html.sh (posix_compat): Add it here.
65735
65736         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
65737
65738 2006-09-15  Jim Meyering  <jim@meyering.net>
65739
65740         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
65741         file.
65742
65743         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
65744
65745 2006-09-15  Jim Meyering  <jim@meyering.net>
65746
65747         * lib/rename-dest-slash.c (has_trailing_slash): Use
65748         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
65749         (rpl_rename_dest_slash): Perform the cheaper trailing slash
65750         test before testing whether SRC is a directory.
65751         Suggestions from Bruno Haible.
65752
65753         Avoid a warning about an unused variable.
65754         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
65755         into the #ifdef block where it's used.
65756
65757         * lib/rename-dest-slash.c: New file.
65758
65759 2006-09-14  Bruno Haible  <bruno@clisp.org>
65760
65761         * lib/allocsa.c: Include <config.h> unconditionally.
65762         * lib/asnprintf.c: Likewise.
65763         * lib/asprintf.c: Likewise.
65764         * lib/c-strcasecmp.c: Likewise.
65765         * lib/c-strcasestr.c: Likewise.
65766         * lib/c-strncasecmp.c: Likewise.
65767         * lib/c-strstr.c: Likewise.
65768         * lib/classpath.c: Likewise.
65769         * lib/clean-temp.c: Likewise.
65770         * lib/concatpath.c: Likewise.
65771         * lib/copy-file.c: Likewise.
65772         * lib/csharpcomp.c: Likewise.
65773         * lib/csharpexec.c: Likewise.
65774         * lib/execute.c: Likewise.
65775         * lib/fatal-signal.c: Likewise.
65776         * lib/findprog.c: Likewise.
65777         * lib/fwriteerror.c: Likewise.
65778         * lib/gl_array_list.c: Likewise.
65779         * lib/gl_array_oset.c: Likewise.
65780         * lib/gl_avltree_list.c: Likewise.
65781         * lib/gl_avltree_oset.c: Likewise.
65782         * lib/gl_avltreehash_list.c: Likewise.
65783         * lib/gl_carray_list.c: Likewise.
65784         * lib/gl_linked_list.c: Likewise.
65785         * lib/gl_linkedhash_list.c: Likewise.
65786         * lib/gl_list.c: Likewise.
65787         * lib/gl_oset.c: Likewise.
65788         * lib/gl_rbtree_list.c: Likewise.
65789         * lib/gl_rbtree_oset.c: Likewise.
65790         * lib/gl_rbtreehash_list.c: Likewise.
65791         * lib/imaxabs.c: Likewise.
65792         * lib/imaxdiv.c: Likewise.
65793         * lib/javacomp.c: Likewise.
65794         * lib/javaexec.c: Likewise.
65795         * lib/javaversion.c: Likewise.
65796         * lib/linebreak.c: Likewise.
65797         * lib/localcharset.c: Likewise.
65798         * lib/lock.c: Likewise.
65799         * lib/mbchar.c: Likewise.
65800         * lib/mbswidth.c: Likewise.
65801         * lib/mkdtemp.c: Likewise.
65802         * lib/pipe.c: Likewise.
65803         * lib/printf-args.c: Likewise.
65804         * lib/printf-parse.c: Likewise.
65805         * lib/progname.c: Likewise.
65806         * lib/progreloc.c: Likewise.
65807         * lib/readlink.c: Likewise.
65808         * lib/sh-quote.c: Likewise.
65809         * lib/stpcpy.c: Likewise.
65810         * lib/stpncpy.c: Likewise.
65811         * lib/strcasecmp.c: Likewise.
65812         * lib/strcasestr.c: Likewise.
65813         * lib/strcspn.c: Likewise.
65814         * lib/striconv.c: Likewise.
65815         * lib/strncasecmp.c: Likewise.
65816         * lib/strnlen1.c: Likewise.
65817         * lib/strstr.c: Likewise.
65818         * lib/strtok_r.c: Likewise.
65819         * lib/tls.c: Likewise.
65820         * lib/tmpdir.c: Likewise.
65821         * lib/unicodeio.c: Likewise.
65822         * lib/unsetenv.c: Likewise.
65823         * lib/vasnprintf.c: Likewise.
65824         * lib/vasprintf.c: Likewise.
65825         * lib/wait-process.c: Likewise.
65826         * lib/xallocsa.c: Likewise.
65827         * lib/xsetenv.c: Likewise.
65828         * lib/xstriconv.c: Likewise.
65829
65830 2006-09-13  Simon Josefsson  <jas@extundo.com>
65831
65832         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
65833         that internally, suggested by Ralf Wildenhues
65834         <Ralf.Wildenhues@gmx.de>.
65835
65836 2006-09-13  Simon Josefsson  <jas@extundo.com>
65837
65838         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
65839         @LIBOBJS@.
65840         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65841
65842 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65843
65844         * lib/_fpending.c: Include <config.h> unconditionally, since we no
65845         longer worry about uses that don't define HAVE_CONFIG_H.
65846         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
65847         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
65848         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
65849         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
65850         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
65851         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
65852         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
65853         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
65854         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
65855         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
65856         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
65857         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
65858         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
65859         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
65860         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
65861         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
65862         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
65863         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
65864         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
65865         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
65866         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
65867         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
65868         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
65869         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
65870         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
65871         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
65872         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
65873         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
65874         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
65875         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
65876         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
65877         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
65878         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
65879         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
65880         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
65881         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
65882         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
65883         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65884         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65885         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65886         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65887         Likewise.
65888
65889 2006-09-13  Eric Blake  <ebb9@byu.net>
65890
65891         * lib/getopt.c: Fix typo in last commit.
65892
65893 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65894
65895         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65896         dgettext.
65897
65898 2006-09-12  Jim Meyering  <jim@meyering.net>
65899
65900         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65901         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65902         Reported by Nelson H. F. Beebe.
65903
65904 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65905
65906         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65907         program_invocation_name and program_invocation_short_name are
65908         initialized.
65909         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65910         and program_invocation_short_name to argp.h, so they are visible
65911         to user programs.
65912         * lib/argp.h: Likewise
65913
65914 2006-09-10  Bruno Haible  <bruno@clisp.org>
65915
65916         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65917         m4/inttypes_h.m4, m4/uintmax_t.m4.
65918
65919 2006-09-10  Bruno Haible  <bruno@clisp.org>
65920
65921         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65922         gl_AC_TYPE_UINTMAX_T.
65923
65924 2006-09-10  Bruno Haible  <bruno@clisp.org>
65925
65926         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65927
65928 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65929
65930         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65931         convention.  Text proposed by Bruno Haible.
65932         (struct argp_option): Document the use of N_() wrappers.
65933
65934         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65935         '\v', and translate the two parts separately, instead of feeding
65936         the whole string to gettext.  This allows to exclude
65937         '\v' from the strings visible to the translator by writing doc
65938         strings as N_("..") "\v" N_("..").
65939
65940 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65941
65942         * config/srclist.txt: Undo latest change; the bug was fixed.
65943
65944 2006-09-09  Bruno Haible  <bruno@clisp.org>
65945
65946         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65947         assignments if building a library without libtool.
65948         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65949         in func_emit_lib_Makefile_am.
65950         (func_import): When building a static library libfoo.a, arrange to
65951         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65952         (func_create_testdir): Likewise.
65953         * modules/gc (configure.ac, Makefile.am): If building statically,
65954         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65955         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65956         * modules/striconv (configure.ac, Makefile.am): Likewise.
65957         Based on a suggestion by Ralf Wildenhues.
65958
65959 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65960
65961         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65962         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65963         Also:
65964
65965         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65966         Add year_2050_test to catch glibc bug 2821
65967         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65968
65969         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65970         Prefer #ifdef to #if.
65971
65972         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65973         Return from 'main' instead of calling 'exit'.
65974
65975 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65976
65977         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65978         returned the maximum time_t value rather than (time_t) -1.
65979         Problem originally reported by William Bardwell
65980         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65981
65982         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65983         Moved to here ...
65984         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65985         ... from here.
65986
65987 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65988
65989         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65990         2821 is fixed.
65991
65992 2006-09-08  Jim Meyering  <jim@meyering.net>
65993
65994         Don't make generated files read-only.  That would bother too many
65995         people.  However, do retain the ability to work when targets are
65996         read-only: remove the destination and temporary files before writing
65997         them (when generated via sed or echo), or by using the -f option for
65998         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65999         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66000         * modules/byteswap, modules/configmake, modules/fcntl:
66001         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66002         * modules/localcharset, modules/netinet_in, modules/poll:
66003         * modules/stdbool, modules/stdint, modules/sys_select:
66004         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66005
66006 2006-09-08  Jim Meyering  <jim@meyering.net>
66007
66008         Avoid new build failure on FreeBSD 6.0.
66009         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
66010         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
66011         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
66012
66013 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66014
66015         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
66016
66017 2006-09-07  Jim Meyering  <jim@meyering.net>
66018
66019         Fix global typo in last change: use chmod u-w, not chmod u-x.
66020         Spotted by Paul Eggert and Bruce Korb.
66021         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66022         * modules/byteswap, modules/configmake, modules/fcntl:
66023         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66024         * modules/localcharset, modules/netinet_in, modules/poll:
66025         * modules/stdbool, modules/stdint, modules/sys_select:
66026         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66027
66028 2006-09-06  Jim Meyering  <jim@meyering.net>
66029
66030         Make generated files be read-only.
66031         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
66032         Ensure that each generated file is now read-only.
66033         * modules/argz: Likewise.
66034         * modules/arpa_inet: Likewise.
66035         * modules/byteswap: Likewise.
66036         * modules/configmake: Likewise.
66037         * modules/fcntl: Likewise.
66038         * modules/fnmatch: Likewise.
66039         * modules/getopt: Likewise.
66040         * modules/glob: Likewise.
66041         * modules/inttypes: Likewise.
66042         * modules/netinet_in: Likewise.
66043         * modules/poll: Likewise.
66044         * modules/stdbool: Likewise.
66045         * modules/stdint: Likewise.
66046         * modules/sys_select: Likewise.
66047         * modules/sys_socket: Likewise.
66048         * modules/sys_stat: Likewise.
66049         * modules/sysexits: Likewise.
66050         * modules/localcharset: Same as above, but continue using temporary
66051         file named "t-$@" (why different?) rather than the "$@-t" used
66052         everywhere else.
66053
66054         * modules/sysexits (Makefile.am): Replace literal occurrences
66055         of "sysexit.h" more readable, and more consistent, "$@".
66056
66057 2006-09-06  Bruno Haible  <bruno@clisp.org>
66058
66059         * modules/striconv: New file.
66060         * modules/xstriconv: New file.
66061         * MODULES.html.sh (Internationalization functions): Add striconv,
66062         xstriconv.
66063
66064 2006-09-06  Bruno Haible  <bruno@clisp.org>
66065
66066         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
66067         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
66068         not using libtool correctly.
66069
66070 2006-09-06  Bruno Haible  <bruno@clisp.org>
66071
66072         * lib/striconv.h: New file.
66073         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
66074         iconvstring.c.
66075         * lib/xstriconv.h: New file.
66076         * lib/xstriconv.c: New file.
66077
66078 2006-09-06  Bruno Haible  <bruno@clisp.org>
66079
66080         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66081         lib_..._LDFLAGS.
66082
66083 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66084
66085         * lib/argz_.h: Sync from Libtool.
66086
66087         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
66088                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66089
66090         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
66091
66092 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
66093
66094         * modules/trim: New file.
66095
66096 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
66097
66098         * lib/trim.h: New file.
66099         * lib/trim.c: New file.
66100
66101 2006-09-05  Bruno Haible  <bruno@clisp.org>
66102
66103         * MODULES.html.sh (String handling): Add trim.
66104
66105 2006-09-04  Karl Berry  <karl@gnu.org>
66106
66107         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
66108         until next release.
66109
66110 2006-09-03  Bruno Haible  <bruno@clisp.org>
66111
66112         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
66113         correctly.
66114
66115 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66116
66117         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
66118         not gl_GETLOADAVG.  Omit unneeded semicolons.
66119         Problems reported by Ralf Wildenhues in
66120         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
66121         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
66122         at the end, which is the usual gnulib style.
66123
66124         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
66125         of doing all the work ourselves.
66126         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
66127         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
66128
66129 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66130
66131         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
66132         Problem reported by Ralf Wildenhues in
66133         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
66134
66135         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
66136         HAVE_STRUCT_STATFS_F_FSTYPENAME.
66137
66138 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66139
66140         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
66141         yesterday's patch by changing test -n to test -z.
66142
66143 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66144
66145         * modules/getloadavg (Files): Add m4/getloadavg.m4.
66146         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
66147         the former is now obsolescent.
66148
66149         * modules/chdir-long (Depends-on): Add fcntl.
66150
66151 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66152
66153         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
66154         obsolescent, and programs should use gnulib instead.
66155         * m4/getloadavg.m4: New file, with contents taken from Autoconf
66156         but with prefixes changed.
66157
66158 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66159
66160         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
66161         or stdbool.h, because they might not exist while configuring.
66162
66163         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
66164         Don't include unistd.h or limits.h; not needed, since chdir-long.h
66165         does that for us.
66166         (O_DIRECTORY): Remove.
66167
66168 2006-08-31  Eric Blake  <ebb9@byu.net>
66169
66170         * gnulib-tool: Don't let emacs change spaces to TAB.
66171
66172 2006-08-31  Bruno Haible  <bruno@clisp.org>
66173
66174         * gnulib-tool: When calling func_import more than once, do it in a
66175         subshell.
66176         Reported by Eric Blake <ebb9@byu.net>.
66177
66178 2006-08-31  Bruno Haible  <bruno@clisp.org>
66179
66180         * gnulib-tool (nl): Remove variable.
66181         (sed_transform_lib_file): Use more robust test for config-h module.
66182         (func_import): Fix typo in 2006-08-25 patch.
66183
66184 2006-08-31  Bruno Haible  <bruno@clisp.org>
66185
66186         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
66187         specified, augment Makefile.am variables instead of assigning them.
66188
66189 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66190
66191         Work around a bug in both the Linux and SunOS 64-bit kernels:
66192         nanosleep mishandles sleeps for longer than 2**31 seconds.
66193         Problem reported by Frank v Waveren in
66194         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
66196         Check for nanosleep bug.
66197         (LIB_NANOSLEEP): Append clock_gettime library if needed.
66198
66199 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66200
66201         Work around a bug in both the Linux and SunOS 64-bit kernels:
66202         nanosleep mishandles sleeps for longer than 2**31 seconds.
66203         Problem reported by Frank v Waveren in
66204         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66205         * lib/nanosleep.c (BILLION): New constant.
66206         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
66207         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
66208         implementation.
66209
66210 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66211
66212         * modules/nanosleep (Depends-on): Add gettime.
66213
66214 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66215         and Simon Josefsson  <jas@extundo.com>
66216         and Oskar Liljeblad  <oskar@osk.mine.nu>
66217
66218         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
66219         * gnulib-tool (func_import): New license type 'unmodifiable license
66220         text'.
66221         * modules/fdl: Use it.  Longer description.
66222         * module/gpl, module/lgpl: New files.
66223
66224 2006-08-30  Jim Meyering  <jim@meyering.net>
66225
66226         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
66227         shadowing the parameter.
66228
66229 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66230
66231         Sync from Libtool:
66232
66233         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66234
66235         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
66236         sharing with gnulib.  Report by Eric Blake.
66237
66238 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66239
66240         * modules/isapipe: New file.
66241         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
66242
66243 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66244
66245         * modules/configmake (Makefile.am): Add a comment, and omit
66246         the CONFIGMAKE_ prefix from generated macro names.  Suggested
66247         by Bruno Haible.
66248
66249 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66250
66251         * m4/isapipe.m4: New file.
66252
66253 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66254
66255         * lib/isapipe.c, lib/isapipe.h: New files.
66256
66257 2006-08-29  Jim Meyering  <jim@meyering.net>
66258
66259         * modules/configmake (Makefile.am): Make configmake.h depend on
66260         Makefile.  Otherwise, a stale configmake.h could hang around.
66261
66262 2006-08-29  Eric Blake  <ebb9@byu.net>
66263
66264         * lib/error.c (error_at_line, print_errno_message): Match libc, after
66265         resolution of upstream bug 3044.
66266
66267 2006-08-29  Bruno Haible  <bruno@clisp.org>
66268
66269         * modules/localcharset (Depends-on): Add configmake.
66270         (Makefile.am): Remove setting of LIBDIR through DEFS.
66271
66272 2006-08-29  Bruno Haible  <bruno@clisp.org>
66273
66274         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
66275         defined.
66276
66277 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66278
66279         * modules/fcntl: New file.
66280         * modules/chdir-safer (Depends-on): Add fcntl.
66281         * modules/fts: Likewise.
66282         * modules/mkdir-p: Likewise.
66283
66284         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
66285         This undoes the most recent change, since we're now addressing the
66286         problem in a different way.
66287
66288         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
66289         into output, since the output might be called Makefile.am even
66290         if $makefile_name is something different.
66291         (func_import): Use $makefile_am rather than
66292         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
66293         empty.
66294
66295         * modules/inttypes (Files): Add m4/inttypes-h.m4.
66296
66297 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66298
66299         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
66300         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
66301         recent change to stdint.m4, since we're now addressing the problem in a
66302         different way.
66303
66304 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66305
66306         * m4/fcntl_h.m4: New file.
66307
66308 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66309
66310         * lib/fcntl_.h: New file.
66311         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
66312         the fcntl module.
66313         * lib/dirchownmod.c: Likewise.
66314         * lib/fts.c: Likewise.
66315
66316         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
66317         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
66318         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
66319         just before including <inttypes.h>, to avoid circular inclusion.
66320
66321 2006-08-28  Jim Meyering  <jim@meyering.net>
66322
66323         * doc/visibility.texi: Actually read and correct the grammar of the
66324         sentence affected by yesterday's change.
66325
66326 2006-08-28  Eric Blake  <ebb9@byu.net>
66327
66328         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
66329         needs wrapper.
66330
66331 2006-08-28  Eric Blake  <ebb9@byu.net>
66332
66333         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
66334
66335 2006-08-28  Eric Blake  <ebb9@byu.net>
66336
66337         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
66338
66339 2006-08-28  Bruno Haible  <bruno@clisp.org>
66340
66341         * modules/c-strstr: New file, from GNU gettext.
66342         * MODULES.html.sh (String handling): Add c-strstr.
66343
66344 2006-08-28  Bruno Haible  <bruno@clisp.org>
66345
66346         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
66347         macros.
66348         Reported by Eric Blake.
66349
66350 2006-08-28  Bruno Haible  <bruno@clisp.org>
66351
66352         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
66353         (VASNPRINTF): Return a string of length > INT_MAX without failing.
66354         * lib/vasprintf.c: Include errno.h, limits.h.
66355         (EOVERFLOW): New fallback definition.
66356         (vasprintf): Test here whether the string length is > INT_MAX.
66357         * lib/vsnprintf.c: Include errno.h, limits.h.
66358         (EOVERFLOW): New fallback definition.
66359         (vsnprintf): Fix bug when generated string was too long for the buffer.
66360         Test here whether the string length is > INT_MAX.
66361
66362 2006-08-28  Bruno Haible  <bruno@clisp.org>
66363
66364         * lib/inttypes_.h (SCNX*): Remove definitions.
66365         Reported by Eric Blake.
66366
66367 2006-08-28  Bruno Haible  <bruno@clisp.org>
66368
66369         * lib/c-strstr.h: New file, from GNU gettext.
66370         * lib/c-strstr.c: New file, from GNU gettext.
66371
66372 2006-08-28  Bruno Haible  <bruno@clisp.org>
66373
66374         * gnulib-tool: Reorder some statements.
66375
66376 2006-08-28  Bruno Haible  <bruno@clisp.org>
66377
66378         * gnulib-tool: New option --makefile-name.
66379         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
66380         $makefile_name.
66381         (func_import): Write $makefile_name to the cache file, and read it from
66382         there unless explicitly specified. Use $makefile_name as file name
66383         instead of Makefile.am. Adjust the recommendations accordingly.
66384
66385 2006-08-28  Bruno Haible  <bruno@clisp.org>
66386
66387         * gnulib-tool (func_verify_module): Check against misapplying patch.
66388
66389 2006-08-28  Bruno Haible  <bruno@clisp.org>
66390
66391         * gnulib-tool (func_relativize, func_relconcat): New functions.
66392         Give an error if --local-dir is given with --update.
66393         Remove trailing slashes from $local_gnulib_dir.
66394         (func_import): Store the relativized $local_gnulib_dir in
66395         gnulib-cache.m4, and read it from there if not specified explicitly.
66396
66397 2006-08-28  Bruno Haible  <bruno@clisp.org>
66398
66399         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
66400         is the current directory. Respect also $local_gnulib_dir.
66401
66402 2006-08-28  Bruno Haible  <bruno@clisp.org>
66403             Simon Josefsson  <jas@extundo.com>
66404
66405         BeOS portability.
66406         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
66407
66408 2006-08-27  Jim Meyering  <jim@meyering.net>
66409
66410         * doc/visibility.texi: Remove duplicate word: "pointer".
66411
66412 2006-08-26  Bruno Haible  <bruno@clisp.org>
66413
66414         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
66415         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
66416         (Makefile.am): Create inttypes.h from inttypes_.h.
66417         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
66418
66419         * modules/imaxabs: New file.
66420
66421         * modules/imaxdiv: New file.
66422
66423 2006-08-26  Bruno Haible  <bruno@clisp.org>
66424
66425         * m4/inttypes.m4: New file.
66426         * m4/_inttypes_h.m4: Remove file.
66427         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
66428         PRI_MACROS_BROKEN.
66429         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
66430
66431         * m4/imaxabs.m4: New file.
66432
66433         * m4/imaxdiv.m4: New file.
66434
66435 2006-08-26  Bruno Haible  <bruno@clisp.org>
66436
66437         * lib/inttypes_.h: New file.
66438         * lib/inttypes.h: Remove file.
66439         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
66440
66441         * lib/imaxabs.c: New file.
66442
66443         * lib/imaxdiv.c: New file.
66444
66445 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66446
66447         New config-h module, so that "make" output needn't be cluttered
66448         by -DHAVE_CONFIG_H.
66449         * MODULES.html.sh (Support for building libraries and executables):
66450         Add config-h.
66451         * modules/config-h: New file.
66452         * gnulib-tool (nl, sed_transform_lib_file): New vars.
66453         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
66454         the config-h module is used.
66455
66456         New configmake module, so that "make" output needn't be cluttered
66457         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
66458         * MODULES.html.sh (Support for building libraries and executables):
66459         Add configmake.
66460         * modules/configmake: New file.
66461
66462 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66463
66464         * m4/config-h.m4: New file.
66465
66466 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66467
66468         * config/srclist.txt: Add elisp-comp.
66469
66470 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66471
66472         * MODULES.html.sh (Support for building libraries and executables):
66473         Add elisp-comp.
66474         * build-aux/elisp-comp: New file.
66475         * modules/elisp-comp: New file.
66476
66477 2006-08-24  Bruno Haible  <bruno@clisp.org>
66478
66479         * gnulib-tool (func_create_testdir): Use non-default values of
66480         sourcebase and m4base.
66481
66482 2006-08-24  Bruno Haible  <bruno@clisp.org>
66483
66484         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
66485         HTML structure.
66486
66487 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66488
66489         * modules/openat (Depends-on): Add lchown.
66490
66491 2006-08-23  Bruno Haible  <bruno@clisp.org>
66492
66493         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
66494         of gl_LOCK_EARLY instead of gl_LOCK.
66495
66496 2006-08-23  Bruno Haible  <bruno@clisp.org>
66497
66498         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
66499         on OSF/1 to no.
66500         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
66501
66502 2006-08-23  Bruno Haible  <bruno@clisp.org>
66503
66504         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
66505         as unusable.
66506
66507         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
66508         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
66509         (gl_LOCK): New macro.
66510
66511 2006-08-22  Simon Josefsson  <jas@extundo.com>
66512
66513         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
66514         to md5 module.
66515
66516 2006-08-22  Simon Josefsson  <jas@extundo.com>
66517
66518         * MODULES.html.sh: Add "Support for maintaining and release
66519         projects".
66520
66521         * build-aux/gnupload: New file, from coreutils.
66522
66523 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66524
66525         Avoid the need for AC_LIBSOURCES in m4 macros.
66526         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
66527         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
66528         * modules/check-version (EXTRA_DIST): Add check-version.h.
66529         * modules/crc (EXTRA_DIST): Add crc.h.
66530         * modules/des (EXTRA_DIST): Add des.h.
66531         * modules/gc (EXTRA_DIST): Add gc.h.
66532         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
66533         * modules/getline (EXTRA_DIST): Add getline.h.
66534         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
66535         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
66536         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
66537         * modules/md2 (EXTRA_DIST): Add md2.h.
66538         * modules/md4 (EXTRA_DIST): Add md4.h.
66539         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
66540         * modules/read-file (EXTRA_DIST): Add read-file.h.
66541         * modules/readline (EXTRA_DIST): Add readline.h.
66542         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
66543         rijndael-api-fst.h.
66544
66545 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66546
66547         * m4/rijndael.m4 (gl_ARCFOUR):
66548         * m4/arctwo.m4 (gl_ARCTWO):
66549         * m4/check-version.m4 (gl_CHECK_VERSION):
66550         * m4/crc.m4 (gl_CRC):
66551         * m4/des.m4 (gl_DES):
66552         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
66553         * m4/gc.m4 (gl_GC):
66554         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
66555         * m4/getline.m4 (gl_FUNC_GETLINE):
66556         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
66557         * m4/hmac-md5.m4 (gl_HMAC_MD5):
66558         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
66559         * m4/md2.m4 (gl_MD2):
66560         * m4/md4.m4 (gl_MD4):
66561         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
66562         * m4/read-file.m4 (gl_FUNC_READ_FILE):
66563         * m4/readline.m4 (gl_FUNC_READLINE):
66564         * m4/rijndael.m4 (gl_RIJNDAEL):
66565         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66566         to get the necessary .h files and whatnot.
66567
66568 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66569
66570         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
66571         gnulib rather than the other way around.
66572         * config/srclistvars.sh (COREUTILS): Remove.
66573
66574 2006-08-22  Jim Meyering  <jim@meyering.net>
66575
66576         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
66577
66578         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
66579
66580 2006-08-22  Eric Blake  <ebb9@byu.net>
66581
66582         * modules/regexprops-generic: New file.
66583         * MODULES.html.sh (Support for building documentation): List it.
66584
66585 2006-08-22  Eric Blake  <ebb9@byu.net>
66586
66587         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
66588         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66589         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
66590         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66591
66592 2006-08-22  Bruno Haible  <bruno@clisp.org>
66593
66594         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
66595         and lib_LTLIBRARIES like the other lib_* variables.
66596
66597 2006-08-22  Bruno Haible  <bruno@clisp.org>
66598
66599         * build-aux/x-to-1.in: New file, from GNU gettext.
66600
66601 2006-08-22  Bruno Haible  <bruno@clisp.org>
66602
66603         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
66604         <utmpx.h> exists.
66605
66606 2006-08-22  Bruno Haible  <bruno@clisp.org>
66607
66608         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
66609         <utmpx.h> exists.
66610
66611 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66612
66613         BeOS portability.
66614         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
66615         exist.
66616         Problem reported by Bruno Haible.
66617
66618 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66619
66620         Avoid the need for AC_LIBSOURCES in m4 macros.
66621         * modules/acl (EXTRA_DIST): Add acl.h.
66622         * modules/argmatch (Files): Add m4/argmatch.m4.
66623         (configure.ac): Add gl_ARGMATCH.
66624         (EXTRA_DIST): Renamed from lib_SOURCES, for
66625         consistency with the other modules.  Remove argmatch.c.
66626         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
66627         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
66628         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
66629         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
66630         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
66631         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
66632         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
66633         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
66634         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
66635         * modules/closeout (EXTRA_DIST): Add closeout.h.
66636         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
66637         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
66638         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
66639         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
66640         dirname.h; remove basename.c and stripslash.c.
66641         * modules/exclude (EXTRA_DIST): Add exclude.h.
66642         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
66643         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
66644         * modules/file-type (EXTRA_DIST): Add file-type.h.
66645         * modules/filemode (EXTRA_DIST): Add filemode.h.
66646         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
66647         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66648         * modules/fpending (EXTRA_DIST): Add __fpending.h.
66649         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
66650         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
66651         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
66652         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
66653         * modules/getdate (EXTRA_DIST): Add getdate.c.
66654         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
66655         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
66656         * modules/getpass (EXTRA_DIST): Add getpass.h.
66657         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
66658         * modules/group-member (EXTRA_DIST): Add group-member.h.
66659         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
66660         * modules/hash (EXTRA_DIST): Add hash.h.
66661         * modules/human (EXTRA_DIST): Add human.h.
66662         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
66663         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
66664         * modules/lchown (EXTRA_DIST): Add lchown.h.
66665         * modules/long-options (EXTRA_DIST): Add long-options.h.
66666         * modules/lstat (EXTRA_DIST): Add lstat.h.
66667         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
66668         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
66669         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
66670         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
66671         * modules/memxor (EXTRA_DIST): Add memxor.h.
66672         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
66673         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
66674         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
66675         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
66676         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
66677         * modules/physmem (EXTRA_DIST): Add physmem.h.
66678         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
66679         * modules/posixver (EXTRA_DIST): Add posixver.h.
66680         * modules/quote (EXTRA_DIST): Add quote.h.
66681         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
66682         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
66683         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
66684         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
66685         regex_internal.h regexec.c.
66686         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
66687         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
66688         * modules/same (EXTRA_DIST): Add same.h.
66689         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
66690         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
66691         * modules/savedir (EXTRA_DIST): Add savedir.h.
66692         * modules/sha1 (EXTRA_DIST): Add sha1.h.
66693         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
66694         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
66695         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
66696         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
66697         * modules/strdup (EXTRA_DIST): Add strdup.h.
66698         * modules/strftime (EXTRA_DIST): Add strftime.h.
66699         * modules/strndup (EXTRA_DIST): Add strndup.h.
66700         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
66701         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
66702         * modules/time_r (EXTRA_DIST): Add time_r.h.
66703         * modules/timespec (EXTRA_DIST): Add timespec.h.
66704         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66705         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
66706         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
66707         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
66708         * modules/userspec (EXTRA_DIST): Add userspec.h.
66709         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
66710         * modules/utimens (EXTRA_DIST): Add utimens.h.
66711         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
66712         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
66713         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
66714         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
66715         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
66716         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
66717         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
66718         * modules/yesno (EXTRA_DIST): Add yesno.h.
66719
66720 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66721
66722         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
66723
66724         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
66725         * m4/dev-ino.m4, same-inode.m4: Remove.
66726
66727         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
66728         * m4/acl.m4 (AC_FUNC_ACL):
66729         * m4/backupfile.m4 (gl_BACKUPFILE):
66730         * m4/c-strtod.m4 (gl_C99_STRTOLD):
66731         * m4/canon-host.m4 (gl_CANON_HOST):
66732         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66733         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
66734         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
66735         * m4/cloexec.m4 (gl_CLOEXEC):
66736         * m4/close-stream.m4 (gl_CLOSE_STREAM):
66737         * m4/closeout.m4 (gl_CLOSEOUT):
66738         * m4/dirfd.m4 (gl_FUNC_DIRFD):
66739         * m4/dirname.m4 (gl_DIRNAME):
66740         * m4/exclude.m4 (gl_EXCLUDE):
66741         * m4/exitfail.m4 (gl_EXITFAIL):
66742         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
66743         * m4/file-type.m4 (gl_FILE_TYPE):
66744         * m4/filemode.m4 (gl_FILEMODE):
66745         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
66746         * m4/fpending.m4 (gl_FUNC_FPENDING):
66747         * m4/fprintftime.m4 (gl_FPRINTFTIME):
66748         * m4/fts.m4 (gl_FUNC_FTS):
66749         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
66750         * m4/getdate.m4 (gl_GETDATE):
66751         * m4/gethrxtime.m4 (gl_GETHRXTIME):
66752         * m4/getpagesize.m4 (gl_GETPAGESIZE):
66753         * m4/getpass.m4 (gl_FUNC_GETPASS):
66754         * m4/gettime.m4 (gl_GETTIME):
66755         * m4/getugroups.m4 (gl_GETUGROUPS):
66756         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
66757         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
66758         * m4/hard-locale.m4 (gl_HARD_LOCALE):
66759         * m4/hash.m4 (gl_HASH):
66760         * m4/idcache.m4 (gl_IDCACHE):
66761         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
66762         * m4/lchown.m4 (gl_FUNC_LCHOWN):
66763         * m4/long-options.m4 (gl_LONG_OPTIONS):
66764         * m4/lstat.m4 (gl_FUNC_LSTAT):
66765         * m4/md5.m4 (gl_MD5):
66766         * m4/memcasecmp.m4 (gl_MEMCASECMP):
66767         * m4/memcoll.m4 (gl_MEMCOLL):
66768         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
66769         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
66770         * m4/memxor.m4 (gl_MEMXOR):
66771         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
66772         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
66773         * m4/modechange.m4 (gl_MODECHANGE):
66774         * m4/mountlist.m4 (gl_MOUNTLIST):
66775         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66776         * m4/openat.m4 (gl_FUNC_OPENAT):
66777         * m4/pathmax.m4 (gl_PATHMAX):
66778         * m4/physmem.m4 (gl_PHYSMEM):
66779         * m4/posixtm.m4 (gl_POSIXTM):
66780         * m4/posixver.m4 (gl_POSIXVER):
66781         * m4/quote.m4 (gl_QUOTE):
66782         * m4/quotearg.m4 (gl_QUOTEARG):
66783         * m4/readtokens.m4 (gl_READTOKENS):
66784         * m4/readutmp.m4 (gl_READUTMP):
66785         * m4/regex.m4 (gl_REGEX):
66786         * m4/safe-read.m4 (gl_SAFE_READ):
66787         * m4/safe-write.m4 (gl_SAFE_WRITE):
66788         * m4/same.m4 (gl_SAME):
66789         * m4/save-cwd.m4 (gl_SAVE_CWD):
66790         * m4/savedir.m4 (gl_SAVEDIR):
66791         * m4/settime.m4 (gl_SETTIME):
66792         * m4/sha1.m4 (gl_SHA1):
66793         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
66794         * m4/stat-macros.m4 (gl_STAT_MACROS):
66795         * m4/stat-time.m4 (gl_STAT_TIME):
66796         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66797         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66798         * m4/strdup.m4 (gl_FUNC_STRDUP):
66799         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66800         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66801         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66802         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66803         * m4/time_r.m4 (gl_TIME_R):
66804         * m4/timespec.m4 (gl_TIMESPEC):
66805         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66806         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66807         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66808         * m4/userspec.m4 (gl_USERSPEC):
66809         * m4/utimecmp.m4 (gl_UTIMECMP):
66810         * m4/utimens.m4 (gl_UTIMENS):
66811         * m4/xalloc.m4 (gl_XALLOC):
66812         * m4/xgetcwd.m4 (gl_XGETCWD):
66813         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66814         * m4/xreadlink.m4 (gl_XREADLINK):
66815         * m4/xstrtod.m4 (gl_XSTRTOD):
66816         * m4/yesno.m4 (gl_YESNO):
66817         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66818         to get the necessary .h files and whatnot.
66819
66820 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
66821             Bruno Haible  <bruno@clisp.org>
66822
66823         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
66824         /bin/sh understanding of '!' conditional negation.
66825
66826 2006-08-21  Jim Meyering  <jim@meyering.net>
66827
66828         * modules/openat (Depends-on): Really alphabetize.
66829
66830         * modules/acl (Depends-on): Add error and quote.
66831
66832         * check-module (find_included_lib_files): Add at-func.c to the
66833         ok-to-include-more-than-once white list.
66834
66835         * modules/openat (Depends-on): Add lstat.  Alphabetize.
66836
66837 2006-08-21  Bruno Haible  <bruno@clisp.org>
66838
66839         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66840         Emit a pkgdata_DATA variable only if some snippets add contents to it.
66841         Reported by Martin Lambers <marlam@marlam.de>.
66842
66843 2006-08-21  Bruno Haible  <bruno@clisp.org>
66844
66845         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
66846         specify an installation location, don't emit a noinst_LIBRARIES or
66847         noinst_LTLIBRARIES assignment.
66848
66849 2006-08-21  Bruno Haible  <bruno@clisp.org>
66850
66851         BeOS portability.
66852         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
66853         BeOS has mbrtowc() but no <wctype.h>.
66854
66855 2006-08-21  Bruno Haible  <bruno@clisp.org>
66856
66857         BeOS portability.
66858         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
66859         exist.
66860
66861 2006-08-21  Bruno Haible  <bruno@clisp.org>
66862
66863         BeOS portability.
66864         * lib/mbchar.h: Include <wctype.h> only if it exists.
66865
66866 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66867
66868         Remove files that are no longer needed by their respective modules.
66869         * m4/obstack.m4: Remove.
66870         * m4/strerror_r.m4: Remove.
66871         * m4/uint32_t.m4: Remove.
66872         * m4/uintptr_t.m4: Remove.
66873         * m4/ullong_max.m4: Remove.
66874         * m4/xstrtoimax.m4: Remove.
66875         * m4/xstrtoumax.m4: Remove.
66876
66877         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
66878         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
66879         dependencies now capture this.
66880
66881         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
66882         Do not use AC_LIBSOURCES, since gnulib modules now do this.
66883         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66884         * m4/human.m4 (gl_HUMAN): Likewise.
66885         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66886         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66887
66888         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66889
66890         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66891         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66892         stdint.
66893         * m4/human.m4 (gl_HUMAN): Likewise.
66894         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66895         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66896         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66897         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66898         * m4/xstrtol (gl_XSTRTOL): Likewise.
66899
66900         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66901         AC_TYPE_LONG_LONG_INT.
66902         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66903         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66904         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66905         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66906
66907         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66908         on stdbool.
66909
66910         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66911         (gl_PREREQ_XSTRTOUL): Remove.
66912
66913         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66914
66915         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66916         mode.
66917
66918 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66919
66920         Add and change modules to make it easier for coreutils to use
66921         gnulib-tool.
66922         * modules/backupfile (Files): Remove m4/d-ino.m4.
66923         (Depends-on): Add d-ino.
66924         * modules/cycle-check (Depends-on): Add stdint.
66925         (lib_SOURCES): Add cycle-check.h.
66926         * modules/d-ino: New module.
66927         * modules/d-type: New module.
66928         * modules/error (Files): Remove m4/strerror_r.m4.
66929         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66930         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66931         m4/inttypes_h.m4, m4/uintmax_t.m4.
66932         (Depends-on): Add stdint.
66933         (lib_SOURCES): Add fsusage.h.
66934         * modules/getcwd (Files): Remove d-ino.m4.
66935         (Depends-on): Add d-ino.
66936         * modules/getndelim2 (Depends-on): Add stdint.
66937         * modules/glob (Files): Remove m4/d-type.m4.
66938         (Depends-on): Add d-type.
66939         * modules/host-os: New module.
66940         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66941         m4/inttypes_h.m4, m4/uintmax_t.m4.
66942         * Depends-on: Add stdint.
66943         (lib_SOURCES): Add human.h.
66944         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66945         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66946         m4/uintmax_t.m4, m4/ulonglong.m4.
66947         (Depends-on): Add stdint.
66948         (EXTRA_DIST): Add inttostr.h.
66949         * modules/lchmod: New module.
66950         * modules/link-follow: New module.
66951         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66952         (Depends-on): Add lchmod.
66953         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66954         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66955         (Depends-on): Add stdint.
66956         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66957         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66958         (Depends-on): Add stdint.
66959         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66960         * modules/perl: New module.
66961         * modules/regex (Depends-on): Add stdint.
66962         * modules/rmdir-errno: New module.
66963         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66964         m4/intmax_t.m4.
66965         (Depends-on): Add stdint.
66966         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66967         m4/uintmax_t.m4.
66968         (Depends-on): Add stdint.
66969         * modules/unlink-busy: New module.
66970         * modules/utimecmp (Depends-on): Add stdint.
66971         * modules/uptime: New module.
66972         * modules/winsz-ioctl: New module.
66973         * modules/winsz-termios: New module.
66974         * modules/xnanosleep (Depends-on): Add nanosleep.
66975         * modules/ullong_max: Remove.
66976         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66977         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66978         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66979         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66980         (Depends-on): Add inttypes.
66981         (lib_SOURCES): Add xstrtol.h.
66982         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66983         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66984         * MODULES.html.sh: Move 'assert' into the assert section.
66985         Move 'dummy' into the linking section.
66986         Remove ullong_max.
66987         Add section for compatibility checks for POSIX:2001 functions,
66988         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66989         winsz-ioctl, and winsz-termios into it.
66990         Add lchmod.
66991         Add top-level Misc section and put host-os, perl, and uptime
66992         into it.
66993
66994 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66995
66996         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66997         now assume the stdint module.  Do not include inttypes.h.
66998         * lib/fsusage.h: Likewise.
66999         * lib/getndelim2.c: Likewise.
67000         * lib/human.h: Likewise.
67001         * lib/inttostr.h: Likewise.
67002         * lib/obstack.c: Likewise.
67003         * lib/regex_internal.h: Likewise.
67004         * lib/tempname.c: Likewise.
67005         * lib/utimecmp.c: Likewise.
67006         * lib/xstrtol.h: Likewise.
67007
67008         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
67009
67010         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
67011         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
67012         * lib/xtime.h: Likewise.
67013
67014 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67015
67016         * modules/openat (Files): Add lib/fchmodat.c.
67017         Fixes problem reported by Jay Youngman.
67018
67019 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67020
67021         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
67022         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
67023
67024 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
67025             Bruno Haible  <bruno@clisp.org>
67026
67027         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
67028         and is a script that invokes bison. Tighten the code. Add comments.
67029
67030 2006-08-18  Jim Meyering  <jim@meyering.net>
67031
67032         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
67033         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
67034         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
67035         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
67036
67037 2006-08-18  Bruno Haible  <bruno@clisp.org>
67038
67039         * modules/bison-i18n: New file.
67040         * MODULES.html.sh (Internationalization functions): Add it.
67041
67042 2006-08-18  Bruno Haible  <bruno@clisp.org>
67043
67044         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
67045         sys/statvfs.h. When getmntinfo was found, check its declaration and
67046         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
67047
67048 2006-08-18  Bruno Haible  <bruno@clisp.org>
67049
67050         * m4/bison-i18n.m4: New file, from bison.
67051
67052 2006-08-18  Bruno Haible  <bruno@clisp.org>
67053
67054         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
67055         (ME_DUMMY): Treat "kernfs" as a dummy.
67056         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
67057
67058 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67059
67060         Update from coreutils.
67061
67062         2006-08-15  Jim Meyering  <jim@meyering.net>
67063
67064         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
67065
67066         2006-01-17  Jim Meyering  <jim@meyering.net>
67067
67068         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
67069
67070         2006-01-11  Jim Meyering  <jim@meyering.net>
67071
67072         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
67073         Check for the lchmod function.
67074
67075 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67076
67077         Update from coreutils.
67078
67079         * lib/__fpending.h: Add copyright notice.
67080         * lib/fprintftime.h: Likewise.
67081         * lib/savedir.c: Use (C) in copyright notice.
67082         * lib/savedir.h: Likewise.
67083
67084         2006-08-15  Jim Meyering  <jim@meyering.net>
67085
67086         * lib/at-func.c: New file, with the logic of all emulated at-functions.
67087         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
67088         in support of the EXPECTED_ERRNO macro.
67089         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
67090         definitions.  Instead, define the appropriate symbols and include
67091         "at-func.c".
67092         * lib/mkdirat.c (mkdirat): Likewise.
67093         * lib/fchmodat.c (fchmodat): Likewise.
67094         (ENOSYS): Remove definition.
67095         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
67096         it.  Don't include "unistd--.h" -- it wasn't ever used.
67097
67098         2006-01-17  Jim Meyering  <jim@meyering.net>
67099
67100         Rewrite fts.c not to change the current working directory,
67101         by using openat, fstatat, fdopendir, etc..
67102
67103         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
67104         (HAVE_OPENAT_SUPPORT): Define.
67105         [_LIBC] (fchdir): Don't undef or define; no longer used.
67106         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
67107         Now, this `function' always succeeds, and consumes its file descriptor
67108         parameter -- so callers must not close such FDs.  Update callers.
67109         (diropen_fd, opendirat, cwd_advance_fd): New functions.
67110         (diropen): Add parameter, SP.  Adjust all callers.
67111         Implement using diropen_fd, rather than open.
67112         (fts_open): Initialize new member, fts_cwd_fd.
67113         Remove fts_rft-setting code.
67114         (fts_close): Close fts_cwd_fd, if necessary.
67115         (__opendir2): Define in terms of opendir or opendirat,
67116         depending on whether the FST_NOCHDIR flag is set.
67117         (fts_build): Since fts_safe_changedir consumes its FD, and since
67118         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
67119         and close the dup'd file descriptor upon failure.
67120         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
67121         (fts_safe_changedir): Tweak semantics to reflect that this function
67122         now calls cwd_advance_fd and hence consumes its FD argument.
67123         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
67124         [struct FTS] (fts_rft): Remove now-unused member.
67125         [struct FTS] (fts_cycle.state): Improve comment.
67126
67127         * lib/openat.c (openat_needs_fchdir): New function.
67128         * lib/openat.h (openat_needs_fchdir): Declare it.
67129
67130 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67131
67132         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
67133         Problem and fix reported by Pádraig Brady in
67134         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
67135
67136 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67137
67138         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
67139
67140 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67141
67142         * lib/memcoll.c (memcoll): Optimize for the common case where the
67143         arguments are bytewise equal.
67144
67145 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67146
67147         * doc/regexprops-generic.texi: Add a copyright notice.
67148
67149 2006-08-15  Bruno Haible  <bruno@clisp.org>
67150
67151         * modules/tmpdir (License): Change to LGPL.
67152
67153 2006-08-15  Bruno Haible  <bruno@clisp.org>
67154
67155         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
67156         module.
67157
67158 2006-08-14  Simon Josefsson  <jas@extundo.com>
67159
67160         * config/srclist.txt: Add gnupload.
67161
67162 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67163
67164         Change copyright notice from LGPL 2 to GPL 2, since that's the
67165         standard form used in the gnulib repository.
67166         * tests/test-lock.c: Likewise.
67167         * tests/test-stdint.c: Likewise.
67168         * tests/test-tls.c: Likewise.
67169
67170         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
67171         prelude-manager.  User shorter URLs for GNU projects, without '?'.
67172         Add copyright notice.
67173
67174         * check-module: Add copyright notice.  Output a copyright
67175         notice if "--version" is specified.
67176         * modules/COPYING: New file.
67177         * tests/test-getaddrinfo.c: Add copyright notice.
67178         * tests/test-verify.c: Likewise.
67179
67180 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67181
67182         Change copyright notice from LGPL 2 to GPL 2, since that's the
67183         standard form used in the gnulib repository.
67184         * lib/lock.c: LGPL -> GPL.
67185         * lib/lock.h: Likewise.
67186         * lib/strnlen1.c: Likewise.
67187         * lib/strnlen1.h: Likewise.
67188         * lib/tls.c: Likewise.
67189         * lib/tls.h: Likewise.
67190         * lib/tmpdir.c: Likewise.
67191
67192         * lib/TODO: Remove; this belongs only in coreutils.
67193
67194 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67195
67196         Add copyright notices to long-enough files that lack them, since
67197         otherwise the files aren't clearly free.  Use the same notice that
67198         getdate.texi already uses.
67199         * doc/alloca-opt.texi: Add copyright notice.
67200         * doc/alloca.texi: Likewise.
67201         * doc/ctime.texi: Likewise.
67202         * doc/functions.texi: Likewise.
67203         * doc/gcd.texi: Likewise.
67204         * doc/gnulib-tool.texi: Likewise.
67205         * doc/inet_ntoa.texi: Likewise.
67206         * doc/visibility.texi: Likewise.
67207
67208         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
67209         * doc/quote.texi: Add copyright notice.
67210
67211         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
67212         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
67213         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
67214         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
67215         is now obsolete, and give a pointer to the Sun list.
67216         Add copyright notice.
67217
67218 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67219
67220         * config/srclistvars.sh: Add copyright notice.
67221
67222 2006-08-14  Eric Blake  <ebb9@byu.net>
67223
67224         Import the following change from libc:
67225
67226         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
67227
67228         Upstream bug 2997.
67229         * lib/misc/error.c: Add space between program name and message if file
67230         name is missing.
67231
67232 2006-08-12  Karl Berry  <karl@gnu.org>
67233
67234         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
67235         remove, these originate in gnulib now.
67236
67237 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67238
67239         * doc/Makefile (standards.info standards.html standards.dvi):
67240         Also depend on make-stds.texi.
67241
67242 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67243
67244         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
67245         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
67246
67247         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
67248         in wchar_t.  Problem reported by Eric Blake.
67249
67250         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
67251         LEN is smaller than SIZE.  Suggested by Bruno Haible.
67252         Also, help the compiler to keep LEN in a register.
67253
67254 2006-08-11  Eric Blake  <ebb9@byu.net>
67255
67256         * users.txt: Sort.  Add tar.
67257
67258 2006-08-11  Bruno Haible  <bruno@clisp.org>
67259
67260         * users.txt: New file.
67261
67262 2006-08-11  Bruno Haible  <bruno@clisp.org>
67263
67264         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
67265         before <wchar.h>. Needed for OSF/1 and BSD/OS.
67266
67267 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67268
67269         * modules/snprintf (Depends-on): Remove minmax.
67270         (Maintainer): Add self and Bruno.
67271
67272 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67273
67274         * lib/.cppi-disable: Add snprintf.h, socket_.h.
67275         * lib/snprintf.c: Include <errno.h> and <limits.h>.
67276         (EOVERFLOW): Define if the system does not.
67277         Do not include "minmax.h"; it wasn't used.
67278         (snprintf): Don't assume size_t promotes to an unsigned type.
67279         Fix bug when generated string was too long for the buffer: the
67280         buffer's contents are supposed to be the initial prefix of the
67281         output.  Don't assume vasnprintf returns EOVERFLOW if the size
67282         exceeds INT_MAX; do the check ourselves.
67283
67284         Import the following changes from libc:
67285
67286         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
67287
67288         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
67289         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
67290         set wc to the byte which couldn't be converted.
67291         (re_string_reconstruct): Don't clear valid_raw_len before calling
67292         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
67293         tip_context using re_string_context_at.
67294
67295         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
67296
67297         * lib/posix/regex.h: g++ still cannot handled [restrict].
67298
67299         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
67300
67301         * lib/posix/regex.h: Remove special handling for VMS.
67302
67303 2006-08-10  Jim Meyering  <jim@meyering.net>
67304
67305         * modules/same-inode: New module.
67306         * modules/dev-ino: New module.
67307         * modules/cycle-check: Depend on these modules, rather than simply
67308         including their .h files.
67309         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
67310         required via m4/cycle-check.m4.
67311         * modules/same: Depend on new same-inode module, rather than
67312         including same-inode.h.
67313         * modules/chdir-safer: New file.
67314
67315         * modules/chown (Depends-on): Add stat-macros.
67316
67317 2006-08-10  Jim Meyering  <jim@meyering.net>
67318
67319         * m4/cycle-check.m4: New file.
67320         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
67321         * m4/dev-ino.m4, m4/same-inode.m4: New files.
67322
67323 2006-08-10  Eric Blake  <ebb9@byu.net>
67324
67325         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
67326         in from original proposal.
67327
67328 2006-08-10  Eric Blake  <ebb9@byu.net>
67329         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67330
67331         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
67332         namespace.
67333
67334 2006-08-10  Bruno Haible  <bruno@clisp.org>
67335
67336         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
67337         as well.
67338
67339 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67340
67341         Sync from coreutils.
67342
67343         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
67344
67345         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
67346         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
67347
67348 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67349
67350         * modules/restrict: Remove; no longer needed now that we assume
67351         Autoconf 2.59 or later.
67352         * MODULES.html.sh: Remove 'restrict'.
67353         * modules/argp (Depends-on): Remove 'restrict'.
67354         * modules/base64 (Depends-on): Likewise.
67355         * modules/gc (Depends-on): Likewise.
67356         * modules/getaddrinfo (Depends-on): Likewise.
67357         * modules/glob (Depends-on): Likewise.
67358         * modules/inet_ntop (Depends-on): Likewise.
67359         * modules/inet_pton (Depends-on): Likewise.
67360         * modules/memxor (Depends-on): Likewise.
67361         * modules/regex (Depends-on): Likewise.
67362         * modules/strtok_r (Depends-on): Likewise.
67363         * modules/time_r (Depends-on): Likewise.
67364
67365 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67366
67367         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
67368         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
67369         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67370         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
67371         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
67372         * m4/memxor.m4 (gl_MEMXOR): Likewise.
67373         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
67374         gl_C_RESTRICT replaced by AC_C_RESTRICT.
67375
67376         Merge from coreutils.
67377         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
67378         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
67379         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67380         * m4/time_r.m4 (gl_TIME_R): Likewise.
67381
67382 2006-08-09  Karl Berry  <karl@gnu.org>
67383
67384         * config/srclist.txt: no more gettext-tools, per Bruno.
67385
67386 2006-08-08  Eric Blake  <ebb9@byu.net>
67387
67388         * modules/verror: New module.
67389         * MODULES.html.sh: Document it.
67390
67391 2006-08-08  Eric Blake  <ebb9@byu.net>
67392
67393         * lib/verror.h, lib/verror.c: New files.
67394
67395 2006-08-08  Eric Blake  <ebb9@byu.net>
67396
67397         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
67398         verror_at_line output complies with GNU Coding Standards even when
67399         file is NULL.
67400
67401 2006-08-07  Bruno Haible  <bruno@clisp.org>
67402
67403         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
67404         versions of AIX.
67405         Reported by Ralf Wildenhues.
67406
67407 2006-08-07  Bruno Haible  <bruno@clisp.org>
67408
67409         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
67410         in an AC_DEFUN. Needed so that the autoconf snippets can use
67411         AC_REQUIRE.
67412
67413 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67414
67415         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67416         Initialize pkgdata_DATA.
67417         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
67418         overriding it.
67419
67420 2006-08-06  Eric Blake  <ebb9@byu.net>
67421
67422         * lib/error.h: Fold in some upstream changes from glibc.
67423         * lib/error.c: Likewise.
67424
67425 2006-08-04  Bruno Haible  <bruno@clisp.org>
67426
67427         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67428         Make the mostlyclean-local rule depend on mostlyclean-generic.
67429         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
67430
67431 2006-07-31  Bruno Haible  <bruno@clisp.org>
67432
67433         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
67434         <stdlib.h>, <string.h>.
67435
67436 2006-07-30  Bruno Haible  <bruno@clisp.org>
67437
67438         * modules/readlink (License): Change to LGPL.
67439
67440 2006-07-30  Bruno Haible  <bruno@clisp.org>
67441
67442         * modules/javaversion (Makefile.am): Distribute javaversion.java and
67443         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
67444         set PKGDATADIR to point to it.
67445
67446 2006-07-30  Bruno Haible  <bruno@clisp.org>
67447
67448         * modules/csharpexec (configure.ac): Comment out macro invocation.
67449         * modules/javaexec (configure.ac): Likewise.
67450         * modules/javacomp-script (configure.ac): Likewise.
67451
67452         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
67453
67454 2006-07-30  Bruno Haible  <bruno@clisp.org>
67455
67456         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
67457         linked-list.
67458
67459 2006-07-30  Bruno Haible  <bruno@clisp.org>
67460
67461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
67462
67463 2006-07-30  Bruno Haible  <bruno@clisp.org>
67464
67465         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67466         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
67467         get removed.
67468
67469 2006-07-29  Bruno Haible  <bruno@clisp.org>
67470
67471         Make it possible for gnulib-tool to work with locally modified or
67472         augmented gnulib repositories.
67473         * gnulib-tool (func_usage): Document --local-dir option.
67474         (local_gnulib_dir): New variable.
67475         Handle --local-dir option.
67476         (func_lookup_file): New function.
67477         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
67478         (func_get_description, func_get_filelist, func_get_description,
67479         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
67480         func_get_automake_snippet, func_get_include_directive,
67481         func_get_license, func_get_maintainer): Use func_lookup_file.
67482         (func_import, func_create_testdir): Use func_lookup_file.
67483
67484 2006-07-29  Bruno Haible  <bruno@clisp.org>
67485
67486         * modules/setenv (Depends-on): Add unistd.
67487
67488 2006-07-29  Bruno Haible  <bruno@clisp.org>
67489
67490         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
67491
67492 2006-07-29  Bruno Haible  <bruno@clisp.org>
67493
67494         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
67495
67496 2006-07-29  Bruno Haible  <bruno@clisp.org>
67497
67498         * gnulib-tool (import, update): If there is no Makefile.am, look at
67499         aclocal.m4, instead of bailing out.
67500
67501 2006-07-29  Bruno Haible  <bruno@clisp.org>
67502
67503         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
67504         Categorize the options by when they are useful.
67505
67506 2006-07-29  Bruno Haible  <bruno@clisp.org>
67507
67508         * gnulib-tool (func_usage): Document option --no-libtool.
67509         Handle option --no-libtool.
67510         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
67511         for changed semantics of $libtool variable.
67512         (func_import): Likewise. If libtool is not used, show this through
67513         an option --no-libtool.
67514         (func_create_testdir): Update.
67515
67516 2006-07-29  Bruno Haible  <bruno@clisp.org>
67517
67518         * gnulib-tool (func_import): Extend error message about missing
67519         --doc-base.
67520
67521 2006-07-29  Bruno Haible  <bruno@clisp.org>
67522
67523         * gnulib-tool (func_import): Don't create the $docbase directory if
67524         there is no file to store there.
67525
67526 2006-07-29  Bruno Haible  <bruno@clisp.org>
67527
67528         * gnulib-tool (autoconf_minversion): If a --dir option is given and
67529         relevant, look for configure.ac there, not in the current directory.
67530         Also use a simple search for AC_PREREQ, not "autoconf --trace".
67531
67532 2006-07-29  Bruno Haible  <bruno@clisp.org>
67533
67534         * gnulib-tool (SORT): New variable.
67535         (func_usage): Undocument --assume-autoconf option.
67536         Remove --assume-autoconf option handling.
67537         (autoconf_minversion): Determine from the contents of configure.ac.
67538         (func_import): Remove autoconf_minversion handling.
67539         Suggested by Eric Blake.
67540
67541 2006-07-29  Bruno Haible  <bruno@clisp.org>
67542
67543         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
67544
67545 2006-07-29  Bruno Haible  <bruno@clisp.org>
67546
67547         * config/srclist.txt (*setenv.[ch]): Remove rules.
67548
67549 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67550
67551         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
67552
67553 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67554
67555         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
67556         arpa/inet.h.
67557
67558 2006-07-28  Simon Josefsson  <jas@extundo.com>
67559
67560         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
67561         * modules/inet_pton (Depends-on): Likewise.
67562
67563 2006-07-28  Simon Josefsson  <jas@extundo.com>
67564
67565         * m4/netinet_in_h.m4: New file.
67566
67567 2006-07-28  Simon Josefsson  <jas@extundo.com>
67568
67569         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
67570         #include's.
67571
67572 2006-07-28  Simon Josefsson  <jas@extundo.com>
67573
67574         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
67575         #include's.
67576
67577 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
67578
67579         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
67580         setgid on directories only if they set these bits.
67581         * lib/modechange.h: Remove obsolete comment about masks.
67582
67583 2006-07-28  Eric Blake  <ebb9@byu.net>
67584
67585         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
67586         macro expansion.
67587
67588 2006-07-28  Bruno Haible  <bruno@clisp.org>
67589
67590         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
67591
67592 2006-07-28  Bruno Haible  <bruno@clisp.org>
67593
67594         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
67595
67596 2006-07-28  Bruno Haible  <bruno@clisp.org>
67597
67598         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
67599         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
67600         Define fallbacks.
67601         Avoids link error on FreeBSD 4.x.
67602         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67603
67604         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
67605         encoding.
67606         * lib/mbswidth.c (iswcntrl): Likewise.
67607
67608 2006-07-27  Bruno Haible  <bruno@clisp.org>
67609
67610         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
67611         test.
67612
67613 2006-07-27  Bruno Haible  <bruno@clisp.org>
67614
67615         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
67616         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
67617         defined.
67618
67619 2006-07-26  Eric Blake  <ebb9@byu.net>
67620
67621         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
67622
67623 2006-07-26  Eric Blake  <ebb9@byu.net>
67624
67625         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
67626         like mingw that lack mkstemp.
67627         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
67628         avoid compilation warning on mingw.
67629
67630 2006-07-26  Bruno Haible  <bruno@clisp.org>
67631
67632         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
67633         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
67634         INT_FAST*_MIN, INTPTR_MIN.
67635
67636 2006-07-25  Bruno Haible  <bruno@clisp.org>
67637
67638         * modules/version-etc (Depends-on): Add stdarg.
67639
67640 2006-07-25  Bruno Haible  <bruno@clisp.org>
67641
67642         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
67643         complex commands.
67644
67645 2006-07-25  Bruno Haible  <bruno@clisp.org>
67646
67647         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
67648         defined in <stdarg.h> or config.h.
67649
67650 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67651
67652         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
67653         (gl_STDIO_SAFER): Remove.
67654
67655 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         * MODULES.html.sh (File stream based Input/Output):
67658         Add fopen-safer, tmpfile-safer; remove stdio-safer.
67659         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
67660         * modules/fopen-safer, modules/tmpfile-safer: New files.
67661         * modules/stdio-safer: Remove.
67662
67663 2006-07-24  Bruno Haible  <bruno@clisp.org>
67664
67665         * modules/tmpdir: New file.
67666         * MODULES.html.sh (File system functions): Add it.
67667
67668 2006-07-24  Bruno Haible  <bruno@clisp.org>
67669
67670         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
67671         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
67672
67673 2006-07-24  Bruno Haible  <bruno@clisp.org>
67674
67675         * modules/clean-temp: New file.
67676
67677 2006-07-24  Bruno Haible  <bruno@clisp.org>
67678
67679         * m4/tmpdir.m4: New file, from GNU gettext.
67680
67681 2006-07-24  Bruno Haible  <bruno@clisp.org>
67682
67683         * lib/tmpdir.h: New file, from GNU gettext.
67684         * lib/tmpdir.c: New file, from GNU gettext.
67685
67686 2006-07-24  Bruno Haible  <bruno@clisp.org>
67687
67688         * lib/clean-temp.h: New file, from GNU gettext.
67689         * lib/clean-temp.c: New file, from GNU gettext.
67690
67691 2006-07-23  Eric Blake  <ebb9@byu.net>
67692
67693         * modules/stdio-safer (Files): Add tmpfile-safer.c.
67694         (Depends-on): Add binary-io.
67695
67696 2006-07-23  Eric Blake  <ebb9@byu.net>
67697
67698         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
67699
67700 2006-07-23  Eric Blake  <ebb9@byu.net>
67701
67702         * lib/tmpfile-safer.c: New file.
67703         * lib/stdio-safer.h (fopen_safer): Add prototype.
67704         * lib/stdio--.h (tmpfile): Make safer.
67705
67706 2006-07-23  Bruno Haible  <bruno@clisp.org>
67707
67708         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
67709         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
67710         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
67711         gl_linked_remove_at): Use it.
67712
67713 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67714         and Simon Josefsson <jas@extundo.com>
67715
67716         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
67717
67718         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
67719
67720 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67721
67722         * modules/close-stream: New file.
67723         * modules/closeout (Description): Make it clear that it exits
67724         with a diagnostic on error.
67725         (Depends-on): Add close-stream.  Remove fpending, stdbool.
67726         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
67727
67728 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67729
67730         * m4/close-stream.m4: New file.
67731
67732 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67733
67734         * lib/close-stream.c, lib/close-stream.h: New files.
67735
67736 2006-07-22  Bruno Haible  <bruno@clisp.org>
67737
67738         Merge from GNU gettext 0.15.
67739
67740         2006-05-01  Bruno Haible  <bruno@clisp.org>
67741
67742                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
67743
67744         2006-07-22  Bruno Haible  <bruno@clisp.org>
67745
67746                 * modules/javaversion: New file.
67747                 * MODULES.html.sh (Java): Add javaversion.
67748
67749         2006-03-12  Bruno Haible  <bruno@clisp.org>
67750
67751                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
67752
67753         2005-12-04  Bruno Haible  <bruno@clisp.org>
67754
67755                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
67756                 (untested).
67757
67758         2006-06-21  Bruno Haible  <bruno@clisp.org>
67759
67760                 Avoid warnings from recent versions of mcs.
67761                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
67762                 -o, -L, -r any more. Use options documented since mcs-1.0
67763                 instead. Similarly for -g.
67764
67765         2005-12-04  Bruno Haible  <bruno@clisp.org>
67766
67767                 * build-aux/csharpcomp.sh.in: Suffix for resources is
67768                 .resources, not .resource.
67769
67770         2005-07-09  Bruno Haible  <bruno@clisp.org>
67771
67772                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
67773                 add a .dll suffix.
67774                 Reported by Mark Junker <mjscod@gmx.de>.
67775
67776         2006-07-22  Bruno Haible  <bruno@clisp.org>
67777
67778                 * modules/gettext: Upgrade to gettext-0.15.
67779                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
67780                 m4/visibility.m4.
67781                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
67782
67783 2006-07-22  Bruno Haible  <bruno@clisp.org>
67784
67785         Merge from GNU gettext 0.15.
67786
67787         2006-03-25  Bruno Haible  <bruno@clisp.org>
67788
67789                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
67790
67791         2006-07-21  Bruno Haible  <bruno@clisp.org>
67792
67793                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
67794                 "1.1".
67795
67796         2006-05-09  Bruno Haible  <bruno@clisp.org>
67797
67798                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67799                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67800                 for the conftestver execution.
67801
67802         2006-05-01  Bruno Haible  <bruno@clisp.org>
67803
67804                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67805                 optional target-version argument. Verify that the compiler
67806                 groks source of the specified source-version, or add -source
67807                 option as necessary. Verify that the compiler produces
67808                 bytecode in the specified target-version, or add -target and
67809                 -source options as necessary. Make the result of the test
67810                 available as variable CONF_JAVAC. Also log error output in
67811                 config.log.
67812
67813         2006-03-11  Bruno Haible  <bruno@clisp.org>
67814
67815                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67816
67817         2006-05-09  Bruno Haible  <bruno@clisp.org>
67818
67819                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67820                 CLASSPATH_SEPARATOR to a semicolon.
67821
67822         2006-03-12  Bruno Haible  <bruno@clisp.org>
67823
67824                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
67825                 available as variable CONF_JAVA, for subsequent autoconf
67826                 tests. Also log error output in config.log.
67827
67828         2006-07-19  Bruno Haible  <bruno@clisp.org>
67829
67830                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
67831                 that getline works on glibc2 systems. Needed to avoid trouble
67832                 in relocatable.c.
67833                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
67834
67835         2005-12-04  Bruno Haible  <bruno@clisp.org>
67836
67837                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
67838                 launcher (untested).
67839
67840         2005-12-04  Bruno Haible  <bruno@clisp.org>
67841
67842                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
67843
67844         2006-07-22  Bruno Haible  <bruno@clisp.org>
67845
67846                 * gettext.m4: Update from GNU gettext-0.15.
67847                 * nls.m4: Likewise.
67848                 * po.m4: Likewise.
67849                 * inttypes-pri.m4: Likewise.
67850                 * inttypes-h.m4: Renamed from inttypes.m4.
67851                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
67852
67853 2006-07-22  Bruno Haible  <bruno@clisp.org>
67854
67855         Merge from GNU gettext 0.15.
67856
67857         2005-07-05  Bruno Haible  <bruno@clisp.org>
67858
67859                 * printf-args.c (printf_fetchargs): Work around broken
67860                 definition of wint_t on mingw.
67861
67862         2005-02-12  Bruno Haible  <bruno@clisp.org>
67863
67864                 * xallocsa.h: Add extern "C" for C++.
67865
67866         2006-05-17  Bruno Haible  <bruno@clisp.org>
67867
67868                 Cygwin portability.
67869                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
67870
67871         2006-04-30  Bruno Haible  <bruno@clisp.org>
67872
67873                 * progreloc.c: Include <mach-o/dyld.h> if available.
67874                 (find_executable): Use _NSGetExecutablePath when possible.
67875
67876         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67877
67878                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
67879                 function.
67880
67881         2005-12-29  Bruno Haible  <bruno@clisp.org>
67882
67883                 * progreloc.c (set_program_name_and_installdir): Fix
67884                 compilation error.
67885
67886         2005-12-04  Bruno Haible  <bruno@clisp.org>
67887
67888                 Cygwin portability.
67889                 * progreloc.c: Include <windows.h> also on Cygwin.
67890                 (find_executable): Add support for Cygwin.
67891                 (set_program_name_and_installdir): Handle also platforms with
67892                 nonempty EXEEXT.
67893
67894         2006-07-11  Bruno Haible  <bruno@clisp.org>
67895
67896                 * javacomp.c: Fix a comment.
67897                 Reported by Jim Meyering.
67898
67899         2006-04-30  Bruno Haible  <bruno@clisp.org>
67900
67901                 * javacomp.h (compile_java_class): Add source_version,
67902                 target_version arguments.
67903                 * javacomp.c: Rewritten to choose only a compiler that
67904                 respects the specified source_version and target_version.
67905
67906         2006-06-27  Bruno Haible  <bruno@clisp.org>
67907
67908                 Assume correct S_ISDIR macro.
67909                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67910
67911         2006-07-22  Bruno Haible  <bruno@clisp.org>
67912
67913                 * javaversion.h: New file, from GNU gettext.
67914                 * javaversion.c: New file, from GNU gettext.
67915                 * javaversion.java: New file, from GNU gettext.
67916                 * javaversion.class: New file, from GNU gettext.
67917
67918         2006-05-17  Bruno Haible  <bruno@clisp.org>
67919
67920                 Cygwin portability.
67921                 * javaexec.c (execute_java_class): Test for jview program
67922                 also on Cygwin.
67923
67924         2006-04-09  Bruno Haible  <bruno@clisp.org>
67925
67926                 * fatal-signal.c: Don't include string.h.
67927                 (at_fatal_signal): Use a copying loop instead of memcpy.
67928
67929         2005-12-04  Bruno Haible  <bruno@clisp.org>
67930
67931                 * csharpexec.c: Add support for 'clix' launcher (untested).
67932                 (execute_csharp_using_sscli): New function.
67933                 (execute_csharp_program): Call it.
67934
67935         2006-06-21  Bruno Haible  <bruno@clisp.org>
67936
67937                 Avoid warnings from recent versions of mcs.
67938                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67939                 -o, -L, -r any more. Use options documented since mcs-1.0
67940                 instead. Similarly for -g.
67941
67942         2005-07-09  Bruno Haible  <bruno@clisp.org>
67943
67944                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67945                 add a .dll suffix.
67946                 Reported by Mark Junker <mjscod@gmx.de>.
67947
67948         2006-06-17  Bruno Haible  <bruno@clisp.org>
67949
67950                 * config.charset: Update for NetBSD 3.0.
67951
67952         2006-05-17  Bruno Haible  <bruno@clisp.org>
67953
67954                 Cygwin portability.
67955                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67956
67957         2006-05-16  Bruno Haible  <bruno@clisp.org>
67958
67959                 * localcharset.c [CYGWIN]: Include <windows.h>.
67960                 (get_charset_aliases): For Cygwin, return the same CPxxx
67961                 aliases list as under WIN32.
67962                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67963                 the environment variables. Fall back to GetACP().
67964
67965         2006-04-05  Bruno Haible  <bruno@clisp.org>
67966
67967                 * config.charset: Update Juan Manuel Guerrero's address.
67968
67969         2005-02-12  Bruno Haible  <bruno@clisp.org>
67970
67971                 * allocsa.h: Add extern "C" for C++.
67972
67973         2005-02-10  Bruno Haible  <bruno@clisp.org>
67974
67975                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67976                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67977
67978         2006-07-22  Bruno Haible  <bruno@clisp.org>
67979
67980                 * gettext.h: Update to GNU gettext-0.15.
67981
67982 2006-07-22  Bruno Haible  <bruno@clisp.org>
67983
67984         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67985         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67986         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67987
67988 2006-07-21  Eric Blake  <ebb9@byu.net>
67989
67990         * modules/stdlib-safer: New file.
67991         * MODULES.html.sh (File stream based Input/Output): Add
67992         stdlib-safer.
67993
67994 2006-07-21  Eric Blake  <ebb9@byu.net>
67995
67996         * lib/stdlib-safer.h: New file from coreutils, required by
67997         stdlib--.h.
67998
67999 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
68000
68001         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
68002
68003 2006-07-20  Bruno Haible  <bruno@clisp.org>
68004
68005         * gnulib-tool: Recognize new option --assume-autoconf.
68006         (autoconf_minversion): New variable.
68007         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
68008
68009 2006-07-20  Bruno Haible  <bruno@clisp.org>
68010
68011         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
68012
68013 2006-07-19  Derek R. Price  <derek@ximbiot.com>
68014
68015         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
68016         Reindent and repaginate.
68017
68018 2006-07-19  Derek Price  <derek@ximbiot.com>
68019
68020         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
68021         Correct grammar.
68022
68023 2006-07-17  Bruno Haible  <bruno@clisp.org>
68024
68025         * modules/list: New file.
68026         * modules/array-list: New file.
68027         * modules/carray-list, modules/carray-list-tests: New files.
68028         * modules/linked-list, modules/linked-list-tests: New files.
68029         * modules/avltree-list, modules/avltree-list-tests: New files.
68030         * modules/rbtree-list, modules/rbtree-list-tests: New files.
68031         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
68032         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
68033         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
68034         * modules/oset: New file.
68035         * modules/array-oset: New file.
68036         * modules/avltree-oset, modules/avltree-oset-tests: New files.
68037         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
68038         * tests/test-carray_list.c: New file.
68039         * tests/test-linked_list.c: New file.
68040         * tests/test-avltree_list.c: New file.
68041         * tests/test-rbtree_list.c: New file.
68042         * tests/test-linkedhash_list.c: New file.
68043         * tests/test-avltreehash_list.c: New file.
68044         * tests/test-rbtreehash_list.c: New file.
68045         * tests/test-avltree_oset.c: New file.
68046         * tests/test-rbtree_oset.c: New file.
68047         * MODULES.html.sh (Container data structures): New section.
68048
68049 2006-07-17  Bruno Haible  <bruno@clisp.org>
68050
68051         * m4/gl_list.m4: New file.
68052
68053 2006-07-17  Bruno Haible  <bruno@clisp.org>
68054
68055         * lib/gl_list.h: New file.
68056         * lib/gl_list.c: New file.
68057         * lib/gl_array_list.h: New file.
68058         * lib/gl_array_list.c: New file.
68059         * lib/gl_carray_list.h: New file.
68060         * lib/gl_carray_list.c: New file.
68061         * lib/gl_linked_list.h: New file.
68062         * lib/gl_linked_list.c: New file.
68063         * lib/gl_anylinked_list1.h: New file.
68064         * lib/gl_anylinked_list2.h: New file.
68065         * lib/gl_avltree_list.h: New file.
68066         * lib/gl_avltree_list.c: New file.
68067         * lib/gl_anyavltree_list1.h: New file.
68068         * lib/gl_anyavltree_list2.h: New file.
68069         * lib/gl_rbtree_list.h: New file.
68070         * lib/gl_rbtree_list.c: New file.
68071         * lib/gl_anyrbtree_list1.h: New file.
68072         * lib/gl_anyrbtree_list2.h: New file.
68073         * lib/gl_anytree_list1.h: New file.
68074         * lib/gl_anytree_list2.h: New file.
68075         * lib/gl_linkedhash_list.h: New file.
68076         * lib/gl_linkedhash_list.c: New file.
68077         * lib/gl_anyhash_list1.h: New file.
68078         * lib/gl_anyhash_list2.h: New file.
68079         * lib/gl_avltreehash_list.h: New file.
68080         * lib/gl_avltreehash_list.c: New file.
68081         * lib/gl_rbtreehash_list.h: New file.
68082         * lib/gl_rbtreehash_list.c: New file.
68083         * lib/gl_anytreehash_list1.h: New file.
68084         * lib/gl_anytreehash_list2.h: New file.
68085
68086         * lib/gl_oset.h: New file.
68087         * lib/gl_oset.c: New file.
68088         * lib/gl_array_oset.h: New file.
68089         * lib/gl_array_oset.c: New file.
68090         * lib/gl_avltree_oset.h: New file.
68091         * lib/gl_avltree_oset.c: New file.
68092         * lib/gl_rbtree_oset.h: New file.
68093         * lib/gl_rbtree_oset.c: New file.
68094         * lib/gl_anytree_oset.h: New file.
68095
68096 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68097
68098         * m4/mkancesdirs.m4: New file.
68099         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
68100         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
68101         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
68102         it.
68103
68104 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68105
68106         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
68107         * lib/mkancesdirs.h: New files.
68108         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
68109         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
68110         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
68111         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
68112         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
68113         callers changed.  Revamp internals significantly, by not
68114         attempting to create directories that are temporarily more
68115         permissive than the final results.  Do not attempt to use
68116         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
68117         This removes some race conditions, fixes some bugs, and simplifies
68118         things.  Use new dirchownmod function to do owner and mode changes.
68119         * lib/mkdir-p.h: Likewise.
68120         * lib/modechange.c (octal_to_mode): New function.
68121         (struct mode_change): New member mentioned.
68122         (make_node_op_equals): New arg mentioned.  All callers changed.
68123         (mode_compile): Keep track of which mode bits the user has explicitly
68124         mentioned.
68125         (mode_adjust): New arg DIR, so that we implement the X op correctly.
68126         New arg PMODE_BITS, to keep track of which mode bits the user
68127         mentioned; it treats S_ISUID and S_ISGID speciall.
68128         All callers changed.
68129         * lib/modechange.h: Likewise.
68130
68131 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68132
68133         * MODULES.html.sh: Add mkancestors.
68134         * modules/mkancesdirs: New module.
68135         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
68136         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
68137         The chdir-safer and afs files are now orphans; I'll remove them
68138         unless someone speaks up.
68139         Add lib/dirchownmod.c, lib/dirchownmod.h.
68140         (Depends-on): Remove alloca, chown, save-cwd, dirname.
68141         Add lchown, mkancesdirs.
68142         (Maintainer): Add self.
68143
68144 2006-07-15  Karl Berry  <karl@gnu.org>
68145
68146         * gnulib-tool: help message wording/arrangement.
68147
68148 2006-07-14  Simon Josefsson  <jas@extundo.com>
68149
68150         * doc/gnulib.texi (Libtool and Windows): New section.
68151
68152 2006-07-12  Simon Josefsson  <jas@extundo.com>
68153
68154         * modules/gendocs (License): Fix license, approved by Karl.
68155
68156 2006-07-12  Eric Blake  <ebb9@byu.net>
68157
68158         * MODULES.html.sh: Add gendocs.
68159
68160 2006-07-11  Eric Blake  <ebb9@byu.net>
68161
68162         * modules/fdl: New module, to install doc/fdl.texi.
68163         * MODULES.html.sh: Add new section for documentation modules.
68164         * gnulib-tool: Avoid space-tab.
68165         (--doc-base): New option, to manage files from doc.
68166
68167 2006-07-11  Eric Blake  <ebb9@byu.net>
68168
68169         * m4/absolute-header.m4: Fix comments to match recent change.
68170
68171 2006-07-11  Eric Blake  <ebb9@byu.net>
68172
68173         * gnulib-tool: List --doc-base before --tests-base.
68174
68175 2006-07-11  Derek R. Price  <derek@ximbiot.com>
68176
68177         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
68178
68179 2006-07-11  Bruno Haible  <bruno@clisp.org>
68180
68181         * README: Mention where to put documentation.
68182
68183 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68184
68185         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
68186
68187 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
68188
68189         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
68190         to stdint.m4.
68191
68192 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
68193
68194         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
68195         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
68196         "no/such/file/stdint.h" when there is no such file, so that
68197         the resulting C code can be parsed by dodgy compilers.
68198         Problems reported by Bob Proulx.
68199
68200 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68201
68202         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
68203         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68204         macros into the GNU _D_EXACT_NAMLEN.
68205         * lib/savedir.c:  Likewise.
68206         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
68207
68208 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68209         and Paul Eggert  <eggert@cs.ucla.edu>
68210
68211         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
68212         * m4/savedir.m4:
68213         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68214         macros into the GNU _D_EXACT_NAMLEN.
68215
68216 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68217
68218         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
68219         around the absolute name, to work around a problem with the HP-UX
68220         11.23 native C compiler, reported by Bob Proulx.
68221
68222 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68223
68224         * doc/maintain.texi, make-stds.texi: Sync from
68225         <http://savannah.gnu.org/projects/gnustandards>.
68226
68227 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68228
68229         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
68230
68231 2006-07-09  Jim Meyering  <jim@meyering.net>
68232
68233         * m4/glob.m4: Remove a doubled word in a comment.
68234
68235 2006-07-09  Jim Meyering  <jim@meyering.net>
68236
68237         * lib/argp-pv.c: Remove a doubled word in a comment.
68238         * lib/check-version.c (check_version): Likewise.
68239         * lib/javacomp.c (compile_java_class): Likewise.
68240
68241 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68242
68243         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
68244         for the benefit of people using Autoconf 2.60.  If you want to
68245         support older Autoconf versions you can copy m4/onceonly_2_57.m4
68246         (or m4/onceonly.m4, if pre-2.57) manually.
68247
68248 2006-07-08  Jim Meyering  <jim@meyering.net>
68249
68250         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
68251         comment.
68252         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
68253         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
68254         comment.
68255
68256 2006-07-08  Jim Meyering  <jim@meyering.net>
68257
68258         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
68259
68260 2006-07-07  Simon Josefsson  <jas@extundo.com>
68261
68262         * tests/test-crc.c: Change expected crc value, the test vector
68263         were probably computed using the old broken crc.c?
68264
68265 2006-07-06  Simon Josefsson  <jas@extundo.com>
68266
68267         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
68268         now the canonical place for the M4 file).
68269
68270         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
68271         from the sys_socket dependency now.
68272
68273         * modules/inet_pton (Files): Ditto.
68274
68275         * modules/inet_ntop (Files): Ditto.
68276
68277 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68278
68279         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
68280         not gl_PREREQ_GETUSERSHELL.
68281
68282 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68283
68284         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
68285         with only one argument, for Autoconf 2.60.
68286         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
68287         expand to nothing, so add a shell command to avoid syntax error.
68288         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68289
68290 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68291
68292         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
68293
68294 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68295
68296         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
68297         no longer needed.  Check for isblank decl.
68298         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
68299         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
68300         of existence.
68301
68302 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68303
68304         * lib/getloadavg.c: Use __VMS, not VMS.
68305         * lib/getopt.c: Likewise.
68306         * lib/getpagesize.h: Likewise.
68307         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
68308         and probably does not work.
68309
68310 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68311
68312         * lib/.cppi-disable: Add wcwidth.
68313         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
68314         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
68315         (ISGRAPH): Remove.  All uses changed to isgraph.
68316         (FOLD) [!defined _LIBC]: Remove special case.
68317         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
68318         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
68319         HAVE_ISBLANK.
68320         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
68321         case.
68322
68323 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68324
68325         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
68326         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
68327         brackets.  Other minor changes to suppress some compiler
68328         warnings.
68329
68330 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68331         and Paul Eggert  <eggert@cs.ucla.edu>
68332
68333         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
68334         of invoking obsolescent AC_HEADER_DIRENT macro.
68335         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
68336         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
68337         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
68338         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
68339         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
68340         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68341         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
68342         * m4/readdir.m4: Remove; no longer needed.
68343
68344 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68345         and Paul Eggert  <eggert@cs.ucla.edu>
68346
68347         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
68348         Don't worry about this obsolete case any more.
68349         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
68350         directories.
68351         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
68352         worry about this obsolete case any more.
68353         * lib/fts.c: Likewise.
68354         * lib/getcwd.c: Likewise.
68355         * lib/glob.h: Likewise.
68356         * lib/savedir.c: Likewise.
68357
68358 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
68361         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
68362         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
68363         needed.
68364         All uses removed.
68365         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68366         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68367         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
68368         needed.
68369         * m4/getdate.m4 (gl_GETDATE): Likewise.
68370         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68371         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68372         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68373         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68374         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68375         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68376         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
68377         needed.
68378
68379 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68380
68381         * lib/memcasecmp.c: Include <limits.h>.
68382         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
68383         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
68384         Don't assume isdigit succeeds only on '0' through '9'.
68385
68386 2006-07-05  Eric Blake  <ebb9@byu.net>
68387
68388         * modules/getaddrinfo (Depends-on): Add snprintf.
68389
68390 2006-07-05  Eric Blake  <ebb9@byu.net>
68391
68392         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
68393         to avoid 'header present but could not be compiled' on cygwin.
68394
68395 2006-07-05  Eric Blake  <ebb9@byu.net>
68396
68397         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
68398         missing from netdb.h.
68399         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
68400
68401 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68402
68403         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
68404         no longer needed.
68405         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
68406         * m4/getdate.m4 (gl_GETDATE): Likewise.
68407         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68408         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68409         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68410         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68411         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68412
68413 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68414
68415         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
68416         All uses of is_space replaced by isspace.
68417         * lib/exit.h: Don't talk about STDC_HEADERS.
68418         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
68419         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
68420         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
68421         replaced by isprint etc.
68422         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
68423         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68424         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
68425         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
68426         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
68427         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68428
68429 2006-07-05  Bruno Haible  <bruno@clisp.org>
68430
68431         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
68432         the function exists, before testing against AIX.
68433         Reported by Martin Lambers <marlam@marlam.de>.
68434
68435 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68436
68437         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
68438         From Mark D. Baushke.
68439
68440 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68441
68442         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
68443         to the absolute name, not just one, to bypass Sun C 5.8's
68444         "warning: #include of /usr/include/... may be non-portable".
68445
68446 2006-07-04  Eric Blake  <ebb9@byu.net>
68447
68448         * modules/dirname-tests: New test module.
68449         * tests/test-dirname.c: New file, replacing dirname.c
68450         TEST_DIRNAME section that was recently deleted.
68451
68452 2006-07-04  Bruno Haible  <bruno@clisp.org>
68453
68454         Assume ANSI C header files and <ctype.h> functions.
68455         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
68456         (mbsnwidth): Use isprint, iscntrl instead.
68457
68458 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68459
68460         Merge from coreutils.
68461         * MODULES.html.sh: Add xstrtold.
68462         * modules/xstrtold: New file.
68463         * modules/cycle-check (Files): Add lib/same-inode.h.
68464         * modules/dirname (Files): Add m4/double-slash-root.m4.
68465         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
68466         * modules/mkdir-p (Files): Add lib/same-inode.h.
68467         * modules/same (Files): Add lib/same-inode.h.
68468
68469 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68470
68471         * m4/absolute-header.m4: Renamed from full-header-path.m4.
68472         This is to keep the terminology clean; POSIX talks about
68473         "absolute pathnames", not "full pathnames", but the GNU
68474         Coding Standards say to use "path" for something else;
68475         so use "absolute" to keep both sides happy.
68476         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
68477         Set gl_absolute_header, not gl_full_header_path.
68478         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
68479         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
68480         All uses changed.
68481
68482         Merge from coreutils.
68483
68484         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68485
68486         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
68487         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
68488         want to require the building of c-strtod.o.
68489         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
68490         needs -lm directly.
68491         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
68492
68493         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68494
68495         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
68496         --as-needed option if available.  Problem reported by Albert Chin in
68497         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
68498         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
68499         cc merely issues a bunch of annoying warnings for --as-needed
68500         (this problem was reported by Bob Proulx).  Also, try linking with
68501         -lm to detect a bug in binutils 2.16 (this problem was reported
68502         by Ralf Wildenhues).
68503
68504         2006-06-18  Jim Meyering  <jim@meyering.net>
68505
68506         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
68507         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
68508         macro.
68509         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
68510         also check for glibc-2.4's abort-inducing bug.
68511
68512         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
68513         Low-probability clean-up should be to use rmdir to get rid of
68514         the just-created directory, not unlink.
68515
68516         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
68517         configure fail, and request a bug report to inform us about it.
68518         Add a comment that, barring reports to the contrary, in 2007 we'll
68519         assume ftruncate is universally available.
68520
68521         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68522
68523         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
68524
68525         2006-03-12  Jim Meyering  <jim@meyering.net>
68526
68527         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
68528         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
68529         * m4/same.m4 (gl_SAME): Likewise.
68530         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
68531
68532         2006-03-11  Eric Blake  <ebb9@byu.net>
68533
68534         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
68535         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
68536         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
68537         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
68538
68539 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68540
68541         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
68542         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
68543         reported by Mark D. Baushke, one in
68544         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
68545
68546         Merge from coreutils.
68547
68548         * lib/.cppi-disable: Add stdint_.h.
68549         * lib/.cvsignore: Add stdint.h.
68550
68551         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68552
68553         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
68554         both double and long double versions.
68555         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
68556         * lib/xstrtold.c: New file.
68557         * lib/xstrtod.h (xstrtold): New decl.
68558
68559         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68560
68561         * lib/filemode.c (setst): Remove.
68562         (strmode): Rewrite to avoid setst.  This makes the code shorter,
68563         (arguably) clearer, and the generated code is a bit smaller on my
68564         Debian GNU/Linux stable x86 host.
68565
68566         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68567
68568         * lib/filemode.c: Include "filemode.h" first, to test the interface.
68569         Assume that filemode.h includes sys/types.h and sys/stat.h.
68570         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
68571         (ftypelet): Reorder to put common cases first, for efficiency.
68572         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
68573         to do 'M'.
68574         (strmode): Renamed from mode_string, and now stores 12 bytes instead
68575         of 10, for compatibility with FreeBSD.  All callers changed.
68576         (filemodestring): Now stores 12 bytes instead of 10, and sets file
68577         types that can't be deduced solely from st_mode.  First arg is now a
68578         const pointer.
68579         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
68580         (strmode): Renamed from mode_string.
68581         (filemodestring): New decl.
68582         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
68583         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
68584         needed.
68585         (S_ISPORT, S_ISWHT): New macros, if not already defined.
68586
68587         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68588
68589         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
68590         fsusage.h now does that.  Include fsusage.h first, to test interface.
68591         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
68592         at most one method (the old code could have generated decls that
68593         didn't conform to C89, not that this was ever exercised).
68594         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
68595
68596         2006-03-19  Jim Meyering  <jim@meyering.net>
68597
68598         Work even in a chroot where d_ino values for entries in "/"
68599         don't match the stat.st_ino values for the same names.
68600         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
68601         number, iterate through all entries again, using lstat instead.
68602         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
68603         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
68604
68605         * lib/getcwd.c (__getcwd): Clarify a comment.
68606         Use memcpy in place of a call to strcpy.
68607
68608         2006-03-12  Jim Meyering  <jim@meyering.net>
68609
68610         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
68611         matches that of the current directory (which we're about to chdir ".."
68612         out of), then save the dev-ino of the parent, instead.
68613
68614         * lib/same-inode.h (SAME_INODE): New file/macro.
68615         * lib/chdir-safer.c (SAME_INODE): Remove definition.
68616         Include "same-inode.h", instead.
68617         * lib/same.c: Likewise.
68618         * lib/cycle-check.h: Include "same-inode.h".
68619         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
68620         * lib/cycle-check.c (SAME_INODE): Remove definition.
68621         * lib/root-dev-ino.h: Include "same-inode.h".
68622
68623         2006-03-11  Eric Blake  <ebb9@byu.net>
68624
68625         * lib/same.c (same_name): s/base_name/last_component/
68626         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
68627         * lib/filenamecat.c (file_name_concat): Likewise.
68628
68629         2006-03-11  Eric Blake  <ebb9@byu.net>,
68630                     Paul Eggert  <eggert@cs.ucla.edu>
68631
68632         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
68633         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
68634         drive prefix.
68635         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
68636         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
68637         (last_component): New method.
68638         * lib/dirname.c (dir_len): Determine when drive letters need a
68639         subsequent slash.  Preserve // when it is special.
68640         (dir_name): Don't append dot when drive letter is absolute.
68641         [TEST_DIRNAME]: Move into a full-blown gnulib test.
68642         * lib/basename.c (base_name): New semantics - malloc the result.
68643         Preserve // when it is special.  Preserve relative files that look
68644         like drive letters.
68645         (base_len): Preserve // when it is special.
68646         (last_component): New method, similar to old base_name semantics.
68647         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
68648         base_name.  Strip redundant slashes from ///.
68649
68650 2006-07-03  Jim Meyering  <jim@meyering.net>
68651
68652         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
68653         macro is used before the first cycle_check call.
68654
68655 2006-07-03  Eric Blake  <ebb9@byu.net>
68656
68657         * modules/dirname (Depends-on): Add xstrndup.
68658
68659 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68660
68661         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
68662         test cases, so that config.log is a bit easier to follow.
68663
68664 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
68667         both are 64 bits, since this seems to be the tradition, and this
68668         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
68669         we ever run into a host that prefers long long to long in this
68670         case, we'll need another configure-time test.  Problem reported by
68671         Jim Meyering.
68672
68673 2006-07-02  Eric Blake  <ebb9@byu.net>
68674
68675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
68676
68677 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68678
68679         * modules/inttypes (Depends-on): No longer depends on stdint.
68680         * modules/stdint (Description): Say more about assumptions.
68681         Say that the fast types might differ.  Say macros are used.
68682         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
68683         (Makefile.am): Revise list of substituted symbols to match
68684         new stdint.m4.
68685         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
68686         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
68687         * tests/test-stdint.c (verify_same_types)
68688         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
68689         the code conforms to C99/C89.
68690         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
68691         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
68692
68693 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68694
68695         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
68696         but fix a bug, by requiring at least 64 bits.
68697         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
68698         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
68699         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
68700         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68701
68702         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
68703         changes.  Make 2.59 a prerequisite.  Check and substitute for
68704         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
68705         inttypes.h.  Do not use special include files; just use the
68706         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
68707         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
68708         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
68709         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
68710         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
68711         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
68712         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
68713         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
68714         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
68715         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
68716         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
68717         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
68718         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
68719         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
68720         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
68721         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
68722         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
68723         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
68724         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
68725         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
68726         WINT_MAX.  Check for C99 conformance more strictly, by detecting
68727         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
68728         not check for things that C99 does not require, e.g., int8_t.  If
68729         a test isn't needed unless <stdint.h> isn't working, and is
68730         unlikely to be needed for any other reason, then don't do it
68731         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
68732         size_t, since we assume C89 freestanding at least.  Do not check
68733         for sig_atomic_t, wchar_t, or wint_t, since the code now does
68734         the right thing even if the types are not defined.  Instead use:
68735         (gl_STDINT_TYPE_PROPERTIES): New macro.
68736         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
68737         testing whether <sys/types.h> clashes, as Autoconf does this for
68738         us now.  All uses removed.
68739         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
68740         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
68741         (gl_CHECK_TYPE_SAME):
68742         Remove; no longer needed.
68743         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
68744         exists, since we'll return 0 anyway in that case.
68745         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
68746
68747 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68748
68749         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
68750         possible collision with system files.
68751         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
68752         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
68753         WCHAR_MIN and WCHAR_MAX in this case.
68754         (<stddef.h>): Do not include; no longer needed.
68755         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
68756         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
68757         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
68758         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
68759         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
68760         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
68761         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
68762         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
68763         !defined(__c99))]: Include in this case too, since it's harmless
68764         now.
68765         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
68766         dangerous to do so.
68767         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
68768         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
68769         (_STDINT_MIN, _STDINT_MAX): New macros.
68770         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
68771         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
68772         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
68773         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
68774         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
68775         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
68776         macros, not typedefs; this simplifies things quite a bit.
68777         Use long int for all types narrower than int64_t.
68778         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
68779         Define in terms of long long int or int64_t or long int,
68780         not int64_t or int32_t.  This saves some compile-time testing.
68781         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
68782         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
68783         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
68784         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
68785         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
68786         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
68787         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
68788         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
68789         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
68790         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
68791         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68792         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68793         undef any previous version and define our own version, for
68794         simplicity and consistency with the new macros for types.
68795         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68796         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68797         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68798         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68799         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68800         @WINT_T_SUFFIX@ to keep things simple here.
68801         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68802         Simplify by assuming typical 8/16/32/64 host, since we're
68803         already doing that elsewhere anyway.
68804         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68805         and assume long long int is 64 bits if available.  This
68806         speeds up 'configure'.
68807
68808 2006-07-01  Eric Blake  <ebb9@byu.net>
68809
68810         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68811         Reported by Andreas Buening.
68812
68813 2006-07-01  Eric Blake  <ebb9@byu.net>
68814
68815         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68816
68817 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68818
68819         * lib/getaddrinfo.c: fixed typo
68820
68821 2006-06-29  Jim Meyering  <jim@meyering.net>
68822
68823         * modules/strftime (Maintainer): Add my name, since with the
68824         FPRINTFTIME changes strftime.c has forked from glibc.
68825
68826 2006-06-29  Eric Blake  <ebb9@byu.net>
68827
68828         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
68829
68830 2006-06-29  Eric Blake  <ebb9@byu.net>
68831
68832         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
68833
68834 2006-06-29  Eric Blake  <ebb9@byu.net>
68835
68836         * lib/stat_.h: New file.
68837
68838 2006-06-29  Eric Blake  <ebb9@byu.net>
68839
68840         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
68841         unused static function.
68842
68843 2006-06-29  Eric Blake  <ebb9@byu.net>
68844
68845         * doc/functions.texi (Function Portability): Document missing lstat
68846         on mingw.
68847
68848 2006-06-29  Eric Blake  <ebb9@byu.net>
68849
68850         * MODULES.html.sh: Add sys_stat.
68851         * modules/sys_stat: New module.
68852         * modules/mkstemp (Depends-on): Add sys_stat.
68853
68854 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68855
68856         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
68857
68858 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68859
68860         * m4/c-bs-a.m4: Removed.
68861
68862 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68863
68864         * lib/strftime.c: Assume strftime() exists.
68865
68866 2006-06-29  Derek Price  <derek@ximbiot.com>
68867
68868         * modules/c-bs-a: Removed - \a is C89.
68869         * MODULES.html.sh: Remove c-bs-a.
68870
68871 2006-06-29  Bruno Haible  <bruno@clisp.org>
68872
68873         * modules/wcwidth (License): Change to LGPL.
68874
68875 2006-06-28  Simon Josefsson  <jas@extundo.com>
68876
68877         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
68878         on _WIN32.
68879
68880         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
68881         getnameinfo.
68882
68883 2006-06-28  Simon Josefsson  <jas@extundo.com>
68884
68885         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68886
68887 2006-06-28  Simon Josefsson  <jas@extundo.com>
68888
68889         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68890         functions there.  It will succeed on Windows XP, but on Windows
68891         2000 and (presumably) earlier, it will fail, and use the internal
68892         re-implementation.
68893         (use_win32_p): New function.
68894         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68895         Support AI_NUMERICSERV to disable getservbyname.
68896         (getnameinfo): New function, only supports
68897         NI_NUMERICHOST|NI_NUMERICSERV for now.
68898
68899         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68900         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68901         getnameinfo.
68902
68903 2006-06-28  Eric Blake  <ebb9@byu.net>
68904
68905         * modules/wcwidth: New file.
68906         * modules/mbchar (Depends-on): Add wcwidth.
68907         * modules/mbswidth (Depends-on): Add wcwidth.
68908         * MODULES.html.sh: Add wcwidth.
68909
68910 2006-06-28  Eric Blake  <ebb9@byu.net>
68911
68912         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68914
68915 2006-06-28  Eric Blake  <ebb9@byu.net>
68916
68917         * lib/xvasprintf.h: Fix comments.
68918
68919 2006-06-28  Eric Blake  <ebb9@byu.net>
68920
68921         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68922         * lib/mbswidth.c (wcwidth): Move from here...
68923         * lib/wcwidth.h: ...to this new file.
68924
68925 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68926
68927         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68928
68929         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68930         it's obsolete.
68931         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68932
68933 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68934
68935         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68936         Autoconf 2.60 says this stuff was obsolete.
68937
68938 2006-06-28  Bruno Haible  <bruno@clisp.org>
68939
68940         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68941
68942 2006-06-28  Bruno Haible  <bruno@clisp.org>
68943
68944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68945         gt_TYPE_WCHAR_T.
68946
68947 2006-06-28  Bruno Haible  <bruno@clisp.org>
68948
68949         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68950         declaration for wcwidth.
68951         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68952
68953 2006-06-28  Bruno Haible  <bruno@clisp.org>
68954
68955         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68956         (mkdir): Define using _mkdir.
68957
68958 2006-06-28  Bruno Haible  <bruno@clisp.org>
68959
68960         * lib/getaddrinfo.h: Fix POSIX URL.
68961         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68962         _WIN32.
68963         (use_win32_p): Make static.
68964         (getaddrinfo): Reject service name if it is empty or does not consist
68965         solely of decimal digits, or if its value is > 65535.
68966         (getnameinfo): Remove useless casts.
68967
68968 2006-06-27  Simon Josefsson  <jas@extundo.com>
68969
68970         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68971         Eggert and Martin Lambers.
68972
68973 2006-06-27  Simon Josefsson  <jas@extundo.com>
68974
68975         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68976         Eggert and Martin Lambers.
68977
68978 2006-06-27  Bruno Haible  <bruno@clisp.org>
68979
68980         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68981         result to 0, not to empty.
68982         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68983
68984 2006-06-27  Bruno Haible  <bruno@clisp.org>
68985
68986         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68987
68988 2006-06-26  Simon Josefsson  <jas@extundo.com>
68989
68990         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68991         present.
68992
68993 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68994
68995         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68996         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68997         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68998
68999 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
69000
69001         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
69002
69003 2006-06-26  Bruno Haible  <bruno@clisp.org>
69004
69005         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
69006
69007 2006-06-26  Bruno Haible  <bruno@clisp.org>
69008
69009         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
69010
69011 2006-06-26  Bruno Haible  <bruno@clisp.org>
69012
69013         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
69014         SGI C compiler in pre-C99 mode.
69015         Suggested by Mark D. Baushke and Larry Jones.
69016
69017 2006-06-26  Bruno Haible  <bruno@clisp.org>
69018
69019         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
69020         WCHAR_MAX.
69021         Reported by Mark D. Baushke and Larry Jones.
69022
69023 2006-06-26  Bruno Haible  <bruno@clisp.org>
69024
69025         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
69026         in pre-C99 mode.
69027         Suggested by Mark D. Baushke and Larry Jones.
69028
69029 2006-06-23  Simon Josefsson  <jas@extundo.com>
69030             Bruno Haible  <bruno@clisp.org>
69031
69032         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
69033         Emit mostlyclean-local rule.
69034         (func_emit_tests_Makefile_am): Likewise.
69035         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
69036
69037 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
69038
69039         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
69040
69041 2006-06-23  Bruno Haible  <bruno@clisp.org>
69042
69043         * tests/test-stdint.c: Update to match ISO C 99 Technical
69044         Corrigendum 1.
69045
69046 2006-06-23  Bruno Haible  <bruno@clisp.org>
69047
69048         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
69049
69050 2006-06-23  Bruno Haible  <bruno@clisp.org>
69051
69052         * lib/stdint_.h: Treat IRIX like OpenBSD.
69053
69054 2006-06-23  Bruno Haible  <bruno@clisp.org>
69055
69056         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
69057         ISO C 99 Technical Corrigendum 1.
69058
69059 2006-06-22  Simon Josefsson  <jas@extundo.com>
69060
69061         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
69062         MinGW.
69063
69064 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69065
69066         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
69067         needed.  Some compiler complained about some of them.  Problem reported
69068         by Larry Jones in
69069         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
69070
69071 2006-06-21  Simon Josefsson  <jas@extundo.com>
69072
69073         * tests/test-getaddrinfo.c: New file.
69074
69075         * modules/getaddrinfo-tests: New file.
69076
69077         * MODULES.html.sh: Add inet_pton.
69078
69079         * modules/inet_pton: New file.
69080
69081 2006-06-21  Simon Josefsson  <jas@extundo.com>
69082
69083         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
69084         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
69085         of using the (limited) gnulib implementation on Windows XP.
69086
69087         * m4/inet_pton.m4: New file.
69088
69089 2006-06-21  Simon Josefsson  <jas@extundo.com>
69090
69091         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
69092         variable.
69093
69094         * lib/socket_.h: Don't define WINVER.
69095
69096         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
69097         slightly modified to work in gnulib.
69098
69099 2006-06-21  Simon Josefsson  <jas@extundo.com>
69100
69101         * doc/gnulib.texi (Windows sockets): Add.
69102
69103 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69104
69105         * lib/read-file.c (fread_file): Start with buffer allocation of
69106         0 bytes rather than 1 byte; this simplifies the code.
69107         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
69108         code to free buffer and save/restore errno.
69109         (internal_read_file): Remove unused local.
69110
69111 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69112
69113         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
69114         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
69115         Problem reported by Denis Excoffier in
69116         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
69117
69118 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69119
69120         * modules/sys_socket, modules/socklen: Include sys/types since
69121         FreeBSD 4.x's sys/socket.h needs it.
69122
69123 2006-06-19  Simon Josefsson  <jas@extundo.com>
69124
69125         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
69126
69127 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69128
69129         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
69130
69131 2006-06-19  Bruno Haible  <bruno@clisp.org>
69132
69133         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
69134         and FULL_PATH_INTTYPES_H in angle brackets.
69135         Reported by Mark D. Baushke <mdb@gnu.org>.
69136
69137 2006-06-17  Eric Blake  <ebb9@byu.net>
69138
69139         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
69140         errno.
69141
69142 2006-06-17  Bruno Haible  <bruno@clisp.org>
69143
69144         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
69145         <sys/inttypes.h>.
69146
69147 2006-06-17  Bruno Haible  <bruno@clisp.org>
69148
69149         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
69150         whether errno is declared. Assume <errno.h> declares errno.
69151
69152 2006-06-17  Bruno Haible  <bruno@clisp.org>
69153
69154         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
69155
69156 2006-06-17  Bruno Haible  <bruno@clisp.org>
69157
69158         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
69159         problem on Solaris 2.5.1.
69160
69161 2006-06-16  Eric Blake  <ebb9@byu.net>
69162
69163         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
69164         * lib/unicodeio.c [!defined errno]: Likewise.
69165         * lib/strtol.c [!defined errno]: Likewise.
69166         * lib/strtod.c [!defined errno]: Likewise.
69167
69168 2006-06-15  Eric Blake  <ebb9@byu.net>
69169
69170         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
69171
69172 2006-06-15  Eric Blake  <ebb9@byu.net>
69173
69174         * config/srclist.txt (ssize_t.m4): Lose sync.
69175
69176 2006-06-15  Bruno Haible  <bruno@clisp.org>
69177
69178         * modules/stdint (Files): Include m4/full-header-path.m4,
69179         m4/size_max.m4, m4/wchar_t.m4.
69180         (Makefile.am): Many more substitutions.
69181         * modules/stdint-tests: New file.
69182         * tests/test-stdint.c: New file.
69183
69184 2006-06-15  Bruno Haible  <bruno@clisp.org>
69185
69186         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
69187         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
69188         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
69189         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
69190         gl_CHECK_TYPE_SAME): New macros.
69191
69192 2006-06-15  Bruno Haible  <bruno@clisp.org>
69193
69194         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
69195
69196 2006-06-15  Bruno Haible  <bruno@clisp.org>
69197
69198         * lib/stdint_.h: Rewritten to be fully auto-configured.
69199         Fixes bug on HP-UX/IA64.
69200
69201 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
69202
69203         * lib/getdate.y (__attribute__): Don't define if already defined.
69204         Problem reported by Larry Jones.
69205         * lib/utimens.c (__attribute__): Likewise.
69206
69207 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
69208
69209         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
69210         reported by Andreas Schwab.
69211
69212 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69213             Bruno Haible  <bruno@clisp.org>
69214
69215         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
69216         check for the declaration of strnlen and a run test that exposes the
69217         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
69218         rpl_strndup.
69219
69220 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69221             Bruno Haible  <bruno@clisp.org>
69222
69223         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
69224
69225 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69226
69227         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
69228         compile test, for Tru64 4.0D.
69229
69230 2006-05-28  Karl Berry  <karl@gnu.org>
69231
69232         * config/srclist.txt (printf-args.c): lose sync.
69233
69234 2006-05-26  Martin Lambers  <marlam@marlam.de>
69235
69236         * lib/getpass.c: Updates the test for the native W32 API, and adds
69237         missing includes, thus fixing compilation warnings.
69238
69239 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69240
69241         * lib/exclude.c (exclude_fnmatch): New function.
69242         (excluded_file_name): Call exclude_fnmatch.
69243         * lib/exclude.h (excluded_file_name): New prototype
69244
69245 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
69246
69247         * lib/tempname.c (small_open, large_open): New macros.
69248         (__open, __open64) [!_LIBC]: Remove.
69249         (__gen_tempname): Use small_open and large_open instead of __open
69250         and __open64.  This fixes a portability bug on HP-UX 11.11i
69251         reported by Simon Wing-Tang in
69252         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
69253
69254 2006-05-24  Bruno Haible  <bruno@clisp.org>
69255
69256         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
69257         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
69258         Reported by Thorsten Maerz <torte@netztorte.de> via
69259         Aaron Stone <aaron@serendipity.cx>.
69260
69261 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69262
69263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
69264         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
69265         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
69266         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
69267         not really conditional on the cache.
69268         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
69269
69270 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69271
69272         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
69273         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
69274         (my_usleep): Don't mishandle maximum value.
69275
69276 2006-05-19  Jim Meyering  <jim@meyering.net>
69277
69278         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
69279
69280 2006-05-17  Bruno Haible  <bruno@clisp.org>
69281
69282         Cygwin portability.
69283         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
69284
69285 2006-05-17  Bruno Haible  <bruno@clisp.org>
69286
69287         * lib/stdint_.h: Fix recognition of Cygwin.
69288
69289 2006-05-15  Bruno Haible  <bruno@clisp.org>
69290
69291         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
69292         on libtool patch by Ralf Wildenhues.
69293
69294 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69295
69296         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
69297         test for C99 conformance; (bool) 0.5 is an integer constant
69298         expression, but (bool) -0.5 is not.  Problem reported by Fedor
69299         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
69300
69301 2006-05-11  Simon Josefsson  <jas@extundo.com>
69302
69303         * m4/xvasprintf.m4: Fix obvious typo.
69304
69305 2006-05-11  Jim Meyering  <jim@meyering.net>
69306
69307         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
69308         James Lemley.
69309
69310 2006-05-10  Simon Josefsson  <jas@extundo.com>
69311
69312         * lib/md4.c: Typo fix, update copyright years.
69313         (K1, K2): Don't use L because it turn computations into 64-bit on
69314         64-bit platforms.
69315
69316 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
69317
69318         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
69319         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
69320         unwanted sign propagation, e.g., on hosts with 64-bit int.
69321         There still are some problems with reeelly weird theoretical hosts
69322         (e.g., 33-bit int) but it's not worth worrying about now.
69323         * lib/sha1.c (rol): Likewise.
69324         (K1, K2, K3, K4): Remove unnecessary L suffix.
69325
69326 2006-05-10  Bruno Haible  <bruno@clisp.org>
69327
69328         * lib/des.c: Cast to avoid warnings.
69329
69330 2006-05-09  Bruno Haible  <bruno@clisp.org>
69331
69332         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
69333         (Depends-on): Depend also on xsize, stdarg.
69334         (configure.ac): Add gl_XVASPRINTF.
69335
69336 2006-05-09  Bruno Haible  <bruno@clisp.org>
69337
69338         * m4/xvasprintf.m4: New file.
69339
69340 2006-05-09  Bruno Haible  <bruno@clisp.org>
69341
69342         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
69343         (EOVERFLOW): Define fallback value.
69344         (xstrcat): New function.
69345         (xvasprintf): Recognize the special case of a string concatenation.
69346
69347 2006-05-08  Eric Blake  <ebb9@byu.net>
69348
69349         * gnulib-tool (func_version): Base copyright year on CVS date.
69350         (func_emit_copyright_notice): New function.
69351         (func_emit_lib_Makefile_am): Use it.
69352         (func_emit_tests_Makefile_am): Likewise.
69353         (func_import): Likewise.
69354
69355 2006-05-08  Bruno Haible  <bruno@clisp.org>
69356
69357         * modules/stdarg: New file.
69358         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
69359
69360 2006-05-08  Bruno Haible  <bruno@clisp.org>
69361
69362         * m4/stdarg.m4: New file, from GNU gettext.
69363
69364 2006-05-08  Bruno Haible  <bruno@clisp.org>
69365
69366         * config/srclist.txt (build-aux/config.rpath): different from latest
69367         release.
69368
69369 2006-05-08  Bruno Haible  <bruno@clisp.org>
69370
69371         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
69372
69373 2006-05-05  Jim Meyering  <jim@meyering.net>
69374
69375         * m4/warning.m4: New file, derived from bison's file by the same name.
69376
69377 2006-05-03  Bruno Haible  <bruno@clisp.org>
69378
69379         * lib/stdint_.h: Shorter URL.
69380         * lib/inttypes.h: Likewise.
69381
69382 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69383
69384         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
69385
69386 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         * lib/verify.h: Document the internals better.  Most of this change
69389         was written by Bruno Haible.
69390
69391 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69392
69393         * doc/verify.texi: New file, partly based on a proposal by
69394         Bruno Haible.
69395
69396 2006-05-02  Bruno Haible  <bruno@clisp.org>
69397
69398         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
69399         test from here...
69400         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
69401
69402 2006-04-29  Bruno Haible  <bruno@clisp.org>
69403
69404         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
69405         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
69406
69407 2006-04-29  Bruno Haible  <bruno@clisp.org>
69408
69409         * gnulib-tool: Make --update option actually work.
69410
69411 2006-04-29  Bruno Haible  <bruno@clisp.org>
69412
69413         * doc/gcd.texi: New file.
69414         * doc/gnulib.texi: Include it.
69415
69416 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
69417
69418         * lib/getdate.y (get_date): When adding relative date, start with the
69419         initial time, not with the result of the first mktime call.
69420
69421 2006-04-25  Bruno Haible  <bruno@clisp.org>
69422
69423         * gnulib-tool (func_import): Output the include directives in three
69424         blocks, sorted separately.
69425         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69426
69427 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69428
69429         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
69430         to define main with arguments, for C++.  Reported by Eric Blake.
69431         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
69432         Prefer 'int main ()' to 'int main (void)', for C++.
69433         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
69434         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
69435         for 'main', for C99 and C++.
69436
69437 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69438
69439         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
69440         Don't assume that exit status -1 is valid.
69441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69442         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
69443         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
69444         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
69445         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
69446         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
69447         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
69448         functions can be used without declaring them, or that you can
69449         exit with status -1.
69450         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
69451
69452 2006-04-24  Karl Berry  <karl@gnu.org>
69453
69454         * config/srclist.txt (longdouble.m4): sync lost.
69455
69456 2006-04-24  Eric Blake  <ebb9@byu.net>
69457
69458         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
69459
69460 2006-04-24  Bruno Haible  <bruno@clisp.org>
69461
69462         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
69463         poll() implementation in AIX.
69464         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69465
69466 2006-04-24  Bruno Haible  <bruno@clisp.org>
69467
69468         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
69469         assigned exactly once.
69470
69471 2006-04-23  Claudio Fontana  <claudio@gnu.org>
69472             Bruno Haible  <bruno@clisp.org>
69473
69474         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
69475         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
69476         for AM_CPPFLAGS.
69477
69478 2006-04-23  Bruno Haible  <bruno@clisp.org>
69479
69480         * modules/copy-file: Depend on unistd.
69481         * modules/execute: Likewise.
69482         * modules/fatal-signal: Likewise.
69483         * modules/findprog: Likewise.
69484         * modules/mkdtemp : Likewise.
69485         * modules/pipe: Likewise.
69486         * modules/wait-process: Likewise.
69487
69488 2006-04-23  Bruno Haible  <bruno@clisp.org>
69489
69490         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
69491         condition was already detected.
69492         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69493
69494 2006-04-23  Bruno Haible  <bruno@clisp.org>
69495
69496         * lib/copy-file.c: Include <unistd.h> unconditionally.
69497         * lib/execute.c: Likewise.
69498         * lib/fatal-signal.c: Likewise.
69499         * lib/findprog.c: Likewise.
69500         * lib/mkdtemp.c: Likewise.
69501         * lib/pipe.h: Likewise.
69502         * lib/pipe.c: Likewise.
69503         * lib/wait-process.h: Likewise.
69504
69505 2006-04-23  Bruno Haible  <bruno@clisp.org>
69506
69507         * gnulib-tool (func_usage): Fix --import description. Document
69508         --update.
69509         (func_import): Create temporary file in a temporary directory, if
69510         --dry-run is specified. Silence errors from 'grep' when there are no
69511         m4 files in $m4dir.
69512         (func_create_testdir): Silence errors from 'grep' when there are no
69513         m4 files in $m4dir.
69514         Reported by Karl Berry <karl@freefriends.org>.
69515
69516 2006-04-20  Bruno Haible  <bruno@clisp.org>
69517
69518         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
69519         one argument, so that the code will be portable to Autoconf 2.60.
69520         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
69521         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69522         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
69523
69524 2006-04-19  Derek Price  <derek@ximbiot.com>
69525             Eric Blake  <ebb9@byu.net>
69526
69527         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
69528         rather than "/full/path.h".  Update comment to match.  Shorten &
69529         generalize m4_translit call via AS_TR_CPP.
69530
69531 2006-04-19  Derek Price  <derek@ximbiot.com>
69532             Eric Blake  <ebb9@byu.net>
69533
69534         * lib/inttypes.h: Correct grammar in comment.
69535
69536 2006-04-18  Derek Price  <derek@ximbiot.com>
69537             Paul Eggert  <eggert@cs.ucla.edu>
69538
69539         * modules/inttypes: New file.
69540         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
69541
69542 2006-04-18  Derek Price  <derek@ximbiot.com>
69543             Paul Eggert  <eggert@cs.ucla.edu>
69544
69545         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
69546         New files.
69547
69548 2006-04-18  Derek Price  <derek@ximbiot.com>
69549             Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         * lib/inttypes.h: New file.
69552         * lib/strtoimax.c: Assume <inttypes.h>.
69553
69554 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
69557         isn't mounted.  Problem reported by Kir Kolyshkin.
69558
69559 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69560
69561         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
69562         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
69563         Derek R. Price.
69564         * lib/regex.h (RE_DUP_MAX): Update comment to match current
69565         implementation.
69566
69567 2006-04-12  Eric Blake  <ebb9@byu.net>
69568
69569         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
69570         is now done automatically by the corresponding Autoconf macro.
69571
69572 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
69573
69574         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
69575         time_r.h.
69576
69577 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         Merge regex changes from libc, removing some of our
69580         POSIX-conformance changes that were rejected and redoing them in a
69581         less-intrusive way.
69582
69583         * lib/regcomp.c (re_compile_internal, init_dfa):
69584         Length arg is now size_t, not Idx.  All uses changed.
69585         (peek_token): Forward decl now says internal_function.
69586         (__re_error_msgid, __re_error_msgid_idx):
69587         Now static rather than extern with attribute_hidden.
69588         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
69589         For some reason libc prefers K&R style defns for external functions.
69590         (regerror) [!defined _LIBC]: Likewise.
69591         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
69592         (seek_collating_symbol_entry, lookup_collation_sequence_value):
69593         (build_range_exp, build_collating_symbol):
69594         Use K&R-style defn.
69595         (re_compile_fastmap): Use '\0' to memset, not 0.
69596         (utf8_sb_map): Make the calculations more obvious.
69597         (init_dfa, parse_bracket_exp, build_charclass_op):
69598         Call calloc and cast result, as glibc does.
69599         (init_word_char, fetch_token, peek_token, peek_token_bracket):
69600         (build_range_exp, build_collating_symbol):
69601         Now internal functions.
69602
69603         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
69604
69605         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
69606         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
69607         Don't depend on VMS; depend on __VMS instead, for POSIX
69608         namespace cleanness.
69609         (regoff_t): Define to ssize_t, not long int.
69610
69611         Remove the REG_ macros named below.  Instead, make the old names
69612         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
69613         __USE_GNU_REGEX.
69614         (REG_BACKSLASH_ESCAPE_IN_LISTS):
69615         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
69616         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
69617         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
69618         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
69619         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
69620         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
69621         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
69622         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
69623         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
69624         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
69625         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
69626         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
69627         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
69628         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
69629         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
69630         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
69631         (REG_NREGS):
69632         Remove.  All uses replaced by the old RE_* names.
69633         (RE_BACKSLASH_ESCAPE_IN_LISTS):
69634         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
69635         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
69636         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
69637         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
69638         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
69639         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
69640         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
69641         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
69642         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
69643         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
69644         Don't bother having these macros be independent of each others'
69645         values, since they no longer exist in the POSIX name space.
69646
69647         Rename the following member names back to their old names,
69648         unless !__USE_GNU_REGEX.  All uses changed back.
69649         (buffer): Renamed from re_buffer.
69650         (allocated): Renamed from re_allocated.
69651         (used): Renamed from re_used.
69652         (syntax): Renamed from re_syntax.
69653         (fastmap): Renamed from re_fastmap.
69654         (translate): Renamed from re_translate.
69655         (can_be_null): Renamed from re_can_be_null.
69656         (regs_allocated): Renamed from re_regs_allocated.
69657         (fastmap_accurate): Renamed from re_fastmap_accurate.
69658         (no_sub): Renamed from re_no_sub.
69659         (not_bol): Renamed from re_not_bol.
69660         (not_eol): Renamed from re_not_eol.
69661         (newline_anchor): Renamed from re_newline_anchor.
69662         (num_regs): Renamed from rm_num_regs.
69663         (start): Renamed from rm_start.
69664         (end): Renamed from rm_end.
69665
69666         (free_state): Move up a bit.
69667
69668         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
69669         #define to be empty.
69670         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
69671         when that is what is intended.
69672         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
69673         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
69674         (MAX): New macro.
69675         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
69676         All uses changed back to re_malloc, etc.  It's now the caller's
69677         responsibility to check for overflow; all callers changed.
69678         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
69679         (re_x2nrealloc): Remove.
69680         (free_state): Remove decl.
69681
69682         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
69683         (re_set_registers, re_exec):
69684         Use K&R-style defn.
69685
69686         2006-01-31  Roland McGrath  <roland@redhat.com>
69687
69688         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
69689         Reported by Mike Frysinger <vapier@gentoo.org>.
69690
69691         2006-01-15  Andreas Jaeger  <aj@suse.de>
69692
69693         [BZ #1950]
69694         * lib/regex_internal.c (re_string_reconstruct): Adjust for
69695         build_wcs_upper_buffer change.
69696         (build_wcs_upper_buffer): Change return type.
69697
69698         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
69699
69700         * lib/regex_internal.h: Include <stdint.h> if available.
69701
69702         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
69703
69704         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
69705
69706         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69707
69708         * lib/regcomp.c: Adjust for changed secondary hash function.
69709
69710         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
69711
69712         * lib/regex.h: Pretty printing.
69713         Clean up namespace a bit.
69714
69715         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
69716
69717         * lib/regexec.c (update_cur_sifted_state, check_arrival,
69718         check_arrival_add_next_nodes): Avoid using uninitialized variable.
69719
69720         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69721                     Ulrich Drepper  <drepper@redhat.com>
69722
69723         [BZ #1302]
69724         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
69725         changed.
69726         (bitset_word_t): Renamed from bitset_word.  All uses changed.
69727
69728         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
69729
69730         [BZ #281]
69731         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
69732         * lib/regcomp.c: Remove unnecessary uses of
69733         unsigned RE_TRANSLATE_TYPE.
69734         * lib/regex_internal.h: Likewise.
69735         * lib/regex_internal.c: Likewise.
69736         * lib/regexec.c: Likewise.
69737         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
69738
69739         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
69740
69741         * lib/regexec.c (find_recover_state): Remove unnecessary
69742         initialization.
69743         (transit_state_bkref): Make DFA a const pointer.
69744         (get_subexp): Likewise.
69745         (check_arrival): Likewise.
69746         (update_cur_sifted_state): Likewise.
69747         (re_search_internal): Likewise.
69748         (prune_impossible_nodes): Likewise.
69749         (acquire_init_state_context): Likewise.
69750         (proceed_next_node): Likewise.
69751         (set_regs): Likewise.
69752         (free_fail_stack_return): Likewise.
69753         (check_arrival_expand_ecl): Mark DFA parameter as const.
69754         (check_arrival_expand_ecl_sub): Likewise.
69755         (check_subexp_limits): Likewise.
69756         (sub_epsilon_src_nodes):  Likewise.
69757         (add_epsilon_src_nodes):  Likewise.
69758         (merge_state_array): Likewise.
69759         (update_regs): Likewise.
69760         (build_trtable): Likewise.
69761         (sift_states_backward): Mark MCTX parameter as const.
69762         (build_sifted_states): Likewise.
69763         (update_cur_sifted_state): Likewise.
69764         (sift_states_mkref): Likewise.
69765         (check_arrival_expand_ecl): Mark eclosure as const.
69766         (check_dst_limits_calc_pos_1): Likewise.
69767         * lib/regex_internal.h (re_match_context_t): Make dfa a const
69768         pointer.
69769
69770         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
69771
69772         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
69773         (transit_state_sb): Likewise.
69774         (transit_state_mb): Likewise.
69775         (sift_states_iter_mb): Likewise.
69776         (check_arrival_add_next_nodes): Likewise.
69777         (check_node_accept_bytes): Change first parameter to pointer-to-const.
69778         [_LIBC] (re_search_2_stub): Use mempcpy.
69779
69780         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
69781         mbrtowc for very simple UTF-8 case.
69782
69783         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
69784         a pointer-to-const.
69785         (re_acquire_state_context): Likewise.
69786         * lib/regex_internal.h: Adjust prototypes.
69787
69788         * lib/regex.c: Prevent using C++ compilers.
69789
69790         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
69791         (re_acquire_state_context): Likewise.
69792
69793 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69794
69795         * modules/regex (Depends-on): Add ssize_t.
69796
69797 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69798
69799         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69800         translation table.
69801
69802 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69803
69804         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69805
69806 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69807             Bruno Haible  <bruno@clisp.org>
69808
69809         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69810         <sys/types.h> and <inttypes.h>.
69811
69812 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69813
69814         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69815         `__error_t_defined', so argp.h will not typedef the former.
69816
69817 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69818
69819         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69820         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
69821         glibc names.  Even if glibc is changed to conform to POSIX, the
69822         traditional names will be available anyway, since regex depends on
69823         the extensions module.  Also, fix a longstanding typo in the
69824         implementation of Spencer ERE test #75 from grep 2.3.  Problems
69825         reported by Emanuele Giaquinta.  Also, change sense of cached
69826         variable, so that the message makes sense.
69827
69828 2006-03-24  Simon Josefsson  <jas@extundo.com>
69829
69830         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
69831         including some doc fixes.
69832         (base64_encode_alloc): Fix +1 bug on allocation failures.
69833
69834 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69835
69836         * lib/base64.c (base64_encode): Do not read past end of array with
69837         unsanitized input on systems with CHAR_BIT > 8.
69838
69839 2006-03-24  Eric Blake  <ebb9@byu.net>
69840
69841         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
69842
69843 2006-03-22  Karl Berry  <karl@gnu.org>
69844
69845         * config/srclist.txt (*setenv.[ch]): get from coreutils.
69846         * config/srclistvars.sh (COREUTILS): new var.
69847
69848 2006-03-17  Jim Meyering  <jim@meyering.net>
69849
69850         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
69851         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
69852
69853 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
69856         no longer needs it.  Instead, check that regoff_t is as least
69857         as wide as ptrdiff_t.
69858
69859         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
69860         so that our regex.h stays compatible with the installed regex.
69861         This is helpful for installers who configure --without-included-regex.
69862         Problem reported by Emanuele Giaquinta.
69863
69864 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69865
69866         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
69867         Typedef to long int, not to off_, as POSIX will likely change
69868         in that direction.
69869
69870 2006-03-15  Eric Blake  <ebb9@byu.net>
69871
69872         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
69873
69874 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69875
69876         * lib/argp-help.c (validate_uparams): Fix typo
69877         * lib/argp-parse.c (argp_default_options): Consistently begin help
69878         messages with a lowercase letter.
69879
69880 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
69881
69882         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
69883         overrun buffers and shouldn't be used (much as gets shouldn't be
69884         used).
69885         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69886
69887 2006-03-08  Simon Josefsson  <jas@extundo.com>
69888
69889         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69890         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69891
69892 2006-03-08  Simon Josefsson  <jas@extundo.com>
69893
69894         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69895         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69896
69897 2006-03-08  Simon Josefsson  <jas@extundo.com>
69898
69899         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69900         signal that configure disabled the device.
69901
69902 2006-03-08  Simon Josefsson  <jas@extundo.com>
69903
69904         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69905         languages.
69906
69907 2006-03-07  Simon Josefsson  <jas@extundo.com>
69908
69909         * modules/getopt (Depends-on): Add unistd.
69910
69911         * modules/unistd: New file.
69912
69913 2006-03-07  Simon Josefsson  <jas@extundo.com>
69914
69915         * modules/gc-random: New file.
69916
69917 2006-03-07  Simon Josefsson  <jas@extundo.com>
69918
69919         * m4/unistd_h.m4: New file.
69920
69921 2006-03-07  Simon Josefsson  <jas@extundo.com>
69922
69923         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69924         test to be side-effect free by storing the result in the cache
69925         variable gl_cv_lib_readline, and moving the assignment of
69926         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69927         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69928
69929 2006-03-07  Simon Josefsson  <jas@extundo.com>
69930
69931         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69932         error on missing devices (the functions will return an error).
69933
69934         * m4/gc.m4: Move random stuff to gc-random.m4
69935
69936 2006-03-07  Simon Josefsson  <jas@extundo.com>
69937
69938         * lib/unistd_.h: New file.
69939
69940 2006-03-07  Simon Josefsson  <jas@extundo.com>
69941
69942         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69943
69944 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69945
69946         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69947         Problem reported by Juan Manuel Guerrero.
69948
69949 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69950
69951         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69952         the unistd module.
69953         * lib/getlogin_r.c: Likewise.
69954         * lib/getlogin_r.h: Likewise.
69955         * lib/glob.c: Likewise.
69956         * lib/pagealign_alloc.c: Likewise.
69957         * lib/unistd_.h: Remove; no longer needed.
69958
69959 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69962         Add unistd.
69963         * modules/c-stack (Depends-on): Add unistd.
69964         * modules/getlogin_r: Likewise.
69965         * modules/glob: Likewise.
69966         * modules/pagealign_alloc: Likewise.
69967         * modules/unistd (Files): Remove lib/unistd_.h.
69968         (EXTRA_DIST): Remove.
69969         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69970         need unistd_.h.
69971         (MOSTLYCLEANFILES): Remove unistd.h-t.
69972
69973 2006-03-03  Simon Josefsson  <jas@extundo.com>
69974
69975         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69976
69977 2006-03-03  Simon Josefsson  <jas@extundo.com>
69978
69979         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69980         libidn and bison.
69981
69982 2006-03-03  Simon Josefsson  <jas@extundo.com>
69983
69984         * build-aux/maint.mk: Add indent target.
69985
69986 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69987
69988         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69989         our replacement poll.h in any case, to avoid a differing
69990         declaration from a system header.  Seen on AIX.
69991
69992 2006-03-01  Simon Josefsson  <jas@extundo.com>
69993
69994         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69995         <kasal@ucw.cz>.
69996
69997 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69998
69999         * modules/gettime (Depends-on): Add extensions module.
70000         * modules/nanosleep (Depends-on): Likewise.
70001         * modules/settime (Depends-on): Likewise.
70002
70003 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70004
70005         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
70006         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
70007         pedantically.
70008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70009         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
70010
70011         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
70012         not "==".  Reported by Ralf Wildenhues.
70013
70014 2006-03-01  Karl Berry  <karl@gnu.org>
70015
70016         * doc/Copyright/request-*: new files, synced from gnuorg.
70017
70018 2006-03-01  Karl Berry  <karl@gnu.org>
70019
70020         * config/srclist.txt (Copyright/*): new entries.
70021
70022 2006-02-28  Simon Josefsson  <jas@extundo.com>
70023
70024         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
70025
70026 2006-02-27  Simon Josefsson  <jas@extundo.com>
70027
70028         * lib/base64.h: Indent #define's.  From Jim Meyering
70029         <jim@meyering.net>.
70030
70031 2006-02-27  Jim Meyering  <jim@meyering.net>
70032
70033         Revert the change of 2006-02-24, so these files can continue
70034         to be sync'd from gettext.
70035         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
70036         of `config.h'.
70037
70038 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * modules/intprops: New file.
70041         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70042         Add intprops.
70043         * modules/getloadavg (Files): Remove lib/intprops.h.
70044         (Depends-on): Add intprops.
70045         * modules/human: Likewise.
70046         * modules/inttostr: Likewise.
70047         * modules/openat: Likewise.
70048         * modules/sig2str: Likewise.
70049         * modules/userspec: Likewise.
70050         * modules/utimecmp: Likewise.
70051         * modules/xnanosleep: Likewise.
70052         * modules/xstrtol: Likewise.
70053
70054 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
70055
70056         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
70057         * modules/lock-tests (TESTS): Use $(EXEEXT).
70058         * modules/tls-tests: Likewise.
70059         * modules/argp-tests: Likewise.
70060         (check_PROGRAMS): New var, replacing...
70061         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
70062
70063 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70064
70065         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
70066         `config.h'.
70067
70068 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70069
70070         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
70071
70072 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70073
70074         Sync from coreutils.
70075         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
70076         gl_CHDIR_SAFER.
70077
70078 2006-02-22  Jim Meyering  <jim@meyering.net>
70079
70080         Sync from coreutils.
70081         * m4/chdir-safer.m4: New file.
70082
70083 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70084
70085         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
70086         AT_FDCWD exceeds INT_MAX.
70087         * lib/openat.h (AT_FDCWD): Likewise.
70088
70089 2006-02-17  Eric Blake  <address@hidden>
70090
70091         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
70092
70093 2006-02-16  Simon Josefsson  <jas@extundo.com>
70094
70095         * modules/getaddrinfo (Depends-on): Add sys_socket.
70096
70097 2006-02-15  Simon Josefsson  <jas@extundo.com>
70098
70099         * build-aux/maint.mk: Add dsyntax-check rule.
70100
70101 2006-02-15  Eric Blake  <ebb9@byu.net>
70102
70103         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
70104         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
70105         'present but cannot compile' warnings on cygwin.
70106         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
70107         use ws2tcpip.h if sys/socket.h works.
70108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
70109         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
70110
70111 2006-02-14  Simon Josefsson  <jas@extundo.com>
70112
70113         * modules/maintainer-makefile (Files): Rename.
70114
70115         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
70116         and (the local) Makefile.cfg to maint-cfg.mk.
70117
70118         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
70119         to the latter.
70120
70121         * modules/maintainer-makefile: New module.
70122
70123         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
70124         severaly stripped to make it possible to build it up from scratch
70125         with reliable tests.
70126
70127         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
70128         fixes to permit overriding the default actions when configure and
70129         makefile are not available.
70130
70131 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70132
70133         Sync from coreutils.
70134         * modules/lstat (Depends-on): Don't depend on xalloc.
70135         (License): Change from GPL to LGPL, since this is now simply a
70136         replacement for a libc function.
70137
70138 2006-02-14  Jim Meyering  <jim@meyering.net>
70139
70140         Sync from coreutils.
70141
70142         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
70143         failure on deficient systems, and simplify gnulib lgpl dependencies.
70144         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
70145         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
70146
70147         * lib/xalloc-die.c: Remove unused definition of N_.
70148
70149 2006-02-14  Jim Meyering  <jim@meyering.net>
70150
70151         Sync from coreutils.
70152         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
70153         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
70154         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
70155         double-quote uses of that variable, to accommodate the rare case in
70156         which getmntent is available in none of the libraries checked.  This
70157         happens at least on FreeBSD 5.0.
70158
70159 2006-02-13  Simon Josefsson  <jas@extundo.com>
70160
70161         * gnulib-tool (Usage): Fix --import, from
70162         karl@freefriends.org (Karl Berry).
70163
70164 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70165
70166         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
70167
70168 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
70169
70170         * lib/argp-namefrob.h: Restore changes accidentally lost during the
70171         "autoupdate" on 2005-12-12.
70172
70173 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
70174
70175         * modules/closeout (Depends-on): Remove atexit.
70176
70177 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
70178
70179         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
70180         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
70181
70182 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70183
70184         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
70185         __EXTENSIONS__ if this causes compilation to fail.  Problem
70186         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
70187         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
70188
70189 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
70190
70191         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
70192         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
70193         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
70194         All uses changed.
70195
70196 2006-01-26  Simon Josefsson  <jas@extundo.com>
70197
70198         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
70199         prototype is visible on mingw32.
70200
70201         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
70202         for mingw32.
70203
70204         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
70205         mingw32).
70206
70207 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70208
70209         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
70210         attempt to open for write; this always fails, at least on POSIX
70211         hosts.  This reinstates the 2006-01-09 change, which was
70212         inadvertently removed.
70213
70214 2006-01-26  Bruno Haible  <bruno@clisp.org>
70215
70216         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
70217         Reported by Paul Eggert.
70218
70219 2006-01-26  Bruno Haible  <bruno@clisp.org>
70220             Paul Eggert  <eggert@cs.ucla.edu>
70221
70222         * lib/stdbool_.h (_Bool)
70223         [(! (defined __cplusplus || defined __BEOS__)
70224           && !defined __GNUC__
70225           && !(defined __HP_cc || defined __xlc__
70226                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
70227                || defined __sgi))]:
70228         #define to signed char in these cases too; this simplifies
70229         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
70230         etc., separately) and makes it more conservative.
70231
70232 2006-01-25  Simon Josefsson  <jas@extundo.com>
70233
70234         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
70235         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
70236         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
70237
70238 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70239
70240         * lib/argp-namefrob.h: Bugfix. Remove stray #
70241
70242 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
70243
70244         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
70245         so that we test the test.
70246         Check for yet another HP-UX cc bug involving *bool |= bool.
70247
70248 2006-01-25  Karl Berry  <karl@gnu.org>
70249
70250         * config/srclist.txt (vasnprintf.c): sync lost.
70251
70252 2006-01-25  Jim Meyering  <jim@meyering.net>
70253
70254         Sync from the stable (b5) branch of coreutils:
70255
70256         * lib/fts.c (fts_children): Don't let close() clobber errno from
70257         failed fchdir().
70258
70259         * lib/fts.c (fts_stat): When following a symlink-to-directory,
70260         don't necessarily interpret stat-fails+lstat-succeeds as indicating
70261         a dangling symlink.  That can also happen at least for ELOOP.
70262         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
70263         FYI, this bug predates the inclusion of fts.c in coreutils.
70264
70265         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
70266         in their own block, so pre-c99 compilers don't object.
70267
70268         Avoid the double-free (first in fts_read, second in fts_close) that
70269         would occur when an `active' directory is made inaccessible (e.g.,
70270         via chmod a-x) during a traversal.
70271         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70272         before returning.  Reproduce this failure by
70273         mkdir -p a/b; cd a; chmod a-x . b
70274         Reported by Stavros Passas.
70275
70276 2006-01-25  Jim Meyering  <jim@meyering.net>
70277
70278         * lib/fileblocks.c: Remove more useless parentheses.
70279         * lib/readutmp.h: Likewise.
70280
70281 2006-01-25  Bruno Haible  <bruno@clisp.org>
70282
70283         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
70284         warnings.
70285         Reported by Paul Eggert.
70286
70287 2006-01-25  Bruno Haible  <bruno@clisp.org>
70288
70289         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
70290         rid of a trap command. For Solaris sh.
70291         Reported by Mark D. Baushke <mdb@gnu.org>.
70292
70293 2006-01-24  Simon Josefsson  <jas@extundo.com>
70294
70295         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
70296         Bruno.
70297
70298 2006-01-24  Karl Berry  <karl@gnu.org>
70299
70300         * config/srclist.txt (argp-namefrob.h): sync lost.
70301
70302 2006-01-24  Jim Meyering  <jim@meyering.net>
70303
70304         * modules/openat (Files): Add lib/intprops.h.
70305         From Mark D. Baushke.
70306
70307 2006-01-24  Jim Meyering  <jim@meyering.net>
70308
70309         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
70310         Reported by Mark D. Baushke.
70311
70312 2006-01-24  Jim Meyering  <jim@meyering.net>
70313
70314         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
70315
70316 2006-01-24  Bruno Haible  <bruno@clisp.org>
70317
70318         * modules/strnlen (Maintainer): Change from glibc to all.
70319
70320 2006-01-24  Bruno Haible  <bruno@clisp.org>
70321
70322         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
70323         Patch by Paul Eggert.
70324
70325 2006-01-24  Bruno Haible  <bruno@clisp.org>
70326
70327         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
70328         already has it.
70329         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
70330         2005-11-26.
70331
70332         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
70333         'signed char' to avoid problems with the built-in _Bool type.
70334         Reported by Paul Eggert on 2005-11-26.
70335
70336 2006-01-24  Bruno Haible  <bruno@clisp.org>
70337
70338         * gnulib-tool (func_import): Avoid constructing complicated sed
70339         expressions inside backquote.
70340         Report and solution by Mark D. Baushke <mdb@gnu.org>.
70341
70342 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
70343
70344         These changes imported from libc.
70345         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
70346         test and two separate function calls.
70347         * lib/strndup.c (__strndup): Add libc_hidden_def.
70348
70349 2006-01-23  Simon Josefsson  <jas@extundo.com>
70350
70351         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
70352         Remove the test_*_SOURCES variable: automake infers it by default.
70353         * modules/tls-tests: Likewise.
70354
70355 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70356
70357         Work around porting bugs reported by Dieter in
70358         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
70359         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
70360         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
70361         Include "getopt.h" first, to check interface.
70362         (getenv): Declare only if defined HAVE_DECL_GETENV &&
70363         !HAVE_DECL_GETENV.
70364         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
70365         (__strndup): Revert to K&R-style function dfns, the glibc style.
70366         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
70367         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
70368         Include strnlen.h first, to get prototype properly.
70369         (strnlen): Renamed from __strnlen.
70370         Remove weak alias.
70371
70372 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70373
70374         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
70375
70376 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70377
70378         * config/srclist.txt: Adjust to reflect glibc reorganization.
70379         This affects only comments.
70380
70381 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70382
70383          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
70384          Reported by Bruce Korb <bkorb@gnu.org>.
70385
70386 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70387
70388         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
70389         to pacify gcc -Wswitch-default.
70390
70391 2006-01-22  Bruno Haible  <bruno@clisp.org>
70392
70393         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
70394         temporary buffer for sprintf, take into account the precision also
70395         for 'd', 'i', 'u', 'o', 'x', 'X'.
70396
70397 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70398
70399         * modules/argp-tests: New module
70400         * tests/test-argp.c: New file
70401         * tests/test-argp-2.sh: New file
70402
70403 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70404
70405         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
70406         (__argp_base_name): Removed
70407         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
70408         typo.
70409         (__argp_base_name): Provide macro definition or extern declaration
70410         depending on the configuration
70411
70412 2006-01-20  Simon Josefsson  <jas@extundo.com>
70413
70414         * modules/inet_ntop (Depends-on): Depend on sys_socket.
70415
70416 2006-01-20  Simon Josefsson  <jas@extundo.com>
70417
70418         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
70419
70420 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70421
70422         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
70423         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
70424         Suggested by Bruno Haible.
70425
70426 2006-01-20  Karl Berry  <karl@gnu.org>
70427
70428         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
70429         until changes propagate, I guess.
70430
70431 2006-01-19  Simon Josefsson  <jas@extundo.com>
70432
70433         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
70434
70435 2006-01-19  Simon Josefsson  <jas@extundo.com>
70436
70437         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
70438
70439 2006-01-19  Simon Josefsson  <jas@extundo.com>
70440
70441         * gnulib-tool: Set check_PROGRAMS.
70442
70443         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70444         modules/des-tests, modules/gc-arcfour-tests,
70445         modules/gc-arctwo-tests, modules/gc-des-tests,
70446         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70447         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70448         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70449         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70450         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70451         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
70452         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
70453         test_*_SOURCES.
70454
70455 2006-01-18  Simon Josefsson  <jas@extundo.com>
70456
70457         * modules/socklen (Depends-on): Depend on sys_socket.
70458
70459 2006-01-18  Simon Josefsson  <jas@extundo.com>
70460
70461         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70462         modules/des-tests, modules/gc-arcfour-tests,
70463         modules/gc-arctwo-tests, modules/gc-des-tests,
70464         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70465         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70466         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70467         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70468         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70469         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
70470         $(EXEEXT) to automake TESTS variable, for mingw32.
70471
70472 2006-01-17  Simon Josefsson  <jas@extundo.com>
70473
70474         * modules/socklen (Include): Need sys/socket.h.
70475
70476 2006-01-17  Bruno Haible  <bruno@clisp.org>
70477
70478         * modules/ssize_t (Include): Add <sys/types.h>.
70479
70480 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
70481
70482         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
70483         it's not portable and it doesn't work with cross-compiles.
70484         Problem reported by Bruno Haible.  Fix missing-$ typo in
70485         'test "gl_cv_ignore_unused_libraries" ...' that prevented
70486         -zignore from being used with Sun's C compiler.
70487
70488 2006-01-12  Simon Josefsson  <jas@extundo.com>
70489
70490         * lib/base64.c: Fix warning, reported by Bruno Haible
70491         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
70492
70493 2006-01-12  Bruno Haible  <bruno@clisp.org>
70494
70495         * modules/ldd: New file.
70496         * build-aux/ldd.sh.in: New file.
70497         * MODULES.html.sh (Support for building libraries and executables): Add
70498         ldd.
70499
70500 2006-01-12  Bruno Haible  <bruno@clisp.org>
70501
70502         * m4/ldd.m4: New file.
70503
70504 2006-01-12  Bruno Haible  <bruno@clisp.org>
70505
70506         * gnulib-tool (func_import, func_create_testdir): Don't go into an
70507         endless loop while replacing $auxdir with build-aux.
70508
70509 2006-01-11  Simon Josefsson  <jas@extundo.com>
70510
70511         * lib/stdint_.h (SIZE_MAX): Add missing (.
70512
70513 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
70514
70515         Sync from coreutils.
70516         * lib/md5.c: Fix commentary typos.
70517         (alignof, UNALIGNED_P): No need for a GCC-specific version.
70518         * lib/md5.h (__attribute__): Remove; unused.
70519         * lib/sha1.c: Fix commentary to match md5 better.
70520         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
70521         so that we don't need to worry about alignment.  All uses changed.
70522         This merges the 2005-10-28 md5 change into sha1.
70523
70524 2006-01-11  Jim Meyering  <jim@meyering.net>
70525
70526         Sync from coreutils.
70527         * lib/md5.c (OP): Fix spacing.
70528
70529 2006-01-11  Bruno Haible  <bruno@clisp.org>
70530
70531         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70532         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
70533         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
70534
70535 2006-01-11  Bruno Haible  <bruno@clisp.org>
70536
70537         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70538         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
70539         the "early" section as well.
70540
70541 2006-01-11  Bruno Haible  <bruno@clisp.org>
70542
70543         Avoid "ar: no archive members specified" error on MacOS X.
70544         * gnulib-tool (func_modules_add_dummy): New function.
70545         (func_import, func_create_testdir): Invoke it.
70546
70547 2006-01-11  Bruno Haible  <bruno@clisp.org>
70548
70549         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
70550         with $auxdir in AC_CONFIG_FILES statements.
70551
70552 2006-01-11  Bruno Haible  <bruno@clisp.org>
70553
70554         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70555         Initialize also noinst_HEADERS to empty.
70556
70557 2006-01-11  Bruno Haible  <bruno@clisp.org>
70558
70559         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
70560         variables.
70561         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
70562         autoreconf.
70563
70564 2006-01-11  Bruno Haible  <bruno@clisp.org>
70565
70566         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
70567         overridable by the user.
70568         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70569
70570 2006-01-10  Simon Josefsson  <jas@extundo.com>
70571
70572         * modules/sys_socket: New file.
70573
70574 2006-01-10  Simon Josefsson  <jas@extundo.com>
70575
70576         * m4/sys_socket_h.m4: New file.
70577
70578 2006-01-10  Simon Josefsson  <jas@extundo.com>
70579
70580         * lib/socket_.h: New file.
70581
70582 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70583
70584         * modules/readutmp (Maintainer): Add myself.
70585
70586 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70587
70588         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
70589         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
70590         People who are still concerned with buggy memcmp implementations
70591         can invoke gl_FUNC_MEMCMP themselves.
70592
70593 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70594
70595         * lib/regex_internal.h (BITSET_WORD_BITS):
70596         Work around a bug in 64-bit PGC (before version 6.1-2), where the
70597         preprocessor mishandles large unsigned values as if they were signed.
70598         Problem reported by Claudio Fontana in
70599         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
70600
70601 2006-01-10  Jim Meyering  <jim@meyering.net>
70602
70603         Avoid the double-free (first in fts_read, second in fts_close) that
70604         would occur when an `active' directory is made inaccessible (e.g.,
70605         via chmod a-x) during a traversal.
70606         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70607         before returning.  Reproduce this failure by
70608         mkdir -p a/b; cd a; chmod a-x . b
70609         Reported by Stavros Passas.
70610
70611         Sync from coreutils.
70612         * lib/sha1.c: Tweak grammar in a comment.
70613
70614 2006-01-10  Jim Meyering  <jim@meyering.net>
70615
70616         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
70617         Patch by Joerg Sonnenberger.
70618
70619 2006-01-10  Bruno Haible  <bruno@clisp.org>
70620
70621         * modules/readutmp: Depend on module free.
70622         * modules/strtok_r: Depend on module restrict.
70623
70624 2006-01-10  Bruno Haible  <bruno@clisp.org>
70625
70626         * modules/gettext (configure.ac): Add an invocation of
70627         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
70628
70629 2006-01-10  Bruno Haible  <bruno@clisp.org>
70630
70631         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
70632         Reported by Werner Lemberg <wl@gnu.org>.
70633
70634 2006-01-10  Bruno Haible  <bruno@clisp.org>
70635
70636         * lib/localcharset.c: Update from GNU gettext.
70637
70638 2006-01-10  Bruno Haible  <bruno@clisp.org>
70639
70640         * lib/argp.h (__const): Remove macro. Use const instead.
70641         * lib/argp-fmtstream.h (__const): Likewise.
70642         * lib/glob_.h (__const): Remove macro.
70643         * lib/glob-libc.h: Use const instead of __const.
70644
70645 2006-01-10  Bruno Haible  <bruno@clisp.org>
70646
70647         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
70648         variable.
70649         Needed to avoid an automake error regarding the 'gettext' module.
70650
70651 2006-01-09  Simon Josefsson  <jas@extundo.com>
70652
70653         * modules/inet_ntop (Depends-on): Add restrict.
70654
70655 2006-01-09  Simon Josefsson  <jas@extundo.com>
70656
70657         * modules/gc-rijndael-tests (License): Put under LGPL.
70658
70659         * modules/gc-des-tests (License): Likewise.
70660
70661         * modules/gc-arcfour-tests (License): Likewise.
70662
70663         * modules/gc-arctwo-tests (License): Likewise.
70664
70665         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
70666
70667         * modules/gc-hmac-sha1-tests (Files): Likewise.
70668
70669         * modules/gc-hmac-md5-tests (License): Likewise.
70670
70671         * modules/gc-sha1-tests (License): Likewise.
70672
70673         * modules/gc-md5-tests (License): Likewise.
70674
70675         * modules/gc-md4-tests (License): Likewise.
70676
70677         * modules/gc-md2-tests (License): Likewise.
70678
70679         * modules/gc-tests (License): Likewise.
70680
70681         * modules/des-tests (License): Likewise.
70682
70683         * modules/md4-tests (License): Likewise.
70684
70685         * modules/md2-tests (License): Likewise.
70686
70687 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70688
70689         Sync from coreutils:
70690
70691         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
70692         * modules/lib-ignore: New file.
70693         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
70694         chdir-safer.m4, lchmod.m4.
70695         * modules/openat: Add mkdirat.c, openat-priv.h.
70696
70697 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70698
70699         Sync from coreutils.
70700         * m4/lib-ignore.m4: New file.
70701         * m4/lchmod.m4: New file.
70702
70703 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70704
70705         Sync from coreutils.
70706         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
70707         for write access: POSIX says that must fail.
70708         * lib/fts.c (diropen): Likewise.
70709         * lib/save-cwd.c (save_cwd): Likewise.
70710         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
70711         well, for minor improvements on hosts that lack O_DIRECTORY.
70712         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
70713         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
70714         Fall back on chown if open failed with EACCES.
70715
70716         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
70717         Report an error at compile-time if only a 1-second nominal clock
70718         resolution is found.
70719
70720         * lib/lchmod.h: New file.
70721         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
70722         (make_dir_parents): Use lchown rather than chown, and
70723         lchmod rather than chmod.
70724
70725         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
70726         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
70727         "proc" reported by n0dalus.
70728
70729         * lib/mountlist.c: Include <limits.h>.
70730         (dev_from_mount_options)
70731         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
70732         New function.  It no longer assumes "dev=" has the System V meaning
70733         on Linux (since it doesn't).  It also parses "dev=" more carefully.
70734         (read_file_system_list)
70735         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
70736         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
70737         dev= in that case.
70738
70739         * lib/posixtm.h (PDS_PRE_2000): New macro.
70740         * lib/posixtm.c (year): Arg is now syntax_bits rather than
70741         allow_century.  All usages changed.  Reject dates outside the range
70742         1969-1999 if PDS_PRE_2000 is used.
70743
70744 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70745
70746         Sync from coreutils.
70747         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
70748         (Time of day items): Mention the possibility of leap seconds.
70749         Problem reported by Dr. David Alan Gilbert.
70750
70751 2006-01-09  Jim Meyering  <jim@meyering.net>
70752
70753         Sync from coreutils.
70754
70755         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
70756
70757         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
70758
70759         * lib/modechange.c (mode_compile): Reject an invalid mode string
70760         that starts with an octal digit.  From Andreas Gruenbacher.
70761
70762         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
70763         and dup to open_safer and dup_safer, respectively.
70764         (openat_permissive): Fix typo in comment.
70765
70766         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
70767         "gettext.h"; either no longer needed or are guaranteed by openat.h.
70768         (_): Remove; no longer needed.
70769         (openat): Renamed from rpl_openat; no need for rpl_openat
70770         since openat.h renames openat for us.
70771         Replace most of the body with a call to openat_permissive,
70772         to avoid duplicate code.
70773         Port to (probably hypothetical) environments were mode_t is
70774         wider than int.
70775         (openat_permissive): Require mode arg, so that we can check
70776         types better.  Put it just after flags.  Change cwd failure
70777         indicator from pointer-to-bool to pointer-to-errno-value.
70778         All callers changed.
70779         Invoke openat_save_fail and/or openat_restore_fail if
70780         cwd_errno is null, so that openat can call us.
70781         (openat_permissive, fdopendir, fstatat, unlinkat):
70782         Simplify errno handling to avoid some duplicate code,
70783         as it's OK to set errno on success.
70784         * lib/openat.h: Revamp code so that function macros depend on
70785         __OPENAT_PREFIX only, not also on AT_FDCWD.
70786         (openat_ro): Remove.  Caller changed to use openat_permissive.
70787         (openat_permissive): Now a macro, if not a function.
70788         (openat_restore_fail, openat_save_fail): Now always functions,
70789         since mkdirat needs them even if __OPENAT_PREFIX is defined.
70790
70791         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
70792         and openat.c.
70793         * lib/mkdirat.c: Include openat-priv.h.
70794         Remove definitions of macros defined therein.
70795         * lib/openat.c: Likewise.
70796
70797         * lib/mkdirat.c (mkdirat): New file and function.
70798         * lib/openat.h (mkdirat): Declare.
70799
70800         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70801
70802         * lib/openat.h (openat_permissive): Declare.
70803         (openat_ro): Define.
70804
70805         * lib/openat.c (EXPECTED_ERRNO): New macro.
70806         (openat_permissive): New function -- used in remove.c rewrite.
70807         (all functions): Set errno just before returning, only if there
70808         was an actual failure.
70809         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70810
70811         Emulate openat-family functions using Linux's procfs, if possible.
70812         Idea and some code based on Ulrich Drepper's glibc changes.
70813
70814         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70815         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70816         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70817         before falling back on save_cwd and restore_cwd.
70818         (fdopendir, fstatat, unlinkat): Likewise.
70819
70820         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
70821         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
70822
70823         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
70824         as second argument to va_arg.  Otherwise, some versions of gcc
70825         warn that `if this code is reached, the program will abort'.
70826
70827 2006-01-09  Jim Meyering  <jim@meyering.net>
70828
70829         Sync from coreutils.
70830         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
70831         Require openat-priv.h.
70832
70833 2006-01-09  Bruno Haible  <bruno@clisp.org>
70834
70835         * modules/strnlen (Include): Use strnlen.h.
70836
70837 2006-01-09  Bruno Haible  <bruno@clisp.org>
70838
70839         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
70840
70841 2006-01-09  Bruno Haible  <bruno@clisp.org>
70842
70843         * lib/sysexit_.h (EX_OK): New macro.
70844         Suggested by Martin Lambers <marlam@marlam.de>.
70845
70846 2006-01-09  Bruno Haible  <bruno@clisp.org>
70847
70848         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
70849         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
70850
70851 2006-01-09  Bruno Haible  <bruno@clisp.org>
70852
70853         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
70854         numbers.
70855
70856 2006-01-09  Bruno Haible  <bruno@clisp.org>
70857
70858         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
70859         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
70860         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
70861         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
70862
70863 2006-01-09  Bruno Haible  <bruno@clisp.org>
70864
70865         * build-aux/javacomp.sh.in: New file, moved from lib/.
70866         * modules/javacomp-script (Files): Update.
70867         (configure.ac): Add AC_CONFIG_FILES invocation.
70868         (EXTRA_DIST): Remove variable.
70869
70870         * build-aux/javaexec.sh.in: New file, moved from lib/.
70871         * modules/javaexec (Files): Update.
70872         (configure.ac): Add AC_CONFIG_FILES invocation.
70873         (EXTRA_DIST): Remove javaexec.sh.in.
70874
70875         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
70876         * modules/csharpcomp-script (Files): Update.
70877         (configure.ac): Add AC_CONFIG_FILES invocation.
70878         (EXTRA_DIST): Remove variable.
70879
70880         * build-aux/csharpexec.sh.in: New file, moved from lib/.
70881         * modules/csharpexec (Files): Update.
70882         (configure.ac): Add AC_CONFIG_FILES invocation.
70883         (EXTRA_DIST): Remove csharpexec.sh.in.
70884
70885 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70886
70887         Sync from coreutils.
70888
70889         Add POSIX ACL support
70890         * lib/acl.h (copy_acl, set_acl): Add declarations.
70891         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70892         systems other than Linux.
70893         (chmod_or_fchmod): New function: use fchmod when possible,
70894         and chmod otherwise.
70895         (file_has_acl): Add a POSIX ACL implementation, with a
70896         Linux-specific subcase.
70897         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70898         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70899         acls are unsupported.
70900         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70901         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70902         are unsupported.
70903
70904 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70905
70906         Sync from coreutils.
70907         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70908
70909 2006-01-07  Bruno Haible  <bruno@clisp.org>
70910
70911         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70912         gl_EARLY.
70913
70914 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70915
70916         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70917         Problem reported for Mingw by Mark Junker.
70918
70919 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70920
70921         * README: Gnulib normally doesn't generate a tarball.
70922
70923 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70924
70925         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70926         long int, not int, for nanosecond counts, so that people who are
70927         used to POSIX struct timespec won't be surprised.  Reported by Jim
70928         Meyering.
70929
70930 2005-12-28  Bruno Haible  <bruno@clisp.org>
70931
70932         * build-aux/config.rpath: Update from GNU gettext.
70933
70934 2005-12-16  Jim Meyering  <jim@meyering.net>
70935
70936         * modules/fprintftime: New module.
70937         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70938
70939 2005-12-16  Jim Meyering  <jim@meyering.net>
70940
70941         * m4/fprintftime.m4: New file.
70942
70943 2005-12-16  Jim Meyering  <jim@meyering.net>
70944
70945         * lib/fprintftime.c, lib/fprintftime.h: New files.
70946
70947 2005-12-15  Simon Josefsson  <jas@extundo.com>
70948
70949         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70950         new m4/socklen.m4.
70951
70952 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70953
70954         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70955         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70956
70957 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70958
70959         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70960         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70961         struct uparams is valid. Fall back to the default values if it is
70962         not.
70963
70964 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70965
70966         * modules/argp (Files): Add argp-pin.c
70967         (Depends-on): dirname
70968         (lib_SOURCES): Add argp-pin.c
70969
70970 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70971
70972         * m4/argp.m4:  Check if program_invocation_name and
70973         program_invocation_short_name are declared and define appropriate
70974         macros if they are not.
70975
70976 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70977
70978         * lib/argp-help.c (__argp_base_name): New function
70979         (__argp_short_program_name): Rewrite using __argp_base_name
70980         * lib/argp-namefrob.h: Define program_invocation_name and
70981         program_invocation_short_name if requested
70982         (__argp_base_name): Add prototype
70983         * lib/argp-parse.c (argp_def): Use gettext wrappers
70984         (argp_default_parser): Use __argp_base_name
70985         * lib/argp-pin.c: New file. Defines program_invocation_name and
70986         program_invocation_short_name on systems that lack them.
70987
70988 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70989
70990         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70991         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70992         porting problem reported by Georg Schwarz in
70993         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70994
70995 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70996
70997         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70998         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70999         porting problem reported by Georg Schwarz in
71000         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
71001
71002 2005-12-05  Bruno Haible  <bruno@clisp.org>
71003
71004         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
71005         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
71006         Reported by Mark Junker <mjscod@gmx.de>.
71007
71008 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
71009
71010         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
71011         Use implementation from Albert Chin, with some
71012         comments/corrections by Stepan Kasal and myself.
71013
71014 2005-12-02  Bruno Haible  <bruno@clisp.org>
71015
71016         * gnulib-tool (func_import): Accept GPLed build tool modules when
71017         --lgpl is given.
71018         * modules/csharpcomp-script: New file.
71019         * modules/csharpcomp: Depend on it.
71020         * modules/javacomp-script: New file.
71021         * modules/javacomp: Depend on it.
71022         Suggested by Simon Josefsson.
71023
71024 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
71025
71026         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
71027         statement, to work around an HP-UX 10.20 compiler bug reported by
71028         Peter O'Gorman.
71029
71030 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71031
71032         * modules/savedir (Depends-on): Add openat.
71033
71034 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71035
71036         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
71037         (uintmax_t) [defined uintmax_t]: Do not declare.
71038         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
71039         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
71040         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
71041         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
71042         sake of portability to weird hosts that C allows (though we don't
71043         know of any practical examples).
71044
71045         * lib/savedir.h (fdsavedir): New decl.
71046         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
71047         contains most of the former guts of savedir.
71048         (savedir): Use savedirstream.
71049         Include "openat.h".
71050
71051 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71052
71053         * modules/obstack (Files): Add m4/ulonglong.m4.
71054         Problem reported by Davide Angelocola.
71055
71056 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
71057
71058         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
71059         coreutils no longer futzes with rounding modes.
71060
71061 2005-11-14  Jim Meyering  <jim@meyering.net>
71062
71063         * lib/mkstemp-safer.c: Include <config.h>, required for possible
71064         replacement of mkstemp.
71065
71066 2005-11-10  Simon Josefsson  <jas@extundo.com>
71067
71068         * lib/readline.c: Remove EOL.
71069
71070 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71071
71072         * modules/gethrxtime (Depends-on): Add gettime.
71073
71074 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71075
71076         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
71077         or gettimeofday; no longer needed.
71078
71079 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71080
71081         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
71082         time business.
71083         (gethrxtime) [! (HAVE_NANOUPTIME
71084         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
71085         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
71086         our own approximation.
71087
71088 2005-11-08  Eric Blake  <ebb9@byu.net>
71089
71090         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
71091
71092 2005-11-08  Eric Blake  <ebb9@byu.net>
71093
71094         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
71095
71096 2005-11-04  Bruno Haible  <bruno@clisp.org>
71097
71098         * gnulib-tool: Implement --update mode.
71099
71100 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71101
71102         Fix porting problem reported by Theodoros V. Kalamatianos.
71103         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
71104         Don't assume that futimes failing means we must fail.
71105
71106 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71107
71108         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
71109         variables to suggest the intended function of the PATH_MAX check.
71110
71111 2005-10-30  Kean Johnston  <jkj@sco.com>
71112
71113         Trivial changes to support SCO systems.
71114         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
71115         as PATH_MAX.
71116         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
71117         where __ptr is null when no I/O is pending.
71118
71119 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71120
71121         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
71122         leave errno alone.  Problem reported by Dmitry V. Levin.
71123
71124 2005-10-28  Simon Josefsson  <jas@extundo.com>
71125
71126         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
71127         Test more.
71128
71129         * tests/test-gc-md2.c, tests/test-md2.c: New files.
71130
71131         * modules/md2, modules/md2-tests: New files.
71132
71133 2005-10-28  Simon Josefsson  <jas@extundo.com>
71134
71135         * m4/inet_ntop.m4: More tests.
71136
71137         * m4/gc-md2.m4, md2.m4: New file.
71138
71139 2005-10-28  Simon Josefsson  <jas@extundo.com>
71140
71141         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
71142         "restrict" keywords, as per POSIX.  Protect the function
71143         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
71144         Don't use K&R prototypes.  Check the sprintf return values.
71145         Re-define EAFNOSUPPORT if not present.  Indent.
71146
71147         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
71148         suggested by Bruno Haible <bruno@clisp.org>.
71149
71150         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
71151
71152         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
71153
71154         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
71155         libgcrypt).
71156
71157         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
71158
71159         * lib/md2.h, lib/md2.c: New files.
71160
71161 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
71162
71163         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
71164         errno alone.  Problem reported by Frederic Jolliton.
71165
71166 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * modules/verify (License): Change from GPL to LGPL.  This is a
71169         tiny module and there are apparently near-equivalents that are
71170         under the BSD license.
71171
71172 2005-10-24  Simon Josefsson  <jas@extundo.com>
71173
71174         * modules/sha1: Relicense to LGPL.
71175
71176 2005-10-24  Simon Josefsson  <jas@extundo.com>
71177
71178         * lib/md4.h: Shrink buffer size, now that we changed the type.
71179
71180 2005-10-23  Simon Josefsson  <jas@extundo.com>
71181
71182         * gnulib-tool (func_import): Fix --tests-base.
71183
71184 2005-10-22  Simon Josefsson  <jas@extundo.com>
71185
71186         * modules/arcfour (Depends-on): Need stdint.
71187
71188 2005-10-22  Simon Josefsson  <jas@extundo.com>
71189
71190         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
71191         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
71192
71193 2005-10-22  Simon Josefsson  <jas@extundo.com>
71194
71195         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
71196         suggested by Bruno Haible <bruno@clisp.org>.
71197
71198 2005-10-22  Simon Josefsson  <jas@extundo.com>
71199
71200         * lib/crc.h: Include stddef.h, for size_t.
71201
71202 2005-10-22  Simon Josefsson  <jas@extundo.com>
71203
71204         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
71205         arcfour_context struct (simplify test vector testing in GNU
71206         Shishi).
71207
71208 2005-10-21  Simon Josefsson  <jas@extundo.com>
71209
71210         * modules/des, modules/des-tests: New files.
71211
71212         * modules/gc-des, modules/gc-des-tests: New files.
71213
71214         * tests/test-des.c, tests/test-gc-des.c: New file.
71215
71216 2005-10-21  Simon Josefsson  <jas@extundo.com>
71217
71218         * modules/arctwo, modules/arctwo-tests: New files.
71219
71220         * tests/test-arctwo.c: New file.
71221
71222         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
71223
71224         * tests/test-gc-arctwo.c: New file.
71225
71226 2005-10-21  Simon Josefsson  <jas@extundo.com>
71227
71228         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
71229         Bruno Haible <bruno@clisp.org>.
71230
71231         * m4/gc-des.m4: New file.
71232
71233 2005-10-21  Simon Josefsson  <jas@extundo.com>
71234
71235         * m4/arctwo.m4: New file.
71236
71237         * m4/gc-arctwo.m4: New file.
71238
71239 2005-10-21  Simon Josefsson  <jas@extundo.com>
71240
71241         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
71242         block.
71243
71244 2005-10-21  Simon Josefsson  <jas@extundo.com>
71245
71246         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
71247         <bruno@clisp.org>.
71248
71249         * lib/hmac-sha1.c (hmac_sha1): Likewise.
71250
71251         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
71252         Bruno Haible <bruno@clisp.org>.
71253
71254         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
71255         <bruno@clisp.org>.
71256
71257 2005-10-21  Simon Josefsson  <jas@extundo.com>
71258
71259         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
71260
71261 2005-10-21  Simon Josefsson  <jas@extundo.com>
71262
71263         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
71264
71265 2005-10-21  Simon Josefsson  <jas@extundo.com>
71266
71267         * lib/des.h, lib/des.c: New files.
71268
71269         * lib/gc-gnulib.c: Support DES.c
71270
71271 2005-10-21  Simon Josefsson  <jas@extundo.com>
71272
71273         * lib/arctwo.h, lib/arctwo.c: New files.
71274
71275         * lib/gc-gnulib.c: Support ARCTWO.
71276
71277 2005-10-21  Simon Josefsson  <jas@extundo.com>
71278
71279         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
71280         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71281
71282 2005-10-21  Simon Josefsson  <jas@extundo.com>
71283
71284         * gnulib-tool (func_import, func_create_testdir): Define automake
71285         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
71286         Makefile.am snippet),
71287         suggested by Bruno Haible <bruno@clisp.org>.
71288
71289         * modules/gc (Makefile.am): Use it.
71290
71291 2005-10-21  Bruno Haible  <bruno@clisp.org>
71292
71293         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
71294         patch.
71295
71296 2005-10-19  Simon Josefsson  <jas@extundo.com>
71297
71298         * tests/test-gc-rijndael.c: New file.
71299
71300         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
71301
71302 2005-10-19  Simon Josefsson  <jas@extundo.com>
71303
71304         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
71305         interface too.
71306
71307 2005-10-19  Simon Josefsson  <jas@extundo.com>
71308
71309         * tests/test-gc-arcfour.c: New file.
71310
71311         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
71312
71313 2005-10-19  Simon Josefsson  <jas@extundo.com>
71314
71315         * modules/gc-md4, modules/gc-md4-tests: New file.
71316
71317         * tests/test-gc-md4.c: New file.
71318
71319 2005-10-19  Simon Josefsson  <jas@extundo.com>
71320
71321         * m4/gc-md4.m4: New file.
71322
71323 2005-10-19  Simon Josefsson  <jas@extundo.com>
71324
71325         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
71326         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
71327         <kasal@ucw.cz>.
71328
71329 2005-10-19  Simon Josefsson  <jas@extundo.com>
71330
71331         * m4/gc-arcfour.m4: New file.
71332
71333         * m4/gc-rijndael.m4: New file.
71334
71335 2005-10-19  Simon Josefsson  <jas@extundo.com>
71336
71337         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
71338
71339 2005-10-19  Simon Josefsson  <jas@extundo.com>
71340
71341         * lib/gc-gnulib.c: Support ARCFOUR.
71342
71343 2005-10-19  Simon Josefsson  <jas@extundo.com>
71344
71345         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
71346         support.
71347
71348         * lib/gc.h: Add ECB enum type.
71349
71350         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
71351
71352 2005-10-18  Simon Josefsson  <jas@extundo.com>
71353
71354         * tests/test-md5.c: New file.
71355
71356         * modules/md5-tests: New file.
71357
71358 2005-10-18  Simon Josefsson  <jas@extundo.com>
71359
71360         * tests/test-md4.c: New file.
71361
71362         * modules/md4, modules/md4-tests: New files.
71363
71364 2005-10-18  Simon Josefsson  <jas@extundo.com>
71365
71366         * m4/md4.m4: New file.
71367
71368 2005-10-18  Simon Josefsson  <jas@extundo.com>
71369
71370         * lib/md4.h, lib/md4.c: New files, based on md5.?.
71371
71372 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
71373
71374         * gnulib-tool (func_create_testdir): Omit the second check whether
71375         BUILT_SOURCES in nonempty.
71376
71377 2005-10-17  Simon Josefsson  <jas@extundo.com>
71378
71379         * tests/test-rijndael.c: New file.
71380
71381 2005-10-17  Simon Josefsson  <jas@extundo.com>
71382
71383         * modules/sha1: Depend on stdint instead of md5.
71384
71385         * modules/md5: Depend on stdint, remove uint32_t.
71386
71387 2005-10-17  Simon Josefsson  <jas@extundo.com>
71388
71389         * modules/gc-sha1-tests: New file.
71390
71391         * tests/test-gc-sha1.c: New file.
71392
71393 2005-10-17  Simon Josefsson  <jas@extundo.com>
71394
71395         * m4/md5.m4: Remove call to uint32_t.m4.
71396
71397 2005-10-17  Simon Josefsson  <jas@extundo.com>
71398
71399         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
71400
71401         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
71402         md5.h.
71403
71404         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
71405
71406         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
71407
71408 2005-10-17  Simon Josefsson  <jas@extundo.com>
71409
71410         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
71411
71412 2005-10-17  Simon Josefsson  <jas@extundo.com>
71413
71414         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
71415
71416 2005-10-17  Simon Josefsson  <jas@extundo.com>
71417
71418         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
71419
71420         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
71421
71422 2005-10-17  Bruno Haible  <bruno@clisp.org>
71423
71424         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
71425         that it can also be used in a test.
71426
71427 2005-10-16  Bruno Haible  <bruno@clisp.org>
71428
71429         * gnulib-tool (func_emit_tests_Makefile_am): Also define
71430         TESTS_ENVIRONMENT, so that individual tests can augment it.
71431
71432         * gnulib-tool (func_create_testdir): Use an intermediate target for
71433         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
71434         macros, like $(ALLOCA_H), which cannot be passed through the command
71435         line.
71436
71437 2005-10-15  Simon Josefsson  <jas@extundo.com>
71438
71439         * modules/rijndael-tests: New file.
71440
71441         * modules/rijndael: New file.
71442
71443 2005-10-15  Simon Josefsson  <jas@extundo.com>
71444
71445         * m4/rijndael.m4: New file.
71446
71447 2005-10-15  Simon Josefsson  <jas@extundo.com>
71448
71449         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
71450
71451         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
71452
71453 2005-10-14  Simon Josefsson  <jas@extundo.com>
71454
71455         * tests/test-arcfour.c: New file.
71456
71457         * modules/arcfour, modules/arcfour-tests: New files.
71458
71459 2005-10-14  Simon Josefsson  <jas@extundo.com>
71460
71461         * m4/arcfour.m4: New file.
71462
71463 2005-10-14  Simon Josefsson  <jas@extundo.com>
71464
71465         * lib/arcfour.h, lib/arcfour.c: New files.
71466
71467 2005-10-14  Roland McGrath  <roland@redhat.com>
71468
71469         Import from libc.  [BZ #1331]
71470         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
71471         macro argument.
71472         Reported by Matej Vela <vela@debian.org>.
71473
71474 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71475
71476         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
71477         include <wchar.h>; no longer needed.
71478
71479 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71480
71481         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
71482
71483 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
71484         and  Ulrich Drepper  <drepper@redhat.com>
71485
71486         Import from libc.
71487         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
71488         instead of inline stream orientation test and two separate
71489         function calls.  Pay no attention to USE_IN_LIBIO.
71490
71491 2005-10-13  Simon Josefsson  <jas@extundo.com>
71492
71493         * modules/gc-hmac-md5-tests: New file.
71494
71495         * tests/test-gc-hmac-sha1.c: New file.
71496
71497         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
71498
71499         * modules/gc-hmac-md5-tests: New file.
71500
71501         * tests/test-gc-md5.c: New file.
71502
71503         * modules/gc-md5-tests: New file.
71504
71505 2005-10-13  Simon Josefsson  <jas@extundo.com>
71506
71507         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
71508         Move memory allocation outside of loop.
71509
71510 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
71511
71512         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
71513         intermediate directory is in a read-only file system.  Problem
71514         reported by Eric Blake.
71515
71516 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
71517
71518         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
71519
71520 2005-10-12  Simon Josefsson  <jas@extundo.com>
71521
71522         * tests/test-hmac-sha1.c: New file.
71523
71524         * modules/hmac-sha1-tests: New file.
71525
71526         * modules/hmac-sha1: New file.
71527
71528 2005-10-12  Simon Josefsson  <jas@extundo.com>
71529
71530         * modules/gc-sha1: New file.
71531
71532 2005-10-12  Simon Josefsson  <jas@extundo.com>
71533
71534         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
71535
71536         * tests/test-gc-pbkdf2-sha1.c: New file.
71537
71538 2005-10-12  Simon Josefsson  <jas@extundo.com>
71539
71540         * modules/gc-md5, modules/gc-hmac-md5: New files.
71541
71542         * modules/gc (Files): Remove md5, memxor and hmac files.
71543
71544 2005-10-12  Simon Josefsson  <jas@extundo.com>
71545
71546         * m4/gc-pbkdf2-sha1.m4: New file.
71547
71548         * m4/gc-hmac-sha1.m4: New file.
71549
71550         * m4/gc-sha1: New file.
71551
71552         * m4/hmac-sha1.m4: New file.
71553
71554 2005-10-12  Simon Josefsson  <jas@extundo.com>
71555
71556         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
71557
71558         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
71559
71560 2005-10-12  Simon Josefsson  <jas@extundo.com>
71561
71562         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
71563         suggested by Bruno Haible <bruno@clisp.org>.
71564
71565 2005-10-12  Simon Josefsson  <jas@extundo.com>
71566
71567         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
71568
71569 2005-10-12  Simon Josefsson  <jas@extundo.com>
71570
71571         * lib/gc-pbkdf2-sha1.c: New file.
71572
71573         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
71574
71575 2005-10-12  Simon Josefsson  <jas@extundo.com>
71576
71577         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
71578
71579         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
71580
71581 2005-10-12  Simon Josefsson  <jas@extundo.com>
71582
71583         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
71584         GC_USE_HMAC_MD5, respectively.
71585
71586         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
71587         (gc_md5): Fix typo.
71588
71589         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
71590
71591         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
71592
71593         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
71594
71595 2005-10-12  Bruno Haible  <bruno@clisp.org>
71596
71597         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
71598         Reported by Stepan Kasal <kasal@ucw.cz>.
71599
71600 2005-10-11  Simon Josefsson  <jas@extundo.com>
71601
71602         * tests/test-crc.c: New file.
71603
71604         * modules/crc, modules/crc-tests: New files.
71605
71606 2005-10-11  Simon Josefsson  <jas@extundo.com>
71607
71608         * m4/crc.m4: New file.
71609
71610 2005-10-11  Simon Josefsson  <jas@extundo.com>
71611
71612         * lib/gc.h: Add gc_hash and gc_hash_buffer.
71613
71614         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
71615
71616         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
71617
71618 2005-10-11  Simon Josefsson  <jas@extundo.com>
71619
71620         * lib/crc.h, lib/crc.c: New files.
71621
71622         * lib/gc.h (gc_hash_buffer): Add doc.
71623
71624 2005-10-11  Bruno Haible  <bruno@clisp.org>
71625
71626         * modules/c-strcasestr: New file.
71627         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
71628
71629 2005-10-11  Bruno Haible  <bruno@clisp.org>
71630
71631         * modules/c-strcase: New file.
71632         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
71633
71634 2005-10-11  Bruno Haible  <bruno@clisp.org>
71635
71636         * lib/strcasecmp.c: Include limits.h.
71637         (strcasecmp): Avoid integer overflow on exotic platforms.
71638         * lib/strncasecmp.c: Include limits.h.
71639         (strncasecmp): Avoid integer overflow on exotic platforms.
71640         Reported by Paul Eggert.
71641
71642 2005-10-11  Bruno Haible  <bruno@clisp.org>
71643
71644         * lib/c-strcasestr.h: New file, from GNU gettext.
71645         * lib/c-strcasestr.c: New file, from GNU gettext.
71646
71647 2005-10-11  Bruno Haible  <bruno@clisp.org>
71648
71649         * lib/c-strcase.h: New file, from GNU gettext.
71650         * lib/c-strcasecmp.c: New file, from GNU gettext.
71651         * lib/c-strncasecmp.c: New file, from GNU gettext.
71652
71653 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71654
71655         * modules/mempcpy (License): GPL -> LGPL.
71656         * modules/strchrnul (License): Likewise.
71657         * modules/sysexits (License): Likewise.
71658
71659 2005-10-08  Simon Josefsson  <jas@extundo.com>
71660
71661         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
71662
71663 2005-10-07  Simon Josefsson  <jas@extundo.com>
71664
71665         * m4/memxor.m4: Remove gl_C_RESTRICT call.
71666
71667 2005-10-06  Simon Josefsson  <jas@extundo.com>
71668
71669         * tests/test-hmac-md5.c: New file.
71670
71671         * modules/hmac-md5-tests: New file.
71672
71673         * modules/hmac-md5: New file.
71674
71675 2005-10-06  Simon Josefsson  <jas@extundo.com>
71676
71677         * m4/hmac-md5.m4: New file.
71678
71679         * m4/memxor.m4: Require gl_C_RESTRICT.
71680
71681 2005-10-06  Simon Josefsson  <jas@extundo.com>
71682
71683         * lib/memxor.c (memxor): Avoid casts and warnings.
71684
71685 2005-10-06  Simon Josefsson  <jas@extundo.com>
71686
71687         * lib/hmac-md5.c: New file.
71688
71689         * lib/hmac.h: New file.
71690
71691 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71692
71693         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
71694         promotes to int, not unsigned int, to catch the AIX 5.3
71695         compiler bug.
71696
71697 2005-10-05  Simon Josefsson  <jas@extundo.com>
71698
71699         * modules/memxor: New file.
71700
71701         * modules/iconv (Files): Move config.rpath to havelib, it is used
71702         there.
71703
71704         * modules/havelib (Files): Add config.rpath.
71705
71706 2005-10-05  Simon Josefsson  <jas@extundo.com>
71707
71708         * m4/memxor.m4: New file.
71709
71710 2005-10-05  Simon Josefsson  <jas@extundo.com>
71711
71712         * lib/memxor.c (memxor): Fix compiler error.
71713
71714         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
71715         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
71716
71717         * lib/memxor.h, lib/memxor.c: New files.
71718
71719         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
71720         we assume all systems have it, suggested by Jim Meyering
71721         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
71722         any systems lack sys/socket.h; mingw32 is known to lack it, but we
71723         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
71724         same reasons.
71725
71726 2005-10-05  Simon Josefsson  <jas@extundo.com>
71727
71728         * config/srclist.txt: Add glibc bug 1423 for md5.h.
71729
71730 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71731
71732         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
71733         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
71734         needed, since the source code now assumes these .h files.
71735
71736 2005-10-05  Derek Price  <derek@ximbiot.com>
71737
71738         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
71739
71740 2005-10-05  Bruno Haible  <bruno@clisp.org>
71741
71742         * modules/stdint (License): Change to LGPL.
71743
71744 2005-10-04  Simon Josefsson  <jas@extundo.com>
71745
71746         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
71747         D. Baushke" <mdb@gnu.org>.
71748
71749 2005-10-04  Bruno Haible  <bruno@clisp.org>
71750
71751         * lib/verify.h (verify_true): Provide alternative definition for C++.
71752
71753 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
71754
71755         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
71756         (SSIZE_MAX): New macro, if not already defined.
71757         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
71758         than 2 GiB.
71759
71760 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71761
71762         Sync from coreutils.
71763         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
71764         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
71765         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
71766         ULLONG_MAX doesn't work with 2.7.2.1.
71767
71768 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71769
71770         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
71771         From Ben Pfaff.
71772
71773         * modules/exclude (Depends-on): Depend on verify.
71774         * modules/strtoimax (Depends-on): Likewise.
71775         * modules/utimecmp (Depends-on): Likewise.
71776
71777 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71778
71779         * lib/exclude.c: Include verify.h.
71780         (verify): Remove.  All callers changed to use verify.h's version.
71781         * lib/strtoimax.c: Likewise.
71782         * lib/utimecmp.c: Likewis.e
71783
71784         Sync from coreutils.
71785         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
71786         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
71787         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
71788         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
71789         bother returning ENOSYS if settimeofday or stime fails; just let
71790         them return whatever errno they want to return.
71791         * lib/utimens.c: Include unistd.h, for dup2.
71792         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
71793         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
71794
71795 2005-10-02  Jim Meyering  <jim@meyering.net>
71796
71797         Sync from coreutils.
71798         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71799         from glibc-2.2.5 that fails for read-only files.
71800
71801 2005-10-02  Jim Meyering  <jim@meyering.net>
71802
71803         Sync from coreutils.
71804         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71805         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71806         `#if HAVE_CONFIG_H'.
71807         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71808         Remove AT_FDCWD test.
71809         Do not consume the fd unless successful.
71810         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71811         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71812         block, so that we don't even try to compile it if settimeofday is
71813         available.  This works around a compilation failure on OSF1 V5.1,
71814         due to stime requiring a `long int*' while tv_sec is `int'.
71815
71816 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71817
71818         Sync from coreutils.
71819         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71820         against `yes', rather than just testing for nonempty.
71821
71822 2005-10-01  Simon Josefsson  <jas@extundo.com>
71823
71824         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
71825         and Darwin.
71826
71827         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
71828         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
71829         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
71830         freeaddrinfo and gai_strerror are declared by the POSIX headers.
71831         Check if struct addrinfo is declared.
71832
71833 2005-10-01  Simon Josefsson  <jas@extundo.com>
71834
71835         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
71836         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
71837         AI_* and EAI_* definitions.  Protect function declarations.
71838
71839 2005-10-01  Jim Meyering  <jim@meyering.net>
71840
71841         Sync from coreutils.
71842
71843         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
71844         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
71845         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
71846         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71847         in the inet and nsl libraries.  Required on Solaris 5.7.
71848
71849 2005-10-01  Jim Meyering  <jim@meyering.net>
71850
71851         Sync from coreutils.
71852         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71853         in the inet and nsl libraries.  Required on Solaris 5.7.
71854
71855 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
71856
71857         * lib/getdelim.c (getdelim): Remove unused variables.
71858
71859 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71860
71861         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
71862         so that the code works even with ancient cpp.  Portability problem
71863         with GCC 2.7.2.1 reported by Thomas M.Ott.
71864
71865 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71866
71867         * modules/regex (Depends-on): Add strcase.
71868
71869         * modules/gethostname (Licence): Change from GPL to LGPL, since
71870         gethostname.c is a trivial implementation of a standard library
71871         function.
71872         * modules/poll (License): Change from GPL to LGPL, since it's
71873         derived from LGPL code.
71874
71875 2005-09-27  Jim Meyering  <jim@meyering.net>
71876
71877         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
71878         HAVE_CONFIG_H.
71879
71880         * lib/intprops.h (signed_type_or_expr__): Define.
71881         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
71882         for unsigned types.
71883
71884 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71885
71886         * lib/verify.h (verify_expr): Remove, replacing with:
71887         (verify_true): New macro that returns true instead of void.
71888         (verify_type__): Remove.
71889         (verify): Use verify_true rather than verify_type__.
71890
71891 2005-09-26  Bruno Haible  <bruno@clisp.org>
71892
71893         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71894         is necessary.
71895         (lib_SOURCES): Remove mbchar.c.
71896         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71897         (Files): Add m4/mbrtowc.m4.
71898         * modules/mbiter: Likewise.
71899         * modules/mbuiter: Likewise.
71900
71901 2005-09-26  Bruno Haible  <bruno@clisp.org>
71902
71903         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71904         compile mbchar.c if they are not both present.
71905         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71906         * m4/mbiter.m4 (gl_MBITER): Likewise.
71907         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71908         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71909         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71910
71911 2005-09-25  Jim Meyering  <jim@meyering.net>
71912
71913         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71914         also uses socklen_t.
71915
71916 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71917
71918         * lib/utimens.c (ENOSYS): Define if not already defined.
71919         (futimens): Support having a null PATH if the file descriptor
71920         is nonnegative.
71921
71922         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71923         Remove.
71924         (__attribute): Define to empty unless GCC 3.1 or later.
71925         This works around a core dump on OpenBSD 3.4, which has GCC
71926         2.95.3, which dumps core when given __attribute__(()).  It also
71927         simplifies other tests, since we really don't want to bother with
71928         worrying about which ancient version of GCC supported what.
71929         Original problem reported by Yoann Vandoorselaere, with part of
71930         the fix suggested by Derek Price.
71931
71932 2005-09-24  Jim Meyering  <jim@meyering.net>
71933
71934         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71935         so we can once again use a positive bitfield width of 1 -- now we
71936         don't have to explain why we were using a bitfield width of 2.
71937
71938 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71939
71940         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71941         and similarly for the other external symbols.  Problem reported
71942         by James Gallager.
71943
71944         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71945         bug reported by Jim Meyering.
71946
71947         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71948         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71949         not needed, since socklen is a prerequisite module.
71950
71951 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71954         Problem reported by Eric Blake.
71955         (getaddrinfo): Initialize se so that it's not garbage.
71956         Redo internal storage allocation so that it doesn't make unportable
71957         assumptions about alignment.
71958         Fix a memory leak.
71959
71960         * lib/utimens.c (futimens): Use futimesat if available.
71961         Prefer it to futimes since it doesn't have the futimes bug.
71962
71963         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71964         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71965         Instead, declare a function that returns a pointer to an array,
71966         and use verify_type__ to declare the size of the array.
71967         Problem and germ of a solution reported by Bruno Haible.
71968         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71969         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71970
71971 2005-09-23  Jim Meyering  <jim@meyering.net>
71972
71973         Sync from coreutils.
71974         Correct build failure (socklen_t not defined) on at least
71975         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71976         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71977
71978 2005-09-23  Jim Meyering  <jim@meyering.net>
71979
71980         * modules/getaddrinfo (Depends-on): Add socklen.
71981
71982 2005-09-23  Bruno Haible  <bruno@clisp.org>
71983
71984         * tests/test-verify.c: New file.
71985
71986 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71987
71988         Sync from coreutils.
71989
71990         * modules/argmatch (Depends-on): Add verify.
71991         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71992         unistd-safer.
71993         * modules/save-cwd (Depends-on): Likewise.
71994
71995         * modules/openat (Files): Add lib/openat-die.c.
71996         (Depends-on): Remove error, exitfail.
71997         Add dirname.
71998
71999         * modules/verify: New file.
72000         * MODULES.html.sh (Diagnostics <assert.h>): New section,
72001         with "verify" module.
72002
72003 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72004
72005         Sync from coreutils.
72006
72007         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
72008         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
72009         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
72010         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
72011         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
72012         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
72013         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
72014         Don't bother checking for string.h, stdlib.h, unistd.h.
72015         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
72016         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
72017         module's job.
72018         * m4/jm-macros.m4 (gl_MACROS): Likewise.
72019         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
72020
72021         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
72022         (gl_GETDATE): Use it.
72023
72024         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
72025
72026 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72027
72028         Sync from coreutils.
72029
72030         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
72031         stat-time.h.
72032         * lib/argmatch.h: Include verify.h
72033         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
72034         (ARGMATCH_ASSERT): Remove; unused.
72035         * lib/canonicalize.c: Assume STDC_HEADERS.
72036         * lib/exclude.c: Include "strcase.h".
72037         * lib/regex_internal.h [!defined _LIBC]: Likewise.
72038         * lib/getusershell.c: Include stdio--.h rather than stdio.h
72039         and stdio-safer.h.
72040         (getusershell): Call fopen, not fopen_safer.
72041         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
72042         Do not include unistd-safer.h.
72043         (save_cwd): Don't call fd_safer; no longer needed
72044         now that we include fcntl--.h.
72045
72046         * lib/getdate.y (relative_time): New type.
72047         (RELATIVE_TIME_0): New constant.
72048         (parser_control): Use relative_time instead of doing it ourselves.
72049         (%union): Add new relative_time rel member.
72050         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
72051         Now typeless.
72052         (relunit, relunit_snumber): Now of type rel.
72053         (zone, rel, relunit, get_date): Adjust to above changes.
72054
72055         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
72056         Do not include unistd-safer.h.
72057         (getloadavg): Don't call fd_safer; no longer needed
72058         now that we include fcntl--.h.
72059
72060         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
72061         (make_dir_parents): Treat ENOSYS like EEXIST.
72062
72063         Improve quality of diagnostics on restore_cwd failure.
72064         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
72065         (make_dir_parents): Last arg is now int * (for errno), not bool *.
72066         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
72067         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
72068         each time through the loop.  Do not diagnose restore_cwd failure;
72069         that is the caller's job (and perhaps the caller does not care).
72070
72071         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
72072         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
72073         If the file already exists but is not a directory, don't bother
72074         to try to make its parents.
72075         Close potential file descriptor leak if we can't chdir("/") (!).
72076         Don't always return true if chdir($PWD) fails; return true only
72077         if the requested action was done successfully (except for the
72078         chdir($PWD)).
72079         Don't log final directory unless we actually made it.
72080         Refactor to avoid duplicate code to fix up permissions.
72081         Don't attempt to fix up parent permissions if chdir($PWD) fails.
72082
72083         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
72084         to make it a bit faster and (I hope) clearer.
72085         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
72086         Fix bug in formats like %2N.
72087
72088         * lib/verify.h: New file.
72089
72090 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72091
72092         Sync from coreutils.
72093         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
72094
72095 2005-09-22  Jim Meyering  <jim@meyering.net>
72096
72097         Sync from coreutils.
72098
72099         * m4/lstat.m4 (gl_FUNC_LSTAT):
72100         Use AC_LIBSOURCES to require lstat.c and lstat.h.
72101         Remove obsolete comment.
72102         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
72103         * m4/xstrtod.m4: Likewise.
72104
72105         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
72106
72107 2005-09-22  Jim Meyering  <jim@meyering.net>
72108
72109         Sync from coreutils.
72110
72111         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
72112
72113         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
72114         the .tm_year member, since otherwise gcc-4.0 would now warn about
72115         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
72116
72117         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
72118         order to avoid an unsuppressible warning from gcc on 64-bit systems.
72119
72120         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
72121         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
72122         when run in a time zone for which daylight savings time is in effect
72123         for the starting date.
72124
72125         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
72126         stop us from restricting permissions of just-created absolute-named
72127         directories.
72128         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
72129         to restore initial working directory.
72130         * lib/mkdir-p.c (make_dir_parents): New parameter:
72131         different_working_dir, to tell caller if/when we change the working
72132         directory and are unable to return to the initial one.
72133         * lib/mkdir-p.h (make_dir_parents): Update prototype.
72134         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
72135         `return false'.  This fixes a bug introduced on 2004-07-30.
72136
72137         * lib/openat.c (fdopendir): Be sure to close the supplied
72138         file descriptor before returning.  This makes our replacement
72139         implementation a little closer to Solaris's, where fdopendir
72140         ties the file descriptor to the returned DIR* pointer.
72141         * lib/openat.c (unlinkat): New function.
72142         * lib/openat.h (unlinkat): Add prototype.
72143         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
72144         (openat_restore_fail): Rename from openat_restore_die.
72145         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
72146
72147         Provide an alternative to exiting immediately upon save_cwd or
72148         restore_cwd failure.  Now, an application can arrange e.g.,
72149         to perform a longjump in that case.
72150         * lib/openat.c: Include dirname.h.
72151         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
72152         (rpl_openat, fdopendir, fstatat): Call openat_save_die
72153         and openat_restore_die rather than calling error directly.
72154         Don't include "error.h" or "exitfail.h"; they're no longer needed.
72155
72156         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
72157         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
72158         define.
72159
72160         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
72161         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
72162                             int utc, int nanoseconds);
72163         Background:
72164         date should not have to allocate a megabyte of virtual memory to
72165         handle a format argument like +%1048575T.  When implemented with
72166         strftime, it must allocate such a buffer, use strftime to fill it
72167         in, print it, then free it.
72168         With fprintftime, it simply prints everything and exits.
72169         With no need for memory allocation, that's one fewer way to fail.
72170         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
72171         optional field width, not before, so we accept %9:z, not %:9z.
72172         (my_strftime): Be sure to use L_('x') for literals.
72173
72174         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
72175         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
72176         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
72177         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
72178         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
72179         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
72180         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
72181         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
72182         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
72183         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
72184         * lib/xgethostname.c, lib/xreadlink.c:
72185         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
72186
72187         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
72188         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
72189         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
72190         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72191         and don't include <sys/file.h>).
72192
72193 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
72194
72195         Sync from coreutils.
72196
72197         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
72198         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
72199         [!LDAV_DONE]: Avoid unused variable warning.
72200
72201 2005-09-21  Bruno Haible  <bruno@clisp.org>
72202
72203         * lib/unicodeio.h (unicode_to_mb): New declaration.
72204
72205 2005-09-20  Derek Price  <derek@ximbiot.com>
72206
72207         * lib/getaddrinfo.c: Don't include <netdb.h> included from
72208         getaddrinfo.h.
72209
72210 2005-09-20  Bruno Haible  <bruno@clisp.org>
72211
72212         * gnulib-tool: Remove trailing slashes from the values specified for
72213         --source-base, --m4-base, --tests-base, --aux-dir.
72214         Suggested by Simon Josefsson <jas@extundo.com>.
72215
72216 2005-09-20  Bruno Haible  <bruno@clisp.org>
72217
72218         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
72219         func_modules_to_filelist, func_import, func_create_testdir): Make all
72220         sorting results locale-independent, so that gnulib-cache.m4 doesn't
72221         change when gnulib-tool is invoked in a different locale.
72222
72223 2005-09-19  Simon Josefsson  <jas@extundo.com>
72224
72225         * m4/socklen.m4: Fix typo.
72226
72227 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72228
72229         Use a consistent style for including <config.h>.
72230         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
72231         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
72232         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
72233         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
72234         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
72235         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
72236         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
72237         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
72238         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
72239         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
72240         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
72241         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
72242         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
72243         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
72244         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
72245         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
72246         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
72247         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
72248         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
72249         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
72250         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
72251         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
72252         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
72253         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
72254         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
72255         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
72256         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
72257         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
72258         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
72259         lib/xstrtoumax.c, lib/yesno.c:
72260         Standardize inclusion of config.h.
72261         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
72262         lib/inttostr.h:  Removed inclusion of config.h from header files.
72263         * lib/inttostr.c:  Adjusted in-tree users.
72264         * lib/timespec.h: Remove superfluous warning to include config.h.
72265         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
72266         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
72267         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
72268         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
72269         config.h with HAVE_CONFIG_H.
72270
72271 2005-09-19  Jim Meyering  <jim@meyering.net>
72272
72273         * modules/pathmax (License): Change to LGPL.
72274
72275 2005-09-19  Derek Price  <derek@ximbiot.com>
72276
72277         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
72278
72279 2005-09-19  Bruno Haible  <bruno@clisp.org>
72280
72281         * gnulib-tool (import): Provide default for --tests-base.
72282
72283 2005-09-19  Bruno Haible  <bruno@clisp.org>
72284
72285         * doc/quote.texi: New file, extracted from gnulib.texi.
72286         * doc/ctime.texi: New file, extracted from gnulib.texi.
72287         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
72288         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
72289         * doc/gnulib.texi: Include them.
72290
72291 2005-09-18  Bruno Haible  <bruno@clisp.org>
72292
72293         Portability fix.
72294         * gnulib-tool (func_readlink): New function.
72295         (func_ln_if_changed): Use it.
72296
72297 2005-09-18  Bruno Haible  <bruno@clisp.org>
72298
72299         * gnulib-tool: Support --with-tests also with --import.
72300         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
72301         (func_import): Use variables $testsbase and $inctests. Emit a
72302         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
72303         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
72304         SUBDIRS += $testsdir.
72305         (func_create_testdir): Update.
72306
72307 2005-09-18  Bruno Haible  <bruno@clisp.org>
72308
72309         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
72310         instead of $dry_run.
72311         (func_cp_if_changed, func_mv_if_changed): Remove functions.
72312         (func_ln_if_changed): Don't handle dry-run here.
72313         (func_import): In dry-run mode, detect more precisely which actions
72314         would be performed, and don't use "...ing" verbs.
72315
72316 2005-09-18  Bruno Haible  <bruno@clisp.org>
72317
72318         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
72319         (func_import): Use join on two temporary files instead of three nested
72320         loops, in order to determine which files are new or old.
72321
72322 2005-09-18  Bruno Haible  <bruno@clisp.org>
72323
72324         * gnulib-tool (func_import): Comment out code that spits out the
72325         new files with --dry-run.
72326
72327 2005-09-18  Bruno Haible  <bruno@clisp.org>
72328
72329         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
72330
72331 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         * lib/stat-time.h: New file.
72334         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
72335         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
72336         in a different way.
72337         (timespec_cmp): New function.
72338         * lib/utimecmp.c: Include stat-time.h.
72339         (SYSCALL_RESOLUTION): Depend on whether various struct stat
72340         members exist, not on the obsolescent ST_MTIM_NSEC.
72341         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
72342
72343 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72344
72345         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
72346
72347 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72348
72349         * MODULES.html.sh (File system functions): Add stat-time.
72350         * modules/stat-time: New file.
72351         * modules/timespec (Files): Remove m4/st_mtim.m4; this
72352         is now done in a different way, by the stat-time module.
72353         * modules/utimecmp (Depends-on): Add stat-time.
72354
72355 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72356
72357         * m4/st_mtim.m4: Remove.  Superseded by...
72358         * m4/stat-time.m4: New file.
72359         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
72360         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
72361
72362 2005-09-15  Derek Price  <derek@ximbiot.com>
72363
72364         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
72365
72366 2005-09-15  Derek Price  <derek@ximbiot.com>
72367
72368         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
72369         * lib/regex_internal.c: Ditto, using this...
72370         (__GNUC_PREREQ): ...new macro.
72371         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
72372         using...
72373         (__GNUC_PREREQ): ...this new macro.
72374
72375         * lib/strstr.h: Include string.h. Define strstr as a macro here.
72376
72377 2005-09-15  Derek Price  <derek@ximbiot.com>
72378             Paul Eggert  <eggert@cs.ucla.edu>
72379
72380         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
72381         changes, consolidating in...
72382         * lib/regex_internal.h: ...this file.
72383
72384 2005-09-13  Jim Meyering  <jim@meyering.net>
72385
72386         * lib/canon-host.c: Filter through gnu indent and reword comments
72387         slightly.
72388         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
72389
72390 2005-09-13  Derek Price  <derek@ximbiot.com>
72391
72392         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
72393         failure.
72394         Reported by Jim Meyering  <jim@meyering.net>.
72395
72396 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72397
72398         * lib/base64.c: Typo.
72399         (base64_encode): Put b64str in initialized data section.
72400
72401 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
72402
72403         Merge glibc and coreutils changes into gnulib, plus a few
72404         extra fixes.
72405         * lib/md5.c: Use #error rather than a string.
72406         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
72407         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
72408         (__attribute__): Define to empty for non recent-GCC.
72409         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
72410         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
72411         Renamed from their non-__ counterparts, with new macros replacing
72412         them if not _LIBC.  Add __THROW attribute.
72413         (rol): Remove.
72414         (struct md5_ctx): Align buffer if using GCC.
72415         * lib/sha1.h (struct sha1_ctx): Likewise.
72416         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
72417         The old name was backwards.
72418         (NOTSWAP): Remove; not used.
72419         (rol): New macro, moved here from md5.h.
72420         (sha1_process_block): Remove a FIXME that doesn't make sense.
72421
72422 2005-09-12  Derek Price  <derek@ximbiot.com>
72423
72424         Return usable errors from canon-host.
72425         * lib/canon-host.h: New file.
72426         * lib/canon-host.c (canon_host): Wrap...
72427         (canon_host_r): ...this new function, which now relies exclusively on
72428         getaddrinfo.
72429         (ch_strerror): New function.
72430         (last_cherror): New global.
72431         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
72432         interface.
72433         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
72434         void *.
72435         (freeaddrinfo): Free ai->ai_canonname when set.
72436
72437 2005-09-12  Derek Price  <derek@ximbiot.com>
72438
72439         Make canon-host require getaddrinfo.
72440         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
72441         AC_LIBSOURCE canon-host.h.  Call...
72442         (gl_PREREQ_CANON_HOST): ...this new function, which requires
72443         gl_GETADDRINFO.
72444         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
72445
72446 2005-09-12  Derek Price  <derek@ximbiot.com>
72447
72448         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
72449         LGPL.
72450         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
72451
72452 2005-09-12  Derek Price  <derek@ximbiot.com>
72453
72454         * lib/gai_strerror.c: Include config.h when available.  Include
72455         getaddrinfo.h before other headers to test interface.
72456         Reported by Larry Jones <lawrence.jones@ugs.com>.
72457
72458 2005-09-12  Derek Price  <derek@ximbiot.com>
72459             Paul Eggert  <eggert@cs.ucla.edu>
72460
72461         * modules/glob (Files): Add glob-libc.h.
72462
72463 2005-09-12  Derek Price  <derek@ximbiot.com>
72464             Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
72467         glob_.h, glob-libc.h.
72468         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
72469
72470 2005-09-12  Derek Price  <derek@ximbiot.com>
72471             Paul Eggert  <eggert@cs.ucla.edu>
72472
72473         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
72474         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
72475         protecting things that should be done only in gnulib contexts.
72476         * lib/glob_.h: New file, containing only the glob things needed for
72477         gnulib.
72478         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
72479         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
72480         (glob, globfree, glob_pattern_p): Now defined simply in terms of
72481         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
72482         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
72483         and to respect the namespace rules better.
72484
72485 2005-09-08  Simon Josefsson  <jas@extundo.com>
72486
72487         * modules/socklen: New file.
72488
72489 2005-09-08  Simon Josefsson  <jas@extundo.com>
72490
72491         * m4/socklen.m4: New file.
72492
72493 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72494
72495         * modules/utimens (Files): Add m4/utimbuf.m4, since
72496         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
72497         Reported by Sergey Poznyakoff.
72498
72499 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72500
72501         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
72502         definitions, since that's the preferred style in glibc.
72503         Fix a minor spacing issue, and update copyright notice to match
72504         glibc's.
72505
72506 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72507
72508         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
72509
72510 2005-09-06  Simon Josefsson  <jas@extundo.com>
72511
72512         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
72513         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
72514
72515 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72516
72517         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
72518         warning.
72519
72520 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72521
72522         * config/srclist.txt: Add glibc bug 1302.
72523
72524 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
72525
72526         Change bitset word type from unsigned int to unsigned long int,
72527         as this has better performance on typical 64-bit hosts.
72528         Port bitset code to hosts with unusual word sizes.
72529         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
72530         (build_collating_symbol):
72531         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
72532         argument is a bitset.  This is merely a style issue, but it makes
72533         it clearer that an entire array is expected.
72534         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
72535         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
72536         Port to the case where bitset_word is not the same as unsigned int.
72537         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72538         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
72539         Likewise.
72540         * lib/regexec.c (check_dst_limits_calc_pos_1,
72541         check_subexp_matching_top):
72542         (build_trtable, group_nodes_into_DFAstates):
72543         Likewise.
72544         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
72545         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
72546         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
72547         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
72548         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
72549         * lib/regcomp.c (optimize_subexps, lower_subexp):
72550         Work even if bitset_word has holes in its bitwise representation.
72551         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
72552         * lib/regexec.c (check_dst_limits_calc_pos_1,
72553         check_subexp_matching_top):
72554         Likewise.
72555         * lib/regex_internal.c (re_string_reconstruct):
72556         Don't assume UCHAR_MAX == 255.
72557         * lib/regex_internal.h (bitset_set_all): Likewise.
72558         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
72559         All uses changed.
72560         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
72561         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
72562         All uses changed.
72563         (BITSET_WORD_MAX): New macro.
72564         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
72565         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
72566         (bitset_empty, bitset_copy):
72567         Prefer sizeof (bitset) to multiplying it out ourselves.
72568         (bitset_not_merge): Remove; unused.
72569         (bitset_contain): Return bool, not unsigned int with one bit on.
72570         All callers changed.
72571         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
72572         alignment than re_node_set; do this by defining a new internal
72573         type struct dests_alloc and using it to allocate memory.
72574
72575 2005-09-05  Bruno Haible  <bruno@clisp.org>
72576
72577         * gnulib-tool (func_import): Fix comparison in handling of symbolic
72578         links.
72579
72580 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
72581
72582         * modules/size_max (Makefile.am): Add size_max.h
72583
72584 2005-09-04  Derek Price  <derek@ximbiot.com>
72585
72586         * gnulib-tool (func_import): Fix reversed $symbolic logic.
72587
72588 2005-09-03  Simon Josefsson  <jas@extundo.com>
72589
72590         * gnulib-tool: Fix typo.
72591
72592 2005-09-03  Simon Josefsson  <jas@extundo.com>
72593
72594         * config/srclist.txt: Add glibc bug 1293.
72595
72596 2005-09-03  Derek Price  <derek@ximbiot.com>
72597
72598         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
72599         From Larry Jones <lawrence.jones@ugs.com>.
72600
72601 2005-09-02  Simon Josefsson  <jas@extundo.com>
72602
72603         * modules/socklen: New file.
72604
72605 2005-09-02  Simon Josefsson  <jas@extundo.com>
72606
72607         * modules/havelib: New module.
72608
72609         * modules/gettext, modules/iconv, modules/lock, modules/readline:
72610         Use havelib.
72611
72612 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72613
72614         Check for arithmetic overflow when calculating sizes, to prevent
72615         some buffer-overflow issues.  These patches are conservative, in the
72616         sense that when I couldn't determine whether an overflow was possible,
72617         I inserted a run-time check.
72618         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
72619         macros.
72620         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
72621         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
72622         (re_xnrealloc, re_x2nrealloc): New inline functions.
72623         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
72624         parse_bracket_exp):
72625         (build_equiv_class, build_charclass): Check for arithmetic overflow
72626         in size expression calculations.
72627         * lib/regex_internal.c (re_string_realloc_buffers):
72628         (build_wcs_upper_buffer, re_node_set_add_intersect):
72629         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
72630         (re_dfa_add_node, register_state): Likewise.
72631         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
72632         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
72633         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
72634         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
72635
72636 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72637
72638         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72639         m4/ulonglong.m4.  Problem reported by Martin Lambers.
72640
72641 2005-09-02  Bruno Haible  <bruno@clisp.org>
72642
72643         Support for lib vs. lib64 distinction on biarch platforms.
72644         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
72645         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
72646         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
72647
72648 2005-09-02  Bruno Haible  <bruno@clisp.org>
72649
72650         * gnulib-tool (import): In the other first-use case, provide defaults
72651         as well.
72652
72653 2005-09-02  Bruno Haible  <bruno@clisp.org>
72654
72655         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
72656         patches not yet found in the latest gettext release.
72657
72658 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72659
72660         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
72661         to avoid a collision with bits/local_lim.h in glibc.
72662         All uses changed.  Problem reported by Dmitry V. Levin in
72663         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
72664
72665         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
72666         bugs in int versus size_t comparisons.
72667         (re_string_context_at): Fix bug where the code assumed that
72668         Idx is signed.
72669
72670         Use bool where appropriate.
72671         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
72672         All callers changed.
72673         (calc_eclosure_iter): Likewise, for ROOT arg.
72674         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
72675         (build_charclass_op): Likewise, for NON_MATCH arg.
72676         * lib/regex_internal.c (re_string_allocate, re_string_construct):
72677         (re_string_construct_common): Likewise, for ICASE arg.
72678         * lib/regexec.c (re_search_2_stub, re_search_stub):
72679         Likewise, for RET_LEN arg.
72680         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
72681         (set_regs): Likewise, for FL_BACKTRACK arg.
72682         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
72683         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
72684         (calc_eclosure_iter, parse_bracket_exp):
72685         Use bool for internal variables that are booleans.
72686         * lib/regexec.c (re_search_internal, check_matching,
72687         proceed_next_node):
72688         (set_regs, build_sifted_states, sift_states_bkref):
72689         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
72690         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72691         (find_collation_sequence_value):
72692         Likewise.
72693         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
72694         (re_node_set_compare):
72695         Return bool, not int. All callers changed.
72696         * lib/regexec.c (check_halt_node_context, check_dst_limits):
72697         (build_trtable, check_node_accept): Likewise.
72698         * lib/regex_internal.h: Include stdbool.h.
72699
72700         Fix bugs uncovered when converting to bool.
72701         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
72702         failure instead of charging ahead blindly.
72703         * lib/regex_internal.c (register_state): Likewise.
72704         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
72705         for freeing internal storage.
72706         (group_nodes_into_DFA_states): Use unsigned int, not int, for
72707         bitset pieces used as boolean, to avoid undefined behavior
72708         on hosts that do int overflow checking.
72709
72710 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72711
72712         * config/srclist.txt: Add glibc bugs 1285-1287.
72713
72714 2005-09-01  Jim Meyering  <jim@meyering.net>
72715
72716         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
72717         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
72718         Require gl_STAT_MACROS, too.
72719
72720 2005-09-01  Bruno Haible  <bruno@clisp.org>
72721
72722         * gnulib-tool (import): In the first-use case, provide defaults.
72723
72724 2005-09-01  Bruno Haible  <bruno@clisp.org>
72725
72726         * gnulib-tool (func_import): Remove the .tmp files.
72727
72728 2005-09-01  Bruno Haible  <bruno@clisp.org>
72729
72730         * gnulib-tool (func_import): Fix handling of symbolic links.
72731
72732 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72733
72734         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
72735         old glibc regex code mishandles strings longer than 2**31 bytes.
72736         This patch fixes this when the regex code is used in gnulib
72737         (i.e., outside glibc).
72738
72739         This patch should not affect the use of the regex code inside
72740         glibc.  No doubt this problem also needs to be handled for glibc
72741         as well, but the result will be an incompatible change to the
72742         glibc ABI, and the old ABI will have to be supported too.  That
72743         can be the the subject for another patch.
72744
72745         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
72746         governing whether the rest of this patch is active.  By default,
72747         the macro is disabled and the patch has no effect.
72748         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
72749         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
72750         (struct re_pattern_buffer, re_search, re_search_2, re_match):
72751         (re_match_2, re_set_registers): Use the new types.
72752         * lib/regex_internal.h (Idx, re_hashval_t): New types.
72753         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
72754         New macros.
72755         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
72756         (re_string_context_at, bin_tree_t, re_dfastate_t):
72757         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
72758         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
72759         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
72760         (re_string_char_size_at, re_string_wchar_at):
72761         (re_string_elem_size_at):
72762         Use the new types and macros to port to 64-bit hosts.
72763         Use unsigned types for internal values, so that the code
72764         mostly works even for arrays larger than SSIZE_MAX.
72765         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
72766         (search_duplicated_node, calc_eclosure_iter, fetch_number):
72767         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
72768         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
72769         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
72770         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
72771         (calc_inveclosure, parse_dup_op, build_range_exp):
72772         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
72773         (fetch_number, create_token_tree, mark_opt_subexp):
72774         Likewise.
72775         * lib/regex_internal.c (re_string_construct_common,
72776         create_ci_newstate):
72777         (create_cd_newstate, re_string_allocate, re_string_construct):
72778         (re_string_realloc_buffers, build_wcs_upper_buffer):
72779         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72780         (re_string_reconstruct, re_string_peek_byte_case):
72781         (re_string_fetch_byte_case, re_string_context_at):
72782         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72783         (re_node_set_init_copy, re_node_set_add_intersect):
72784         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72785         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72786         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72787         (re_acquire_state, re_acquire_state_context, register_state):
72788         Likewise.
72789         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
72790         search_cur_bkref_entry):
72791         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
72792         (re_search_internal, re_search_2_stub, re_search_stub)
72793         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
72794         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72795         (update_cur_sifted_state, check_dst_limits):
72796         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72797         (check_subexp_limits, sift_states_bkref, merge_state_array):
72798         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72799         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72800         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72801         (expand_bkref_cache, check_node_accept_bytes):
72802         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72803         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72804         (acquire_init_state_context, check_halt_node_context):
72805         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72806         (sift_states_backward, clean_state_log_if_needed):
72807         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72808         (find_recover_state, transit_state_sb, transit_state_mb):
72809         (transit_state_bkref, build_trtable, match_ctx_clean):
72810         Likewise.
72811         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72812         to work around an assumption that REG_MISSING is negative.
72813
72814         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72815         (seek_collating_symbol_entry) [defined _LIBC]:
72816         (lookup_collation_sequence_value) [defined _LIBC]:
72817         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72818         Use prototypes rather than old-style function definitions.
72819         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72820         (transit_state_sb) [0]:
72821         (find_collation_sequence_value) [defined _LIBC]: Likewise.
72822
72823         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
72824         rm_eo.
72825
72826         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
72827         (optimize_subexps, lower_subexp):
72828         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
72829         since the signed shift might overflow.  Use 1u<<31 instead.
72830         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72831         Likewise.
72832         * lib/regexec.c (check_dst_limits_calc_pos_1,
72833         check_subexp_matching_top): Likewise.
72834
72835         * lib/regcomp.c (optimize_subexps, lower_subexp):
72836         Use CHAR_BIT rather than 8, for clarity.
72837         * lib/regexec.c (check_dst_limits_calc_pos_1):
72838         (check_subexp_matching_top): Likewise.
72839         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
72840         have to worry about portability issues when shifting it left.
72841         Remove no-longer-needed test for table_size > 0.
72842         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
72843         in a word, as the resulting behavior is undefined.
72844         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
72845         in one case, a <= should have been an <, and in another case the
72846         whole test was missing.
72847         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
72848         the standard name CHAR_BIT.
72849         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
72850         this is not true on one's complement and signed-magnitude hosts.
72851
72852         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
72853         next_last_offset.
72854         (struct re_dfa_t): Remove unused member states_alloc.
72855         * lib/regcomp.c (init_dfa): Don't initialize unused members.
72856
72857 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72858
72859         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
72860         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
72861         and large-file glibc and in 32-bit large-file Solaris.
72862
72863 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72864
72865         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
72866         lengths fit in regoff_t; this isn't true if regoff_t is the same
72867         width as size_t.
72868         * lib/regex.c (re_search_internal): 5th arg is LAST_START
72869         (= START + RANGE) instead of RANGE.  This avoids overflow
72870         problems when regoff_t is the same width as size_t.
72871         All callers changed.
72872         (re_search_2_stub): Check for overflow when adding the
72873         sizes of the two strings.
72874         (re_search_stub): Check for overflow when adding START
72875         to RANGE; if it occurs, substitute the extreme value.
72876
72877 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72878
72879         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
72880
72881 2005-08-31  Jim Meyering  <jim@meyering.net>
72882
72883         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72884         a pointer-to-const.
72885         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72886         (register_state): Likewise.
72887         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72888         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72889         (group_nodes_into_DFAstates): Likewise.
72890
72891 2005-08-31  Jim Meyering  <jim@meyering.net>
72892
72893         * check-module: Add a FIXME comment.
72894
72895 2005-08-31  Eric Blake  <ebb9@byu.net>
72896
72897         * modules/unistd-safer (Files): Add unistd--.h.
72898         * modules/stdio-safer (Files): Add stdio--.h.
72899
72900 2005-08-31  Derek Price  <derek@ximbiot.com>
72901
72902         * lib/getdelim.c (getdelim): Return EOF on EOF.
72903         Reported by Larry Jones <lawrence.jones@ugs.com>.
72904
72905 2005-08-31  Bruno Haible  <bruno@clisp.org>
72906
72907         Avoid unnecessary diffs in the generated lib/Makefile.am.
72908         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72909         the generated files.
72910         (func_import): Don't set cmd.
72911
72912 2005-08-31  Bruno Haible  <bruno@clisp.org>
72913
72914         * lib/strstr.c: Include <stddef.h>, for NULL.
72915         * lib/strcasestr.c: Likewise.
72916         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72917
72918 2005-08-31  Bruno Haible  <bruno@clisp.org>
72919
72920         * gnulib-tool: New option --macro-prefix.
72921         (func_import): Use macro_prefix.
72922         (import): Handle option --macro-prefix.
72923
72924 2005-08-31  Bruno Haible  <bruno@clisp.org>
72925
72926         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72927         Also use new variables cached_lgpl, cached_libtool.
72928
72929 2005-08-31  Bruno Haible  <bruno@clisp.org>
72930
72931         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72932         always instantiating them.
72933
72934 2005-08-31  Bruno Haible  <bruno@clisp.org>
72935
72936         * gnulib-tool (func_import): Read the previous cached settings
72937         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72938         earlier added by gnulib but are now dropped. Warn when a gnulib file
72939         overwrites a non-gnulib file.
72940
72941 2005-08-31  Bruno Haible  <bruno@clisp.org>
72942
72943         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72944         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72945         projects that don't keep autogenerated files in CVS. Put into
72946         actioncmd only the specified modules, not the transitive closure.
72947
72948 2005-08-31  Bruno Haible  <bruno@clisp.org>
72949
72950         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72951         Create directories that shall be filled.
72952         (import): Don't look for gl_* macros in configure.ac. Recurse across
72953         all directories containing a gnulib-cache.m4 files, if meaningful.
72954
72955 2005-08-31  Bruno Haible  <bruno@clisp.org>
72956
72957         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72958         (import): Set seen_libtool when we see gl_LIBTOOL.
72959
72960 2005-08-31  Bruno Haible  <bruno@clisp.org>
72961
72962         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72963         declaration macro definitions from generated gnulib.m4.
72964
72965 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72966
72967         * lib/iconvme.h: Add prototype for iconv_alloc.
72968
72969 2005-08-29  Simon Josefsson  <jas@extundo.com>
72970
72971         * lib/iconvme.c: Fix errno.
72972
72973 2005-08-29  Bruno Haible  <bruno@clisp.org>
72974
72975         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72976         that it works when the directory contains spaces.
72977
72978 2005-08-29  Bruno Haible  <bruno@clisp.org>
72979
72980         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72981
72982 2005-08-29  Bruno Haible  <bruno@clisp.org>
72983
72984         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72985         Emit more advice.
72986
72987 2005-08-29  Bruno Haible  <bruno@clisp.org>
72988         and Stepan Kasal  <kasal@ucw.cz>
72989
72990         * check-module: If more parameters are given, check each of them
72991         separately; add more exceptions, as noted by Jim Meyering.
72992         (check_module): New procedure.
72993         (%exempt_header): Now contains all exceptions.
72994
72995 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72996
72997         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72998
72999 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73000
73001         * lib/iconvme.c: Split iconv_string into iconv_alloc.
73002
73003 2005-08-28  Bruno Haible  <bruno@clisp.org>
73004
73005         * m4/gnulib-tool.m4: New file.
73006
73007 2005-08-27  Jim Meyering  <jim@meyering.net>
73008
73009         * modules/unistd-safer (Files): Add pipe-safer.c.
73010         * modules/fcntl-safer (Files): Add creat-safer.c.
73011
73012 2005-08-27  Jim Meyering  <jim@meyering.net>
73013
73014         * m4/stdlib-safer.m4: New file.  From coreutils.
73015         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
73016         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
73017         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
73018         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
73019         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
73020
73021 2005-08-27  Jim Meyering  <jim@meyering.net>
73022
73023         * lib/fopen-safer.c: Merge minor changes from coreutils.
73024         * lib/dup-safer.c: Likewise.
73025         * lib/fd-safer.c: Likewise.
73026
73027         Merge from coreutils.
73028         * lib/stdio--.h: New file.
73029         * lib/stdlib--.h: New file.
73030         * lib/mkstemp-safer.c: New file.
73031
73032         GNU tar needs these.
73033         * lib/pipe-safer.c: New file.
73034         * lib/creat-safer.c: New file.
73035         * lib/fcntl--.h (creat): Define to creat_safer.
73036         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
73037         * lib/unistd--.h (pipe): Define to pipe_safer.
73038         * lib/unistd-safer.h: Declare pipe_safer.
73039
73040 2005-08-26  Simon Josefsson  <jas@extundo.com>
73041
73042         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
73043         Haible <bruno@clisp.org>.
73044
73045 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
73046
73047         * lib/regex_internal.h: Remove all references to
73048         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
73049         or better.
73050         (bitset_not, bitset_merge, bitset_not_merge):
73051         (bitset_mask, re_string_allocate, re_string_construct):
73052         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
73053         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
73054         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
73055         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
73056         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73057         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73058         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
73059         (re_acquire_state_context):
73060         Remove unnecessary forward decls.
73061         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
73062         Put __attribute at function definition,
73063         now that the function decl has been removed.
73064         * lib/regex_internal.c (re_string_peek_byte_case):
73065         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
73066         Likewise.
73067
73068 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
73069
73070         * m4/regex.m4: Add AC_PREREQ(2.50).
73071         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
73072
73073 2005-08-25  Simon Josefsson  <jas@extundo.com>
73074
73075         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
73076         __fsetlocking.
73077
73078 2005-08-25  Simon Josefsson  <jas@extundo.com>
73079
73080         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
73081         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
73082         GLIBC specific code.
73083
73084 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73085
73086         Make regex safe for g++.  This fixes one real bug (an "err"
73087         that should have been "*err").  g++ problem reported by
73088         Sam Steingold.
73089         * lib/regex_internal.h (re_calloc): New macro, consistent with
73090         re_malloc etc.  All callers of calloc changed to use re_calloc.
73091         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
73092         not int.  All callers changed.
73093         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
73094         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
73095         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
73096         (find_recover_state): Change "err" to "*err"; this fixes what
73097         appears to be a real bug.
73098         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
73099         versus int.
73100
73101 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73102
73103         * modules/regex (Depends-on): Add malloc, since the code
73104         assumes that !malloc(0) means failure.
73105
73106 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73107
73108         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
73109
73110         alloca modernization/simplification for regex.
73111         * lib/regex.c: Remove portability cruft for alloca.  This no longer
73112         needs to be at the start of the file, and can be moved into
73113         regex_internal.h and simplified.
73114         * lib/regex_internal.h: Include <alloca.h>.
73115         (__libc_use_alloca) [!defined _LIBC]: New macro.
73116         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
73117         now works outside glibc.
73118
73119 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73120
73121         * config/srclist.txt: Add glibc bugs 1241, 1245.
73122
73123 2005-08-25  Jim Meyering  <jim@meyering.net>
73124
73125         * lib/open-safer.c: Include <config.h>.
73126         Otherwise, we'd lose LARGEFILE support in any file using
73127         e.g. "fcntl--.h"
73128
73129 2005-08-25  Bruno Haible  <bruno@clisp.org>
73130
73131         * m4/minmax.m4: Require autoconf 2.52.
73132         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
73133         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
73134         alternatives of translit over the alphabet.
73135         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
73136
73137 2005-08-24  Simon Josefsson  <jas@extundo.com>
73138
73139         * tests/test-getpass.c: New file.
73140
73141 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73142
73143         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
73144         for GNU regex features.
73145
73146 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73147
73148         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
73149         * lib/regex.h (regerror): Likewise.
73150
73151         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
73152         requires this.  (The code never needed it.)
73153
73154         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
73155         All uses of recently-renamed identifiers changed to use the new,
73156         POSIX-compliant names.  The code will build and run just fine
73157         without these changes, but it's better to eat our own dog food
73158         and use the standard-conforming names.
73159
73160         * lib/regex.h: Fix a multitude of POSIX name space violations.
73161         These changes have an effect only for programs that define
73162         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
73163         do not change anything for programs compiled in the normal way.
73164         Also, there is no effect on the ABI.
73165
73166         (_REGEX_SOURCE): New macro.
73167         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
73168         defined and _GNU_SOURCE is not; this fixes a name space violation.
73169
73170         Rename the following macros to obey POSIX requirements.
73171         The old names are still visible as macros if _REGEX_SOURCE is defined.
73172         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
73173         RE_BACKSLASH_ESCAPE_IN_LISTS.
73174         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
73175         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
73176         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
73177         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
73178         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
73179         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
73180         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
73181         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
73182         (REG_INTERVALS): renamed from RE_INTERVALS.
73183         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
73184         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
73185         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
73186         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
73187         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
73188         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
73189         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
73190         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
73191         RE_UNMATCHED_RIGHT_PAREN_ORD.
73192         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
73193         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
73194         (REG_DEBUG): renamed from RE_DEBUG.
73195         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
73196         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
73197         unusual, since we can't clash with the POSIX REG_ICASE.
73198         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
73199         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
73200         (REG_NO_SUB): renamed from RE_NO_SUB.
73201         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
73202         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
73203         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
73204         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
73205         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
73206         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
73207         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
73208         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
73209         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
73210         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
73211         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
73212         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
73213         RE_SYNTAX_POSIX_MINIMAL_BASIC.
73214         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
73215         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
73216         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
73217         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
73218         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
73219         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
73220         (REG_FIXED): Renamed from REGS_FIXED.
73221         (REG_NREGS): Renamed from RE_NREGS.
73222
73223         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
73224         of other REG_* macros, since POSIX says the user is allowed to
73225         #undef these macros selectively.
73226
73227         (reg_errcode_t): Update comment stating what other tables need
73228         to be consistent.
73229
73230         Rename the following enum values to obey POSIX requirements.
73231         The old names are still visible as macros.
73232         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
73233         is not defined, since GNU is supposed to be a superset of POSIX as
73234         much as possible, and since we want reg_errcode_t to be a signed
73235         type for implementation consistency.
73236         (_REG_NOERROR): Renamed from REG_NOERROR.
73237         (_REG_NOMATCH): Renamed from REG_NOMATCH.
73238         (_REG_BADPAT): Renamed from REG_BADPAT.
73239         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
73240         (_REG_ECTYPE): Renamed from REG_ECTYPE.
73241         (_REG_EESCAPE): Renamed from REG_EESCAPE.
73242         (_REG_ESUBREG): Renamed from REG_ESUBREG.
73243         (_REG_EBRACK): Renamed from REG_EBRACK.
73244         (_REG_EPAREN): Renamed from REG_EPAREN.
73245         (_REG_EBRACE): Renamed from REG_EBRACE.
73246         (_REG_BADBR): Renamed from REG_BADBR.
73247         (_REG_ERANGE): Renamed from REG_ERANGE.
73248         (_REG_ESPACE): Renamed from REG_ESPACE.
73249         (_REG_BADRPT): Renamed from REG_BADRPT.
73250         (_REG_EEND): Renamed from REG_EEND.
73251         (_REG_ESIZE): Renamed from REG_ESIZE.
73252         (_REG_ERPAREN): Renamed from REG_ERPAREN.
73253         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
73254         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
73255         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
73256         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
73257
73258         (_REG_RE_NAME, _REG_RM_NAME): New macros.
73259         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
73260         changed.  But support the old name if the new one is not defined
73261         and if _REGEX_SOURCE.
73262
73263         Change the following member names in struct re_pattern_buffer.
73264         The old names are still supported if !_REGEX_SOURCE.
73265         The new names are always supported, regardless of _REGEX_SOURCE.
73266         (re_buffer): Renamed from buffer.
73267         (re_allocated): Renamed from allocated.
73268         (re_used): Renamed from used.
73269         (re_syntax): Renamed from syntax.
73270         (re_fastmap): Renamed from fastmap.
73271         (re_translate): Renamed from translate.
73272         (re_can_be_null): Renamed from can_be_null.
73273         (re_regs_allocated): Renamed from regs_allocated.
73274         (re_fastmap_accurate): Renamed from fastmap_accurate.
73275         (re_no_sub): Renamed from no_sub.
73276         (re_not_bol): Renamed from not_bol.
73277         (re_not_eol): Renamed from not_eol.
73278         (re_newline_anchor): Renamed from newline_anchor.
73279
73280         Change the following member names in struct re_registers.
73281         The old names are still supported if !_REGEX_SOURCE.
73282         The new names are always supported, regardless of _REGEX_SOURCE.
73283         (rm_num_regs): Renamed from num_regs.
73284         (rm_start): Renamed from start.
73285         (rm_end): Renamed from end.
73286
73287         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
73288         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
73289         Prepend __ to parameter names.
73290
73291         Undo yesterday's changes.
73292
73293 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73294
73295         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
73296         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
73297         lib/regex.c.
73298
73299 2005-08-24  Jim Meyering  <jim@meyering.net>
73300
73301         Sync from coreutils.
73302         * m4/fcntl-safer.m4: New file.
73303
73304         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
73305         and object files for this module.
73306
73307 2005-08-24  Jim Meyering  <jim@meyering.net>
73308
73309         Sync from coreutils.
73310         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
73311
73312 2005-08-24  Jim Meyering  <jim@meyering.net>
73313
73314         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
73315         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
73316
73317 2005-08-24  Jim Meyering  <jim@meyering.net>
73318
73319         * modules/fcntl-safer: New module.
73320         * modules/fts (Depends-on): Add fcntl-safer.
73321         * MODULES.html.sh (File descriptor based Input/Output):
73322         Add fcntl-safer.
73323
73324 2005-08-24  Bruno Haible  <bruno@clisp.org>
73325
73326         Support for unit test modules.
73327         * modules/README: Mention tests modules.
73328         * modules/TEMPLATE-TESTS: New file.
73329         * gnulib-tool: New options --extract-tests-module, --with-tests and
73330         --tests-base (unused for the moment).
73331         (testsbase, inctests): New variables.
73332         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
73333         (func_verify_module): Exclude TEMPLATE-TESTS.
73334         (func_verify_nontests_module, func_verify_tests_module): New functions.
73335         (func_get_dependencies): Add implicit dependency for tests modules.
73336         (func_get_tests_module): New function.
73337         (func_modules_transitive_closure): When --with-tests was specified,
73338         include the unit tests as well, unless explicitly avoided.
73339         (func_emit_lib_Makefile_am): Ignore the tests modules here.
73340         (func_emit_tests_Makefile_am): New function.
73341         (func_create_testdir): When --with-tests was specified, emit a
73342         tests/ directory.
73343         * MODULES.html.sh (Future developments): Update.
73344
73345 2005-08-24  Bruno Haible  <bruno@clisp.org>
73346
73347         * modules/tls-tests: New file.
73348         * tests/test-tls.c: New file, from GNU gettext.
73349
73350 2005-08-24  Bruno Haible  <bruno@clisp.org>
73351
73352         * modules/lock-tests: New file.
73353         * tests/test-lock.c: New file, from GNU gettext.
73354
73355 2005-08-24  Bruno Haible  <bruno@clisp.org>
73356
73357         * lib/lock.h: Add multiple inclusion guard.
73358         * lib/tls.h: Add multiple inclusion guard.
73359
73360 2005-08-24  Bruno Haible  <bruno@clisp.org>
73361
73362         * gnulib-tool: Add support for the --aux-dir option to
73363         --create-testdir, --create-megatestdir, --test, --megatest.
73364         (func_create_testdir, func_create_megatestdir): Optionally emit a
73365         AC_CONFIG_AUX_DIR directive.
73366         (create-testdir, create-megatestdir, test, megatest): Provide a
73367         default value for $auxdir.
73368
73369 2005-08-24  Bruno Haible  <bruno@clisp.org>
73370
73371         * gnulib-tool (import): Use compound statement instead of subshell
73372         where possible.
73373
73374 2005-08-24  Bruno Haible  <bruno@clisp.org>
73375
73376         * gnulib-tool (import): Change --aux-dir default to "build-aux".
73377
73378 2005-08-24  Bruno Haible  <bruno@clisp.org>
73379
73380         * gnulib-tool (func_version): Update.
73381
73382 2005-08-24  Bruno Haible  <bruno@clisp.org>
73383
73384         * gnulib-tool (func_import, func_create_testdir,
73385         func_create_megatestdir): Quote all autoconf macro arguments.
73386
73387 2005-08-24  Bruno Haible  <bruno@clisp.org>
73388
73389         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
73390         option --force, because --force causes the aclocal.m4 of each
73391         subdirectory to be newer than the corresponding config.h.in.
73392
73393 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73394
73395         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
73396         All contents moved to gl_REGEX.
73397         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
73398         assume that it does.
73399
73400 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73401
73402         * lib/regex.h (REG_NOSYS)
73403         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
73404         Define, since POSIX requires it as of 2001.
73405         (_REG_ENOSYS)
73406         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
73407         New private symbol, used to keep the enum signed in all cases.
73408         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
73409         Youngman in
73410         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
73411
73412         * lib/regex_internal.c (re_string_skip_chars, register_state):
73413         (calc_state_hash):
73414         Remove forward decls; no longer needed now that we use prototypes.
73415         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
73416         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
73417         (clean_state_log_if_needed): Likewise.
73418
73419 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73420
73421         * config/srclist.txt: Add glibc bugs 1231-1233.
73422
73423 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73424
73425         Fix problems reported by Sam Steingold in
73426         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
73427         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
73428         assumed that reg_errcode_t is a signed type, which is not
73429         necessarily true if _XOPEN_SOURCE is not defined.
73430         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
73431         since some compilers warn about it otherwise.
73432
73433 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73434
73435         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
73436         (init_word_char, create_initial_state, duplicate_node_closure):
73437         (fetch_token, peek_token_bracket, build_range_exp):
73438         (build_collating_symbol): Remove forward decls; no longer needed
73439         now that we use prototypes.
73440
73441         * lib/regcomp.c:
73442         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
73443         (re_compile_fastmap_iter, regcomp, regerror, regfree):
73444         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
73445         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
73446         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
73447         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
73448         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
73449         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
73450         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
73451         (build_range_exp, build_collating_symbol, parse_bracket_exp):
73452         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
73453         (build_charclass, build_charclass_op, fetch_number, create_tree):
73454         (create_token_tree, mark_opt_subexp, duplicate_tree):
73455         Use prototypes rather than old-style definitions.
73456
73457         * lib/regex_internal.c:
73458         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
73459         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
73460         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73461         (re_string_reconstruct, re_string_peek_byte_case):
73462         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
73463         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73464         (re_node_set_init_copy, re_node_set_add_intersect):
73465         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73466         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73467         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73468         (re_acquire_state, re_acquire_state_context, register_state):
73469         (create_ci_newstate, create_cd_newstate, free_state):
73470         Likewise.
73471         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
73472         re_search_2):
73473         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
73474         (re_search_internal, prune_impossible_nodes):
73475         (acquire_init_state_context, check_matching, static):
73476         (check_halt_node_context, check_halt_state_context, proceed_next_node):
73477         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
73478         (update_regs, sift_states_backward, build_sifted_states):
73479         (clean_state_log_if_needed, merge_state_array):
73480         (update_cur_sifted_state, add_epsilon_src_nodes):
73481         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
73482         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
73483         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
73484         (find_recover_state, check_subexp_matching_top, transit_state_mb):
73485         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
73486         (check_arrival, check_arrival_add_next_nodes):
73487         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73488         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73489         (check_node_accept_bytes, check_node_accept, extend_buffers):
73490         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
73491         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
73492         (sift_ctx_init):
73493         Likewise.
73494
73495         * lib/regex_internal.h:
73496         (re_string_allocate, re_string_construct, re_string_reconstruct):
73497         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
73498         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
73499         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
73500         (re_string_context_at, re_string_peek_byte_case):
73501         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
73502         is defined, since we now use prototypes always.
73503
73504         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
73505         C89 or better.  All uses removed.
73506
73507 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73508
73509         * config/srclist.txt: Add glibc bugs 1220-1227.
73510
73511 2005-08-20  Jim Meyering  <jim@meyering.net>
73512
73513         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
73514         of unused local, dfa.
73515
73516 2005-08-20  Bruno Haible  <bruno@clisp.org>
73517
73518         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
73519
73520 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73521
73522         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
73523         (re_node_set_insert_last, re_dfa_add_node):
73524         Rename local variables to avoid GCC shadowing warnings.
73525
73526 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73527
73528         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
73529         [defined lint]: Suppress bogus uninitialized-variable warnings.
73530
73531         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
73532         and let the caller return REG_ESPACE if out of space.  This
73533         removes an uninitialied-variable warning with GCC 4.0.1, and also
73534         avoids taking the address of a local variable.  All callers
73535         changed.
73536
73537 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73538
73539         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
73540         $LIBCSRC/posix/regexec.c.
73541         Add glibc bug 1217 for regcomp.c.
73542
73543 2005-08-19  Jim Meyering  <jim@meyering.net>
73544
73545         * lib/regexec.c (proceed_next_node): Redo local variables to
73546         avoid GCC shadowing warnings.
73547
73548 2005-08-18  Bruno Haible  <bruno@clisp.org>
73549
73550         * lib/strstr.c (strstr): Fix return value in multibyte case.
73551         * lib/strcasestr.c (strcasestr): Likewise.
73552
73553 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73554
73555         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
73556
73557 2005-08-17  Jim Meyering  <jim@meyering.net>
73558
73559         Make the %s format (seconds since the epoch) work for a negative
73560         number and when used with a zero-padded field width, e.g. %015s.
73561
73562         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
73563         label so that it precedes the code to set `digits'.  Otherwise,
73564         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
73565         print `00-22'.  Now, it prints `-0022', as it should.
73566
73567 2005-08-17  Bruno Haible  <bruno@clisp.org>
73568
73569         * modules/strstr (Files): Add m4/mbrtowc.m4.
73570         (Depends-on): Add mbuiter.
73571
73572 2005-08-17  Bruno Haible  <bruno@clisp.org>
73573
73574         * modules/strcasestr: New file.
73575         * MODULES.html.sh (String handling, based on ANSI C 89): Add
73576         strcasestr.
73577
73578 2005-08-17  Bruno Haible  <bruno@clisp.org>
73579
73580         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
73581
73582 2005-08-17  Bruno Haible  <bruno@clisp.org>
73583
73584         * modules/mbuiter: New file.
73585         * MODULES.html.sh (Extended multibyte and wide character utilities):
73586         Add mbuiter.
73587
73588 2005-08-17  Bruno Haible  <bruno@clisp.org>
73589
73590         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
73591         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
73592
73593 2005-08-17  Bruno Haible  <bruno@clisp.org>
73594
73595         * m4/strcasestr.m4: New file.
73596
73597 2005-08-17  Bruno Haible  <bruno@clisp.org>
73598
73599         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
73600         * lib/strstr.c: Completely rewritten, with multibyte locale support.
73601
73602 2005-08-17  Bruno Haible  <bruno@clisp.org>
73603
73604         * lib/strcasestr.h: New file.
73605         * lib/strcasestr.c: New file.
73606
73607 2005-08-17  Bruno Haible  <bruno@clisp.org>
73608
73609         * lib/strcasecmp.c: Use mbuiter.h.
73610
73611 2005-08-17  Bruno Haible  <bruno@clisp.org>
73612
73613         * lib/mbuiter.h: New file.
73614
73615 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73616
73617         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
73618         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
73619         and gl_GETOPT are both invoked via different paths (as happens
73620         with GNU tar CVS because it uses both argp and getopt), the former
73621         wins.
73622
73623 2005-08-16  Bruno Haible  <bruno@clisp.org>
73624
73625         * modules/tls: New file.
73626         * MODULES.html.sh (Multithreading): Add tls.
73627
73628 2005-08-16  Bruno Haible  <bruno@clisp.org>
73629
73630         * modules/strnlen1: New file.
73631         * MODULES.html.sh (String handling): Add strnlen1.
73632
73633 2005-08-16  Bruno Haible  <bruno@clisp.org>
73634
73635         * modules/strcase (Files): Add m4/mbrtowc.m4.
73636         (Depends-on): Add strnlen1, mbchar.
73637
73638 2005-08-16  Bruno Haible  <bruno@clisp.org>
73639
73640         * modules/mbiter: New file.
73641         * MODULES.html.sh (Extended multibyte and wide character utilities):
73642         Add mbiter.
73643
73644 2005-08-16  Bruno Haible  <bruno@clisp.org>
73645
73646         * modules/mbfile: New file.
73647         * MODULES.html.sh (Extended multibyte and wide character utilities):
73648         Add mbfile.
73649
73650 2005-08-16  Bruno Haible  <bruno@clisp.org>
73651
73652         * modules/mbchar: New file.
73653         * MODULES.html.sh (Extended multibyte and wide character utilities):
73654         New section.
73655
73656 2005-08-16  Bruno Haible  <bruno@clisp.org>
73657
73658         * m4/tls.m4: New file, from GNU gettext.
73659
73660 2005-08-16  Bruno Haible  <bruno@clisp.org>
73661
73662         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
73663         always.
73664         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
73665
73666 2005-08-16  Bruno Haible  <bruno@clisp.org>
73667
73668         * m4/mbiter.m4: New file.
73669
73670 2005-08-16  Bruno Haible  <bruno@clisp.org>
73671
73672         * m4/mbfile.m4: New file.
73673
73674 2005-08-16  Bruno Haible  <bruno@clisp.org>
73675
73676         * m4/mbchar.m4: New file.
73677
73678 2005-08-16  Bruno Haible  <bruno@clisp.org>
73679
73680         * lib/tls.h: New file, from GNU gettext.
73681         * lib/tls.c: New file, from GNU gettext.
73682
73683 2005-08-16  Bruno Haible  <bruno@clisp.org>
73684
73685         * lib/strnlen1.h: New file.
73686         * lib/strnlen1.c: New file.
73687
73688 2005-08-16  Bruno Haible  <bruno@clisp.org>
73689
73690         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
73691         (mbi_init): Update.
73692         (mbi_avail, mbi_advance): Let the iteration end before the terminating
73693         NUL byte, not after it.
73694
73695 2005-08-16  Bruno Haible  <bruno@clisp.org>
73696
73697         * lib/strcase.h (strcasecmp): Add note in comments.
73698         * lib/strncasecmp.c: Use code from strcasecmp.c.
73699         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
73700         (strcasecmp): Work correctly in multibyte locales.
73701
73702 2005-08-16  Bruno Haible  <bruno@clisp.org>
73703
73704         * lib/mbiter.h: New file.
73705
73706 2005-08-16  Bruno Haible  <bruno@clisp.org>
73707
73708         * lib/mbfile.h: New file.
73709
73710 2005-08-16  Bruno Haible  <bruno@clisp.org>
73711
73712         * lib/mbchar.h: New file.
73713         * lib/mbchar.c: New file.
73714
73715 2005-08-16  Bruno Haible  <bruno@clisp.org>
73716
73717         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
73718         the valid ones. Makes the comparison operations transitive:
73719         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
73720         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
73721
73722 2005-08-15  Simon Josefsson  <jas@extundo.com>
73723
73724         * modules/ssize_t (License): Change to 'unlimited'.
73725
73726         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
73727
73728 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73729
73730         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
73731         Add comments for each pending glibc patch.
73732
73733 2005-08-15  Bruno Haible  <bruno@clisp.org>
73734
73735         * lib/regex.h (__restrict_arr): Don't define to __restrict if
73736         __cplusplus is defined.
73737
73738 2005-08-14  Jim Meyering  <jim@meyering.net>
73739
73740         Sync from coreutils.
73741
73742         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
73743         Use the hash-table-based cycle-detection code not just when
73744         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
73745         Reported by James Youngman in
73746         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
73747         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
73748         FTS_TIGHT_CYCLE_CHECK.
73749         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
73750         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
73751         once again.
73752         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
73753         * lib/fts.c (fd_safer): Remove decl.
73754         Include fcntl--.h rather than unistd-safer.h
73755         (fts_safe_changedir): Don't call fd_safer; no longer needed
73756         now that we include fcntl--.h.
73757
73758 2005-08-12  Simon Josefsson  <jas@extundo.com>
73759
73760         * modules/getndelim2: Use ssize_t module.
73761         * modules/getnline: Likewise.
73762         * modules/safe-read: Likewise.
73763         * modules/xreadlink: Likewise.
73764
73765         * modules/ssize_t: New file.
73766
73767 2005-08-12  Simon Josefsson  <jas@extundo.com>
73768
73769         * m4/readline.m4: Look for termcap, curses or ncurses if required.
73770
73771 2005-08-12  Simon Josefsson  <jas@extundo.com>
73772
73773         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73774         ssize_t.
73775
73776 2005-08-12  Simon Josefsson  <jas@extundo.com>
73777
73778         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
73779         readline, getdelim and check_version.
73780         (Support for systems lacking ISO C 99: Sizes of integer types):
73781         Add size_max.
73782
73783 2005-08-12  Bruno Haible  <bruno@clisp.org>
73784
73785         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
73786
73787 2005-08-11  Simon Josefsson  <jas@extundo.com>
73788
73789         * modules/readline: New file.
73790
73791         * modules/strnlen (Files): Add strnlen.h.
73792
73793 2005-08-11  Simon Josefsson  <jas@extundo.com>
73794
73795         * m4/readline.m4: New file.
73796
73797 2005-08-11  Simon Josefsson  <jas@extundo.com>
73798
73799         * lib/readline.h, readline.c: New file.
73800
73801 2005-08-11  Simon Josefsson  <jas@extundo.com>
73802
73803         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73804         gl_AVOID.
73805
73806 2005-08-11  Bruno Haible  <bruno@clisp.org>
73807
73808         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73809
73810 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73811
73812         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73813
73814 2005-08-10  Simon Josefsson  <jas@extundo.com>
73815
73816         * tests/test-iconvme.c: New file.
73817
73818 2005-08-10  Simon Josefsson  <jas@extundo.com>
73819
73820         * m4/strnlen.m4: New file.
73821
73822         * m4/strndup.m4: Don't check for strnlen declaration, done in
73823         strnlen.m4.
73824
73825 2005-08-10  Simon Josefsson  <jas@extundo.com>
73826
73827         * lib/strndup.c: Use strnlen.h.
73828
73829         * lib/strnlen.h: New file.
73830
73831 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73832
73833         * README: Typos.
73834
73835 2005-08-02  Simon Josefsson  <jas@extundo.com>
73836
73837         * modules/readline: New file.
73838
73839 2005-08-02  Simon Josefsson  <jas@extundo.com>
73840
73841         * modules/getdelim: New file.
73842
73843         * modules/getline: Rewrite, don't use getndelim2.
73844
73845 2005-08-02  Simon Josefsson  <jas@extundo.com>
73846
73847         * m4/getline.m4: Separate out getdelim stuff into separate module.
73848
73849         * m4/getdelim.m4: New file.
73850
73851 2005-08-02  Simon Josefsson  <jas@extundo.com>
73852
73853         * lib/getline.h, getline.c: Rewrite.
73854
73855         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
73856
73857 2005-07-31  Bruno Haible  <bruno@clisp.org>
73858
73859         * lib/lock.h (gl_lock_initializer): New macro.
73860         (gl_lock_define_initialized): Use it.
73861         (gl_rwlock_initializer): New macro.
73862         (gl_rwlock_define_initialized): Use it.
73863         (gl_recursive_lock_initializer): New macro.
73864         (gl_recursive_lock_define_initialized): Use it.
73865
73866 2005-07-30  Karl Berry  <karl@gnu.org>
73867
73868         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
73869         Report from Ben Pfaff, regarding getopt.
73870
73871 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
73872
73873         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
73874         normal way.
73875         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
73876         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
73877         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
73878         (gl_GETOPT): Use the new macros.  Most of the implementation
73879         is moved to the new macros.  This is for programs like Emacs
73880         that don't want all the functionality of gl_GETOPT.
73881
73882 2005-07-26  Bruno Haible  <bruno@clisp.org>
73883
73884         * m4/lock.m4: Update from GNU gettext.
73885
73886 2005-07-26  Bruno Haible  <bruno@clisp.org>
73887
73888         * lib/lock.h: Update from GNU gettext.
73889         * lib/lock.c: Update from GNU gettext.
73890
73891 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73892
73893         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73894         obsolescent AC_TRY_RUN.  Include the default includes files, for
73895         'exit'.
73896
73897 2005-07-24  Bruno Haible  <bruno@clisp.org>
73898
73899         * modules/visibility: New file.
73900         * MODULES.html.sh (Misc): Add visibility.
73901
73902 2005-07-24  Bruno Haible  <bruno@clisp.org>
73903
73904         * m4/visibility.m4: New file.
73905
73906 2005-07-24  Bruno Haible  <bruno@clisp.org>
73907
73908         * doc/visibility.texi: New file.
73909
73910 2005-07-22  Bruno Haible  <bruno@clisp.org>
73911
73912         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73913         $(ALLOCA_H), redundant through BUILT_SOURCES.
73914         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73915         redundant through BUILT_SOURCES.
73916         * modules/byteswap (Makefile.am): Remove explicit dependency on
73917         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73918         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73919         $(FNMATCH_H), redundant through BUILT_SOURCES.
73920         * modules/getopt (Makefile.am): Remove explicit dependency on
73921         $(GETOPT_H), redundant through BUILT_SOURCES.
73922         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73923         redundant through BUILT_SOURCES.
73924         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73925         redundant through BUILT_SOURCES.
73926         * modules/stdbool (Makefile.am): Remove explicit dependency on
73927         $(STDBOOL_H), redundant through BUILT_SOURCES.
73928         * modules/stdint (Makefile.am): Remove explicit dependency on
73929         $(STDINT_H), redundant through BUILT_SOURCES.
73930         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73931         Remove explicit dependency on $(SYSEXITS_H).
73932         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73933
73934 2005-07-18  Simon Josefsson  <jas@extundo.com>
73935
73936         * lib/check-version.c (check_version): Accept identical versions too.
73937
73938 2005-07-18  Bruno Haible  <bruno@clisp.org>
73939
73940         * modules/lock: New file.
73941         * MODULES.html.sh (Multithreading): New section.
73942
73943 2005-07-18  Bruno Haible  <bruno@clisp.org>
73944
73945         * m4/lock.m4: New file, from GNU gettext.
73946
73947 2005-07-18  Bruno Haible  <bruno@clisp.org>
73948
73949         * lib/lock.h: New file, from GNU gettext.
73950         * lib/lock.c: New file, from GNU gettext.
73951
73952 2005-07-18  Bruno Haible  <bruno@clisp.org>
73953
73954         * lib/lock.h (gl_once_t): New type.
73955         (gl_once_define, gl_once): New macros.
73956         * lib/lock.c (fresh_once): New variable.
73957         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73958         functions.
73959
73960 2005-07-16  Simon Josefsson  <jas@extundo.com>
73961
73962         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73963         workaround, suggested by Bruno.
73964
73965 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73966
73967         * modules/xalloc (Depends-on): Add xalloc-die.
73968         * modules/xvasprintf (Depends-on): Add xalloc-die.
73969
73970 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73971
73972         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73973         with a minor change.
73974
73975 2005-07-15  Bruno Haible  <bruno@clisp.org>
73976
73977         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73978         When using lib/poll.c, define poll as rpl_poll.
73979
73980 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73981
73982         * modules/argp (Depends-on): Remove unlocked-io.
73983
73984 2005-07-14  Derek Price  <derek@ximbiot.com>
73985
73986         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73987         for glob symlink bug.
73988
73989 2005-07-14  Bruno Haible  <bruno@clisp.org>
73990
73991         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73992         Instead, test for *_unlocked function declarations directly.
73993
73994 2005-07-11  Simon Josefsson  <jas@extundo.com>
73995
73996         * modules/size_max: New file.
73997
73998         * modules/xsize: Depend on size_max module for size_max.m4.
73999
74000 2005-07-11  Simon Josefsson  <jas@extundo.com>
74001
74002         * lib/size_max.h: New file.
74003
74004 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
74005
74006         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
74007         copyright symbol and the year.
74008         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
74009         (version_etc_va): Use parameterized copyright notice.
74010         Reword to conform to the current GNU coding standards.
74011
74012 2005-07-11  Karl Berry  <karl@gnu.org>
74013
74014         * doc/gnulib.texi (Quoting): new node.
74015         (Initial import): more info, from Patrice.
74016
74017 2005-07-11  Bruno Haible  <bruno@clisp.org>
74018
74019         * gnulib-tool (func_usage): Document option --avoid.
74020         (Command line options): Handle --avoid.
74021         (func_acceptable): New function.
74022         (func_modules_transitive_closure): Use it.
74023
74024 2005-07-11  Bruno Haible  <bruno@clisp.org>
74025
74026         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
74027         Reported by Jim Meyering.
74028
74029 2005-07-10  Bruno Haible  <bruno@clisp.org>
74030
74031         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
74032         Needed when size_t is smaller than 'unsigned int'.
74033         Reported by Paul Eggert.
74034
74035 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74036
74037         * modules/argp (Depends-on): Add unlocked-io
74038
74039 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74040
74041         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
74042         block of defines.
74043
74044 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74045
74046         * config/srclist.txt: Comment out regcomp.c, since we have a porting
74047         fix now.
74048
74049 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
74050         and Paul Eggert  <eggert@cs.ucla.edu>
74051
74052         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
74053         in wint_t, not wchar_t.  Remove now-unnecessary cast.
74054
74055 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74056
74057         * modules/regex (Files): Add lib/regex_internal.c,
74058         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
74059         (Depends-on): Add extensions.
74060         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
74061
74062 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74063
74064         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
74065         pathconf.
74066         * m4/same.m4 (gl_SAME): Likewise.
74067         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
74068
74069         * m4/regex.m4: Adjust to new libc regex implementation.
74070         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
74071         all the .c and .h parts of (the new) regex.
74072         Quote the m4 stuff better.
74073         Check for RE_ICASE bug of old gnulib.
74074         Check for REG_STARTEND of recent libc.
74075         Rename local variables from jm_* to gl_*.
74076         Quote operand of "test -f".
74077         Say "recent enough" version of libc, not "version 2".
74078         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
74079         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
74080         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
74081         Remove check for btowc, isascii.
74082         Require AM_LANGINFO_CODESET.
74083
74084 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74085
74086         * lib/regex.c, regex.h: Sync from libc.
74087         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
74088         * lib/regexec.c:
74089         New files, synced from libc, except that regex_internal.h
74090         currently has a small porting fix.
74091
74092 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74093
74094         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
74095         regex_internal.c, regexec.c.
74096         Add regex_internal.h too, but as a comment, since the libc version
74097         is currently broken in gnulib mode.
74098
74099 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74100
74101         Support programs like Emacs that use gnulib but not gettext.
74102         * MODULES.html.sh (Internationalization functions): Add gettext-h.
74103         * modules/gettext-h: New file.
74104         * modules/gettext (Files): Remove lib/gettext.h.
74105         (Depends-on): Add gettext-h.
74106         (Makefile.am): Remove lib_SOURCES.
74107         * modules/argmatch, modules/c-stack, modules/closeout:
74108         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
74109         * modules/execute, modules/file-type, modules/getaddrinfo:
74110         * modules/getopt, modules/human, modules/javacomp:
74111         * modules/javaexec, modules/mkdir-p, modules/obstack:
74112         * modules/openat, modules/pagealign_alloc, modules/pipe:
74113         * modules/quotearg, modules/regex, modules/rpmatch:
74114         * modules/unicodeio, modules/userspec, modules/version-etc:
74115         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
74116         * modules/xsetenv:
74117         Depend on gettext-h, not gettext.
74118
74119 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74120
74121         * gnulib-tool (func_import): Add support for 'public domain' license.
74122         * modules/alloca, modules/atexit, modules/memmove:
74123         Now public domain, not GPL.
74124         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
74125         * modules/realloc, modules/strerror, modules/strtod:
74126         Now LGPL, not GPL.
74127
74128 2005-07-05  Bruno Haible  <bruno@clisp.org>
74129
74130         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
74131         autoconf CVS. Needed for mingw.
74132
74133 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74134
74135         Remove the dependency of the strftime module on the tzset module.
74136         * modules/strftime (Depends-on): Remove dependency on tzset.
74137
74138 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74139
74140         Remove the dependency of the strftime module on the tzset module.
74141         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
74142         gl_FUNC_TZSET_CLOBBER.
74143
74144 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74145
74146         Remove the dependency of the strftime module on the tzset module.
74147         * lib/strftime.c (my_strftime)
74148         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
74149         Copy the input structure, to work around some of the bug with
74150         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
74151         Solaris releases, you should also use the tzset module, but we won't
74152         require it as a dependency any more since we don't want LGPLed code
74153         to depend on GPLed code.
74154
74155 2005-07-02  Jim Meyering  <jim@meyering.net>
74156
74157         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
74158         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
74159         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
74160         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
74161
74162 2005-07-02  Jim Meyering  <jim@meyering.net>
74163
74164         * lib/backupfile.c (backup_args): Change a `0' to NULL.
74165
74166 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74167
74168         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
74169         declares only 'struct timespec;' (!).
74170
74171 2005-07-01  Jim Meyering  <jim@meyering.net>
74172
74173         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
74174         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
74175         * lib/save-cwd.c, tempname.c:
74176         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74177         and don't include <sys/file.h>).
74178
74179 2005-06-29  Jim Meyering  <jim@meyering.net>
74180
74181         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
74182         type name.  Use the variable name instead.
74183         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
74184         Likewise.
74185
74186 2005-06-28  Simon Josefsson  <jas@extundo.com>
74187
74188         * modules/check-version (Files): Add check-version.m4.
74189
74190 2005-06-28  Simon Josefsson  <jas@extundo.com>
74191
74192         * m4/check-version.m4: New file, suggested by Jim Meyering
74193         <jim@meyering.net>.
74194
74195 2005-06-28  Simon Josefsson  <jas@extundo.com>
74196
74197         * lib/check-version.h, lib/check-version.c: New files.
74198
74199 2005-06-28  Simon Josefsson  <jas@extundo.com>
74200
74201         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
74202         collision with global variable.  Better indentation.  Don't
74203         increment buffer pointer beyond buffer end.  Based on comments
74204         from Paul Eggert <eggert@cs.ucla.edu>.
74205
74206         * lib/base64.h: Indent.
74207
74208 2005-06-28  Simon Josefsson  <jas@extundo.com>
74209
74210         * doc/gnulib.texi (Library version handling): New section.
74211
74212 2005-06-28  Jim Meyering  <jim@meyering.net>
74213
74214         * check-module (find_included_lib_files): Hard-code another
74215         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
74216         but modules/fts-lgpl (correctly) does not list those files.
74217
74218         * modules/canonicalize (Files): Add lib/pathmax.h.
74219
74220 2005-06-25  Simon Josefsson  <jas@extundo.com>
74221
74222         * modules/check-version: New file.
74223
74224 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
74225
74226         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
74227         initializer of struct addrinfo, as an indication that we don't
74228         care how many members the structure has.
74229
74230 2005-06-24  Derek Price  <derek@ximbiot.com>
74231         and Bruno Haible  <bruno@clisp.org>
74232
74233         Remove stat module & update lstat.
74234         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
74235         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74236         * m4/stat.m4: Remove this file.
74237
74238 2005-06-24  Derek Price  <derek@ximbiot.com>
74239         and Bruno Haible  <bruno@clisp.org>
74240
74241         Remove stat module & update lstat.
74242         * lib/stat.c: Remove this file...
74243         (slash_aware_lstat): ...moving this content and its support...
74244         * lib/lstat.c (rpl_lstat): ...into here.
74245         * lib/lstat.h: New file.
74246
74247 2005-06-24  Derek Price  <derek@ximbiot.com>
74248         and Bruno Haible  <bruno@clisp.org>
74249
74250         Remove stat module & update lstat.
74251         * config/srclist.txt (libc sources): Remove stat.
74252
74253 2005-06-24  Derek Price  <derek@ximbiot.com>
74254         and Bruno Haible  <bruno@clisp.org>
74255
74256         Remove stat module & update lstat.
74257         * MODULES.html.sh (stat): Remove.
74258         * MODULES.html: Regenerated.
74259         * modules/lstat (Description): Correct function name.
74260         (Files): Add "lstat.h".
74261         (Depends-on): Remove stat, add xalloc, stat-macros.
74262         * modules/stat: Remove this file.
74263         (Include): Add "lstat.h", remove <sys/stat.h>.
74264
74265 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
74266
74267         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
74268         (ranged_convert): Don't save conversion in a temporary struct.
74269         This causes a warning with GCC 4.0.0, and anyway in the typical
74270         case it's not worth the extra 100 bytes or so of code.
74271         (ranged_convert, __mktime_internal): When calling a function via a
74272         pointer P, use P () rather than (*P) (), as we now assume C89 or
74273         better.
74274
74275 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74276
74277         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
74278         "who -r" failed to give output.  Problem reported by Tim Waugh.
74279
74280         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
74281         (xcalloc): Use it to avoid needless tests.
74282         Problem reported by Jim Meyering.
74283
74284 2005-06-20  Derek Price  <derek@ximbiot.com>
74285
74286         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
74287         unnecessary for Autoconfs > 2.59c.
74288
74289 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74290
74291         * lib/argp.h (__option_is_short): Check upper limit of
74292         __key. Isprint() requires its argument to have the value
74293         of an unsigned char or EOF.
74294
74295 2005-06-16  Jim Meyering  <jim@meyering.net>
74296
74297         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
74298         when either N or S is zero.
74299
74300 2005-06-16  Derek Price  <derek@ximbiot.com>
74301
74302         * m4/bison.m4: Declare YACC & YFLAGS precious.
74303
74304 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
74305
74306         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
74307         multibyte string or pattern, fall back on unibyte matching.
74308         Problem reported by James Youngman.
74309
74310 2005-06-08  Bruno Haible  <bruno@clisp.org>
74311
74312         * modules/csharpcomp: New file.
74313         * MODULES.html.sh (C#): Add csharpcomp.
74314
74315 2005-06-08  Bruno Haible  <bruno@clisp.org>
74316
74317         * m4/csharpcomp.m4: New file, from GNU gettext.
74318
74319 2005-06-08  Bruno Haible  <bruno@clisp.org>
74320
74321         * lib/csharpcomp.h: New file, from GNU gettext.
74322         * lib/csharpcomp.c: New file, from GNU gettext.
74323         * lib/csharpcomp.sh.in: New file, from GNU gettext.
74324
74325 2005-06-08  Bruno Haible  <bruno@clisp.org>
74326
74327         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
74328         warning on mingw.
74329
74330 2005-06-07  Derek Price  <derek@ximbiot.com>
74331
74332         Sync from CVS.
74333         * lib/glob_.h: Indent nested #ifdef.
74334
74335 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74336
74337         Sync from coreutils.
74338         Use "file name" when talking about file names, instead of "filename"
74339         or "path", as per the GNU coding standards.
74340         * lib/mkdir-p.c: Renamed from makepath.c.
74341         (make_dir_parents): Renamed from make_path.  All callers changed.
74342         * lib/mkdir-p.h: Likewise.  All includers changed.
74343         * lib/filenamecat.c: Renamed from path-concat.c.
74344         (file_name_concat): Renamed from path_concat.  All callers changed.
74345         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
74346         * lib/filenamecat.h: Likewise.  All includers changed.
74347         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
74348         in comments or local variable names.
74349         * lib/basename.c: Likewise.
74350         * lib/canonicalize.c, canonicalize.h: Likewise.
74351         * lib/dirname.c, dirname.h: Likewise.
74352         * lib/euidaccess.c: Likewise.
74353         * lib/exclude.c: Likewise
74354         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
74355         * lib/fsusage.c, fsuage.h: Likewise.
74356         * lib/fts.c, fts_.h: Likewise.
74357         * lib/getcwd.c: Likewise.
74358         * lib/getloadavg.c: Likewise.
74359         * lib/mkstemp.c: Likewise.
74360         * lib/mountlist.c, mountlist.h: Likewise.
74361         * lib/openat.c, openat.h: Likewise.
74362         * lib/readlink-stub.c: Likewise.
74363         * lib/readutmp.c, readutmp.h: Likewise.
74364         * lib/rename.c: Likewise.
74365         * lib/rmdir.c: Likewise.
74366         * lib/same.c: Likewise.
74367         * lib/savedir.c: Likewise.
74368         * lib/stripslash.c: Likewise.
74369         * lib/tempname.c: Likewise.
74370         * lib/xreadlink.c: Likewise.
74371         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
74372         All uses changed.
74373         * lib/exclude.h: Likewise.
74374
74375         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
74376         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74377         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
74378         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74379         * lib/pathmax.h: Include <limits.h> unconditionally, since other
74380         files have been getting away with it for years (MORE/BSD 4.3
74381         is extinct now).
74382         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
74383         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74384
74385         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
74386         Define to 256, not 255, as per modern POSIX.
74387
74388 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74389
74390         Sync from coreutils.
74391         Use "file name" when talking about file names, instead of "filename"
74392         or "path", as per the GNU coding standards.
74393         * MODULES.html.sh: mkdir-p renamed from makepath.
74394         filenamecat renamed from path-concat.
74395         * modules/filenamecat: Renamed from modules/path-concat.
74396         (Files): filenamecat.h and filenamecat.c renamed from
74397         path-concat.h and path-concat.c.
74398         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
74399         (Include): filenamecat.h, not path-concat.h.
74400         * modules/mkdir-p: Renamed from modules/makepath.
74401         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
74402         makepath.c.
74403         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
74404         (Include): mkdir-p.h, not makepath.h.
74405
74406 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74407
74408         Sync from coreutils.
74409         * m4/mkdir-p.m4: Renamed from makepath.m4.
74410         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
74411         Rename files from makepath.c to mkdir-p.c, and from
74412         makepath.h to mkdir-p.h.
74413         * m4/filenamecat.m4: Renamed from path-concat.m4.
74414         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
74415         Rename files from path-concat.c to filenamecat.c,
74416         and from path-concat.h to filenamecat.h.
74417         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
74418         "file name" in local variables or comments.
74419         * m4/rename.m4: Likewise.
74420
74421 2005-06-01  Bruno Haible  <bruno@clisp.org>
74422
74423         * modules/csharpexec: New file.
74424         * MODULES.html.sh (C#): New section.
74425
74426 2005-06-01  Bruno Haible  <bruno@clisp.org>
74427
74428         * m4/csharp.m4: New file, from GNU gettext.
74429         * m4/csharpexec.m4: New file, from GNU gettext.
74430
74431 2005-06-01  Bruno Haible  <bruno@clisp.org>
74432
74433         * lib/csharpexec.h: New file, from GNU gettext.
74434         * lib/csharpexec.c: New file, from GNU gettext.
74435         * lib/csharpexec.sh.in: New file, from GNU gettext.
74436
74437 2005-05-31  Derek Price  <derek@ximbiot.com>
74438             Paul Eggert  <eggert@cs.ucla.edu>
74439
74440         Sync from cvs.
74441         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74442
74443 2005-05-31  Derek Price  <derek@ximbiot.com>
74444             Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         Sync from cvs.
74447         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74448
74449 2005-05-29  Derek Price  <derek@ximbiot.com>
74450
74451         * config/srclist.txt (glob_.h, glob.c): Add these files.
74452
74453 2005-05-29  Derek Price  <derek@ximbiot.com>
74454
74455         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
74456         * modules/glob: New file.
74457         * modules/getlogin_r: Add link to POSIX spec in description.
74458
74459 2005-05-29  Derek Price  <derek@ximbiot.com>
74460             Paul Eggert  <eggert@cs.ucla.edu>
74461
74462         * m4/glob.m4: New file.
74463
74464 2005-05-29  Derek Price  <derek@ximbiot.com>
74465             Paul Eggert  <eggert@cs.ucla.edu>
74466
74467         * lib/glob_.h, lib/glob.c: New files.
74468
74469 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74470
74471         * modules/fts (Files): Remove m4/inttypes-pri.m4.
74472         * modules/fts-lgpl (Depends-on): Remove gettext.
74473
74474 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74475
74476         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
74477         and don't require gt_INTTYPES_PRI.
74478
74479 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74480
74481         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
74482
74483         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
74484         the configuration hassle isn't worth it.
74485         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
74486         (LONGEST_MODIFIER, PRIuMAX): Remove.
74487
74488 2005-05-27  Bruno Haible  <bruno@clisp.org>
74489
74490         * lib/getlogin_r.h: Remove second include of <stddef.h>.
74491
74492 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
74493
74494         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
74495         _POSIX_PTHREAD_SEMANTICS for Solaris.
74496
74497 2005-05-25  Derek Price  <derek@ximbiot.com>
74498
74499         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
74500
74501 2005-05-25  Derek Price  <derek@ximbiot.com>
74502             Paul Eggert  <eggert@cs.ucla.edu>
74503
74504         * modules/getlogin_r, m4/getlogin_r.m4: New files.
74505         * lib/getlogin_r.c, getlogin_r.h: New files.
74506
74507 2005-05-25  Bruno Haible  <bruno@clisp.org>
74508             Derek Price  <derek@ximbiot.com>
74509
74510         * lib/getlogin_r.h: Simplify API documentation.
74511
74512 2005-05-23  Derek Price  <derek@ximbiot.com>
74513
74514         * modules/minmax (Files): Add m4/minmax.m4.
74515         (configure.ac): Add gl_MINMAX.
74516
74517 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74518
74519         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
74520         so that unistd-safer.h (GPL'ed code) need not be included.
74521
74522 2005-05-22  Bruno Haible  <bruno@clisp.org>
74523
74524         * m4/minmax.m4: New file.
74525         Based on a patch by Derek Price <derek@ximbiot.com>.
74526
74527 2005-05-22  Bruno Haible  <bruno@clisp.org>
74528
74529         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
74530         (INT64_MIN): Fix definition.
74531         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
74532
74533         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
74534         NEED_SIGNED_INT_TYPES.
74535
74536         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
74537         HAVE_SYSTEM_INTTYPES.
74538
74539 2005-05-22  Bruno Haible  <bruno@clisp.org>
74540
74541         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
74542         Also include <sys/param.h> if it defines MIN, MAX.
74543         Based on a patch by Derek Price <derek@ximbiot.com>.
74544
74545 2005-05-21  Jim Meyering  <jim@meyering.net>
74546
74547         * modules/fts (Files): Add m4/inttypes-pri.m4.
74548         (Depends-on): Add lstat and remove gettext.  Alphabetize.
74549
74550 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74551
74552         New fts module.
74553         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
74554         (setup_dir, free_dir): New functions.
74555         (enter_dir, leave_dir): Define trivial
74556         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
74557         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
74558         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
74559         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
74560         Move to fts-cycle.c.
74561         (fts_open): Use setup_dir.
74562         (fts_close): Use free_dir.
74563         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
74564         This adds a label and some gotos, but the alternatives were messier.
74565         Check for memory allocation failure when entering a dir.
74566         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
74567         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
74568         (FTS): New member fts_cycle, that is a union that contains the
74569         old active_dir_ht and cycle_state.  All uses changed to mention
74570         fts_cycle.ht and fts_cycle.state.
74571         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
74572         fts.c, with the following changes:
74573         (setup_dir, free_dir): New functions.
74574         (enter_dir): Now returns bool.  Return true if successful, false
74575         if memory exhausted.  All callers changed.
74576         Do not bother partly cleaning up on
74577         memory allocation failure; that is free_dir's job.
74578         However, free ad if hash_insert fails, to avoid memory leak.
74579         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
74580         fts->fts_options to see which union member to use.
74581
74582 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74583
74584         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
74585         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
74586
74587 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
74590
74591 2005-05-20  Jim Meyering  <jim@meyering.net>
74592
74593         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
74594         Now a macro, to pacify GCC.
74595
74596 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74597
74598         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
74599         of -1.
74600
74601 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74602
74603         * lib/chown.c (rpl_chown): Return -1 on failure.
74604
74605 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74606
74607         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
74608         Don't check for stddef.h.
74609         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
74610         don't use its results.
74611         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
74612         since we include them unconditionally.  Don't require
74613         AM_STDBOOL_H, since stdbool is a prerequisite.
74614         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
74615         since we assume C89 or better.
74616         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
74617         as we don't use their results.
74618         Don't check for fchdir, memmove, memset, strrchr, as we use
74619         them unconditionally.
74620         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
74621         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
74622
74623 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74624
74625         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
74626         Include <stddef.h> unconditionally, since we assume C89 now.
74627         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
74628         * lib/fts.c: Include fts_.h first, to check interface.
74629         Do not include intprops.h; no longer needed.
74630         Include cycle-check.h and hash.h, since fts_.h no longer does.
74631         Remove unnecessary casts of closedir to void.
74632         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
74633         decide whether to decrement nlinks.
74634         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
74635         (FTS): Use struct hash_table * instead of Hash_table, so that
74636         we no longer need to include hash.h here.
74637
74638 2005-05-18  Jim Meyering  <jim@meyering.net>
74639
74640         * modules/dirfd (License): Change to LGPL.  Most of the code
74641         is already in the public domain.
74642
74643 2005-05-18  Jim Meyering  <jim@meyering.net>
74644
74645         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
74646         Reported by Yoann Vandoorselaere.
74647
74648 2005-05-17  Jim Meyering  <jim@meyering.net>
74649
74650         * m4/fts.m4: New file, from coreutils.
74651
74652 2005-05-17  Jim Meyering  <jim@meyering.net>
74653
74654         * lib/fts.c, lib/fts_.h: New files, from coreutils.
74655
74656 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74657
74658         Sync from coreutils.
74659         * m4/unlinkdir.m4: New file.
74660
74661 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74662
74663         Sync from coreutils.
74664         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
74665         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
74666         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
74667         White space changes only.
74668         * lib/makepath.c (make_path): Port to hosts where leading "//" is
74669         special.
74670         * lib/yesno.c: Include getline.h, not ctype.h.
74671         (yesno): Don't remove leading white space; POSIX doesn't allow it.
74672         Use getline to remove arbitrary restriction on response length.
74673
74674 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74675
74676         * config/srclist-update: Spell out "Street" in FSF postal
74677         mail address; this is the style the FSF seems to prefer.
74678
74679         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
74680         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
74681         this updates FSF postal mail address.
74682
74683         Sync from coreutils.
74684         * modules/unlinkdir: New file.
74685         * modules/yesno (Depends-on): Add getline.
74686         * MODULES.html.sh (File system functions): Add unlinkdir.
74687
74688 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74689
74690         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
74691         lib/strsep.h:
74692         Change the initial comment to refer to GPL, not LGPL.
74693         gnulib-tool will change it to LGPL as needed.
74694
74695         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
74696         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
74697         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
74698         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
74699         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
74700         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
74701         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
74702         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
74703         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
74704         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
74705         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
74706         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
74707         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
74708         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
74709         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
74710         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
74711         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
74712         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
74713         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
74714         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
74715         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
74716         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
74717         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
74718         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
74719         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
74720         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
74721         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
74722         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
74723         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
74724         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
74725         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
74726         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
74727         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
74728         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
74729         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
74730         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
74731         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
74732         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
74733         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
74734         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
74735         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
74736         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
74737         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
74738         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
74739         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
74740         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
74741         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
74742         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
74743         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
74744         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
74745         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74746         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
74747         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
74748         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
74749         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
74750         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
74751         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
74752         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
74753         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
74754         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
74755         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
74756         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
74757         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
74758         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
74759         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
74760         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
74761         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
74762         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
74763         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
74764         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
74765         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
74766         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
74767         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
74768         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
74769         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
74770         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
74771         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
74772         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
74773         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
74774         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
74775         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
74776         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
74777         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
74778         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
74779         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
74780         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
74781         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
74782         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
74783         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
74784         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
74785         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
74786         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
74787         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
74788         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
74789         lib/yesno.c, lib/yesno.h:
74790         Update FSF postal mail address.
74791
74792 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74793
74794         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74795         tests/test-memmem.c, tests/test-stpncpy.c:
74796         Update FSF postal mail address.
74797
74798 2005-05-13  Bruno Haible  <bruno@clisp.org>
74799
74800         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74801         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74802         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74803         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74804         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74805         Add support for 64-bit integers in the MSVC compiler.
74806
74807 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74808
74809         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74810
74811 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74812
74813         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74814
74815 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74816
74817         * doc/getdate.texi (General date syntax): Don't say that date
74818         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74819         Problem reported by Nic Ferrier.
74820
74821 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74822
74823         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
74824         specified in ai_socktype. Fix invalid ai_protocol
74825         check. ai_protocol is usually set to 0 or depending on
74826         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
74827         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
74828         ai_socktype / ai_protocol in the returned addrinfo structure.
74829
74830 2005-05-10  Simon Josefsson  <jas@extundo.com>
74831
74832         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
74833         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74834
74835 2005-05-10  Karl Berry  <karl@gnu.org>
74836
74837         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
74838         (from http://www.gnu.org/licenses).
74839         * doc/COPYING.LIB: also rename to COPYING.LESSER.
74840         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
74841         fdl.texi suffices.
74842
74843 2005-05-10  Karl Berry  <karl@gnu.org>
74844
74845         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
74846         (COPYING.DOC): remove.
74847
74848         * config/srclist-update: new FSF address.
74849
74850 2005-05-10  Derek Price  <derek@ximbiot.com>
74851
74852         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
74853         possible.
74854
74855 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74856             Bruno Haible  <bruno@clisp.org>
74857
74858         * modules/inet_ntop: New file.
74859         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74860         inet_ntop.
74861
74862 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74863             Bruno Haible  <bruno@clisp.org>
74864
74865         * m4/inet_ntop.m4: New file.
74866
74867 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74868             Bruno Haible  <bruno@clisp.org>
74869
74870         * lib/inet_ntop.h: New file.
74871         * lib/inet_ntop.c: New file, from glibc with modifications.
74872
74873 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
74874
74875         * modules/time_r (License): Change to LGPL.
74876         * modules/extensions (License): Change to LGPL.  Actually,
74877         the license is more permissive than that, but currently gnulib-tool
74878         doesn't know how to handle more-permissive licenses.
74879
74880         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
74881         Problem reported by Dave Love.
74882
74883 2005-05-08  Jim Meyering  <jim@meyering.net>
74884
74885         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74886         blank.
74887
74888 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74889
74890         * modules/argmatch (Depends-on): Add stdbool.
74891         * modules/backupfile (Depends-on): Likewise.
74892         * modules/chdir-long (Depends-on): Likewise.
74893         * modules/closeout (Depends-on): Likewise.
74894         * modules/cycle-check (Depends-on): Likewise.
74895         * modules/dirname (Depends-on): Likewise.
74896         * modules/fnmatch (Depends-on): Likewise.
74897         * modules/fsusage (Depends-on): Likewise.
74898         * modules/fwriteerror (Depends-on): Likewise.
74899         * modules/getcwd (Depends-on): Likewise.
74900         * modules/getloadavg (Depends-on): Likewise.
74901         * modules/hard-locale (Depends-on): Likewise.
74902         * modules/makepath (Depends-on): Likewise.
74903         * modules/mountlist (Depends-on): Likewise.
74904         * modules/nanosleep (Depends-on): Likewise.
74905         * modules/posixtm (Depends-on): Likewise.
74906         * modules/quotearg (Depends-on): Likewise.
74907         * modules/readtokens (Depends-on): Likewise.
74908         * modules/readtokens0 (Depends-on): Likewise.
74909         * modules/readutmp (Depends-on): Likewise.
74910         * modules/save-cwd (Depends-on): Likewise.
74911         * modules/strftime (Depends-on): Likewise.
74912         * modules/userspec (Depends-on): Likewise.
74913         * modules/utimecmp (Depends-on): Likewise.
74914         * modules/xgetcwd (Depends-on): Likewise.
74915         * modules/xnanosleep (Depends-on): Likewise.
74916         * modules/xstrtod (Depends-on): Likewise.
74917         * modules/yesno (Depends-on): Likewise.
74918
74919 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74920
74921         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74922         needless checks.
74923
74924 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74925
74926         Merge from coreutils.  Among other things,
74927         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74928         * lib/fd-safer.c: New file.
74929         * lib/fcntl-safer.h, open-safer.c: Remove.
74930         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74931         * lib/dup-safer.c: Include unistd-safer.h first.
74932         Don't include errno.h.
74933         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74934         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74935         * lib/file-type.c: Rely on file-type.h change.
74936         * lib/getloadavg.c: Include unistd-safer.h.
74937         (getloadavg): Use safer open.
74938         * lib/getusershell.c: Include "stdio-safer.h".
74939         (getusershell): Use safer fopen.
74940         * lib/long-options.c (long_options): Use NULL rather than 0.
74941         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74942         'free'.
74943         * lib/modechange.c: Likewise.
74944         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74945         (MODE_DONE): New constant.
74946         (struct mode_change): Remove 'next' member.
74947         (make_node_op_equals): New function; like the old one of the
74948         same name, except it allocates an array.
74949         (mode_compile, mode_create_from_ref): Use it.
74950         (mode_compile): Allocate result as an array, not a linked list.
74951         Parse octal string ourself, so that we catch mistakes like "+0".
74952         (mode_adjust): Arg is an array, not a linked list.
74953         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74954         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74955         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74956         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74957         Remove.  This is now stat-macros.h's job.
74958         (talloc): Remove.  All callers replaced by xalloc, so that
74959         our invokers don't have to worry about reporting memory failures.
74960         (make_node_op_equals): Remove.
74961         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74962         New constants.
74963         (struct mode_change): Moved here from modechange.h.
74964         (mode_append_entry): Remove.
74965         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74966         apps to have incorrect behavior.  Use simpler algorithm for head
74967         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74968         Detect more invalid usages rather than having somewhat-random behavior.
74969         Don't insert an "a=" action, as that leads to incorrect behavior.
74970         (mode_compile, mode_create_from_ref): Return NULL on error instead
74971         of an enum, since now there's only one way to have an error.  All
74972         callers changed.
74973         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74974         at the correct time.  Simplify calculation of "+u" and its ilk.
74975         Don't mishandle "+X".
74976         (mode_free): Remove "register" and localize decls.
74977         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74978         (struct mode_change): Move to modechange.c; callers don't
74979         need to see this stuff.
74980         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74981         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74982         (mode_change, mode_adjust): Reflect the new signatures noted above.
74983         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74984         that might redefine system include files.
74985         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74986         (my_usleep): Use NULL rather than (void *) 0.
74987         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74988         Use siginterrupt to specify that system calls should be interrupted.
74989         (rpl_nanosleep): Move initialization of suspended closer to call of
74990         my_usleep.
74991         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74992         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74993         (desirable_utmp_entry): New function.
74994         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74995         using x2nrealloc, to simplify logic.
74996         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74997         size calculation.  Do not assume utmp file is a regular file.
74998         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74999         (READ_UTMP_CHECK_PIDS): New constant.
75000         * lib/save-cwd.c: Include unistd-safer.h.
75001         (save_cwd): Use fd_safer.
75002         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
75003         [!_LIBC] Include "stat-macros.h" instead.
75004         * lib/unistd-safer.h (fd_safer): New decl.
75005
75006 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75007
75008         * modules/getloadavg (Depends-on): Add unistd-safer.
75009         * modules/getusershell (Depends-on): Add stdio-safer.
75010         * modules/lstat (Depends-on): Remove xalloc.
75011         * modules/mkstemp (Depends-on): Add stat-macros.
75012         * modules/modechange (Depends-on): Remove xstrtol.
75013         Add stat-macros, xalloc.
75014         * modules/save-cwd (Depends-on): Add unistd-safer.
75015         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
75016         * modules/unistd-safer (Files): Add lib/fd-safer.c
75017         (Makefile.am): Remove lib_SOURCES.
75018
75019         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
75020         Remove fcntl-safer; unistd-safer supersedes it.
75021
75022 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75023
75024         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
75025         AC_HEADER_STAT.
75026         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
75027         (gl_PREREQ_CHOWN): Remove.
75028         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
75029         it.  Don't require AC_HEADER_STAT.
75030         (gl_PREREQ_LSTAT): Remove.
75031         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
75032         Don't require AC_HEADER_STAT.
75033         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
75034         (gl_PREREQ_RMDIR): Remove.
75035         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
75036         mention stat-macros.h or AC_HEADER_STAT, since we'll make
75037         the stat-macros module a prerequisite.
75038         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
75039         * m4/filemode.m4 (gl_FILEMODE): Likewise.
75040         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
75041         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
75042         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
75043         variable names.
75044         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
75045         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
75046         variable prefixes.
75047         * m4/fcntl-safer.m4: Remove.
75048         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
75049         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
75050         Invoke gl_PREREQ_FD_SAFER.
75051         (gl_PREREQ_FD_SAFER): New macro.
75052         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
75053         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
75054         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
75055         Remove duplicate call to AC_LIBOBJ(readutmp).
75056         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
75057
75058         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
75059         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
75060
75061 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75062
75063         * MODULES.html.sh (Misc): Add byteswap.
75064
75065 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75066
75067         * modules/getcwd (Depends-on): Add extensions.
75068         * modules/openat (Depends-on): Likewise.
75069
75070 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75071
75072         * modules/byteswap: New file.
75073
75074 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75075
75076         * m4/byteswap.m4: New file.
75077
75078 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75079
75080         * lib/byteswap_.h: New file.
75081
75082 2005-04-25  Karl Berry  <karl@gnu.org>
75083
75084         * m4/gettext.m4: Update from GNU gettext 0.14.4.
75085
75086 2005-04-25  Albert Chin  <china@thewrittenword.com>
75087
75088         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
75089         Toolkit C bug.
75090
75091 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
75092
75093         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
75094         (func_ln_if_changed): Remove forcibly for no error message
75095         in case file does not exist.
75096
75097 2005-04-19  Simon Josefsson  <jas@extundo.com>
75098
75099         * gnulib-tool (Options): Make --symlink mean --symbolic.
75100
75101 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
75102
75103         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
75104
75105 2005-04-16  Simon Josefsson  <jas@extundo.com>
75106
75107         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
75108
75109 2005-04-15  Simon Josefsson  <jas@extundo.com>
75110
75111         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
75112
75113 2005-04-15  Simon Josefsson  <jas@extundo.com>
75114
75115         * gnulib-tool: Rename --symlink to --symbolic.
75116
75117 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
75118
75119         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
75120         symbolic links to files instead of copying/moving.  Add --aux-dir,
75121         specifying directory relative --dir where auxiliary build tools
75122         are placed.
75123
75124 2005-04-14  Bruno Haible  <bruno@clisp.org>
75125
75126         * modules/allocsa (License): Change to LGPL.
75127         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
75128
75129 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
75130
75131         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
75132         that "UTC +1 second" continues to work.  Problem reported
75133         by Dmitry V. Levin.
75134         (relunit_snumber): New rule.
75135         (relunit): Use it.
75136
75137 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75138
75139         * lib/getdate.y (universal_time_zone_table): New constant.
75140         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
75141         universal_time_zone_table.
75142         (lookup_zone): Prefer universal_time_zone_table to
75143         local_time_zone_table, so that "GMT" time stamps are allowed in
75144         London during the summer.  Problem reported by Ian Abbott.
75145
75146 2005-04-12  Jim Meyering  <jim@meyering.net>
75147
75148         * lib/human.c (humblock): Set *options even when returning due to
75149         xstrtoumax conversion failure.  Thanks to a used-uninitialized
75150         warning from gcc-4.
75151
75152 2005-04-09  Jim Meyering  <jim@meyering.net>
75153
75154         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
75155         -Wuninitialized: initialize tm0.tm_year.
75156
75157 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
75158
75159         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
75160         count, since there's no maximum.  All uses changed.
75161         Add member dsts_seen.
75162         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
75163         not being INT_MAX.
75164         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
75165         Use pc_rels_seen to decide whther a date is absolute.
75166
75167         * lib/getdate.y (number): Don't overwrite year.
75168         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
75169         check.
75170
75171 2005-04-02  Simon Josefsson  <jas@extundo.com>
75172
75173         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
75174         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
75175
75176 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
75177
75178         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
75179         where no absolute path name can be longer than PATH_MAX.
75180
75181 2005-03-27  Jim Meyering  <jim@meyering.net>
75182
75183         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
75184
75185 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
75186
75187         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
75188         "one's complement" -> "ones' complement" in comment, as per Knuth.
75189         "value of type" -> "type or expression" in comment.
75190         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
75191
75192 2005-03-26  Jim Meyering  <jim@meyering.net>
75193
75194         Comment nits.
75195         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
75196         Correct typos: s/or/of/.
75197
75198 2005-03-26  Jim Meyering  <jim@meyering.net>
75199
75200         * modules/check-include-files: Move to ../ and rename to...
75201         * check-module: ...this.
75202
75203 2005-03-25  Jim Meyering  <jim@meyering.net>
75204
75205         * modules/xvasprintf (Files): Add xalloc.h.
75206
75207 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
75208
75209         * modules/gettext (Files): config/config.rpath ->
75210         build-aux/config.rpath
75211         * modules/iconv (Files): Likewise.
75212         Problem reported by Oskar Liljeblad.
75213
75214 2005-03-23  Jim Meyering  <jim@meyering.net>
75215
75216         * modules/check-include-files: New script to check for
75217         missing dependencies, multiple includes, etc.
75218
75219         * modules/c-strtold (Depends-on): Add xalloc.
75220         * modules/c-strtod (Depends-on): Add xalloc.
75221         * modules/hash (Depends-on): Add xalloc.
75222         (Files): Remove lib/xalloc.h.
75223
75224         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
75225         * modules/userspec (Files): Add lib/inttostr.h.
75226
75227 2005-03-23  Jim Meyering  <jim@meyering.net>
75228
75229         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
75230
75231 2005-03-22  Jim Meyering  <jim@meyering.net>
75232
75233         * modules/stat-macros: New module.
75234         * modules/canonicalize, modules/euidaccess, modules/file-type,
75235         * modules/filemode, modules/lchown, modules/makepath,
75236         * modules/rmdir, modules/stat: Depend on new stat-macros module
75237         rather than listing lib/stat-macros.h manually.
75238         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
75239
75240 2005-03-22  Jim Meyering  <jim@meyering.net>
75241
75242         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
75243
75244 2005-03-22  Bruno Haible  <bruno@clisp.org>
75245
75246         * config/srclist.txt: Replace target directory 'config' with
75247         'build-aux'.
75248         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
75249         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
75250         ../build-aux/.
75251
75252 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
75253
75254         * modules/chdir-long (Depends-on): Add mempcpy.
75255
75256         * modules/acl, modules/backupfile, modules/c-strtod,
75257         modules/c-strtold, modules/canon-host, modules/canonicalize,
75258         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
75259         modules/exclude, modules/exitfail, modules/file-type,
75260         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
75261         modules/getdate, modules/getline, modules/getpagesize,
75262         modules/getpass, modules/getugroups, modules/group-member,
75263         modules/hard-locale, modules/hash, modules/human, modules/idcache,
75264         modules/inttostr, modules/long-options, modules/makepath,
75265         modules/md5, modules/memcasecmp, modules/memcoll,
75266         modules/modechange, modules/mountlist, modules/path-concat,
75267         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
75268         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
75269         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
75270         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
75271         modules/strftime, modules/strndup, modules/strverscmp,
75272         modules/timespec, modules/unlocked-io, modules/userspec,
75273         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
75274         modules/yesno:
75275         Remove lib_SOURCES line from Makefile.am section, as this is now
75276         done automatically by the corresponding Autoconf macro.
75277
75278 2005-03-21  Jim Meyering  <jim@meyering.net>
75279
75280         Changes imported from coreutils.
75281
75282         * lib/cycle-check.c: Don't include xalloc.h.
75283
75284         * lib/path-concat.c: Don't include assert.h.
75285         (path_concat): Remove assertion that would have triggered
75286         for ABASE starting with more than one slash.
75287         Reported by Andreas Schwab.
75288
75289         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
75290         properly when ABASE is an absolute file name.
75291         Correct the description of this function.
75292         Include <assert.h>.
75293         Add an assertion and a test driver.
75294         This fixes a bug introduced on 2004-07-02.
75295         Andreas Schwab reported the resulting failure of cp --parents:
75296         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
75297
75298 2005-03-21  Jim Meyering  <jim@meyering.net>
75299
75300         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
75301         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
75302
75303 2005-03-21  Jim Meyering  <jim@meyering.net>
75304         and  Paul Eggert  <eggert@cs.ucla.edu>
75305
75306         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
75307         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
75308         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
75309         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
75310         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
75311         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
75312         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
75313         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
75314         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
75315         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
75316         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
75317         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
75318         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
75319         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
75320         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
75321         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
75322         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
75323         for these modules.
75324
75325 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
75326
75327         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
75328         (which shouldn't happen), generate nothing instead of returning 0
75329         immediately, so that nstrftime (NULL, ...) doesn't return 0.
75330
75331 2005-03-16  Bruno Haible  <bruno@clisp.org>
75332
75333         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
75334         HAVE_LONGLONG_64BIT.
75335
75336 2005-03-16  Bruno Haible  <bruno@clisp.org>
75337
75338         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
75339         HAVE_LONGLONG_64BIT.
75340
75341 2005-03-16  Bruno Haible  <bruno@clisp.org>
75342
75343         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
75344         HAVE_LONGLONG_64BIT.
75345
75346 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75347
75348         * lib/strftime.c (my_strftime): Prepend space to format so that we can
75349         reliably distinguish strftime failure from empty output on POSIX
75350         hosts.
75351
75352 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75353
75354         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
75355         (iconv_string): Don't guess a size-zero buffer, as that might cause
75356         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
75357         result would be 'too large', where 'too large' is (heuristically)
75358         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
75359         overflow concerns.  This will prevent some unwanted malloc failures
75360         when the inputs are very large.
75361
75362 2005-03-15  Karl Berry  <karl@gnu.org>
75363
75364         * config/srclist.txt (config.rpath): from gettext.
75365         * config/config.rpath: update.
75366
75367 2005-03-15  Bruno Haible  <bruno@clisp.org>
75368
75369         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
75370         to 'negate'.
75371
75372         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
75373         variable.
75374
75375         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
75376         results.
75377
75378 2005-03-14  Simon Josefsson  <jas@extundo.com>
75379
75380         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
75381         <fx@gnu.org>.
75382
75383 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
75386         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
75387         intprops.h.
75388         * lib/strtol.c: Likewise.
75389
75390 2005-03-14  Jim Meyering  <jim@meyering.net>
75391
75392         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
75393         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
75394         to be nonzero so that we (and caller) can detect the difference
75395         between a valid zero-length expansion and an error return, even
75396         when the underlying strftime fails before writing anything into
75397         that location.
75398
75399 2005-03-14  Bruno Haible  <bruno@clisp.org>
75400
75401         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
75402         Update from GNU gettext 0.14.3.
75403
75404 2005-03-10  Jim Meyering  <jim@meyering.net>
75405
75406         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
75407
75408 2005-03-10  Jim Meyering  <jim@meyering.net>
75409
75410         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
75411         so that this module works on systems without fchdir.
75412
75413 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
75414
75415         Factor int-properties macros into a single file, except for
75416         glibc-related files.
75417         * lib/intprops.h: New file.
75418         * lib/getloadavg.c: Include it instead of limits.h.
75419         (INT_STRLEN_BOUND): Remove.
75420         * lib/human.c: Include intprops.h.
75421         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
75422         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
75423         302/1000.
75424         * lib/inttostr.h: Include intprops.h instead of limits.h.
75425         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
75426         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
75427         for consistency with intprops.h.
75428         (time_t_is_integer, twos_complement_arithmetic): Use them.
75429         * lib/sig2str.h: Include <signal.h>, intprops.h.
75430         (INT_STRLEN_BOUND): Remove.
75431         * lib/strftime.c (TYPE_SIGNED): Remove.
75432         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
75433         * lib/strtol.c: Adjust comments to match intprops.h.
75434         * lib/userspec.c: Include intprops.h.
75435         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
75436         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
75437         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
75438         instead of rolling our own expressions.
75439         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
75440
75441         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
75442         instead of int.
75443         (my_strftime): Do not mishandle years close to INT_MAX, by doing
75444         the right thing even if adding 1900 would overflow.  Similarly
75445         for tm_mon + 1 and tm_yday + 1.
75446         Make %Y always equivalent to %C%y, and similarly for %G and %g.
75447         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
75448         (DO_SIGNED_NUMBER): New macro.
75449         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
75450
75451 2005-03-07  Bruno Haible  <bruno@clisp.org>
75452
75453         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
75454
75455 2005-03-07  Bruno Haible  <bruno@clisp.org>
75456
75457         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
75458
75459 2005-03-04  Derek R. Price  <derek@ximbiot.com>
75460
75461         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
75462         (func_import): Only replace files via --import when they have actually
75463         changed.
75464
75465 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75466
75467         * m4/mmap-anon.m4: New file.
75468         * m4/pagealign_alloc.m4: New file.
75469
75470 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75471             Bruno Haible  <bruno@clisp.org>
75472
75473         * modules/pagealign_alloc: New file.
75474         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
75475
75476 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75477             Bruno Haible  <bruno@clisp.org>
75478
75479         * lib/pagealign_alloc.h: New file.
75480         * lib/pagealign_alloc.c: New file.
75481
75482 2005-03-03  Bruno Haible  <bruno@clisp.org>
75483
75484         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
75485         Use an all-permissive copyright notice, recommended by RMS.
75486
75487 2005-03-02  Bruno Haible  <bruno@clisp.org>
75488
75489         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
75490         of AIX, the replacement has to be done only after <string.h> is
75491         included, therefore not in config.h. stpncpy.h does the replacement,
75492         and stpncpy.c uses it.
75493
75494 2005-03-02  Bruno Haible  <bruno@clisp.org>
75495
75496         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
75497         stpncpy.c uses it.
75498
75499 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75500
75501         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
75502         The workaround isn't strictly needed for POSIX conformance, and
75503         it's too much of a pain to configure and maintain.  We'll ask
75504         people to fix their kernels instead.
75505         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
75506         (NANOSLEEP_BUG_WORKAROUND): Remove.
75507         (xnanosleep): Remove the workaround.
75508
75509 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75510
75511         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
75512         Reported by Derek Price.
75513         (Include): Add "timespec.h".
75514
75515         * modules/xnanosleep (Depends-on): Remove gethrxtime.
75516
75517 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75518
75519         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
75520         to detect nanosleep bug.
75521
75522 2005-03-01  Bruno Haible  <bruno@clisp.org>
75523
75524         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
75525
75526 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75527
75528         * modules/gethrxtime: New file.
75529         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
75530         (Depends-on): Add gethrxtime.
75531         (configure.ac): Add gl_XNANOSLEEP.
75532         (Makefile.am): Remove lib_SOURCES line.
75533
75534 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75535
75536         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
75537         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
75538
75539 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75540
75541         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
75542         * lib/timespec.h (gettime): Return void, since it always
75543         succeeds now.  All uses changed.
75544         * lib/gettime.c (gettime): Likewise.
75545         [HAVE_NANOTIME]: Prefer nanotime.
75546         Assume gettimeofday succeeds, as POSIX requires.
75547         Assime time () succeeds, since other code already does.
75548         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
75549         (timespec_subtract): Remove.
75550         (NANOSLEEP_BUG_WORKAROUND): New constant.
75551         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
75552         things considerably.  Use it only on GNU/Linux hosts, since the
75553         workaround shouldn't be needed elsewhere.
75554
75555 2005-02-24  Bruno Haible  <bruno@clisp.org>
75556
75557         * modules/gettext (Files): Add m4/glibc2.m4.
75558
75559 2005-02-24  Bruno Haible  <bruno@clisp.org>
75560
75561         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
75562         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
75563         * m4/progtest.m4:
75564         Update from GNU gettext 0.14.2.
75565         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
75566
75567 2005-02-24  Bruno Haible  <bruno@clisp.org>
75568
75569         * lib/localcharset.c: Update from GNU gettext 0.14.2.
75570         * lib/config.charset: Update from GNU gettext 0.14.2.
75571
75572 2005-02-24  Bruno Haible  <bruno@clisp.org>
75573
75574         * lib/gettext.h: Update from GNU gettext 0.14.2.
75575
75576 2005-02-23  Simon Josefsson  <jas@extundo.com>
75577
75578         * m4/iconvme.m4: New file.
75579
75580 2005-02-23  Jim Meyering  <jim@meyering.net>
75581
75582         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
75583         change.
75584         Thanks to Bruno Haible for catching it.
75585
75586 2005-02-22  Simon Josefsson  <jas@extundo.com>
75587
75588         * modules/iconvme: New file.
75589
75590         * MODULES.html.sh: Add iconvme.
75591
75592 2005-02-22  Simon Josefsson  <jas@extundo.com>
75593
75594         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
75595
75596 2005-02-22  Simon Josefsson  <jas@extundo.com>
75597
75598         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
75599
75600 2005-02-22  Jim Meyering  <jim@meyering.net>
75601
75602         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
75603         s/ifndef/ifdef/.
75604
75605 2005-02-20  Neil Conway  <neilc@samurai.com>
75606
75607         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
75608         returned by OSX/Darwin if the specified buffer is not large
75609         enough for the hostname.
75610
75611 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75612
75613         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
75614         pass it to _help, otherwise the latter coredumps trying to
75615         dereference state.root_argp.
75616
75617 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75618
75619         * modules/chdir-long (Depends-on): Add memrchr.
75620         * modules/memrchr (Files): Add lib/memrchr.h.
75621         (Include): "memrchr.h".
75622
75623 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
75626
75627 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75628
75629         * lib/memrchr.h: New file.
75630         * lib/chdir-long.c: Include it.
75631         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
75632         Don't bother including stddef.h.
75633
75634 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
75635
75636         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
75637         inclusion.
75638         Include <sys/types.h>, for dev_t.
75639         (ME_DUMMY, ME_REMOTE): Move from here....
75640         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
75641         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
75642         Dmitry V. Levin.
75643         Include mountlist.h first, to test the interface.
75644
75645 2005-01-29  Bruno Haible  <bruno@clisp.org>
75646
75647         * lib/progname.c (program_name): Initialize.
75648         Needed when linking statically on MacOS X.
75649
75650 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75651
75652         Sync from coreutils.
75653         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
75654         (Depends-on): Add c-strtod.
75655         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
75656
75657 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75658
75659         Sync from coreutils.
75660         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
75661
75662         Remove files that are specific to coreutils.
75663         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
75664
75665 2005-01-28  Bruno Haible  <bruno@clisp.org>
75666
75667         * modules/javacomp: New file.
75668         * MODULES.html.sh (Java): Add javacomp.
75669
75670 2005-01-28  Bruno Haible  <bruno@clisp.org>
75671
75672         * m4/javacomp.m4: New file, from GNU gettext.
75673
75674 2005-01-28  Bruno Haible  <bruno@clisp.org>
75675
75676         * lib/javacomp.sh.in: New file, from GNU gettext.
75677         * lib/javacomp.h: New file, from GNU gettext.
75678         * lib/javacomp.c: New file, from GNU gettext.
75679
75680 2005-01-26  Simon Josefsson  <jas@extundo.com>
75681
75682         * lib/gai_strerror.c: Use GPL in header.
75683
75684 2005-01-26  Bruno Haible  <bruno@clisp.org>
75685
75686         * modules/javaexec: New file.
75687         * MODULES.html.sh (Java): Add javaexec.
75688
75689 2005-01-26  Bruno Haible  <bruno@clisp.org>
75690
75691         * m4/javaexec.m4: New file, from GNU gettext.
75692
75693 2005-01-26  Bruno Haible  <bruno@clisp.org>
75694
75695         * lib/javaexec.sh.in: New file, from GNU gettext.
75696         * lib/javaexec.h: New file, from GNU gettext.
75697         * lib/javaexec.c: New file, from GNU gettext.
75698
75699 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75700
75701         * modules/lchown (Depends-on): Remove lchown.h
75702
75703 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75704
75705         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
75706         must be defined if the header file was not found, in order
75707         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
75708
75709 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75710
75711         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
75712         initializers for struct pentry_state.
75713         (__argp_error): Check return value of __asprintf
75714         (__argp_failure): Translate error message
75715
75716         * lib/argp-parse.c: Removed braces around the expansion of N_()
75717
75718 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
75721         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
75722         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
75723         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
75724         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
75725         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
75726         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
75727         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
75728         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
75729         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
75730         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
75731         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
75732         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
75733         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
75734         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
75735         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
75736         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
75737         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
75738         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
75739         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
75740         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
75741         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
75742         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
75743         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
75744         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
75745         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
75746         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
75747         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
75748         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
75749         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
75750         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
75751         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
75752         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
75753         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
75754         xstrtol.m4, xstrtoumax.m4, yesno.m4:
75755         Use an all-permissive copyright notice, recommended by RMS.
75756
75757 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
75758
75759         * modules/chdir-long (Depends-on): Remove mempcpy.
75760
75761 2005-01-21  Jim Meyering  <jim@meyering.net>
75762
75763         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
75764         same value as for Solaris 9.
75765
75766         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
75767         component length.  This included changing the parameter to be
75768         of type `char *' rather than `char const *'.
75769         * lib/chdir-long.h (chdir_long): Update prototype.
75770
75771         * lib/openat.c (fdopendir, fstatat): New functions.
75772         * lib/openat.h: Include headers required for use of DIR and struct
75773         stat.
75774         [AT_SYMLINK_NOFOLLOW]: Define.
75775         (fdopendir, fstatat): Add prototypes.
75776
75777 2005-01-21  Bruno Haible  <bruno@clisp.org>
75778
75779         * modules/classpath: New file.
75780         * MODULES.html.sh (Java): Add classpath.
75781
75782 2005-01-21  Bruno Haible  <bruno@clisp.org>
75783
75784         * lib/classpath.h: New file, from GNU gettext.
75785         * lib/classpath.c: New file, from GNU gettext.
75786
75787 2005-01-20  Simon Josefsson  <jas@extundo.com>
75788
75789         * modules/version-etc-fsf: New file.
75790
75791 2005-01-20  Simon Josefsson  <jas@extundo.com>
75792
75793         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
75794         * lib/version-etc.c: Remove version_etc_copyright.
75795         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75796         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75797
75798 2005-01-20  Simon Josefsson  <jas@extundo.com>
75799
75800         * lib/base64.h (isbase64): Add.
75801
75802         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75803         using a unsigned prototype, don't inline.
75804         (base64_decode): Use it.
75805
75806 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75807
75808         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75809         it.
75810
75811 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75812
75813         * lib/save-cwd.c (save_cwd): Remove code to support the case
75814         where fchdir is missing or flaky.
75815
75816 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75817
75818         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75819
75820 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75821
75822         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
75823         AC_LIBSOURCES now does this.
75824         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
75825         with new ullong_max module.
75826
75827 2005-01-19  Bruno Haible  <bruno@clisp.org>
75828
75829         * modules/sh-quote: New file.
75830         * MODULES.html.sh (Executing programs): Add sh-quote.
75831
75832 2005-01-19  Bruno Haible  <bruno@clisp.org>
75833
75834         * lib/sh-quote.h: New file, from GNU gettext.
75835         * lib/sh-quote.c: New file, from GNU gettext.
75836
75837 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         Merge from coreutils.
75840         * m4/ullong_max.m4: New file.
75841         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
75842         (gl_MACROS): Assume localeconv exists.
75843
75844 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75845
75846         Merge changes from coreutils, as described below in several
75847         changelogs dated today.
75848
75849         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
75850         (O_DIRECTORY): Remove; not needed here, since "." must be
75851         a directory.  All uses removed.
75852         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
75853         universal on Suns, and we also need to test for IRIX.
75854         Revamp code to use 'if' rather than '#if'.
75855         Avoid unnecessary comparison of cwd->desc to 0.
75856
75857         * lib/utimens.c (futimens): Robustify the previous patch, by checking
75858         for known valid error numbers rather than observed invalid ones.
75859
75860 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75861
75862         * modules/ullong_max: New file.
75863
75864         * modules/chdir-long, modules/openat: New files.
75865         * modules/save-cwd (Depends-on): Depend on chdir-long.
75866         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
75867
75868 2005-01-18  Jim Meyering  <jim@meyering.net>
75869
75870         Merge from coreutils.
75871         * m4/chdir-long.m4, m4/openat.m4: New files.
75872         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
75873         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
75874         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
75875         is sane and DOES follow symlinks.  Besides, testing 20 different
75876         systems found no broken chown implementations.
75877         Prompted by a change in rsync's copy of this macro.
75878         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
75879
75880         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
75881
75882         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
75883         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75884         NULL-means-set-to-current-time semantics.
75885         Remove temporary file immediately, rather than waiting
75886         for configure's at-exit trap code to do it.
75887
75888 2005-01-18  Jim Meyering  <jim@meyering.net>
75889
75890         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75891
75892         * lib/utimens.c (futimens): Account for the fact that futimes
75893         can also fail with errno == ENOSYS or errno == ENOENT.
75894         Patch from Dmitry V. Levin.
75895
75896         Change the name of the robust chdir function from chdir to chdir_long.
75897         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75898         (restore_cwd): Use chdir_long, not chdir.
75899         * lib/chdir-long.c: Renamed from chdir.c.
75900         * lib/chdir-long.h: Renamed from chdir.h.
75901         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75902         Hurd.
75903
75904 2005-01-18  Bruno Haible  <bruno@clisp.org>
75905
75906         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75907         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75908         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75909         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75910         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75911         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75912         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75913         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75914         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75915         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75916         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75917         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75918         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75919         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75920         Use an all-permissive copyright notice, recommended by RMS.
75921
75922 2005-01-18  Bob Proulx  <bob@proulx.com>
75923
75924         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75925         simplify offsetof() macro construct to avoid compile failure with
75926         native HP-UX 11.0 ANSI C compiler.
75927
75928 2005-01-17  Bruno Haible  <bruno@clisp.org>
75929
75930         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75931         redundant because stpncpy.m4 takes care of it.
75932
75933 2005-01-17  Bruno Haible  <bruno@clisp.org>
75934
75935         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75936
75937 2005-01-17  Bruno Haible  <bruno@clisp.org>
75938
75939         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75940         used.
75941
75942 2005-01-17  Bruno Haible  <bruno@clisp.org>
75943
75944         * lib/fwriteerror.h (fwriteerror): Change specification to include
75945         fclose.
75946         * lib/fwriteerror.c: Include <stdbool.h>.
75947         (fwriteerror): At the end, close the file stream. Record whether
75948         stdout was already closed.
75949
75950 2005-01-17  Bruno Haible  <bruno@clisp.org>
75951
75952         * lib/execute.c (environ): Declare if needed.
75953         * lib/pipe.c (environ): Likewise.
75954         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75955
75956 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75957
75958         * modules/argp: Depend on vsnprintf
75959
75960 2005-01-10  Jim Meyering  <jim@meyering.net>
75961
75962         * modules/closeout (Depends-on): Add atexit.
75963
75964 2005-01-06  Bruno Haible  <bruno@clisp.org>
75965
75966         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75967
75968 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75969
75970         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75971         definitions to be after all include files, to avoid collisions.
75972         Problem reported by Bob Proulx.
75973
75974 2005-01-04  Jim Meyering  <jim@meyering.net>
75975
75976         Changes imported from coreutils.
75977         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75978         as the mkstemp template, use a temporary directory and an
75979         8.3-friendly template to avoid trouble on systems like DJGPP.
75980         Reported by Juan M. Guerrero via Stepan Kasal.
75981         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75982         close. Remove the temporary directory right away, rather than waiting
75983         for configure's at-exit trap code to do it.
75984         Suggestion from Stepan Kasal.
75985
75986 2005-01-01  Simon Josefsson  <jas@extundo.com>
75987
75988         * gnulib-tool: Print #include directives when --import'ing.
75989
75990 2004-12-28  Simon Josefsson  <jas@extundo.com>
75991
75992         * tests/test-base64.c: Include required header files.  Remove
75993         unused variables.
75994
75995 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75996
75997         * modules/error (Depends-on): Remove gettext.
75998
75999 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
76002         not needed.  This removes a dependency on the gettext module.
76003         [defined _LIBC]: Do not include <libintl.h>; not needed.
76004
76005 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76006
76007         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
76008         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
76009
76010 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76011
76012         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
76013         HAVE_DECL_STRTOLD.
76014
76015 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         * modules/getdate (Depends-on): Remove alloca-opt.
76018
76019 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76020
76021         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
76022
76023 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76024
76025         * lib/argp-parse.c: Include <stddef.h>.
76026         (alignof, alignto): New macros.
76027         (parser_init): Don't assume that void * is aligned sufficiently
76028         for struct option.
76029
76030         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
76031         need to extend the stack.
76032         (YYINITDEPTH): New macro, so that the initial stack isn't overly
76033         large.
76034
76035 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76036
76037         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
76038
76039 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76040
76041         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
76042         (2004-10-24) change.  Apparently this was a false alarm.
76043
76044         * modules/getdate: Depend on alloca-opt, not alloca.
76045
76046 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76047
76048         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
76049         Remove now-obsolete comment about AIX.
76050         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
76051         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
76052         (YYMAXDEPTH): New macro.
76053
76054 2004-12-18  Simon Josefsson  <jas@extundo.com>
76055
76056         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
76057
76058 2004-12-18  Bruno Haible  <bruno@clisp.org>
76059
76060         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
76061
76062 2004-12-18  Bruno Haible  <bruno@clisp.org>
76063
76064         * lib/fatal-signal.c (fatal_signals): Make non-const.
76065         (init_fatal_signals): New function.
76066         (uninstall_handlers, install_handlers): Ignore signals that were set to
76067         SIG_IGN.
76068         (at_fatal_signal): Call init_fatal_signals.
76069         (init_fatal_signal_set): Likewise. Ignore signals that were set to
76070         SIG_IGN.
76071         Reported by Paul Eggert.
76072
76073 2004-12-18  Bruno Haible  <bruno@clisp.org>
76074
76075         * doc/alloca.texi: New file.
76076         * doc/alloca-opt.texi: New file.
76077
76078 2004-12-17  Jim Meyering  <jim@meyering.net>
76079
76080         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
76081         Otherwise, install-sh could exit with improper exit status when
76082         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
76083
76084 2004-12-16  Simon Josefsson  <jas@extundo.com>
76085
76086         * tests/test-base64.c: Add license.
76087
76088 2004-12-15  Stepan Kasal  <address@hidden>
76089
76090         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
76091
76092 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
76093
76094         * modules/getcwd (Files): Add m4/d-ino.m4.
76095         Suggested by Mark D. Baushke.
76096
76097 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
76098
76099         * lib/getdate.y (textint): New member "negative".
76100         (time_zone_hhmm): New function.
76101         Expect 14 shift-reduce conflicts, not 13.
76102         (o_colon_minutes): New rule.
76103         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
76104         (yylex): Set the "negative" member of signed numbers.
76105
76106 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
76107
76108         * doc/getdate.texi (Time of day items, Time zone items):
76109         Describe new formats +00:00, UTC+00:00.
76110
76111 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76112
76113         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
76114         spurious "-l"s.  Problem reported by Stepan Kasal.
76115
76116 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
76117
76118         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
76119         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
76120
76121 2004-12-04  Simon Josefsson  <jas@extundo.com>
76122
76123         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
76124         Vandoorselaere <yoann@prelude-ids.org>.
76125
76126 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76127
76128         Changes imported from coreutils.
76129         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
76130         exist.
76131         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
76132
76133 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76134
76135         Changes imported from coreutils.
76136         * lib/hard-locale.c: Assume <locale.h> exists.
76137         Include "strdup.h".
76138         (GLIBC_VERSION): New macro.
76139         (hard_locale): Assume setlocale exists.
76140         Rewrite to avoid #ifdef.
76141         Use strdup rather than malloc + strcpy.
76142         * lib/human.c: Assume <locale.h> exists.
76143         (human_readable): Assume localeconv exists.
76144
76145 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76146
76147         * modules/hard-locale (Depends-on): Add strdup.
76148
76149 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
76150
76151         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
76152         convert T2, not T.  (Imported from libc.)
76153
76154 2004-11-30  Simon Josefsson  <jas@extundo.com>
76155
76156         * modules/restrict (License): Change to LGPL.
76157
76158 2004-11-30  Simon Josefsson  <jas@extundo.com>
76159
76160         * m4/restrict.m4: Add copyright and copying conditions.
76161
76162 2004-11-30  Simon Josefsson  <jas@extundo.com>
76163
76164         * m4/base64.m4: New file.
76165
76166 2004-11-30  Simon Josefsson  <jas@extundo.com>
76167
76168         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
76169         base64.
76170
76171         * tests/test-base64.c: New file.
76172
76173         * modules/base64: New file.
76174
76175 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
76176
76177         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
76178         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
76179
76180         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
76181
76182 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
76183
76184         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
76185         (__getcwd.c): Don't restore errno; glibc doesn't.
76186         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
76187         first, falling back to our code only if its results look suspicious.
76188         Ensure that the resulting buffer is only as large as necessary.
76189
76190         * lib/readutmp.c: Include readutmp.h first.
76191         Include <errno.h>, since readutmp.h no longer does that.
76192         * lib/readutmp.h: Don't include <errno.h>,
76193         <sys/param.h>, <time.h>; not needed to establish interface.
76194         (errno): Remove decl.
76195         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
76196         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
76197         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
76198
76199 2004-11-28  Simon Josefsson  <jas@extundo.com>
76200
76201         * lib/base64.h, base64.c: New file.
76202
76203 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76204
76205         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
76206
76207 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76208
76209         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
76210         (Depends-on): Remove pathmax, same.  Add mempcpy.
76211         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
76212         (Makefile.am): Append getcwd.h to lib_SOURCES.
76213         (Include): Add getcwd.h.
76214         (Maintainer): Change from Jim Meyering to "all, glibc",
76215         since getdate now uses intended-for-glibc code.
76216         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
76217         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
76218
76219 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76220
76221         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
76222         HP's ANSI C compiler.
76223         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
76224         Declaring int functions causes warnings on some modern systems and
76225         shouldn't be needed to compile on ancient ones.
76226         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
76227         defined.
76228
76229         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
76230         with the following changes.
76231         (__set_errno): Parenthesize properly.
76232         Include <stdbool.h>.
76233         (MIN, MAX, MATCHING_INO): New macros.
76234         (__getcwd): Define with prototype, not K&R form.
76235         Use heuristics to allocate default buffer on stack if possible.
76236         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
76237         behavior, and to avoid the PATH_MAX limit when computing
76238         ../../../../...
76239         Use MATCHING_INO to compare inode number to file.
76240         Check for arithmetic overflow in size calculations.
76241         Fix bug in reallocation of dot array that caused getcwd to fail
76242         on directories nested deeper than 75.
76243         Be more careful about saving errno on error.
76244         Do not use realloc; use only free+malloc, as this is a bit
76245         more flexible and avoids a needless copy operation.
76246         Do not inspect st_dev and st_ino for symbolic links; POSIX
76247         doesn't specify the latter.
76248         Check for closedir errors.
76249         Avoid needless casts.
76250         Use "#ifdef weak_alias" around weak_alias, to be like other
76251         glibc code.
76252         The following changes to getcwd.c have effect only when used in
76253         gnulib; they have no effect inside glibc proper.
76254         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
76255         as alloca isn't used.
76256         (alloca, __alloca): Likewise.
76257         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
76258         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76259         unconditionally, as gnulib assumes C89 or better.
76260         Do not include <sys/param.h>.
76261         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
76262         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
76263         better.
76264         (NULL) [!defined NULL]: Remove; we assume C89 or better.
76265         Include <dirent.h> in a way that is compatible with modern Autoconf.
76266         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
76267         New macros, if not already defined.
76268         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
76269         Use "_LIBC", not "defined _LIBC", for consistency.
76270         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
76271         a mempcpy module.
76272         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
76273         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
76274         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
76275         credit only to Jim Meyering and adjust the copyright dates.
76276         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
76277         <stdlib.h>, <unistd.h>, "pathmax.h".
76278         Instead, include "xgetcwd.h" (first) and "getcwd.h".
76279         (INITIAL_BUFFER_SIZE): Remove.
76280         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
76281
76282 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76283
76284         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
76285         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
76286         Use the _ONCE methods, for efficiency.
76287         Check for fcntl.h.  In test program, include <errno.h>
76288         and <fcntl.h> if available.  Remove old K&R cruft from
76289         test program.  Check for common errors in GNU/Linux,
76290         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
76291         don't do AC_LIBOBJ, as that's getcwd.m4's job.
76292         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
76293         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
76294         name accordingly.
76295         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
76296         accommodate new getcwd.c.
76297         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
76298         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
76299         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
76300         that's all we need now.
76301
76302 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76303
76304         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
76305         argp-parse.c depends on getopt internals, that means we should
76306         always use our getopt, to be on the safe side.
76307         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
76308         order not to spoil the result of an eventual previous invocation
76309         of gl_GETOPT_SUBSTITUTE.
76310
76311 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76312
76313         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
76314         redefinition warnings. To avoid them, include the defines
76315         in `#if !defined __need_getopt ... #endif'. The only place
76316         where __getopt_argv_const is used is in definitions
76317         of getopt_long and getopt_long_only below, which are as well
76318         protected by `#ifndef __need_getopt'.
76319         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
76320         __need_getopt after including <stdio.h> and <unistd.h> These
76321         headers might have defined it.
76322
76323 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76324
76325         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
76326
76327 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76328
76329         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
76330         (futimens): New function, which uses futimes if available.
76331         (futimens, utimens): Support timespec==NULL, with same semantics
76332         as utime and utimens.
76333         * lib/utimens.h (futimens): New decl.
76334
76335 2004-11-23  Jim Meyering  <jim@meyering.net>
76336
76337         * lib/getopt_.h: Remove trailing blanks.
76338
76339 2004-11-23  Jim Meyering  <jim@meyering.net>
76340
76341         * lib/__fpending.c: Add comment.
76342
76343 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         * modules/canonicalize (Depends-on): Add xreadlink.
76346         Problem reported by James Youngman.
76347
76348 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76349
76350         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
76351         New macros.
76352         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
76353         optopt): Use them instead of invoking ## directly; otherwise, the
76354         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
76355
76356 2004-11-19  Bruno Haible  <bruno@clisp.org>
76357
76358         * lib/strtok_r.c: Move comments from here...
76359         * lib/strtok_r.h: ... to here.
76360
76361 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76362
76363         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
76364         implementations that mishandle size_t overflow.
76365
76366 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76367
76368         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
76369         might fail.  Problem reported by Yoann Vandoorselaere.
76370         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
76371         implementations that mishandle size_t overflow.
76372
76373 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76374
76375         * modules/canon-host (Depends-on): Add strdup.
76376
76377 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76378
76379         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
76380
76381 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76382
76383         * lib/canon-host.c: Include "strdup.h".
76384         (canon_host): Use getaddrinfo if available, so that IPv6 works.
76385         Use strdup instead of malloc/strcpy to duplicate strings.
76386
76387         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
76388         (human_space_before_unit): New constant.
76389         * lib/human.c (human_readable): Support it.
76390
76391         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
76392         (xgetcwd): Set errno correctly when failing.
76393         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
76394         the failure is actually due to a PATH_MAX problem.
76395
76396         Further getopt changes to make it more likely that glibc will
76397         buy the changes back.
76398         * lib/getopt.c (POSIXLY_CORRECT): New constant.
76399         (getopt): Use it, so to preserve glibc semantic
76400         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
76401         when compiling for libc.
76402         * lib/getopt_.h (__getopt_argv_const): Bring it back.
76403         (getopt_long, getopt_long_only): Use it.
76404
76405         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76406         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
76407         (getopt): Argv is now char * const *, as per standard.
76408         (_getopt_internal_r, _getopt_internal): Argv is now char **,
76409         not char *__getopt_argv_const *.
76410         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76411         _getopt_long_only_r): Likewise.
76412         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
76413         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76414         _getopt_long_r, _getopt_long_only_r): Likewise.
76415         * lib/getopt_.h (__getopt_argv_const): Remove.
76416         (getopt): Argv is now char * const *, as per standard.
76417
76418         * lib/getdate.y (tORDINAL): New token.
76419         (day, relunit): Allow it for relative times.
76420         (relative_time_table): Use tORDINAL for ordinals.
76421
76422 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76423
76424         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
76425         Document that "second" isn't allowed as an ordinal number.
76426
76427 2004-11-16  Jim Meyering  <jim@meyering.net>
76428
76429         * modules/closeout (Depends-on): Add fpending.
76430
76431 2004-11-15  Jim Meyering  <jim@meyering.net>
76432
76433         * lib/closeout.c: Include "__fpending.h" once again.
76434         Include <stdbool.h>.
76435         (close_stdout): Don't fail just because stdout was closed initially,
76436         since some programs don't write to stdout in the normal course of
76437         operation (other than --version and --help), and we don't want this
76438         function to make e.g. `touch file >&-' fail.
76439         But do fail if it was closed and someone has tried to write to it.
76440         E.g., `printf foo >&-' must fail.
76441
76442 2004-11-13  Jim Meyering  <jim@meyering.net>
76443
76444         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
76445
76446 2004-11-12  Simon Josefsson  <jas@extundo.com>
76447
76448         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
76449         small doc fix is still pending.
76450
76451 2004-11-11  Simon Josefsson  <jas@extundo.com>
76452
76453         * modules/strtok_r: New file.
76454
76455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76456         strtok_r.
76457
76458 2004-11-11  Simon Josefsson  <jas@extundo.com>
76459
76460         * m4/strtok_r.m4: New file.
76461
76462         * m4/getopt.m4: Replace opterr.
76463
76464 2004-11-11  Simon Josefsson  <jas@extundo.com>
76465
76466         * lib/strtok_r.h, strtok_r.c: New file.
76467
76468 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76469
76470         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
76471         of replacing opterr, getopt, etc.  This should handle the
76472         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
76473
76474 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
76477         we can stop lying to compilers about the constness of argv when we
76478         are compiled outside glibc.
76479         (getopt, getopt_long, getopt_long_only): Use it.
76480         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76481         _getopt_internal, getopt): Likewise.
76482         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76483         _getopt_long_only_r): Likewise.
76484         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76485         _getopt_long_r, _getopt_long_only_r): Likewise.
76486
76487         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
76488         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
76489         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
76490         the other external symbols.
76491         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
76492         declaration, since the above renaming now works around collisions.
76493
76494 2004-11-11  Jim Meyering  <jim@meyering.net>
76495
76496         * lib/linebreak.c: Remove trailing blanks.
76497         * lib/alloca_.h: Likewise.
76498         * lib/acosl.c: Likewise.
76499         * lib/euidaccess.c: Likewise.
76500         * lib/allocsa.h: Likewise.
76501
76502 2004-11-10  Simon Josefsson  <jas@extundo.com>
76503
76504         * m4/getaddrinfo.m4: New file.
76505
76506 2004-11-10  Simon Josefsson  <jas@extundo.com>
76507
76508         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
76509
76510 2004-11-10  Simon Josefsson  <jas@extundo.com>
76511
76512         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76513         getaddrinfo.
76514
76515         * modules/getaddrinfo: New file.
76516
76517 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76518
76519         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
76520
76521 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76522
76523         * lib/mktime.c (SHR): New macro, which is a portable
76524         substitute for >> that should work even on Crays.
76525         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
76526         Problem reported by Mark D. Baushke in
76527         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
76528         * lib/getdate.y (SHR): Likewise.
76529         (tm_diff): Use it.
76530         * lib/strftime.c (SHR): Likewise.
76531         (tm_diff): Use it.
76532         * lib/quotearg.c (struct quoting_options): Use unsigned int for
76533         quote_these_too, so that right shifts are well defined.  All uses
76534         changed.
76535
76536 2004-11-10  Jim Meyering  <jim@meyering.net>
76537
76538         Ensure that no close failure goes unreported.
76539         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
76540         return early when it seems there's nothing to flush.
76541         Don't include __fpending.h.
76542
76543 2004-11-10  Jim Meyering  <jim@meyering.net>
76544
76545         * modules/closeout (Depends-on): Remove fpending.
76546
76547 2004-11-10  Jim Meyering  <jim@meyering.net>
76548
76549         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
76550
76551 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76552
76553         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
76554         gl_FUNC_STRFTIME.
76555         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
76556         and AC_REQUIRE when possible, to avoid duplicate checks.
76557         Check for <wchar.h>.
76558
76559 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76560
76561         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
76562
76563 2004-11-09  Bruno Haible  <bruno@clisp.org>
76564
76565         * m4/sockpfaf.m4: New file.
76566
76567 2004-11-05  Bruno Haible  <bruno@clisp.org>
76568
76569         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
76570         Reported by Mark D. Baushke <mdb@cvshome.org>.
76571
76572 2004-11-04  Bruno Haible  <bruno@clisp.org>
76573
76574         2004-09-11  Bruno Haible  <bruno@clisp.org>
76575                 * allocsa.valgrind: New file.
76576         2004-02-06  Bruno Haible  <bruno@clisp.org>
76577                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
76578                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
76579                 Reported by Christopher Seip <chris.seip@hp.com>.
76580
76581 2004-11-04  Bruno Haible  <bruno@clisp.org>
76582
76583         * modules/allocsa (Files): Add lib/allocsa.valgrind.
76584         (Makefile.am): Distribute it.
76585
76586 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76587
76588         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
76589         with errno == ERANGE if the buffer is too small.
76590         Problem reported by Mark D. Baushke.
76591
76592 2004-11-03  Albert Chin  <china@thewrittenword.com>
76593             Paul Eggert  <eggert@cs.ucla.edu>
76594
76595         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
76596         equivalent, substitute $ac_type for equivalent type rather than
76597         blindly using uint32_t *always* which won't work if uint32_t is not
76598         available.  Define _UINT32_T to work around typedef of uint32_t if
76599         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
76600         2.5.1.
76601
76602 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76603
76604         * m4/jm-macros.m4: Sync from coreutils.
76605         (gl_MACROS): Check for mbrlen, for pathchk.
76606         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
76607
76608 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76609
76610         * lib/xreadlink.c (MAXSIZE): New macro.
76611         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
76612         size does not exceed MAXSIZE.  Avoid cast.
76613         As suggested by Mark D. Baushke in
76614         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
76615         if readlink fails with buffer size just under MAXSIZE, try again
76616         with MAXSIZE.
76617
76618 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76619
76620         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
76621
76622 2004-11-02  Derek R. Price  <derek@ximbiot.com>
76623         and  Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
76626         (get_date): Overparenthesize to avoid GCC warning.
76627
76628 2004-11-02  Bruno Haible  <bruno@clisp.org>
76629
76630         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
76631         returns void.
76632
76633 2004-11-02  Bruno Haible  <bruno@clisp.org>
76634
76635         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
76636         function returns void.
76637
76638 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76639
76640         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
76641         fflush_unlocked, flockfile, funlockfile, funlockfile,
76642         fputs_unlocked, putc_unlocked.
76643
76644 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76645
76646         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76647         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
76648         already declared.
76649
76650 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76651
76652         * modules/getdate (Files): Add doc/getdate.texi.
76653         (Depends-on): Add setenv, xalloc.
76654
76655 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         * lib/getdate.y: Add support for TZ="foo" within a date string.
76658         Fix some bugs near time_t boundaries.  Reject dates with
76659         out-of-range components, e.g., "Sept 31".
76660         Include <stdlib.h>, "setenv.h", "xalloc.h".
76661         (ISDIGIT_LOCALE): Remove; unused.
76662         Note that the TZ and time functions used here are not reentrant.
76663         (mktime_ok, get_tz): New functions.
76664         (TZBUFSIZE): New constant.
76665         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
76666         This requires that we sometimes generate our own TZ="XXX..." setting.
76667
76668 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76669
76670         * doc/getdate.texi: New file, from coreutils with modifications for
76671         the new TZ parsing.
76672
76673 2004-10-27  Derek R. Price  <derek@ximbiot.com>
76674
76675         * lib/mktime.c (not_equal_tm): Remove redundant check.
76676
76677 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76678
76679         * modules/regex (lib_SOURCES): Add regex.c.
76680         Reported by James Youngman in
76681         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
76682
76683 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76684
76685         * lib/getdate.y: Use Bison 1.875 features, and some minor
76686         code cleanups.  This change does not affect semantics.
76687         Don't include <stdlib.h>; no longer needed.
76688         Don't include unlocked-io.h; only the "#if TEST" code uses
76689         stdio, and performance isn't crucial there.
76690         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
76691         Bison 1.875 features as described below.
76692         All uses of "PC." replaced by "pc->".
76693         (YYSTYPE): Add a forward declaration.
76694         (yylex, yyerror): Use full prototypes in forward decls.
76695         Use "%pure-parser" rather than obsolescent "%pure_parser".
76696         Use %parse-param and %lex-param instead of obsolescent
76697         YYPARSE_PARAM and YYLEX_PARAM.
76698         (meridian_table, month_and_day_table, time_units_table,
76699         relative_time_table, time_zone_table, military_table,
76700         lookup_zone, lookup_word, get_date):
76701         Use NULL instead of 0 where appropriate.
76702         (to_hour): Avoid abort (), to avoid a dependency on
76703         stdlib.h.
76704         (yyerror, yylex): Now accepts parser_control * arg.
76705         (main) [TEST]: Use '\0' rather than 0 for char.
76706
76707 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76708
76709         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
76710
76711 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76712
76713         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
76714         It's now the caller's responsibility to handle the case where
76715         !HAVE_GETPAGESIZE && !defined getpagesize.
76716
76717         * lib/mktime.c (leapyear): Arg is long int, not int.
76718
76719 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
76720
76721         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
76722
76723 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76724
76725         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
76726         missing.  Problem reported by James Youngman.
76727
76728 2004-10-16  Simon Josefsson  <jas@extundo.com>
76729
76730         * gnulib-tool: Fix comments.  Fix parse problem.
76731         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
76732
76733 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
76734
76735         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
76736         implementation of getopt_long.  Problem reported by Alexander Taler in:
76737         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
76738
76739 2004-10-15  Bruno Haible  <bruno@clisp.org>
76740
76741         * gnulib-tool: Untabify. Initialize supplied_libname.
76742         (func_usage): More homogenous output.
76743         (func_modules_transitive_closure, func_modules_to_filelist,
76744         func_emit_lib_Makefile_am): New functions.
76745         (func_import): New function, extracted from big case statement. Use
76746         func_get_license, func_modules_transitive_closure,
76747         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
76748         opt_lgpl. Don't use test -a, as it's not portable.
76749         (func_create_testdir): Use func_modules_transitive_closure,
76750         func_modules_to_filelist, func_emit_lib_Makefile_am.
76751
76752 2004-10-15  Bruno Haible  <bruno@clisp.org>
76753
76754         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
76755
76756 2004-10-15  Bruno Haible  <bruno@clisp.org>
76757
76758         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
76759         the portions belonging to each module.
76760         Suggested by Derek Robert Price <derek@ximbiot.com>.
76761
76762 2004-10-12  Simon Josefsson  <jas@extundo.com>
76763
76764         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76765         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
76766         to real functions.
76767
76768 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76769
76770         * modules/vsnprintf: New file.
76771
76772 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76773
76774         * m4/vsnprintf.m4: New file.
76775
76776 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76777
76778         * lib/vsnprintf.h: New file.
76779         * lib/vsnprintf.c: New file.
76780
76781 2004-10-11  Bruno Haible  <bruno@clisp.org>
76782
76783         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
76784         vsnprintf.
76785
76786 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76787
76788         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
76789
76790 2004-10-07  Bruno Haible  <bruno@clisp.org>
76791
76792         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
76793         fits into the provided buffer.
76794
76795 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76796
76797         * lib/diacrit.c, diacrit.h: Add GPL notice.
76798
76799         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76800         notice.
76801         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76802         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76803         This avoids a potential constant-folding bug.
76804
76805 2004-10-05  Bruno Haible  <bruno@clisp.org>
76806
76807         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76808         for the declaration of strsep.
76809
76810 2004-10-05  Bruno Haible  <bruno@clisp.org>
76811
76812         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76813
76814 2004-10-04  Simon Josefsson  <jas@extundo.com>
76815
76816         * modules/memmem: New file.
76817         * tests/test-memmem.c: New file.
76818         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76819
76820 2004-10-04  Simon Josefsson  <jas@extundo.com>
76821
76822         * m4/memmem.m4: New file.
76823
76824 2004-10-04  Simon Josefsson  <jas@extundo.com>
76825
76826         * lib/memmem.h: New file.
76827         * lib/memmem.c: New file, taken from glibc.
76828
76829 2004-10-04  Simon Josefsson  <jas@extundo.com>
76830
76831         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
76832         '#ifdef USE_UNLOCKED_IO'.
76833
76834 2004-10-04  Simon Josefsson  <jas@extundo.com>
76835
76836         * config/srclist.txt: Add memmem from glibc.
76837
76838 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76839
76840         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
76841
76842         * modules/argmatch, modules/argp, modules/closeout, modules/error,
76843         modules/exclude, modules/getdate, modules/getline,
76844         modules/getndelim2, modules/getpass, modules/getpass-gnu,
76845         modules/getusershell, modules/linebuffer, modules/md5,
76846         modules/mountlist, modules/posixtm, modules/readtokens,
76847         modules/readutmp, modules/regex, modules/sha1,
76848         modules/version-etc, modules/yesno:
76849         Remove dependency on unlocked-io.
76850
76851 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76852
76853         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
76854
76855         * m4/unlocked-io.m4: Add copyright notice.
76856         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
76857
76858 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76859
76860         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
76861         * lib/xmalloc.c (xmemdup): Likewise.
76862         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
76863         XFREE): Remove these long-obsolescent macros.
76864         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
76865         * lib/xstrdup.c: Remove.
76866
76867         * lib/regex.c (re_comp): Cast gettext return value to char *,
76868         Problem reported by Martin Neitzel via Mark D. Baushke.
76869
76870 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76871
76872         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
76873         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
76874         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
76875         regex.c, sha1.c, version-etc.c, yesno.c:
76876         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
76877         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
76878         the includer's responsibility.
76879
76880         Sync from coreutils.
76881
76882         * lib/modechange.c (mode_compile): Don't decrement a pointer that
76883         points to the start of a string, as the C Standard says the
76884         resulting behavior is undefined.
76885
76886         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76887         simple -> simple_backups, numbered_existing ->
76888         numbered_existing_backups, numbered -> numbered_backups
76889         to avoid shadowing problems.  All uses changed.
76890         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76891         * lib/backupfile.c (check_extension, numbered_backup):
76892         Rename locals to avoid shadowing 'basename'.
76893         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76894         once.
76895
76896         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76897         * lib/.cvsignore: Add getopt.h.
76898
76899 2004-10-04  Bruno Haible  <bruno@clisp.org>
76900
76901         * modules/README: New file.
76902         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76903         not a module.
76904
76905 2004-10-02  Jim Meyering  <jim@meyering.net>
76906
76907         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76908
76909 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76910
76911         * modules/strsep: New file.
76912
76913 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76914
76915         * m4/strsep.m4: New file.
76916
76917 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76918
76919         * lib/strsep.h: New file.
76920         * lib/strsep.c: New file.
76921
76922 2004-10-01  Simon Josefsson  <jas@extundo.com>
76923
76924         * lib/snprintf.c (snprintf): Handle size==0.
76925
76926 2004-10-01  Simon Josefsson  <jas@extundo.com>
76927             Bruno Haible  <bruno@clisp.org>
76928
76929         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76930         (snprintf): Declare 'args'.
76931
76932 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76933
76934         * lib/snprintf.c: Remove comments as to why each header is needed.
76935
76936 2004-10-01  Bruno Haible  <bruno@clisp.org>
76937
76938         * MODULES.html.sh: Add strsep.
76939
76940 2004-09-30  Simon Josefsson  <jas@extundo.com>
76941
76942         * modules/snprintf: New file.
76943
76944 2004-09-30  Simon Josefsson  <jas@extundo.com>
76945
76946         * m4/snprintf.m4: New file.
76947
76948 2004-09-30  Simon Josefsson  <jas@extundo.com>
76949
76950         * lib/snprintf.h, lib/snprintf.c: New files.
76951
76952 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76953
76954         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76955         (hol_entry_help): Never translate an empty string.
76956         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76957         * lib/argp.h (OPTION_NO_TRANS): New option.
76958
76959 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76960
76961         * modules/argp (Maintainer): Replace Simon Josefsson
76962         by Sergey Poznyakoff.
76963
76964 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76965
76966         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76967         changes merged back into glibc.
76968
76969 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76970
76971         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76972
76973 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76974
76975         * lib/xvasprintf.c: Include xalloc.h.
76976         (xvasprintf): Use xalloc_die, not xmalloc_die.
76977
76978 2004-09-29  Bruno Haible  <bruno@clisp.org>
76979
76980         * modules/alloca-opt: New file, derived from modules/alloca.
76981         * modules/allocsa: Depend on alloca-opt instead of alloca.
76982         * modules/setenv: Likewise.
76983         * modules/vasnprintf: Likewise.
76984         * MODULES.html.sh: Add alloca-opt.
76985
76986 2004-09-28  Simon Josefsson  <jas@extundo.com>
76987
76988         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76989         LGPL, and to replace license template from GPL to LGPL.
76990
76991 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76992
76993         * modules/dummy: Change license to LGPL.
76994
76995 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76996
76997         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76998
76999 2004-09-24  Simon Josefsson  <jas@extundo.com>
77000
77001         * modules/minmax (License): Change from GPL to LGPL.
77002
77003 2004-09-23  Simon Josefsson  <jas@extundo.com>
77004
77005         * gnulib-tool (--import): Typo.
77006
77007 2004-09-23  Simon Josefsson  <jas@extundo.com>
77008
77009         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
77010
77011 2004-09-22  Bruno Haible  <bruno@clisp.org>
77012
77013         * modules/*: Add 'License' field.
77014         * gnulib-tool: Accept --extract-license option.
77015         (func_get_license): New function.
77016
77017 2004-09-21  Bruno Haible  <bruno@clisp.org>
77018
77019         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
77020         Reported by Simon Josefsson.
77021
77022 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77023
77024         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
77025         gl_AC_TYPE_LONG_LONG.
77026
77027 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77028
77029         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
77030
77031 2004-09-18  Simon Josefsson  <jas@extundo.com>
77032         and  Paul Eggert  <eggert@cs.ucla.edu>
77033
77034         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
77035         calls with autoreconf.  Define GL_LIB.
77036
77037 2004-09-14  Karl Berry  <karl@gnu.org>
77038
77039         * config/srclist.txt: unsync setenv.c, sigh.
77040
77041 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77042
77043         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
77044         Problem reported by Bruno Haible in:
77045         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
77046
77047 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77048
77049         * config/srclist.txt: Comment out argp-pvh.c.
77050
77051 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
77052
77053         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
77054         in case some system header has #define'd it.  Problem reported by
77055         Soeren D. Schulze in
77056         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
77057
77058 2004-09-09  Karl Berry  <karl@gnu.org>
77059
77060         * regex.[ch]: delete from the root.  These were supposed to be
77061                 synced with emacs cvs, but this has not happened for about
77062                 a year, and anyway nothing else uses emacs regex.[ch].
77063                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
77064                 lib/regex[.ch] is untouched.
77065
77066 2004-09-09  Bruno Haible  <bruno@clisp.org>
77067
77068         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
77069
77070 2004-09-09  Bruno Haible  <bruno@clisp.org>
77071
77072         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
77073         modifications.
77074         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
77075
77076 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77077
77078         * modules/xvasprintf: New file.
77079         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
77080
77081 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77082
77083         * lib/xvasprintf.h: New file.
77084         * lib/xvasprintf.c: New file.
77085         * lib/xasprintf.c: New file.
77086
77087 2004-09-08  Bruno Haible  <bruno@clisp.org>
77088
77089         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
77090
77091 2004-09-08  Bruno Haible  <bruno@clisp.org>
77092
77093         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
77094         length is > INT_MAX.
77095         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
77096         more.
77097
77098 2004-09-08  Bruno Haible  <bruno@clisp.org>
77099
77100         * lib/stdint_.h: New file, taken from GNU clisp.
77101
77102 2004-09-08  Bruno Haible  <bruno@clisp.org>
77103             Oskar Liljeblad  <oskar@osk.mine.nu>
77104
77105         * modules/stdint: New file.
77106         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
77107
77108 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         Import from coreutils.
77111         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
77112         strings on unbounded length.  alloca's performance benefits aren't
77113         that important here.
77114         (V_STRDUP): Remove.
77115         (parse_with_separator): New function, with most of the internals
77116         of the old parse_user_spec.  Allow user to omit both user and group,
77117         for compatibility with FreeBSD.
77118         Clone only the user name, not the entire spec.
77119         Do not set *uid, *gid unless entirely successful.
77120         Avoid memory leak in some failing cases.
77121         Fix regression for USER.GROUP reported by Dmitry V. Levin in
77122         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
77123         (parse_user_spec): Rewrite to use parse_with_separator.
77124
77125 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77126
77127         * modules/userspec: Don't depend on alloca.
77128
77129 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77130
77131         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
77132
77133 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77134
77135         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
77136         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
77137         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
77138
77139 2004-08-16  Simon Josefsson  <jas@extundo.com>
77140
77141         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
77142         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
77143         Add --dry-run for --import.
77144         Let user provided command line parameters override configure.ac
77145         settings.
77146
77147 2004-08-12  Simon Josefsson  <jas@extundo.com>
77148
77149         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
77150         as discussed with Paul Eggert in threads rooted at
77151         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
77152         and
77153         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
77154         Before, the test was empty, and relied on ELIDE_CODE in source
77155         code.)
77156         (gl_PREREQ_GETOPT): New macro.
77157         (gl_GETOPT): Use them.
77158
77159 2004-08-12  Simon Josefsson  <jas@extundo.com>
77160
77161         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
77162         * lib/getopt_.h: Renamed from getopt.h.
77163
77164 2004-08-12  Simon Josefsson  <jas@extundo.com>
77165
77166         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
77167         Change default library name from libfoo to libgnu.
77168         Now, if you have a configure.ac that says:
77169                 gl_SOURCE_BASE(gl)
77170                 gl_M4_BASE(gl/m4)
77171                 gl_MODULES(error getopt etcetera)
77172                 gl_INIT
77173         you can import all you need by running:
77174                 ../gnulib/gnulib-tool --import
77175
77176         * modules/getopt (Files): Rename getopt.h to getopt_.h.
77177         (Makefile.am): Rewrite, use logic from argz.
77178         (Include): Use <getopt.h> instead of "getopt.h".
77179
77180 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77181
77182         * modules/argp (Files): Add m4/unlocked-io.m4.
77183         (Depends-on): Add extensions.
77184
77185 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77186
77187         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
77188         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
77189         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
77190         Check for program_invocation_name, program_invocation_short_name,
77191         flockfile, funlockfile, features.h, _getopt_long_only_r.
77192
77193 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77194
77195         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
77196         its complicated substitute.
77197         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
77198         and program_invocation_name.
77199         (__argp_basename) [!_LIBC]: Remove; the only use was
77200         replaced by its body.
77201         (__argp_short_program_name): Change condition from
77202         !defined __argp_short_program_name to
77203         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
77204         to match argp-namefrob.h.
77205         (__argp_failure): Don't assume strerror_r returns char *.
77206         * lib/argp-parse.c (N_): Define unconditionally.
77207         (argp_default_options): Fill out initializers with 0 to avoid
77208         gcc warnings.
77209
77210 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77211
77212         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
77213         getopt1.c.
77214
77215 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77216
77217         Merge from coreutils.
77218
77219         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
77220
77221         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
77222         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
77223
77224 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77225
77226         Merge from coreutils.
77227
77228         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
77229         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
77230         for Reliant Unix 5.43.
77231
77232         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
77233         (union fooround): Use uintmax_t, not long int.
77234         The rest is a merge from libc:
77235         [defined _LIBC]: Include <shlib-compat.h>.
77236         (_obstack) [defined _LIBC]: Remove after 2.3.4.
77237
77238         * lib/settime.c (settime): Recode to avoid warning with
77239         Sun Forte C 6U2.
77240
77241         * lib/strverscmp.c: Convert to UTF-8.
77242
77243 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77244
77245         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77246         m4/uintmax_t.m4.
77247
77248 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77249
77250         * modules/xalloc-die: New file.
77251         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
77252
77253         * modules/md5 (Files): Add m4/uint32_t.m4.
77254         * modules/sha1: Renamed from modules/sha.
77255         (Files):
77256         Rename lib/sha.h to lib/sha1.h.
77257         Rename lib/sha.c to lib/sha1.c.
77258         Rename m4/sha.m4 to m4/sha1.m4.
77259         (lib_SOURCES): Likewise.
77260         (configure.ac): Rename gl_SHA to gl_SHA1.
77261         (Include): sha.h -> sha1.h.
77262
77263 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77264
77265         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
77266         * m4/sha1.m4: Renamed from sha.m4.
77267         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
77268
77269 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77270
77271         * lib/obstack.h (obstack_empty_p):
77272         Don't assume that chunk->contents is suitably aligned.
77273         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
77274         Likewise. Problem reported by Benno in
77275         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
77276
77277         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
77278         readable.  This could be improved further but it'd take some work.
77279
77280 2004-08-08  Simon Josefsson  <jas@extundo.com>
77281
77282         * modules/xgethostname (Depends-on): Remove exit and error (not
77283         used).
77284
77285         * modules/getpass-gnu: Add getpass.h.
77286         (Depends-on): Add stdbool.
77287         * modules/getpass: Add getpass.h.
77288
77289 2004-08-08  Simon Josefsson  <jas@extundo.com>
77290
77291         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
77292         Check getpass declaration.
77293
77294 2004-08-08  Simon Josefsson  <jas@extundo.com>
77295
77296         * lib/xgethostname.c: Don't include error.h (not used).
77297
77298         * lib/getpass.h: Add.
77299         * lib/getpass.c: Include getpass.h first.
77300
77301 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
77302
77303         * lib/xalloc-die.c: New file.
77304         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
77305         All uses removed.
77306         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
77307         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
77308         xalloc-die.c.
77309         (_, N_, xalloc_die): Move to xalloc-die.c.
77310         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
77311         so that we needn't mess with xalloc_msg_memory_exhausted.
77312
77313         * lib/sha1.h: Renamed from sha.h.
77314         (SHA1_H): Renamed from _SHA_H.
77315         (sha1_ctx): Renamed from sha_ctx.
77316         (sha1_init_ctx): Renamed from sha_init_ctx.
77317         (sha1_process_block): Renamed from sha_process_block.
77318         (sha1_process_bytes): Renamed from sha_process_bytes.
77319         (sha1_finish_ctx): Renamed from sha_finish_ctx.
77320         (sha1_read_ctx): Renamed from sha_read_ctx.
77321         (sha1_stream): Renamed from sha_stream.
77322         (sha1_buffer): Renamed from sha_buffer.
77323         * lib/sha1.c: Likewise; renamed from sha.c.
77324         Do not include <sys/types.h>.
77325         Include <stddef.h> rather than <stdlib.h>.
77326
77327 2004-08-08  Bruno Haible  <bruno@clisp.org>
77328
77329         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
77330         FILESYSTEM_PREFIX_LEN.
77331         * lib/progreloc.c: Likewise.
77332         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
77333
77334 2004-08-06  Simon Josefsson  <jas@extundo.com>
77335
77336         * modules/progname (Depends-on): Don't depend on stdbool.
77337
77338 2004-08-06  Simon Josefsson  <jas@extundo.com>
77339
77340         * modules/getsubopt: New file.
77341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77342         getsubopt.
77343
77344 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77345
77346         More merge from coreutils.
77347
77348         * m4/utimens.m4, m4/utimecmp.m4: New files.
77349         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
77350         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
77351         prereq.m4, sha.m4: Import changes from coreutils.
77352
77353 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77354
77355         More merge from coreutils.
77356         * modules/raise, modules/readtokens0, modules/utimens:
77357         * modules/utimecmp, module/xnanosleep: New files.
77358         * modules/strftime: Add lib/strftime.h.
77359         Change include from <time.h> to "strftime.h".
77360         * modules/yesno: Add lib/yesno.h.
77361         * modules/backupfile: Remove lib/addext.c.
77362         * modules/euidaccess: Add stat-macros.h.
77363         * modules/canonicalize, modules/euidaccess,
77364         modules/filemode, modules/lchown, modules/makepath,
77365         modules/rmdir, modules/stat: Likewise.
77366
77367 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77368
77369         Merge from tar.
77370         * lib/argp-help.c (make_hol, hol_append): Don't assume that
77371         SIZE_MAX is a valid preprocessor constant.
77372         (__argp_basename): Change from "#ifndef _LIBC"
77373         to "#ifndef __argp_short_program_name", so that
77374         we don't compile these functions for tar.
77375
77376         More merges from coreutils.
77377         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
77378         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
77379         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
77380         * lib/addext.c: Remove; no longer needed.
77381         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
77382         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
77383         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
77384         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
77385         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
77386         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
77387         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
77388         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
77389         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
77390         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77391         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
77392         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
77393         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
77394         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
77395         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
77396         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
77397         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
77398         Import changes from coreutils.
77399
77400 2004-08-05  Simon Josefsson  <jas@extundo.com>
77401
77402         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
77403
77404 2004-08-05  Simon Josefsson  <jas@extundo.com>
77405
77406         * m4/getsubopt.m4: New file.
77407
77408 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77409
77410         Merge from coreutils.
77411
77412         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
77413         * m4/getcwd-path-max.m4: New files.
77414
77415         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
77416         FILESYSTEM_PREFIX_LEN ->
77417         FILE_SYSTEM_PREFIX_LEN.
77418         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
77419         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
77420         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
77421         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
77422
77423         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
77424         prerequisite modules now handle the DOS stuff.
77425         Don't check for unistd.h.
77426
77427 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77428
77429         Merge from coreutils.
77430
77431         * lib/.gdb-history: Remove; this doesn't belong here.
77432
77433         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
77434         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
77435         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
77436         * lib/getcwd.c: New files.
77437
77438         * lib/dirname.h: Include <stdbool.h>.
77439         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
77440         for consistency with POSIX terminology.  All uses changed.
77441         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
77442         (strip_trailing_slashes): Use bool for booleans.
77443         * lib/stripslash.c (strip_trailing_slashes): Likewise.
77444
77445         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
77446         sometimes returns a positive errno value even when it succeeds.
77447         (print_errno_message) [!LIBC]: Fall back on strerror if
77448         __strerror_r fails.
77449
77450         * lib/path-concat.c (mempcpy): Don't define if a system header defines
77451         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
77452         (longest_relative_suffix): New function.
77453         (path_concat): Use it.  Assume first argument is not NULL.
77454         Port to DOS.  Omit redundant separators.
77455         Report an error instead of returning NULL.
77456         Use mempcpy instead of memcpy.
77457         (xpath_concat): Remove: not declared or used.
77458
77459         * lib/same.h: Include <stdbool.h>
77460         (same_name): Return bool, not int.
77461         * lib/same.c (same_name): Likewise.
77462         (errno): Don't declare; we assume C89 or better now.
77463
77464         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
77465         if not already defined.
77466
77467         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
77468         * lib/dup-safer.c (errno): Likewise.
77469
77470 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77471
77472         Merge from coreutils.
77473         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
77474         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
77475         * modules/path-concat: Don't depend on strdup.
77476
77477 2004-08-03  Simon Josefsson  <jas@extundo.com>
77478
77479         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
77480         * lib/progname.h: Don't include stdbool.h.
77481
77482 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77483
77484         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
77485         * MODULES.html.sh (func_all_modules): Remove fatal.
77486
77487 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77488
77489         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
77490
77491 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77492
77493         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
77494         working.
77495
77496 2004-08-02  Simon Josefsson  <jas@extundo.com>
77497
77498         * lib/getsubopt.h: New file, with comments from Bruno Haible.
77499         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
77500         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
77501
77502 2004-08-01  Simon Josefsson  <jas@extundo.com>
77503
77504         * lib/xgetdomainname.c: Include stdlib.h, for free().
77505
77506 2004-07-19  Bruno Haible  <bruno@clisp.org>
77507
77508         * MODULES.html.sh (func_all_modules): Add dummy.
77509
77510 2004-07-16  Simon Josefsson  <jas@extundo.com>
77511
77512         * modules/dummy: New file.
77513
77514 2004-07-16  Simon Josefsson  <jas@extundo.com>
77515
77516         * lib/dummy.c: New file.
77517
77518 2004-07-16  Bruno Haible  <bruno@clisp.org>
77519
77520         * lib/backupfile.h: Add extern "C" for C++.
77521         * lib/closeout.h: Likewise.
77522         * lib/copy-file.h: Likewise.
77523         * lib/findprog.h: Likewise.
77524         * lib/full-write.h: Likewise.
77525         * lib/pathname.h: Likewise.
77526         * lib/progname.h: Likewise.
77527         * lib/stpcpy.h: Likewise.
77528         * lib/stpncpy.h: Likewise.
77529         * lib/strcase.h: Likewise.
77530         * lib/strstr.h: Likewise.
77531         * lib/xalloc.h: Likewise.
77532
77533         * lib/mbswidth.h: Add extern "C" for C++.
77534         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
77535
77536 2004-07-13  Robert Millan  <robertmh@gnu.org>
77537
77538         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
77539
77540 2004-07-09  Simon Josefsson  <jas@extundo.com>
77541
77542         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
77543         failed without this.)
77544
77545 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77546
77547         * modules/chown (Files): Add lib/fchown-stub.c, since
77548         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
77549
77550 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77551
77552         * lib/fchown-stub.c: New file.
77553
77554 2004-06-24  Jim Meyering  <jim@meyering.net>
77555
77556         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
77557
77558 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77559
77560         * modules/argz: Omit "#include".
77561
77562         * MODULES.html.sh (func_all_modules): Add calloc, to match
77563         2004-06-01 addition of calloc module.
77564
77565 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77566
77567         * m4/argz.m4: New file, which is autoupdated from libtool.
77568
77569 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77570
77571         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
77572         libtool.
77573
77574 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77575
77576         * config/srclist-update: Don't insist on "USA." before the
77577         close-comment, as libtool omits the period and puts the */ on a
77578         separate line.
77579         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
77580         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
77581
77582 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
77583
77584         * modules/argz: New file.
77585         * MODULES.html.sh (func_all_modules): Add argz.
77586
77587 2004-06-12  Jim Meyering  <jim@meyering.net>
77588         and  Paul Eggert  <eggert@cs.ucla.edu>
77589
77590         * modules/hash (Files): Add lib/xalloc.h.
77591         * modules/pipe (Depends-on): Add wait-process.
77592         * modules/stat (Depends-on): Add xalloc.
77593         * modules/userspec (Files): Add lib/userspec.h.
77594         * modules/xstrto
77595
77596         Upgrade from gettext-0.13.
77597         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
77598         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
77599         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
77600
77601 2004-06-10  Jim Meyering  <jim@meyering.net>
77602
77603         * lib/calloc.c: New file.
77604
77605 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
77606
77607         * lib/getdate.y (yylex): Allow space between sign and number.
77608         Problem reported by Dan Jacobson.
77609
77610 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77611
77612         Merge from coreutils CVS.
77613
77614         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
77615         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
77616         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
77617         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
77618         xstrtol.m4: Fix copyright date and/or serial number.
77619
77620         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
77621         See if we need an fchown replacement.
77622         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
77623         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
77624         and use the replacement function if we detect either defect.
77625
77626         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
77627         gl_UTIMECMP.
77628
77629 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77630         and  Jim Meyering  <jim@meyering.net>
77631
77632         Merge from coreutils CVS.
77633
77634         * lib/stat-macros.h: New file, with contents from file-type.h
77635         and coreutils' system.h.
77636         * lib/file-type.c: Include "stat-macros.h".
77637         * lib/file-type.h (file_type): Move all macro definitions to new file,
77638         stat-macros.h.
77639
77640         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
77641         Wrap old code with this conditional.
77642         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
77643         function that does not dereference symlinks.
77644         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
77645
77646         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
77647         dependency problems.
77648         (xreadlink): Accept new arg SIZE, for efficiency.
77649         All decls and uses changed.
77650         * lib/xreadlink.h: Include <stddef.h>, for size_t.
77651
77652         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
77653         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
77654
77655         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
77656         sysexits.h.
77657
77658 2004-06-01  Jim Meyering  <jim@meyering.net>
77659
77660         * m4/calloc.m4: New file.
77661
77662 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
77663
77664         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
77665         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
77666         Also, fix a typo in a diagnostic.
77667
77668 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77669
77670         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
77671         or AC_FUNC_REALLOC.
77672
77673 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77674
77675         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
77676         macros to be defined.
77677         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
77678         the allocator returns NULL because the requested size is zero.
77679
77680 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77681
77682         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
77683         var.  Add comment explaining why libc still defines it.  This
77684         merges the following patch from glibc:
77685         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
77686
77687 2004-05-20  Andreas Schwab  <schwab@suse.de>
77688
77689         * m4/free.m4: Replace free if it not known to work, not the other
77690         way round.
77691
77692 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77693
77694         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
77695         present in glibc since revision 1.1 of this file.
77696         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
77697         obstack_alignment_mask, obstack_alloc, obstack_base,
77698         obstack_blank, obstack_blank_fast, obstack_chunk_size,
77699         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
77700         obstack_grow0, obstack_init, obstack_int_grow,
77701         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
77702         obstack_next_free, obstack_object_size, obstack_ptr_grow,
77703         obstack_ptr_grow_fast, obstack_room): Remove declarations of
77704         nonexistent functions.
77705
77706 2004-05-18  Karl Berry  <karl@gnu.org>
77707
77708         * config/srclist.txt: break link for vasnprintf.c.
77709
77710 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77711
77712         Port obstack to the AS/400, where pointers are 16 bytes wide and
77713         you cannot cast an integer to a valid pointer.  This patch is
77714         currently waiting to be integrated into glibc; see
77715         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
77716
77717         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
77718         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
77719         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
77720         (struct obstack): temp member is now a union of a pointer and
77721         an integer, instead of an integer.  All integer uses changed.
77722         This does not affect the physical layout of struct obstack,
77723         except on hosts (like the AS/400) where the size or alignment of
77724         void * is greater than that of ptrdiff_t.
77725         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
77726         __STDC__)]: Store temporary in pointer member of union, not
77727         integer member.
77728         * lib/obstack.c: Include <stddef.h>, for offsetof.
77729         (struct fooalign): Remove; it doesn't need a name.
77730         (union fooround): Change double to long double, and add void *.
77731         (DEFAULT_ALIGNMENT): Use offsetof to compute.
77732         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
77733         not a macro.  Hence the values are always int; so remove all
77734         casts-to-int in uses.
77735
77736 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77737
77738         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
77739         we can get this patch merged into glibc.
77740
77741 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77742             Paul Eggert  <eggert@cs.ucla.edu>
77743
77744         * m4/argp: Depend on alloca.
77745
77746 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77747             Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
77750         freecoding.
77751
77752 2004-05-17  Bruno Haible  <bruno@clisp.org>
77753
77754         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
77755         precision that consists of a '.' followed by an empty digit string.
77756         Patch by Tor Lillqvist <tml@iki.fi>.
77757
77758 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77759
77760         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
77761         for backward compatibility with older code.  We need our own
77762         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
77763         it under some other name, and our alloca.h will define it.
77764
77765 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77766             Derek Price  <derek@ximbiot.com>
77767
77768         * lib/alloca.c: Include <alloca.h>, to get our interface.
77769         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
77770         include <alloca.h> first.  Use C89 prototype for alloca; this
77771         requires including <stddef.h> for size_t.  Use extern "C" if C++.
77772         Use #elif for simplicity, since we can assume C89 now.
77773         Don't try to source the system alloca.h since it will not be found
77774         and to prevent recursively including its replacement.
77775         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
77776         * lib/regex.c: Likewise.
77777
77778 2004-05-16  Derek Price  <derek@ximbiot.com>
77779             Paul Eggert  <eggert@cs.ucla.edu>
77780
77781         getline cleanup.  This changes the getndelim2 API: both order of
77782         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
77783         no delimiter).
77784
77785         * lib/getline.c: Don't include stddef.h or stdio.h, since our
77786         interface does that.
77787         (getline): Always use getdelim, so that we don't have two
77788         copies of this code.
77789         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
77790         if available.
77791         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
77792         (GETNDELIM2_MAXIMUM): New macro.
77793         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
77794         instead of the old practice of delim2==0.  All callers changed.
77795         Return -1 on overflow, instead of returning junk.
77796         Do not set *linesize unless allocation succeeds.
77797         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77798         that we include sys/types.h.
77799         * lib/getnline.h: Likewise.
77800         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77801         (getndelim2): Reorder arguments.
77802         * lib/getnline.c (getnline, getndelim):
77803         Don't discard the NMAX argument.
77804         (getnline): Invoke getndelim, to avoid code duplication.
77805         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77806         of (size_t) -1 by callers of the getnline family.
77807
77808 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77809
77810         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77811         Check for gettimeofday.
77812         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77813         Check for settimeofday, stime.
77814
77815 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77816
77817         * lib/nanosleep.c (suspended): Change its type from int to
77818         sig_atomic_t volatile.
77819         (first_call): Make it private to rpl_nanosleep, and have it
77820         be zero initially as that's a bit faster.
77821         (my_usleep): Round up fractional times instead of truncating them,
77822         as this is the usual meaning for 'sleep'.
77823
77824         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
77825         doesn't work.
77826         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
77827         (ENOSYS): Define if not defined.
77828         (settime): Fall back on stime if it exists and settimeofday fails.
77829         But don't bother with fallbacks if a method fails with errno == EPERM.
77830
77831 2004-05-11  Jim Meyering  <jim@meyering.net>
77832
77833         Prior to this change, the save_cwd caller required read access to the
77834         current directory on most systems (ones with the fchdir function).
77835
77836         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
77837         fails, try write-only, and finally, resort to using xgetcwd.
77838
77839 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77840
77841         * lib/obstack.c, obstack.h: Import changes from libc.
77842
77843 2004-04-28  Bruno Haible  <bruno@clisp.org>
77844
77845         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
77846         also implicitly appends .exe to executables.
77847         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
77848         accepts Windows pathnames.
77849         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77850         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77851         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77852         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77853         Reported by Derek Robert Price <derek@ximbiot.com>.
77854
77855 2004-04-21  Karl Berry  <karl@gnu.org>
77856
77857         * config/srclist.txt (localcharset.c): break sync.
77858
77859 2004-04-20  Paul Eggert  <eggert@twinsun.com>
77860
77861         * m4/host-os.m4: Add a copyright notice.
77862
77863 2004-04-20  Jim Meyering  <jim@meyering.net>
77864
77865         Change UTILS_ to gl_ in AC_DEFINE'd names.
77866         Change utils_- and jm_-prefixed variables, too.
77867         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
77868         UTILS_FUNC_MKDIR_TRAILING_SLASH.
77869         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
77870
77871         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
77872         Don't emit trailing blanks.
77873         Also rename jm_-prefixed variables to have gl_ prefix.
77874
77875         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
77876         Also rename jm_-prefixed variables to have gl_ prefix.
77877
77878         * m4/jm-macros.m4: Reflect the renamings.
77879         * m4/prereq.m4: Likewise.
77880
77881 2004-04-20  Jim Meyering  <jim@meyering.net>
77882
77883         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77884         memory.
77885
77886 2004-04-20  Jim Meyering  <jim@meyering.net>
77887             Bruno Haible  <bruno@clisp.org>
77888
77889         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77890         memory when realloc fails.
77891
77892 2004-04-19  Jim Meyering  <jim@meyering.net>
77893
77894         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77895         now that readutmp.c may call `free (0)'.
77896
77897 2004-04-19  Bruno Haible  <bruno@clisp.org>
77898
77899         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77900         * m4/inttypes_h.m4: Likewise.
77901         * m4/stdint_h.m4: Likewise.
77902         * m4/intmax_t.m4: Likewise.
77903         * m4/uintmax_t.m4: Likewise.
77904
77905 2004-04-18  Jim Meyering  <jim@meyering.net>
77906
77907         * m4/prereq.m4: Don't forbid jm_ prefix.
77908
77909         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77910         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77911         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77912         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77913         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77914         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77915         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77916         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77917         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77918         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77919         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77920         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77921         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77922         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77923         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77924         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77925         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77926         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77927         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77928
77929 2004-04-18  Jim Meyering  <jim@meyering.net>
77930
77931         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77932         failure, don't leak memory and do call END_UTMP_ENT.
77933
77934 2004-04-16  Jim Meyering  <jim@meyering.net>
77935
77936         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77937         coreutils' stat program.
77938         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77939
77940 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77941
77942         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77943         C89.
77944         (CHAR_BIT): Remove, since we assume C89.
77945         Include <stdint.h> if available, as per current Autoconf CVS advice.
77946
77947 2004-03-31  Jim Meyering  <jim@meyering.net>
77948
77949         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77950         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77951         * m4/xalloc.m4: Likewise.
77952
77953 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77954
77955         Merge from coreutils.
77956
77957         * m4/inttostr.m4: New file.
77958         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77959         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77960         Require gl_CLOCK_TIME.
77961         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77962
77963 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77964
77965         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77966         not bool, to be more consistent with Unix conventions.
77967         Suggested by Bruno Haible.
77968
77969         Merge from coreutils.
77970
77971         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77972         * lib/umaxtostr.c: New files.
77973
77974         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77975         the usual <time.h> dance.
77976         (get_date): Change signature to support fractional time stamps.
77977         All callers changed.
77978         * lib/getdate.y: Include "getdate.h" first, as we can now
77979         assume C89 and don't need to worry about 'const'.
77980         Similarly, include "unlocked-io.h" near start, not in middle.
77981         Include <limits.h>.
77982         (textint.value): Use long int rather than int.
77983         (textint.digits): Use size_t rather than int.
77984         (BILLION, LOG10_BILLION): New constants.
77985         (parser_control): New member rel_ns.  Members day_ordinal,
77986         time_zone, month, day, hour, minutes, rel_year, rel_month,
77987         rel_day, rel_hour, rel_minutes, rel_seconds
77988         are now long int, not int.  Member seconds is now struct timespec,
77989         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77990         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77991         not int.
77992         (%union.intval): Now long int, not int.
77993         New member timespec.
77994         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77995         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77996         (spec): Now is a timespec or an item list.
77997         (timespec, items): New nonterminals.
77998         (time, rel, relunit, number, get_date):
77999         Add support for fractional seconds.
78000         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
78001         (gmtime, localtime, mktime): Remove decls; not needed with C89.
78002         (to_hour): First arg is now long int, not int.
78003         (to_year): Returns long int, not int.
78004         Don't treat year -70 like 70.
78005         (tm_diff): Returns long int, not int.
78006         (lookup_word): Use bool instead of int when appropriate.
78007         (yylex): Use size_t for count, not int.
78008         Detect overflow when parsing large integer constants.
78009         Add support for fractions.
78010         (get_date): Make pointers 'const' if possible.
78011         Use more-portable code to detect integer overflow.
78012         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
78013         Don't use ctime; it's not reliable if the year has >4 digits.
78014
78015         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
78016         This is for compatibility with BSD.
78017
78018         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
78019         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
78020         From coreutils' system.h.
78021
78022         * lib/userspec.c: Don't include "posixver.h".
78023         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
78024         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
78025         compatible extension.  Simplify code by removing a boolean int
78026         that was always nonzero if a string was nonnull.
78027
78028 2004-03-30  Jim Meyering  <jim@meyering.net>
78029
78030         Merge from coreutils.
78031
78032         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
78033         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
78034         on some systems one must include <grp.h> before it.
78035         Reported by Christian Krackowizer.
78036
78037 2004-03-30  Jim Meyering  <jim@meyering.net>
78038
78039         Merge from coreutils.
78040
78041         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
78042
78043         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
78044         an empty input stream.
78045
78046         * lib/readtokens.c: Include <stdbool.h>.
78047         (readtoken): Use `size_t' rather than int/long.
78048         All callers adjusted.
78049         Use `bool' rather than `int' where appropriate.
78050         Use memset rather than an explicit loop.
78051         Use x2nrealloc rather than xrealloc.
78052         Allow the use of `\0' as a delimiter.
78053         (readtokens): Likewise.
78054         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
78055
78056 2004-03-30  Jim Meyering  <jim@meyering.net>
78057
78058         * m4/realloc.m4: Remove file, since now it does no more than
78059         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
78060         the `configure.ac' section of module/realloc.
78061         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
78062
78063 2004-03-30  Bruno Haible  <bruno@clisp.org>
78064
78065         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
78066         nonnull.
78067
78068 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78069
78070         Merge changes to getloadavg.c from coreutils and Emacs.
78071
78072         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
78073         Define to an expression, not to the empty string.
78074         Include cloexec.h and xalloc.h.
78075         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
78076         Use set_cloexec_flag rather than rolling our own.
78077         * lib/cloexec.c, lib/cloexec.h: New files.
78078
78079 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78080
78081         * m4/cloexec.m4: New file.
78082
78083 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78084
78085         * lib/getopt.h: Sync with libc CVS.
78086
78087 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78088             Bruno Haible  <bruno@clisp.org>
78089
78090         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
78091         mbswidth.
78092
78093 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78094             Bruno Haible  <bruno@clisp.org>
78095
78096         * lib/mbswidth.h: Include <wchar.h> only if
78097         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
78098         <wchar.h>.
78099         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
78100
78101 2004-03-09  Paul Eggert  <eggert@twinsun.com>
78102
78103         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
78104         Sync with libc CVS.
78105         * lib/getopt_int.h: New file, also synced from libc.
78106
78107 2004-03-09  Paul Eggert  <eggert@twinsun.com>
78108
78109         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
78110         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
78111         Bring back getopt.c, getopt.h, getopt1.c.
78112
78113 2004-03-07  Paul Eggert  <eggert@twinsun.com>
78114
78115         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
78116         All uses changed.  Check for sa_sigaction member; this fixes
78117         a bug first reported by Jason Andrade in
78118         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
78119
78120 2004-03-07  Paul Eggert  <eggert@twinsun.com>
78121
78122         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
78123         '#if' expressions.  Unlike the code it replaces, it does not
78124         depend on (defined _SC_PAGESIZE).  However, it does depend on
78125         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
78126         first reported by Jason Andrade in
78127         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
78128
78129 2004-02-25  Simon Josefsson  <jas@extundo.com>
78130
78131         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
78132
78133 2004-02-25  Simon Josefsson  <jas@extundo.com>
78134
78135         * lib/strdup.h: New file.
78136         * lib/strdup.c: Include it.
78137         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
78138         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
78139
78140 2004-02-23  Karl Berry  <karl@gnu.org>
78141
78142         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
78143         (from fencepost.gnu.org:/gd/gnuorg).
78144
78145 2004-02-23  Karl Berry  <karl@gnu.org>
78146
78147         * config/srclistvars.sh (GNUORG) [karl]: redefine.
78148         * config/srclist.txt: add maintain/standards documents.
78149
78150 2004-02-18  Bruno Haible  <bruno@clisp.org>
78151
78152         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
78153         Reported by Derek Robert Price <derek@ximbiot.com>.
78154
78155 2004-02-16  Karl Berry  <karl@gnu.org>
78156
78157         * config/mkinstalldirs, install-sh: update from automake.
78158
78159 2004-02-06  Karl Berry  <karl@gnu.org>
78160
78161         * m4/po.m4: update from gettext 0.14.1.
78162
78163 2004-02-06  Karl Berry  <karl@gnu.org>
78164
78165         * lib/config.charset: update from gettext 0.14.1.
78166
78167 2004-02-05  Paul Eggert  <eggert@twinsun.com>
78168
78169         Add comments and code, prompted by suggestions from Bruno Haible
78170         for sh-quote.
78171         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
78172         describing the enum quoting_style values.
78173         * lib/quotearg.c (quotearg_alloc): New function.
78174         (quotearg_buffer_restyled): Treat lone { and } as special.
78175         Treat = as special.  Work around bug with older shells
78176         that "see" a '\' that is really the 2nd byte of a multibyte char.
78177         Quote empty string with shell_quoting_style.
78178
78179 2004-02-03  Bruno Haible  <bruno@clisp.org>
78180
78181         * m4/pipe.m4: New file, from GNU gettext.
78182
78183 2004-02-03  Bruno Haible  <bruno@clisp.org>
78184
78185         * lib/pipe.h: New file, from GNU gettext.
78186         * lib/pipe.c: New file, from GNU gettext.
78187
78188 2004-01-27  Bruno Haible  <bruno@clisp.org>
78189
78190         * m4/execute.m4: New file, from GNU gettext.
78191
78192 2004-01-27  Bruno Haible  <bruno@clisp.org>
78193
78194         * lib/execute.h: New file, from GNU gettext.
78195         * lib/execute.c: New file, from GNU gettext.
78196         * lib/w32spawn.h: New file, from GNU gettext.
78197
78198 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78199
78200         Merge from diffutils.
78201
78202         * lib/file-type.c (file_type): Add typed memory objects.
78203         * lib/file-type.h (S_TYPEISTMO): New macro.
78204
78205         * lib/c-stack.h (c_stack_action): Remove argv argument.
78206         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
78207         (die): Don't calculate message unless segv_action returns.
78208         (get_stack_location, min_address_from_argv, max_address_from_argv,
78209         volatile stack_base, volatile_stack_size): Remove.
78210         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
78211         that every segmentation violation is a stack overflow.  (Ouch!)
78212         See Debian bug 136249 (still outstanding) for more info about why
78213         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
78214
78215 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78216
78217         Exit-status fix from coreutils.
78218
78219         Use exit_failure consistently in place of EXIT_FAILURE,
78220         so that program exit statuses are consistent on failure.
78221
78222         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
78223         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
78224         * lib/argmatch.h: Comment fix to match the above.
78225         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
78226         Now a macro referring to exit_failure, instead of a separate
78227         variable.  Include "exitfail.h" to get it.
78228         * lib/xstrtol.h: Include "exitfail.h".
78229         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
78230
78231         * lib/long-options.c (parse_long_options): Use prototype
78232         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
78233         for clarity.
78234
78235 2004-01-21  Jim Meyering  <jim@meyering.net>
78236
78237         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
78238         so as not to conflict with a different-sized __mktime_internal
78239         function in GNU libc.
78240         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
78241         Problem building statically-linked `ls' reported by Michael Brunnbauer.
78242
78243 2004-01-20  Karl Berry  <karl@gnu.org>
78244
78245         * config/config.guess: update from config.
78246
78247         * config/srclistvars.sh: GNUWWWLICENSES for karl.
78248
78249 2004-01-20  Bruno Haible  <bruno@clisp.org>
78250
78251         Safer stack allocation.
78252         * lib/setenv.c: Include allocsa.h.
78253         (alloca): Remove fallback definition.
78254         (freea): Remove macro.
78255         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
78256         instead of freea.
78257
78258 2004-01-20  Bruno Haible  <bruno@clisp.org>
78259
78260         * m4/eealloc.m4: New file, from GNU gettext.
78261
78262 2004-01-20  Bruno Haible  <bruno@clisp.org>
78263
78264         * m4/allocsa.m4: New file, from GNU gettext.
78265
78266 2004-01-20  Bruno Haible  <bruno@clisp.org>
78267
78268         * lib/xallocsa.h: New file, from GNU gettext.
78269         * lib/xallocsa.c: New file, from GNU gettext.
78270
78271 2004-01-20  Bruno Haible  <bruno@clisp.org>
78272
78273         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
78274
78275 2004-01-20  Bruno Haible  <bruno@clisp.org>
78276
78277         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
78278         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
78279         specially.
78280
78281 2004-01-20  Bruno Haible  <bruno@clisp.org>
78282
78283         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
78284         patch.
78285
78286 2004-01-20  Bruno Haible  <bruno@clisp.org>
78287
78288         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
78289
78290 2004-01-20  Bruno Haible  <bruno@clisp.org>
78291
78292         * lib/eealloc.h: New file.
78293
78294 2004-01-20  Bruno Haible  <bruno@clisp.org>
78295
78296         * lib/binary-io.h: Avoid warnings on Cygwin.
78297
78298 2004-01-20  Bruno Haible  <bruno@clisp.org>
78299
78300         * lib/allocsa.h: New file, from GNU gettext.
78301         * lib/allocsa.c: New file, from GNU gettext.
78302
78303 2004-01-18  Karl Berry  <karl@gnu.org>
78304
78305         * doc/gpl.texi, doc/lgpl.texi: new files.
78306
78307 2004-01-18  Karl Berry  <karl@gnu.org>
78308
78309         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
78310         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
78311
78312 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78313
78314         Merge from coreutils.
78315
78316         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
78317         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
78318         (gl_DEFAULT_POSIX2_VERSION): Move
78319         the documentation from 'configure' into 'config.hin',
78320         so that 'configure --help' isn't burdened by it and
78321         we don't have to worry about its formatting there.
78322         Reword the documentation so that it's more succinct
78323         and can be run together into a single paragraph.
78324         * m4/same.m4 (gl_SAME): Check for pathconf.
78325
78326 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78327
78328         Merge from coreutils.
78329
78330         * lib/posixver.c: Include posixver.h.
78331
78332         * lib/same.c: Include <stdbool.h>, <limits.h>.
78333         (_POSIX_NAME_MAX): Define if not defined.
78334         (MIN): New macro.
78335         (same_name): If file names are silently truncated, report
78336         that the file names are the same if they are the same after
78337         the silent truncation.
78338
78339         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
78340         conversion function.
78341         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
78342         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
78343         longer needed.
78344
78345 2004-01-15  Jim Meyering  <jim@meyering.net>
78346
78347         Merge from coreutils.
78348
78349         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
78350         if no library is required.
78351         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
78352         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
78353         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
78354         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
78355         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
78356         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
78357         value, $ac_cv_search_crypt, if it's "none required".
78358         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
78359         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
78360         not gl_FUNC_GETLOADAVG.
78361         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
78362         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
78363
78364 2004-01-15  Jim Meyering  <jim@meyering.net>
78365
78366         Merge from coreutils.
78367
78368         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
78369         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
78370         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
78371
78372         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
78373         optional configure-time default.
78374
78375         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78376
78377         * lib/xreadlink.c (xreadlink): Correct outdated comment.
78378
78379 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
78380
78381         Merge from coreutils.
78382
78383         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
78384         value, $ac_cv_search_nanosleep, if it's "none required".
78385
78386 2004-01-14  Paul Eggert  <eggert@twinsun.com>
78387
78388         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
78389         with like-named macro in fnmatch.c.
78390         (EXT): Use an internal constant instead.
78391
78392         Merge fnmatch patches from glibc.
78393         * lib/fnmatch.c (mbsinit): Remove define.
78394         Add libc_hidden_ver (__fnmatch, fnmatch).
78395         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
78396         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
78397
78398 2004-01-14  Karl Berry  <karl@gnu.org>
78399
78400         * config/install-sh: update from automake.
78401
78402 2004-01-13  Karl Berry  <karl@gnu.org>
78403
78404         * config/install-sh: update from automake.
78405
78406 2004-01-09  Karl Berry  <karl@gnu.org>
78407
78408         * config/install-sh: update from automake.
78409
78410 2004-01-05  Karl Berry  <karl@gnu.org>
78411
78412         * config/config.{sub,guess}: update from config.
78413
78414 2003-12-31  Karl Berry  <karl@gnu.org>
78415
78416         * config/depcomp: update from automake.
78417
78418 2003-12-14  Karl Berry  <karl@gnu.org>
78419
78420         * lib/config.charset: update from gettext-runtime.
78421
78422 2003-12-03  Paul Eggert  <eggert@twinsun.com>
78423
78424         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
78425         Bug reported by Alfred M. Szmidt.
78426
78427 2003-12-03  Bruno Haible  <bruno@clisp.org>
78428
78429         * m4/gettext.m4: Upgrade from gettext-0.13.
78430         * m4/po.m4: Upgrade from gettext-0.13.
78431         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
78432         * m4/intmax.m4: New file, from gettext-0.13.
78433         * m4/printf-posix.m4: New file, from gettext-0.13.
78434
78435 2003-11-29  Karl Berry  <karl@gnu.org>
78436
78437         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
78438
78439 2003-11-25  Paul Eggert  <eggert@twinsun.com>
78440             Bruno Haible  <bruno@clisp.org>
78441
78442         * lib/printf-parse.h: Don't include sys/types.h.
78443         (ARG_NONE): New macro.
78444         (char_directive): Change type of *arg_index fields to size_t.
78445         * lib/printf-parse.c: Don't include sys/types.h.
78446         (SSIZE_MAX): Remove macro.
78447         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
78448         Remove unnecessary overflow check.
78449         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
78450         fields.
78451
78452 2003-11-25  Bruno Haible  <bruno@clisp.org>
78453
78454         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
78455
78456 2003-11-25  Bruno Haible  <bruno@clisp.org>
78457
78458         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
78459         gt_TYPE_SSIZE_T.
78460
78461 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78462
78463         * modules/alloca: Remove dependency on xalloc.
78464
78465 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78466
78467         * lib/alloca.c: Remove dependency on xalloc module.
78468         (xalloc_die): Remove.
78469         (memory_full) [!defined emacs]: New macro.
78470         [!defined emacs]: Don't include xalloc.h.
78471         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
78472         address arithmetic overflows.  Change datatypes a bit to avoid
78473         unnecessary casts.
78474
78475 2003-11-22  Jim Meyering  <jim@meyering.net>
78476
78477         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
78478         s/size/size_t/.
78479
78480 2003-11-21  Karl Berry  <karl@gnu.org>
78481
78482         * config/config.{sub,guess}: update from config.
78483
78484 2003-11-18  Karl Berry  <karl@gnu.org>
78485
78486         * config/config.{sub,guess}: update from config.
78487
78488         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
78489
78490 2003-11-17  Paul Eggert  <eggert@twinsun.com>
78491
78492         * README: Mention that S+T cannot overflow if S is the size of
78493         an existing object and T is sufficiently small.
78494
78495 2003-11-17  Jim Meyering  <jim@meyering.net>
78496
78497         On systems without utime and without a utimes function capable of
78498         dealing with a NULL struct utimbuf* argument, this utime replacement
78499         could -- in unusual circumstances -- leak a file descriptor.
78500         * lib/utime.c: Include <unistd.h> and <errno.h>.
78501         (utime_null): Be sure to close `fd' and to preserve errno.
78502         Reported by Geoff Collyer via Arnold Robbins.
78503
78504 2003-11-17  Bruno Haible  <bruno@clisp.org>
78505
78506         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
78507         (Depends-on): Add xsize.
78508
78509 2003-11-17  Bruno Haible  <bruno@clisp.org>
78510
78511         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
78512
78513 2003-11-17  Bruno Haible  <bruno@clisp.org>
78514
78515         * lib/vasnprintf.c (alloca): Remove fallback definition.
78516         (freea): Remove definition.
78517         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
78518         Reported by Paul Eggert.
78519
78520 2003-11-16  Paul Eggert  <eggert@twinsun.com>
78521             Bruno Haible  <bruno@clisp.org>
78522
78523         Protect against address arithmetic overflow.
78524         * lib/printf-args.h: Include stddef.h.
78525         (arguments): Change type of field 'count' to size_t.
78526         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
78527         'unsigned int' where appropriate.
78528         * lib/printf-parse.h: Include sys/types.h.
78529         (char_directive): Change type of *arg_index fields to ssize_t.
78530         (char_directives): Change type of fields 'count', max_*_length to
78531         size_t.
78532         * lib/printf-parse.c: Include sys/types.h and xsize.h.
78533         (SSIZE_MAX): Define fallback value.
78534         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
78535         instead of 'int' where appropriate. Check a_allocated, d_allocated
78536         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
78537         * lib/vasnprintf.c: Include xsize.h.
78538         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
78539         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
78540         overflow. Avoid wraparound when converting a width or precision from
78541         decimal to binary.
78542
78543 2003-11-16  Bruno Haible  <bruno@clisp.org>
78544
78545         Update from GNU gettext.
78546         * lib/printf-parse.c: Generalize to it can be compiled for wide
78547         strings.
78548         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
78549         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
78550         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
78551         SNPRINTF): New macros.
78552         Don't include <alloca.h> if the file is used inside libintl.
78553         (local_wcslen): New function, for Solaris 2.5.1.
78554         (VASNPRINTF): Use it instead of wcslen.
78555
78556 2003-11-16  Bruno Haible  <bruno@clisp.org>
78557
78558         * lib/xsize.h (xmax): New function.
78559         (xsum, xsum3, xsum4): Declare as "pure" functions.
78560
78561 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78562
78563         * modules/xalloc (Files): Undo latest change, since xalloc.h
78564         no longer needs SIZE_MAX or PTRDIFF_MAX.
78565
78566 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78567
78568         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
78569         gl_PTRDIFF_MAX.
78570
78571 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78572
78573         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
78574         "return", to pacify some unknown compiler.  Problem reported
78575         by Joerg Schilling.
78576
78577 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78578
78579         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
78580         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
78581         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
78582         heuristic is just as accurate as far as we know, and it removes a
78583         dependency on size_max.m4 and ptrdiff_max.m4.
78584
78585 2003-11-11  Bruno Haible  <bruno@clisp.org>
78586
78587         * modules/xsize (Files): Add m4/size_max.m4.
78588         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
78589
78590 2003-11-11  Bruno Haible  <bruno@clisp.org>
78591
78592         * m4/size_max.m4: New file.
78593         * m4/ptrdiff_max.m4: New file.
78594         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
78595         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
78596         (gl_XALLOC): Invoke it.
78597
78598 2003-11-11  Bruno Haible  <bruno@clisp.org>
78599
78600         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
78601         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
78602         defined.
78603
78604 2003-11-10  Paul Eggert  <eggert@twinsun.com>
78605
78606         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
78607         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
78608         rejected some allocations of exactly SIZE_MAX - 2 bytes.
78609         From Bruno Haible.
78610         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
78611         not (size_t) -1, since it's defined here.
78612
78613 2003-11-09  Karl Berry  <karl@gnu.org>
78614
78615         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
78616
78617 2003-11-06  Paul Eggert  <eggert@twinsun.com>
78618
78619         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
78620         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
78621         Reject sizes of exactly SIZE_MAX bytes.
78622         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
78623         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
78624
78625 2003-11-05  Bruno Haible  <bruno@clisp.org>
78626
78627         * lib/xsize.h: Include limits.h, to avoid a possible collision with
78628         SIZE_MAX defined in <limits.h> on Solaris.
78629
78630 2003-11-04  Jim Meyering  <jim@meyering.net>
78631
78632         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
78633         variable names, rather than @VAR@.
78634         * modules/poll: Likewise.
78635
78636 2003-11-04  Bruno Haible  <bruno@clisp.org>
78637
78638         * modules/xsize: New file.
78639         * modules/linebreak: Depend on xsize.
78640         * MODULES.html.sh (func_all_modules): Add xsize.
78641
78642 2003-11-04  Bruno Haible  <bruno@clisp.org>
78643
78644         * m4/xsize.m4: New file.
78645
78646 2003-11-04  Bruno Haible  <bruno@clisp.org>
78647
78648         * lib/xsize.h: New file.
78649         * lib/linebreak.c: Include xsize.h.
78650         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
78651         argument for overflow.
78652         Suggested by Paul Eggert.
78653
78654 2003-11-03  Karl Berry  <karl@gnu.org>
78655
78656         * config/config.{guess,sub}: update from config.
78657
78658 2003-11-03  Jim Meyering  <jim@meyering.net>
78659
78660         * modules/userspec (lib_SOURCES): Add userspec.h.
78661         (Include): Add "userspec.h".
78662         Improve description.
78663
78664 2003-11-03  Jim Meyering  <jim@meyering.net>
78665
78666         * lib/userspec.c: Include "userspec.h".
78667         * lib/userspec.h: New file.
78668
78669 2003-11-03  Bruno Haible  <bruno@clisp.org>
78670
78671         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
78672
78673 2003-11-03  Bruno Haible  <bruno@clisp.org>
78674
78675         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
78676         available, to avoid (extremely rare) race condition.
78677         Suggested by Paul Eggert.
78678
78679 2003-11-02  Karl Berry  <karl@gnu.org>
78680
78681         * config/srclist.txt (vasprintf.c): sync broken, sigh.
78682
78683 2003-10-31  Paul Eggert  <eggert@twinsun.com>
78684
78685         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
78686         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
78687         (read_filesystem_list): Set and use me_type_malloced.
78688         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
78689         whatever the type happens to be), for brevity and consistency.
78690         Check for size calculation overflow on Alphas running OSF/1.
78691
78692 2003-10-31  Jim Meyering  <jim@meyering.net>
78693
78694         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
78695
78696         * lib/linebuffer.c: Include <string.h> for declaration of memset.
78697
78698 2003-10-30  Paul Eggert  <eggert@twinsun.com>
78699             Bruno Haible  <bruno@clisp.org>
78700
78701         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
78702         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
78703
78704 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78705
78706         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
78707         netbsd*-gnu*.  Suggested by Robert Millan.
78708
78709 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78710
78711         * modules/group-member: Depend on stdbool.
78712
78713 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78714
78715         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
78716
78717 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78718
78719         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
78720         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
78721         after the 'gnu' in these cases.  This fixes some bugs in the
78722         previous change, and is based on suggestions by Robert Millan.
78723
78724 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78725
78726         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
78727         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
78728         no longer needed.
78729         * lib/quotearg.c (quotearg_n_options): Use it.
78730         * lib/group-member.c: Include <stdbool.h>.
78731         (free_group_info): Arg is now const *; don't free arg.
78732         (get_group_info): Now returns bool and accepts struct group_info *,
78733         rather than returning a malloc'ed struct group_info *.
78734         All uses changed.  Check for overflow in internal size calculation.
78735
78736         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
78737         rather than xmalloc/xrealloc.
78738         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
78739         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
78740         conformance bug: the old code used a pointer after freeing the
78741         storage that it addressed.
78742         * lib/hash.c (hash_initialize): Simplify the code by using
78743         xalloc_oversized rather than doing it by hand.
78744         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
78745         the buffer preserved.  Use free and xmalloc instead.
78746         * lib/quotearg.c (quotearg_n_options): Likewise.
78747         Use a simpler test for size overflow.  Don't use xalloc_oversized
78748         because unsigned int might be wider than size_t (!); this suggests
78749         that we should switch from unsigned int to size_t for slot numbers.
78750
78751 2003-10-28  Paul Eggert  <eggert@twinsun.com>
78752
78753         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
78754         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
78755         NetBSD kernels.  Requested by Richard Stallman.
78756
78757 2003-10-27  Paul Eggert  <eggert@twinsun.com>
78758
78759         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
78760         to allocate the returned structure.  Do not allocate a subarray,
78761         as x2nrealloc will do that.
78762         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
78763         instead of xnrealloc.
78764         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
78765
78766 2003-10-27  Bruno Haible  <bruno@clisp.org>
78767
78768         * lib/stdbool_.h: Better support for BeOS.
78769
78770 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78771
78772         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
78773         now uses inline.
78774
78775 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78776
78777         * lib/xalloc.h (xalloc_oversized): New static inline function, for
78778         callers that want to do their own size-overflow checking.  Include
78779         <stdbool.h>, since xalloc_oversized returns bool.
78780         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
78781         to use xalloc_oversized.
78782
78783         Add two functions x2realloc, x2nrealloc, for programs that grow
78784         arrays dynamically by doubling their sizes.
78785         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
78786         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
78787         New functions.
78788
78789         Port to C99 semantics for 'inline' of external functions.
78790         Bug reported by Bruno Haible.
78791         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
78792         with the old contents of xnmalloc.
78793         (xnmalloc, xmalloc): Use it.
78794         (xnrealloc_inline): New static inline function,
78795         with the old contents of xnrealloc.
78796         (xnrealloc, xrealloc): Use it.
78797
78798         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78799         that.
78800
78801 2003-10-26  Karl Berry  <karl@gnu.org>
78802
78803         * config/srclist.txt (COPYING.DOC): no longer available from
78804         /gd/gnuorg; don't know where the ultimate source is.
78805
78806 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78807
78808         Fix several address-calculation bugs in the hash modules,
78809         plus some minor code cleanup.
78810
78811         * lib/hash.h: Include <stdbool.h>, for bool.
78812         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78813         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78814         hash_get_n_entries, hash_get_max_bucket_length,
78815         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78816         hash_rehash): Use size_t rather than unsigned.
78817         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78818         hash_get_n_buckets_used, hash_get_n_entries,
78819         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78820         hash_get_entries, hash_do_for_each, hash_string, is_prime,
78821         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
78822         Likewise.
78823         (SIZE_MAX): Define if not defined.
78824         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
78825         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
78826         hash_print):
78827         Use const * when possible.
78828         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
78829         (check_tuning): Fix bug: if tuning parameters were very close to
78830         0 or 1, rounding errors could have caused subscript violations.
78831         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
78832         (hash_initialize): Add 'fail:' label
78833         to free table and return NULL, and use it to simplify code.
78834         Use calloc rather than clearing the storage ourself.
78835         (hash_initialize, hash_rehash): Check for arithmetic overflow in
78836         buffer size calculations.
78837         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
78838         Include <stddef.h>, for size_t.
78839         * lib/hash-pjw.c (hash_pjw): Likewise.
78840         Switch to method described by Bruno Haible.
78841         Include <limits.h>, for CHAR_BIT.
78842         (SIZE_BITS): New macro.
78843
78844 2003-10-23  Paul Eggert  <eggert@twinsun.com>
78845
78846         * m4/getline.m4 (AM_FUNC_GETLINE):
78847         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
78848         hosts.  Problem reported by Derek Robert Price in
78849         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
78850         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
78851         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
78852
78853 2003-10-21  Paul Eggert  <eggert@twinsun.com>
78854
78855         * lib/getndelim2.c (getndelim2): When size calculation overflows,
78856         ceiling the allocation at NMAX bytes rather than silently
78857         discarding input bytes before NMAX is reached.  This makes
78858         a difference only if NMAX exceeds SIZE_MAX / 2.
78859
78860         * lib/obstack.c: Merge from glibc.
78861         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
78862         Add libc_hidden_def (_obstack_newchunk).
78863         (_obstack_free) [! defined _LIBC]: Remove.
78864         [defined _LIBC]: Make a strong alias from obstack_free, rather than
78865         a clone of the function body.
78866         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
78867         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
78868
78869         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
78870         glibc.
78871         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
78872         arg to memcpy.
78873
78874         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
78875         (obstack_ptr_grow_fast, obstack_int_grow_fast):
78876         Don't use lvalue casts, as GCC plans to remove support for them
78877         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
78878         was also present in the non-GCC version, indicating that this
78879         code had always been buggy and had never been widely used.
78880         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
78881         Use the fast variant of each macro, rather than copying the
78882         definiens of the fast variant; that way, we'll be more likely to
78883         catch future bugs in the fast variants.
78884
78885 2003-10-20  Bruno Haible  <bruno@clisp.org>
78886
78887         * modules/wait-process: New file.
78888         * MODULES.html.sh (func_all_modules): Add wait-process.
78889
78890 2003-10-20  Bruno Haible  <bruno@clisp.org>
78891
78892         * m4/wait-process.m4: New file.
78893
78894 2003-10-20  Bruno Haible  <bruno@clisp.org>
78895
78896         * lib/wait-process.h: New file, from GNU gettext.
78897         * lib/wait-process.c: New file, from GNU gettext.
78898
78899 2003-10-19  Jim Meyering  <jim@meyering.net>
78900
78901         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78902         HPUX 10.20.
78903
78904 2003-10-18  Karl Berry  <karl@gnu.org>
78905
78906         * config/config.guess: update from config.
78907
78908 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78909
78910         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78911         (getgroups): First arg is int, not size_t.
78912         Don't let 'free' mangle errno.
78913
78914 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78915
78916         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78917
78918 2003-10-16  Karl Berry  <karl@gnu.org>
78919
78920         * config/config.{guess,sub}: update from config.
78921
78922 2003-10-16  Jim Meyering  <jim@meyering.net>
78923
78924         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78925         memcpy.
78926
78927 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78928
78929         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78930         (SIZE_MAX): Remove.
78931         (new_exclude, add_exclude_file): Initial size no longer needs to
78932         be a power of 2.
78933         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78934         our own address arithmetic overflow checking.
78935
78936         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78937         (fnmatch): Do not alloca more than 2000 wide characters;
78938         instead, use malloc for large buffers.
78939         Check for address arithmetic overflow, and return -1
78940         with errno set to ENOMEM in that case.
78941         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78942         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78943         instead, return -1.  Check for address arithmetic overflow.
78944
78945 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78946
78947         Handle invalid suffixes and overflow independently, so that
78948         callers can treat them independently as needed.  Fix some bugs in
78949         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78950         suffix for a human-readable blocksize.  The major caller-visible
78951         change is the addition of a new
78952         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78953         that both overflow and suffix chars were found.
78954
78955         * lib/human.c (humblock): Don't check separately for invalid suffix
78956         char; that is xstrtoumax's job (now that its bug is fixed).
78957         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78958         INTMAX_MAX]: New macros.
78959         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78960         TYPE_MAXIMUM): New macros.
78961         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78962         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78963         if overflow occurs, as it's what __strtol does and it's more useful
78964         in practice.
78965         (__xstrtol): If __strtol reports some error other than ERANGE,
78966         reflect it to the caller as LONGINT_INVALID.  If it reports
78967         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78968         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78969         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78970         value.
78971         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78972         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78973         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78974         [defined UINTMAX_MAX]: New macros.
78975
78976 2003-10-14  Bruno Haible  <bruno@clisp.org>
78977
78978         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78979
78980 2003-10-14  Bruno Haible  <bruno@clisp.org>
78981
78982         * m4/sig_atomic_t: New file, from GNU gettext.
78983         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78984
78985 2003-10-14  Bruno Haible  <bruno@clisp.org>
78986
78987         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78988         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78989         Also use volatile where needed.
78990
78991 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78992
78993         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78994         Change maintainer from Bruno Haible to 'all'.
78995
78996 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78997
78998         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78999
79000 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79001
79002         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
79003         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
79004         and define in terms of the other primitives.
79005         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
79006         (SIZE_MAX): Define if not already defined.
79007         (array_size_overflow): New function.
79008         (xalloc_die): Abort instead of exiting if 'error' returns.
79009         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
79010         (xmalloc, xrealloc): Use them.
79011         (xcalloc): Check for address arithmetic overflow.
79012         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
79013         a bit faster than strcpy.
79014
79015 2003-10-10  Simon Josefsson  <jas@extundo.com>
79016
79017         * modules/argp (Depends-on): Add restrict and strcase.
79018
79019 2003-10-10  Simon Josefsson  <jas@extundo.com>
79020
79021         * m4/argp.m4: Add AC_C_INLINE.
79022
79023 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79024
79025         Merge getpass from libc, plus a few fixes.
79026
79027         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
79028         Include <stdbool.h>.
79029         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
79030         __fsetlocking to empty.
79031         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
79032         do include <bits/libc-lock.h>.
79033         Do not include <fcntl.h>; not needed.
79034         [_LIBC]: Include <wchar.h>.
79035         (NOTCANCEL_MODE): New macro.
79036         (flockfile, funlockfile) [_LIBC]: New macros.
79037         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
79038         [!_LIBC]: New macros.
79039         (call_fclose): New function.
79040         (getpass): Use it.  Save tty stream separately; this simplifies the
79041         code and makes it more reliable if stdin happens to equal stdout.
79042         Invoke __fsetlocking on tty.
79043         Handle thread cancellation if needed.
79044         Namespace cleanup (use __tcgetattr, __getline).
79045         Use bool for Booleans.
79046         [USE_IN_LIBIO]: Handle wide streams.
79047         [!_LIBC]: Unconditionally do the fseek, since we don't know what
79048         stream might go where.
79049
79050         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
79051         doesn't have to include <stdio.h> before us.
79052         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
79053         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
79054         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
79055         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
79056         if not declared, so that we can use getpass.c code from libc without
79057         rewriting it.
79058         (flockfile, ftrylockfile, funlockfile): New macros.
79059
79060 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79061
79062         * modules/getpass: Depend on stdbool.
79063
79064 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79065
79066         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
79067
79068 2003-10-07  Karl Berry  <karl@gnu.org>
79069
79070         * config/config.{guess,sub}: update from config.
79071
79072 2003-10-06  Jim Meyering  <jim@meyering.net>
79073             Bruno Haible  <bruno@clisp.org>
79074
79075         This lets translators provide better translations for the
79076         "Written by ..." part of --version output.
79077         * lib/version-etc.h: Include stdarg.h.
79078         (version_etc_copyright): Declare as readonly.
79079         (version_etc): Make this function variadic with a NULL-terminated list
79080         of author name strings.
79081         (version_etc_va): New declaration.
79082         * lib/version-etc.c: Include stdarg.h, stdlib.h.
79083         (version_etc_copyright): Declare as readonly.
79084         (version_etc_va): New function. Provide a different translatable string
79085         for each possible number of authors < 10. Abbreviate when there are 10
79086         authors or more.
79087         (version_etc): Make this function variadic. Call version_etc_va.
79088         Suggestion from Gary V. Vaughan.
79089
79090         * lib/long-options.h (parse_long_options): Change prototype: the
79091         authors string is moved to the end and becomes variadic.
79092         * lib/long-options.c: Include stdarg.h.
79093         (parse_long_options): Make this function variadic, too.
79094         Call version_etc_va, not version_etc.
79095
79096 2003-10-06  Bruno Haible  <bruno@clisp.org>
79097
79098         * modules/version-etc-2: Remove file.
79099         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
79100
79101 2003-10-06  Bruno Haible  <bruno@clisp.org>
79102
79103         * modules/fatal-signal: New file.
79104         * MODULES.html.sh (func_all_modules): Add fatal-signal.
79105
79106 2003-10-06  Bruno Haible  <bruno@clisp.org>
79107
79108         * m4/fatal-signal.m4: New file.
79109         * m4/signalblocking.m4: New file, from GNU gettext.
79110
79111 2003-10-06  Bruno Haible  <bruno@clisp.org>
79112
79113         * lib/version-etc-2.h: Remove file.
79114         * lib/version-etc-2.c: Remove file.
79115
79116 2003-10-06  Bruno Haible  <bruno@clisp.org>
79117
79118         * lib/fatal-signal.h: New file, from GNU gettext.
79119         * lib/fatal-signal.c: New file, from GNU gettext.
79120
79121 2003-10-05  Paul Eggert  <eggert@twinsun.com>
79122
79123         * README: Rework advice for preventing empty .o files.
79124         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
79125         not <sys/types.h>.
79126
79127 2003-10-04  Karl Berry  <karl@gnu.org>
79128
79129         * lib/argp*: update from libc.
79130
79131 2003-10-04  Karl Berry  <karl@gnu.org>
79132
79133         * config/config.{guess,sub}: update from config.
79134
79135 2003-10-02  Bruno Haible  <bruno@clisp.org>
79136
79137         * modules/lchown (Include): Add lchown.h.
79138         * modules/time_r (Include): Use "..." syntax.
79139         * modules/xgetdomainname (Include): Add xgetdomainname.h.
79140
79141 2003-10-01  Simon Josefsson  <jas@extundo.com>
79142
79143         * MODULES.html.sh (func_all_modules): Move gethostname from section
79144         'based on' to section 'lacking' POSIX:2001.
79145
79146 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
79147
79148         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
79149         to output mode on the same stream.
79150
79151 2003-09-29  Paul Eggert  <eggert@twinsun.com>
79152
79153         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
79154         Fix arg typo in previous patch.
79155
79156 2003-09-28  Jim Meyering  <jim@meyering.net>
79157
79158         * lib/error.c: Correct cpp indentation.
79159
79160 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79161
79162         * modules/free: New file.
79163
79164 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79165
79166         * m4/free.m4: New file.
79167
79168 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79169
79170         * lib/minmax.h (MIN, MAX)
79171         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
79172         Omit the special code that used __typeof__, since we worry that
79173         it could be more trouble than it's worth.  See:
79174         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
79175         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
79176
79177         * lib/free.c: New file.
79178
79179 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
79180
79181         Trivial fixes to Makefile.am parts of module listings.
79182         * modules/strstr: Append strstr.h to lib_SOURCES.
79183         * modules/strcase: Likewise, for strcase.h.
79184
79185 2003-09-27  Karl Berry  <karl@gnu.org>
79186
79187         * config/mkinstalldirs: update from automake.
79188
79189 2003-09-26  Paul Eggert  <eggert@twinsun.com>
79190
79191         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
79192         (error_tail): Do not loop, reallocating temporary buffer, since
79193         the output cannot contain more wide characters than the input
79194         contains bytes, the size must be big enough already.  This avoids
79195         one potential size overflow calculation.  Check for size overflow
79196         when calculating temporary buffer size.  Free temporary buffer
79197         when done, if it was allocated with malloc; this plugs a memory
79198         leak.  Remove casts from void * to pointers, that are no longer
79199         needed now that we're assuming C89 or better.
79200
79201         Merge error changes from glibc.
79202
79203         * lib/error.c, error.h: Update copyright notice header to match glibc.
79204         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
79205         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
79206         Disable cancellation while printing error.
79207         * lib/error.h: Prepend __ to parameter names.
79208
79209 2003-09-26  Jim Meyering  <jim@meyering.net>
79210
79211         * lib/error.c (error_tail): Move some declarations
79212         into inner scope where the local variables are used.
79213
79214 2003-09-26  Bruno Haible  <bruno@clisp.org>
79215
79216         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
79217         stpncpy().
79218         Don't define stpncpy through config.h; it's now done through stpncpy.h.
79219
79220 2003-09-26  Bruno Haible  <bruno@clisp.org>
79221
79222         * lib/stpncpy.h (gnu_stpncpy): New declaration.
79223         (stpncpy): Define as alias for gnu_stpncpy.
79224         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
79225
79226 2003-09-25  Simon Josefsson  <jas@extundo.com>
79227
79228         * lib/xgetdomainname.h: New file.
79229         * lib/xgetdomainname.c: New file.
79230
79231 2003-09-25  Simon Josefsson  <jas@extundo.com>
79232             Bruno Haible  <bruno@clisp.org>
79233
79234         * modules/getdomainname: New file.
79235         * modules/xgetdomainname: New file.
79236         * MODULES.html.sh (func_all_modules): Add getdomainname,
79237         xgetdomainname.
79238
79239 2003-09-25  Simon Josefsson  <jas@extundo.com>
79240             Bruno Haible  <bruno@clisp.org>
79241
79242         * m4/getdomainname.m4: New file.
79243
79244 2003-09-25  Simon Josefsson  <jas@extundo.com>
79245             Bruno Haible  <bruno@clisp.org>
79246
79247         * lib/getdomainname.h: New file.
79248         * lib/getdomainname.c: New file.
79249
79250 2003-09-25  Karl Berry  <karl@gnu.org>
79251
79252         * lib/argp-fmtstream.c, argp-help.c: update from libc.
79253
79254 2003-09-25  Karl Berry  <karl@gnu.org>
79255
79256         * config/install-sh: update from automake.
79257
79258 2003-09-25  Bruno Haible  <bruno@clisp.org>
79259
79260         * modules/version-etc-2: New file, from modules/version-etc with
79261         modifications.
79262         * MODULES.html.sh (func_all_modules): Add version-etc-2.
79263
79264 2003-09-25  Bruno Haible  <bruno@clisp.org>
79265
79266         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
79267         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
79268
79269 2003-09-24  Simon Josefsson  <jas@extundo.com>
79270
79271         * modules/xgethostname: Add xgethostname.h.
79272
79273 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79274
79275         * lib/linebuffer.c (freebuffer): Don't free the argument, just
79276         the buffer associated with the argument.  Bug reported by
79277         Simon Josefsson.
79278
79279 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79280
79281         * README: Document assumptions that 'int' is at least 32 bits
79282         wide, that integer arithmetic is 2's complement without overflow,
79283         that there are no holes in integer values, that adding sizes of
79284         two nonoverlapping objects can't overflow, and that all-bits-zero
79285         yields scalar zero.  Fix spelling and capitalization typos.
79286
79287 2003-09-19  Karl Berry  <karl@gnu.org>
79288
79289         * lib/argp.h: update from libc.
79290
79291 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79292
79293         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
79294         to avoid spurious warnings like "AC_RUN_IFELSE was called before
79295         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
79296
79297 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79298
79299         * gnulib-tool: Use "test -h", not "test -L", for portability
79300         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
79301         (tags_regexp): Remove, since \| doesn't conform to POSIX.
79302         (sed_extract_prog): Issue s commands one-by-one, rather than
79303         using \| in one s command.
79304
79305 2003-09-16  Paul Eggert  <eggert@twinsun.com>
79306
79307         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
79308         input error, instead of returning NULL the next time we are called
79309         (and therefore losing track of errno).
79310
79311 2003-09-16  Bruno Haible  <bruno@clisp.org>
79312
79313         * gnulib-tool (func_create_testdir): Warn about duplicated
79314         dependencies.
79315
79316 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79317
79318         * modules/argmatch, modules/fatal, modules/obstack,
79319         modules/xalloc, modules/xgethostname: Sort dependencies by
79320         importance, not alphabetically.
79321
79322 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79323
79324         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
79325         fails, so that the caller gets the proper errno.
79326
79327         * lib/readutmp.c (read_utmp): Likewise.
79328         Check for fstat error.  Close stream and free storage
79329         when failing.
79330
79331 2003-09-14  Karl Berry  <karl@gnu.org>
79332
79333         * config/srclist.txt (strdup.c): disable for c89 changes.
79334
79335 2003-09-14  Jim Meyering  <jim@meyering.net>
79336
79337         * lib/getloadavg.c: Correct cpp indentation.
79338         * lib/strdup.c: Likewise.
79339         * lib/vasnprintf.c: Likewise.
79340
79341 2003-09-14  Bruno Haible  <bruno@clisp.org>
79342
79343         * modules/fwriteerror: New file.
79344         * MODULES.html.sh (func_all_modules): Add fwriteerror.
79345
79346 2003-09-14  Bruno Haible  <bruno@clisp.org>
79347
79348         * lib/fwriteerror.h: New file.
79349         * lib/fwriteerror.c: New file.
79350
79351 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79352
79353         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
79354         modules/xgethostname, modules/xalloc: Depend on exit.
79355
79356 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79357
79358         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
79359
79360         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
79361         and AC_MINIX, too, so that their extensions are available.
79362
79363         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
79364         This macro has been superseded by gl_BACKUPFILE.
79365
79366         More patches to assume C89 or better.
79367
79368         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
79369
79370         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
79371         unconditionally.
79372         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
79373         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
79374         Include <string.h>, <stdlib.h> unconditionally.
79375         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
79376         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
79377         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
79378         headers or for string.h.
79379         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
79380         or strtoul.
79381
79382         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
79383         headers.
79384         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
79385         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79386         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
79387         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
79388         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79389         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
79390         memcpy, memset.
79391         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
79392         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
79393         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
79394         strtol.
79395         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
79396         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
79397         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
79398         strtoul.
79399
79400 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79401
79402         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
79403         * lib/obstack.c [!defined _LIBC]: Likewise.
79404         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
79405         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
79406         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
79407
79408         More changes to assume C89 or better.
79409
79410         * lib/error.c (error_tail): Assume vprintf.
79411
79412         * lib/argmatch.c (getenv): Remove decl.
79413         * lib/progreloc.c (get_full_program_name): Define via prototype.
79414         * lib/setenv.c (clearenv): Likewise.
79415         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
79416         needed.
79417         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
79418         (malloc, memcpy): Remove decls.
79419         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
79420         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
79421         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79422         (memcpy): Remove macro.
79423         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
79424         (__P): Remove.  All uses removed.
79425         (PTR): Remove.  All uses changed to void *.
79426         (CHAR_BIT, NULL): Remove.
79427         (spaces, zeros, memset_space, memset_zero)
79428         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
79429         Remove.
79430         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
79431         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
79432         Define with prototype.
79433         Remove now-unnecessary prototype decl.
79434         (extra_args_spec): Assume ANSI C.  All uses changed.
79435         (extra_args_spec_iso): Remove.
79436         (my_strftime, emacs_strftimeu): Define via prototype.
79437         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
79438         unconditionally.
79439         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
79440         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
79441         (strtoul, strtol): Remove decls.
79442         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
79443         LONG_MAX): Remove.
79444         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79445         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
79446         (LOCALE_PARAM_PROTO): New macro.
79447         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
79448         (INTERNAL (strtol), strtol): Define with a prototype.
79449         (PARAMS): Remove.  All uses removed.
79450         * lib/tempname.c: Include <string.h> unconditionally.
79451         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
79452         * lib/xgethostname.c (main): Define with a prototype.
79453         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
79454         Include <stdlib.h> unconditionally.
79455         (calloc, malloc, realloc, free): Remove decls.
79456         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
79457         Include <stdlib.h> unconditionally.  Sort include file names.
79458         (strtod): Remove.
79459         (xstrtod): Define with a prototype.
79460         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
79461         (strtol, strtoul): Remove decls.
79462
79463 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79464
79465         More patches to assume C89 or better.
79466         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
79467         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
79468         string.h, memchr, STDC_HEADERS.
79469
79470 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79471
79472         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
79473         Include <stdlib.h>, <string.h> unconditionally.
79474         Remove now-unnecessary cast to char *.
79475         * lib/strnlen.c: Include <string.h> unconditionally.
79476         * lib/yesno.c (yesno): Define with a prototype.
79477
79478 2003-09-11  Bruno Haible  <bruno@clisp.org>
79479
79480         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
79481
79482 2003-09-10  Jim Meyering  <jim@meyering.net>
79483
79484         * lib/error.c: Correct indentation of cpp directives.
79485
79486 2003-09-10  Bruno Haible  <bruno@clisp.org>
79487
79488         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
79489         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
79490         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
79491         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
79492         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
79493         <stdlib.h> and <string.h> checks.
79494         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
79495         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
79496
79497 2003-09-10  Bruno Haible  <bruno@clisp.org>
79498
79499         * lib/strcspn.c: Include <string.h> unconditionally.
79500         * lib/strpbrk.c: Include <string.h> unconditionally.
79501         * lib/strstr.c: Include <string.h> unconditionally.
79502         * lib/unicodeio.c: Include <string.h> unconditionally.
79503         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
79504         * lib/unsetenv.c: Likewise.
79505         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
79506         * lib/yesno.c: Include <stdlib.h> unconditionally.
79507         (rpmatch): Add prototype.
79508
79509 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79510
79511         More patches to assume C89 or better.
79512         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
79513         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
79514         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
79515         or for string.h.
79516         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
79517         stdlib.h.
79518         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
79519         C headers.
79520         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
79521         string.h.
79522         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
79523         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
79524         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
79525         or for string.h.
79526         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
79527         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
79528         C headers.
79529         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
79530         memcpy.
79531         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
79532         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
79533         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
79534         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
79535         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
79536         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
79537         string.h, free.
79538         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
79539         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
79540         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
79541         C headers, or for string.h.
79542         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
79543         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
79544         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
79545         headers, memory.h, stdlib.h, string.h, strings.h.
79546         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
79547         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
79548         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
79549         strchr.
79550         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
79551         headers, memory.h, string.h.
79552         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
79553         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
79554         free.
79555         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
79556         headers.
79557         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
79558         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
79559         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
79560         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
79561         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
79562
79563 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79564
79565         More K&R removal.
79566
79567         * lib/acosl.c (main): Use a prototype.
79568         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
79569         tanl.c: Likewise.
79570
79571         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
79572
79573         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
79574         (getopt, etopt_long, getopt_long_only, _getopt_internal)
79575         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
79576         with a prototype.
79577         * lib/getopt.c (const): Remove macro.
79578         Include <string.h> unconditionally.
79579         (my_index): Remove; all uses changed to strchr.
79580         (strlen): Remove decl.
79581         (exchange): Remove forward decl; no longer needed.
79582         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
79583         Define with prototype.
79584         * lib/getopt1.c (const): Remove macro.
79585         (getopt_long, getopt_long_only, main): Define with prototype.
79586
79587         * lib/getugroups.c: Include <string.h> unconditionally.
79588
79589         * lib/getusershell.c: Include <stdlib.h> unconditionally.
79590         (getusershell, setusershell, endusershell, readname, main):
79591         Define with prototypes.
79592
79593         * lib/group-member.c: Include group-member.h first.
79594         Include <stdlib.h> unconditionally.
79595
79596         * lib/hard-locale.c: Include hard-locale.h first.
79597         Include <stdlib.h>, <string.h> unconditionally.
79598
79599         * lib/hash.c (free, malloc): Remove decls.
79600         Include <stdlib.h> unconditionally.
79601
79602         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
79603         (getenv): Do not declare.
79604
79605         * lib/idcache.c: Include <string.h> unconditionally.
79606
79607         * lib/long-options.c: Include long-options.h first, to test interface.
79608         Include <stdlib.h> unconditionally.
79609
79610         * lib/makepath.c: Include makepath.h first, to test interface.
79611         Include <stdlib.h> and <string.h> unconditionally.
79612
79613         * lib/linebuffer.c: Include <stdlib.h>.
79614         (free): Remove decl.
79615
79616         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
79617         stddef.h. rpl_malloc returns void *, not char *.
79618         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
79619         prototype.
79620
79621         * lib/md5.h: Include <limits.h> unconditionally.
79622         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
79623         (__P): Remove; all uses removed.
79624         * lib/md5.c: Include "md5.h" first.
79625         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
79626         md5_buffer, md5_process_bytes, md5_process_block):
79627         Define with prototypes.
79628         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
79629         * lib/sha.c: Include "sha.h" first.
79630         Include <stdlib.h>, <string.h> unconditionally.
79631
79632         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
79633         * lib/memcmp.c (__ptr_t): Likewise.
79634         * lib/memrchr.c (__ptr_t): Likewise.
79635         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
79636         Include <string.h> unconditionally.
79637         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
79638         * lib/memchr.c: Include <stdlib.h> unconditionally.
79639         * lib/memchr.c (LONG_MAX): Remove.
79640         * lib/memrchr.c (LONG_MAX): Likewise.
79641         * lib/memchr.c (__memchr): Define via a prototype.
79642         * lib/memrchr.c (__memrchr): Likewise.
79643         * lib/memcmp.c (__P): Remove, and remove all uses.
79644         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
79645         Remove forward decls; no longer needed.
79646         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
79647         Use types required by C89 in prototype.
79648
79649         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
79650         * lib/savedir.c: Likewise.
79651         * lib/mkdir.c (free): Remove decl.
79652         * lib/rmdir.c (rmdir): Define with a prototype.
79653         * lib/savedir.c: Include savedir.h first, to test interface.
79654
79655         * lib/mktime.c (STDC_HEADERS): Remove.
79656         Include <stdlib.h>, <string.h> unconditionally.
79657
79658         * lib/modechange.c: Include <stdlib.h> unconditionally.
79659         (malloc): Remove decl.
79660
79661         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
79662         (free): Remove decl.
79663
79664         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
79665         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
79666         (This type really should be intptr_t, but that's a C99ism.)
79667         (_obstack_memcpy): Remove: all uses changed to memcpy.
79668         Include <string.h> unconditionally.
79669         (struct obstack): Assume __STDC__ for types of members
79670         chunkfun, freefun, extra_arg.
79671         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
79672         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
79673         obstack_begin, obstack_specify_allocation,
79674         obstack_specify_allocation_with_arg, obstack_chunkfun,
79675         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
79676         Remove unprototyped decls and the macros that use them.
79677         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
79678         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
79679         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
79680         (defined __STDC__ && __STDC__)]:
79681         Remove nonprototyped code.
79682         Include <stdlib.h> unconditionally.
79683         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
79684         _obstack_allocated_p, _obstack_free, obstack_free,
79685         _obstack_memory_used, print_and_abort):
79686         Define using prototypes.
79687         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
79688         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
79689         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
79690         obstack_next_free, obstack_object_size, obstack_room) [0]:
79691         Remove unused, unprototyped code.
79692
79693         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
79694
79695         * lib/physmem.c (physmem_total, physmem_available, main): Define
79696         with prototypes.
79697
79698         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
79699         (main): Define with a prototype.
79700
79701         * lib/posixver.c (getenv): Remove decl.
79702
79703         * lib/putenv.c (malloc): Returns void *, not char *.
79704         Include <string.h> unconditionally.
79705         (strchr, memcpy, NULL): Do not define.
79706
79707         * lib/readtokens.c: Include readtokens.h first, to test interface.
79708         Include <stdlib.h>, <string.h> unconditionally.
79709         (init_tokenbuffer): Define with a prototype.
79710
79711         * lib/regex.c (PARAMS): Remove.  All uses removed.
79712         All uses of _RE_ARGS removed, too.
79713         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79714         unconditionally.
79715         (bzero): Assume memset exists.
79716         (memcmp, memcpy, NULL): Remove.
79717         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
79718         char, or assignments to local vars of type signed char.
79719         (init_syntax_once, PREFIX(extract_number_and_incr),
79720         PREFIX(print_partial_compiled_pattern),
79721         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
79722         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
79723         PREFIX(regex_grow_registers), PREFIX(regex_compile),
79724         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
79725         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
79726         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
79727         wcs_compile_range, byte_compile_range, truncate_wchar,
79728         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
79729         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
79730         count_mbs_length, wcs_re_match_2_internal,
79731         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
79732         PREFIX(alt_match_null_string_p),
79733         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
79734         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
79735         regfree, PREFIX(extract_number)): Define with prototype.  Remove
79736         now-unnecessary declaration, if any.
79737         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
79738         regcomp, regexec):
79739         Remove now-unnecessary casts among pointer types.
79740         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
79741
79742         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
79743         (free): Remove decl.
79744
79745         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
79746
79747         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
79748         (free): Remove decl.
79749
79750         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
79751         * lib/xgetcwd.c: Likewise.
79752
79753         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
79754         (free): Remove decl.
79755
79756         * lib/strchrnul.c (strchrnul): Define with a prototype.
79757         Fix bug: c_in was not converted to char before searching.
79758
79759         The following changes are not K&R related:
79760
79761         * lib/group-member.h: Include <sys/types.h>, so that this file is
79762         self-contained.
79763         * lib/makepath.h: Likewise.
79764
79765         * lib/getusershell.c (readname, default_index, line_size, readname):
79766         Use size_t, not int, for sizes.
79767         (readname): If the size overflows, report an error instead of
79768         looping forever.
79769
79770 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79771
79772         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
79773         libc.
79774
79775 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79776
79777         * README: New section: portability guidelines.
79778
79779 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79780
79781         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
79782         C89 spec.
79783
79784 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79785
79786         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
79787
79788 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79789
79790         Assume C89 or better; remove K&R cruft.
79791         A few of these changes were first proposed by Derek Robert Price
79792         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
79793
79794         * lib/addext.c: Include <string.h> unconditionally.
79795         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79796         Don't declare getenv or malloc.
79797
79798         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79799         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79800         (NULL): Remove.
79801         (find_stack_direction, alloca): Use prototypes.
79802
79803         * lib/atexit.c (atexit): Define using a prototype.
79804
79805         * lib/basename.c, dirname.c, stripslash.c:
79806         Include <string.h> unconditionally.
79807
79808         * lib/bcopy.c: Include <stddef.h>.
79809         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79810
79811         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79812
79813         * lib/error.h (error, error_at_line, error_print_progname)
79814         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79815         * lib/error.c: Include error.h first, to check interface.
79816         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79817         (VA_START): Remove; all uses changeed to va_start.
79818         (exit, strerror): Remove decls.
79819         (error_print_progname): Prototype uncondionally.
79820         Don't include <errno.h>; no longer needed.
79821         (private_strerror): Remove.
79822         (error_tail): Always define.
79823         (error, error_at_line): Assume C89 or better; always use prototypes.
79824         * lib/fatal.c: Include "fatal.h" first, to test interface.
79825         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79826         (VA_START): Remove; all uses changed to va_start.
79827         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
79828         this case.
79829         (exit): Remove decl.
79830         (fatal): Prototype unconditionally.  Assume va_start works.
79831         Abort at end, to pacify gcc.
79832
79833         * lib/euidaccess.c (main): Define with a prototype.
79834
79835         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
79836
79837         * lib/exitfail.c: Include <stdlib.h> unconditionally.
79838
79839         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
79840         prototypes.
79841         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
79842         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
79843         (getenv): Remove decl.
79844         (fnmatch): Define using a prototype.
79845         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
79846         (FCT): Define using a prototype.
79847
79848         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
79849
79850         * lib/gethostname.c: Include <stddef.h>.
79851         (gethostname): Define with prototype.  Length is size_t, not int.
79852
79853 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79854
79855         Assume C89 or better; remove K&R cruft.
79856         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
79857         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
79858         string.h, getenv, malloc.
79859         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
79860         headers.
79861         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
79862         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
79863         do not check for strerror.
79864         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
79865         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
79866         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
79867         do not check for doprnt or vprintf.
79868         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
79869         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
79870
79871 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79872
79873         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
79874         getversion.c should have been removed then, but was accidentally
79875         preserved.
79876
79877         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
79878         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
79879
79880 2003-09-08  Karl Berry  <karl@gnu.org>
79881
79882         * config/config.sub, config.guess, srclistvars.sh: update from savannah
79883                 config, forget about prep.
79884
79885         * config/depcomp, missing: update from automake.
79886
79887 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79888
79889         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79890         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79891
79892 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79893
79894         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79895         copy_tm_result.  Bug reported by Simon Josefsson in
79896         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79897
79898 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79899
79900         * m4/time_r.m4: New file.
79901         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79902         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79903         is. Check for timegm declaration.
79904         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79905         Do not check for gmtime_r.
79906         Replace mktime if __mktime_internal does not exist and if mktime
79907         hasn't been replaced already.
79908
79909 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79910
79911         * lib/time_r.c, lib/time_r.h: New files.
79912
79913         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79914         __localtime_r.
79915         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79916         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79917
79918         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79919         __gmtime_r.
79920         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79921         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79922         Include <time_r.h>.
79923
79924         * lib/timegm.c: Switch to glibc implementation, with the following
79925         changes:
79926         [defined HAVE_CONFIG_H]: Include <config.h>.
79927         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79928         (__mktime_internal) [!defined _LIBC]: New decl.
79929         (__gmtime_r) [!defined _LIBC]: New macro and function.
79930         (timegm): Use a prototype, since gnulib assumes C89.
79931         Do not bother declaring tmp to be const, as it's not really usefu.
79932         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79933         (timegm): Declare only if HAVE_DECL_TIMEGM.
79934
79935 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79936
79937         * MODULES.html.sh (func_all_modules): Add time_r.
79938         * modules/time_r: New file.
79939         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79940         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79941
79942 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79943
79944         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79945         Bug reported by Lute Kamstra in
79946         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79947
79948         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79949         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79950         course with correspondingly smaller numbers for tomorrow and
79951         yesterday.  From Tadayoshi Funaba.  Originally installed into
79952         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79953         coreutils merge?).
79954
79955 2003-08-31  Simon Josefsson  <jas@extundo.com>
79956
79957         * modules/timegm: New file.
79958         * MODULES.html.sh (func_all_modules): Add timegm.
79959
79960 2003-08-31  Simon Josefsson  <jas@extundo.com>
79961
79962         * m4/timegm.m4: New file.
79963
79964 2003-08-31  Simon Josefsson  <jas@extundo.com>
79965
79966         * lib/timegm.h: New file.
79967         * lib/timegm.c: New file.  Based on
79968         wget-1.8.2/src/http.c:mktime_from_utc.
79969
79970 2003-08-31  Karl Berry  <karl@gnu.org>
79971
79972         * lib/argp.h: update from libc.
79973
79974 2003-08-28  Bruno Haible  <bruno@clisp.org>
79975
79976         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79977         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79978         followed by '#define fnmatch fnmatch_posix' gives an error.
79979
79980 2003-08-28  Bruno Haible  <bruno@clisp.org>
79981
79982         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79983         warning on QNX, which defines O_BINARY to 000000.
79984
79985 2003-08-27  Jim Meyering  <jim@meyering.net>
79986
79987         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79988         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79989         would fail after 32.  Reported by Danny Levinson.  Details here:
79990         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79991
79992 2003-08-24  Bruno Haible  <bruno@clisp.org>
79993
79994         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79995         MSVC7 <stdio.h> is included later.
79996
79997 2003-08-22  Simon Josefsson  <jas@extundo.com>
79998
79999         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
80000
80001 2003-08-20  Karl Berry  <karl@gnu.org>
80002
80003         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
80004
80005 2003-08-20  Bruno Haible  <bruno@clisp.org>
80006
80007         * modules/progname: New file.
80008         * MODULES.html.sh (func_all_modules): Add progname.
80009
80010 2003-08-20  Bruno Haible  <bruno@clisp.org>
80011
80012         * lib/progname.h: New file, from GNU gettext.
80013         * lib/progname.c: New file, from GNU gettext.
80014         * lib/progreloc.c: New file, from GNU gettext.
80015
80016 2003-08-19  Jim Meyering  <jim@meyering.net>
80017
80018         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
80019         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
80020
80021 2003-08-19  Bruno Haible  <bruno@clisp.org>
80022
80023         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
80024         more.
80025
80026 2003-08-19  Bruno Haible  <bruno@clisp.org>
80027
80028         * lib/xstrdup.c: Assume <string.h> exists.
80029
80030 2003-08-18  Paul Eggert  <eggert@twinsun.com>
80031
80032         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
80033         in makefile rules.
80034
80035 2003-08-18  Jim Meyering  <jim@meyering.net>
80036
80037         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
80038         * m4/lib-ld.m4: Likewise.
80039
80040 2003-08-18  Jim Meyering  <jim@meyering.net>
80041
80042         * lib/setenv.h: Indent nested cpp directive.
80043         * lib/vasnprintf.c: Remove trailing blanks.
80044
80045 2003-08-17  Simon Josefsson  <jas@extundo.com>
80046
80047         * modules/xstrndup: New file.
80048         * MODULES.html.sh (func_all_modules): Add xstrndup.
80049
80050 2003-08-17  Simon Josefsson  <jas@extundo.com>
80051
80052         * modules/argp: Fix autoconf macro name. Add more dependencies.
80053
80054 2003-08-17  Simon Josefsson  <jas@extundo.com>
80055
80056         * m4/xstrndup.m4: New file.
80057
80058 2003-08-17  Simon Josefsson  <jas@extundo.com>
80059
80060         * m4/argp.m4: New file.
80061
80062 2003-08-17  Simon Josefsson  <jas@extundo.com>
80063             Bruno Haible  <bruno@clisp.org>
80064
80065         * lib/xstrndup.h: New file.
80066         * lib/xstrndup.c: New file.
80067
80068 2003-08-17  Bruno Haible  <bruno@clisp.org>
80069
80070         * modules/strndup (Files, Include): Add lib/strndup.h.
80071
80072 2003-08-17  Bruno Haible  <bruno@clisp.org>
80073
80074         * modules/euidaccess (Files): Add lib/euidaccess.h.
80075
80076 2003-08-17  Bruno Haible  <bruno@clisp.org>
80077
80078         * lib/strndup.h: New file.
80079
80080 2003-08-17  Bruno Haible  <bruno@clisp.org>
80081
80082         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
80083         like AC_GNU_SOURCE.
80084         * modules/extensions (configure.ac): Comment out the invocation of
80085         gl_USE_SYSTEM_EXTENSIONS.
80086
80087 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80088
80089         Merges from coreutils, etc.
80090         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
80091         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
80092         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
80093         fixing a typo.
80094         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
80095         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
80096
80097 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80098
80099         Document merge from coreutils.
80100         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
80101         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
80102         * modules/utime: Add m4/utimes-null.m4.
80103
80104 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80105
80106         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
80107         space, undoing this 2003-08-12 change:
80108         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
80109
80110 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80111
80112         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
80113         strtoul.c from libc, undoing this 2003-08-12 change:
80114         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
80115
80116 2003-08-16  Jim Meyering  <jim@meyering.net>
80117
80118         Merges from coreutils.
80119         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
80120         prefix.  Adjust cache variables similarly.  Create 500 rather than
80121         just 300 files, to exercise bug on Darwin6.5, too.
80122         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
80123         $missing_dir.
80124         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
80125         AM_SYS_POSIX_TERMIOS.
80126         Reported by mkc@mathdogs.com.
80127         Also change use of $am_cv_sys_posix_termios
80128         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
80129         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
80130         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
80131         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
80132         in /proc/mounts until it finds one with matching device number.  This
80133         is unnecessary when the FILE argument *is* a mount point.  No stat call
80134         is necessary in that case.  So, disable the statvfs-testing code on
80135         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
80136         as RedHat bug# 84846.
80137         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
80138         to 1MB, so as not to render systems with no stack size limit (e.g.,
80139         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
80140         Include <unistd.h>.  On some systems,
80141         it is required for the definition of _SC_PAGESIZE.
80142
80143 2003-08-16  Jim Meyering  <jim@meyering.net>
80144
80145         Merge from coreutils.
80146         * lib/xstrtoimax.c: #else #if -> #elif.
80147         * lib/xstrtoumax.c: Likewise.
80148
80149 2003-08-16  Jim Meyering  <jim@meyering.net>
80150
80151         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
80152         * m4/utimes.m4: Removed.
80153         * m4/utimes-null.m4: Renamed from utimes.m4.
80154
80155         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
80156         to 1MB, so as not to render systems with no stack size limit (e.g.,
80157         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
80158         Include <unistd.h>.  On some systems,
80159         it is required for the definition of _SC_PAGESIZE.
80160
80161 2003-08-16  Jim Meyering  <jim@meyering.net>
80162         and Paul Eggert  <eggert@cs.ucla.edu>
80163
80164         Merges from coreutils, etc.
80165
80166         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
80167         using the latest version from cvs.  This avoids problems with #line
80168         directives using a vendor (Sun) compiler.
80169         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
80170         Don't set GETGROUPS_LIB here; now it's
80171         done via getgroups.m4's wrapper function.
80172         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
80173         rather than just in sh-util/configure.in, so that the
80174         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
80175         same.
80176         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
80177         AC_FUNC_GETLOADAVG where to find getloadavg.c.
80178         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
80179         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
80180         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
80181         Remove code that is now done by the newly-required macros.
80182         Append $(EXEEXT) to DF_PROG.
80183         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
80184         Do not invoke or require the following here,
80185         since prereq.m4 or some gnulib .m4 now does this for us:
80186         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
80187         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
80188         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
80189         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
80190         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
80191         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
80192         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
80193         AC_FUNC_OBSTACK.
80194         Do not replace the following functions, as this is now the job
80195         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
80196         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
80197         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
80198         atexit getpass, strdup, getpagesize.
80199         Replace 'raise'.
80200         Do not check for the following functions, as this is now the job
80201         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
80202         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
80203         setregid.
80204         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
80205         Check for sys/sysctl.h.
80206         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
80207         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
80208         of checking for ssize_t ourselves.
80209
80210         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
80211         Require every macro that gnulib/modules/* suggests for us.
80212         (jm_PREREQ_ADDEXT): New macro.
80213         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
80214         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
80215
80216         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
80217         (gl_PHYSMEM): Use it.
80218         Also check for `table' function.
80219         Check for new headers and functions.
80220         Add check for sys/sysmp.h.
80221         With suggestions from Kaveh Ghazi.
80222         Ignore headers that are present but cannot be compiled.  This
80223         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
80224         C 5.4.
80225
80226 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80227
80228         Document merge from coreutils.
80229         * modules/userspec: Depend on posixver.
80230         * modules/strftime: Depend on tzset.
80231
80232 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80233
80234         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
80235         rather than tab, after '#' in shell-script copyright notices.
80236         Suggested by Bruno Haible.
80237
80238 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80239
80240         * config/srclist-update: Use three spaces, rather than tab, after '#'
80241         in shell-script copyright notices.  Suggested by Bruno Haible.
80242         Remove unnecessary parenthesization in regular expression.
80243
80244 2003-08-15  Jim Meyering  <jim@meyering.net>
80245
80246         Merge from coreutils.
80247         * lib/xgethostname.c: Include <stdlib.h>.
80248         (xghostname): Don't exit for anything other than memory-related
80249         failure; just return NULL.
80250         * lib/userspec.c: Include "posixver.h".
80251         (parse_user_spec): Accept `.' as a separator only
80252         in pre-POSIX-200112 mode.
80253         * lib/strtoimax.c: Use #elif rather than #else #if.
80254         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
80255         Remove function, now that we can rely on a working tzset function.
80256         [!_LIBC]: Ensure that the required autoconf test has been run.
80257         [!defined _NL_CURRENT && HAVE_STRFTIME]:
80258         Use underlying_strftime for %r.
80259         * lib/sha.c: Merge in some clean-up and optimization changes from
80260         glibc.
80261         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
80262         Ensure that it is a multiple of 64.
80263         Rearrange loop exit tests so as to avoid performing an
80264         additional fread after encountering an error or EOF.
80265         * lib/realloc.c: Update copyright date.
80266
80267 2003-08-15  Jim Meyering  <jim@meyering.net>
80268         and Paul Eggert  <eggert@twinsun.com>
80269
80270         Merge from coreutils.
80271         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
80272         member but strut utmpx does not.  Needed for AIX 4.3.3.
80273         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
80274
80275 2003-08-15  Jim Meyering  <jim@meyering.net>
80276         and Paul Eggert  <eggert@cs.ucla.edu>
80277
80278         Merges from coreutils, etc.
80279         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
80280         Require gl_FUNC_TZSET_CLOBBER.
80281         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
80282         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
80283         members.
80284
80285 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80286
80287         Help the merge from coreutils.
80288         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
80289         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
80290         * m4/tzset.m4: Use it too.
80291
80292 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80293
80294         * modules/tzset: New file.
80295
80296 2003-08-14  Jim Meyering  <jim@meyering.net>
80297
80298         Merges from coreutils.
80299         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
80300         variable names, rather than @FNMATCH_H@.
80301         * modules/alloca: Likewise for $(ALLOCA_H).
80302
80303         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
80304         the three copies of the literal target, `fnmatch.h'.
80305         * modules/alloca (alloca.h): Likewise.
80306
80307 2003-08-14  Jim Meyering  <jim@meyering.net>
80308
80309         Merge from coreutils.
80310         * m4/tzset.m4: New file.
80311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
80312         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
80313         otherwise, AIX 5.1 systems would end up using the latter.
80314         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
80315         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
80316         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
80317         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
80318
80319 2003-08-14  Jim Meyering  <jim@meyering.net>
80320
80321         Merge from coreutils.
80322         * lib/obstack.h: Whitespace changes.
80323         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
80324         and xcalloc return values.
80325         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
80326         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
80327         hang on OSF/1 5.1 for DIR on both local and remote file systems.
80328         Reported by (and fix confirmed by) Nelson H. F. Beebe.
80329         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80330         error from mntctl.
80331         Use mntctl's return value to drive the entry-processing loop, since
80332         we can't rely on the value of the vmt_length member in the last
80333         entry.  On some systems doing so could result in exhausting
80334         virtual memory.  Based in part on a patch from Mike Jetzer.
80335
80336 2003-08-14  Jim Meyering  <jim@meyering.net>
80337         and Paul Eggert  <eggert@twinsun.com>
80338
80339         Merges from coreutils, plus other fixes.
80340         * lib/physmem.c: Merge in portability changes from gcc/libiberty
80341         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
80342         for credits and details.  Thanks to Kaveh Ghazi for helping
80343         to keep these files in sync.
80344         (ARRAY_SIZE): Define it.
80345         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
80346         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
80347         (memcasecmp): Don't assume size_t fits in unsigned int.
80348         Remove casts and duplicate code.
80349         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
80350         (memcpy): Remove definition.
80351         Merge in some clean-up and optimization changes from glibc.
80352         [BLOCKSIZE]: Move definition to top of file.
80353         Ensure that it is a multiple of 64.
80354         Rearrange loop exit tests so as to avoid performing an
80355         additional fread after encountering an error or EOF.
80356         * lib/md5.h (md5_uintptr): Define.
80357         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
80358         return to the initial working directory.  Preserve errno
80359         for caller.
80360         * lib/idcache.c: Include "xalloc.h".
80361         (xmalloc, xrealloc): Remove decls.
80362         (getuser): Remove casts no longer required in C89.
80363         * lib/human.c: Include stdio.h, for sprintf.
80364         * lib/group-member.c: Include "xalloc.h".
80365         (xmalloc, xrealloc): Remove decls.
80366         (get_group_info): Remove casts no longer required in C89.
80367         * lib/getusershell.c (readname): Remove casts no longer required in
80368         C89.
80369         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
80370         * lib/getline.c: Whitespace fix, from coreutils.
80371
80372 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80373
80374         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
80375         Check for isascii.
80376
80377         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80378         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80379         Undo previous (whitespace-only) change.
80380
80381 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80382
80383         * lib/exclude.c: Include <ctype.h>
80384         (IN_CTYPE_DOMAIN): New macro.
80385         (is_space): New fn.
80386         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
80387         and empty lines.
80388
80389         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80390         Undo previous (whitespace-only) change.
80391
80392 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80393
80394         * config/srclist-update: Change update back to the old behavior,
80395         leaving whitespace alone.  Use one 'sed' command rather than a
80396         pipeline.
80397         (fixlicense): Now a variable, not a function.
80398         (remove_trailing_blanks): Remove.
80399         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
80400         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80401         Undo previous (whitespace-only) change.
80402
80403 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80404
80405         Merge from coreutils.
80406         * modules/euidaccess: Add lib_SOURCES, include for new
80407         file euidaccess.h
80408
80409 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80410
80411         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80412         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80413         Normalize leading white space and remove trailing white space.
80414
80415         Merge from coreutils
80416         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
80417
80418         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
80419         0.12.1.  These files are now being upgraded automatically by
80420         ../config/srclist-update.
80421
80422 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80423
80424         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80425         Normalize leading white space and remove trailing white space.
80426         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
80427         notice, as per ../config/srclist-update.
80428
80429         Merge from coreutils.
80430         * lib/euidaccess.h: New file.
80431         * lib/euidaccess.c: Include it.
80432         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
80433         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
80434         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
80435
80436 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80437
80438         * config/srclist-update: Add copyright notice.
80439         (remove_id_lines, remove_trailing_blanks): New constants.
80440         (fixfile): Use them to normalize spacing a bit in copied files.
80441         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80442         Normalize leading white space and remove trailing white space.
80443
80444         * config/texinfo.tex: Sync with texinfo.
80445
80446         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
80447         strtoul.c from libc, to merge coreutils whitespace changes.
80448
80449         * config/srclist.txt: Get the following m4 files from gettext:
80450         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
80451         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
80452         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
80453         wint_t.m4.
80454
80455 2003-08-12  Karl Berry  <karl@gnu.org>
80456
80457         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
80458         been made.
80459
80460 2003-08-11  Paul Eggert  <eggert@twinsun.com>
80461
80462         * modules/gnu-source, m4/gnu-source.m4:
80463         Remove; we're assuming Autoconf 2.54 or later now.
80464         Suggested by Bruno Haible.
80465         * MODULES.html.sh (func_all_modules): Remove gnu-source.
80466
80467 2003-08-11  Bruno Haible  <bruno@clisp.org>
80468
80469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
80470
80471 2003-08-11  Bruno Haible  <bruno@clisp.org>
80472
80473         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
80474         (vasnprintf): Use it instead of wcslen.
80475
80476 2003-08-11  Bruno Haible  <bruno@clisp.org>
80477
80478         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
80479         value to ensure that _Bool promotes to int. Use #define for _Bool when
80480         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
80481
80482 2003-08-10  Karl Berry  <karl@gnu.org>
80483
80484         * lib/regex.h: update from libc (whitespace fix).
80485
80486 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80487
80488         Merge some files from coreutils.  These changes were
80489         originally made by Jim Meyering.
80490         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
80491         many older Unixes require this.
80492         * lib/alloca.c (alloca): Remove cast to argument of free;
80493         no longer needed in C89.
80494         * lib/alloca_.h, regex.h: Fix white space to match
80495         what GNU indent does.
80496
80497 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80498
80499         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
80500         apparently Emacs's Unicode mode got confused before my 2003-08-05
80501         checkin.
80502
80503 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80504
80505         * m4/extensions.m4: New file.
80506         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
80507         Require gl_USE_SYSTEM_EXTENSIONS.
80508         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
80509         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
80510
80511 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80512
80513         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
80514         * modules/extensions, modules/gnu-source: New files.
80515         * modules/timespec, modules/unlocked-io: Depend on extensions.
80516
80517 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80518
80519         * modules/restrict: New file.
80520         * MODULES.html.sh (func_all_modules): Add restrict.
80521         * modules/regex: Depend on restrict.
80522
80523 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80524
80525         * m4/restrict.m4: New file.
80526         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
80527
80528 2003-08-07  Bruno Haible  <bruno@clisp.org>
80529
80530         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
80531         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
80532
80533 2003-08-07  Bruno Haible  <bruno@clisp.org>
80534
80535         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
80536         makes the module 'getndelim2' compatible with the module 'getline'.
80537
80538 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80539
80540         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
80541         byte with "\201" to avoid glitches when editing that source file
80542         with multi-gnome-terminal.
80543
80544 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80545
80546         * lib/bumpalloc.h: Remove.
80547
80548 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80549
80550         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
80551         * modules/bumpalloc: Remove.
80552
80553 2003-08-04  Paul Eggert  <eggert@twinsun.com>
80554
80555         * lib/getloadavg.c: Change copyright notice and spacing to conform to
80556         GNU coding style.
80557
80558         Merge from coreutils.
80559         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
80560         1. From glibc.
80561         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
80562         from Karl Berry, implemented by Jim Meyering.
80563         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
80564         from Dmitry V. Levin.
80565         Remove anachronistic cast of xrealloc.
80566         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
80567         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
80568         type. Otherwise, it wouldn't compile with at least /bin/cc on
80569         ymp-cray-unicos9.0.2.X.
80570         Combine two mostly-identical uses of alloca into one.
80571         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
80572
80573 2003-08-04  Dave Love  <d.love@dl.ac.uk>
80574
80575         [From Emacs.]
80576
80577         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
80578         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
80579         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
80580         obsolete NLIST_NAME_UNION.
80581         [__GNU__]: Undef BSD and FSCALE.
80582         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
80583
80584 2003-08-03  Paul Eggert  <eggert@twinsun.com>
80585
80586         * lib/stdbool_.h (_Bool): Make it signed char, instead of
80587         an enum type, so that it's guaranteed to promote to int.  See:
80588         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
80589
80590 2003-08-03  Karl Berry  <karl@gnu.org>
80591
80592         * config/depcomp: update from automake.
80593
80594 2003-07-31  Paul Eggert  <eggert@twinsun.com>
80595
80596         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
80597         (strerror): Don't assume that a printable int fits in 14 bytes.
80598
80599 2003-07-31  Bruno Haible  <bruno@clisp.org>
80600
80601         * modules/getpass-gnu: New file.
80602         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
80603
80604 2003-07-31  Bruno Haible  <bruno@clisp.org>
80605
80606         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
80607
80608 2003-07-24  Karl Berry  <karl@gnu.org>
80609
80610         * config/missing: update from automake.
80611
80612 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
80613             Bruno Haible  <bruno@clisp.org>
80614
80615         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
80616         * lib/getline.c (getline, getdelim): Likewise.
80617         Remove _GNU_SOURCE define; now it's defined in config.h through
80618         m4/getline.m4.
80619
80620 2003-07-23  Karl Berry  <karl@gnu.org>
80621
80622         * config/config.sub: update from prep.
80623
80624 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80625
80626         * modules/xalloc (Depends-on): Add exitfail.
80627         * modules/xmemcoll: Likewise.
80628
80629 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80630
80631         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
80632         over-parenthesization in macros.
80633
80634         Sync with coreutils.
80635
80636         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
80637         required by C99.
80638
80639         Use `exit_failure' for xalloc and xmemcoll instead of their own
80640         private exit-failure variables.
80641         * lib/xalloc.h (xalloc_exit_failure): Remove.
80642         * lib/xmalloc.c: Likewise.  Include exitfail.h.
80643         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
80644         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
80645         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
80646         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
80647
80648 2003-07-20  Jim Meyering  <jim@meyering.net>
80649
80650         * modules/closeout (Depends-on): Add exitfail.
80651         Suggestion from Bruno Haible.
80652
80653 2003-07-19  Karl Berry  <karl@gnu.org>
80654
80655         * config/config.sub: update from prep.
80656
80657 2003-07-18  Paul Eggert  <eggert@twinsun.com>
80658
80659         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
80660         Remove.
80661         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
80662         to test that it can stand by itself.  Include "exitfail.h".
80663         Clients should set exit_failure instead.
80664         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
80665
80666 2003-07-18  Bruno Haible  <bruno@clisp.org>
80667
80668         * modules/getndelim2: New file.
80669         * modules/getline: Share files with module getndelim2.
80670         * modules/getnline: Depend on getndelim2 instead of sharing files with
80671         it. Add getnline.c to lib_SOURCES.
80672         * MODULES.html.sh (func_all_modules): Add getndelim2.
80673
80674 2003-07-18  Bruno Haible  <bruno@clisp.org>
80675
80676         * m4/getndelim2.m4: New file.
80677         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
80678         invoke gl_PREREQ_GETNDELIM2.
80679         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
80680         gl_PREREQ_GETNDELIM2.
80681         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
80682         gl_GETNDELIM2.
80683
80684 2003-07-18  Bruno Haible  <bruno@clisp.org>
80685
80686         * lib/getndelim2.h: New file.
80687         * lib/getndelim2.c: Make into a module of its own. Include config.h,
80688         getndelim2.h.
80689         (getndelim2): Make non-static. Change return type to ssize_t.
80690         * lib/getline.h: Change argument names.
80691         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
80692         * lib/getnline.c: Include getndelim2.h.
80693
80694 2003-07-18  Andreas Schwab  <schwab@suse.de>
80695
80696         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
80697
80698 2003-07-17  Karl Berry  <karl@gnu.org>
80699
80700         * config/config.sub: update from prep.
80701
80702 2003-07-17  Bruno Haible  <bruno@clisp.org>
80703
80704         * modules/getnline: New file.
80705         * modules/getline: Add lib/getndelim2.c to source file list.
80706         * MODULES.html.sh (func_all_modules): Add getnline.
80707
80708 2003-07-17  Bruno Haible  <bruno@clisp.org>
80709
80710         * m4/getnline.m4: New file.
80711
80712 2003-07-17  Bruno Haible  <bruno@clisp.org>
80713
80714         * m4/Makefile.am.in: Remove file.
80715         * m4/Makefile.am: Remove file.
80716         * m4/Makefile.in: Remove file.
80717
80718 2003-07-17  Bruno Haible  <bruno@clisp.org>
80719
80720         * lib/getnline.h: New file.
80721         * lib/getnline.c: New file.
80722         * lib/getndelim2.c: New file, extracted from getline.c.
80723         (getndelim2): Renamed from getdelim2, with added nmax argument.
80724         * lib/getline.c: Include getndelim2.c.
80725         (getdelim2): Moved out to getndelim2.c.
80726         (getline, getdelim): Update.
80727
80728 2003-07-17  Bruno Haible  <bruno@clisp.org>
80729
80730         * lib/Makefile.am: Remove file.
80731         * lib/Makefile.in: Remove file.
80732
80733 2003-07-17  Bruno Haible  <bruno@clisp.org>
80734
80735         * configure.in: Remove file.
80736         * Makefile.in: Remove file.
80737
80738 2003-07-17  Bruno Haible  <bruno@clisp.org>
80739
80740         * MODULES.html.sh: Put the </BODY> right before </HTML>.
80741
80742 2003-07-16  Karl Berry  <karl@gnu.org>
80743
80744         * config/srclist-update: was running fixlicense twice, which caused
80745                 texinfo.tex to be nullified for some reason.  Simplify,
80746                 $gplsrc is no longer needed as far as I can see?
80747
80748 2003-07-16  Jim Meyering  <jim@meyering.net>
80749
80750         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
80751
80752 2003-07-15  Paul Eggert  <eggert@twinsun.com>
80753
80754         * config/srclist.txt: Get the following files from gettext-runtime/intl
80755         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
80756         ref-del.sin.  From Bruno Haible.
80757         * config/srclist-update (fixfile): Change grep pattern again, since the
80758         previous fix didn't work (there was another trailing $).  Use
80759         '[$]' to escape the $s.
80760
80761 2003-07-15  Karl Berry  <karl@gnu.org>
80762
80763         * lib/vasnprintf.c: update from gettext.
80764
80765 2003-07-15  Karl Berry  <karl@gnu.org>
80766
80767         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
80768         gets expanded when surrounded by '$'.
80769
80770 2003-07-15  Jim Meyering  <jim@meyering.net>
80771
80772         * modules/save-cwd: Don't depend on error.  From Derek Price.
80773
80774 2003-07-15  Jim Meyering  <jim@meyering.net>
80775
80776         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
80777
80778 2003-07-14  Simon Josefsson  <jas@extundo.com>
80779
80780         * modules/mempcpy: New file.
80781         * MODULES.html.sh (func_all_modules): Add mempcpy.
80782
80783 2003-07-14  Simon Josefsson  <jas@extundo.com>
80784
80785         * m4/mempcpy.m4: New file.
80786
80787 2003-07-14  Simon Josefsson  <jas@extundo.com>
80788
80789         * lib/mempcpy.h: New file.
80790         * lib/mempcpy.c: New file.
80791
80792 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80793
80794         * modules/getdate, modules/posixtm: Depend on mktime.
80795
80796 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80797
80798         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80799         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80800         unicodeio.c, unicodeio.h, unlocked-io.h:
80801         Switch from LGPL to GPL.
80802
80803 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80804
80805         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80806         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80807         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80808         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80809         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80810         updated automatically by ../config/srclist-update.  This changes
80811         their license from LPGL to GPL.
80812
80813 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80814
80815         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80816         assumed to refer to the root of the most recent stable gettext version.
80817         * config/srclistvars.sh: Add defaults for eggert.
80818         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80819         Match "This program" as well as "The program".  This is needed
80820         for gettext.
80821
80822 2003-07-14  Jim Meyering  <jim@meyering.net>
80823
80824         Don't emit diagnostics.  Let callers do that.
80825         * lib/save-cwd.c: Don't include "error.h".
80826         (save_cwd): Don't call error.  Ensure that errno is valid
80827         when returning nonzero.
80828
80829         * lib/save-cwd.h (restore_cwd): Update prototype.
80830         * lib/save-cwd.c (restore_cwd): Remove two parameters.
80831         Simplify.  Don't call error upon failure.  Let callers do that.
80832         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
80833         when auditing is enabled.  But don't bother updating the #if.
80834
80835 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
80836
80837         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
80838         it breaks C++ compilation.
80839         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
80840
80841 2003-07-10  Simon Josefsson  <jas@extundo.com>
80842
80843         * modules/strchrnul (Makefile.am): Add strchrnul.h.
80844
80845 2003-07-10  Jim Meyering  <jim@meyering.net>
80846
80847         * m4/clock_time.m4: Remove trailing blank.
80848         * m4/intmax_t.m4: Likewise.
80849
80850 2003-07-10  Jim Meyering  <jim@meyering.net>
80851
80852         * lib/vasnprintf.c: Remove trailing blanks.
80853         Make cpp indentation consistent.
80854
80855 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80856
80857         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
80858         posixver.c, strftime.c, strnlen.c, strverscmp.c:
80859         Switch from LGPL to GPL.
80860
80861 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80862
80863         * config/srclist.txt: Sort sublists.  Add
80864         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
80865         that differ from gnulib for one reason or another; we'd like this list
80866         to be smaller but for now let's document what we have.
80867
80868 2003-07-08  Paul Eggert  <eggert@twinsun.com>
80869
80870         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
80871         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
80872         and sweeter "eval x=$x".
80873         * config/srclist.txt: Get lib/argp* from glibc.
80874
80875 2003-07-07  Paul Eggert  <eggert@twinsun.com>
80876
80877         * lib/mktime.c: Fix some boundary cases and remove need for floating
80878         point.
80879
80880         Issue a compile-time diagnostic if time_t is floating point, or if
80881         two's complement arithmetic is not in effect, or if arithmetic
80882         right shift does not propagate the sign.  These assumptions were
80883         all in the original code but they weren't checked.
80884
80885         (TIME_T_MIDPOINT, verify): New macros.
80886         (__isleap): Remove; it has integer overflow problems.
80887         (leapyear): New function, without those problems.
80888         (ydhms_tm_diff): Remove; splitting into two parts.
80889         (ydhms_diff): New function, containing the arithmetic part of
80890         the old ydhms_tm_diff function.  Issue a compile-time
80891         diagnostic if we are not using C99 integer division.
80892         Avoid casts when possible.
80893         (guess_time_tm): New function, containing the checking part of
80894         the old ydhms_tm_diff function.  Return the new value, rather than
80895         the difference between it and the old.  Accept a new argument T
80896         so that *T specifies the old value.  Check for overflow in the result.
80897
80898         (__mktime_internal): Use a time_t offset, not a long int offset.
80899         This undoes the 2003-06-04 change, which is no longer needed now
80900         that we have better overflow checking.
80901         (localtime_offset): Likewise.
80902
80903         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80904         and long are 64-bit but int is only 32-bit.
80905         (ydhms_diff): Use long int to store year1 and yday1.
80906         Issue a compile-time diagnostic if long int is not wide enough.
80907
80908         (__mktime_internal): Use long int to store adjusted year and yday.
80909         Use plain C rather than preprocessor commands, if that doesn't
80910         affect efficiency.
80911         Check for overflow (and try to repair) after each probe
80912         rather than checking only at the very end.  This avoids some bugs
80913         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80914         does not equal GMT offset at maximum time).
80915         Use integer to check for overflow rather than floating point; this
80916         is more portable to non-IEEE hosts, and is a tad faster.
80917         When we detect that we are oscillating between two values,
80918         don't check whether tm_isdst has the requested value, since
80919         we already know the answer.  When tm_isdst has the wrong value,
80920         use a different heuristic to find the right one, based on the
80921         extreme values actually observed in practice in tz2003a,
80922         rather than the (overly optimistic) "previous 3 calendar quarters".
80923
80924         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80925         "T const" to accommodate glibc style.
80926         (check_result): Use less-confusing report format.  "long" -> "long int.
80927         (main): Likewise.
80928         Don't loop if the iteration overflows time_t.
80929         Allow a negative step in the iteration.
80930
80931 2003-07-06  Karl Berry  <karl@gnu.org>
80932
80933         * config/depcomp: update from automake.
80934         * config/config.sub: update from prep.
80935
80936 2003-07-03  Karl Berry  <karl@gnu.org>
80937
80938         * config/config.guess: update from prep.
80939
80940 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80941
80942         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80943         xreadlink.c now includes it unconditionally.
80944
80945 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80946
80947         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80948         having it depend on HAVE_SYS_TYPES_H.
80949
80950 2003-07-01  Bruno Haible  <bruno@clisp.org>
80951
80952         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80953         <sys/types.h> should be sufficient.
80954         Reported by Paul Eggert.
80955
80956 2003-06-26  Karl Berry  <karl@gnu.org>
80957
80958         * config/depcomp: update from automake.
80959
80960 2003-06-26  Bruno Haible  <bruno@clisp.org>
80961
80962         * modules/human: Depend on module stdbool.
80963
80964 2003-06-25  Bruno Haible  <bruno@clisp.org>
80965
80966         * modules/readlink: New file.
80967         * modules/xreadlink: Depend on it.
80968         * MODULES.html.sh (func_all_modules): Add readlink.
80969
80970 2003-06-25  Bruno Haible  <bruno@clisp.org>
80971
80972         * m4/readlink.m4: New file.
80973
80974 2003-06-25  Bruno Haible  <bruno@clisp.org>
80975
80976         * lib/readlink.c: New file.
80977
80978 2003-06-22  Karl Berry  <karl@gnu.org>
80979
80980         * config/srclist.txt: update mkinstalldirs from automake.
80981         * config/mkinstalldirs: update.
80982
80983 2003-06-22  Bruno Haible  <bruno@clisp.org>
80984
80985         Portability to mingw32.
80986         * m4/ssize_t.m4: New file, from GNU gettext.
80987         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80988         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80989
80990 2003-06-22  Bruno Haible  <bruno@clisp.org>
80991
80992         * modules/safe-read: Add m4/ssize_t.m4.
80993         * modules/xreadlink: Add m4/ssize_t.m4.
80994
80995 2003-06-20  Bruno Haible  <bruno@clisp.org>
80996
80997         Assume C89, so PARAMS isn't needed.
80998         * lib/unicodeio.h (PARAMS): Remove.
80999         * lib/unicodeio.c: Don't use PARAMS.
81000
81001 2003-06-18  Karl Berry  <karl@gnu.org>
81002
81003         * config/config.{guess,sub}: update from prep.
81004
81005 2003-06-18  Jim Meyering  <jim@meyering.net>
81006
81007         Merge changes from coreutils.
81008         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
81009         Remove explicit declarations of xmalloc and realloc.
81010         Include xalloc.h.
81011         (read_utmp): Remove anachronistic cast of xmalloc.
81012
81013 2003-06-17  Paul Eggert  <eggert@twinsun.com>
81014
81015         Assume C89, so PARAMS isn't needed.
81016         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
81017         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
81018         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
81019         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
81020         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
81021         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
81022         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
81023         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
81024         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
81025         lib/xstrtod.h, lib/xstrtol.h: Likewise.
81026         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
81027         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
81028         no longer needed. Anyway, config.h should always be included before any
81029         other file.
81030
81031 2003-06-11  Simon Josefsson  <jas@extundo.com>
81032
81033         * modules/sysexits: New file.
81034         * MODULES.html.sh (func_all_modules): Add sysexits.
81035
81036 2003-06-11  Simon Josefsson  <jas@extundo.com>
81037
81038         * lib/sysexit_.h: New file.
81039
81040 2003-06-11  Derek Price  <derek@ximbiot.com>
81041
81042         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
81043         necessary.
81044
81045 2003-06-11  Bruno Haible  <bruno@clisp.org>
81046
81047         * m4/sysexits.m4: New file.
81048
81049 2003-06-10  Simon Josefsson  <jas@extundo.com>
81050
81051         * lib/argp.h: New file, from glibc.
81052         * lib/argp-ba.c: New file, from glibc.
81053         * lib/argp-eexst.c: New file, from glibc.
81054         * lib/argp-fmtstream.c: New file, from glibc.
81055         * lib/argp-fmtstream.h: New file, from glibc.
81056         * lib/argp-fs-xinl.c: New file, from glibc.
81057         * lib/argp-help.c: New file, from glibc.
81058         * lib/argp-namefrob.h: New file, from glibc.
81059         * lib/argp-parse.c: New file, from glibc.
81060         * lib/argp-pv.c: New file, from glibc.
81061         * lib/argp-pvh.c: New file, from glibc.
81062         * lib/argp-xinl.c: New file, from glibc.
81063
81064 2003-06-10  Simon Josefsson  <jas@extundo.com>
81065
81066         * modules/strchrnul: New file.
81067
81068 2003-06-10  Simon Josefsson  <jas@extundo.com>
81069
81070         * modules/argp: New file.
81071
81072 2003-06-10  Simon Josefsson  <jas@extundo.com>
81073
81074         * m4/strchrnul.m4: New file.
81075
81076 2003-06-10  Simon Josefsson  <jas@extundo.com>
81077
81078         * lib/strchrnul.h: New file.
81079         * lib/strchrnul.c: New file.
81080
81081 2003-06-10  Bruno Haible  <bruno@clisp.org>
81082
81083         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
81084
81085 2003-06-07  Karl Berry  <karl@gnu.org>
81086
81087         * config/config.{guess,sub}: update from prep.
81088
81089 2003-06-07  Jim Meyering  <jim@meyering.net>
81090
81091         * modules/strtod: Use $(...) notation, not @...@ for
81092         AC_REPLACE'd variables.
81093         * modules/localcharset: Likewise.
81094
81095 2003-06-07  Jim Meyering  <jim@meyering.net>
81096
81097         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
81098         in place of my name in the copyright comment.
81099         Remove definition and uses of __P.
81100
81101         From coreutils.
81102         * lib/stat.c: Don't declare xmalloc explicitly.
81103         Instead, include "xalloc.h".
81104         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
81105         xrealloc, and xcalloc return values.
81106         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
81107         Improve comment.
81108         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
81109
81110 2003-06-07  Bruno Haible  <bruno@clisp.org>
81111
81112         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
81113         avoid AC_CONFIG_LINKS.
81114         * modules/fnmatch (Makefile.am): Use explicit creation rule for
81115         fnmatch.h, to avoid AC_CONFIG_LINKS.
81116         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
81117
81118 2003-06-07  Bruno Haible  <bruno@clisp.org>
81119
81120         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
81121         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
81122         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
81123         directory.
81124         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
81125         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
81126         directory.
81127
81128 2003-06-06  Jim Meyering  <jim@meyering.net>
81129
81130         Merge from coreutils.
81131         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
81132         Consolidate declarations and initializations of *_base* locals.
81133
81134         Merge from coreutils.
81135         This avoids a core dump on systems without GNU putenv,
81136         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
81137         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
81138         (unsetenv): New static function, from GNU libc.
81139         (rpl_putenv): Use it.
81140
81141         * lib/modechange.c: Remove trailing blanks.
81142
81143         Merge from coreutils.
81144         * lib/fsusage.c: Remove declaration of statfs.
81145         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
81146
81147         * lib/posixtm.c: Include <stdbool.h> unconditionally.
81148
81149 2003-06-06  Jim Meyering  <jim@meyering.net>
81150
81151         * lib/stdbool_.h: Renamed from stdbool.h.in.
81152
81153 2003-06-06  Jim Meyering  <jim@meyering.net>
81154             Bruno Haible  <bruno@clisp.org>
81155
81156         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
81157         Adjust Makefile.am snippet not to redirect directly to target.
81158         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
81159
81160 2003-06-05  Paul Eggert  <eggert@twinsun.com>
81161
81162         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
81163         mismatch, look in future quarters as well as past.  This fixes a
81164         bug when processing fall-backwards gaps immediately after a long
81165         period of daylight-saving time.
81166
81167         * lib/mktime.c: Assume freestanding C89 or better.
81168         (HAVE_LIMITS_H): Remove.  Assume it's 1.
81169         (__P): Remove; not used.
81170         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
81171         (mktime, not_equal_tm, print_tm, check_result,
81172         main): Use prototypes.  Use const * where appropriate.
81173         (main): Fix typo in testing code that uncovered by above changes.
81174         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
81175
81176 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81177
81178         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
81179         locale.h, localeconv.  This merges changes from coreutils.
81180
81181         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
81182         It can be removed after the next Autoconf is released.
81183         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
81184         needed.
81185
81186 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81187
81188         * lib/mktime.c: Fix Debian bug 177940
81189         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
81190         (localtime_offset): Now long int, not time_t, because we want it
81191         to be guaranteed to be signed.  All uses changed.
81192         (__mktime_internal): If overflow would occur when adding offset,
81193         don't add it.
81194
81195         Merge 'human' changes from coreutils.  Rewrite to support
81196         locale-specific notations like thousands separators.
81197         * lib/human.c: Simplify authorship notice.
81198         Include human.h immediately after config.h.
81199         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
81200         <limits.h>: Do not include, since human.h does.
81201         (SIZE_MAX, UINTMAX_MAX): New macros.
81202         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
81203         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
81204         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
81205         (power_letter): Renamed from suffixes.
81206         (generate_suffix_backwards): Remove.
81207         (adjust_value): Now takes int style (because of human.h changes)
81208         and long double value (for greater precision on some platforms).
81209         (group_number): New function.
81210         (human_readable): Use it.  Use integer options, not enum.
81211         Put the options before the sizes in the arg list.
81212         Support all the new options.
81213         The old human_readable function has been removed;
81214         use inttostr.h instead.
81215         (human_readable, default_block_size, humblock):
81216         Use uintmax_t, not int, for block sizes.
81217         (human_readable_inexact, block_size_types): Remove.
81218         (block_size_opts): New constant.
81219         (human_options): Renamed from human_block_size, with new signature
81220         that allows block sizes up to UINTMAX_MAX.  All callers changed.
81221         * lib/human.h: Add copyright and authorship notice.
81222         Include <limits.h> and <stdbool.h> unconditionally.
81223         (PARAMS): Remove.  All uses removed.
81224         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
81225         (enum human_inexact_style): Remove tag; now a nameless enum.
81226         (human_floor, human_ceiling, human_round_to_even): Now have
81227         values 2, 0, 1 rather than -1, 1, 0.
81228         (human_group_digits, human_suppress_point_zero, human_autoscale,
81229         human_base_1024, human_SI, human_B): New constants.
81230         (human_readable_inexact, human_block_size): Remove.
81231         (human_readable): Size args are now uintmax_t, not int.
81232         (human_options): New decl.
81233
81234         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
81235         unnecessary now that we assume C89 or better.  This change
81236         imported from coreutils.
81237
81238         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81239         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
81240         in the 2003-05-30 sync from glibc.
81241
81242         .h files should stand alone, but we shouldn't include <sys/types.h>
81243         if we can get away with just <stddef.h>.
81244
81245         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
81246         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
81247         rather than <sys/types.h>, as we merely need size_t.
81248         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
81249         to get size_t.
81250         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
81251         Include <stdio.h>, to get FILE.
81252         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
81253         memcasecmp.h has included <stddef.h> and all we need is size_t.
81254         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
81255         our interface, instead of including <sys/types.h>
81256
81257 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81258
81259         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
81260         now, as glibc mktime is buggy on non-glibc systems.
81261
81262 2003-06-03  Karl Berry  <karl@gnu.org>
81263
81264         * config/config.sub: update from prep.
81265
81266 2003-06-02  Paul Eggert  <eggert@twinsun.com>
81267
81268         [from coreutils]
81269         Fix some minor time-related bugs with POSIX time arguments.
81270         Some valid time stamps were being rejected (notably -1, and
81271         time stamps before 1900 on 64-bit hosts).  And some invalid
81272         time stamps were being accepted, e.g. September 31.
81273
81274         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
81275         that we can return (time_t) -1 successfully.
81276         * lib/posixtm.c: Likewise.
81277         [HAVE_STDBOOL_H]: Include <stdbool.h>.
81278         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
81279         (t): Remove static var.
81280         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
81281         of static var.  All uses changed.
81282         (year): Do not reject years before 1900; they can occur with
81283         64-bit time_t.
81284         (posix_time_parse): Do not check for out-of-range components;
81285         that is now the caller's responsibility, since our checks were
81286         only approximations.
81287         (posixtime): Use mktime to check for out-of-range components,
81288         since it knows them exactly.
81289         If mktime returns (time_t) -1, check whether an error actually occurred
81290         by invoking localtime on -1.
81291         (main) [TEST_POSIXTIME]: Check for input data errors, and report
81292         posixtime failures better.
81293         Improve the test data (in comments only).
81294
81295 2003-06-02  Karl Berry  <karl@gnu.org>
81296
81297         * config/mkinstalldirs (version): new variable.
81298         (--version): new option.
81299         (usage): improve message.
81300
81301 2003-05-30  Karl Berry  <karl@gnu.org>
81302
81303         * lib/mktime.c: update from libc.
81304
81305 2003-05-30  Bruno Haible  <bruno@clisp.org>
81306
81307         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
81308         * config/config.rpath: Upgrade to gettext-0.12.1.
81309
81310 2003-05-30  Bruno Haible  <bruno@clisp.org>
81311
81312         * m4/gettext.m4: Upgrade to gettext-0.12.1.
81313         * m4/nls.m4: New file, from gettext-0.12.1.
81314         * m4/po.m4: New file, from gettext-0.12.1.
81315         * m4/progtest.m4: Upgrade to gettext-0.12.1.
81316
81317 2003-05-30  Bruno Haible  <bruno@clisp.org>
81318
81319         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
81320         * lib/localcharset.h: Likewise.
81321         * lib/localcharset.c: Likewise.
81322
81323 2003-05-29  Karl Berry  <karl@gnu.org>
81324
81325         * config/config.rpath: update from gettext.
81326
81327 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81328
81329         Assume the headers required for C89 freestanding compilers.
81330         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
81331         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
81332         * m4/human.m4 (gl_HUMAN): Likewise.
81333         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
81334         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
81335         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81336         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
81337         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81338         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
81339
81340 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81341
81342         Assume the headers required for C89 freestanding compilers.
81343         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
81344         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
81345         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
81346         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
81347         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
81348         define, since <limits.h> is guaranteed to do that.
81349         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
81350         * lib/exclude.c: Include <stdbool.h> unconditionally.
81351         * lib/tempname.c: Include <stddef.h> unconditionally.
81352         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
81353         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
81354         <stddef.h> does that.
81355         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
81356         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
81357         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
81358         needed.
81359         * lib/xstrtol.c: Likewise.
81360         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
81361         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
81362
81363         * lib/addext.c (addext): Use assignment rather than cast, to avoid
81364         warnings on some platforms.
81365
81366         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81367         arbitrarily.
81368
81369 2003-05-26  Jim Meyering  <jim@meyering.net>
81370
81371         Merge in a change from coreutils:
81372         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
81373         that is guaranteed to be `no'.  Use `no_such_member' to indicate
81374         that condition, rather than `-1' which is slightly misleading.
81375         Change the name of the cache variable to have the gl_ prefix.
81376         Prompted by a patch from Richard Dawe for DJGPP.
81377
81378 2003-05-24  Karl Berry  <karl@gnu.org>
81379
81380         * config/config.guess: update from prep.
81381
81382 2003-05-22  Karl Berry  <karl@gnu.org>
81383
81384         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
81385
81386 2003-05-20  Karl Berry  <karl@gnu.org>
81387
81388         * config/config.guess: update from prep.
81389
81390 2003-05-18  Karl Berry  <karl@gnu.org>
81391
81392         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
81393         might actually be set by the user.
81394
81395         * config/depcomp, install-sh, mdate-sh: update from automake.
81396
81397 2003-05-17  Bruno Haible  <bruno@clisp.org>
81398
81399         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
81400         invalid expansion for AC_EGREP_CPP.
81401         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
81402         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
81403         Suggested by Akim Demaille <akim@epita.fr> in
81404         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
81405
81406 2003-05-12  Jim Meyering  <jim@meyering.net>
81407
81408         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
81409         the space-padded-by-default conversion specifiers, %e, %k, %l.
81410
81411 2003-05-12  Bruno Haible  <bruno@clisp.org>
81412
81413         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
81414         the string is longer than 4 KB.
81415
81416 2003-05-11  Karl Berry  <karl@gnu.org>
81417
81418         * config/config.{guess,sub}: update from prep.
81419
81420 2003-05-09  Bruno Haible  <bruno@clisp.org>
81421
81422         * modules/error: Add m4/strerror_r.m4 to file list.
81423
81424 2003-05-03  Bruno Haible  <bruno@clisp.org>
81425
81426         Upgrade to Unicode-4.0.
81427         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
81428         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
81429         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
81430         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
81431         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
81432         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
81433         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
81434         Change width of U+E0100..U+E01EF from 1 to 0.
81435
81436 2003-04-25  Jim Meyering  <jim@meyering.net>
81437
81438         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
81439         of type size_t, not int.
81440
81441 2003-04-25  Bruno Haible  <bruno@clisp.org>
81442
81443         * lib/copy-file.c: Include <stddef.h>, for size_t.
81444
81445 2003-04-21  Paul Eggert  <eggert@twinsun.com>
81446
81447         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
81448         code which expansion is under static control.  Patch imported from
81449         Akim Demaille's patch to Bison; see
81450         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
81451
81452 2003-04-14  Bruno Haible  <bruno@clisp.org>
81453
81454         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
81455
81456 2003-04-11  Jim Meyering  <jim@meyering.net>
81457
81458         Merge changes from Coreutils.
81459
81460         2003-03-22  Jim Meyering  <jim@meyering.net>
81461
81462         * lib/strftime.c (widen): Cast alloca return value to proper type.
81463
81464         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
81465
81466         From GNU libc.
81467         * lib/strftime.c (my_strftime): Handle very large width
81468         specifications for numeric values correctly.  Improve checks for
81469         overflow.
81470
81471         2003-01-19  Jim Meyering  <jim@meyering.net>
81472
81473         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
81474         definitions.
81475         (nl_get_alt_digit) [! defined my_strftime]: Define.
81476         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
81477         _nl_get_alt_digit and _nl_get_walt_digit.
81478
81479         * lib/strftime.c (my_strftime): Merge in locale-related changes from
81480         libc. These changes have no effect outside of _LIBC.
81481
81482 2003-04-10  Bruno Haible  <bruno@clisp.org>
81483
81484         * modules/findprog: New file.
81485         * MODULES.html.sh (func_all_modules): Add it.
81486
81487 2003-04-10  Bruno Haible  <bruno@clisp.org>
81488
81489         * m4/findprog.m4: New file.
81490         * m4/eaccess.m4: New file.
81491
81492 2003-04-10  Bruno Haible  <bruno@clisp.org>
81493
81494         * lib/findprog.h: New file, from GNU gettext.
81495         * lib/findprog.c: New file, from GNU gettext.
81496
81497 2003-04-05  Jim Meyering  <jim@meyering.net>
81498
81499         Merge changes from Coreutils.
81500
81501         * lib/exclude.h (PARAMS): Remove definition and uses.
81502         * lib/exclude.c: Remove uses of `PARAMS'.
81503
81504         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
81505         Add test-cases for DOS filenames. Declare program_name.
81506         (main): Set up program_name.  Patch by Rich Dawe.
81507
81508         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81509         error from mntctl.
81510         Use mntctl's return value to drive the entry-processing loop, since
81511         we can't rely on the value of the vmt_length member in the last
81512         entry.  On some systems doing so could result in exhausting
81513         virtual memory.  Based in part on a patch from Mike Jetzer.
81514
81515 2003-04-04  Bruno Haible  <bruno@clisp.org>
81516
81517         * modules/linebreak: New file.
81518         * MODULES.html.sh (func_all_modules): Add it.
81519
81520 2003-04-04  Bruno Haible  <bruno@clisp.org>
81521
81522         * m4/linebreak.m4: New file.
81523
81524 2003-04-04  Bruno Haible  <bruno@clisp.org>
81525
81526         * lib/linebreak.h: New file, from GNU gettext.
81527         * lib/linebreak.c: New file, from GNU gettext with slight
81528         modifications.
81529         * lib/lbrkprop.h: New file, from GNU gettext.
81530
81531 2003-04-03  Bruno Haible  <bruno@clisp.org>
81532
81533         * modules/utf8-ucs4: New file.
81534         * modules/utf16-ucs4: New file.
81535         * modules/ucs4-utf8: New file.
81536         * modules/ucs4-utf16: New file.
81537         * MODULES.html.sh (func_all_modules): Add them.
81538
81539 2003-04-03  Bruno Haible  <bruno@clisp.org>
81540
81541         * m4/utf-ucs4.m4: New file.
81542         * m4/ucs4-utf.m4: New file.
81543
81544 2003-04-03  Bruno Haible  <bruno@clisp.org>
81545
81546         * lib/utf8-ucs4.h: New file, from GNU gettext.
81547         * lib/utf16-ucs4.h: New file, from GNU gettext.
81548         * lib/ucs4-utf8.h: New file, from GNU gettext.
81549         * lib/ucs4-utf16.h: New file, from GNU gettext.
81550
81551 2003-04-02  Bruno Haible  <bruno@clisp.org>
81552
81553         * modules/binary-io: New file.
81554         * MODULES.html.sh (func_all_modules): Add it.
81555
81556 2003-04-02  Bruno Haible  <bruno@clisp.org>
81557
81558         * lib/binary-io.h: New file, from GNU gettext.
81559
81560 2003-04-01  Bruno Haible  <bruno@clisp.org>
81561
81562         * modules/pathname: New file.
81563         * MODULES.html.sh (func_all_modules): Add it.
81564
81565 2003-04-01  Bruno Haible  <bruno@clisp.org>
81566
81567         * lib/pathname.h: New file, from GNU gettext.
81568         * lib/concatpath.c: New file, from GNU gettext.
81569
81570 2003-03-30  Bruno Haible  <bruno@clisp.org>
81571
81572         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
81573
81574 2003-03-30  Bruno Haible  <bruno@clisp.org>
81575
81576         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
81577         function chown() doesn't exist.
81578
81579 2003-03-28  Bruno Haible  <bruno@clisp.org>
81580
81581         * modules/copy-file: New file.
81582         * MODULES.html.sh (func_all_modules): Add it.
81583
81584 2003-03-28  Bruno Haible  <bruno@clisp.org>
81585
81586         * m4/copy-file.m4: New file.
81587
81588 2003-03-28  Bruno Haible  <bruno@clisp.org>
81589
81590         * lib/copy-file.h: New file, from GNU gettext.
81591         * lib/copy-file.c: New file, from GNU gettext.
81592
81593 2003-03-18  Jim Meyering  <jim@meyering.net>
81594
81595         * lib/quote.c (quote_n): Fix typo in comment.
81596
81597 2003-03-18  Bruno Haible  <bruno@clisp.org>
81598
81599         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
81600         checking.
81601         * m4/onceonly_2_57.m4: Likewise.
81602
81603 2003-03-17  Bruno Haible  <bruno@clisp.org>
81604
81605         * m4/onceonly.m4: Require autoconf 2.54 or newer.
81606         (m4_quote): Remove macro.
81607         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
81608
81609 2003-03-14  Jim Meyering  <jim@meyering.net>
81610
81611         Merge changes from Coreutils.
81612         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
81613         to be const, in order to avoid warnings.
81614         (obstack_room): Likewise.
81615         (obstack_empty_p): Likewise.
81616
81617 2003-03-14  Bruno Haible  <bruno@clisp.org>
81618
81619         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
81620         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
81621
81622 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81623
81624         Merge changes from Bison.
81625         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
81626         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
81627         when compiling Bison 1.875's `bitset bset = obstack_alloc
81628         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
81629         * lib/hash.c: Include <stdbool.h> unconditionally.
81630
81631 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81632
81633         * m4/onceonly.m4 (m4_quote): New macro.
81634         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
81635         Quote AC_FOREACH variable-expansions properly.
81636
81637 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81638
81639         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
81640
81641 2003-03-09  Paul Eggert  <eggert@twinsun.com>
81642
81643         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
81644         Reported by Bruce Becker; see:
81645         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
81646
81647 2003-03-03  Paul Eggert  <eggert@twinsun.com>
81648             Bruno Haible  <bruno@clisp.org>
81649
81650         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
81651         Reported by John Hughes, see
81652         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
81653
81654 2003-02-20  Bruno Haible  <bruno@clisp.org>
81655
81656         * MODULES.html.sh (func_all_modules): Add poll.
81657
81658 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81659
81660         * modules/poll: New file.
81661
81662 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81663
81664         * lib/poll_.h: New file.
81665         * lib/poll.c: New file.
81666
81667 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81668
81669         * m4/poll.m4: New file.
81670
81671 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81672
81673         * modules/mathl: New file.
81674
81675 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81676
81677         * lib/mathl.h: New file.
81678         * lib/acosl.c: New file.
81679         * lib/asinl.c: New file.
81680         * lib/atanl.c: New file.
81681         * lib/ceill.c: New file.
81682         * lib/cosl.c: New file.
81683         * lib/expl.c: New file.
81684         * lib/floorl.c: New file.
81685         * lib/frexpl.c: New file.
81686         * lib/ldexpl.c: New file.
81687         * lib/logl.c: New file.
81688         * lib/sincosl.c: New file.
81689         * lib/sinl.c: New file.
81690         * lib/sqrtl.c: New file.
81691         * lib/tanl.c: New file.
81692         * lib/trigl.c: New file.
81693         * lib/trigl.h: New file.
81694
81695 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81696
81697         * m4/mathl.m4: New file.
81698
81699 2003-02-18  Bruno Haible  <bruno@clisp.org>
81700
81701         * MODULES.html.sh (func_all_modules): Add mathl.
81702
81703 2003-02-17  Bruno Haible  <bruno@clisp.org>
81704
81705         * modules/mkdtemp: New module.
81706         * MODULES.html.sh (func_all_modules): Add it.
81707
81708 2003-02-17  Bruno Haible  <bruno@clisp.org>
81709
81710         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
81711
81712 2003-02-17  Bruno Haible  <bruno@clisp.org>
81713
81714         * lib/mkdtemp.h: New file, from GNU gettext.
81715         * lib/mkdtemp.c: New file, from GNU gettext.
81716
81717 2003-02-02  Jim Meyering  <jim@meyering.net>
81718
81719         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
81720         e.g. glibc-2.2.93.
81721
81722 2003-01-31  Bruno Haible  <bruno@clisp.org>
81723
81724         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
81725         'rpl_rename'.
81726         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
81727         'rpl_strnlen'.
81728         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
81729         'rpl_strtod'.
81730         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
81731         'rpl_utime'.
81732
81733 2003-01-31  Bruno Haible  <bruno@clisp.org>
81734
81735         * lib/rename.c: #undef rename before defining rpl_rename.
81736         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
81737
81738 2003-01-30  Bruno Haible  <bruno@clisp.org>
81739
81740         * modules/vasnprintf, modules/vasprintf: New modules.
81741         * MODULES.html.sh (func_all_modules): Add them.
81742
81743 2003-01-30  Bruno Haible  <bruno@clisp.org>
81744
81745         * m4/signed.m4: New file, from GNU gettext.
81746         * m4/longdouble.m4: New file, from GNU gettext.
81747         * m4/wchar_t.m4: New file, from GNU gettext.
81748         * m4/wint_t.m4: New file, from GNU gettext.
81749         * m4/vasnprintf.m4: New file.
81750         * m4/vasprintf.m4: New file.
81751
81752 2003-01-30  Bruno Haible  <bruno@clisp.org>
81753
81754         * lib/printf-args.h: New file, from GNU gettext.
81755         * lib/printf-args.c: New file, from GNU gettext.
81756         * lib/printf-parse.h: New file, from GNU gettext.
81757         * lib/printf-parse.c: New file, from GNU gettext.
81758         * lib/vasnprintf.h: New file, from GNU gettext.
81759         * lib/vasnprintf.c: New file, from GNU gettext.
81760         * lib/asnprintf.c: New file, from GNU gettext.
81761         * lib/vasprintf.h: New file, from GNU gettext with modifications.
81762         * lib/vasprintf.c: New file, from GNU gettext.
81763         * lib/asprintf.c: New file, from GNU gettext.
81764
81765 2003-01-29  Bruno Haible  <bruno@clisp.org>
81766
81767         * modules/stpncpy: New module.
81768         * MODULES.html.sh (func_all_modules): Add it.
81769
81770 2003-01-29  Bruno Haible  <bruno@clisp.org>
81771
81772         * m4/stpncpy.m4: New file.
81773
81774 2003-01-29  Bruno Haible  <bruno@clisp.org>
81775
81776         * lib/stpncpy.h: New file, from GNU gettext with modifications.
81777         * lib/stpncpy.c: New file, from GNU gettext with modifications.
81778
81779 2003-01-28  Bruno Haible  <bruno@clisp.org>
81780
81781         * modules/c-ctype: New module.
81782         * MODULES.html.sh (func_all_modules): Add it.
81783
81784 2003-01-28  Bruno Haible  <bruno@clisp.org>
81785
81786         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
81787         Paul Eggert.
81788         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
81789         Paul Eggert.
81790
81791 2003-01-27  Bruno Haible  <bruno@clisp.org>
81792
81793         * modules/xsetenv: New module.
81794         * MODULES.html.sh (func_all_modules): Add it.
81795
81796 2003-01-27  Bruno Haible  <bruno@clisp.org>
81797
81798         * lib/xsetenv.h: New file, from GNU gettext.
81799         * lib/xsetenv.c: New file, from GNU gettext.
81800
81801 2003-01-23  Jim Meyering  <jim@meyering.net>
81802
81803         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81804         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81805
81806 2003-01-23  Bruno Haible  <bruno@clisp.org>
81807
81808         * modules/minmax: New module.
81809         * MODULES.html.sh (func_all_modules): Add it.
81810
81811 2003-01-23  Bruno Haible  <bruno@clisp.org>
81812
81813         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81814         Eggert.
81815
81816 2003-01-22  Bruno Haible  <bruno@clisp.org>
81817
81818         * modules/exit: New module.
81819         * MODULES.html.sh (func_all_modules): Add it.
81820
81821 2003-01-22  Bruno Haible  <bruno@clisp.org>
81822
81823         * lib/exit.h: New file, from GNU gettext.
81824
81825 2003-01-19  Bruno Haible  <bruno@clisp.org>
81826
81827         * gnulib-tool: Recognize option --extract-maintainer.
81828         (func_get_maintainer): New function.
81829         * modules/*: Add Maintainer entry.
81830
81831 2003-01-16  Jim Meyering  <jim@meyering.net>
81832
81833         * m4/regex.m4: The `regex' struct is both input and output.
81834         Initialize it before each use.  Patch by Tim Waugh.
81835
81836 2003-01-16  Bruno Haible  <bruno@clisp.org>
81837
81838         * MODULES.html.sh: Add a table of contents. Add the module name as
81839         leftmost column. Add hyperlinks.
81840
81841 2003-01-15  Bruno Haible  <bruno@clisp.org>
81842
81843         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
81844
81845 2003-01-15  Bruno Haible  <bruno@clisp.org>
81846
81847         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
81848         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
81849         suffix.
81850
81851 2003-01-15  Bruno Haible  <bruno@clisp.org>
81852
81853         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
81854
81855 2003-01-15  Bruno Haible  <bruno@clisp.org>
81856
81857         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
81858         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
81859
81860 2003-01-14  Jim Meyering  <jim@meyering.net>
81861
81862         * lib/same.c (same_name): Tweak a comment.
81863
81864 2003-01-14  Bruno Haible  <bruno@clisp.org>
81865
81866         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
81867         when a string comparison is sufficient.
81868
81869 2003-01-14  Bruno Haible  <bruno@clisp.org>
81870
81871         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
81872         'unsigned int'.
81873
81874 2003-01-14  Bruno Haible  <bruno@clisp.org>
81875
81876         * lib/hash-pjw.c: Add comment about low quality of this function.
81877
81878 2003-01-13  Bruno Haible  <bruno@clisp.org>
81879
81880         * modules/stpcpy: Distribute lib/stpcpy.h.
81881         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
81882
81883 2003-01-13  Bruno Haible  <bruno@clisp.org>
81884
81885         * modules/*: Add a description.
81886         * modules/strpbrk: Fix Makefile.am snippet.
81887         * modules/strtoimax: Fix dependencies.
81888         * modules/strtoumax: Likewise.
81889
81890 2003-01-13  Bruno Haible  <bruno@clisp.org>
81891
81892         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81893         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81894         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81895
81896 2003-01-13  Bruno Haible  <bruno@clisp.org>
81897
81898         * gnulib-tool (func_create_testdir): Store config/* files in the main
81899         directory.
81900         * config.rpath: Move to ...
81901         * config/config.rpath: ... here.
81902         * modules/gettext: Contains config/config.rpath, not config.rpath.
81903         * modules/iconv: Likewise.
81904
81905 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81906
81907         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81908         to avoid collisions with libcurses and libreadline.
81909
81910         * m4/getstr.m4: Remove.
81911         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81912
81913 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81914
81915         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81916         to avoid collisions with libcurses and libreadline.
81917
81918         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81919         * lib/getstr.h, getstr.c: Remove.
81920         * lib/getline.c: Include "getline.h", to check interface.
81921         Move body of old getstr.c here: this defines MIN_CHUNK and
81922         declares getdelim2, which is renamed from getstr.
81923         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81924
81925         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81926         All uses changed.
81927         * lib/linebuffer.h: Likewise.
81928         (readline): Remove backward-compatibility macro.
81929
81930 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81931
81932         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81933         to avoid collisions with libcurses and libreadline.
81934         * getstr: Remove.
81935         * MODULES.html.sh: Remove getstr.
81936         * modules/getline: Depend on unlocked-io, not getstr.
81937
81938 2003-01-12  Jim Meyering  <jim@meyering.net>
81939
81940         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81941
81942 2003-01-10  Bruno Haible  <bruno@clisp.org>
81943
81944         * modules/alloca: Change Makefile.am requirements. Simplify Include
81945         requirements. Add lib/alloca_.h to file list.
81946
81947 2003-01-10  Bruno Haible  <bruno@clisp.org>
81948
81949         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81950
81951 2003-01-10  Bruno Haible  <bruno@clisp.org>
81952
81953         * lib/alloca_.h: New file.
81954         * lib/getdate.y: Unconditionally include alloca.h.
81955         * lib/makepath.c: Likewise.
81956         * lib/setenv.c: Likewise.
81957         * lib/userspec.c: Likewise.
81958
81959 2003-01-09  Karl Berry  <karl@gnu.org>
81960
81961         * MODULES.html.sh: include `dirname $0` in PATH, to find
81962         gnulib-tool.
81963
81964 2003-01-09  Bruno Haible  <bruno@clisp.org>
81965
81966         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81967         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81968
81969 2003-01-09  Bruno Haible  <bruno@clisp.org>
81970
81971         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81972
81973 2003-01-09  Bruno Haible  <bruno@clisp.org>
81974
81975         * lib/stdbool.h.in: New file.
81976
81977 2003-01-09  Bruno Haible  <bruno@clisp.org>
81978
81979         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81980         * MODULES.html.sh: Likewise.
81981
81982 2003-01-08  Jim Meyering  <jim@meyering.net>
81983
81984         * lib/full-write.c: Undefine and define-away `const' after inclusion
81985         of errno.h, not before.  Suggestion from Bruno Haible.
81986
81987 2003-01-08  Bruno Haible  <bruno@clisp.org>
81988
81989         * modules/full-read: Depend on full-write.
81990
81991 2003-01-08  Bruno Haible  <bruno@clisp.org>
81992
81993         * lib/safe-read.c: Include specification header first, to ensure its
81994         selfcontainedness.
81995         * lib/full-write.c: Likewise.
81996
81997 2003-01-07  Jim Meyering  <jim@meyering.net>
81998
81999         * lib/full-write.c: Rework so that it may serve to define full_read,
82000         too.
82001         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
82002
82003 2003-01-07  Bruno Haible  <bruno@clisp.org>
82004
82005         * lib/strtoimax.c: Include <stdint.h> as an alternative to
82006         <inttypes.h>.
82007         * lib/xstrtol.h: Likewise.
82008         * lib/xstrtoimax.c: Likewise.
82009         * lib/xstrtoumax.c: Likewise.
82010         * lib/human.h: Likewise.
82011
82012         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
82013         on systems that have <inttypes.h> but not <stdint.h>.
82014
82015 2003-01-07  Bruno Haible  <bruno@clisp.org>
82016
82017         * MODULES.html.sh: Add copyright notice.
82018         (missed_files): Omit CVS directory entries.
82019         (func_module): Make it work with sed-3.02.
82020         * MODULES.txt: Remove file.
82021
82022 2003-01-06  Jim Meyering  <jim@meyering.net>
82023
82024         * lib/version-etc.c: Update year in translatable copyright string.
82025
82026 2003-01-03  Karl Berry  <karl@gnu.org>
82027
82028         * config/config.{guess,sub}: update from prep.
82029
82030 2003-01-02  Karl Berry  <karl@gnu.org>
82031
82032         * doc/COPYING.DOC: belatedly updated to 1.2.
82033
82034 2003-01-01  Karl Berry  <karl@gnu.org>
82035
82036         * gnulib-tool (func_verify_module): report module name $module in
82037         error message, not $1.
82038         * gnulib-tool (create-testdir): don't complain if destdir couldn't
82039         be created, only if it doesn't exist.
82040         * gnulib-tool (last_checkin_date): don't expand the $Date here.
82041
82042 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82043
82044         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
82045
82046 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82047
82048         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
82049         memcmp if strcoll doesn't work.
82050
82051 2002-12-31  Bruno Haible  <bruno@clisp.org>
82052
82053         * lib/utime.c (utime_null): No need to call ftruncate if the file was
82054         nonempty.
82055
82056 2002-12-31  Bruno Haible  <bruno@clisp.org>
82057
82058         * lib/memcoll.c (STRCOLL): New macro.
82059         (memcoll): Use it.
82060
82061 2002-12-31  Bruno Haible  <bruno@clisp.org>
82062
82063         * lib/localcharset.h: New file.
82064         * lib/localcharset.c: Include it.
82065         * lib/unicodeio.c: Likewise.
82066
82067 2002-12-31  Bruno Haible  <bruno@clisp.org>
82068
82069         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
82070         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
82071
82072 2002-12-31  Bruno Haible  <bruno@clisp.org>
82073
82074         * lib/getline.h: Include <stddef.h>, for size_t.
82075
82076         * lib/unicodeio.h: Include <stddef.h>, for size_t.
82077         * lib/unicodeio.c: Don't include <stddef.h>.
82078
82079 2002-12-31  Bruno Haible  <bruno@clisp.org>
82080
82081         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
82082         HAVE_TM_ZONE.
82083
82084 2002-12-24  Karl Berry  <karl@gnu.org>
82085
82086         * config/config.guess: update from prep.
82087
82088 2002-12-24  Bruno Haible  <bruno@clisp.org>
82089
82090         General infrasructure.
82091         * m4/README: Rewritten.
82092         * m4/onceonly.m4: New file.
82093         * m4/onceonly_2_57.m4: New file.
82094
82095         Module atexit.
82096         * m4/atexit.m4: New file.
82097
82098         Module strtod.
82099         * m4/strtod.m4: New file.
82100
82101         Module strtol.
82102         * m4/strtol.m4: New file.
82103
82104         Module strtoul.
82105         * m4/strtoul.m4: New file.
82106
82107         Module memchr.
82108         * m4/memchr.m4: New file.
82109
82110         Module memcmp.
82111         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
82112         (jm_FUNC_MEMCMP): Invoke it.
82113
82114         Module memcpy.
82115         * m4/memcpy.m4: New file.
82116
82117         Module memmove.
82118         * m4/memmove.m4: New file.
82119
82120         Module memset.
82121         * m4/memset.m4: New file.
82122
82123         Module strcspn.
82124         * m4/strcspn.m4: New file.
82125
82126         Module strpbrk.
82127         * m4/strpbrk.m4: New file.
82128
82129         Module strstr.
82130         * m4/strstr.m4: New file.
82131
82132         Module strerror.
82133         * m4/strerror.m4: New file.
82134
82135         Module mktime.
82136         * m4/mktime.m4: Renamed from jm-mktime.m4.
82137         (gl_PREREQ_MKTIME): New macro.
82138         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
82139
82140         Module malloc.
82141         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
82142         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
82143         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
82144
82145         Module realloc.
82146         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
82147         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
82148         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
82149
82150         Module strftime.
82151         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
82152         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
82153         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
82154         gl_TM_GMTOFF.
82155         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
82156
82157         Module xalloc.
82158         * m4/xalloc.m4: New file.
82159
82160         Module alloca.
82161         * m4/alloca.m4: New file.
82162
82163         Module putenv.
82164         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
82165         (jm_FUNC_PUTENV): Invoke it.
82166
82167         Module setenv.
82168         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
82169         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
82170         when invoked twice.
82171         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
82172         gt_FUNC_SETENV.
82173
82174         Module memrchr.
82175         * m4/memrchr.m4: New file.
82176
82177         Module stpcpy.
82178         * m4/stpcpy.m4: New file.
82179
82180         Module strcase.
82181         * m4/strcase.m4: New file.
82182
82183         Module strdup.
82184         * m4/strdup.m4: New file.
82185
82186         Module strnlen.
82187         * m4/strnlen.m4: New file.
82188
82189         Module strndup.
82190         * m4/strndup.m4: New file.
82191
82192         Module xstrtod.
82193         * m4/xstrtod.m4: New file.
82194
82195         Module xstrtol.
82196         * m4/xstrtol.m4: New file.
82197
82198         Module getdate.
82199         * m4/getdate.m4: New file.
82200
82201         Module unlocked-io.
82202         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
82203         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
82204         * m4/jm-glibc-io.m4n: Remove file.
82205
82206         Module long-options.
82207         * m4/long-options.m4: New file.
82208
82209         Module md5.
82210         * m4/md5.m4: New file.
82211
82212         Module sha.
82213         * m4/sha.m4: New file.
82214
82215         Module getstr.
82216         * m4/getstr.m4: New file.
82217
82218         Module getline.
82219         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
82220         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
82221         <sys/types.h>, for size_t. Use the function name gnu_getline, not
82222         simply getline. Infoke gl_PREREQ_GETLINE.
82223
82224         Module obstack.
82225         * m4/obstack.m4: New file.
82226
82227         Module hash.
82228         * m4/hash.m4: New file.
82229
82230         Module readtokens.
82231         * m4/readtokens.m4: New file.
82232
82233         Module strverscmp.
82234         * m4/strverscmp.m4: New file.
82235
82236         Module stdbool.
82237         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
82238         OSF/1.
82239
82240         Module strtoll.
82241         * m4/strtoll.m4: New file.
82242
82243         Module strtoull.
82244         * m4/strtoull.m4: New file.
82245
82246         Module strtoimax.
82247         * m4/strtoimax.m4: New file.
82248
82249         Module strtoumax.
82250         * m4/strtoumax.m4: New file.
82251
82252         Module xstrtoimax.
82253         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
82254         jm_AC_PREREQ_XSTRTOIMAX.
82255         Moved the strtol prerequisites to strtol.m4.
82256         Moved the strtoll prerequisites to strtoll.m4.
82257         Moved the strtoimax prerequisites to strtoimax.m4.
82258
82259         Module xstrtoumax.
82260         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
82261         jm_AC_PREREQ_XSTRTOUMAX.
82262         Moved the strtoul prerequisites to strtoul.m4.
82263         Moved the strtoull prerequisites to strtoull.m4.
82264         Moved the strtoumax prerequisites to strtoumax.m4.
82265
82266         Module chown.
82267         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
82268         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
82269
82270         Module dup2.
82271         * m4/dup2.m4: New file.
82272
82273         Module ftruncate.
82274         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
82275         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
82276
82277         Module getgroups.
82278         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
82279         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
82280
82281         Module gettimeofday.
82282         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
82283         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
82284         gl_PREREQ_GETTIMEOFDAY.
82285
82286         Module mkdir.
82287         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
82288         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
82289
82290         Module mkstemp.
82291         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
82292         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
82293         jm_AC_TYPE_UINTMAX_T.
82294         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
82295
82296         Module stat.
82297         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
82298         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
82299
82300         Module lstat.
82301         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
82302         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
82303
82304         Module timespec.
82305         * m4/timespec.m4 (gl_TIMESPEC): New macro.
82306         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
82307         * m4/st_mtim.m4: Indentation.
82308
82309         Module nanosleep.
82310         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
82311         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
82312         gl_PREREQ_NANOSLEEP.
82313
82314         Module regex.
82315         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
82316         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
82317         (gl_REGEX): New macro.
82318
82319         Module rename.
82320         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
82321         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
82322
82323         Module rmdir.
82324         * m4/rmdir.m4: New file.
82325
82326         Module utime.
82327         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
82328         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
82329         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
82330
82331         Module dirname.
82332         * m4/dirname.m4: New file.
82333
82334         Module getopt.
82335         * m4/getopt.m4: New file.
82336
82337         Module unistd-safer.
82338         * m4/unistd-safer.m4: New file.
82339
82340         Module fnmatch.
82341         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
82342         declaration.
82343         (gl_PREREQ_FNMATCH_EXTRA): New macro.
82344         (gl_FUNC_FNMATCH_POSIX): New macro.
82345         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
82346         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
82347         simply fnmatch.
82348
82349         Module exclude.
82350         * m4/exclude.m4: New file.
82351
82352         Module human.
82353         * m4/human.m4: New file.
82354
82355         Module acl.
82356         * m4/acl.m4: Nop.
82357
82358         Module backupfile.
82359         * m4/backupfile.m4: New file.
82360         * m4/d-ino.m4: Indentation.
82361
82362         Module fsusage.
82363         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
82364         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
82365         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
82366
82367         Module dirfd.
82368         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
82369         requirements.
82370
82371         Module euidaccess.
82372         * m4/euidaccess.m4: New file.
82373
82374         Module file-type.
82375         * m4/file-type.m4: New file.
82376
82377         Module fileblocks.
82378         * m4/fileblocks.m4: New file.
82379
82380         Module filemode.
82381         * m4/filemode.m4: New file.
82382
82383         Module isdir.
82384         * m4/isdir.m4: New file.
82385
82386         Module lchown.
82387         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
82388         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
82389
82390         Module makepath.
82391         * m4/makepath.m4: New file.
82392
82393         Module modechange.
82394         * m4/modechange.m4: New file.
82395
82396         Module mountlist.
82397         * m4/mountlist.m4: New file.
82398         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
82399         Indentation.
82400
82401         Module path-concat.
82402         * m4/path-concat.m4: New file.
82403
82404         Module pathmax.
82405         * m4/pathmax.m4: New file.
82406
82407         Module same.
82408         * m4/same.m4: New file.
82409
82410         Module save-cwd.
82411         * m4/save-cwd.m4: New file.
82412
82413         Module savedir.
82414         * m4/savedir.m4: New file.
82415
82416         Module xgetcwd.
82417         * m4/xgetcwd.m4: New file.
82418         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
82419
82420         Module xreadlink.
82421         * m4/xreadlink.m4: New file.
82422
82423         Module safe-read.
82424         * m4/safe-read.m4: New file.
82425
82426         Module safe-write.
82427         * m4/safe-write.m4: New file.
82428
82429         Module closeout.
82430         * m4/closeout.m4: New file.
82431
82432         Module stdio-safer.
82433         * m4/stdio-safer.m4: New file.
82434
82435         Module getpass.
82436         * m4/getpass.m4: New file.
82437
82438         Module getugroups.
82439         * m4/getugroups.m4: New file.
82440
82441         Module group-member.
82442         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
82443         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
82444
82445         Module idcache.
82446         * m4/idcache.m4: New file.
82447
82448         Module userspec.
82449         * m4/userspec.m4: New file.
82450
82451         Module gettime.
82452         * m4/clock_time.m4: New file.
82453         * m4/gettime.m4: New file.
82454
82455         Module settime.
82456         * m4/settime.m4: New file.
82457
82458         Module posixtm.
82459         * m4/posixtm.m4: New file.
82460
82461         Module gethostname.
82462         * m4/gethostname.m4: New file.
82463
82464         Module canon-host.
82465         * m4/canon-host.m4: New file.
82466
82467         Module gettext.
82468         * m4/codeset.m4: New file, from gettext-0.11.5.
82469         * m4/gettext.m4: New file, from gettext-0.11.5.
82470         * m4/glibc21.m4: New file, from gettext-0.11.5.
82471         * m4/iconv.m4: New file, from gettext-0.11.5.
82472         * m4/intdiv0.m4: New file, from gettext-0.11.5.
82473         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
82474         * m4/inttypes.m4: New file, from gettext-0.11.5.
82475         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
82476         * m4/isc-posix.m4: New file, from gettext-0.11.5.
82477         * m4/lcmessage.m4: New file, from gettext-0.11.5.
82478         * m4/lib-ld.m4: New file, from gettext-0.11.5.
82479         * m4/lib-link.m4: New file, from gettext-0.11.5.
82480         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
82481         * m4/progtest.m4: New file, from gettext-0.11.5.
82482         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
82483         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
82484         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
82485
82486         Module localcharset.
82487         * m4/localcharset.m4: New file.
82488
82489         Module hard-locale.
82490         * m4/hard-locale.m4: New file.
82491
82492         Module mbswidth.
82493         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
82494         onceonly macros.
82495         * m4/mbrtowc.m4: Add comment.
82496
82497         Module memcasecmp.
82498         * m4/memcasecmp.m4: New file.
82499
82500         Module memcoll.
82501         * m4/memcoll.m4: New file.
82502
82503         Module unicodeio.
82504         * m4/unicodeio.m4: New file.
82505
82506         Module rpmatch.
82507         * m4/rpmatch.m4: New file.
82508
82509         Module yesno.
82510         * m4/yesno.m4: New file.
82511
82512         Module exitfail.
82513         * m4/exitfail.m4: New file.
82514
82515         Module c-stack.
82516         * m4/c-stack.m4 (gl_C_STACK): New macro.
82517         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
82518
82519         Module error.
82520         * m4/error.m4 (gl_ERROR): New macro.
82521         (jm_PREREQ_ERROR): Use onceonly macros.
82522
82523         Module fatal.
82524         * m4/fatal.m4: New file.
82525
82526         Module getloadavg.
82527         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
82528         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
82529
82530         Module getpagesize.
82531         * m4/getpagesize.m4: New file.
82532
82533         Module getusershell.
82534         * m4/getusershell.m4: New file.
82535
82536         Module physmem.
82537         * m4/physmem.m4: New file.
82538
82539         Module posixver.
82540         * m4/posixver.m4: New file.
82541
82542         Module quotearg.
82543         * m4/quotearg.m4: New file.
82544
82545         Module quote.
82546         * m4/quote.m4: New file.
82547
82548         Module readutmp.
82549         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
82550
82551         Module sig2str.
82552         * m4/sig2str.m4: New file.
82553
82554         Other.
82555         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
82556         ulonglong.m4.
82557         * m4/intmax_t.m4: New file.
82558         * m4/d-type.m4: Indentation.
82559         * m4/jm-macros.m4: Update.
82560         * m4/prereq.m4 (jm_PREREQ): Update.
82561         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
82562         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
82563         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
82564         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
82565         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
82566         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
82567         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
82568         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
82569         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
82570         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
82571         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
82572         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
82573         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
82574         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
82575         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
82576         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
82577         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
82578         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
82579         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
82580
82581 2002-12-24  Bruno Haible  <bruno@clisp.org>
82582
82583         * MODULES.txt: Update according to m4/ changes.
82584
82585         Module gettext.
82586         * config.rpath: New file, from gettext-0.11.5.
82587
82588         * modules/*: New module descriptions.
82589         * gnulib-tool: New file.
82590         * MODULES.html.sh: New file.
82591
82592 2002-12-21  Karl Berry  <karl@gnu.org>
82593
82594         * doc/fdl.texi: update to version 1.2.
82595
82596 2002-12-19  Karl Berry  <karl@gnu.org>
82597
82598         * config/config.guess: update from prep.
82599
82600 2002-12-18  Bruno Haible  <bruno@clisp.org>
82601
82602         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
82603         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
82604
82605 2002-12-17  Bruno Haible  <bruno@clisp.org>
82606
82607         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
82608         stdlib.h, string.h.
82609
82610 2002-12-17  Bruno Haible  <bruno@clisp.org>
82611
82612         * lib/canon-host.c (strdup): Remove unused declaration.
82613
82614         * lib/fsusage.c: Include full_read.h.
82615         (get_fs_usage): Use full_read instead of safe_read.
82616
82617         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
82618
82619 2002-12-12  Karl Berry  <karl@gnu.org>
82620
82621         * config/config.guess: update from prep.
82622
82623 2002-12-11  Bruno Haible  <bruno@clisp.org>
82624
82625         * m4/setenv.m4: New file, from gettext-0.11.5.
82626
82627 2002-12-11  Bruno Haible  <bruno@clisp.org>
82628
82629         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
82630         not unsetenv().
82631         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
82632         modifications:
82633
82634         2002-12-11  Bruno Haible  <bruno@clisp.org>
82635
82636                 * setenv.c (alloca): Fall back to malloc.
82637                 (freea): New macro.
82638                 (setenv): Use freea() to free memory allocated with alloca().
82639
82640         2002-11-13  Bruno Haible  <bruno@clisp.org>
82641
82642                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
82643                 function declarations.
82644                 * unsetenv.c (unsetenv): Likewise.
82645
82646         2002-03-04  Bruno Haible  <bruno@clisp.org>
82647
82648                 Portability to AIX 4.3.3.
82649                 * unsetenv.c: New file, extracted from setenv.c.
82650                 * setenv.c: Move the unsetenv() function to unsetenv.c.
82651
82652         2001-12-20  Bruno Haible  <bruno@clisp.org>
82653
82654                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
82655                 use malloc instead. For SunOS 4.
82656
82657         2001-12-11  Bruno Haible  <bruno@clisp.org>
82658
82659                 * setenv.c: Declare alloca.
82660                 (compar_fn_t): New typedef.
82661                 (KNOWN_VALUE, STORE_VALUE): Use it.
82662
82663         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
82664         setenv.h.
82665
82666 2002-12-10  Paul Eggert  <eggert@twinsun.com>
82667
82668         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
82669         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
82670         Choose values that are less likely to collide with system fnmatch
82671         options.
82672         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
82673         defined (e.g., a pure POSIX system).
82674         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
82675         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
82676
82677 2002-12-06  Paul Eggert  <eggert@twinsun.com>
82678
82679         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
82680         a pain in practice to deal with generated m4 files.  This change
82681         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
82682
82683         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
82684         and jm-glibc-io.m4, as they are no longer a special case.
82685         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
82686         kludge and the auto-generation stuff.  Check only whether the
82687         functions are declared, not whether they exist, since older hosts
82688         that don't declare the functions can't use the optimization anyway.
82689
82690 2002-12-06  Jim Meyering  <jim@meyering.net>
82691
82692         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
82693
82694         Merge in changes from libc's misc/error.c, in preparation
82695         for the merge of gnulib's changes back into libc.
82696
82697         * lib/error.c (_): Define only if not already defined.
82698         Move definition to follow all #include directives.
82699         Include unlocked-io.h only if !_LIBC.
82700         [_LIBC]: Include <libio/libioP.h>.
82701         [USE_IN_LIBIO]: Include <libio/iolibio.h>
82702         (fflush): Tweak definition to use INTUSE.
82703         (putc): Define.
82704
82705 2002-12-05  Paul Eggert  <eggert@twinsun.com>
82706
82707         * lib/alloca.c [defined emacs]: Include "lisp.h".
82708         (xalloc_die) [defined emacs]: New macro.
82709         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
82710         [! defined emacs]: Include <xalloc.h>.
82711         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
82712         (pointer): Typedef to POINTER_TYPE *.
82713         (malloc): Remove decl; we now always use xmalloc.
82714         (alloca): Use old-style definition, since Emacs needs this.
82715         Check for arithmetic overflow when computing combined size.
82716
82717 2002-12-04  Paul Eggert  <eggert@twinsun.com>
82718
82719         Do not generate unlocked-io.h automatically, since it's easier to
82720         maintain it by hand.
82721
82722         * lib/unlocked-io.h: New file, from GNU diffutils,
82723         but with proper copyright notice and attribution.
82724         * lib/gen-uio: Remove.
82725         * lib/Makefile.am: Add copyright notice.
82726         (libfetish_a_SOURCES): Add unlocked-io.h.
82727         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
82728         (DISTCLEANFILES, io_functions): Remove macros.
82729         (EXTRA_DIST): Remove gen_uio.
82730         (unlocked-io.h): Remove rule.
82731
82732 2002-12-04  Jim Meyering  <jim@meyering.net>
82733
82734         Reflect the fact that stat.c and lstat.c are no longer generated.
82735         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
82736         (DISTCLEANFILES): Likewise.
82737         (EXTRA_DIST): Likewise.
82738         (all_local): Don't depend on stat.c or lstat.c.
82739         (stat.c, lstat.c): Remove rules.
82740         (EXTRA_DIST): Remove xstat.in.
82741
82742         * lib/xstat.in: Remove file.  Contents moved into stat.c.
82743         * lib/stat.c: New file.  Contents mostly from xstat.in.
82744         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
82745         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
82746
82747         * lib/safe-read.c: Rework so that it may serve to define safe_write,
82748         too.
82749         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
82750
82751 2002-12-03  Jim Meyering  <jim@meyering.net>
82752
82753         * lib/safe-read.c, safe-write.c: Change variable names and comments,
82754         but not semantics, to minimize the differences between these two files.
82755         (safe_read): Change comment to mention SAFE_READ_ERROR.
82756
82757         * lib/safe-read.c (IS_EINTR): Define.
82758         (safe_read): Use IS_EINTR in place of in-function cpp directives.
82759
82760 2002-12-02  Jim Meyering  <jim@meyering.net>
82761
82762         * lib/safe-read.c (EINTR): Define.
82763         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82764         (INT_MAX): Provide fallback.
82765         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
82766
82767         * lib/safe-read.h (SAFE_READ_ERROR): Define.
82768
82769 2002-12-02  Bruno Haible  <bruno@clisp.org>
82770
82771         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
82772         Define, taken from safe-read.c.
82773         (INT_MAX): Provide fallback.
82774         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
82775         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
82776
82777         * lib/safe-read.c (EINTR): Remove definition.
82778         (safe_read): Don't use EINTR if it is absent.
82779
82780 2002-12-01  Jim Meyering  <jim@meyering.net>
82781
82782         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
82783         zero.
82784         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
82785
82786 2002-11-27  Paul Eggert  <eggert@twinsun.com>
82787
82788         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
82789         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
82790         with `if (! (value < limit)) abort ();', for readability.
82791
82792 2002-11-26  Karl Berry  <karl@gnu.org>
82793
82794         * lib/strdup.c: copy from libc again, with jim's ok.
82795         * lib/.cppi-disable: re-add strdup.c
82796
82797 2002-11-25  Karl Berry  <karl@gnu.org>
82798
82799         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82800         instead of "strtol.c".
82801
82802 2002-11-25  Karl Berry  <karl@gnu.org>
82803
82804         * config/install-sh: update from automake for variable quoting, $0 in
82805         error msgs, etc.
82806
82807         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82808         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82809         entry.
82810
82811 2002-11-25  Jim Meyering  <jim@meyering.net>
82812
82813         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82814
82815 2002-11-24  Karl Berry  <karl@gnu.org>
82816
82817         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82818         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82819
82820 2002-11-24  Jim Meyering  <jim@meyering.net>
82821
82822         Update from coreutils:
82823
82824         * lib/mktime.c: Merge in changes from libc.
82825
82826         Avoid a link-time failure on some Linux systems.
82827         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
82828         (otherwise).
82829         (__mon_yday): Declare with the STATIC attribute.
82830         (__mktime_internal): Likewise.
82831         Based on a report from Greg Schafer.
82832
82833 2002-11-23  Jim Meyering  <jim@meyering.net>
82834
82835         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
82836         Use `unsigned', not `int', as type of index.
82837
82838         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
82839
82840         * lib/fsusage.c: Remove unneeded parentheses around operands of
82841         `defined'.
82842
82843 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82844
82845         * lib/quotearg.h: Allow multiple inclusion by surrounding with
82846         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
82847         so that we can be included first.
82848         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
82849         * lib/quotearg.c: Include quotearg.h immediately after config.h.
82850         No need to include stddef.h or sys/types.h any more.
82851         Surround local include files with "", not "<>".
82852         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
82853         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
82854         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
82855         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
82856         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
82857         (ISPRINT): Remove; no longer needed now that we assume C89.
82858
82859         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
82860         Preserve errno.
82861
82862         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
82863         quotearg_char): Use SIZE_MAX rather than
82864         (size_t) -1 when we are talking about "infinity".
82865
82866         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
82867
82868 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82869
82870         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
82871         hint that one should use `if (! x) abort ();' rather than `assert
82872         (x);', and anyway it's one less thing to worry about configuring.
82873         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
82874         hash_rehash, hash_insert): Use abort rather than assert.
82875
82876 2002-11-22  Bruno Haible  <bruno@clisp.org>
82877
82878         * lib/safe-read.h: Assume C89. Add comments.
82879         (safe_read): Change return type to size_t.
82880         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
82881         byte counts > SSIZE_MAX correctly.
82882         * lib/safe-write.h: New file.
82883         * lib/safe-write.c: New file.
82884         * lib/full-read.h: New file.
82885         * lib/full-read.c: New file.
82886         * lib/full-write.h: Assume C89. Add comments.
82887         * lib/full-write.c: Include safe-write.h.
82888         (full_write): Rewritten to use safe_write.
82889         Suggested by Jim Meyering and Paul Eggert.
82890
82891 2002-11-21  Jim Meyering  <jim@meyering.net>
82892
82893         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82894
82895         Merge in changes from the coreutils.
82896
82897         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82898         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82899         <stdint.h>.
82900         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82901         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82902         int.  Work more efficiently if X is the same width as uintmax_t.
82903         Do not compare X to -1, to avoid bogus compiler warning.
82904         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82905         Don't assume that f_frsize and f_bsize are the same type.
82906
82907         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82908         warning on FreeBSD.
82909
82910         * lib/makepath.c (make_path): Restore umask *before* creating the final
82911         component.
82912         (make_path): Minor reformatting.
82913
82914         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82915         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82916         HAVE_MALLOC/HAVE_REALLOC.
82917
82918         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82919         dummy ones.  At least on GNU/Linux systems, `auto' means something
82920         else.
82921         From Michael Stone.
82922
82923 2002-11-21  Bruno Haible  <bruno@clisp.org>
82924
82925         Remove case insensitive option matching.
82926         * lib/argmatch.h (argcasematch): Remove declaration.
82927         (ARGCASEMATCH): Remove macro.
82928         (__xargmatch_internal): Remove case_sensitive argument.
82929         (XARGMATCH): Update.
82930         (XARGCASEMATCH): Remove macro.
82931         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82932         case_sensitive argument.
82933         (argcasematch): Remove function.
82934         (__xargmatch_internal): Remove case_sensitive argument.
82935         (main): Use XARGMATCH instead of XARGCASEMATCH.
82936
82937         * lib/xmalloc.c: Change compile-time error message. Add comment about
82938         required autoconf version.
82939
82940 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82941
82942         Merge argmatch cleanups from Bison.  Assume C89.
82943
82944         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82945         Include stdlib.h, for EXIT_FAILURE.
82946         Always include <string.h>, since we assume C89.
82947         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82948         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82949         Include <stddef.h> instead, since it's all we need for size_t.
82950         (PARAMS): Remove.  All uses removed.
82951         (ARRAY_CARDINALITY): Do not bother to #undef.
82952         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82953         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82954         Remove unnecessary parentheses.
82955         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82956         Insert necessary parentheses.
82957         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82958         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82959
82960 2002-11-19  Bruno Haible  <bruno@clisp.org>
82961
82962         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82963         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82964
82965         * lib/mbswidth.h (PARAMS): Remove macro.
82966         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82967         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82968
82969         * lib/gcd.h (PARAMS): Remove macro.
82970         (gcd): Use ANSI C function declarations.
82971         * lib/gcd.c (gcd): Likewise.
82972
82973 2002-11-15  Bruno Haible  <bruno@clisp.org>
82974
82975         * lib/strcspn.c: Include <stddef.h>.
82976         (strcspn): Use ANSI C function declaration. Change return type to
82977         size_t. Use NULL.
82978         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82979         (strpbrk): Use NULL.
82980         * lib/strpbrk.h (PARAMS): Remove macro.
82981         (strpbrk): Use ANSI C function declaration.
82982         * lib/strstr.c: Don't include <sys/types.h>.
82983         * lib/strstr.h (PARAMS): Remove macro.
82984         (strstr): Use ANSI C function declarations.
82985
82986 2002-11-14  Karl Berry  <karl@gnu.org>
82987
82988         * config/mkinstalldirs: `do' on separate line, instead of
82989         `for var; do'.
82990
82991 2002-11-06  Bruno Haible  <bruno@clisp.org>
82992
82993         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82994         * lib/gcd.c (gcd): Likewise.
82995
82996 2002-11-05  Bruno Haible  <bruno@clisp.org>
82997
82998         * lib/gcd.h: New file, from gettext-0.11.5.
82999         * lib/gcd.c: New file, from gettext-0.11.5.
83000
83001 2002-11-05  Bruno Haible  <bruno@clisp.org>
83002
83003         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83004         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83005         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83006         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83007
83008         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
83009         <libintl.h>.
83010         * lib/makepath.c: Include gettext.h instead of <locale.h> and
83011         <libintl.h>.
83012
83013         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
83014         * lib/human.c: Include gettext.h instead of <libintl.h>.
83015         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
83016         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
83017         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
83018         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
83019         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
83020         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
83021         (textdomain): Remove definition.
83022         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
83023
83024         * lib/long-options.c: Remove include of <libintl.h> and definition of
83025         _.
83026         * lib/same.c: Remove include of <libintl.h> and definition of _.
83027
83028 2002-11-04  Owen Taylor  <otaylor@redhat.com>
83029
83030         * lib/config.charset: A few additions for Solaris.
83031
83032 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83033
83034         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
83035         * lib/localcharset.c (locale_charset): Declare as extern "C".
83036
83037 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83038
83039         * lib/config.charset: msdos in uk_UA uses CP1125.
83040
83041 2002-11-04  Bruno Haible  <bruno@clisp.org>
83042
83043         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
83044         * lib/strcase.h: New file, from GNU gettext-0.11.5.
83045         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
83046         * lib/strstr.h: New file, from GNU gettext-0.11.5.
83047         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
83048
83049 2002-11-04  Bruno Haible  <bruno@clisp.org>
83050
83051         * lib/localcharset.c (locale_charset): Don't return an empty string.
83052
83053 2002-11-04  Bruno Haible  <bruno@clisp.org>
83054
83055         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
83056         aliases.
83057
83058 2002-11-04  Bruno Haible  <bruno@clisp.org>
83059
83060         * lib/config.charset: Update for newest glibc. Add canonical names
83061         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
83062
83063 2002-11-04  Bruno Haible  <bruno@clisp.org>
83064
83065         * lib/config.charset: Add support for NetBSD.
83066
83067 2002-11-04  Bruno Haible  <bruno@clisp.org>
83068
83069         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
83070
83071 2002-11-01  Bruno Haible  <bruno@clisp.org>
83072
83073         * configure.in: Add AC_CONFIG_AUX_DIR call.
83074         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
83075         test/Makefile.
83076         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
83077
83078 2002-09-28  Karl Berry  <karl@gnu.org>
83079
83080         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
83081         installed automake until the next release, since changes have been
83082         made.
83083
83084 2002-09-25  Karl Berry  <karl@gnu.org>
83085
83086         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
83087         * lib/getopt*: copy from libc/posix.
83088         * lib/gettext.h: copy from gettext.
83089         * lib/.cppi-disable: add strdup.c, gettext.h.
83090
83091 2002-09-25  Karl Berry  <karl@gnu.org>
83092
83093         * config/srclist.txt: enable gettext.h check.
83094         * config/config.{guess,sub}: update from prep.
83095         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
83096                 from automake 1.6.3.
83097         See srclist*.
83098
83099 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
83100
83101         * regex.c (PATFETCH): Remove the translating fetch.
83102         (PATFETCH_RAW): Rename to PATFETCH.
83103         (set_image_of_range): New fun.
83104         (SET_RANGE_TABLE_WORK_AREA): Use it.
83105         (regex_compile): Don't translate the pattern chars so eagerly.
83106         Only do it when inserting an `exactn' bytecode or when handling
83107         a char-range.
83108         (mutually_exclusive_p): Avoid empty statement.
83109
83110 2002-07-06  Jim Meyering  <meyering@lucent.com>
83111
83112         * m4/README: Don't mention Makefile.am.in.
83113         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
83114
83115 2002-07-01  Jim Meyering  <meyering@lucent.com>
83116
83117         * lib/c-stack.c: Include sys/time.h.
83118         From Volker Borchert.
83119
83120 2002-06-26  Paul Eggert  <eggert@twinsun.com>
83121
83122         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
83123
83124 2002-06-26  Paul Eggert  <eggert@twinsun.com>
83125
83126         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
83127         New macro.  Use it uniformly instead of
83128         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
83129         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
83130         reported by Vin Shelton.
83131
83132 2002-06-22  Paul Eggert  <eggert@twinsun.com>
83133
83134         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
83135         Do not assume SA_SIGINFO behavior.
83136         Bug reported by Jim Meyering on NetBSD 1.5.2.
83137
83138 2002-06-22  Jim Meyering  <meyering@lucent.com>
83139
83140         * m4/c-stack.m4: New file, from diffutils-2.8.2.
83141         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
83142
83143         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
83144         now that configure.ac uses AC_GNU_SOURCE.
83145         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
83146         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
83147
83148         Update to latest tools.  Suggestions from Paul Eggert.
83149         * m4/stdbool.m4: New file, from diffutils-2.8.2.
83150         * m4/gnu-source.m4: Update from diffutils-2.8.2.
83151         * m4/fnmatch.m4: Likewise.
83152         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
83153         to AC_HEADER_STDBOOL
83154
83155 2002-06-22  Jim Meyering  <meyering@lucent.com>
83156
83157         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
83158         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
83159
83160 2002-06-22  Jim Meyering  <meyering@lucent.com>
83161
83162         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
83163
83164         * lib/exitfail.c, exitfail.h: Likewise.
83165         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
83166
83167         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
83168         of fnmatch.h.
83169         (EXTRA_DIST): Add fnmatch_loop.c.
83170         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
83171
83172         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
83173         * lib/fnmatch.c: Update from diffutils-2.8.2.
83174         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
83175         * lib/fnmatch.h: Remove file.
83176
83177 2002-06-21  Jim Meyering  <meyering@lucent.com>
83178
83179         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
83180         * m4/mbrtowc.m4: Likewise.
83181
83182         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
83183         * m4/mbswidth.m4: Reflect name change:
83184         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
83185         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83186
83187         * m4/lib-link.m4: Update from gettext-0.11.2.
83188         * m4/gettext.m4: Likewise.
83189
83190         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
83191         From Alfred M. Szmidt.
83192
83193 2002-06-18  Paul Eggert  <eggert@twinsun.com>
83194
83195         * lib/file-type.h: Report an error if neither S_ISREG nor
83196         S_IFREG is defined, instead of using a test specific to glibc
83197         2.2.  This should be safe, since POSIX requires S_ISREG and
83198         Unix Version 7 had S_IFREG.  We don't need to check for
83199         <sys/types.h> since we don't use any symbols that it defines.
83200
83201 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
83202
83203         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
83204         $@-t, so that each temporary file name is unique and valid in the first
83205         8 characters, for operation under DOS.
83206
83207 2002-06-15  Paul Eggert  <eggert@twinsun.com>
83208
83209         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
83210
83211 2002-06-15  Jim Meyering  <meyering@lucent.com>
83212
83213         Work even with DJGPP 2.03, which lacks support for symlinks.
83214         From Richard Dawe.
83215         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
83216         is defined.
83217         * lib/lchown.c (S_ISLNK): Likewise.
83218
83219 2002-06-15  Jim Meyering  <meyering@lucent.com>
83220
83221         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
83222         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
83223         have been included before this file.
83224
83225 2002-06-14  Jim Meyering  <meyering@lucent.com>
83226
83227         * lib/file-type.h: Use the version from diffutils-2.8.2.
83228         * lib/file-type.c: Likewise.
83229
83230 2002-06-07  Jim Meyering  <meyering@lucent.com>
83231
83232         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
83233         They're needed at least for NetBSD 1.5.2.
83234         ($statxfs_includes): Include those same headers.
83235         ($statxfs_includes): Include sys/vfs.h if available.
83236         ($statxfs_includes): Likewise for sys/statvfs.h.
83237         Check for the following members in both structs statfs and statvfs:
83238         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
83239
83240 2002-06-01  Jim Meyering  <meyering@lucent.com>
83241
83242         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
83243         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
83244
83245 2002-05-28  Jim Meyering  <meyering@lucent.com>
83246
83247         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
83248         Reported by Volker Borchert.
83249
83250 2002-05-27  Jim Meyering  <meyering@lucent.com>
83251
83252         Fix a problem seen only on nonconforming systems whereby ls.c's
83253         use of localtime, and then of gettimeofday would cause trouble:
83254         the localtime call used to initialize rpl_gettimeofday's save
83255         mechanism would clobber ls's current local time information so
83256         that in any long listing the first file would always be listed
83257         with date 1970-01-01.  Analysis by Volker Borchert.
83258
83259         * lib/gettimeofday.c (localtime): Undefine.
83260         (rpl_localtime): New function.
83261
83262 2002-05-27  Jim Meyering  <meyering@lucent.com>
83263
83264         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
83265         localtime.
83266
83267         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
83268         use the replacement function; it wouldn't resolve at link time.
83269         Reported by Volker Borchert.
83270
83271 2002-05-22  Jim Meyering  <meyering@lucent.com>
83272
83273         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
83274         file-type.h.
83275         * lib/file-type.h: New file.
83276         * lib/file-type.c (file_type): New file/function.  Extracted from
83277         diffutils.
83278
83279 2002-04-30  Jim Meyering  <meyering@lucent.com>
83280
83281         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
83282
83283 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83284
83285         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
83286
83287 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83288
83289         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
83290         Do not check for alloca.h (no longer used) or stdbool.h (was never
83291         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
83292
83293 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83294
83295         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
83296
83297 2002-04-29  Jim Meyering  <meyering@lucent.com>
83298
83299         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
83300         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
83301         Use AC_FUNC_STRNLEN here instead.
83302
83303         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
83304         With autoconf-2.53a, it's part of AC_PROG_CC.
83305
83306 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83307
83308         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
83309         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
83310
83311 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83312
83313         * lib/sig2str.h, lib/sig2str.c: New files.
83314         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
83315
83316 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83317
83318         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
83319         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
83320         of 127, since 64 is the largest conceivable number for ancient
83321         nonstandard hosts.
83322         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
83323
83324 2002-04-28  Jim Meyering  <meyering@lucent.com>
83325
83326         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
83327
83328 2002-04-24  Jim Meyering  <meyering@lucent.com>
83329
83330         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
83331         (jm_PREREQ): Use it.
83332
83333         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
83334         mach/mach.h fcntl.h.
83335         Check for this function: setlocale.
83336
83337 2002-04-24  Jim Meyering  <meyering@lucent.com>
83338
83339         * lib/gettext.h: New file, from Gettext.
83340         * lib/Makefile.am (INCLUDES): Remove -I../intl.
83341         (libfetish_a_SOURCES): Add gettext.h.
83342
83343 2002-04-16  Jim Meyering  <meyering@lucent.com>
83344
83345         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
83346         ut_pid, ut_id, ut_exit.
83347
83348 2002-04-16  Jim Meyering  <meyering@lucent.com>
83349
83350         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
83351         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
83352         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
83353
83354 2002-04-12  Jim Meyering  <meyering@lucent.com>
83355
83356         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
83357         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
83358         existence of the getmntinfo function.  Needed for Darwin 5.3.
83359
83360         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
83361         This is necessary at least on Darwin 5.3.
83362
83363         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
83364         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
83365         strnlen.o in the library, and that makes some versions of ranlib
83366         object.
83367
83368 2002-04-12  Jim Meyering  <meyering@lucent.com>
83369
83370         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
83371
83372 2002-04-09  Jim Meyering  <meyering@lucent.com>
83373
83374         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
83375         to be more precise.  Rather than saying we're checking whether the
83376         function `works', say what we're testing.
83377         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
83378         Reported by Bruno Haible.
83379
83380 2002-03-10  Jim Meyering  <meyering@lucent.com>
83381
83382         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
83383         Suggestion from Santiago Vila.
83384
83385 2002-03-08  Jim Meyering  <meyering@lucent.com>
83386
83387         * lib/rename.c: Mention that this wrapper is needed also on
83388         mips-dec-ultrix4.4 systems.
83389
83390 2002-03-02  Jim Meyering  <meyering@lucent.com>
83391
83392         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
83393         not HAVE_CLOCK_SETTIME.
83394
83395 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83396
83397         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
83398         Check for clock_settime.
83399
83400 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83401
83402         * lib/nanosleep.h: Rename to....
83403         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
83404
83405         * lib/gettime.c: New file.
83406         * lib/settime.c: New file.
83407         * lib/stime.c: Remove.
83408
83409         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
83410         timespec.h.  Remove nanosleep.h.
83411
83412 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83413
83414         * m4/acl.m4: New file.
83415         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
83416         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
83417
83418 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83419
83420         * lib/acl.c, lib/acl.h: New files.
83421         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
83422
83423 2002-02-24  Jim Meyering  <meyering@lucent.com>
83424
83425         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
83426         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
83427         cause trouble.  Reported by Nelson Beebe.
83428
83429 2002-02-23  Paul Eggert  <eggert@twinsun.com>
83430
83431         * lib/path-concat.c (xpath_concat): Reorder code to pacify
83432         compilers that don't know that xalloc_die never returns.
83433
83434 2002-02-20  Jim Meyering  <meyering@lucent.com>
83435
83436         * lib/getdate.c: Regenerate using bison-1.33.
83437
83438 2002-02-17  Jim Meyering  <meyering@lucent.com>
83439
83440         * config/config.guess (main): Don't use `head -1'; it's no longer
83441         portable. Use `sed 1q' instead.
83442
83443 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
83444
83445         * m4/codeset.m4: Upgrade to gettext-0.11.
83446         * m4/gettext.m4: Upgrade to gettext-0.11.
83447         * m4/glibc21.m4: Upgrade to gettext-0.11.
83448         * m4/iconv.m4: Upgrade to gettext-0.11.
83449         * m4/isc-posix.m4: Upgrade to gettext-0.11.
83450         * m4/lcmessage.m4: Upgrade to gettext-0.11.
83451         * m4/lib-ld.m4: New file, from gettext-0.11.
83452         * m4/lib-link.m4: New file, from gettext-0.11.
83453         * m4/lib-prefix.m4: New file, from gettext-0.11.
83454         * m4/progtest.m4: Upgrade to gettext-0.11.
83455
83456 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83457
83458         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
83459         (jm_PREREQ): Use it.
83460
83461 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83462
83463         * lib/posixver.c, lib/posixver.h: New files.
83464         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83465
83466 2002-02-02  Paul Eggert  <eggert@twinsun.com>
83467             Bruno Haible  <bruno@clisp.org>
83468
83469         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
83470         (fwrite_success_callback): New declaration.
83471         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
83472         print_unicode_char. Call failure callback instead of error.
83473         (fwrite_success_callback): New function.
83474         (exit_failure_callback): New function.
83475         (fallback_failure_callback): New function.
83476         (print_unicode_char): Call unicode_to_mb.
83477
83478 2002-01-26  Jim Meyering  <meyering@lucent.com>
83479
83480         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
83481         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
83482
83483 2002-01-26  Jim Meyering  <meyering@lucent.com>
83484
83485         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
83486
83487 2002-01-22  Paul Eggert  <eggert@twinsun.com>
83488
83489         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
83490
83491 2002-01-22  Jim Meyering  <meyering@lucent.com>
83492
83493         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
83494         Otherwise, some versions of automake would omit the rule that makes
83495         Makefile from Makefile.in.
83496
83497 2002-01-21  Paul Eggert  <eggert@twinsun.com>
83498
83499         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
83500         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83501         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
83502         (memcoll): Set errno to zero if there is no error.
83503
83504         * lib/quotearg.c (quotearg_buffer_restyled):
83505         Fix bug with quoting buffers containing NUL when backslashing escapes.
83506         This bug was exposed by the other changes in this patch.
83507         (quotearg_n_options): New arg ARGSIZE.
83508         All callers changed.
83509         (quoting_options_from_style): New function.
83510         (quotearg_n_style): Use it.
83511         (quotearg_n_style_mem): New function.
83512
83513         * lib/quotearg.h (quotearg_n_style_mem): New function.
83514
83515 2002-01-19  Jim Meyering  <meyering@lucent.com>
83516
83517         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
83518         Remove useless quotes: DF_PROG="df".
83519         * m4/strnlen.m4: New file.
83520
83521 2002-01-16  Paul Eggert  <eggert@twinsun.com>
83522
83523         * lib/backupfile.c (ISDIGIT): Comment fix.
83524         * lib/getdate.y (ISDIGIT): Likewise.
83525         * lib/posixtm.c (ISDIGIT, year): Likewise.
83526         * lib/strverscmp.c (ISDIGIT): Likewise.
83527         * lib/userspec.c (ISDIGIT): Likewise.
83528
83529 2002-01-16  Jim Meyering  <meyering@lucent.com>
83530
83531         * lib/getdate.y: Add three semicolons, each just before a closing
83532         brace. Bison (as of version 1.31) no longer papers over that mistake.
83533
83534 2002-01-05  Jim Meyering  <meyering@lucent.com>
83535
83536         * lib/version-etc.c (version_etc_copyright): Update copyright year.
83537
83538 2001-12-19  Paul Eggert  <eggert@twinsun.com>
83539
83540         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
83541         not silently exit merely because the output buffer happens to
83542         have nothing pending.
83543
83544 2001-12-18  Paul Eggert  <eggert@twinsun.com>
83545
83546         See the big note in ../ChangeLog.
83547         * lib/human.c (suffixes): Prefer K to k for 1024.
83548         (generate_suffix_backwards): New function.
83549         (human_readable_inexact): Use it.
83550         * lib/xstrtol.c (__xstrtol): If there is no number but there
83551         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
83552         Accept 'K' as well as 'k'.
83553
83554 2001-12-15  Jim Meyering  <meyering@lucent.com>
83555
83556         * lib/regex.h (__restrict_arr): Update from libc.
83557
83558         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
83559         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
83560         (STREQ): Define.
83561
83562 2001-12-14  Jim Meyering  <meyering@lucent.com>
83563
83564         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
83565         Suggestion from Bruno Haible.
83566
83567 2001-12-10  Jim Meyering  <meyering@lucent.com>
83568
83569         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
83570         xrealloc, Instead, include "xalloc.h".
83571         (initbuffer): Don't cast xmalloc return value to char*.
83572         (readline): Reword comment.
83573         Don't cast xrealloc return value to char*
83574         Return NULL, not 0.
83575
83576 2001-12-09  Jim Meyering  <meyering@lucent.com>
83577
83578         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
83579         about `signed and unsigned type in conditional expression'.
83580         * lib/posixtm.c (posix_time_parse): Likewise.
83581
83582         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
83583
83584         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
83585         to avoid a pedantic warning.
83586
83587         * lib/getstr.c: Don't include assert.h.
83588         (getstr): Remove warning-evoking assertions.
83589         Return -1 if offset parameter is out of bounds.
83590         Change the type of a local from int to size_t.
83591
83592         * lib/strftime.c (my_strftime_localtime_r): Include this function
83593         definition in the `#if ! HAVE_TM_GMTOFF' block.
83594
83595         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
83596         Include xalloc.h instead.
83597
83598 2001-12-02  Jim Meyering  <meyering@lucent.com>
83599
83600         * lib/tempname.c: Don't declare getenv, thus reverting the change of
83601         2001-11-18.  It's no longer necessary, now that stdlib.h is always
83602         included.
83603
83604         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
83605         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
83606
83607 2001-11-30  Akim Demaille  <akim@epita.fr>
83608
83609         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
83610         before being defined.
83611
83612 2001-11-27  Paul Eggert  <eggert@twinsun.com>
83613
83614         * lib/quotearg.h (quotearg_n, quotearg_n_style):
83615         First arg is int, not unsigned.
83616         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
83617         (SIZE_MAX, UINT_MAX): New macros.
83618         (quotearg_n_options): Abort if N is negative.
83619         Avoid overflow check on hosts where size_t is 64 bits and int
83620         is 32 bits, as overflow is impossible there.
83621         Fix off-by-one typo that caused unnecessary reallocation.
83622
83623 2001-11-27  Jim Meyering  <meyering@lucent.com>
83624
83625         * lib/tempname.c: Merge with version from libc.
83626         * lib/regex.c: Likewise.
83627
83628         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
83629         systems for which STDC_HEADERS is 0, it was not included, resulting in
83630         a warning about an integer-to-pointer conversion problem with getenv.
83631         Reported by Volker Borchert.
83632
83633 2001-11-26  Jim Meyering  <meyering@lucent.com>
83634
83635         * lib/gtod.h: Remove file.
83636         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
83637         * lib/gettimeofday.c: Don't include gtod.h.
83638         (GTOD_init): Remove function.
83639         (rpl_gettimeofday): Do its job here instead, rather than aborting.
83640         Suggestion from Volker Borchert.
83641
83642 2001-11-23  Jim Meyering  <meyering@lucent.com>
83643
83644         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
83645         it.
83646         * lib/hash.c (struct hash_table): Define it here instead.
83647
83648 2001-11-22  Jim Meyering  <meyering@lucent.com>
83649
83650         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
83651
83652 2001-11-20  Jim Meyering  <meyering@lucent.com>
83653
83654         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
83655         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
83656
83657 2001-11-19  Jim Meyering  <meyering@lucent.com>
83658
83659         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
83660         directory.  Use "conftestXXXXXX" as the template.
83661         Suggestion from Paul Eggert.
83662
83663         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
83664         immediately, so the test doesn't mistakenly hit the max-open-files
83665         limit.
83666
83667 2001-11-18  Paul Eggert  <eggert@twinsun.com>
83668
83669         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
83670         (TEMPORARIES): New macro.
83671         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
83672         removes an artificial limitation (e.g. HP-UX 10.20, where
83673         TMP_MAX is 17576).
83674
83675 2001-11-18  Jim Meyering  <meyering@lucent.com>
83676
83677         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
83678
83679 2001-11-18  Jim Meyering  <meyering@lucent.com>
83680
83681         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
83682         on SunOS 4.
83683
83684         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
83685         files will be created before anything else.
83686
83687 2001-11-17  Paul Eggert  <eggert@twinsun.com>
83688
83689         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
83690         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
83691
83692 2001-11-17  Jim Meyering  <meyering@lucent.com>
83693
83694         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
83695         Prompted by a report from Bob Proulx.
83696
83697         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
83698         Instead, require UTILS_FUNC_MKSTEMP.
83699
83700 2001-11-17  Jim Meyering  <meyering@lucent.com>
83701
83702         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
83703         Now, that's done as part of AC_FUNC_STRTOD.
83704
83705 2001-11-17  Jim Meyering  <meyering@lucent.com>
83706
83707         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
83708         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
83709         rather than group writable.  Patch by Juan F. Codagnone.
83710
83711         * lib/readtokens.c: Remove explicit declarations of xmalloc and
83712         xrealloc, Instead, include "xalloc.h".
83713
83714         * lib/mountlist.c: Include unlocked-io.h after all system headers.
83715         Remove explicit declarations of xmalloc, xrealloc,
83716         and xstrdup.  Instead, include "xalloc.h".
83717
83718         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
83719         unlocked-io.h.
83720         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
83721         Likewise.
83722         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
83723
83724         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
83725         Reported by Padraig Brady.
83726
83727         * lib/mkstemp.c: #undef mkstemp.
83728         Include config.h.
83729         (rpl_mkstemp): Rename from mkstemp.
83730         Protoize.
83731
83732 2001-11-16  Jim Meyering  <meyering@lucent.com>
83733
83734         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
83735         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
83736         determine the amount of total physical memory, use pstat_getstatic.
83737         HPUX-11 doesn't define _SC_PHYS_PAGES.
83738         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
83739         If sysconf couldn't be used to determine the amount of available
83740         physical memory, use both pstat_getstatic and pstat_getdynamic.
83741         Based on a patch from Bob Proulx.
83742
83743 2001-11-10  Jim Meyering  <meyering@lucent.com>
83744
83745         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
83746         (jm_PREREQ): Use it.
83747
83748 2001-11-09  Jim Meyering  <meyering@lucent.com>
83749
83750         * m4/jm-macros.m4: Require autoconf-2.52f.
83751         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
83752         Use these AC_-prefixed names, not the AM_-prefixed ones.
83753
83754         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
83755
83756 2001-11-05  Jim Meyering  <meyering@lucent.com>
83757
83758         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
83759
83760 2001-11-04  Jim Meyering  <meyering@lucent.com>
83761
83762         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
83763         $DEFS.
83764
83765 2001-11-03  Jim Meyering  <meyering@lucent.com>
83766
83767         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
83768         of AC_DEFUN.
83769
83770         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
83771         know the name of the variable in the macro definition.
83772
83773 2001-11-03  Jim Meyering  <meyering@lucent.com>
83774
83775         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
83776         in argmatch_to_argument call.
83777
83778         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
83779         argument.
83780
83781         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
83782         e.g., a fault due to an attempt to free a NULL pointer.
83783
83784 2001-11-01  Jim Meyering  <meyering@lucent.com>
83785
83786         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
83787         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
83788
83789 2001-11-01  Jim Meyering  <meyering@lucent.com>
83790
83791         * lib/dirfd.c, lib/dirfd.h: New files.
83792         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
83793
83794         * lib/hash.c (hash_print) [TESTING]: Clean up.
83795
83796 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83797
83798         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83799         to avoid a warning if -Wall.
83800
83801 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83802
83803         * README: New file
83804         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83805         (per RMS's instructions, this is now the canonical source)
83806         * lgpl/, gpl/: New directories.
83807
83808 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83809
83810         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83811
83812 2001-10-21  Jim Meyering  <meyering@lucent.com>
83813
83814         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83815         this code would end up calling gettext even in packages built
83816         with --disable-nls.
83817         * lib/getopt.c (_): Likewise.
83818         * lib/regex.c (_): Likewise.
83819
83820 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83821
83822         * m4/error.m4 (jm_PREREQ_ERROR):
83823         Do not invoke AC_CHECK_FUNCS with strerror_r, as
83824         AC_FUNC_STRERROR_R does that.
83825         Check for strerror declaration.
83826
83827         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
83828         are supposed to have them these days.
83829         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
83830         Merge changes from latest Autoconf CVS.
83831         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
83832         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
83833         POSIX decided to standardize on the int flavor of strerror_r.
83834
83835 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83836
83837         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
83838         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
83839         Use strerror_r that is only a macro, even if it is not a function.
83840         (strerror): Check for HAVE_DECL_STRERROR before declaring.
83841         (private_strerror): Use prototypes, not old-style function definition.
83842         (print_errno_message): New function.
83843         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
83844         char*-flavored one.
83845         (error_tail, error, error_at_line): Use it.
83846
83847 2001-10-11  Jim Meyering  <meyering@lucent.com>
83848
83849         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
83850         and quote_n (1, ... to avoid clobbering a buffer.
83851
83852 2001-10-05  Jim Meyering  <meyering@lucent.com>
83853
83854         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
83855         hash-pjw.h.
83856         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
83857         * lib/hash-pjw.h: New file.
83858
83859 2001-09-30  Jim Meyering  <meyering@lucent.com>
83860
83861         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
83862         `struct fsstat' has the `f_fstypename' member.
83863         Use that to define FS_TYPE, which is now used to make
83864         the getfsstat link test tighter.
83865
83866 2001-09-30  Jim Meyering  <meyering@lucent.com>
83867
83868         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
83869         Include <sys/ucred.h>, for Apple Darwin.
83870         Include sys/mount.h and sys/fs_types.h only if available.
83871         (FS_TYPE): Define.
83872         (read_filesystem_list): Use FS_TYPE.
83873
83874 2001-09-29  Paul Eggert  <eggert@twinsun.com>
83875
83876         * lib/exclude.c (excluded_filename): 0 -> false, since it's
83877         a boolean context.
83878
83879 2001-09-29  Jim Meyering  <meyering@lucent.com>
83880
83881         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83882         [one-argument getmntent function]): Include stdio.h before mntent.h.
83883         SunOS 4.1.x needs it for the declaration of `FILE'.
83884         Patch by Volker Borchert.
83885
83886         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83887         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83888         sys/fs_types.h, and make the link-test for getfsstat guard #include
83889         directives with appropriate #if HAVE_*_H tests so that we can
83890         detect getfsstat on Apple Darwin1.3.7 systems.
83891         Reported by Nelson Beebe.
83892         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83893
83894 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83895
83896         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83897         #defines strtoimax.  Also treat the other strto* functions
83898         like strtoimax.
83899
83900         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83901         Check for strtoul and strtoumax,
83902         as those declarations are made even in the signed case.
83903         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83904         Likewise, for strtol and strtoimax.
83905
83906 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83907
83908         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83909         #defines strtoimax.  Also treat the other strto* functions
83910         like strtoimax.
83911
83912         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83913         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83914         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83915
83916 2001-09-26  Jim Meyering  <meyering@lucent.com>
83917
83918         Most macros in unlocked-io.h had the wrong number of arguments.
83919         * lib/gen-uio: New script.
83920         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83921         * lib/unlocked-io.hin: Remove file.
83922         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83923         rather than trying to embed it here.
83924         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83925         Reported by Padraig Brady.
83926
83927 2001-09-25  Volker Borchert  <bt@teknon.de>
83928
83929         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83930         `result'.
83931
83932 2001-09-24  Jim Meyering  <meyering@lucent.com>
83933
83934         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83935
83936 2001-09-23  Jim Meyering  <meyering@lucent.com>
83937
83938         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83939         instead of the mere test for existence of mntent.h.  The latter
83940         would get a false-positive on AIX 3.4 systems.
83941         In the outer getmntent if-block, don't die if neither of the getmntent
83942         tests succeeds.  Instead, just fall through and continue with the
83943         remaining tests.
83944
83945 2001-09-23  Jim Meyering  <meyering@lucent.com>
83946
83947         * lib/mountlist.c: Remove useless parentheses in #if directives.
83948         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83949         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83950
83951 2001-09-22  Jim Meyering  <meyering@lucent.com>
83952
83953         * m4/gettext.m4: New file.  From gettext.
83954         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83955         * m4/progtest.m4: Likewise
83956         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83957         * m4/glibc21.m4: Likewise.
83958
83959         * m4/libintl.m4: Remove.  No longer used.
83960
83961 2001-09-22  Jim Meyering  <meyering@lucent.com>
83962
83963         * lib/localcharset.c: Update from latest gettext.
83964         * lib/config.charset: Likewise.
83965
83966 2001-09-20  Jim Meyering  <meyering@lucent.com>
83967
83968         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83969         strtoimax.
83970         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83971         strtoumax.
83972
83973 2001-09-20  Jim Meyering  <meyering@lucent.com>
83974
83975         * lib/xstrtol.c (strtoimax): Guard declaration with
83976         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83977         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83978         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83979         (strtoumax): Likewise, for completeness (it wasn't necessary).
83980
83981 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83982
83983         * lib/strtoimax.c (HAVE_LONG_LONG):
83984         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83985         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83986         to work around bug in IBM C compiler.
83987
83988 2001-09-17  Jim Meyering  <meyering@lucent.com>
83989
83990         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83991         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83992         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83993         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83994         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83995         whenever the right hand side need not be expanded by the shell.
83996
83997 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83998
83999         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
84000         library.  It's not correct, as some older glibcs are buggy.
84001         fnmatch wasn't fixed until glibc 2.2.
84002
84003         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
84004         special shell magic here.
84005
84006 2001-09-16  Jim Meyering  <meyering@lucent.com>
84007
84008         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
84009         * m4/jm-macros.m4: Require it.
84010
84011 2001-09-16  Jim Meyering  <meyering@lucent.com>
84012
84013         * lib/mkdir.c: New file.
84014
84015 2001-09-15  Jim Meyering  <meyering@lucent.com>
84016
84017         * m4/jm-macros.m4: Check for help2man.
84018
84019 2001-09-11  Jim Meyering  <meyering@lucent.com>
84020
84021         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
84022         The body, by Paul Eggert, was moved here from configure.in.
84023         * m4/jm-macros.m4: Require UTILS_HOST_OS.
84024
84025 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84026
84027         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
84028         (jm_PREREQ): Use it.
84029
84030 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84031
84032         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
84033         Use ssize_t, not int, to store result of readlink.
84034         Check for ssize_t overflow as well as size_t overflow,
84035         as POSIX says the result of readlink is implementation-defined
84036         when ssize_t overflows.
84037         Remove unnecessary cast to char*.
84038         Use free+malloc instead of realloc, as the storage doesn't need
84039         to be preserved and it's clearer and can be more efficient that way.
84040         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
84041         * lib/xreadlink.h (xreadlink): Update prototype.
84042
84043 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84044
84045         * lib/xgetcwd.c: Revert some of the previous change; intead,
84046         fix the HAVE_GETCWD_NULL code to behave more like the
84047         !HAVE_GETCWD_NULL code used to.
84048
84049         Include "xalloc.h".
84050         (xgetcwd): Do not return NULL when memory is exhausted; instead,
84051         invoke xalloc_die.
84052
84053 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84054
84055         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
84056         sys/param.h, as pathmax.h includes them.
84057
84058 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84059
84060         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
84061         (jm_PREREQ_XGETCWD): New macro.
84062
84063         * m4/getcwd.m4: New file.
84064
84065 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84066
84067         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
84068         like the HAVE_GETCWD_NULL code.
84069         Include pathmax.h if not HAVE_GETCWD.
84070         Do not include xalloc.h.
84071         (INITIAL_BUFFER_SIZE): New symbol.
84072         Do not use xmalloc / xrealloc, since the caller is responsible for
84073         handling errors.  Preserve errno around `free' during failure.
84074         Do not overrun buffer when using getwd.
84075
84076 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84077
84078         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
84079         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
84080         getcwd (NULL, 0).
84081
84082 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84083
84084         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
84085         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
84086         spotted by Jim Meyering.
84087
84088 2001-09-03  Jim Meyering  <meyering@lucent.com>
84089
84090         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
84091         failure.
84092
84093 2001-09-02  Jim Meyering  <meyering@lucent.com>
84094
84095         * lib/error.c: Update from GNU libc.
84096
84097 2001-09-01  Jim Meyering  <meyering@lucent.com>
84098
84099         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
84100         Used by df.
84101
84102 2001-09-01  Jim Meyering  <meyering@lucent.com>
84103
84104         * lib/xreadlink.c: New file.
84105         * lib/xreadlink.h: New file.
84106         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
84107         xreadlink.h.
84108
84109         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
84110         doesn't conflict with sparc Solaris 7's definition in
84111         /usr/include/sys/int_types.h.
84112
84113         * lib/exclude.c: Use `""', not `<>' to #include non-system header
84114         files.
84115         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
84116         and strncasecmp as r-values.  Unixware didn't have declarations.
84117
84118 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84119
84120         * lib/xstrtol.h: Add copyright notice.
84121         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
84122         LONGINT_INVALID_SUFFIX_CHAR.
84123
84124 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84125
84126         * lib/xstrtol.c (strtoimax): New decl.
84127
84128 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84129
84130         * lib/xgetcwd.c: Don't include pathmax.h.
84131         Include stdlib.h and unistd.h if available.
84132         Include xalloc.h.
84133         (xmalloc, xstrdup, free): Remove decls.
84134         (xgetcwd): Don't assume sizes fit in unsigned.
84135         Check for overflow when computing sizes.
84136         Simplify reallocation code.
84137
84138 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84139
84140         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
84141         a directory's st_size can have an arbitrary value, so the old
84142         usage could waste an arbitrary amount of memory.  All uses
84143         changed.
84144         * lib/savedir.h: Update prototype.
84145
84146 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84147
84148         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
84149
84150         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
84151         old strtoimax.c.
84152
84153         Also, make the following further changes to make this file's
84154         configuration more similar to that of strtol.c:
84155         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
84156         (strtoumax, uintmax_t, strtoull, strtol): Remove.
84157         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
84158         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
84159         changed to signed values.
84160
84161         And make the following changes as well:
84162         Fix copyright notice, as 1999 was missing.
84163         (verify): New macro.
84164         (strtoimax): Check sizes at compile-time, not run-time.
84165         Prefer strtol to strtoll if both work.
84166         (main): Remove; it was not that useful and was a pain to maintain.
84167
84168         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
84169
84170 2001-08-31  Jim Meyering  <meyering@lucent.com>
84171
84172         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
84173         Use an initial, malloc'd, buffer of length 128 rather than
84174         a statically allocated one of length 1024.
84175
84176 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84177
84178         Simplify code, partly by assuming autoconf 2.52 semantics.
84179
84180         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
84181
84182         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
84183         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
84184         All uses removed.
84185         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
84186         Move AC_REQUIRE to next-to-top level, to avoid confusion.
84187         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
84188         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
84189         jm_AC_HEADER_INTTYPES_H.
84190         * m4/jm-macros.m4 (jm_MACROS): Likewise.
84191
84192         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
84193
84194         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84195         Quote first arg of AC_DEFUN.
84196         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
84197         since they are needed to parse the include file even if we need
84198         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
84199         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
84200         but with opposite signedness.
84201
84202 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84203
84204         Merge 'exclude' changes from tar 1.13.22.
84205         This fixes one or two unlikely storage allocation overflow bugs,
84206         but doesn't change user-visible behavior otherwise.
84207
84208 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84209
84210         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
84211         (jm_PREREQ_EXCLUDE): New macro.
84212
84213 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84214
84215         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
84216         tm to be declared.
84217
84218 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84219
84220         * lib/hash.c: Remove '2001' from copyright notice.
84221
84222 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84223
84224         * lib/full-write.h: New file.
84225         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
84226         * lib/full-write.c: Correct credits, as cccp.c no longer
84227         exists and anyway it was so heavily changed from the old cccp
84228         code as to be unrecognizable.  Include full-write.h.
84229         (full_write): Return size_t, with short writes meaning failure.
84230         All callers changed.  This fixes a bug with large buffers
84231         on 64-bit hosts.
84232         * lib/utime.c: Include full-write.h.
84233
84234 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84235
84236         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
84237         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
84238         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
84239         Include if available.
84240         (<xalloc.h>): Include
84241         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
84242         (verify): New macro.  Use it to verify that EXCLUDE macros do not
84243         collide with FNM macros.
84244         (struct patopts): New struct.
84245         (struct exclude): Use it, as exclude patterns now come with options.
84246         (new_exclude): Support above changes.
84247         (new_exclude, add_exclude_file):
84248         Initial size must now be a power of two to simplify overflow checking.
84249         (free_exclude, fnmatch_no_wildcards): New function.
84250         (excluded_filename): No longer requires options arg, as the options
84251         are determined by add_exclude.  Now returns bool, not int.
84252         (excluded_filename, add_exclude):
84253         Add support for the fancy new exclusion options.
84254         (add_exclude, add_exclude_file): Now takes int options arg.
84255         Check for arithmetic overflow when computing sizes.
84256         (add_exclude_file): xrealloc might modify errno, so don't
84257         realloc until after errno might be used.
84258
84259         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
84260         New macros.
84261         (free_exclude): New decl.
84262         (add_exclude, add_exclude_file): Now takes int options arg.
84263         (excluded_filename): No longer requires options arg, as the options
84264         are determined by add_exclude.  Now returns bool, not int.
84265
84266 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84267
84268         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
84269
84270 2001-08-27  Jim Meyering  <meyering@lucent.com>
84271
84272         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
84273
84274         * lib/version-etc.c (N_): Remove definition.
84275         Revert most of last change.
84276         Instead, simply don't mark the `Copyright...' string for translation.
84277         Based on advice from Paul Eggert.
84278
84279         * lib/strtoxmax.c: Tweak comment.
84280
84281 2001-08-26  Jim Meyering  <meyering@lucent.com>
84282
84283         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
84284
84285         * m4/xstrtoimax.m4: New file.
84286         * m4/xstrtoumax.m4: Add comments explaining why we
84287         AC_REPLACE_FUNCS(strtol).
84288
84289 2001-08-26  Jim Meyering  <meyering@lucent.com>
84290
84291         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
84292         of copyright with `%s' so translators don't get an untranslated
84293         message in 2002.
84294         (COPYRIGHT_YEAR): Define.
84295         (version_etc): Use fprintf rather than fputs.
84296         Suggestion from Ulrich Drepper.
84297
84298         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
84299
84300         * lib/strtoll.c: New file, from GNU libc.
84301         * lib/xstrtoimax.c: New file.
84302
84303         * lib/xstrtol.h: Add xstrtoimax.
84304         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
84305         * lib/strtoimax.c: New file.  Likewise, but first define
84306         STRTOUXMAX_SIGNED.
84307
84308         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
84309         ...
84310         * lib/strtoxmax.c: ... then renamed to this.
84311
84312 2001-08-18  Paul Eggert  <eggert@twinsun.com>
84313
84314         * m4/inttypes.m4: Add AC_PREREQ(2.13).
84315         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
84316         (jm_AC_TYPE_INTMAX_T): New macro.
84317         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
84318
84319         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
84320
84321         * m4/longlong.m4: Renamed from ulonglong.m4.
84322         * m4/inttypes.m4: Renamed from inttypes_h.m4.
84323         * m4/uintmax_t.m4: Removed.
84324
84325 2001-08-13  Paul Eggert  <eggert@twinsun.com>
84326
84327         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
84328         Port to Solaris 8, where 'sed' requires a space after the 'r'
84329         command, and where sh dislikes "$/".  Clean up the spacing a bit.
84330         Redirect output to $tmp just once.
84331
84332 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
84333
84334         * lib/addext.c (<errno.h>): Include.
84335         (errno): Declare if not defined.
84336         (addext): Work correctly when pathconf returns -1 and leaves
84337         errno alone because there is no limit.  Also, work even if
84338         pathconf returns a value greater than SIZE_MAX.
84339
84340 2001-08-12  Jim Meyering  <meyering@lucent.com>
84341
84342         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
84343         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
84344         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
84345         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
84346         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
84347         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
84348         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
84349         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
84350         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
84351         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
84352         utime.m4, utimes.m4, xstrtoumax.m4:
84353         Quote the first argument in each use of AC_DEFUN.
84354
84355 2001-08-12  Jim Meyering  <meyering@lucent.com>
84356
84357         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
84358         Simply `return getcwd (NULL, 0);'.
84359         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
84360         Use 1300 as initial value for length, not PATH_MAX.
84361
84362         * lib/pathmax.h: Clean up cpp syntax.
84363
84364 2001-08-12  Jim Meyering  <meyering@lucent.com>
84365
84366         * lib/gettimeofday.c: New file.
84367         * lib/gtod.h: New file.
84368         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
84369
84370 2001-08-05  Jim Meyering  <meyering@lucent.com>
84371
84372         * m4/jm-macros.m4: Require autoconf-2.52.
84373
84374 2001-08-04  Jim Meyering  <meyering@lucent.com>
84375
84376         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
84377         stmt, to get in sync with glibc.
84378
84379 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84380
84381         The following changes are from gettext 0.10.39 as maintained by
84382         Bruno Haible.
84383
84384         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
84385         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
84386         with inverted sense.  All uses changed.
84387
84388         * lib/mbswidth.c: Don't include <limits.h>.
84389         Include <stdlib.h> and <string.h> unconditionally.
84390         (iswcntrl, mbsinit, ISCNTRL): New macros.
84391         (mbsnwidth): Use K&R style function declarations.
84392         Don't bother checking for MB_LEN_MAX == 1, since the compiler
84393         can optimize it when MB_CUR_MAX == 1.
84394         The width of control characters is zero, not 1.
84395
84396 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84397
84398         The following changes are from gettext 0.10.39 as maintained by
84399         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
84400
84401         * m4/codeset.m4: Upgrade to serial AM1.
84402         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
84403         all uses changed.  Quote first arg of AC_DEFUN.
84404         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
84405
84406         * m4/iconv.m4: Upgrade to serial AM2.
84407         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
84408         Add --with-libconv-prefix.
84409         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
84410         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
84411         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
84412         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
84413         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
84414
84415         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
84416         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
84417         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
84418         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
84419         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
84420         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
84421         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84422         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
84423         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
84424
84425         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
84426         string.h any more.
84427
84428         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
84429         not the default value.
84430
84431         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
84432         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
84433         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
84434         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
84435         Also check for iswcntrl, used for wcwidth fallback.
84436         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
84437         to Autoconf 2.13.
84438
84439 2001-08-03  Jim Meyering  <meyering@lucent.com>
84440
84441         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
84442         as it was in the original.  Reported by Paul Eggert.
84443
84444 2001-07-16  Jim Meyering  <meyering@lucent.com>
84445
84446         * m4/gettimeofday.m4: New file.
84447         Prompted by a report from Bernhard Baehr.
84448
84449 2001-07-15  Jim Meyering  <meyering@lucent.com>
84450
84451         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
84452         stuff. Now it's in ../Makefile.cfg.
84453
84454 2001-07-15  Jim Meyering  <meyering@lucent.com>
84455
84456         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
84457         (BUILT_SOURCES): Add unlocked-io.h.
84458         (io_functions): Define.
84459         (unlocked-io.h): New rule.
84460         (DISTCLEANFILES): Add unlocked-io.h.
84461         (all-local): Depend on unlocked-io.h, to ensure it is created.
84462
84463         * lib/unlocked-io.hin: New file
84464
84465         * lib/regex.c: Update from glibc.
84466
84467 2001-07-05  Jim Meyering  <meyering@lucent.com>
84468
84469         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
84470         recommendation.
84471         (libfetish_a_SOURCES): Put all .h files here instead.
84472         Remove a thus-exposed (better checks in automake) duplicate and
84473         two unnecessary .h files.
84474
84475 2001-07-04  Jim Meyering  <meyering@lucent.com>
84476
84477         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
84478         that generates jm-glibc-io.m4 so that it doesn't trigger any make
84479         distcheck failure.
84480
84481 2001-07-02  Jim Meyering  <meyering@lucent.com>
84482
84483         The following changes were prompted by suggestions from Bruno Haible.
84484
84485         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
84486         is now generated.
84487         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
84488         definition of EXTRA_DIST.
84489         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
84490         ensure that the generated file is created/updated whenever the list
84491         of $(unlocked_functions) is changed.
84492         (jm-glibc-io.m4): New rule.
84493         (unlocked-io.h): New rule -- currently unused.
84494
84495 2001-06-24  Jim Meyering  <meyering@lucent.com>
84496
84497         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
84498         unmatched right bracket, rather than kludging it with an extra,
84499         falsely-matching quote in a comment.  Patch by Akim Demaille.
84500
84501 2001-06-11  Jim Meyering  <meyering@lucent.com>
84502
84503         * lib/regex.c: Update from GNU libc.
84504
84505 2001-05-27  Jim Meyering  <meyering@lucent.com>
84506
84507         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
84508         Check for ut_type in struct utmp.
84509
84510 2001-05-27  Jim Meyering  <meyering@lucent.com>
84511
84512         * lib/readutmp.h (UT_TYPE): Define.
84513
84514 2001-05-24  Jim Meyering  <meyering@lucent.com>
84515
84516         * lib/argmatch.c: Include "quote.h".
84517         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
84518         quote function.  Reported by Göran Uddeborg.
84519
84520 2001-05-22  Jim Meyering  <meyering@lucent.com>
84521
84522         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
84523         now that we use the package-supplied version unconditionally.
84524         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
84525
84526 2001-05-21  Jim Meyering  <meyering@lucent.com>
84527
84528         * m4/regex.m4: Change a couple backticks to single quotes to avoid
84529         shell syntax errors.
84530
84531 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84532
84533         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
84534
84535 2001-05-20  Paul Eggert  <eggert@twinsun.com>
84536
84537         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
84538         Don't bother to check library strftime, since
84539         we'll be using our own my_strftime function anyway.
84540         Define my_strftime instead of strftime.
84541
84542 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
84543
84544         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
84545         which is not yet declared.
84546
84547 2001-05-15  Jim Meyering  <meyering@lucent.com>
84548
84549         * m4/regex.m4: Use proper quoting so brackets appear in the test
84550         program.
84551         Reported by, and with help from, Bruno Haible.
84552
84553 2001-05-13  Jim Meyering  <meyering@lucent.com>
84554
84555         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
84556         undefined.
84557
84558 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84559
84560         dirname code cleanup.  base_name now behaves more compatibly
84561         with POSIX basename when given file names that have trailing
84562         slashes, and similarly for dir_name.  Add new primitives
84563         base_len and dir_len.  Put the directory-name-related decls
84564         into dirname.h.
84565
84566         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
84567         * lib/backupfile.c (base_name): Likewise.
84568         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
84569         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
84570         * lib/makepath.c (strip_trailing_slashes): Likewise.
84571         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
84572         ISSLASH): Likewise.
84573         * lib/rename.c (strip_trailing_slashes): Likewise.
84574         * lib/same.c (base_name): Likewise.
84575         * lib/stripslash.c (ISSLASH): Likewise.
84576
84577         * lib/addext.c: Include <dirname.h> after size_t is defined.
84578         * lib/backupfile.c: Likewise.
84579
84580         * lib/addext.c (addext): Use base_len to trim redundant
84581         trailing slashes instead of doing it ourselves.
84582         But do not trim the last slash if it is not redundant.
84583
84584         * lib/backupfile.c (find_backup_file_name,
84585         max_backup_version): Use base_len instead of rolling it ourselves.
84586         Handle the case of "" and (on DOS) "C:" correctly.
84587
84588         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
84589         needed. Include <string.h>, <dirname.h>.
84590         (base_name): Allow file names ending in slashes, other than names
84591         that are all slashes.  In this case, return the basename followed
84592         by the slashes.  This is more general, and can be used in places
84593         where the original base_name purposely had an assertion failure.
84594         (base_len): New function.
84595
84596         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
84597         Do not include <assert.h>; no longer needed.
84598         Include xalloc.h.
84599         (memrchr): Remove decl.
84600         (dir_name_r): Remove.
84601         (dir_len): Renamed from dirlen.  All callers changed.
84602         Rewrite in terms of base_name, for simplicity and consistency.
84603         (dir_name): Never return NULL.  All callers changed.
84604         Do not include <stdlib.h> in test program; no longer needed.
84605         return 0; is fine for test program.
84606
84607         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
84608         New macros.
84609         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
84610
84611         * lib/path-concat.c (path_concat): Use base_len to compute
84612         base length, not strlen; this means we cannot rely on memcpy
84613         to null-terminate.
84614
84615         * lib/same.c (STREQ): Remove.
84616         (same_name): Handle the case where the basename ends in trailing '/'.
84617
84618         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
84619         a slash was stripped.  Do not strip the last slash after a
84620         file system prefix.
84621
84622 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84623
84624         * lib/Makefile.am (libfetish_a_SOURCES):
84625         Add strftime.c, since we now compile it on all hosts.
84626
84627         * lib/strftime.c (my_strftime):
84628         Define to nstrftime if emacs, but only if my_strftime is not defined.
84629         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
84630         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
84631         Add one more extra argument: a nanoseconds value.
84632         All uses changed.
84633         (ns): New macro.
84634         (my_strftime function): Add %N format.
84635         (emacs_strftimeu): Renamed from emacs_strftime,
84636         with extra ut argument.
84637
84638 2001-05-09  Paul Eggert  <eggert@twinsun.com>
84639
84640         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
84641
84642 2001-04-21  Jim Meyering  <meyering@lucent.com>
84643
84644         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
84645         doesn't interfere.
84646
84647 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84648
84649         * m4/ftruncate.m4: Check for chsize.
84650         Link with ftruncate.o unconditionally if ftruncate is missing.
84651         This was required when cross-compiling to i586-mingw32msvc.
84652
84653 2001-04-08  Jim Meyering  <meyering@lucent.com>
84654
84655         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
84656         recomputed; that's necessary when the offset spans a DST transition.
84657         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
84658
84659 2001-04-02  Jim Meyering  <meyering@lucent.com>
84660
84661         * lib/regex.h, regex.c: Update from GNU libc.
84662
84663 2001-03-24  Jim Meyering  <meyering@lucent.com>
84664
84665         * m4/jm-macros.m4: Require autoconf-2.49d.
84666
84667 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
84668
84669         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
84670
84671 2001-03-19  Paul Eggert  <eggert@twinsun.com>
84672
84673         * lib/version-etc.c (version_etc_copyright): Update to 2001.
84674
84675 2001-03-17  Jim Meyering  <meyering@lucent.com>
84676
84677         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
84678         now that the version in autoconf is equivalent.
84679         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
84680
84681         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
84682         Suggestion from Akim Demaille.
84683
84684         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
84685         (jm_PREREQ_TEMPNAME): New function.
84686
84687 2001-03-16  Paul Eggert  <eggert@twinsun.com>
84688
84689         * lib/tempname.c (uint64_t): Define to uintmax_t if
84690         not defined, and if UINT64_MAX is not defined.
84691         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
84692         Reported by John David Anglin.
84693
84694 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
84695
84696         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
84697         resolve alias if codeset is empty.
84698         * lib/config.charset (BeOS): Use wildcard syntax.
84699
84700 2001-03-13  Jim Meyering  <meyering@lucent.com>
84701
84702         * lib/path-concat.c (path_concat)
84703         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
84704         concatenating e.g., `C:' and `foo'.
84705         From Bruno Haible.
84706
84707 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84708
84709         * lib/localcharset.c (locale_charset): Don't use
84710         setlocale(LC_CTYPE,NULL). Don't return NULL.
84711         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
84712
84713 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84714
84715         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
84716         support for DOS/DJGPP.
84717
84718 2001-03-01  Paul Eggert  <eggert@twinsun.com>
84719
84720         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
84721         lacks mkstemp.  Compile our own tempname.c if we compile our own
84722         mkstemp.c, as mkstemp relies on tempname.
84723
84724 2001-03-01  Jim Meyering  <meyering@lucent.com>
84725
84726         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
84727         AH_VERBATIM really does output its argument verbatim.
84728
84729 2001-02-28  Paul Eggert  <eggert@twinsun.com>
84730
84731         * lib/Makefile.am (libfetish_a_SOURCES):
84732         Add dup-safer.c, fopen-safer.c.
84733         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
84734
84735         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
84736         * lib/unistd-safer.h: New files.
84737
84738 2001-02-25  Paul Eggert  <eggert@twinsun.com>
84739
84740         The mkstemp replacement is taken from glibc 2.2.2, with some
84741         portability fixes for use outside glibc, as follows:
84742
84743         * lib/tempname.c (struct_stat64): New macro.
84744         (direxists, __gen_tempname): Use it.
84745         This avoids a portability problem with Solaris 8.
84746
84747         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
84748         (<stddef.h>, <stdint.h>, <string.h>):
84749         Include only if STDC_HEADERS || _LIBC.
84750         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
84751         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
84752         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
84753         (__set_errno): Define this macro if <errno.h> doesn't.
84754         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
84755         Define these macros if <stdio.h> doesn't.
84756         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
84757         Define these macros if <sys/stat.h>
84758         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
84759         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
84760         __xstat64): Define if not _LIBC.
84761         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
84762         (__gen_tempname): Invoke gettimeofday only if
84763         HAVE_GETTIMEOFDAY || _LIBC;
84764         otherwise, fall back on plain "time".
84765         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
84766
84767         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
84768
84769         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
84770
84771 2001-02-18  Paul Eggert  <eggert@twinsun.com>
84772
84773         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
84774
84775 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84776
84777         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
84778         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
84779         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
84780         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84781
84782 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84783
84784         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
84785         Remove workaround macros for hosts that have mbrtowc but not
84786         mbstate_t, as we now insist on proper declarations for both
84787         before using mbrtowc.
84788
84789 2001-02-17  Jim Meyering  <meyering@lucent.com>
84790
84791         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
84792         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
84793         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
84794         UnixWare 7.1.1.
84795
84796         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84797         rather than AC_CACHE_VAL.
84798
84799 2001-02-17  Jim Meyering  <meyering@lucent.com>
84800
84801         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84802         around included file name.
84803
84804         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84805
84806         * lib/strftime.c: Update from GNU libc (the only changes were to
84807         comments).
84808
84809 2001-02-17  Jim Meyering  <meyering@lucent.com>
84810
84811         * lib/regex.c: Update from libc.
84812
84813 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84814
84815         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84816         clash.
84817
84818 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84819
84820         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
84821         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
84822         Reported by Mark Hounschell via Paul Eggert.
84823
84824 2001-02-07  Jim Meyering  <meyering@lucent.com>
84825
84826         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
84827
84828 2001-02-05  Jim Meyering  <meyering@lucent.com>
84829
84830         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
84831         it includes the patch required for `large file' support with at least
84832         HP-UX's 10.20 /bin/cc.
84833
84834 2001-02-03  Jim Meyering  <meyering@lucent.com>
84835
84836         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
84837         AS_IF, now that it works once again (mysteriously).
84838         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84839
84840 2001-01-30  Jim Meyering  <meyering@lucent.com>
84841
84842         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
84843         * m4/chown.m4: Rename conftestchown to conftest.chown.
84844         * m4/rename.m4: s/conftestdir/conftest.d1/ and
84845         s/conftestdir2/conftest.d2/.
84846         * m4/utimes.m4: s/conftestdata/conftest.data/
84847         Inspired by Pavel Roskin's change in autoconf.
84848
84849 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
84850
84851         * lib/config.charset: Update for FreeBSD 4.2.
84852
84853 2001-01-27  Jim Meyering  <meyering@lucent.com>
84854
84855         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
84856         a use of AS_IF.
84857         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84858
84859 2001-01-26  Jim Meyering  <meyering@lucent.com>
84860
84861         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
84862         quotearg.c includes it.
84863
84864 2001-01-26  Jim Meyering  <meyering@lucent.com>
84865
84866         * lib/quotearg.c: Include stddef.h.
84867         * lib/quote.c: Include stddef.h.
84868         Reported by Axel Kittenberger.
84869
84870         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
84871         line in double quotes so that it evokes a better diagnostic.
84872         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
84873         Reported by Axel Kittenberger.
84874
84875 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
84876
84877         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
84878         as if it was a `charset'.
84879
84880 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84881
84882         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
84883         has const.
84884
84885 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84886
84887         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84888         to avoid a warning.  Add back 'const' to inptr.
84889
84890 2001-01-20  Jim Meyering  <meyering@lucent.com>
84891
84892         Be sure that headers are checked before used in code compiled
84893         for the type checks.
84894         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84895         In place of that, invoke jm_CHECK_ALL_TYPES.
84896         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84897         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84898         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84899         The check for ssize_t was mistakenly run before the test for unistd.h.
84900
84901         The configure-time check for stdbool.h was missing.
84902         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84903         (jm_PREREQ_HASH): New function.
84904
84905 2001-01-17  Jim Meyering  <meyering@lucent.com>
84906
84907         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84908         for autoconf-2.49c.
84909         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84910
84911 2001-01-16  Jim Meyering  <meyering@lucent.com>
84912
84913         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84914         From Bruno Haible.
84915
84916 2001-01-14  Jim Meyering  <meyering@lucent.com>
84917
84918         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84919         foo and bar.  Create conftestdir/ in the script, not in the C code.
84920         Remove directories in the script, not in the C code.
84921         Remove conftestdir{,2} before trying to create the directory.
84922         Make the entire configure script fail if the mkdir fails.
84923
84924 2001-01-14  Jim Meyering  <meyering@lucent.com>
84925
84926         * lib/rename.c: New file.  From Volker Borchert.
84927         Include stdlib.h, string.h or strings.h, and xalloc.h.
84928         Use strip_trailing_slashes rather than open-coding it.
84929
84930 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84931
84932         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84933
84934 2001-01-03  Jim Meyering  <meyering@lucent.com>
84935
84936         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84937         of local `inptr' to avoid warning with some system declarations of
84938         iconv.
84939
84940 2001-01-02  Volker Borchert  <bt@teknon.de>
84941
84942         * m4/rename.m4: New file.
84943         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84944
84945 2001-01-01  Jim Meyering  <meyering@lucent.com>
84946
84947         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84948         even on systems with utmpx.h.  It's necessary for the declaration of
84949         utmp's ut_user member.  Reported by Andreas Jaeger.
84950
84951         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84952         available. They are required for the declarations of getgrgid and
84953         getpwuid resp.
84954         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84955         Reported by Andreas Jaeger.
84956
84957 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84958
84959         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84960         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84961         so `make install' also works in VPATH builds.
84962
84963 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84964
84965         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84966         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84967         can be used in subdirectories.
84968
84969 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84970
84971         * lib/modechange.c: Do not assume that mode_t uses the
84972         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84973         the other-execute bit of FOO even if S_IXOTH != 1.
84974
84975         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84976         WOTH, XOTH, ALLM): New macros.
84977         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84978          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84979         Use them.
84980         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84981         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84982         (mode_compile):
84983         No need to use uintmax_t; unsigned long is long enough.
84984         Don't bother to get suffix since we don't use it.
84985
84986 2000-12-26  Jim Meyering  <meyering@lucent.com>
84987
84988         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84989         better with autoheader.
84990
84991 2000-12-24  Jim Meyering  <meyering@lucent.com>
84992
84993         * lib/hash.c (is_prime): Return explicit boolean values.
84994         (hash_get_first): Return NULL to appease Irix5.6's 89.
84995         Reported by Nelson Beebe.
84996
84997 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84998
84999         * lib/localcharset.c (locale_charset): Add support for Win32.
85000
85001 2000-12-18  Paul Eggert  <eggert@twinsun.com>
85002
85003         * lib/physmem.h, lib/physmem.c: New files.
85004
85005         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
85006         (noinst_HEADERS): Add physmem.h.
85007
85008         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
85009         't' for compatibility with Solaris 8 sort.
85010
85011 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
85012
85013         * lib/config.charset: Add support for BeOS.
85014
85015 2000-12-17  Jim Meyering  <meyering@lucent.com>
85016
85017         * m4/dos.m4 (jm_AC_DOS): New file and macro.
85018         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
85019
85020 2000-12-16  Jim Meyering  <meyering@lucent.com>
85021
85022         This bug had a serious impact on chown: `chown N:M FILE' (for integer
85023         N and M) would have treated it like `chown N:N FILE'.
85024
85025         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
85026
85027 2000-12-16  Jim Meyering  <meyering@lucent.com>
85028
85029         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
85030         SHELLS_FILE to a file name that's useful on djgpp systems.
85031         Include stdlib.h.
85032         (ADDITIONAL_DEFAULT_SHELLS): Define.
85033         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
85034         Based mostly on a patch from Prashant TR.
85035
85036 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
85037
85038         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
85039         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
85040         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
85041
85042 2000-12-08  Andreas Schwab  <schwab@suse.de>
85043
85044         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
85045         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
85046
85047 2000-12-07  Jim Meyering  <meyering@lucent.com>
85048
85049         * lib/stripslash.c (ISSLASH): Define.
85050         (strip_trailing_slashes): Use ISSLASH rather than comparing against
85051         `/'.
85052         From Prashant TR.
85053
85054         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
85055         (dir_name_r): Declare this function as static.
85056         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
85057         manifest itself on a name containing a mix of slashes and
85058         backslashes.
85059         Make this function work with names starting with a DOS-style
85060         drive letter and colon prefix.
85061         (dir_name): Append `.' if necessary.
85062         Based mostly on patches from Prashant TR and Eli Zaretskii.
85063
85064         * lib/dirname.h (dir_name_r): Remove prototype.
85065
85066 2000-12-06  Paul Eggert  <eggert@twinsun.com>
85067
85068         * m4/off_t-format.m4: Remove this file.
85069         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
85070
85071 2000-12-06  Jim Meyering  <meyering@lucent.com>
85072
85073         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
85074         replacement strtoull, we may well need the replacement strtoul, too.
85075         Check for declarations of strtoul and strtoull.
85076         Check for strtol.  Mainly as a cue to cause automake to include
85077         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
85078         Check for limits.h -- strtol.c needs it.
85079
85080 2000-12-05  Jim Meyering  <meyering@lucent.com>
85081
85082         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
85083
85084 2000-12-04  Jim Meyering  <meyering@lucent.com>
85085
85086         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
85087         Also include memory.h, stdlib.h, unistd.h if appropriate.
85088         Reported by Andreas Jaeger (conflicting declaration of malloc).
85089
85090 2000-12-02  Jim Meyering  <meyering@lucent.com>
85091
85092         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
85093         * m4/jm-macros.m4 (jm_MACROS): require it.
85094
85095 2000-12-02  Jim Meyering  <meyering@lucent.com>
85096
85097         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
85098
85099 2000-12-01  Paul Eggert  <eggert@twinsun.com>
85100
85101         * lib/memrchr.c: Include <config.h> before any system include file.
85102
85103 2000-11-30  Jim Meyering  <meyering@lucent.com>
85104
85105         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
85106
85107 2000-11-30  Jim Meyering  <meyering@lucent.com>
85108
85109         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
85110
85111 2000-11-29  Paul Eggert  <eggert@twinsun.com>
85112
85113         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
85114
85115 2000-11-26  Jim Meyering  <meyering@lucent.com>
85116
85117         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
85118
85119 2000-11-22  Paul Eggert  <eggert@twinsun.com>
85120
85121         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
85122         size of (size_t) -1; it's not portable.
85123
85124 2000-11-17  Jim Meyering  <meyering@lucent.com>
85125
85126         * lib/strstr.c: Update from GNU libc.
85127
85128 2000-11-17  Akim Demaille  <akim@epita.fr>
85129
85130         * lib/obstack.h: Formatting changes.
85131         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
85132         prevent type checking.
85133         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
85134         cast the value to (void *): assigning a `foo *' to a `void *'
85135         variable is valid.
85136         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
85137
85138 2000-11-16  Jim Meyering  <meyering@lucent.com>
85139
85140         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
85141
85142 2000-11-11  Jim Meyering  <meyering@lucent.com>
85143
85144         * lib/error.c: Add a couple #includes, merging from GNU libc version.
85145
85146 2000-11-10  Jim Meyering  <meyering@lucent.com>
85147
85148         * lib/obstack.h: Update from GNU libc.
85149         * lib/obstack.c: Likewise.
85150
85151 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
85152
85153         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
85154
85155 2000-11-06  Paul Eggert  <eggert@twinsun.com>
85156
85157         * lib/getusershell.c (setusershell): Use rewind rather than
85158         fseek/fseeko, to avoid configuration hassles with fseeko.
85159         Don't bother opening SHELLS_FILE if shellstream is NULL;
85160         it's not necessary.
85161
85162 2000-11-05  Jim Meyering  <meyering@lucent.com>
85163
85164         * lib/makepath.h (make_dir): Declare.
85165         * lib/makepath.c (make_dir): Remove `static' attribute.
85166         Tweak a comment.
85167
85168 2000-11-04  Jim Meyering  <meyering@lucent.com>
85169
85170         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
85171
85172 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
85173
85174         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
85175         last one in a bucket, advance to the next bucket.
85176
85177 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
85178
85179         * lib/fnmatch.c: Do not comment out all the code if we are using
85180         the GNU C library, because in some cases we are replacing buggy
85181         code in the GNU C library itself.
85182
85183 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
85184
85185         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
85186         (regex_compile): Catch bogus \(\1\).
85187
85188 2000-10-30  Paul Eggert  <eggert@twinsun.com>
85189
85190         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
85191         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
85192         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
85193
85194 2000-10-30  Paul Eggert  <eggert@twinsun.com>
85195
85196         * lib/error.h, getline.h, modechange.h:
85197         Remove "2000" from Copyright line, as the file hasn't been
85198         changed this year other than in the copyright notice.
85199
85200         * lib/xalloc.h: Add "2000" to Copyright line, as this file
85201         was changed this year.
85202
85203 2000-10-29  Jim Meyering  <meyering@lucent.com>
85204
85205         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
85206         renaming.
85207         * m4/ls-mntd-fs.m4: Likewise
85208
85209 2000-10-29  Jim Meyering  <meyering@lucent.com>
85210
85211         * lib/xstat.in: Fix grammar in comment.
85212
85213 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
85214
85215         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
85216         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
85217         doesn't define __restrict_arr.
85218
85219 2000-10-28  Jim Meyering  <meyering@lucent.com>
85220
85221         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
85222         (jm_PREREQ_MEMCHR): New function.
85223
85224 2000-10-28  Jim Meyering  <meyering@lucent.com>
85225
85226         * lib/memchr.c: Update from libc.
85227         Adjust for portability:
85228         [HAVE_STDLIB_H]: Include stdlib.h.
85229         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
85230         Undef __memchr, too.
85231         [!weak_alias]: Define __memchr to memchr.
85232
85233         * lib/regex.c: Update from libc.
85234         * lib/regex.h: Likewise.
85235         * lib/getopt1.c: Likewise.
85236         * lib/memcmp.c: Likewise.
85237
85238         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
85239         Avoid using fseek, when possible -- it's broken by design.
85240         Patch by Ulrich Drepper.
85241
85242 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
85243
85244         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
85245         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
85246         Giving in to popular pressure to shut up the compiler with casts.
85247
85248 2000-10-26  Jim Meyering  <meyering@lucent.com>
85249
85250         * lib/strftime.c: Update from libc.
85251
85252 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
85253
85254         * regex.c: More `unsigned char' -> `re_char' changes.
85255         Also change several `int' into `re_wchar_t'.
85256         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
85257         (PUSH_FAILURE_POINTER): Don't cast any more.
85258         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
85259         We want GCC to complain, since this piece of code makes
85260         re_match non-reentrant, which *should* be fixed.
85261         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
85262         (EXTEND_BUFFER): Use RETALLOC.
85263         (SET_LIST_BIT): Don't cast.
85264         (re_wchar_t): New type.
85265         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
85266         that those two functions will always properly return.
85267         (IMMEDIATE_QUIT_CHECK): Cast to void.
85268         (analyse_first): Use recursion rather than an explicit stack.
85269         (re_compile_fastmap): Can't fail anymore.
85270         (re_search_2): Don't check re_compile_fastmap for failure.
85271         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
85272         Now also sets the new value (passed in a new argument).
85273         (re_match_2_internal): Use it.
85274         Also, use a new var `reg' of type size_t when looping through regs
85275         rather than reuse the inappropriate `mcnt'.
85276
85277 2000-10-25  Jim Meyering  <meyering@lucent.com>
85278
85279         * lib/obstack.c: Update from libc.
85280
85281 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
85282
85283         * regex.c (regex_compile): Change the way of handling a range from
85284         a char less than 256 to a char not less than 256.
85285
85286 2000-10-24  Andrew Innes  <andrewi@gnu.org>
85287
85288         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
85289         NT-Emacs only.
85290         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
85291         so that re_search functions only quit when callers expect them to.
85292
85293 2000-10-23  Jim Meyering  <meyering@lucent.com>
85294
85295         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
85296         wrong.  That set_locale call must not have any side effects.
85297         From Paul Eggert.
85298
85299 2000-10-22  Jim Meyering  <meyering@lucent.com>
85300
85301         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
85302         [CYCLIC]: Remove now-unused definition.
85303
85304         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
85305         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
85306         Suggestion from Ulrich Drepper.
85307
85308 2000-10-21  Jim Meyering  <meyering@lucent.com>
85309
85310         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
85311         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
85312         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
85313
85314 2000-10-21  Jim Meyering  <meyering@lucent.com>
85315
85316         * lib/dirname.c (memrchr): Declare if necessary.
85317         (dir_name): Remove the restriction that there be no
85318         trailing slashes.  Now, this code skips past them, effectively
85319         ignoring them.
85320         [TEST_DIRNAME] (main): New unit tests.
85321
85322         * lib/memrchr.c: New file from GNU libc.
85323         Undef __memrchr, too.
85324         [!weak_alias]: Define __memrchr to memrchr.
85325         Guard weak_alias use with `#ifdef weak_alias'.
85326
85327 2000-10-21  Jim Meyering  <meyering@lucent.com>
85328
85329         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
85330         (dir_name): Use dir_name_r.
85331         * lib/dirname.h (dir_name_r): Declare it.
85332
85333 2000-10-17  Jim Meyering  <meyering@lucent.com>
85334
85335         * lib/quote.h (PARAMS): Define and use.
85336         Reported by Akim Demaille.
85337
85338         * lib/getopt.c: Update from libc.
85339
85340 2000-10-16  Jim Meyering  <meyering@lucent.com>
85341
85342         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
85343         setlocale.
85344         From Jan Fedak.
85345
85346 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
85347
85348         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
85349
85350 2000-09-25  Jim Meyering  <meyering@lucent.com>
85351
85352         * lib/md5.h (rol): Define (from GnuPG).
85353
85354         * lib/sha.c: Give credit (GnuPG) where due.
85355         (M): Use rol rather than open-coding it.
85356         Add a FIXME comment.
85357
85358 2000-09-21  Jim Meyering  <meyering@lucent.com>
85359
85360         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
85361         Reported by Michael Stone.
85362
85363 2000-09-20  Jim Meyering  <meyering@lucent.com>
85364
85365         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
85366         (noinst_HEADERS): Add sha.h.
85367         Based on code from Scott G. Miller and from GnuPG.
85368
85369 2000-09-18  Jim Meyering  <meyering@lucent.com>
85370
85371         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
85372         LIBS. Otherwise, everyone ends up linking with -lelf for some
85373         configurations.
85374         Reported by Mike Stone.
85375
85376 2000-09-15  Jim Meyering  <meyering@lucent.com>
85377
85378         * lib/regex.c: Update from libc.
85379
85380 2000-09-10  Jim Meyering  <meyering@lucent.com>
85381
85382         * lib/getopt.c (_getopt_internal): Update from glibc.
85383
85384 2000-09-09  Jim Meyering  <meyering@lucent.com>
85385
85386         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
85387         think it should be used as a general replacement for isascii.
85388         * lib/fnmatch.c: Likewise.
85389         * lib/mbswidth.c: Likewise
85390         * lib/regex.c: Likewise.
85391
85392         Don't use atoi.
85393         * lib/userspec.c: Include sys/param.h and limits.h.
85394         Include xstrtol.h.
85395         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85396         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
85397         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
85398         UID, GID.  Check range.
85399
85400 2000-09-06  Jim Meyering  <meyering@lucent.com>
85401
85402         * lib/getopt.c (_getopt_internal): Update from glibc.
85403
85404 2000-08-30  Jim Meyering  <meyering@lucent.com>
85405
85406         * lib/strftime.c: Merge in changes from GNU libc.
85407
85408 2000-08-26  Jim Meyering  <meyering@lucent.com>
85409
85410         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
85411         * m4/fpending.m4: New file.
85412
85413 2000-08-26  Jim Meyering  <meyering@lucent.com>
85414
85415         * lib/closeout.c: Include "__fpending.h".
85416         (close_stdout_status): Return right away if there's nothing to flush.
85417
85418         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
85419         * lib/__fpending.c: New file.
85420         * lib/__fpending.h: New file.
85421
85422 2000-08-20  Jim Meyering  <meyering@lucent.com>
85423
85424         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
85425         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
85426         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
85427
85428 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
85429
85430         Improve fileutils installation on systems where running
85431         programs (like install) can't be unlinked.
85432         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
85433         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
85434
85435 2000-08-07  Paul Eggert  <eggert@twinsun.com>
85436
85437         Standardize on "memory exhausted" instead of "Memory exhausted"
85438         or "virtual memory exhausted".
85439         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
85440         "virtual memory exhausted".
85441         * lib/same.c (same_name): Invoke xalloc_die instead of printing
85442         our own message.
85443         * lib/userspec.c (parse_user_spec): Likewise.
85444         * lib/bumpalloc.h: comment fix
85445         * lib/same.c, userspec.c: Include xalloc.h.
85446
85447         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
85448         not char *const and pointing to a constant array.
85449         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
85450         (xrealloc): Comment fix.
85451
85452         * lib/userspec.c (parse_user_spec):
85453         Don't translate a message until just before returning,
85454         to avoid unnecessary translation.
85455
85456 2000-08-07  Jim Meyering  <meyering@lucent.com>
85457
85458         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
85459         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
85460         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
85461         getgroups.c, gethostname.c, getopt.h, group-member.c,
85462         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
85463         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
85464         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
85465         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
85466         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
85467         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
85468         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
85469         yesno.c: Back out Copyright date changes for each file with no change
85470         this year.  This eases coordination with other programs using the same
85471         source code modules.  From Paul Eggert.
85472
85473 2000-08-06  Paul Eggert  <eggert@twinsun.com>
85474
85475         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
85476         not char, for compatibility with glibc 2.1.3 strftime.c.
85477
85478 2000-08-03  Greg McGary  <greg@mcgary.org>
85479
85480         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
85481         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
85482         (EXTEND_BUFFER): Use them.
85483
85484 2000-08-01  Jim Meyering  <meyering@lucent.com>
85485
85486         * lib/dirname.c (ISSLASH): Define.
85487         (BACKSLASH_IS_PATH_SEPARATOR): Define.
85488         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
85489         both `\' and `/' may be use as path separators.
85490         Based on a patch from Prashant TR.
85491
85492 2000-07-31  Paul Eggert  <eggert@twinsun.com>
85493
85494         * lib/quotearg.c (quotearg_n_options): Don't make the initial
85495         slot vector a constant, since it might get modified.
85496
85497 2000-07-31  Jim Meyering  <meyering@lucent.com>
85498
85499         * lib/xmalloc.c: Use `virtual memory exhausted', not
85500         `Memory exhausted'.
85501         * lib/obstack.c (print_and_abort): Likewise.
85502
85503 2000-07-30  Paul Eggert  <eggert@twinsun.com>
85504
85505         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
85506         buffer, so that the caller can always quote one small
85507         component of a "memory exhausted" message in slot 0.
85508         From a suggestion by Jim Meyering.
85509
85510 2000-07-30  Jim Meyering  <meyering@lucent.com>
85511
85512         * lib/makepath.c (make_path): Quote the other instance, too.
85513
85514         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
85515         (STATIC_BUF_SIZE): Define.
85516         (quotearg_n_options): Use only statically allocated storage when
85517         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
85518         than STATIC_BUF_SIZE.
85519
85520 2000-07-29  Jim Meyering  <meyering@lucent.com>
85521
85522         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
85523         * lib/dirname.c (dir_name): Likewise.
85524
85525         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
85526         `/'.
85527
85528         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
85529         (dir_name): Assert that there are no trailing slashes.
85530
85531 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
85532
85533         * lib/mbswidth.h (mbswidth): Add a flags argument.
85534         (mbswidth): New declaration.
85535         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
85536         * lib/mbswidth.c (mbswidth): Add a flags argument.
85537         (mbsnwidth): New function.
85538
85539 2000-07-24  Jim Meyering  <meyering@lucent.com>
85540
85541         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
85542
85543 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85544
85545         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
85546
85547 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85548
85549         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
85550         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
85551         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
85552         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
85553         invoke multibyte primitives.
85554
85555 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85556
85557         * lib/quotearg.c:
85558         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
85559         so that mbstate_t is always defined.
85560
85561         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
85562         be 1 in at least one GCC installation, and this configuration
85563         error is likely to be common.  Ignoring MB_LEN_MAX hurts
85564         performance on hosts that have mbrtowc but have only unibyte
85565         locales, but I assume these hosts are rare.
85566
85567 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85568
85569         * lib/mbswidth.c (_XOPEN_SOURCE):
85570         Don't define; this causes problems on Solaris 7.
85571         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
85572
85573 2000-07-23  Jim Meyering  <meyering@lucent.com>
85574
85575         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
85576         too: getgrgid, getpwuid, getuid.
85577
85578 2000-07-23  Jim Meyering  <meyering@lucent.com>
85579
85580         * lib/basename.c (base_name): Add an assertion.
85581
85582 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
85583
85584         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
85585         shadow its mbsinit function.
85586
85587 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85588
85589         * lib/mbswidth.h: New file.
85590         * lib/mbswidth.c: New file.
85591         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
85592         (noinst_HEADERS): Add mbswidth.h.
85593
85594 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85595
85596         * lib/config.charset: Add support for FreeBSD. Improve support for
85597         HP-UX and IRIX 6.
85598
85599 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
85600
85601         * m4/mbswidth.m4: New file.
85602         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
85603
85604 2000-07-15  Jim Meyering  <meyering@lucent.com>
85605
85606         * lib/makepath.c: Include quote.h.
85607         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
85608         corresponding argument in a `quote (...)' call.
85609         Give better diagnostics.
85610
85611         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
85612         (noinst_HEADERS): Add quote.h.
85613
85614         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
85615         from tar's src/misc.c.
85616         * lib/quote.h: New file.  Prototypes for same.
85617
85618 2000-07-14  Paul Eggert  <eggert@twinsun.com>
85619
85620         From a suggestion by Bruno Haible.
85621         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
85622         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
85623         to decide whether to define the BeOS workaround macro;
85624         this adjusts to the change to AC_MBSTATE_T.
85625
85626 2000-07-14  Jim Meyering  <meyering@lucent.com>
85627
85628         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
85629         jm_AC_TYPE_UINTMAX_T.
85630
85631 2000-07-13  Paul Eggert  <eggert@twinsun.com>
85632
85633         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
85634
85635         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
85636         quotearg_buffer_restyled): Add support for
85637         clocale_quoting_style.  Undo previous change to
85638         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
85639         and "{RIGHT QUOTATION MARK}" msgids.
85640
85641 2000-07-10  Paul Eggert  <eggert@twinsun.com>
85642
85643         From a suggestion by Bruno Haible.
85644         * m4/mbstate_t.m4 (AC_MBSTATE_T):
85645         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
85646         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
85647         and mbstate_t, to a single-part test that simply defines mbstate_t.
85648         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
85649         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
85650
85651 2000-07-10  Jim Meyering  <meyering@lucent.com>
85652
85653         * m4/strerror_r.m4: Mirror the correction made in autoconf.
85654
85655         * m4/gnu-source.m4: Output to confdefs.h directly.
85656         Suggestion from Akim Demaille.
85657
85658 2000-07-09  Paul Eggert  <eggert@twinsun.com>
85659
85660         The old behavior of quoting `like this' doesn't look good with
85661         newer, ISO-style fonts.  See:
85662         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
85663
85664         Instead, quote "like this" by default.  Let the translator
85665         tailor the locale-specific quoting behavior by providing
85666         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
85667
85668         * lib/quotearg.c (N_): New macro.
85669         (gettext_default): New function.
85670         (quotearg_buffer_restyled): Use
85671         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
85672         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
85673
85674 2000-07-09  Jim Meyering  <meyering@lucent.com>
85675
85676         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
85677         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
85678
85679         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
85680         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
85681
85682 2000-07-09  Jim Meyering  <meyering@lucent.com>
85683
85684         * lib/Most files: Update copyright dates to include 2000.
85685
85686 2000-07-08  Jim Meyering  <meyering@lucent.com>
85687
85688         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
85689         if not defined.
85690         (xgethostname): Remove now-unnecessary #ifdef.
85691         Move declaration of `err' into loop where it's used.
85692
85693 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85694         and Bruno Haible  <haible@clisp.cons.org>
85695
85696         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
85697         only if the test for an object-type mbstate_t fails.  This
85698         prevents us from mistakenly reporting that mbstate_t is a
85699         system object type after we "#define mbstate_t int" to work
85700         around its lack.
85701
85702 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85703         and Bruno Haible  <haible@clisp.cons.org>
85704
85705         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
85706
85707 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85708
85709         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
85710         to strerror_r.
85711         Include <ctype.h> for use of isalpha.
85712
85713 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85714
85715         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
85716         by allocating a larger buffer. Test the gethostname return value for
85717         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
85718         returns an error and ENAMETOOLONG isn't defined.
85719
85720 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85721
85722         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
85723         dimension.
85724
85725 2000-07-04  Jim Meyering  <meyering@lucent.com>
85726
85727         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
85728         of the deprecated AC_CHECKING.
85729
85730 2000-07-04  Jim Meyering  <meyering@lucent.com>
85731
85732         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
85733         Reported by Bruno Haible.
85734
85735 2000-07-04  Jim Meyering  <meyering@lucent.com>
85736
85737         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
85738         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
85739         lacks mbrtowc.
85740
85741 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85742
85743         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
85744         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
85745
85746 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85747         and Bruno Haible  <haible@clisp.cons.org>
85748
85749         * lib/quotearg.c (mbrtowc):
85750         Assign to *pwc, and return 1 only if result is nonzero.
85751         (iswprint): Use ISPRINT when substituting our own mbrtowc.
85752
85753 2000-07-03  Jim Meyering  <meyering@lucent.com>
85754
85755         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
85756
85757 2000-07-03  Jim Meyering  <meyering@lucent.com>
85758
85759         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
85760         This is necessary to get a definition of e.g., UTMP_FILE on
85761         HP-UX 10.20.
85762         From Bob Proulx.
85763
85764 2000-07-02  Jim Meyering  <meyering@lucent.com>
85765
85766         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
85767
85768         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
85769         AC_LIBOBJ(function_name).
85770         * m4/chown.m4: Likewise.
85771         * m4/fnmatch.m4: Likewise.
85772         * m4/ftruncate.m4: Likewise.
85773         * m4/getgroups.m4: Likewise.
85774         * m4/getline.m4: Likewise.
85775         * m4/group-member.m4: Likewise.
85776         * m4/jm-macros.m4: Likewise.
85777         * m4/lstat.m4: Likewise.
85778         * m4/malloc.m4: Likewise.
85779         * m4/memcmp.m4: Likewise.
85780         * m4/nanosleep.m4: Likewise.
85781         * m4/putenv.m4: Likewise.
85782         * m4/realloc.m4: Likewise.
85783         * m4/regex.m4: Likewise.
85784         * m4/stat.m4: Likewise.
85785         * m4/strftime.m4: Likewise.
85786
85787 2000-07-02  Jim Meyering  <meyering@lucent.com>
85788
85789         * lib/quotearg.c (mbstate_t): Don't define here.
85790
85791 2000-07-02  Jim Meyering  <meyering@lucent.com>
85792
85793         * lib/nanosleep.c (SIGCONT): Define if not already defined.
85794
85795 2000-07-01  Jim Meyering  <meyering@lucent.com>
85796
85797         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85798
85799 2000-07-01  Jim Meyering  <meyering@lucent.com>
85800
85801         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85802         problem.
85803
85804 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85805
85806         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85807         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85808
85809 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85810
85811         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85812         per change in ../m4/ls-mntd-fs.m4.
85813         (read_filesystem_list): Ignore symbolic links.
85814
85815 2000-06-29  Jim Meyering  <meyering@lucent.com>
85816
85817         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85818         for declaration of strcmp.
85819
85820         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
85821
85822         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
85823         Avoid warning by casting result to `char *' to remove `const'.
85824
85825 2000-06-28  Jim Meyering  <meyering@lucent.com>
85826
85827         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
85828         included by quotearg.c, for which we perform this test.  From
85829         Bruno Haible.
85830
85831 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85832
85833         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
85834         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
85835         <utmpx.h> exists, put readutmp.o into LIBOBJS.
85836
85837 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85838
85839         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
85840
85841 2000-06-26  Paul Eggert  <eggert@twinsun.com>
85842
85843         savedir now sets errno on failure and invokes xmalloc to get memory.
85844         Fix a couple of other minor bugs while we're at it.
85845
85846         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
85847         (NAMLEN): Remove macro.
85848         (malloc, realloc): Remove decls.
85849         (stpcpy): Likewise.
85850         ("xalloc.h"): Include.
85851         (NAME_SIZE_DEFAULT): New macro.
85852         (savedir): Use xmalloc / xrealloc to allocate memory.
85853         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
85854         Skip "" directory entries.
85855         Use strlen to calculate directory entry length, since the old method
85856         is rarely used these days and isn't worth supporting.
85857         Don't use a pointer after freeing it.
85858         Check for integer overflow when calculating allocation size.
85859         Use memcpy to copy entries, instead of stpcpy.
85860         Set errno properly when returning NULL.
85861         Check for readdir error.
85862
85863 2000-06-26  Jim Meyering  <meyering@lucent.com>
85864
85865         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
85866
85867 2000-06-25  Jim Meyering  <meyering@lucent.com>
85868
85869         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
85870         Linux header bug when _XOPEN_SOURCE is defined to 500.
85871
85872 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85873
85874         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
85875         deficiency.
85876
85877 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85878
85879         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
85880         Include xalloc.h.
85881         Don't include <stdlib.h>.  Don't declare malloc, realloc.
85882
85883 2000-06-24  Jim Meyering  <meyering@lucent.com>
85884
85885         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85886         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85887         for which strerror does return char*, but which lacks a conveniently
85888         accessible declaration of the function.  If the compile-test says
85889         strerror_r doesn't work, then resort to a `run'-test that works on
85890         BeOS and segfaults on DEC Unix.
85891
85892 2000-06-24  Jim Meyering  <meyering@lucent.com>
85893
85894         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85895
85896 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85897
85898         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85899         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85900
85901 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85902
85903         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85904         (mbrtowc, mbstate_t): Define substitutes if
85905         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85906         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85907         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85908
85909 2000-06-23  Jim Meyering  <meyering@lucent.com>
85910
85911         * m4/afs.m4: Add missing AC_MSG_RESULT.
85912         Reported by Bruno Haible.
85913
85914         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85915         Suggestion from Bruno Haible.
85916
85917 2000-06-23  Jim Meyering  <meyering@lucent.com>
85918
85919         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85920
85921 2000-06-21  Jim Meyering  <meyering@lucent.com>
85922
85923         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85924
85925 2000-06-21  Jim Meyering  <meyering@lucent.com>
85926
85927         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85928         (noinst_HEADERS): Add getstr.h.
85929
85930         * lib/getline.c (getstr): Move into a separate file.
85931         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85932         the following changes: new parameter, delim2; both delim[12]
85933         parameters have type `int', not `char'.  The latter would lose
85934         with 8-bit delimiters.
85935         * lib/getstr.h: New file.
85936
85937 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85938
85939         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85940         than 1024, return a memory chunk of least possible size, instead
85941         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85942         Use free/xmalloc instead of xrealloc to avoid copying for very long
85943         paths.
85944
85945 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85946
85947         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85948         the empty string.
85949
85950 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85951
85952         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85953         address, not strdup.  Include <stdlib.h> and don't declare free().
85954
85955 2000-06-19  Jim Meyering  <meyering@lucent.com>
85956
85957         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85958
85959 2000-06-18  Jim Meyering  <meyering@lucent.com>
85960
85961         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85962
85963         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85964         `checking whether...' message to be consistent with that of the
85965         lstat test.
85966
85967 2000-06-18  Jim Meyering  <meyering@lucent.com>
85968
85969         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85970         Besides, these days every porting target provides a mkdir function.
85971
85972         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85973         needed. (this snippet comes from src/system.h).
85974
85975 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85976
85977         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85978
85979 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85980
85981         * lib/human.c (adjust_value): New function.
85982         (human_readable_inexact): Apply rounding style even when
85983         printing approximate values.
85984
85985 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85986
85987         * lib/human.c (human_readable_inexact): Allow an input block
85988         size that is not a multiple of the output block size, and vice versa.
85989         Reported by Piergiorgio Sartor.
85990
85991 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85992
85993         * lib/getdate.y (get_date): Apply relative times after time
85994         zone indicator, not before.  Reported by Todd A. Jacobs.
85995
85996 2000-06-13  Jim Meyering  <meyering@lucent.com>
85997
85998         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85999
86000         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
86001
86002 2000-06-12  Paul Eggert  <eggert@twinsun.com>
86003
86004         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
86005
86006 2000-06-12  Jim Meyering  <meyering@lucent.com>
86007
86008         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
86009         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
86010         optional argument.
86011         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
86012         the optional argument, `lib'.
86013
86014 2000-06-08  Jim Meyering  <meyering@lucent.com>
86015
86016         * m4/largefile.m4: Remove file (now that it's part of autoconf).
86017
86018 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86019
86020         Rewrite largefile configuration so that we don't need to run
86021         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
86022         AC_CANONICAL_HOST in configure.in -- jmm]
86023
86024         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
86025         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
86026         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
86027         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
86028         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
86029         All uses changed.
86030         Instead of inspecting the output of getconf, try to compile the
86031         test program without and with the macro definition.
86032         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
86033         for getconf.  Instead, check for the needed flags by compiling
86034         test programs.
86035
86036 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86037
86038         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
86039
86040 2000-06-04  Jim Meyering  <meyering@lucent.com>
86041
86042         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
86043         SunOS 4.1.4 for which gid_t is an unsigned type.
86044
86045 2000-06-03  Jim Meyering  <meyering@lucent.com>
86046
86047         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
86048         now that autoconf requires that.
86049
86050         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
86051         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
86052         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
86053
86054 2000-06-03  Jim Meyering  <meyering@lucent.com>
86055
86056         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
86057
86058 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86059
86060         * m4/glibc21.m4: New file.
86061         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
86062
86063 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86064
86065         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
86066         newer, don't install charset.alias.
86067         * lib/config.charset: Change the Linux/glibc rules so they become empty
86068         on glibc-2.1 or newer.
86069
86070 2000-06-02  Jim Meyering  <meyering@lucent.com>
86071
86072         * lib/mountlist.c: Back out last change.  Instead, do this...
86073         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
86074         me_dummy member using the same `ignore'-testing code.
86075         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
86076         fs_type strings.
86077         From Mark D. Roth.
86078
86079 2000-05-29  Jim Meyering  <meyering@lucent.com>
86080
86081         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
86082         mounts with the `ignore' attribute.  Based on a patch from
86083         Mark D. Roth.
86084
86085 2000-05-28  Jim Meyering  <meyering@lucent.com>
86086
86087         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
86088         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86089         * m4/stat.m4: Likewise.
86090         * m4/lstat.m4: Likewise.
86091         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
86092
86093         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
86094         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
86095
86096 2000-05-26  Jim Meyering  <meyering@lucent.com>
86097
86098         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
86099
86100 2000-05-24  Jim Meyering  <meyering@lucent.com>
86101
86102         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
86103         autoconf requires that.
86104         * m4/lib-check.m4: Likewise.
86105         * m4/jm-macros.m4: Likewise.
86106         * m4/strftime.m4: Likewise.
86107
86108         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
86109         AC_CHECK_DECLS, now that autoconf requires that.
86110
86111 2000-05-22  Jim Meyering  <meyering@lucent.com>
86112
86113         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86114         * m4/lstat.m4: Likewise.
86115
86116 2000-05-22  Jim Meyering  <meyering@lucent.com>
86117
86118         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
86119
86120 2000-05-20  Jim Meyering  <meyering@lucent.com>
86121
86122         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
86123         (jm_PREREQ): Use it.
86124
86125 2000-05-18  Jim Meyering  <meyering@lucent.com>
86126
86127         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
86128         back, too, since it may have been modified by allocate_entry.
86129         (hash_delete): Rewrite to use neither the assignment operator
86130         nor the comma operator in an if-expression.
86131
86132 2000-05-15  Paul Eggert  <eggert@twinsun.com>
86133
86134         * lib/closeout.c:
86135         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
86136         Remove; no longer needed.
86137         "quotearg.h": Add include.
86138         (file_name): Do not bother to explicitly initialize to NULL; it's less
86139         efficient on some hosts.
86140         (close_stdout_status): Remove test as to whether stdout was already
86141         closed; it breaks for the case "echo x | sort >&-".
86142         Quote file name colons.
86143         Do not assume that _("write error") lacks format strings.
86144
86145 2000-05-15  Jim Meyering  <meyering@lucent.com>
86146
86147         * lib/version-etc.c (version_etc_copyright): Update the copyright
86148         string used in all --version output.
86149
86150 2000-05-14  Jim Meyering  <meyering@lucent.com>
86151
86152         * lib/closeout.c (close_stdout_set_file_name): New function.
86153         (close_stdout_status): Use new file-scoped global.
86154         Return right away if fstat says the stdout file descriptor is invalid.
86155         * lib/closeout.h (close_stdout_set_file_name): Declare.
86156
86157 2000-05-10  Jim Meyering  <meyering@lucent.com>
86158
86159         * lib/closeout.c [default_exit_status]: New file-scoped variable.
86160         (close_stdout_set_status): New function.
86161         * lib/closeout.h (close_stdout_set_status): Declare.
86162
86163 2000-05-09  Jim Meyering  <meyering@lucent.com>
86164
86165         * m4/gettext.m4: Rename this...
86166         * m4/libintl.m4: ...to this.
86167
86168 2000-05-08  Jim Meyering  <meyering@lucent.com>
86169
86170         * lib/long-options.c: Don't include closeout.h.
86171         (parse_long_options): Don't call close_stdout for --version.
86172
86173 2000-05-06  Paul Eggert  <eggert@twinsun.com>
86174
86175         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
86176         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
86177         2.1.3 bug.  This avoids a clash when files like regex.c define
86178         _GNU_SOURCE.
86179
86180 2000-05-06  Jim Meyering  <meyering@lucent.com>
86181
86182         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
86183         (AC_REPLACE_FUNCS): Add strnlen.
86184
86185         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
86186         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
86187
86188         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
86189         AC_SEARCH_LIBS call for nanosleep.
86190         (LIB_NANOSLEEP): Set and AC_SUBST.
86191
86192 2000-05-06  Jim Meyering  <meyering@lucent.com>
86193
86194         * lib/strnlen.c: Undefine __strnlen and strnlen.
86195         [!weak_alias]: Define __strnlen to strnlen.
86196
86197         * lib/atexit.c: New file, from libiberty.
86198
86199 2000-05-06  Jim Meyering  <meyering@lucent.com>
86200
86201         * lib/closeout.c (close_stdout_status): Also check for errors on the
86202         stderr stream.
86203
86204 2000-05-05  Jim Meyering  <meyering@lucent.com>
86205
86206         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
86207         AC_SEARCH_LIBS call for clock_gettime.
86208         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
86209
86210         * m4/search-libs.m4: Update from autoconf.
86211
86212         su doesn't work on Solaris 2.6.
86213         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
86214         <shadow.h>.  Reported by Dragos Harabor.
86215
86216 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
86217
86218         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
86219         memcpy instead of xmalloc, xrealloc, path_concat.
86220         (locale_charset): Treat empty environment variables as absent.
86221         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
86222
86223 2000-05-04  Jim Meyering  <meyering@lucent.com>
86224
86225         * lib/getopt.c: Update from glibc.
86226         * lib/obstack.c: Likewise.
86227         * lib/obstack.h: Likewise.
86228         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
86229         file
86230
86231         * lib/regex.h: Likewise.
86232         * lib/strndup.c: Likewise.
86233         * lib/strnlen.c: New file, from glibc.
86234
86235 2000-05-03  Jim Meyering  <meyering@lucent.com>
86236
86237         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
86238
86239 2000-05-02  Paul Eggert  <eggert@twinsun.com>
86240
86241         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
86242         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
86243         compile-time test, rather than inspecting host and OS, to
86244         decide whether to define _LARGEFILE_SOURCE.
86245
86246 2000-05-01  Jim Meyering  <meyering@lucent.com>
86247
86248         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
86249
86250         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
86251         Based on a patch from Bruno Haible.
86252
86253 2000-05-01  Jim Meyering  <meyering@lucent.com>
86254
86255         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
86256
86257 2000-04-29  Jim Meyering  <meyering@lucent.com>
86258
86259         * lib/path-concat.c: Declare strdup only if it's not defined.
86260         * lib/canon-host.c: Likewise.
86261
86262 2000-04-28  Jim Meyering  <meyering@lucent.com>
86263
86264         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
86265         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
86266         is included first, then limits.h is included by locale.h by libintl.h.
86267         From John David Anglin.
86268
86269 2000-04-25  Jim Meyering  <meyering@lucent.com>
86270
86271         * lib/makepath.c (S_IRWXUGO): Define.
86272         (make_path): Always perform explicit chmod if MODE specifies any
86273         of the `special' permission bits.  Prompted by a bug report against
86274         install from Mate Wierdl and Joost van Baal.
86275
86276 2000-04-18  Jim Meyering  <meyering@lucent.com>
86277
86278         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
86279         (jm_PREREQ): Use it.
86280
86281 2000-04-18  Jim Meyering  <meyering@lucent.com>
86282
86283         * lib/README: New file.
86284
86285         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
86286         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
86287
86288 2000-04-17  Jim Meyering  <meyering@lucent.com>
86289
86290         Get it right :-)
86291         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
86292         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
86293         Suggestion from Akim Demaille.
86294
86295 2000-04-17  Jim Meyering  <meyering@lucent.com>
86296
86297         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
86298         the definition of it to rpl_strftime also defined-away the system's
86299         declaration.
86300
86301 2000-04-15  Jim Meyering  <meyering@lucent.com>
86302
86303         Use `C' to denote so-called `contiguous' files, the same way
86304         that tar does.
86305         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
86306         (ftypelet): Use S_ISCTG.
86307         From Michael Deutschmann.
86308
86309 2000-04-14  Jim Meyering  <meyering@lucent.com>
86310
86311         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
86312         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
86313         clobbered.
86314
86315 2000-04-14  Jim Meyering  <meyering@lucent.com>
86316
86317         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
86318
86319 2000-04-13  Jim Meyering  <meyering@lucent.com>
86320
86321         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
86322         AH_VERBATIM to insert required #ifndef into config.h.in.
86323         Suggestion from Akim Demaille.
86324
86325 2000-04-12  Jim Meyering  <meyering@lucent.com>
86326
86327         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
86328         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
86329         Christian Krackowizer.
86330
86331         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
86332         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
86333         (AC_SYS_LARGEFILE): Require.
86334         (AM_C_PROTOTYPES): Require.
86335
86336 2000-04-08  Jim Meyering  <meyering@lucent.com>
86337
86338         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
86339         names don't conflict.  Reported by Eli Zaretskii.
86340
86341 2000-04-07  Jim Meyering  <meyering@lucent.com>
86342
86343         * lib/putenv.c: Move inclusion of errno.h so it follows that of
86344         sys/types.h, to work around system header problems on AIX 3.2.5.
86345         From Bruno Haible.
86346
86347 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
86348
86349         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
86350         bug.  Deal with the different error behavior of Irix iconv.
86351
86352 2000-04-05  Paul Eggert  <eggert@twinsun.com>
86353
86354         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
86355         IRIX if the installer said otherwise.
86356
86357 2000-04-05  Jim Meyering  <meyering@lucent.com>
86358
86359         Portability tweaks required for ultrix4.3.
86360         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
86361         (jm_CHECK_DECLS): Add getutent to the list of functions.
86362         (_jm_DECL_HEADERS): Add utmpx.h.
86363         From John David Anglin.
86364
86365         * m4/strftime.m4: Back out the 2000-04-02 change.
86366         Instead of that change, simply undefine putenv in the test program.
86367
86368 2000-04-05  Jim Meyering  <meyering@lucent.com>
86369
86370         Portability tweaks required for ultrix4.3.
86371         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
86372         getutent.
86373         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
86374         * lib/canon-host.c: Declare strdup.
86375         * lib/path-concat.c: Likewise.
86376         From John David Anglin.
86377
86378 2000-04-04  Jim Meyering  <meyering@lucent.com>
86379
86380         Be more DOS 8.3-friendly.
86381         * lib/ref-add.sin: Renamed from ref-add.sed.in.
86382         * lib/ref-del.sin: Renamed from ref-del.sed.in.
86383         * lib/Makefile.am: Reflect renaming.
86384         Reported by Eli Zaretskii.
86385
86386         Use a temporary file name that won't clash with `charset.alias'
86387         in the DOS 8.3 name space.
86388         * lib/Makefile.am (charset_tmp): Define.
86389         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
86390         (uninstall-local): Likewise.
86391         Reported by Eli Zaretskii.
86392
86393 2000-04-03  Jim Meyering  <meyering@lucent.com>
86394
86395         * m4/gettext.m4: Fix typo in comment.
86396
86397         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
86398         textutils/configure.in).  Suggestion from Paul Eggert.
86399         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
86400
86401 2000-04-02  Paul Eggert  <eggert@twinsun.com>
86402
86403         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
86404         variable in the shell rather than using putenv, which isn't
86405         portable.  This avoids the configure-time inter-test dependency
86406         on the potentially-renamed putenv function.
86407
86408 2000-03-30  Paul Eggert  <eggert@twinsun.com>
86409
86410         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
86411         before checking struct stat.st_blksize, so that
86412         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
86413
86414 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86415
86416         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
86417         since strftime.c uses HAVE_STRFTIME to decide whether to use
86418         the underlying strftime.
86419
86420 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86421
86422         * lib/time/strftime.c (my_strftime): Make sure we call the system
86423         strftime, not ourselves, when invoking the underlying strftime.
86424
86425 2000-03-24  Jim Meyering  <meyering@lucent.com>
86426
86427         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
86428         (charset_alias): Define.
86429         (install-exec-local): Factor out common code.
86430         (uninstall-local): Split lines longer than 80.
86431         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
86432         (SUFFIXES): Define.
86433         (.sed.in.sed): New rule.  Don't redirect directly to $@.
86434         (CLEANFILES): Add ref-add.sed and ref-del.sed.
86435
86436 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
86437
86438         * lib/config.charset: Output a line containing "Packages using this
86439         file".
86440         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
86441         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
86442         ref-del.sed): New rules.
86443
86444 2000-03-17  Jim Meyering  <meyering@lucent.com>
86445
86446         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
86447         Otherwise, include <strings.h>
86448
86449 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
86450
86451         * lib/unicodeio.c (utf8_wctomb): New function.
86452         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
86453         format instead of in UCS-4 with platform dependent endianness.
86454
86455 2000-03-10  Jim Meyering  <meyering@lucent.com>
86456
86457         * m4/lib-check.m4: Look for getspnam in -lgen, too.
86458         From Marco Franzen.
86459
86460 2000-03-07  Paul Eggert  <eggert@twinsun.com>
86461
86462         * lib/savedir.c (savedir): Work even if directory size is
86463         negative; this can happen with some screwy NFS configurations.
86464
86465 2000-03-06  Jim Meyering  <meyering@lucent.com>
86466
86467         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
86468         if it's NULL (because we ran out of memory).  From Bruno Haible.
86469
86470 2000-03-05  Jim Meyering  <meyering@lucent.com>
86471
86472         * lib/localcharset.c ("path-concat.h"): Include.
86473         (get_charset_aliases): Use path_concat instead of ANSI string
86474         concatenation.
86475
86476         * lib/unicodeio.h (PARAMS): Define.
86477         Use it to guard prototype.
86478
86479 2000-03-04  Jim Meyering  <meyering@lucent.com>
86480
86481         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
86482         for lib/localcharset.c.
86483
86484 2000-03-04  Jim Meyering  <meyering@lucent.com>
86485
86486         * lib/Makefile.am (install-exec-local): Create $(libdir) before
86487         installing into it.
86488         (uninstall-local): Uncomment this rule so `make distcheck' works
86489         once again.
86490
86491         * lib/unicodeio.c (<errno.h>): Include it.
86492         (errno): Declare if not defined.
86493
86494         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
86495
86496         * lib/config.charset: New version, incorporating remarks from a linux
86497         i18n mailing list.  From Bruno Haible.
86498
86499 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
86500
86501         * m4/codeset.m4: New file.
86502         * m4/iconv.m4: New file.
86503         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
86504
86505 2000-03-03  Jim Meyering  <meyering@lucent.com>
86506
86507         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
86508
86509 2000-03-02  Jim Meyering  <meyering@lucent.com>
86510
86511         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
86512         the messages come out on separate lines.
86513
86514         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
86515         rather than jm_CHECK_DECLARATIONS.
86516         * m4/decl.m4: Remove now-unused file.
86517
86518         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
86519         geteuid.
86520
86521 2000-03-02  Jim Meyering  <meyering@lucent.com>
86522
86523         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
86524
86525 2000-03-01  Jim Meyering  <meyering@lucent.com>
86526
86527         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
86528         * lib/unicodeio.c: Likewise.
86529
86530 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
86531
86532         * lib/config.charset: New file.
86533         * lib/localcharset.c: New file.
86534         * lib/unicodeio.h, lib/unicodeio.c: New files.
86535         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
86536         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
86537         (noinst_HEADERS): Add unicodeio.h.
86538         (all-local, install-exec-local, charset.alias): New targets.
86539
86540 2000-02-28  Paul Eggert  <eggert@twinsun.com>
86541
86542         * lib/quotearg.c (ALERT_CHAR): New macro.
86543         (quotearg_buffer_restyled): Use it.
86544
86545 2000-02-27  Jim Meyering  <meyering@lucent.com>
86546
86547         * m4/check-decl.m4: Add getenv to the list.
86548
86549 2000-02-27  Jim Meyering  <meyering@lucent.com>
86550
86551         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
86552         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
86553
86554         * lib/backupfile.c: Guard inclusion of stdlib.h with
86555         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
86556         Declare malloc if needed.
86557
86558         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
86559         `#ifndef HAVE_DECL..'
86560         now that autoconf always defines the HAVE_DECL_ symbols.
86561         * lib/human.c: Likewise.
86562         * lib/same.c: Likewise.
86563         * lib/strtoumax.c: Likewise.
86564
86565         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
86566         declaration check was not run.
86567         * lib/hash.c: Likewise.
86568         * lib/human.c: Likewise.
86569         * lib/same.c: Likewise.
86570         * lib/strtoumax.c: Likewise.
86571
86572         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
86573         `.', then first look up the entire `.'-containing string as a login
86574         name.
86575
86576 2000-02-23  Jim Meyering  <meyering@lucent.com>
86577
86578         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
86579         in place of my hack.
86580
86581 2000-02-18  Paul Eggert  <eggert@twinsun.com>
86582
86583         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
86584         (textint): New typedef.
86585         (parser_control): Member year changed from int to textint.
86586         All uses changed.
86587         (YYSTYPE): Removed; replaced by %union with int and textint members.
86588         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
86589         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
86590         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
86591         (tSNUMBER, tUNUMBER): Now of type <textintval>.
86592         (date, number, to_year): Use width of number in digits, not its value,
86593         to determine whether it's a 2-digit year, or a 2-digit time.
86594         (yylex): Store number of digits of numeric tokens.
86595         Reported by John Kendall.
86596
86597         (parser_control): Changed from struct parser_control to typedef (for
86598         consistency).  All uses changed.
86599
86600         (tID): Removed; not used.
86601         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
86602
86603 2000-02-14  Paul Eggert  <eggert@twinsun.com>
86604
86605         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
86606         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
86607
86608 2000-02-12  Jim Meyering  <meyering@lucent.com>
86609
86610         * lib/userspec.c (ISDIGIT): Define it.
86611         (isdigit): Remove definition.
86612         (is_number): Use ISDIGIT, not isdigit.
86613         <libintl.h>: Include.
86614         (_ and N_): Define.
86615         (parse_user_spec): Mark translatable strings.
86616
86617 2000-02-10  Jim Meyering  <meyering@lucent.com>
86618
86619         With these changes, nanosleep.[ch] are finally enough like the other
86620         lib/* replacement files to compile on a few more losing systems.
86621
86622         * lib/nanosleep.h: Don't include config.h.
86623         Remove prototype from declaration of nanosleep.
86624         (PARAMS): Remove now-unneeded definition.
86625         * lib/nanosleep.c: #undef nanosleep.
86626         (rpl_nanosleep): Rename from nanosleep.
86627
86628 2000-02-10  Jim Meyering  <meyering@lucent.com>
86629
86630         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
86631         gnu_nanosleep to rpl_nanosleep.
86632
86633 2000-02-09  Jim Meyering  <meyering@lucent.com>
86634
86635         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
86636         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
86637
86638 2000-02-08  Akim Demaille  <akim@epita.fr>
86639
86640         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
86641         `[' and `]' and remove uses of `changequote'.
86642         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
86643         (AC_SYS_LARGEFILE): Likewise.
86644         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86645         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
86646         of changequote.
86647         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
86648         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
86649         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
86650         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
86651
86652 2000-02-05  Jim Meyering  <meyering@lucent.com>
86653
86654         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
86655         Remove explicit use of AC_HEADER_TIME.  It is required by
86656         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
86657         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
86658         in autoconf whereby the expansion of the latter ended up preceding
86659         the expansion of its prerequisite, AC_HEADER_TIME.
86660         Reported by Volker Borchert.
86661
86662 2000-02-03  Jim Meyering  <meyering@lucent.com>
86663
86664         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
86665
86666 2000-02-03  Jim Meyering  <meyering@lucent.com>
86667
86668         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
86669         rather than with `#if HAVE_UTMPNAME'.
86670
86671 2000-02-02  Jim Meyering  <meyering@lucent.com>
86672
86673         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
86674         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
86675         Reported by Eli Zaretskii.
86676
86677 2000-02-01  Jim Meyering  <meyering@lucent.com>
86678
86679         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
86680
86681 2000-01-31  Jim Meyering  <meyering@lucent.com>
86682
86683         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
86684         functions.  Add the time.h and sys/time.h headers along with the
86685         AC_REQUIRE'ment of AC_HEADER_TIME.
86686
86687 2000-01-31  Jim Meyering  <meyering@lucent.com>
86688
86689         * lib/nanosleep.h (nanosleep): Guard declaration with
86690         `#if ! HAVE_DECL_NANOSLEEP'.
86691         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
86692         the declaration in that vendor's sys/timers.h.
86693         Reported by Christian Krackowizer.
86694
86695         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
86696         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
86697         (ISPRINT): Likewise.
86698         Reported by Tom Tromey.
86699
86700 2000-01-30  Jim Meyering  <meyering@lucent.com>
86701
86702         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
86703
86704         * m4/prereq.m4 (utmp_includes): Define.
86705         Check for ut_user and ut_name members in both struct utmpx
86706         and struct utmp.
86707
86708 2000-01-30  Jim Meyering  <meyering@lucent.com>
86709
86710         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
86711         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
86712         header files where only utmpx.ut_user is declared.
86713
86714         * lib/readutmp.h (UT_USER): Define.
86715
86716 2000-01-29  Jim Meyering  <meyering@lucent.com>
86717
86718         * m4/lib-check.m4: New file containing library-related checks from
86719         fileutils and sh-utils (textutils had none).
86720
86721 2000-01-28  Jim Meyering  <meyering@lucent.com>
86722
86723         * m4/perl.m4: Change format of warning message to look more like that
86724         from the missing script.  Suggestion from François Pinard.
86725
86726 2000-01-25  Jim Meyering  <meyering@lucent.com>
86727
86728         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
86729         well as time.h in the compile check.
86730         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
86731         Fix typo in cross-compiling case: s/yes/no/.
86732
86733 2000-01-23  Jim Meyering  <meyering@lucent.com>
86734
86735         * m4/jm-macros.m4: Move df-related tests here from
86736         fileutils/configure.in
86737
86738         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
86739         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
86740
86741         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
86742         s/space/ac_fsusage_space/.
86743         (jm_FILE_SYSTEM_USAGE): Take two parameters.
86744
86745         * m4/ftruncate.m4: New file (derived from part of
86746         fileutils/configure.in).
86747         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
86748         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
86749
86750         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
86751         AC_SUBST these here, rather than just in sh-util/configure.in, so
86752         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
86753         all the same.
86754         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
86755         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
86756         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
86757         (AC_SUBST(POW_LIBM)): Likewise.
86758         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
86759
86760 2000-01-23  Jim Meyering  <meyering@lucent.com>
86761
86762         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
86763         obstack.c.
86764
86765 2000-01-22  Jim Meyering  <meyering@lucent.com>
86766
86767         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
86768
86769         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
86770
86771         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
86772         configure.in
86773         (AC_CHECK_HEADERS): Likewise for sh-utils.
86774         (AC_CHECK_HEADERS): Likewise for textutils.
86775         Merge the three lists of headers.
86776
86777         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
86778         from fileutils' configure.in.
86779
86780         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
86781         code. Moved tests into their own function (_jm_DECL_HEADERS) in
86782         check-decl.m4.
86783
86784         * m4/check-decl.m4: Use #if rather than #ifdef.
86785         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
86786         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
86787         (_jm_DECL_HEADERS): Define new function.
86788         (jm_CHECK_DECLARATIONS): Require it.
86789
86790 2000-01-22  Jim Meyering  <meyering@lucent.com>
86791
86792         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
86793         [! HAVE_DECL_STRTOULL]: Declare strtoull.
86794         Required for some AIX systems.  Reported by Christian Krackowizer.
86795         [TESTING] (main): New function.
86796
86797         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86798         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86799         letters.
86800
86801         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86802         iswprint.
86803
86804         * lib/strverscmp.c (ISDIGIT): Define.
86805         (strverscmp): Use ISDIGIT, not isdigit.
86806
86807 2000-01-19  Jim Meyering  <meyering@lucent.com>
86808
86809         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86810         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86811         defines `struct timespec' in <sys/time.h>
86812
86813         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86814         Thanks to Akim for explaining.
86815
86816 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86817
86818         * lib/nanosleep.c (nanosleep):
86819         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86820         POSIX.1 doesn't require SA_INTERRUPT and some systems
86821         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
86822         it's been part of POSIX.1 since day 1 (in 1988).
86823
86824 2000-01-17  Jim Meyering  <meyering@lucent.com>
86825
86826         * lib/interlock: Remove unused file.  Reported by François Pinard.
86827
86828 2000-01-16  Paul Eggert  <eggert@twinsun.com>
86829
86830         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
86831         alert, backslash, formfeed, and vertical tab unnecessarily in
86832         shell quoting style.
86833
86834 2000-01-16  Jim Meyering  <meyering@lucent.com>
86835
86836         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
86837         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
86838         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
86839         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
86840
86841 2000-01-16  Jim Meyering  <meyering@lucent.com>
86842
86843         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
86844         because the latter didn't work.
86845
86846 2000-01-15  Jim Meyering  <meyering@lucent.com>
86847
86848         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
86849         (AC_REPLACE_FUNCS): Add memcpy and memset.
86850         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
86851         Add strpbrk.
86852         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
86853
86854 2000-01-12  Jim Meyering  <meyering@lucent.com>
86855
86856         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
86857         (jm_PREREQ): Use it.
86858         (jm_PREREQ_READUTMP): New macro.
86859         (jm_PREREQ): Use it.
86860
86861 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86862
86863         Quote multibyte characters correctly.
86864         * m4/c-bs-a.m4: New file.
86865         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
86866         (jm_PREREQ): Use it.
86867
86868 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86869
86870         * m4/uintmax_t.m4: Port to autoconf 2.13.
86871
86872 2000-01-08  Jim Meyering  <meyering@ascend.com>
86873
86874         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
86875         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
86876
86877 2000-01-04  Jim Meyering  <meyering@ascend.com>
86878
86879         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
86880         jm_STRUCT_DIRENT_D_TYPE.
86881         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
86882         jm_STRUCT_DIRENT_D_INO.
86883         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86884         jm_STRUCT_UTIMBUF.
86885         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86886         renamings.
86887         * m4/utime.m4: Likewise.
86888
86889         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86890         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86891
86892 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86893
86894         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86895         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86896
86897 2000-01-02  Jim Meyering  <meyering@ascend.com>
86898
86899         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86900         remember if this is necessary.
86901
86902 1999-12-26  Jim Meyering  <meyering@ascend.com>
86903
86904         * m4/jm-macros.m4: Use it here.
86905         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86906
86907 1999-12-23  Jim Meyering  <meyering@ascend.com>
86908
86909         * m4/jm-macros.m4: Check for clock_gettime (moved from
86910         fileutils/configure.in)
86911         Check for gettimeofday.
86912
86913 1999-12-20  Jim Meyering  <meyering@ascend.com>
86914
86915         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86916         autoconf-2.14a-1999-12-20.
86917
86918 1999-12-19  Jim Meyering  <meyering@ascend.com>
86919
86920         * m4/lstat-slash.m4: New file.
86921         * m4/jm-macros.m4: Use the new macro:
86922         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86923
86924 1999-12-07  Jim Meyering  <meyering@ascend.com>
86925
86926         * m4/perl.m4: Require that File::Compare be available, too.
86927         Too many systems seem to lack it.
86928
86929         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86930         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86931
86932 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86933
86934         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86935         problem with the QNX 4.25 shell, which doesn't propagate exit
86936         status of failed commands inside shell assignments.
86937
86938 1999-11-17  Jim Meyering  <meyering@ascend.com>
86939
86940         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86941
86942 1999-11-07  Jim Meyering  <meyering@ascend.com>
86943
86944         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86945
86946 1999-11-06  Jim Meyering  <meyering@ascend.com>
86947
86948         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86949         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86950
86951 1999-11-05  Jim Meyering  <meyering@ascend.com>
86952
86953         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86954         configure.in of textutils, fileutils, and sh-utils into this one
86955         (shared between those packages) file.
86956         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86957         AC_STRUCT_ST_BLKSIZE.
86958
86959 1999-11-03  Jim Meyering  <meyering@ascend.com>
86960
86961         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86962         of AC_CHECK_TYPE checks includes unistd.h.
86963         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86964         Suggestion from Akim Demaille.
86965
86966 1999-10-30  Jim Meyering  <meyering@ascend.com>
86967
86968         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86969         m4-quoted string.
86970         * m4/ls-mntd-fs.m4: Likewise.
86971         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86972         * m4/jm-winsz1.m4: Likewise.
86973
86974         * m4/const.m4: Remove file, since the fix made it into the experimental
86975         version of autoconf.
86976         * m4/mktime.m4: Likewise.
86977
86978         * m4/check-type.m4: Remove file, now that the latest version of
86979         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86980
86981         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86982         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86983         AC_CHECK_TYPE.
86984
86985 1999-10-04  Jim Meyering  <meyering@ascend.com>
86986
86987         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86988
86989 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86990
86991         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86992         2.95.1 bug with HP-UX 10.20.
86993
86994 1999-09-17  Jim Meyering  <meyering@ascend.com>
86995
86996         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86997         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86998         due to missing strdup (against sh-utils-2.0).
86999
87000 1999-08-29  Jim Meyering  <meyering@ascend.com>
87001
87002         * m4/jm-macros.m4: Require jm_BISON.
87003         * m4/bison.m4: New file.
87004
87005 1999-08-17  Paul Eggert  <eggert@twinsun.com>
87006
87007         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
87008         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
87009
87010 1999-08-05  Jim Meyering  <meyering@ascend.com>
87011
87012         * m4/getline.m4: Rename test file from conftestdata to conftest.data
87013         to avoid conflicts with `conftest' on 8+3 filesystems.
87014         Suggestion from Eli Zaretskii.
87015
87016 1999-08-04  Jim Meyering  <meyering@ascend.com>
87017
87018         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
87019         fileutils and sh-utils (textutils's getline test was inadequate).
87020         (AM_FUNC_GETLINE): Run this test.
87021         (AC_CHECK_FUNCS): Check for getdelim.
87022         Reported by Bob Proulx.
87023
87024 1999-08-02  Jim Meyering  <meyering@ascend.com>
87025
87026         * m4/jm-macros.m4: Add a comment.
87027
87028 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87029
87030         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
87031         <inttypes.h> defines strtoumax as a macro (and not as a
87032         function).
87033
87034 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87035
87036         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
87037         that we can shift, multiply and divide unsigned long long
87038         values; Ultrix cc can't do it.
87039
87040 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87041
87042         * m4/mktime.m4: New file, which is a preview of what should appear
87043         in the next public autoconf release.
87044
87045 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87046
87047         * m4/lfs.m4: Remove this file.
87048         * m4/largefile.m4: New file.  It contains the old contents of
87049         lfs.m4, except that all names with prefix AC_LFS have been
87050         changed to use the prefix AC_SYS_LARGEFILE instead, to be
87051         compatible with future autoconf versions.  Also, some minor m4
87052         quoting problems have been fixed.
87053
87054 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87055
87056         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
87057         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
87058         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
87059         and simplify the shell code.
87060
87061 1999-08-01  Jim Meyering  <meyering@ascend.com>
87062
87063         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
87064         m4.
87065
87066 1999-07-20  Jim Meyering  <meyering@ascend.com>
87067
87068         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
87069
87070 1999-07-15  Jim Meyering  <meyering@ascend.com>
87071
87072         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
87073
87074 1999-05-22  Jim Meyering  <meyering@ascend.com>
87075
87076         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
87077
87078 1999-05-20  Jim Meyering  <meyering@ascend.com>
87079
87080         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
87081         Add a colon after each `then' in case $4 is empty.
87082
87083 1999-05-16  Jim Meyering  <meyering@ascend.com>
87084
87085         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
87086
87087 1999-05-10  Jim Meyering  <meyering@ascend.com>
87088
87089         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
87090
87091         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
87092         AC_FUNC_MKTIME.
87093
87094 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
87095
87096         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
87097
87098 1999-05-04  Paul Eggert  <eggert@twinsun.com>
87099
87100         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
87101         not CPPFLAGS, so that linking works correctly in IRIX.
87102
87103 1999-04-30  Paul Eggert  <eggert@twinsun.com>
87104
87105         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
87106
87107 1999-04-20  Paul Eggert  <eggert@twinsun.com>
87108
87109         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
87110         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
87111         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
87112         jm_AC_TYPE_UNSIGNED_LONG_LONG.
87113         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
87114
87115         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
87116
87117 1999-04-20  Jim Meyering  <meyering@ascend.com>
87118
87119         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
87120         AC_REPLACE xstroull if necessary.  From Paul Eggert.
87121         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
87122
87123 1999-04-18  Jim Meyering  <meyering@ascend.com>
87124
87125         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
87126         * m4/jm-macros.m4: Use it.
87127
87128 1999-04-06  Jim Meyering  <meyering@ascend.com>
87129
87130         * m4/strftime.m4: Remove test for %f.
87131
87132 1999-03-29  Jim Meyering  <meyering@ascend.com>
87133
87134         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
87135         superset of the AC_TYPE_* checks in the textutils, fileutils,
87136         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
87137         AC_TYPE_PID_T.
87138
87139 1999-03-28  Jim Meyering  <meyering@ascend.com>
87140
87141         * m4/jm-macros.m4: Define GNU_PACKAGE here.
87142         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
87143         replaced e.g., in the *.sh files of the sh-utils.
87144
87145 1999-03-20  Jim Meyering  <meyering@ascend.com>
87146
87147         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
87148         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
87149         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
87150
87151 1999-03-19  Jim Meyering  <meyering@ascend.com>
87152
87153         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
87154
87155 1999-03-12  Jim Meyering  <meyering@ascend.com>
87156
87157         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
87158
87159 1999-03-07  Jim Meyering  <meyering@ascend.com>
87160
87161         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
87162         declared.
87163
87164 1999-02-17  Jim Meyering  <meyering@ascend.com>
87165
87166         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
87167         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
87168
87169 1999-02-07  Jim Meyering  <meyering@ascend.com>
87170
87171         * m4/group-member.m4: New file -- extracted from sh-utils'
87172         configure.in.
87173
87174         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
87175         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
87176
87177 1999-02-06  Jim Meyering  <meyering@ascend.com>
87178
87179         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
87180         * m4/fnmatch.m4: Likewise.
87181         * m4/getgroups.m4: Likewise.
87182         * m4/lstat.m4: Likewise.
87183         * m4/malloc.m4: Likewise.
87184         * m4/putenv.m4: Likewise.
87185         * m4/realloc.m4: Likewise.
87186         * m4/regex.m4: Likewise.
87187         * m4/stat.m4: Likewise.
87188         * m4/strftime.m4: Likewise.
87189         Suggestion from Alain Magloire.
87190
87191         * m4/chown.m4: Use `.$ac_objext', not `.o'.
87192         * m4/fnmatch.m4: Likewise.
87193         * m4/getgroups.m4: Likewise.
87194         * m4/getline.m4: Likewise.
87195         * m4/lstat.m4: Likewise.
87196         * m4/malloc.m4: Likewise.
87197         * m4/memcmp.m4: Likewise.
87198         * m4/putenv.m4: Likewise.
87199         * m4/realloc.m4: Likewise.
87200         * m4/regex.m4: Likewise.
87201         * m4/stat.m4: Likewise.
87202         * m4/strftime.m4: Likewise.
87203         Suggestion from Alain Magloire.
87204
87205         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
87206         an argument.
87207
87208         * m4/regex.m4: Add a run-time Test for proper operation of
87209         re_compile_pattern.
87210
87211 1999-01-31  Jim Meyering  <meyering@ascend.com>
87212
87213         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
87214
87215 1999-01-30  Jim Meyering  <meyering@ascend.com>
87216
87217         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
87218
87219         * m4/jm-mktime.m4: Make this a wrapper around the official
87220         AM_FUNC_MKTIME rather than my private copy, now that the official one
87221         is up to date.
87222         * m4/mktime.m4: Remove file.
87223
87224         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
87225         * m4/uptime.m4: Likewise.
87226         * m4/uintmax_t.m4: Likewise.
87227
87228 1999-01-28  Jim Meyering  <meyering@ascend.com>
87229
87230         * m4/jm-macros.m4: Use jm_AFS.
87231         * m4/afs.m4: New file (from fileutils' configure.in).
87232
87233         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
87234         * m4/chown.m4: Likewise.
87235         * m4/d-ino.m4: Likewise.
87236         * m4/d-type.m4: Likewise.
87237         * m4/fnmatch.m4: Likewise.
87238         * m4/getgroups.m4: Likewise.
87239         * m4/gettext.m4: Likewise.
87240         * m4/jm-mktime.m4: Likewise.
87241         * m4/jm-winsz2.m4: Likewise.
87242         * m4/lcmessage.m4: Likewise.
87243         * m4/ls-mntd-fs.m4: Likewise.
87244         * m4/malloc.m4: Likewise.
87245         * m4/memcmp.m4: Likewise.
87246         * m4/putenv.m4: Likewise.
87247         * m4/realloc.m4: Likewise.
87248         * m4/st_mtim.m4: Likewise.
87249         * m4/strftime.m4: Likewise.
87250
87251 1999-01-16  Jim Meyering  <meyering@ascend.com>
87252
87253         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
87254         (ARGMATCH_DIE_DECL): Define.
87255
87256 1999-01-12  Jim Meyering  <meyering@ascend.com>
87257
87258         * m4/Makefile.am.in: Rewrite to avoid using fmt.
87259         Reported by Lars Hecking.
87260
87261 1999-01-10  Jim Meyering  <meyering@ascend.com>
87262
87263         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
87264         gross kludge.
87265         * m4/inttypes_h.m4: Likewise.
87266         * m4/lstat.m4: Likewise.
87267         * m4/malloc.m4: Likewise.
87268         * m4/readdir.m4: Likewise.
87269         * m4/realloc.m4: Likewise.
87270         * m4/st_dm_mode.m4: Likewise.
87271         * m4/stat.m4: Likewise.
87272         * m4/utimbuf.m4: Likewise.
87273         * m4/utimes.m4: Likewise.
87274
87275         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
87276         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
87277         comments in config.h.in are meaningful.
87278
87279         * m4/jm-macros.m4: Require autoconf-2.13 here.
87280
87281         * m4/regex.m4: By default, don't use the included regex.c on systems
87282         with glibc 2.  Suggestion from Uli Drepper.
87283
87284 1999-01-02  Jim Meyering  <meyering@ascend.com>
87285
87286         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
87287
87288 1998-12-18  Jim Meyering  <meyering@ascend.com>
87289
87290         * m4/Makefile.am.in (Makefile.am): Simplify rule.
87291         Based on a suggestion from Lars Hecking.
87292
87293 1998-11-16  Paul Eggert  <eggert@twinsun.com>
87294
87295         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
87296
87297 1998-11-16  Jim Meyering  <meyering@ascend.com>
87298
87299         * m4/lfs.m4: Double-quote the `uname...` expression.
87300
87301 1998-11-14  Jim Meyering  <meyering@ascend.com>
87302
87303         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
87304         * m4/stat.m4: Likewise.
87305
87306 1998-11-03  Jim Meyering  <meyering@ascend.com>
87307
87308         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
87309         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
87310
87311 1998-10-18  Jim Meyering  <meyering@ascend.com>
87312
87313         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
87314
87315 1998-10-17  Jim Meyering  <meyering@ascend.com>
87316
87317         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
87318         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
87319         calls for those previously hard-coded headers.  Instead, take a new
87320         parameter.
87321         (jm_CHECK_DECLARATIONS): Reflect interface change.
87322         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
87323         (jm_CHECK_DECL_LOCALTIME_R): New macro.
87324
87325         * m4/mktime.m4: Test for spring-forward gap before long-running test.
87326
87327 1998-10-14  Jim Meyering  <meyering@ascend.com>
87328
87329         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
87330         instead of "TZ=America/Vancouver".  From Paul Eggert.
87331
87332 1998-10-11  Jim Meyering  <meyering@ascend.com>
87333
87334         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
87335         This adds a test for a recently added compatibility fix for mktime.c.
87336         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
87337
87338 1998-09-27  Jim Meyering  <meyering@ascend.com>
87339
87340         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
87341
87342         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
87343         ../configure.in, including a change from Gordon Matzigkeit to allow
87344         cross-compiling for the Hurd.
87345
87346         * m4/glibc.m4: New file/macro to test for the GNU C Library
87347         versions 1 and 2.  From Gordon Matzigkeit.
87348         Indent.
87349
87350 1998-09-21  Jim Meyering  <meyering@ascend.com>
87351
87352         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
87353
87354 1998-08-18  Paul Eggert  <eggert@twinsun.com>
87355
87356         Port nanosecond-resolution times to UnixWare 2.1.2 and
87357         pedantic Solaris 2.6.
87358
87359         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
87360         AC_STRUCT_ST_MTIM.
87361         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
87362         Generate name of ns member, instead of just 1 or undef.
87363         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
87364
87365 1998-08-15  Jim Meyering  <meyering@ascend.com>
87366
87367         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
87368         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
87369         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
87370         instead of jm_TYPE_SSIZE_T.
87371
87372 1998-08-12  Jim Meyering  <meyering@ascend.com>
87373
87374         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
87375
87376 1998-08-02  Jim Meyering  <meyering@ascend.com>
87377
87378         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
87379         in acconfig.h manually.
87380
87381 1998-07-31  Paul Eggert  <eggert@twinsun.com>
87382
87383         * m4/st_mtim.m4: New file.
87384
87385 1998-07-28  Jim Meyering  <meyering@ascend.com>
87386
87387         * m4/utimes.m4: Undef stat.
87388
87389 1998-07-25  Jim Meyering  <meyering@ascend.com>
87390
87391         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
87392         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
87393
87394 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
87395
87396         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
87397         uid and gid actually remain unchanged.
87398
87399 1998-07-07  Jim Meyering  <meyering@ascend.com>
87400
87401         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
87402
87403 1998-07-04  Jim Meyering  <meyering@ascend.com>
87404
87405         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
87406         to prove that this macro can be used in packages without regex.c.
87407
87408 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
87409
87410         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
87411         is to be used.
87412
87413 1998-07-03  Jim Meyering  <meyering@ascend.com>
87414
87415         * m4/gettext.m4: Add -lintl if it's found to be necessary.
87416
87417         * m4/gettext.m4: New file -- from gettext-0.10.35.
87418         * m4/lcmessage.m4: Likewise.
87419         * m4/progtest.m4: Likewise.
87420
87421         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
87422         * m4/jm-macros.m4: Require the new macro.
87423
87424 1998-06-29  Jim Meyering  <meyering@ascend.com>
87425
87426         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
87427         for the definition of NGROUPS (used in a system header included
87428         by sys/mount.h).
87429
87430 1998-06-28  Jim Meyering  <meyering@ascend.com>
87431
87432         * m4/ls-mntd-fs.m4: New file.
87433         * m4/fstypename.m4: New file.
87434
87435         * m4/jm-macros.m4: Require the new macro.
87436         * m4/jm-glibc-io.m4: New file.
87437
87438 1998-05-19  Jim Meyering  <meyering@ascend.com>
87439
87440         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
87441         * m4/lchown.m4: New file.
87442
87443         * m4/Makefile.am.in: New file.
87444         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
87445
87446 1998-05-14  Jim Meyering  <meyering@ascend.com>
87447
87448         * m4/Makefile.am (EXTRA_DIST): Add them.
87449         * m4/jm-macros.m4: New file.
87450         * m4/utimbuf.m4: New file.
87451
87452 1998-05-12  Jim Meyering  <meyering@ascend.com>
87453
87454         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
87455
87456 1998-05-11  Jim Meyering  <meyering@ascend.com>
87457
87458         * m4/isc-posix.m4: New file.
87459
87460 1998-05-10  Jim Meyering  <meyering@ascend.com>
87461
87462         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
87463
87464 1998-05-09  Jim Meyering  <meyering@ascend.com>
87465
87466         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
87467         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
87468         with automake.
87469
87470         * m4/ssize_t.m4: New file.
87471         * m4/mktime.m4: Remove file -- the new automake has this now.
87472
87473 1998-04-26  Jim Meyering  <meyering@ascend.com>
87474
87475         * m4/assert.m4: New file.
87476         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
87477
87478 1998-04-05  Jim Meyering  <meyering@ascend.com>
87479
87480         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
87481         (jm_PREREQ): Use it here.
87482
87483 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
87484
87485         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
87486         in acconfig.h.
87487
87488 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
87489
87490         * m4/prereq.m4: New file.
87491         * m4/error.m4: New file.
87492         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
87493
87494 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
87495
87496         * m4/getline.m4: Don't set am_cv_func_working_getline before the
87497         cache-check for the same variable -- that defeated the purpose of
87498         the test; the test program was never run.  This was a problem only
87499         on systems with losing getline functions -- HP-UX 10.20 is one.
87500         Reported by Bjorn Helgaas.
87501
87502 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
87503
87504         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
87505
87506 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
87507
87508         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
87509
87510         * m4/const.m4: New file.  Use an initializer in this declaration
87511         typedef int charset[2]; const charset x;
87512         Reported by Bob Glickstein.
87513
87514 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
87515
87516         * m4/chown.m4: Fix reversed types on -1 args to chown.
87517         From Kaveh Ghazi.
87518
87519 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
87520
87521         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
87522         Add lseek and memchr.
87523
87524         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
87525         T.E.Dickey <dickey@clark.net> said that some older preprocessors
87526         have a 20-character limit on names.
87527
87528 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
87529
87530         * m4/inttypes_h.m4: New file.
87531         * m4/uintmax_t.m4: New file.
87532         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
87533
87534
87535         -----
87536
87537         Local Variables:
87538         coding: utf-8
87539         End:
87540
87541         Copyright (C) 1997-2011 Free Software Foundation, Inc.
87542
87543         Copying and distribution of this file, with or without
87544         modification, are permitted provided the copyright notice
87545         and this notice are preserved.